ProDG Mainframe - Consolidation Pack

Position brief, business case, open questions with researched options, findings, blueprint, roadmap, recursive improvement loop, the registry graph and the engineering standards. Assembled 2026-10-06 from an independent review, live host verification and cited research.

Position brief

Platform overview - every service behind the gateway
Platform overview - every service behind the gateway

Position Brief - The ProDG Mainframe as a High-Assurance Framework

Date: 2026-10-05 (rev. 2, post-decision) · Author: independent review + consolidation Host: mainframe.prodg.studio (65.109.89.215, Ubuntu 24.04.5) Target, per founder: secure and compliant enough for the most sensitive high-risk environments - banks, governments, defence - with governance provisions that withstand the most complex regulatory environment.

The position in one paragraph

The ProDG "Mainframe" is a single self-sovereign platform that fuses four products that are normally four teams: a mesh network, a self-hosted application suite, a security/observability stack, and an AI operator (Hermes) that holds root and runs it from chat. It demonstrably runs (36 containers, live docs, working AI gateway, two live Kubernetes clusters). But the founder's stated target changes what "good" means. In a bank or a defence programme, an unevidenced claim is a liability, and an ungoverned operator is an audit finding. The platform's real, defensible asset is therefore not any single component - all are open source - but the integration, the agent-operated model, and the evidence-and-documentation discipline (75 docs pages, 42 ISMS policies, blueprints, skills). The strategic question is no longer "can it run?" but: can you prove to a regulator that it ran correctly, and that you would have known if it hadn't? Today it is a strong research platform with excellent documentation. The highest-value move is to convert it into a high-assurance, reproducible framework before the tacit knowledge decays.

What exists today (verified live)

The governing objective, and what it changes

"Secure and compliant enough to be deployed in the most sensitive high-risk environments, with the relevant governance provisions to withstand the most complex regulatory environment."

WasNow
Self-hosted SaaS alternative for solo technical ownersHigh-assurance platform for regulated, adversarial environments
Optimise for cheap and just-worksOptimise for provable, auditable, governable
Productise the instanceProductise the pattern - open-source the core, sell premium
Security as defence in depthSecurity as evidenced control with governance provisions
Assumption validation as hygieneAssumption validation as the product

Four consequences follow immediately:

  1. Evidence beats assertion. Every claim needs an artefact a third party can re-run. The review's two false claims and one stale brief are not embarrassments - they are the exact failure mode this target cannot tolerate.
  2. A governance framework must be chosen. Incident response, alert ownership, agent blast radius and separation of duties all depend on what you will be audited against (see Decision Log §D).
  3. Blocking gaps become dis-qualifying. Backup/DR ("not sure"), separation of duties, and the absence of a rehearsed incident playbook stop a regulated deployment cold.
  4. Fleet, Talos, K8s. The target is "a network of nodes securely sharing data and services that evolves over time" - a fabric. Single-node and Compose assumptions are now superseded.

The core tension

StrengthCorresponding risk
One agent holds root and actsSingle point of authority; no separation of duties - an audit finding in production
Deep integrationCoupling: a Caddy network mistake 502s /control/ and /hermes/
Rich documentationDocs drift from host (Ubuntu 22.04 vs 24.04; Talos vs kind)
Fast, agent-driven changeClaims outrun verification ("banners 17 files" false; "can't drift" false)
Self-sovereignOperational burden 100% internal; bus factor = the operator
No scope fence (founder: nothing is out of scope once graduated)Without a graduation process, scope grows faster than governance can absorb

Strategic recommendation

Harden the instance, extract the framework, then govern it. Four tracks, in order:

What "done" looks like

A second person, from the pack alone, stands up a Mainframe on a fresh host in under a day, runs mainframe doctor green, and hands it to an agent - without asking the original operator a single question. For the regulated target, "done" adds one more clause:

Every claim the platform makes about itself is backed by an artefact a regulator can re-run, and the platform knows - and records - when it has been operated outside its governance envelope.

Today neither is possible. The gap is the improvement plan.

Business case

Business Case - The Mainframe as a High-Assurance, Open-Core Platform

Date: 2026-10-05 (rev. 2, post-decision)

1. The problem being solved

Regulated organisations - banks, government departments, defence programmes - cannot adopt a stack of SaaS products. Data residency, sovereignty, supply-chain provenance and audit obligations rule it out. Their alternatives today are: an expensive enterprise platform, or a bespoke internal build. Both are slow, and the bespoke build is usually undocumented, unevidenced, and held together by one team.

Meanwhile the opposite problem afflicts the open-source world: capable self-hosted stacks exist, but they are assemblies of parts, not governed platforms. Nobody ships the evidence, the incident playbook or the conformance suite - because that work is unglamorous and doesn't demo.

The Mainframe sits in the gap: a sovereign, agent-operated platform whose evidence discipline is a first-class deliverable, not an afterthought.

2. The proposition - open core, premium around it

Per the founder's decision: build it, open-source the core, sell premium features, enterprise support, hosting and inference.

TierWhat it isBuyerWhy they pay
Core (open source)The framework: manifest, installer, mainframe doctor, docs pipeline, diagram tooling, loadoutsTechnical teams, open-source community, pilot companiesFree adoption; the distribution engine and the credibility engine
Enterprise supportSLAs, upgrade ownership, incident response, audit support, certification assistanceRegulated enterprises, government, defenceThey need a named party to answer to an auditor
Managed hostingThe fleet, operated - sovereign tenancy, proven restore, monitoredOrganisations that want the outcome, not the opsRemoves the last internal capability barrier
InferenceModel routing and inference on sovereign infrastructure (LiteLLM lineage)Anyone who cannot send data to a public model providerThe sharpest fit with the target market - regulated bodies cannot outsource inference to a US-hosted API

The open-core split must be honest: if the core isn't genuinely usable standalone, the open-source motion fails and the premium tier has no funnel.

3. Why this is defensible

4. Value

4a. Cost avoidance (self-hosted vs SaaS)

The running stack replaces, at consumer SaaS pricing: Mattermost ($6/user/mo), Cal.com ($15/seat/mo), Twenty CRM, DocuSeal, Stirling-PDF, Vaultwarden, Passbolt, a secrets manager, an AI gateway, a SIEM and a docs platform. For a single operator that is conservatively $200-400/month of avoided SaaS against one VPS (~€15-60/mo). At 3-10 seats - the declared target persona is a small team - the economics compound.

Caveat: directional estimate, not measured. It must be replaced with a line-item table (service -> SaaS list price -> self-hosted equivalent) before external use. Making this table is itself a piece of the evidence discipline.

4b. Assurance value (the part that matters for this target)

For a regulated buyer, the differentiator is not licence savings - it is:

5. Costs & requirements to get there

ItemEffortNotes
Fix drift + verified-claim discipline (D1-D8)~1 dayDone in this pass
Shared config + mainframe doctor conformance suite~1 weekThe core framework asset
Package mainframe install (core + loadouts)~1 weekIdempotent install, .env templating, post-install doctor
Second-instance validation (fresh host)~2 daysThe only proof the framework works
Governance framework selection + control mapping~1-2 weeksNIST 800-53 catalogue + ISO 27001 shell
Incident playbook + one tabletop rehearsal~1 weekA regulator requires a rehearsed one
Backup/DR: define RPO/RTO + prove a restore~1 weekCurrently "not sure" - dis-qualifying
Separation of duties / break-glass / RBAC~2 weeksProduction requirement, not a nicety
Clean-room licensing pipelineongoingFounder's chosen approach; doubles as a supply-chain control
Certification (if pursued)months + $ISO 27001 audit is the long pole
Ongoing operator time~2-5 h/weekHealth, upgrades, incidents

6. Risks

7. Recommendation

Proceed to a bounded pilot, sequenced so that assurance work pays for itself early.

  1. Harden & tell the truth (days) - done in this pass; keeps the trust account in credit.
  2. Build mainframe doctor + install (~2 weeks) - the core asset and the evidence generator.
  3. Prove the second instance (~2 days) - the kill/continue gate.
  4. Choose the governance framework and map controls (~2 weeks) - unlocks the regulated market.
  5. Close the three dis-qualifying gaps - restore, separation of duties, incident playbook.

Kill criteria: if a second qualified person cannot stand up a green instance from the pack alone within two working days, the framework is not real and the effort reverts to maintenance-only. Spend to that point is time-only - no capex.

Open questions

Open Questions - with answers

Answered by: Mitch / Founder · Date: 2026-10-05 Context given: "The aim is for this to be secure and compliant enough to be deployed in the most sensitive high-risk environments with the relevant governance provisions to withstand the most complex regulatory environment. Think banks / governments / defence."

Every question below is now closed. The answers are folded into binding decisions in the Decision Log; the new questions those decisions create are listed at the end.

Reading the table. Answer is the founder's verbatim intent. What it implies is the consequence this pack draws from it - the part that turns an answer into engineering.


A. Strategy & scope

#QuestionAnswerWhat it implies
1Product, personal platform, or internal lab?All three. "It started off as a research project then evolved."Do not force a single identity. Design so research need not be sacrificed for product rigour.
2Target persona for a second instance?Small teamMulti-operator from the start: separation of duties, shared-secret handling, handover docs.
3What is explicitly out of scope?Nothing - "once they graduate a process that assigns responsibility"Scope is bounded by process, not exclusion. Requires a graduation gate (-> decision 33).
4Build vs sell vs open-source?Build, open-source the core, sell premium - "premium features, enterprise support, hosting and inferences"Open-core model. The core must be genuinely standalone-usable or the open-source motion fails.

B. Architecture & technology

#QuestionAnswerWhat it implies
5Ubuntu (A) vs Talos (B/C) canonical?TalosSupersedes the blueprint's "stay on Ubuntu" recommendation. Ubuntu is dev/legacy.
6Why is the running cluster kind, not Track C?Pending promotionPromoting Track C is scheduled work, not a mystery.
7Single VPS vs fleet?Fleet - "a network of nodes securely sharing data and services that evolves over time"A fabric, not a box. Changes identity, secrets distribution and observability (-> decision 36).
8How many services is too many?None - "research and define what the core and the different 'loadouts' will be"Service tiering becomes a defined artefact: core + loadouts (-> decision 35).
9Compose vs K8s for the app tier?K8sCompose is dev-time ergonomics; K8s is the deployment target.

C. Implementation & correctness

#QuestionAnswerWhat it implies
10Stop "can't drift" style claims?D2Enforce structurally, never assert. Fixed in this pass; now a standing rule.
11Should auto-generated files be decorated?D1Decoration must be emitted by the generator. Manual passes over generated files are forbidden.
12How do we keep docs truthful?D3Machine-verified, or explicitly labelled unverified. Needs a check, not discipline.
13Verification contract for agent work?Research and present optionsOpen workstream - what must an agent prove before claiming done?

D. Assumptions to validate

#AssumptionAnswerWhat it implies
14"Single self-sovereign server"Agreed - "ensure validation exists before asserting claims"Claims gain a validation precondition.
15"Nothing management-grade is public"Assumed addressed by the hardening phase once zero-trust is in placeZero-trust becomes a gate on the public claim, not a nice-to-have.
16"100% Checkov compliance""If there is none then ensure that this and other claims have an auditable verifiable proof"Evidence generation is a first-class deliverable.
17"99.9%+ uptime target"North star, "not sure if validated"Label as aspiration until measured; never present as achieved.
18Backup / DRNot sureBlocking for regulated environments. A proven restore is a stop condition (-> decision 34).

E. Security & compliance

#QuestionAnswerWhat it implies
19Separation of duties"Only the case since we are in development and I'm the only one with access. Ensure there are provisions to manage this properly."RBAC, break-glass and dual control before any regulated deployment.
20Licensing review"Implement the clean room rewrite as part of the supply chain pipeline"Clones the SOC framework into a licensing control - a strong defence-sector posture.
21Breach / incident playbook"Would need to be built in adherence to the governance framework"Depends on decision 32 (framework). Immediate customer: the secure-file-server incident.
22secure-file-server crash-loopingIncidentReclassified from observed defect to incident - needs handling and a retrospective.

F. Operations & people

#QuestionAnswerWhat it implies
23Bus factor = 1"Pilot installs, extensive onboarding/teaching material, living documentation, interfaces (TUI, MCP, etc.), Skills.md. We have some test cases of companies we're founding - we pilot on those."Externalise knowledge; the pilot companies are the validation set.
24Upgrade cadence & pinning"None at present. Define the role functions and requirements and build an agent."An agent owns it; the policy is that agent's specification.
25Who answers alerts?"Depending on the risk. There will be tiers where approved plans will proceed and open questions will be responded to. In high-risk and regulated environments policies will differ."Tiered alert model tied to the governance framework.

G. Documentation & knowledge

#QuestionAnswerWhat it implies
26Quartz vs Markdoc?MarkdocQuartz is retired; the paused cron need not return.
27Banner/grep audit over-countsD5Fixed in this pass.
28Where does runtime config live?"Resolve them according to best practice"Open workstream - define config precedence and location policy.

H. Agent-specific

#QuestionAnswerWhat it implies
29require_mention isn't live"Add this as an item to be resolved"Recorded in Current; needs a human-run gateway lifecycle command.
30A2A mesh"Unsure of current status - investigate and operationalise"Open workstream: assess, then make it real.
31What is the agent's blast radius?"Standard - ensure these are adherent to governance principles"The agent operates inside the same governance envelope as a human operator.

New questions these answers create

#QuestionBlocks
32Which governance framework is the audit target? Recommendation: NIST 800-53 as the control catalogue, ISO 27001 as the certification shell.18, 21, 25, 31 and the governing objective
33What is the graduation process - research -> governed operation?Answer 3 (no scope fence)
34What is the backup/DR target (RPO/RTO), and has a restore been proven?Any regulated deployment
35What does a loadout mean concretely, and which are supported?Answer 8
36What is the fleet fabric - identity, secrets distribution, observability across nodes?Answer 7

Options

Every question carries a recommended option backed by cited research. This is the research the Decisions tab acts on.

Research Options - Open Questions 32 to 40, with recommendations

Status: research deliverable for the Mainframe Consolidation Pack. Every recommendation is backed by a checkable primary or authoritative source. Sources are listed inline and collected at the end.

Method. For each of the five new questions (32 to 36) plus the four graph/registry questions (37 to 40) this document states the decision, the recommended option, the alternatives considered, and the evidence. The 31 earlier questions are closed with a one-line recommended option and a source each, because the founder's answers are already binding: the table re-expresses them as recommendations, not re-opens them.

Constraints honoured: Markdown only, ASCII only, no runtime code, no emoji, hyphens instead of em-dashes, and no fabricated citations.


Part 1 - The high-stakes questions (32 to 36)

Question 32 - Which governance framework is the audit target?

Recommendation. Adopt a layered stack with one control catalogue and one certification shell:

LayerStandardRole
Control catalogueNIST SP 800-53 Rev. 5 (+ SP 800-53B baselines)The normative list of controls the platform implements and evidences
Certification shellISO/IEC 27001:2022 (ISMS)The auditable management system a bank's risk function recognises and certifies
Programme lensNIST CSF 2.0Governance, tiers, and a common language for the risk register
Hardening baselineCIS Critical Security Controls v8Concrete, automatable configuration baseline that maps into 800-53
Commercial trustSOC 2 Type IIVendor-trust artefact for the premium SaaS/hosting tier only
Regional overlayEU DORA + NIS2If EU financial entities are in scope; both lean on ISO 27001 lineage

Why 800-53 as the catalogue, not ISO 27001 Annex A or CIS alone.

  1. SP 800-53 Rev. 5 is a catalogue of controls with named enhancements, attributable per control family, and is the source of the FedRAMP baselines. It gives the platform a per-control implementation status it can actually evidence, which ISO 27001 Annex A does not (Annex A is a smaller, higher-level set). Source: NIST CSRC, SP 800-53 Rev. 5 (https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final).
  2. SP 800-53B defines Low, Moderate and High baselines; the High baseline is the appropriate starting posture for a platform targeting defence and government sensitive data. Source: NIST SP 800-53B control baselines (https://csrc.nist.gov/pubs/sp/800/53/b/upd1/final) and the NIST announcement (https://csrc.nist.gov/news/2020/control-baselines-nist-publishes-sp-800-53b).
  3. FedRAMP requires cloud service providers to implement 800-53 baselines, so choosing 800-53 now keeps the FedRAMP/defence track open without a second body of work. Source: FedRAMP program (https://www.fedramp.gov/) and the NIST 800-53 controls project page (https://csrc.nist.gov/projects/risk-management/sp800-53-controls).
  4. ISO/IEC 27001:2022 certifies the management system (ISMS), not a control catalogue. Banks and governments accept it as the shell, but it does not by itself give the technical granularity a regulator asks for. Source: ISO/IEC 27001:2022 (https://www.iso.org/standard/27001).
  5. CIS Controls v8 is a prioritised, implementation-oriented set with published crosswalks to NIST CSF and 800-53, so it can be used as the "how" without becoming the audit target. Source: CIS Controls v8 (https://www.cisecurity.org/controls/v8).
  6. SOC 2 is a North American vendor-trust report and is weak for government/defence; keep it out of the core promise. Source: AICPA SOC 2 / Trust Services Criteria (https://www.aicpa-cima.com/topic/audit-assurance/audit-and-assurance-greater-than-soc-2).
  7. NIST CSF 2.0 adds the Govern function and four implementation Tiers (Partial, Risk Informed, Repeatable, Adaptive) that this pack reuses for the graduation model (Question 33). Source: NIST CSWP 29, The NIST Cybersecurity Framework (CSF) 2.0 (https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf).

Decision for the pack. Audit target = NIST SP 800-53B High baseline as the control catalogue, wrapped by an ISO/IEC 27001:2022 ISMS as the certification shell. ISO 27001 is the certificate the buyer sees; 800-53 is the control set the engineer implements and the auditor traces.


Question 33 - What is the graduation process from research to governed operation?

Recommendation. A five-gate promotion pipeline, G0..G4, where every component or loadout carries a gate badge. Promotion is a process that assigns responsibility (founder answer 3), and the gates are the process.

GateNameEntry requirementExit evidence (must be produced, not asserted)
G0ResearchIdea, notes, throwaway prototypeWritten hypothesis + owner named
G1LabRuns reproducibly in a non-production namespaceReproducible manifest, no shared secrets, blast radius stated
G2PilotRuns for one real pilot companyOnboarding doc, monitoring wired, rollback tested
G3GovernedRuns under the governance frameworkControl mapping to 800-53, threat model, incident playbook entry, restore proof, RBAC + break-glass
G4CertifiedPasses external auditISO 27001 ISMS inclusion, evidence pack, signed risk acceptance

Prior art used to justify the model.

Consequence. No component reaches a bank or defence environment without a G3 evidence pack. The graduation record is a registry entry (see Question 38), so "graduated" is a queryable state, not a verbal claim.


Question 34 - What is the backup/DR target (RPO/RTO), and has a restore been proven?

Recommendation. Tier the platform, set a numeric RPO/RTO per tier, and make a proven restore the gate. For a single-node self-hosted origin node, realistic targets are:

TierData / serviceRPORTOMechanism
T0Identity, secrets (OpenBao), PKI, control plane15 min4 hContinuous replication + sealed offline copy; emergency break-glass
T1Stateful platform data (PostgreSQL, graph, object store)60 min8 hWAL archiving + periodic base backup + immutable offsite copy
T2Stateless app tier, configs, docs24 h24 hGit + nightly config backup; rebuild from manifests
T3Analytical / regenerable data24 h72 hRecompute from source of record; backup optional

Why these are realistic, not aspirational. On one node you cannot promise a hot-standby RTO without a second node; the honest single-node promise is rebuild time + restore time. WAL archiving and continuous archiving give minute-level RPO for PostgreSQL without a cluster, which is why T0/T1 promise minutes but not seconds. A fleet (Question 36) is what buys sub-minute RPO and a low RTO by adding a second failure domain.

The backup rule to adopt: 3-2-1-1-0.

Restore-testing cadence (widely recommended).

  1. Continuous: automated integrity checks and restore-readiness (backup completed, restorable, no errors) - the "0" in 3-2-1-1-0.
  2. Monthly: granular restore test of T1 data into an isolated namespace (prove the dump/restore path, not just the backup).
  3. Quarterly: table-top / scenario exercise of the incident-response plan for a data-loss event.
  4. At least annually (semi-annual for the High baseline): full DR failover / rebuild exercise timed against the RTO, with results recorded as evidence. Sources: Eon on DR testing cadence (https://www.eon.io/blog/disaster-recovery-testing); NinjaOne on building a DR testing cadence (https://www.ninjaone.com/blog/how-to-build-a-disaster-recovery-testing-cadence).

Stop condition. Question 18's "not sure" and the pack's finding that a restore has never been proven means the platform is currently not eligible for a regulated deployment. A dated, reproducible restore-evidence record is the exit criterion.


Question 35 - What does a "loadout" mean concretely, and which are supported?

Recommendation - definition. A loadout is a named, versioned, declarative deployment profile: a curated set of core and optional components plus their values, resource profile, policy bundle, and control baseline, rendered on top of a fixed core by a Kustomize overlay / Helm umbrella chart. A loadout has four parts:

  1. Component set - which services are in (core is always in; optional services are toggled).
  2. Values / config - resource requests/limits, replica counts, feature flags, sizing tier.
  3. Policy bundle - Kyverno policies, PSA/seccomp profile, network policies that apply to it.
  4. Control baseline - which 800-53 controls the loadout claims, and its gate badge (Question 33).

Prior art (this is a re-labelling of well-established patterns, not a new invention).

Supported loadouts to define (recommended set).

LoadoutPurposeCore?AddsGate
coreMinimum sovereign platformyesGateway, identity, secrets, observability-minG2
operatorCore plus the AI operatoryesHermes, LiteLLM, MCP interfaces, SkillsG2
regulatedBank / government baselineyesZero-trust (SPIRE), Kyverno, SIEM, immutable backup, RBACG3
defence-airgapAir-gapped hardenedyesOffline mirrors, signed artefacts, hardware-backed keysG3
inference (premium)Model servingyesGPU scheduling, model registry, gatewayG2
devLab / researchyesDebug tooling, Compose escape hatch, synthetic dataG0/G1

Rule. Core is one loadout and never optional. Every other loadout is core plus a delta, so a new loadout is a new overlay, not a fork of the platform.


Question 36 - What is the fleet fabric (identity, secrets, observability across nodes)?

Recommendation - the four fabric layers.

1. Workload identity: SPIFFE/SPIRE.

2. Secrets distribution: OpenBao + External Secrets Operator + cert-manager.

3. Policy: Kyverno. Cluster-wide admission policy (Pod Security, image provenance, required labels, namespace guardrails) is the fleet's enforcement plane, delivered with each loadout's policy bundle. Source: https://kyverno.io/docs/ and the CNCF policy-as-code write-up (https://www.cncf.io/blog/2026/03/19/policy-as-code-flexible-kubernetes-governance-with-kyverno/).

4. Observability: OpenTelemetry first, vendor-neutral storage.

Fleet lifecycle. Manage node fleets with Cluster API and drive desired state by GitOps (Argo CD or Rancher Fleet) so a node's identity, secrets, policy and telemetry are declarative. Sources: Cluster API (https://cluster-api.sigs.k8s.io/ and the CNCF production-readiness note https://www.cncf.io/blog/2021/10/06/kubernetes-cluster-api-reaches-production-readiness-with-version-1-0/); Argo CD (https://argo-cd.readthedocs.io/en/stable/); Rancher Fleet (https://fleet.rancher.io/).


Part 2 - Graph, registry and resolution questions (37 to 40)

Question 37 - Neo4j Enterprise licence, or an open RBAC-capable alternative?

Recommendation. Do not standardise on Neo4j Community Edition. Make Apache AGE on the existing PostgreSQL the default core graph engine, keep a Cypher-compatible abstraction so a premium/enterprise Neo4j option can sit behind it, and avoid BSL-licensed engines in the open core.

OptionLicenceRBAC / access controlBackupVerdict
Neo4j CommunityGPLv3No RBAC, no sub-graph access controlNo online backup, no clusteringReject for the governed core
Neo4j EnterpriseCommercial (Neo4j licence)RBAC, sub-graph, online backup, clusteringYesPremium/enterprise option only
Apache AGE (PostgreSQL)Apache-2.0Inherits PostgreSQL RBAC, RLS, rolespg_dump/pg_basebackup/WALRecommended default
MemgraphBSL 1.1 (source-available)Enterprise features gatedVariesReject for open core (not OSI-open)
JanusGraphApache-2.0Storage-layer auth; heavy stackVia Cassandra/HBaseConsider only if distributed scale dominates

Evidence.

Consequence. The graph layer is an implementation detail behind an interface. Default = Apache AGE; Neo4j Enterprise is the premium option for customers who need its maturity; Memgraph and JanusGraph are documented alternatives, not defaults.


Question 38 - Which registries are authoritative vs derived?

Recommendation. Classify every registry, enforce one authoritative source per fact, and mark derived artefacts as generated and read-only.

RegistryClassSystem of recordRule
Service / component registerAuthoritativeGit (declarative manifests)Change via merge request; GitOps reconciles
Identity directoryAuthoritativeIdP + Headscale/SPIRE registrySingle issuer; no shadow accounts
Secrets metadata (not values)AuthoritativeOpenBaoValues never in Git
Control catalogue / gate badgesAuthoritative800-53 mapping file + graduation logOne row per control/component
Dependency register / SBOMDerivedGenerated from lockfiles and imagesCycloneDX/SPDX, regenerated by pipeline
Docs, diagrams, the pack buildDerivedGenerators over source docsNever hand-edited (matches D1/D2)
Inventory snapshots, dashboardsDerivedPrometheus/Loki exportersRebuildable, timestamped
Infra state exportsDerivedIaC apply outputReproducible from manifests

Rule. Authoritative = human intention, change-controlled, versioned, reviewable. Derived = machine output, regenerable, provenance-stamped, read-only. Derived artefacts must carry a generation marker and a source pointer; a derived artefact that cannot be regenerated is an incident.

Evidence / prior art.


Question 39 - Is GraphAware Hume a candidate dependency?

Recommendation. No - not a core dependency. Treat Hume as a premium/partner integration at most.

Rationale.

  1. GraphAware Hume is a commercial, closed, Neo4j-based intelligence-analysis platform (unifying fragmented data into a knowledge graph for law-enforcement / national-security users). It is not open source, so it cannot be part of the open core. Source: https://graphaware.com/hume.
  2. GraphAware was acquired by Neo4j, so adopting Hume deepens a commercial Neo4j dependency - which compounds the licensing exposure in Question 37. Sources: GraphAware product page (https://graphaware.com/hume) and the Neo4j user listing (https://neo4j.com/users/graphaware).
  3. The platform's entity-resolution and intelligence needs (Question 40) can be served by the open graph engine plus open ER libraries, avoiding a closed vendor in a defence supply chain. Source: GraphAware knowledge-graph compliance write-up (for capability comparison only) (https://graphaware.com/resources/knowledge-graphs-for-regulatory-compliance-with-neo4j-and-graphaware-hume).

Consequence. Do not add Hume to any loadout's default component set. Document it as an optional commercial integration for customers who already run it, gated behind a licence review.


Question 40 - What is the entity-resolution policy?

Recommendation. A layered, auditable ER policy: deterministic first, probabilistic second, graph-structural third, with human review and reversible merges.

Pipeline (numbered):

  1. Normalisation. Canonicalise names, addresses, dates, identifiers; hash direct identifiers (national ID, email) for blocking keys.
  2. Blocking (candidate generation). Reduce the quadratic comparison space using exact-key blocking and locality-sensitive hashing (MinHash/LSH, canopy clustering) for scale.
  3. Pairwise scoring. Combine string similarity (Jaro-Winkler, Levenshtein, Jaccard on token sets), embedding cosine similarity, and graph-structural similarity.
  4. Classification. Probabilistic record linkage in the Fellegi-Sunter framework (e.g. Splink) or supervised/active learning, producing a match probability per pair.
  5. Decision. Threshold into auto-match, review queue, auto-non-match. No silent merge.
  6. Merge governance. Build clusters with stable cluster IDs; keep provenance (which records, scores, reviewer, timestamp); support reversible split. Never destroy source records.

Evidence / prior art.

Governance requirement. In a bank/defence context an ER decision is an auditable decision: record the evidence (scores, algorithm, thresholds), the reviewer, the timestamp, and the resulting cluster ID. The ER policy itself is a controlled document under the ISMS (Question 32).


Part 3 - The 31 earlier questions (recommended option and source each)

Each row re-expresses a binding founder answer as a recommended option, with one checkable source.

#QuestionRecommended optionSource
1Product / platform / lab?All three; design so research is not sacrificed for product rigourOSI Open Source Definition https://opensource.org/osd
2Target persona?Small team; multi-operator with separation of duties from the startNIST SP 800-53 Rev. 5 (AC-5) https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final
3Out of scope?Nothing; manage scope by a graduation process, not exclusionNIST CSF 2.0 https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf
4Build / sell / open-source?Open-core: open the core, sell support, hosting and inferenceOpen Source Initiative https://opensource.org/osd
5Canonical track?Talos Linux is canonical; Ubuntu is dev/legacyTalos overview https://docs.siderolabs.com/talos/v1.14/overview/what-is-talos
6kind vs Track C?Promote Track C on a schedule; kind is transitional onlyTalos https://www.talos.dev/
7Single VPS or fleet?Fleet: nodes sharing data and services as a fabricCluster API https://cluster-api.sigs.k8s.io/
8Core + loadouts?Define core plus a small set of named loadoutsKustomize bases/overlays https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/
9Compose or K8s?Kubernetes for the app tier; Compose is dev ergonomics onlyKubernetes overview https://kubernetes.io/docs/concepts/overview/
10"Can't drift" claims?Enforce a single source of truth; never assert itOpenGitOps https://opengitops.dev/
11Decorate generated files?Decoration must be emitted by the generatorHelm best practices https://helm.sh/docs/chart_best_practices/
12Keep docs truthful?Machine-verify or explicitly label unverifiedSLSA provenance https://slsa.dev/spec/v1.0/provenance
13Verification contract?Every claim carries a re-runnable command and its outputSLSA https://slsa.dev/
14"Single self-sovereign server"?Validate headroom before asserting the claimAWS Well-Architected https://aws.amazon.com/architecture/well-architected/
15"Nothing management-grade public"?Zero-trust is a gate on the public claim, not a nice-to-haveNIST SP 800-207 https://csrc.nist.gov/pubs/sp/800/207/final
16"100% Checkov compliance"?Attach dated Checkov evidence or drop the claimCheckov https://www.checkov.io/
17"99.9% uptime"?Label as an unvalidated north star until measuredGoogle SRE SLOs https://sre.google/sre-book/service-level-objectives/
18Backup / DR?Undefined is a stop condition; adopt RPO/RTO tiers and prove a restoreCISA #StopRansomware https://www.cisa.gov/stopransomware/ransomware-guide
19Separation of duties?Build RBAC, break-glass and dual-control provisions nowNIST SP 800-53 Rev. 5 (AC-5) https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final
20Licensing review?Clean-room rewrite inside the supply-chain pipelineSPDX https://spdx.dev/learn/handling-license-info/
21Incident playbook?Build it to the governance framework and rehearse itNIST SP 800-61 Rev. 3 https://csrc.nist.gov/pubs/sp/800/61/r3/final
22secure-file-server?Treat as an incident with handling and a retrospectiveCISA #StopRansomware (response checklist) https://www.cisa.gov/stopransomware/ransomware-guide
23Bus factor = 1?Pilot installs, onboarding material, living docs, interfaces, skillsBus factor https://en.wikipedia.org/wiki/Bus_factor
24Upgrade cadence / pinning?Define roles and requirements, then build a pinning/upgrade agentRenovate https://docs.renovatebot.com/
25Who answers alerts?Tier by risk; approved plans proceed, high-risk routes to humansNIST CSF 2.0 tiers https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf
26Quartz or Markdoc?Markdoc owns the site; retire QuartzMarkdoc https://markdoc.dev/
27Banner/grep over-count?Canonicalise the decoration query; exclude tool and cache filesripgrep https://github.com/BurntSushi/ripgrep
28Runtime config location?Declarative ConfigMaps/Secrets with a defined precedenceKubernetes ConfigMap https://kubernetes.io/docs/concepts/configuration/configmap/
29require_mention not live?Resolve via a human-run gateway lifecycle commandTelegram Bot API https://core.telegram.org/bots/api
30A2A mesh?Operationalise it: exercise a real round-trip, not just configurationA2A protocol https://github.com/a2aproject/A2A
31Agent blast radius?Standard, but under the same governance envelope as a human operatorNIST AI RMF https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf

Part 4 - Consolidated recommendations (priority order)

  1. Adopt NIST SP 800-53B High as the control catalogue and ISO/IEC 27001:2022 as the certification shell; use CSF 2.0 for governance and CIS v8 as the hardening baseline.
  2. Make a proven restore a gate. Tier RPO/RTO, adopt 3-2-1-1-0 with a WORM offsite copy, and run monthly granular restores plus an annual timed DR exercise.
  3. Build the G0..G4 graduation pipeline and give every component a gate badge.
  4. Define loadouts (core / operator / regulated / defence-airgap / inference / dev) as Kustomize overlays plus Helm umbrella charts over a fixed core.
  5. Build the fleet fabric with SPIFFE/SPIRE identity, OpenBao + ESO + cert-manager secrets, Kyverno policy, and OpenTelemetry-based cluster-wide observability.
  6. Default the graph layer to Apache AGE on PostgreSQL; keep Neo4j Enterprise as a premium option and keep BSL engines out of the open core.
  7. Classify registries authoritative vs derived and forbid hand-edits to derived artefacts.
  8. Do not adopt GraphAware Hume into the core; document it as an optional commercial integration.
  9. Adopt a layered, auditable entity-resolution policy with reversible merges and recorded match evidence.

References

  1. NIST SP 800-53 Rev. 5, Security and Privacy Controls - https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final
  2. NIST SP 800-53B, Control Baselines - https://csrc.nist.gov/pubs/sp/800/53/b/upd1/final
  3. NIST SP 800-53B announcement - https://csrc.nist.gov/news/2020/control-baselines-nist-publishes-sp-800-53b
  4. NIST SP 800-34 Rev. 1, Contingency Planning Guide - https://csrc.nist.gov/pubs/sp/800/34/r1/upd1/final
  5. NIST SP 800-61 Rev. 3, Incident Response - https://csrc.nist.gov/pubs/sp/800/61/r3/final
  6. NIST SP 800-207, Zero Trust Architecture - https://csrc.nist.gov/pubs/sp/800/207/final
  7. NIST CSF 2.0 (CSWP 29) - https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf
  8. NIST CSF Tier glossary - https://csrc.nist.gov/glossary/term/csf_tier
  9. NIST AI RMF 1.0 (AI 100-1) - https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf
  10. ISO/IEC 27001:2022 - https://www.iso.org/standard/27001
  11. CIS Critical Security Controls v8 - https://www.cisecurity.org/controls/v8
  12. AICPA SOC 2 / Trust Services Criteria - https://www.aicpa-cima.com/topic/audit-assurance/audit-and-assurance-greater-than-soc-2
  13. FedRAMP program - https://www.fedramp.gov/ and NIST 800-53 controls - https://csrc.nist.gov/projects/risk-management/sp800-53-controls
  14. CISA #StopRansomware Guide - https://www.cisa.gov/stopransomware/ransomware-guide
  15. PlayCISO 3-2-1-1-0 rule - https://playciso.com/blog/ransomware-backup-strategy-the-3-2-1-1-0-rule-that-actually-survives-an-attack
  16. Nakivo 3-2-1 backup rule - https://www.nakivo.com/blog/3-2-1-backup-rule-efficient-data-protection-strategy/ and Veeam https://www.veeam.com/blog/321-backup-rule.html
  17. AvePoint immutable backups (SEC 17a-4 WORM) - https://www.avepoint.com/blog/backup/immutable-backup
  18. Eon DR testing - https://www.eon.io/blog/disaster-recovery-testing
  19. NinjaOne DR testing cadence - https://www.ninjaone.com/blog/how-to-build-a-disaster-recovery-testing-cadence
  20. Helm chart dependencies - https://helm.sh/docs/topics/charts/#chart-dependencies
  21. Helm best practices - https://helm.sh/docs/chart_best_practices/
  22. Kubernetes Kustomize - https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/
  23. NixOS Manual - https://nixos.org/manual/nixos/stable/
  24. Ansible Roles - https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_reuse_roles.html
  25. Kubernetes seccomp profiles - https://kubernetes.io/docs/reference/node/seccomp
  26. Rancher Fleet - https://fleet.rancher.io/
  27. SPIFFE Overview - https://spiffe.io/docs/latest/spiffe-about/overview/
  28. SPIFFE Federation - https://spiffe.io/docs/latest/spire-helm-charts-hardened-advanced/federation/
  29. OpenBao - https://openbao.org/
  30. External Secrets Operator - https://external-secrets.io/latest/
  31. cert-manager - https://cert-manager.io/docs/
  32. cert-manager Vault issuer - https://cert-manager.io/docs/configuration/vault/
  33. Kyverno - https://kyverno.io/docs/
  34. OpenTelemetry - https://opentelemetry.io/docs/
  35. OpenTelemetry Collector - https://opentelemetry.io/docs/collector/
  36. Falco - https://falco.org/
  37. Cluster API - https://cluster-api.sigs.k8s.io/
  38. Argo CD - https://argo-cd.readthedocs.io/en/stable/
  39. OpenGitOps - https://opengitops.dev/
  40. SLSA specification - https://slsa.dev/ and provenance https://slsa.dev/spec/v1.0/provenance
  41. Neo4j open-core licensing - https://neo4j.com/blog/news/open-core-licensing-model-neo4j-enterprise-edition
  42. Neo4j open-source licensing page - https://neo4j.com/open-source-project
  43. Neo4j legal terms - https://neo4j.com/licensing/
  44. Apache AGE - https://age.apache.org/
  45. Memgraph LICENSE (BSL 1.1) - https://github.com/memgraph/memgraph/blob/master/LICENSE
  46. JanusGraph - https://janusgraph.org/ and https://github.com/JanusGraph/janusgraph/blob/master/LICENSE.txt
  47. Papadakis et al., Survey of Blocking and Filtering - https://arxiv.org/abs/1905.06167
  48. Christophides et al., End-to-End ER for Big Data - https://dl.acm.org/doi/abs/10.1145/3418896
  49. Neo4j GDS Node Similarity - https://neo4j.com/docs/graph-data-science/current/algorithms/node-similarity/
  50. Neo4j GDS Filtered Node Similarity - https://neo4j.com/docs/graph-data-science/current/algorithms/filtered-node-similarity/
  51. Neo4j GDS entity resolution - https://neo4j.com/blog/graph-data-science/graph-data-science-use-cases-entity-resolution/
  52. Embedding-Assisted ER for Knowledge Graphs - https://ceur-ws.org/Vol-2873/paper8.pdf
  53. Splink probabilistic linkage - https://github.com/moj-analytical-services/splink
  54. GraphAware Hume - https://graphaware.com/hume
  55. Talos Linux - https://docs.siderolabs.com/talos/v1.14/overview/what-is-talos
  56. SPDX - https://spdx.dev/learn/handling-license-info/
  57. CycloneDX - https://cyclonedx.org/
  58. Markdoc - https://markdoc.dev/

Verdict

Independent Review - ProDG Mainframe (PlantUML + ASCII banner work, 2026-10-05)

Reviewer: independent senior reviewer (spawned via /review) Scope: the recent conversation and the artifacts it references on mainframe.prodg.studio (65.109.89.215), workspace /opt/prodg. Method: every claim below was checked against the live host unless marked read-only.


1. What the work does

The conversation covers three deliverables plus a guide discussion:

  1. PlantUML subdomain - deployed plantuml/plantuml-server:jetty on the shared compose_prodg-internal network, exposed at plantuml.mainframe.prodg.studio, generated one .puml per docs section (10), rendered each to SVG into docs/assets/diagrams/, and wired the SVGs into the docs build + home-page diagram table.
  2. ASCII banners - markdoc/tools/ascii-banners.py stamps a 5-row block-font banner carrying an ASCII-BANNER marker onto project scripts (idempotent).
  3. Termius guide - docs/guides/termius-mobile-ssh-guide.md, published in the Guides section.
  4. A large surrounding body of work: Markdoc docs pipeline, FossFLOW isometrics, docs site, security suite (42 ISMS docs), SOC framework, Talos Track C prototype, Hermes enablement plan.

2. Verdict summary

The shipping work is real and healthy. The claims around it are ~90% accurate; two claims are false as written, one artifact regressed after the report was written, and the surrounding documentation has drifted materially from the live host. No blocking defects in the PlantUML deployment itself.

3. Verified (actually executed against the host)

ClaimResult
PlantUML container healthy[x] plantuml Up 48m (healthy), 127.0.0.1:8092->8080
PlantUML server renders SVG[x] POST/GET /svg -> 200 image/svg+xml
10 .puml sources exist[x] /opt/prodg/markdoc/diagrams/plantuml/*.puml - 10 files
10 SVGs rendered, dark theme[x] #0B1017 background, 10 files in docs/assets/diagrams/
SVGs serve through docs domain[x] https://docs.mainframe.prodg.studio/assets/diagrams/{architecture,overview,security,roadmap}.svg -> 200 image/svg+xml
plantuml + flow subdomains live[x] both 200
Docs site live[x] docs.mainframe.prodg.studio -> 301 -> mainframe.prodg.studio/docs/ -> 200
Caddy config valid[x] caddy validate -> Valid configuration
docs.mainframe.prodg.studio redirects to /docs/[x] implemented as redir ... permanent (line 211)
Banner tool idempotent[x] --check -> 16 already has banner, 1 would insert
Banner syntax safe[x] py_compile all .py, bash -n all .sh, node --check build.mjs - all pass

4. Concrete defects & risks

D1 - prodg-mainframe-mcp-server.py lost its banner after the report (correctness)

D2 - "Both generated from the same section list so they can't drift" is false (design)

D3 - Documentation has drifted from the live host (accuracy)

D4 - generate-plantuml.py is outside the banner tool's target list (consistency)

D5 - Banner TARGETS includes a false-positive path (cosmetic)

D6 - Docs "Current" table is stale: it lists two already-fixed 502s (accuracy)

D6b - Genuinely still open: require_mention, Nexus poller (status fact)

Live extra: prodg-control-room is Up (healthy) on 0.0.0.0:8090, so the container is fine - the earlier 502 was routing (Caddy network attachment), now resolved.

D7 - Security-services stack is crash-looping (not caused by this work, but observed)

5. Verified vs read-only

6. Termius guide - specific note

The guide is live (200) and content-complete. Two accuracy issues the primary agent already flagged are confirmed true in the file:

7. Final verdict

Ship. The PlantUML deployment, SVG rendering, docs wiring and banner tooling all work as described and pass independent execution. Nothing here is broken in production.

But correct two false claims (D2, and "17 files" in D1) and one stale authoritative brief (D3), and re-run the banner pass as part of the build (D1). The recursive improvement plan in 04-IMPROVEMENT-PLAN.md folds these in; 05-BLUEPRINT-mainframe-framework.md generalises the host into a configurable framework.

8. Recommended next steps (ordered)

  1. D1 - move banner stamping into the MCP-server generation step (or exclude auto-generated files); re-run ascii-banners.py; re-verify --check reports 17 already.
  2. D2 - extract one sections.json; repoint both generators at it; delete the duplicated literal.
  3. D3 - regenerate mainframe-brief-2026-10-04.md from live host state (OS, cluster type, node list) or mark it draft: true.
  4. D4/D5 - add generate-plantuml.py to TARGETS with a compatible marker; exclude the tool itself and __pycache__ from the grep audit.
  5. D6 - regenerate the docs "Current" table from live probes (the two 502s are already fixed; the table is what's stale).
  6. D7 - investigate the secure-file-server restart loop.

Components

The components and their health
The components and their health

Component decomposition

Twelve components, each examined through four lenses: strategy, technology, implementation, and the assumption it rests on. Health is the reviewer's call; the next action is the cheapest thing that would falsify the assumption.

#HealthStrategy · Technology · Implementation · AssumptionNext action
1 · Host & Compute[PENDING]Strategy: one sovereign box. Technology: Ubuntu 24.04.5 + Docker/Compose. Implementation: 6 compose projects, 36 containers. Assumption: single server suffices - headroom unvalidated.Add disk/mem/load to the watchdog.
2 · Networking & Mesh[BLOCKED]Strategy: tailnet-first. Technology: Headscale + Tailscale + Caddy TLS. Implementation: subdomain blocks + path routing. Assumption: management-grade isn't public - verify surface.Document effective public attack surface; honour subnet routes.
3 · Container Platform[PENDING]Strategy: compose default, K8s for the curious. Technology: Compose v2. Implementation: per-directory compose (good). Assumption: compose scales - true for one node.Resolve kind-vs-Talos-vs-compose ambiguity.
4 · Kubernetes Layer[PENDING]Strategy: Track C exploration. Technology: kind (live) + Talos (prototype). Implementation: prototype validated, running cluster is kind. Assumption: K8s is the future for added nodes.Pick a canonical K8s track; label the rest lab.
5 · Security & Secrets[BLOCKED]Strategy: defence in depth + ISMS evidence. Technology: OpenBao, Infisical, Vaultwarden, Passbolt, UFW, digest pinning. Assumption: .env interim is acceptable; '100% Checkov' unshown.Fix secure-file-server loop; attach Checkov evidence.
6 · Observability & SIEM[PENDING]Strategy: see and alert on everything. Technology: Prometheus/Grafana/Loki/Wazuh. Implementation: full stack running. Assumption: alerts reach a human - unproven.Add log-bloat + headroom watchdogs; prove alert delivery.
7 · AI Operator (Hermes)[BLOCKED]Strategy: one agent holds root - the differentiator. Technology: Hermes + LiteLLM + MCP + A2A. Implementation: require_mention set not live; A2A configured, no peers exercised. Assumption: agent safe to hold root - needs accepted-risk record.Restart gateway (outside process tree); A2A round-trip test.
8 · App / Productivity Suite[PENDING]Strategy: replace SaaS, own data. Technology: Twenty, Cal.com, Mattermost, DocuSeal, Cryptgeon, Stirling-PDF. Implementation: all healthy via Caddy. Assumption: licences permit this use - unreviewed.Licensing review before productisation.
9 · Documentation & KB[BLOCKED]Strategy: docs ARE the product. Technology: Markdoc, FossFLOW, PlantUML. Implementation: 10 diagrams each, dark theme - but dual hard-coded section lists. Assumption: docs stay truthful - already drifted.Extract sections.json; regenerate or draft-gate the brief.
10 · Tooling & Automation[BLOCKED]Strategy: every fix becomes a tool/skill. Technology: Python/mjs generators, cron, ascii-banners. Implementation: banner tool idempotent but stamps a generated file that wipes it; misses a generator.Move stamping into generation; add plantuml generator.
11 · SOC / Supply-chain[OK]Strategy: vet + monitor every component. Technology: Checkov, Scorecard, fork mirrors, research agents. Implementation: 6 components classified; Scorecard 7.93. Assumption: scanning = safety, no rehearsal.Maintain; add exploit rehearsal.
12 · Backup, DR & Onboarding[BLOCKED]Strategy: survive loss; onboard a human. Technology: rclone->B2, guides. Implementation: backups run, restore NEVER proven; Termius guide stale. Assumption: a backup is a backup - unproven.Prove a restore; fix the Termius guide.

Reading the markers: [BLOCKED] blocking defect - down, or resting on an unverified assumption with real blast radius. [PENDING] risk - works, but the assumption is unproven. [OK] verified healthy.

The three [BLOCKED] components - mesh attack surface, secrets, AI operator - are also the three with the largest blast radius. Not a coincidence: they are the ones nobody had independently checked.

Findings

Findings, with resolution status

Nine defects from the independent review, each re-verified against the live host before acting. One of them (D3) turned out to be half wrong - which is itself worth recording.

#SeverityFindingStatus this pass
D1MedBanner regressed on an auto-generated file. prodg-mainframe-mcp-server.py had 0 markers; its mtime (23:28) post-dated the banner run (22:43), which wiped it.
docs/prodg-mainframe-mcp-server.py
[x] Fixed
D2Med"Shared section list, can't drift" was false. Both generators carried their own hard-coded 10-slug lists - equal by coincidence, not construction.
generate-diagrams.py vs generate-plantuml.py
[x] Fixed
D3MedThe authoritative brief contradicted the host. It said Ubuntu 22.04 / 2-node Talos; the OS half was right to flag, the Talos half was not.
mainframe-brief-2026-10-04.md
[PENDING] Half wrong
D4Lowgenerate-plantuml.py outside banner TARGETS despite the "both generators" claim.
tools/ascii-banners.py
[x] Fixed
D5LowThe banner audit grep self-matched the tool and its .pyc -> over-count.
tools/ascii-banners.py
[x] Fixed
D6MedThe docs "Current" table was stale: it listed /hermes/ and /control/ as 502-blocked when both are live.
docs/index.md §Current
[x] Fixed
D6bOpenGenuinely still open: require_mention is not live; the Nexus bot fights 409 Conflict.
docs/index.md §Current
[BLOCKED] Open
D7Incidentfile-server-authelia + file-server-redis crash-looping - the whole stack had never once worked. Reclassified as an incident by the founder.
docker ps / secure-file-server/.env
[BLOCKED] Incident
D8LowThe Termius guide used docker-compose v1 and a gateway self-restart that cannot work from inside the gateway; it also omitted the tailnet path.
guides/termius-mobile-ssh-guide.md
[x] Fixed

What each fix actually was

D1 - [x] Fixed

The banner is now emitted by context7-auto-updater.sh, so it survives regeneration. Verified by re-running the updater and re-counting.

D2 - [x] Fixed

diagrams/sections.json is the single source of truth; both generators load it and assert_sections_in_sync() fails loudly on divergence. The guard was tested by injecting a section and watching both generators abort.

D3 - [PENDING] Half wrong

The Talos cluster is live - trackc-node and convert-test are both Ready and reachable on their own kubeconfig; kind is merely the default context. Only the OS version was stale: 22.04 -> 24.04.5. The brief now documents both clusters.

D4 - [x] Fixed

generate-plantuml.py added to TARGETS; 19/19 scripts are bannered.

D5 - [x] Fixed

The audit grep now excludes this tool and __pycache__.

D6 - [x] Fixed

Current table corrected - /hermes/ -> 302, /control/ -> 200 - and those rows moved to recently resolved.

D6b - [BLOCKED] Open

Still open by design: hermes gateway restart must be run by a human from outside the gateway, and the Nexus host must stop its own poller.

D7 - [BLOCKED] Incident

Root cause: .env was a byte-identical copy of .env.example, so every secret was blank. Reclassified as an incident by the founder (decision 22) - it needs handling and a retrospective, not just a fix. The stack is stopped and set restart=no; it was deliberately not given invented secrets, since it needs real external credentials (R2, SMTP) and a real domain. Its retrospective becomes the first entry in the incident playbook the governance phase requires (decision 21).

D8 - [x] Fixed

The guide now uses per-stack docker compose, flags the self-restart restriction, and leads with the 100.64.0.1 tailnet path.

The finding the review missed

context7-auto-updater.sh contained a Python docstring inside a bash script, placed before set -e. Every run therefore emitted command not found to stderr and nobody noticed, because the script still exited 0 at that point. It is now a comment block.

That is precisely the class of defect the review's own framing - "which claims can you still trust?" - was built to catch, which is why the review earns its place even where it was wrong.

Blueprint

Blueprint - Configuring a Mainframe Framework

Version 2.0 - 2026-10-05 · generalised, parameterised, testable Supersedes the narrative blueprint at /opt/prodg/docs/BLUEPRINT.md as the spec; that document stays as the field guide.


0. What this blueprint is

A declarative, testable specification for standing up a "Mainframe": one self-sovereign server that provides a mesh network, a self-hosted SaaS suite, a security/observability stack, and an AI operator - configured from a single manifest and proven by a conformance suite.

The previous blueprint told you in prose how one instance was built. This one defines inputs, outputs, invariants, and tests, so a second instance can be produced by someone else and checked mechanically.


1. The manifest (single source of truth)

Everything is driven by mainframe.yaml:

mainframe:
  name: "mainframe"                 # -> <name>.<domain>
  domain: "prodg.studio"
  profile: standard                 # minimal | standard | full
  track: ubuntu                     # ubuntu | talos   (one canonical, the other = lab)
  timezone: "Europe/Amsterdam"

host:
  provider: hetzner                 # hetzner | generic
  ssh_public_keys: ["ssh-ed25519 ..."]

network:
  mesh:
    control_plane: headscale        # headscale | tailscale-saas
    magic_dns_domain: mainframe
  proxy: caddy
  public_ports: [22, 80, 443]
  tailnet_ip: 100.64.0.1            # resolved, not assumed

secrets:
  backend: openbao                  # openbao | infisical | env
  password_manager: vaultwarden

ai_operator:
  runtime: hermes
  gateway_user_service: true
  chat_surfaces: [telegram, discord]
  a2a: { enabled: true, port: 9900, bind: tailnet }
  gateway: { type: litellm, models: [...] }

services:
  # each: name, image (digest-pinned), ports, networks, healthcheck, caddy_block
  core:    [postgres, redis, caddy, headscale, openbao]
  standard:[prometheus, grafana, loki, promtail, cadvisor, node_exporter, wazuh]
  optional:[twenty, calcom, mattermost, docuseal, cryptgeon, stirling-pdf,
            vaultwarden, passbolt, infisical, minio, litellm]

docs:
  builder: markdoc
  diagrams: { iso: fossflow, precise: plantuml }
  sections: sections.json           # SHARED source of truth

backup:
  target: b2                        # rclone remote
  schedule: "0 3 * * *"
  restore_tested: false             # must become true before "done"

Rule: no config knob may exist only in a shell command or a prose doc. If the framework needs it, it lives in the manifest; everything else is generated from it.


2. The seams (where components join)

The framework's value - and its fragility - is at the seams. Each seam has an owner and an invariant.

SeamFrom -> ToInvariant
S1Host -> Dockerservices bind loopback or the shared network, never 0.0.0.0 unless intended
S2Docker -> CaddyCaddy is attached to every network whose services it fronts (the /control/, /hermes/ 502 class of bug)
S3Caddy -> host processesunix-socket (socat) or the docker bridge gateway IP - never the host's tailnet IP from inside a container
S4Services -> secretsloaded via one loader; never printed; .env on disk is a tracked, temporary exception
S5Sections -> diagramsone sections.json feeds both generators (no duplicate literals)
S6Manifest -> everythinginstaller, doctor, and docs all read mainframe.yaml

Every past incident in this instance maps to a seam violation. The blueprint's job is to make the seams explicit.


3. Build order (dependency-correct)

host prep -> dirs -> secrets backend -> postgres/redis/minio
   -> mesh (headscale) -> proxy (caddy) -> observability
   -> ai_operator (hermes gateway, as a user service)
   -> apps (optional tier)
   -> docs build -> diagrams -> backup -> doctor

The AI operator is installed after the network and proxy so it can immediately be exposed and supervised; the docs build is last because it consumes everything.


4. Invariants (must hold after any change)

  1. I1 - Loopback discipline: no service is publicly reachable unless it has an explicit Caddy block.
  2. I2 - Proxy reachability: every declared subdomain returns the expected status and content-type.
  3. I3 - Health: every core/standard container is running and healthy.
  4. I4 - Mesh: the control plane answers; ≥1 client can register.
  5. I5 - Secrets: no secret appears in a file mode other than 600 under a known path; the loader exits non-zero if the backend is unreachable.
  6. I6 - Backup: the newest backup object is < 26 h old.
  7. I7 - Restore: a restore has been proven at least once (restore_tested: true).
  8. I8 - Docs truth: generated docs match host state (OS, cluster, node list, service set).
  9. I9 - Single source: generators share sections.json; a divergence test exists and passes.
  10. I10 - Agent safety: the operator's blast radius is documented and at least one destructive command requires confirmation.

5. Conformance suite - mainframe doctor

Maps 1:1 to the invariants. Runs locally and in CI. This is the artefact that turns the blueprint from documentation into a framework.

mainframe doctor [--json] [--profile standard]
  [ok] I1 loopback    : 36 services checked, 0 unexpected public binds
  [ok] I2 proxy       : 22 subdomains, all expected status/content-type
  [ok] I3 health      : 34 healthy, 0 unhealthy
  [!!] I4 mesh        : control plane up; 0 clients currently online
  [ok] I5 secrets     : backend reachable, no world-readable secret files
  [ok] I6 backup      : newest object 6h 12m old
  [!!] I7 restore     : NEVER TESTED
  [!!] I8 docs truth  : brief says Ubuntu 22.04 / Talos; host is 24.04 / kind
  [!!] I9 single src  : section list duplicated across 2 generators
  [ok] I10 agent      : blast radius documented
  FAIL: 4 invariant(s) violated.         # current host, run against this framework

(The four failures shown are exactly the defects found in this review - which is the proof the suite is calibrated.)


6. Profiles

ProfileServicesTarget
minimalmesh + proxy + secrets + one appa sovereign node in < 1 h
standard+ observability + AI operator + docsthe reference instance
full+ entire app suite + SOC frameworkthe ProDG instance today

Profiles are additive subsets of the manifest - never separate install paths.


7. Anti-patterns (learned the hard way)


8. Definition of done

A Mainframe build is done when mainframe doctor is green - which requires I7 restore_tested: true and I8 pyour docs match the host. Until then it is a build, not a framework.

Roadmap

The phased roadmap, each phase with a falsifiable exit criterion
The phased roadmap, each phase with a falsifiable exit criterion

Roadmap - Mainframe Framework (rev. 2, post-decision)

Horizons are relative, not calendar-committed. Every phase has a falsifiable exit criterion ("proven when...") so progress is evidence, not narrative. This ordering is deliberate: the conformance suite is built before the governance work, because it is also the evidence generator the governance work depends on.

Phase 0 - Truth & hygiene · in flight, largely done

Close the gap between what the docs claim and what the host is.

Phase 1 - Manifest: one source of truth

Extend sections.json into a full platform manifest (mainframe.yaml): every service, its compose project, expected container state, subdomain, healthcheck, and its loadout membership.

Phase 2 - Conformance suite = evidence generator

mainframe doctor: every expected container running/healthy; every subdomain returns the expected status and content-type; every asset serves; secrets backend reachable; tailnet peer count; backup freshness; and it emits a timestamped evidence artefact (the thing an auditor re-runs).

Phase 3 - Installable framework + loadouts

mainframe install --loadout {minimal,standard,full,regulated}: idempotent, .env templating from prompts, service-set selection from the manifest, Caddy snippet generation, post-install doctor.

Phase 4 - Second-instance proof ← THE KILL / CONTINUE GATE

A different person (or a clean agent session with no memory of this host) stands up a Mainframe from the pack alone.

If Phase 4 fails, the framework is not real. Everything after this point is contingent on it.

Phase 5 - Governance: choose the framework, map the controls

Decision 32. Recommendation: NIST 800-53 as the control catalogue, ISO 27001 as the certification shell - 800-53 gives the technical granularity this platform can actually evidence; 27001 gives the management shell a bank's risk function recognises.

Phase 6 - Close the dis-qualifying gaps

The four items that stop a regulated deployment cold, all now unblocked by Phase 5:

  1. Backup/DR - define RPO/RTO, then prove a restore (decision 34). A backup is not real until a restore is proven.
  2. Separation of duties - RBAC, break-glass, dual control; the single-operator development exception ends here (decision 19).
  3. Incident playbook + one tabletop rehearsal (decision 21). First retrospective: the secure-file-server incident (decision 22).
  4. Alert tiers + agent blast-radius envelope - the agent acts freely on approved plans and routes high-risk items to a human; its actions are recorded (decisions 25, 31).

Phase 7 - Promote Talos, then the fleet fabric

Promote Track C (Talos/K8s) to canonical - decision 5/6/9 supersede the earlier "stay on Ubuntu" recommendation. Then the fleet: "a network of nodes securely sharing data and services that evolves over time" (decision 7).

Phase 8 - Open-core productisation

Only after Phase 4 passes: split core vs premium (support, hosting, inference), clean-room licensing pipeline as a supply-chain control, pilot installs on the founding companies.


Cross-cutting: the recursive improvement loop

Every phase ends with the same loop - this is what makes the roadmap recursive rather than linear:

   OBSERVE (host + docs + review)
        │
   DECOMPOSE (components: net, compute, security, AI, docs...)
        │
   RESEARCH (strategy / technology / implementation / assumptions)
        │
   PLAN (one change, with a verify command)
        │
   IMPLEMENT  ──►  VERIFY (executable, re-runnable)
        │
   CAPTURE (write the lesson as a skill/doc; correct any stale claim)
        └──────────────► back to OBSERVE

Rule: every cycle must retire at least one false claim or stale doc. In a regulated target this is not housekeeping - it is the control that keeps the evidence trustworthy as the platform grows. The two false claims and one stale brief found in this review are assets, not embarrassments: they are the loop's raw material, and the reason the loop exists.

The critical path

P0 truth ──► P2 doctor (evidence) ──► P4 second instance ══╗
                 ▲                                        ║  KILL GATE
P1 manifest ─────┘                                        ║
                                                          ▼
                     P5 governance ──► P6 dis-qualifying gaps ──► P7 Talos + fleet ──► P8 open core

The shortest path to a credible regulated offering runs through P2 -> P4 -> P5. The shortest path to a demo skips all three - which is exactly the trap the review's false claims came from.

Recursive loop

The recursive improvement loop
The recursive improvement loop

Improvement Plan - Recursive, Component-by-Component

This is the executable companion to the roadmap. It decomposes the Mainframe into 12 components, assesses each against four lenses (Strategy / Technology / Implementation / Assumptions), and gives the next single move per component. Then it applies the recursive loop: each fix is captured so the next pass is cheaper.

Legend for "next move": [BLOCKED] fix now · [PENDING] schedule · [OK] maintain.


Component 1 - Host & Compute

Component 2 - Networking & Mesh

Component 3 - Container Platform

Component 4 - Kubernetes Layer

Component 5 - Security & Secrets

Component 6 - Observability & SIEM

Component 7 - AI Operator (Hermes)

Component 8 - Application / Productivity Suite

Component 9 - Documentation & Knowledge Base

Component 10 - Tooling & Automation

Component 11 - SOC / Supply-chain Security

Component 12 - Backup, DR & Onboarding


The recursive loop, applied

Each [BLOCKED] move is small, verifiable, and leaves a written lesson:

#MoveVerify commandCapture
1Stamp banners during generationpython3 tools/ascii-banners.py --check -> 17patch MCP generator
2Extract sections.jsonregenerate both diagram sets; diff = 0new mainframe-diagrams skill
3Regenerate the brief from hostgrep OS/cluster in brief == hostdoc-truth CI check
4Prove a restorerestore into a scratch volume; comparemainframe-dr skill
5Close the 502scurl -o /dev/null -w '%{http_code}' -> 200Caddy network note

After every pass, re-run the decomposition: what new false claim did this create? That question is the recursion.

Decisions

The governing objective, and what it forces
The governing objective, and what it forces

Decision Log - Quick Decisions

Recorded: 2026-10-05 · Decided by: Mitch / Founder · Source: answers to the Open Questions form (pack §Open questions), extracted and folded into decisions here.

A quick decision is binding until superseded. Each entry records the answer, the reasoning behind it, and the consequence - so the pack stays self-reconciling rather than becoming a snapshot of one conversation.


⚖️ The governing objective

"The aim is for this to be secure and compliant enough to be deployed in the most sensitive high-risk environments, with the relevant governance provisions to withstand the most complex regulatory environment. Think banks / governments / defence."

This single statement re-frames the whole pack. Everything below is downstream of it, and it changes the previous recommendation materially:

WasNow
"A self-hosted SaaS alternative for solo technical owners"A high-assurance platform for regulated, adversarial environments
Optimise for cheap and just-worksOptimise for provable, auditable, governable
"Productise the instance"Productise the pattern - open-source the core, sell premium
Security = defence in depth, best effortSecurity = evidenced control, with governance provisions
Assumption validation is hygieneAssumption validation is the product - in a bank, an unevidenced claim is a liability

The bar is no longer "does it run?" but "can you prove to a regulator that it ran correctly, and that you would have known if it hadn't?" That is a documentation-and-evidence engineering problem as much as a technical one - which is precisely the asset this platform has been accidentally building.


At a glance

#QuestionDecisionConsequence
1Product / platform / lab?All three - research project that evolvedDesign for productisation without blocking research
2Target persona?Small teamMulti-operator, separation of duties becomes a requirement, not a nicety
3Out of scope?Nothing - once it graduates a process that assigns responsibilityA graduation gate must exist; scope is managed by process, not by exclusion
4Build / sell / open-source?Build, open-source the core, sell premium (support, hosting, inference)Open-core business model; core must be genuinely usable alone
5Canonical track?TalosUbuntu becomes dev/legacy; kind is transitional only
6Why kind, not Track C?Pending promotionTrack C promotion is a scheduled workstream, not an open question
7VPS vs fleet?Fleet - nodes securely sharing data and services, evolving over timeSingle-VPS assumptions throughout the pack are now wrong; needs a fabric model
8Too many services?None - research and define core + loadoutsService tiering becomes a defined artefact, not a judgement call
9Compose vs K8s for apps?K8sCompose is dev-time ergonomics; K8s is the deployment target
10Stop "can't drift" claims?D2 - enforce it, don't assert itAlready fixed in this pass; the pattern is now a rule
11Decorate auto-generated files?D1 - decoration must be part of generationAlready fixed; manual passes over generated files are forbidden
12Keep docs truthful?D3 - machine-verified or explicitly labelled unverifiedNeeds a doc-verification check, not discipline
13Verification contract for agent work?Research and present optionsOpen workstream: define what an agent must prove before claiming done
14"Single self-sovereign server"Agreed - but validation must exist before asserting the claimClaims gain a validation precondition
15"Nothing management-grade is public"Assume addressed by the zero-trust hardening phaseZero-trust moves from "25% nice-to-have" to gate on the public claim
16"100% Checkov compliance"If it isn't, every claim needs auditable, verifiable proofEvidence generation becomes a first-class deliverable
17"99.9%+ uptime"North star, unvalidatedMust be labelled an aspiration until measured
18Backup / DRNot sureOpen - and disqualifying for regulated environments until resolved
19Separation of dutiesDev-time exception (single operator); provisions must be builtRBAC + break-glass + dual control required before any regulated deployment
20Licensing reviewClean-room rewrite inside the supply-chain pipelineClones the SOC framework into a licensing control; strong for defence
21Breach / incident playbookMust be built to the governance frameworkDepends on choosing a framework (see below)
22secure-file-server crash-loopingIncidentReclassified from "observed defect" to incident; requires handling + a playbook
23Bus factor = 1Pilot installs, onboarding material, living docs, interfaces (TUI/MCP), skillsKnowledge externalisation is the mitigation; pilot on founding companies
24Upgrade cadence / pinningNone at present - define roles and requirements, then build an agentAn agent owns patching; the policy is its spec
25Who answers alerts?Tiered by risk - approved plans proceed; high-risk and regulated differNeeds an alert-tier model tied to the governance framework
26Quartz vs Markdoc?MarkdocQuartz is retired; the paused cron need not return
27Banner/grep over-countD5Already fixed
28Runtime config locationResolve per best practiceOpen workstream: define the config precedence and location policy
29require_mention not liveAdd as an item to be resolvedRecorded in Current; needs a human-run gateway lifecycle command
30A2A meshUnsure - investigate and operationaliseOpen workstream: assess current state, then make it real
31Agent blast radiusStandard - must adhere to governance principlesThe agent operates under the same governance envelope as a human operator
37Is v0.1 cleared for use?Yes - approved 2026-10-08 for internal deploy, test and pilotThe registry and tooling at v0.1 are cleared for internal use; external/regulated use still waits on the graduation gate (33)
38Rewrite trackKeep a rewrite-track entry for each of the adoption registry and the interfacesEvery component and interface carries a track; the study_and_rewrite entries are the queued clean-room targets, each with spec_to_mine and clean_room

What these decisions actually commit us to

A. The security posture changes ambition, not just emphasis

Answer 1+2+3 together say: there is no scope fence. Everything may eventually graduate - "graduation" being a process that assigns responsibility. Combined with the governing objective, this means the platform needs a graduation mechanism: a defined process by which a component moves from research -> governed operation, with the responsibility and evidence that implies.

That mechanism does not exist yet. It is the single most important new artefact this decision set creates.

B. Three decisions invalidate existing pack assumptions

  1. Fleet (7) - the pack's blueprint assumes one node. "A network of nodes securely sharing data and services that evolves over time" is a fabric, which changes networking, identity, secrets distribution, and observability. Large.
  2. K8s (9) + Talos (5) - the blueprint's "stay on Ubuntu/Docker Compose" recommendation is now superseded. Talos/K8s is the target; Compose is a dev-time convenience.
  3. Open core (4) - the business case previously hedged between product/instance/methodology. It is now: core open, premium = support + hosting + inference. That is a concrete model.

C. Four items are now blocking, not open

ItemWhy it blocks
Backup/DR (18)A regulated deployment cannot proceed without a proven restore. "Not sure" is a stop condition.
Separation of duties (19)Single-operator is tolerable in development; it is an audit finding in production.
Incident playbook (21)Regulators require a rehearsed one. It also has an immediate customer: the secure-file-server incident (22).
Evidence trail (16, 14)In a bank, an unverifiable claim is worse than no claim. Every assertion needs a proof artefact.

D. The governance framework is the missing keystone

Four separate answers (21, 25, 31, and the governing objective) depend on a framework that has not been chosen: which governance standard the platform will be audited against.

Candidate families, to be resolved as decision 32:

Recommendation: NIST 800-53 as the control catalogue, ISO 27001 as the certification shell. 800-53 gives the technical granularity this platform can actually evidence; 27001 gives the auditable management shell that a bank's risk function recognises. FedRAMP-style control mapping also positions the defence/government track without a second body of work.

E. Decisions that create agent work

Three answers ask for an agent to be built rather than a task to be done:

This is coherent with the platform's own thesis (an agent holds root) and should be scoped as governed agency: the agent acting inside an approval envelope, not outside it.


Open decisions this set creates

#New questionBlocks
32Which governance framework is the audit target?18, 21, 25, 31 and the governing objective
33What is the graduation process - research -> governed operation?Answer 3 (no scope fence)
34What is the backup/DR target (RPO/RTO) and has a restore been proven?Regulated deployment
35What does "loadout" mean concretely, and which are supported?Answer 8
36What is the fleet fabric - identity, secrets distribution, observability across nodes?Answer 7

These replace the twelve questions now closed above.


37-38. The v0.1 approval and the rewrite track

Recorded: 2026-10-08 · Decided by: Mitch / Founder

37 - v0.1 is cleared for internal use. The registry set and its tooling at v0.1 are approved for internal deploy, test and pilot. This is an internal-only clearance: the graduation gate (33) and the governance framework (32) still stand between v0.1 and any external or regulated deployment, and the blocking items in §C above still block.

38 - the rewrite track is standing, and spans both registries. Every entry in the adoption registry and every interface carries a track:

The two verdicts coexist by design: a component can be BORROW or SKIP for adopt-and-run and carry a rewrite-track entry at the same time, so neither half is ever cited without the other. The first six targets queued are Zitadel and Keycloak (identity), rsync and Syncthing (synchronisation) and MinIO and Garage (object storage) - Garage already being Rust, it is the benchmark rather than a target. Thirteen interfaces are on the track; the two first-party surfaces (Docs, Control Room) are explicitly not. The track is the queued target list for the clean-room pipeline, held as data rather than as a chat summary.

Registry graph

Sixteen registries joined into one graph. Nothing exists outside a registry; an unregistered dependency is a finding.
The registry-driven model: a registry of registries, entries and the doctor
The registry-driven model: a registry of registries, entries and the doctor

Registry-Driven Methodology - research & design

Status: research complete, prototype built, one blocking licensing decision Target: every platform component described by a registry; relations mapped in a graph Chosen stack: Neo4j 5 + APOC - not GraphAware (see §2, which corrects the brief)


0. The idea in one paragraph

Today the mainframe's truth is scattered: services are in docker ps, configuration is in compose files, knowledge is in markdown, intent is in the pack, provenance is in git. A registry-driven methodology inverts this. Every kind of thing the platform knows about gets an authoritative registry - one writer, one definition, one lifecycle - and everything else (configs, docs, diagrams, inventories, conformance checks, agent context) is derived from those registries rather than maintained alongside them. The registries are then joined into a graph, because the questions that actually matter - what is the blast radius if this dies?, which standard governs this control?, what breaks if this partner leaves? - are questions about relations, not rows.

The discipline that makes it driven rather than merely documented is a single rule:

Nothing exists outside a registry. An unregistered dependency is a finding, not an oversight.


1. What the research says

1.1 The registry tradition

SourceContributionWhat it means here
Fowler, P of EAA - RegistryA well-known object others use to find common objects and servicesThe entry point: stable keys, lookup decoupled from creation
Registry Architecture / Registry Information ModelA registry is described by metadata - the structures and relationships it can hold - not by a fixed schemaThe breakthrough: the registry of registries (§3.2) is the canonical form of this
Single Source of Truth (SSOT)Every data element is mastered in exactly one place; everywhere else holds a referenceOne writer per registry, declared as data
Metadata-driven architectureBehaviour is generated from externalised metadata and policy, not hard-codedConfigs and docs become generated artefacts
Attribute registry / enterprise data elementsA structured catalogue of the attributes describing key business dataThe per-registry required property list
Data catalog / lineage practiceMetadata managed as a first-class asset; lineage as a graphNeo4j's own financial-services lineage offerings

The critique worth carrying from the metadata-driven literature: "fashion is dangerous in enterprise architecture - it encourages organisations to install machinery they cannot operate." This design is deliberately small: one database, one indexer, sixteen registries. It earns its keep by replacing work (drift, manual inventories) rather than adding ceremony.

1.2 Why a graph, not tables

Registries are naturally tabular - but the value is in the joins between them, and those joins are unbounded and recursive:

Doing that in SQL means recursive CTEs and a join table per relationship type. In a property graph it is one pattern. Neo4j's own framing is the knowledge layer under AI systems: precise, explainable retrieval over connected data - which is exactly what an agent needs to answer "what depends on this?"

1.3 [!] GraphAware - the brief needs correcting

This is the most important finding in the document. The instruction was to use Neo4j and GraphAware. Researched against primary sources, that pairing does not exist as described:

FactDetail
The GraphAware Framework is retiredAnnounced May 2021. Repos archived; code remains available under GPLv3. Works on Neo4j 3.x; "some modules may work on 4.x - no guarantees."
Its useful modules moved to APOCGraphAware themselves contributed modules (e.g. random-graph generators) into APOC; they describe APOC as "the place to go for custom Neo4j functionality, and rightly so."
GraphAware Hume is the current productA commercial, government-grade intelligence-analysis platform (explicitly positioned as an open-standards alternative to Palantir Gotham). Industries: law enforcement, financial authorities, national security. Supports Neo4j 5 / 2025 / 2026.
Neo4j acquired GraphAwareAnnounced and closed 5 August 2026.

Conclusion: "Neo4j + GraphAware" on a modern stack cannot mean the OSS framework - it is a Neo4j 3.x-era artefact. The faithful modern equivalents are:

  1. Neo4j 5 + APOC - the framework's successor for utility procedures. This is what the prototype uses.
  2. GraphAware Hume - a commercial upgrade path, and a genuinely relevant future dependency given the founder's stated market (law enforcement / financial authorities / national security is precisely the declared target). It is a buy, not a build.

Both are noted; neither is silently substituted.

1.3.1 The organisation, assessed repository by repository

The instruction pointed at the GitHub organisation itself, so every candidate repo was checked individually. The org holds 98 repositories. The split is stark.

Archived, and confirmed as such. The framework, its modules and the client libraries all carry GitHub's Public archive marker: neo4j-framework, neo4j-uuid, neo4j-timetree, neo4j-reco, neo4j-nlp, neo4j-to-elasticsearch, neo4j-triggers, neo4j-php-client. They are the Neo4j 3.x generation. Archived means read-only: no issues, no pull requests, no fixes. Adopting one is a one-way dependency on a dead branch.

Open, and genuinely current. A smaller set is live and relevant:

repositorywhat it islast activity
neo4j-config-clideclares a Neo4j database's desired configuration state from a JSON definition, Apache-2.0September 2025
hume-helm-chartsHelm charts for deploying GraphAware Hume on KubernetesSeptember 2026
hume-quickstartlocal Docker playground for Hume training, CypherSeptember 2026
cypher-toolsmicroservice exposing Cypher utilities, Apache-2.0August 2024
hume-starters, hume-configuration-as-code-exampleHume onboarding material2022 to 2024

The important find is neo4j-config-cli. It is Apache-2.0, it is version-independent of the dead framework, and it does exactly the thing this methodology argues for elsewhere: it treats a declarative definition as the source of truth and reconciles the database to it. That is registry-driven thinking, shipped, licensed permissively, and independent of any Hume purchase.

The Hume charts and quickstart are public, but they deploy a commercially licensed application. They are useful now as a way to evaluate Hume, and useful later as the mechanism if Hume is bought. They are not a way to obtain Hume for free, and nothing here should pretend otherwise.

The ranked conclusion. neo4j-config-cli is worth adopting. cypher-tools is worth a look if its utilities overlap. The Hume repositories are an evaluation path for open question 39, not a dependency to take today. Everything archived stays archived.

The full per-repository assessment with sources is in the pack research directory.

1.4 [!] The licensing constraint that blocks the regulated target

Researched licensing position:

CapabilityCommunity (GPLv3)Enterprise (commercial)
Single instance[x][x]
Clustering / HA[ ][x]
Online backup & restore[ ][x]
Role-based access control[ ][x]
Sub-graph access control[ ][x]
Multiple user databases[ ][x]

Indicative pricing: Aura $65/GB RAM/mo (Professional) -> $146/GB/mo (Business Critical); self-managed Enterprise contact-sales (typically 20-35% cheaper than Aura over three years); Bloom $1,200-2,500 per user per year; GDS $10,000-50,000+ per year.

Why this matters more than anything else here. The founder's decisions require separation of duties (decision 19) and a proven restore (decision 34). Community edition provides neither RBAC nor online backup. So:

A regulated deployment cannot run on Neo4j Community. Community is correct for the research prototype; the production path needs either Enterprise licensing or an alternative whose open edition carries RBAC and backup.

Alternatives worth evaluating before committing (all open, all with real access control):

OptionWhy it is credible here
Apache AGE on PostgreSQLPostgres is already deployed on this host. AGE adds openCypher to it, so the graph inherits Postgres's mature RBAC, backup/restore, audit and encryption - the exact capabilities Community Neo4j lacks. Strongest sovereign candidate.
MemgraphIn-memory, Cypher-compatible, open core.
JanusGraphApache-licensed, pluggable storage and external auth; heavier operationally.

This is recorded as decision 37 (see §7).


2. The registry model

The registry-driven model: a registry of registries, entries, and the doctor that enforces the closed world

2.1 The sixteen registries

Each registry is a node in the graph - self-describing. It declares its own authority (who may write), its required properties, and its consumers (what is generated from it).

RegistryHoldsRequiredPrimary consumers
inferencemodels, providers, routingname, provider, modality, statusagent, docs, litellm
datasourceevery store read/writtenname, engine, class, residencybackup, doctor, ISMS
technologysoftware run, version, licence, pinname, version, licencedoctor, supply-chain, ISMS
partnervendors, customers, pilot companies, authoritiesname, relationship, statusCRM, legal
projecttracked workstreamsname, stagedocs, roadmap
entityresolved real-world entitiesname, entity_typegraph, CRM
referencestandards, papers, advisories, licences citedname, ref_typedocs, ISMS
methodologyhow the platform does thingsname, stagedocs, agent
strategydeclared intentname, horizonpack, roadmap, governance
nodemachines and cluster membersname, role, reachabledoctor, mesh, k8s
servicecontainer, port, subdomain, healthcheckname, state, exposuredoctor, Caddy, monitoring
decisionbinding decisions + consequencename, decided_by, statuspack, governance
interfaceevery surface a human or agent reaches the platform throughname, urldocs, Caddy, onboarding
agentevery agent that can act, with its role, runtime and skillsname, rolegovernance, Control Room, blast radius
loadoutnamed, versioned bundles of services provisioned as one unitname, versionfleet, provisioning, roadmap
devicecapability-scoped endpoints, identified by tailnet identityname, device_typemesh, device-API

2.2 The registry of registries

The Registries themselves are (:Entry) nodes in a _meta registry. This is what turns a list of catalogues into a methodology: adding a registry is a data change, not a code change, and the set of things the platform knows about becomes queryable:

MATCH (r:Registry) RETURN r.key, r.authority, r.required, r.consumers

It also makes the conformance checks generic - mainframe doctor can validate any registry against its own declared requirements without knowing what it is.

2.3 Shape

(:Registry {key, authority, required[], consumers[]})
      ▲
      │ IN_REGISTRY
      │
(:Entry:Service {registry:'service', key:'caddy', state:'running', health:'healthy'})
      │
      │ RUNS_TECHNOLOGY        PERSISTS_TO        ROUTES
      ▼                        ▼                  ▼
(:Entry:Technology)      (:Entry:Datasource) (:Entry:Inference)

Relationship types are verbs, and every fact carries provenance - source plus updated. In a regulated target, an unattributed fact is not evidence.

2.4 The closed-world check - what makes it driven

Sixteen conformance queries ship across doctor.cypher and doctor-registries.cypher. Each returns zero rows on a conformant platform:

CheckCatches
unregistered_entrya thing that exists but is in no registry
missing_provenancea fact with no declared source
missing_required_propertya registry entry missing a property its own registry demands
unauthorised_writera registry written by an authority other than the one declared
dangling_relationan edge pointing at something never registered
unregistered_technologya running service whose technology is unmanaged supply chain
high_blast_radiusentries with ≥3 dependents - the concentration-risk view
strategy_without_methoddeclared intent that no methodology serves
service_without_loadouta registered service in no loadout
loadout_without_corea loadout that does not transitively require core
mandatory_loadout_countnot exactly one mandatory loadout
agent_without_interfacean agent nothing can reach
agent_skill_unregisteredan agent declaring skills that do not exist
interface_without_backing_servicean interface with no matching service
device_without_capabilitiesan unscoped device endpoint
agent_without_runtimean agent with unknown execution surface

3. Prototype - built and run against the live host

Not a sketch: tools/index-mainframe.py reads the actual platform and emits an idempotent Cypher seed. Current output against this host:

RegistryEntries
service34
technology33
datasource11
node10
decision5
reference5
project4
inference3
strategy3
methodology2
TOTAL110 entries, 93 relations

Sources actually read: docker ps (name, image, tag, health), per-project docker compose config, Headscale node list, two kubeconfigs (kind + Talos Track C), pg_database via the prodg role, /app/config.yaml inside the litellm container, and the docs tree.

Design choices that matter:

Artefacts: neo4j/schema.cypher, neo4j/seed.cypher (generated, 45 KB), neo4j/doctor.cypher.


4. What this changes about engineering practice

  1. Inventories stop being documents. The service/technology/node inventories become queries.
  2. Diagrams can be generated. A PlantUML deployment diagram derived from the graph cannot drift from the deployment - the same "generated, not asserted" rule as the ASCII banners and section list.
  3. The agent gets a map instead of a search. "What depends on Redis?" is a one-hop query, not a grep across compose files.
  4. Onboarding gains a spine. A new operator reads twelve registries rather than inferring the platform from docker ps and tribal memory.
  5. Governance becomes queryable. strategy_without_method is the difference between having a governing objective and being governed by it.

5. Risks


6. Deployment state

StepState
Research (this document)[x] complete
Registry schema + meta-registry[x] written (schema.cypher)
Indexer + generated seed & doctor[x] built, run, 110 entries / 93 relations
Neo4j container deployed⏸ awaiting approval - the docker compose up was declined
Graph populated⏸ blocked on the above
Doctor run green⏸ blocked on the above

One command brings the graph up (password is generated into a 600 .env, never printed):

cd /opt/prodg/neo4j && docker compose up -d && \
  docker exec -i neo4j cypher-shell -u neo4j -p "$(cut -d= -f2 .env)" -f - < schema.cypher && \
  docker exec -i neo4j cypher-shell -u neo4j -p "$(cut -d= -f2 .env)" -f - < seed.cypher

7. Open decisions this creates

#QuestionBlocks
37Neo4j Enterprise (commercial) or an open alternative with RBAC - Apache AGE on the existing PostgreSQL, Memgraph, JanusGraph? Community edition cannot satisfy separation of duties or online backup.Any regulated deployment of the graph
38Which registries are authoritative vs derived? Generating configs from the graph is the point - but it is a migration.The drift risk in §5
39Is GraphAware Hume a candidate dependency? Its market (law enforcement, financial authorities, national security) is the declared target - as a buy, not a build.Intelligence-analysis capability
40What is the entity-resolution policy for the entity registry - and does it inherit the clean-room supply-chain rule?Identity across registries

GraphAware

GraphAware GitHub organisation - usability assessment

Assessment of what of the GraphAware GitHub organisation (https://github.com/graphaware) is genuinely usable today for a self-hosted, regulated-environment knowledge-graph platform on a modern Neo4j 5 stack, with no commercial Hume licence assumed.

All facts below were verified against the live GitHub REST API and raw repository contents on 2026-10-06. Where a claim is a judgement rather than a verified fact, it is marked as such.

Context already established (primary sources)

Organisation-wide facts (verified)

Verified via GET https://api.github.com/orgs/graphaware and GET https://api.github.com/orgs/graphaware/repos?per_page=100 (paginated) on 2026-10-06:

The 25 archived repositories (full list, verified archived: true):

elasticsearch-tests-integration, graph-aided-search, graphaware-starter,
neo4j-algorithms, neo4j-bolt-php, neo4j-changefeed, neo4j-expire,
neo4j-framework, neo4j-nlp, neo4j-nlp-docker, neo4j-nlp-opennlp,
neo4j-nlp-stanfordnlp, neo4j-noderank, neo4j-php-client, neo4j-php-ogm,
neo4j-reco, neo4j-relcount, neo4j-resttest, neo4j-tests-integration,
neo4j-timetree, neo4j-to-elasticsearch, neo4j-triggers, neo4j-uuid,
neo4j-warmup, recommendations-meetup

Candidate repositories - individual assessment

Each row was verified by fetching the repository record (archived, license.spdx_id, pushed_at), the latest commit (GET /repos/graphaware/<repo>/commits?per_page=1), and the raw README at the default branch.

RepositoryWhat it doesLicenseLast commitStatusUsable without a Hume licence?
neo4j-config-cliNeo4j utility that ensures a desired database configuration state from a JSON file definition (databases, users, roles, GraphQL, etc.); shipped as graphaware/neo4j-config-cli Docker image; latest tag 2.7.3Apache-2.02025-09-17Active, maintained, not archivedYes
cypher-tools"Experimental project exposing cypher tooling features as a rest service"; core feature is schema-direction enforcement for LLM-generated Cypher (/enforceSchema)Apache-2.02024-08-28Not archived, but dormant (no commits for ~2 years); self-described "experimental"Yes
hume-helm-chartsOfficial Helm charts for deploying Hume on Kubernetes; requires Kubernetes 1.19+, Helm 3.2+, a GraphAware account with access to docker.graphaware.com, and a Hume licence keyNo license file detected (all rights reserved)2026-09-24Active, maintained, not archivedNo
hume-quickstartLocal Docker Compose playground running Hume with Neo4j (Enterprise) and Keycloak, for training/evaluationProprietary - "Copyright (c) 2026 GraphAware Limited. All rights reserved."2026-09-17Active, maintained, not archived (created 2026-06-18)No
hume-startersDocker Compose demo bundle deploying Hume Orchestra (docker.graphaware.com/public/hume-orchestra) plus Neo4j 4.2.5 Enterprise; no README presentNo license file (all rights reserved)2021-07-15Dormant, not archivedNo
hume-configuration-as-code-exampleExample Hume Movies knowledge graph configured from YAML (roles, users, GraphQL API key, actions)No license file (all rights reserved)2022-03-16Dormant, not archivedNo
hume-iframe-exampleExample Docker setup for iframing Hume inside a React parent app, with Keycloak SSONo license file (all rights reserved)2021-10-18 (branch push recorded 2024-11-18)Dormant, not archivedNo
graph-aided-searchElasticsearch plugin offering Neo4j integration for personalized search (bi-directional Neo4j/Elasticsearch integration)GPLv3 (gpl.txt)2021-05-05Archived / retired (explicit "RETIRED" notice, May 2021)Yes in licence terms, but unusable (archived, Neo4j 3.x era)

Key evidence URLs:

Caveats on the "usable" columns

Archived legacy repositories (confirmed)

The following legacy repositories were each confirmed archived: true via the GitHub API, with last commit activity as shown. All are GPLv3-era (Neo4j Framework family) unless noted and target Neo4j 3.x. The common last commit date of 2021-05-05 aligns with the May 2021 retirement.

RepositoryWhat it didArchivedLast commitNotes
neo4j-frameworkGraphAware Neo4j Framework (base runtime modules)Yes2021-05-05250 stars; GPLv3
neo4j-uuidRuntime module assigning a UUID to every node/relationshipYes2021-05-05106 stars
neo4j-timetreeJava and REST APIs for time-representing trees in Neo4jYes2021-05-05210 stars
neo4j-triggers"Neo4j Triggers on Steroids"Yes2021-05-058 stars
neo4j-nlpNLP capabilities in Neo4j (OpenNLP/Stanford NLP)Yes2021-05-05344 stars; homepage now points at hume.graphaware.com
neo4j-recoRecommendation engine module (real-time and pre-computed)Yes2021-05-05387 stars
neo4j-to-elasticsearchFramework module integrating Neo4j with ElasticsearchYes2021-05-05266 stars

Also confirmed archived (relevant adjacent repos, not in the requested list): neo4j-php-client (MIT, archived, last commit 2021-11-30), neo4j-changefeed, neo4j-expire, neo4j-warmup, neo4j-relcount, neo4j-algorithms, graphaware-starter.

Evidence URLs (append /commits via the API to reproduce):

Ranked recommendation

Ranking is for a self-hosted, regulated, Neo4j 5 based knowledge-graph platform with no assumed commercial Hume licence.

Adopt

  1. neo4j-config-cli (Apache-2.0, active, last commit 2025-09-17, latest tag 2.7.3). The single most useful repository in the organisation for this environment. It implements configuration-as-code for a Neo4j server from a JSON definition and is freely licensed. It fits regulated delivery because state is declarative, reproducible and diffable. Adopt it as a deployment/provisioning helper. Caveat: pair it with Neo4j Enterprise if the target configuration relies on multiple databases, RBAC or fine-grained access control, since those capabilities are Enterprise-only; on Community Edition expect a reduced usable surface.

  2. cypher-tools (Apache-2.0, dormant, last commit 2024-08-28). Adopt only as a vendored, pinned experiment, not as a supported dependency. Its schema-direction enforcement for LLM-generated Cypher is directly relevant to an agent-operated platform, but it is explicitly "experimental", has ~2 years of no commits, and needs security review before it sits anywhere near production. Build our own thin equivalent if maintenance matters.

Do not adopt (licence-gated)

  1. hume-helm-charts, hume-quickstart, hume-starters, hume-configuration-as-code-example, hume-iframe-example. These are only usable with a commercial Hume licence and access to docker.graphaware.com. Two of them (helm-charts, quickstart) are genuinely maintained, so they are current product material, not abandoned code, but they are not deployable in a licence-free open stack. Treat as reference material for how Hume is packaged, or revisit only if a Hume licence is purchased.

Dead weight (archived)

  1. graph-aided-search and the entire archived Framework family (neo4j-framework, neo4j-uuid, neo4j-timetree, neo4j-triggers, neo4j-nlp, neo4j-reco, neo4j-to-elasticsearch). Retired May 2021, archived, GPLv3, Neo4j 3.x era. Do not adopt: they do not run on Neo4j 5, receive no fixes, and GPLv3 is a poor fit against a proprietary regulated build. Modern equivalents (UUID handling, time trees, triggers, NLP, recommendations) are better served by Neo4j 5 built-ins, APOC/GDS, and application-layer code.

Top recommendation

Adopt neo4j-config-cli as the one genuinely usable, freely licensed, actively maintained GraphAware repository for a Neo4j 5 stack; treat cypher-tools as an optional vendored experiment; and classify every hume-* repository as licence-gated and every archived Framework repository as dead weight.

Playbooks

Nine scenarios composed from one vocabulary of thirty-five primitives. A new scenario is a composition, not a document.

Playbook framework

The problem with writing playbooks

The obvious way to build incident response is one document per scenario: a breach playbook, a data-loss playbook, a certificate playbook, an agent-misbehaviour playbook. That approach fails in a specific and predictable way. The documents diverge. The same containment step is described three ways in three files. A lesson learned in one scenario is not applied to the others. And when the governance framework changes, every document has to change to match.

The founder's decision was that playbooks must adhere to the governance framework. The instruction for this work was to focus on the meta-structure and the primitives, so that a playbook applies across scenarios.

The design: three layers

layerislives in
Primitivethe vocabulary. An atomic, parameterised action.registries/primitives.yaml
Phasethe grammar. A fixed phase vocabulary that orders work.declared in the primitive registry metadata
Playbookthe sentence. A composition of primitives bound to parameters, in a phase order, for one scenario.registries/playbooks.yaml

The whole argument in one line: correctness lives in the vocabulary, scenario knowledge lives in the composition.

Layer 1: the primitives

A primitive is a verb, and it is scenario-agnostic. If an action only makes sense in one scenario, it is a step, not a primitive.

There are three categories, and the distinction matters because they have different risk profiles:

intentprimitivescharacter
observecollect-state, query-registry, read-logs, snapshot, hash-artefactread-only, never gated
assessclassify-severity, scope-impact, check-conformanceread-only, never gated
decidegate-approval, declare-incident, assign-rolethe human control points
actisolate, contain, stop-service, start-service, rotate-secret, revoke-credential, restore-backup, failover, rebuild, apply-loadoutthe mutating set, mostly gated
communicatenotify, page-oncall, update-statusoutward-facing
recordrecord-evidence, open-ticket, log-decision, update-registrythe audit trail
verifyverify-health, verify-restore, verify-absence, re-run-evidencethe proof set
learnpostmortem, close-incident, promote-controlthe loop closing

Thirty-five primitives in total.

The property that makes governance inherit

Every primitive declares four governance properties:

propertymeaning
risklow, medium, high or critical
approvalnone, tier-dependent or required
reversiblewhether the action can be undone
evidencethe artefact the action must produce

This is the design decision that does the most work. Because approval and reversibility are properties of the verb, every playbook that uses restore-backup inherits "requires human approval, not reversible, must produce a restore record" without restating it. Governance cannot be forgotten in a scenario, because it was never written into the scenario in the first place.

Eleven of the thirty-five primitives are gated. revoke-credential, restore-backup, close-incident and promote-control require approval outright, regardless of tier, because they are not reversible or they close a record.

Layer 2: the phases

A nine-phase vocabulary, drawn from the established incident-handling models but generalised past incidents so the same structure carries change, recovery, rehearsal and provisioning work:

prepare -> detect -> assess -> contain -> resolve -> recover -> verify -> communicate -> learn

A playbook selects a subset and orders it. A restore drill does not contain a containment phase. A node onboarding does not contain an eradication phase. The vocabulary is fixed; the selection is the scenario's contribution.

This is also what makes the framework auditable. A reviewer can ask "which playbooks have a verify phase" and get an answer, because verify means one thing everywhere.

Layer 3: the playbooks

Nine scenarios ship today, and they are the demonstration that one vocabulary is enough:

playbookclasswhat it is for
incident-responseincidentthe generic lifecycle; every specific incident is this shape with different bindings
credential-compromiseincidenta secret is believed exposed; assumes use, not just exposure
data-loss-restorerecoverydata lost or corrupt; prove the restore before declaring recovery
node-failurerecoverya node is unreachable; repair in place or rebuild from declarative source
agent-misbehaviourincidentcontaining the operator that usually does the containing
certificate-expirychangethe cheapest incident is the one a check prevented
supply-chain-compromiseincidentan upstream image is compromised; clean-room rewrite is the remediation
restore-drillrehearsalthe rehearsal that makes the recovery playbooks credible
node-onboardingchangebringing a node into the fleet, same verbs, different order

Coverage: nine playbooks, ninety-one steps, thirty-one of the thirty-five primitives used, and all nine phases exercised.

Why this generalises

Three properties, each checkable rather than asserted.

  1. Closed world. Every step names a primitive that exists. Verified: zero steps reference an undeclared verb. The doctor check playbook_step_unknown_primitive enforces it, so an invented procedure is a finding, not a style question.
  2. Governance is inherited, not restated. playbook_without_approval_gate fails any incident-class playbook that never passes through a human decision. playbook_without_evidence fails any incident playbook that produces no verification or record step.
  3. Adding a scenario is a composition. A tenth scenario is roughly ten lines of YAML binding existing verbs. It is not a new document, it does not restate governance, and it cannot invent a procedure the vocabulary does not have.

That third property is the whole point of the instruction. The expensive artefact is the vocabulary, and it is built once. The scenarios are cheap, and they accumulate.

How a new scenario is added

  1. Declare a playbook in registries/playbooks.yaml with an identity, a class and a phase subset.
  2. Write steps that bind declared primitives to parameters.
  3. Run the collector, then the doctor. A step using an undeclared verb fails immediately.
  4. If the scenario genuinely needs an action no primitive expresses, add the primitive to the vocabulary first, with its risk, approval, reversibility and evidence declared. Then use it.

Step 4 is the discipline. The temptation is always to inline a bespoke step because the scenario is special. That is how the vocabulary rots.

Relationship to the rest of the platform

Prior art

The design is not invented in a vacuum. The research behind it, with 107 citations, is in the pack under research/playbook-prior-art.md. Four findings shaped what is here.

The phase vocabulary has a settled lineage

NIST SP 800-61 r2 defined a four-phase lifecycle and the SANS PICERL model refined it to six. The two map almost one-to-one. One detail worth recording: r2 was withdrawn in April 2025 and superseded by 800-61r3, which is restructured around the CSF 2.0 functions. A framework built on r2's phase names would already be citing a withdrawn document, so the phases here are deliberately framework-neutral verbs rather than a copy of either model.

this frameworkNIST 800-61SANS PICERL
preparePreparationPreparation
detectDetection and AnalysisIdentification
assessDetection and AnalysisIdentification
containContainment, Eradication and RecoveryContainment
resolveContainment, Eradication and RecoveryEradication
recoverContainment, Eradication and RecoveryRecovery
verify(implicit)(implicit)
communicate(implicit)(implicit)
learnPost-Incident ActivityLessons Learned

Two deliberate departures. communicate is a phase rather than a side effect, because in a regulated environment notification is a timed obligation with an audit trail, not something that happens incidentally. And verify is a phase rather than a closing note, because an unverified recovery is an assertion.

The primitive decomposition is how SOAR platforms already work

Every mature SOAR product converges on the same three tiers: an atomic typed action, a workflow that sequences them, and an orchestration layer that triggers workflows. Cortex XSOAR calls the atomic unit a task with typed inputs and outputs; Splunk SOAR calls it an app action; Tines documents eight action types; StackStorm calls it an atomic action and bundles them into packs.

That convergence is the evidence for the design here. The primitive layer is not speculative; it is the shape the industry arrived at independently, with the difference that this framework makes the governance properties part of the vocabulary.

MITRE D3FEND already supplies a defensive verb set

D3FEND defines seven tactics and 267 techniques, each with a stable identifier. It is a ready-made vocabulary for naming defensive actions, and it anchors each verb to a citable definition. It is the natural place to align primitive names if external auditability of the vocabulary itself becomes a requirement.

Governance is expressed two ways, and only one is machine-checkable

The research proposes a cross-cutting Govern overlay. This framework instead puts risk, approval, reversible and evidence on each primitive. Both express the same intent. The difference is that the overlay is a convention a reviewer must remember, while a primitive property is something the doctor can query. playbook_without_approval_gate exists only because governance is data.

On the count

The research synthesised 18 coarser verbs and 8 phases. This framework ships 35 finer verbs and 9 phases. The difference is granularity, not disagreement: the coarser set is a valid projection of the finer one. Finer verbs were chosen because rotate-secret and revoke-credential carry different approval and reversibility semantics, and collapsing them would lose exactly the distinction that makes governance inheritable.

Open questions this raises

questionblocks
Are the nine phases the right fixed set, or should phases also be data?vocabulary stability
Which primitives are safe for an agent to invoke unattended, and which always require a human?agent envelope
Who owns the primitive registry, and what is the change process for adding a verb?governance
Should the tier model (who approves, how fast) be a registry too?alert ownership

Playbook research

Playbook Prior Art: Decomposing Operational Playbooks into Reusable Primitives

1. Purpose and scope

This note surveys the credible prior art for decomposing operational and incident-response playbooks into small, reusable primitives governed by a formal meta-structure. It covers the NIST incident-handling lifecycle, the SANS PICERL model, the runbook versus playbook boundary, the action/applet/task taxonomies exposed by SOAR platforms, MITRE D3FEND and ATT&CK as defensive vocabularies, the SOC 2 and ISO/IEC 27001 control families that force documented response procedures, published work on "playbook as code", and how on-call tools model incident workflows declaratively.

The survey exists to support a specific design constraint: the playbook framework must be a primitive vocabulary plus a meta-structure, not a catalogue of single-scenario documents. Section 9 synthesises the primitives and the phase model.

Every substantive claim below carries a source URL. Where a source describes a term rather than an authority, it is cited as a secondary reference.

2. NIST SP 800-61: lifecycle, playbooks, and procedures

2.1 The four-phase lifecycle

NIST SP 800-61 Revision 2, "Computer Security Incident Handling Guide" (August 2012), defines a four-phase incident response lifecycle:

  1. Preparation
  2. Detection and Analysis
  3. Containment, Eradication, and Recovery
  4. Post-Incident Activity

Source: NIST SP 800-61r2 (CSRC landing page) - https://csrc.nist.gov/pubs/sp/800/61/r2/final Source: NIST SP 800-61r2 full text (PDF) - https://nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-61r2.pdf

Important governance note: SP 800-61 Rev. 2 was withdrawn on April 3, 2025 and superseded in its entirety by NIST SP 800-61r3, which reframes incident response around the NIST Cybersecurity Framework (CSF) 2.0 core functions rather than the four-phase cycle. The withdrawn notice is printed on the Rev. 2 PDF itself, and the successor is:

Source: NIST SP 800-61r3, "Incident Response Recommendations and Considerations for Cybersecurity Risk Management: A CSF 2.0 Community Profile" - https://csrc.nist.gov/pubs/sp/800/61/r3/final

A control catalogue targeting NIST SP 800-53B High should therefore reference 800-61r3 for current guidance while retaining the Rev. 2 phase names as the widely understood operational idiom. Rev. 3 maps response activity to the CSF 2.0 functions Identify, Protect, Detect, Respond, and Recover.

Source (CSF 2.0 mapping of Rev. 3) - https://linfordco.com/blog/nist-sp-800-61

2.2 What 800-61 says about procedures and playbooks

SP 800-61r2 dedicates a subsection to "Incident Response Policy, Plan, and Procedure Creation" (Section 2.3), splitting the written artefacts into three distinct layers:

Source: NIST SP 800-61r2, Section 2.3 "Incident Response Policy, Plan, and Procedure Creation" (table of contents) - https://nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-61r2.pdf

The Rev. 2 appendix "Crisis Handling Steps" effectively reads as a checklist playbook: it lists numbered handler actions such as disconnecting affected systems from the network, preserving disk image backups, wiping out all effects of the incident, identifying and mitigating exploited vulnerabilities, confirming restoration to normal, and creating a final report.

Source: NIST SP 800-61r2, Appendix G "Crisis Handling Steps" - https://nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-61r2.pdf

These steps are the closest thing in NIST guidance to primitive verbs: each is a reversible or non-reversible operation on a target (disconnect, back up, wipe, mitigate, confirm, report).

CISA operationalised this into two concrete federal playbooks under Executive Order 14028: an Incident Response Playbook and a Vulnerability Response Playbook, both mapped to the NIST phases and delivered as checklists adaptable by any organisation.

Source: CISA, "Federal Government Cybersecurity Incident and Vulnerability Response Playbooks" - https://www.cisa.gov/resources-tools/resources/federal-government-cybersecurity-incident-and-vulnerability-response-playbooks Source: CISA news release - https://www.cisa.gov/news-events/news/cisa-releases-incident-and-vulnerability-response-playbooks-strengthen-cybersecurity-federal

3. The SANS PICERL model and its mapping to NIST

The SANS Institute's "Incident Handler's Handbook" (Patrick Kral, GIAC GCIH Gold, 2011) defines a six-phase tactical process, commonly abbreviated PICERL:

  1. Preparation
  2. Identification
  3. Containment
  4. Eradication
  5. Recovery
  6. Lessons Learned

Source: SANS, "Incident Handler's Handbook" (PDF) - https://share.ialab.dsu.edu/CAE_Workshops/2019/Incident%20Response/Supplementary%20Material/incident-handlers-handbook-33901.pdf Source: SANS, "Incident Response" glossary entry - https://www.sans.org/security-resources/glossary-of-terms/incident-response

The mapping to NIST is nearly one-to-one. The only structural difference is that SANS splits NIST's combined "Containment, Eradication, and Recovery" phase into three separately gated steps; SANS treats them as distinct checkpoints that force verification before advancing.

Source (PICERL to NIST comparison) - https://insanecyber.com/incident-response-frameworks-nist-vs-sans Source (PICERL checkpoints) - https://daylight.ai/blog/incident-response-frameworks

NIST SP 800-61 Rev. 2SANS PICERLPrimitive focus
PreparationPreparationobserve, authorize, snapshot, record
Detection and AnalysisIdentificationobserve, assess, declare
Containment, Eradication, RecoveryContainmentisolate, revoke, block, snapshot
(same phase)Eradicationeradicate, patch, rotate
(same phase)Recoveryrestore, rebuild, failover
Post-Incident ActivityLessons Learnedverify, record, close

PICERL is the de facto vocabulary that SOAR vendors encode. Palo Alto's Cortex XSOAR content marketplace ships a SANS content pack whose playbook template contains "the phases for handling an incident as they are described in the SANS Institute 'Incident Handler's Handbook'".

Source: Cortex XSOAR Marketplace, SANS content pack - https://cortex.marketplace.pan.dev/marketplace/details/SANS Source: Cortex content repository, SANS template README - https://github.com/demisto/content/blob/master/Packs/SANS/Playbooks/playbook-SANS_-_Incident_Handlers_Handbook_Template_README.md

The SANS handbook's own language is operationally specific: containment is described as "short-term containment" whose focus is "to limit the damage as soon as possible", for example "isolating a network segment of infected workstations", and the handbook requires that "every action taken (e.g. commands typed, systems affected)" be documented to answer the who, what, when, where, why, and how.

Source: SANS Incident Handler's Handbook, Containment and Preparation sections - https://share.ialab.dsu.edu/CAE_Workshops/2019/Incident%20Response/Supplementary%20Material/incident-handlers-handbook-33901.pdf

4. Runbook vs playbook, and where SOAR draws the line

4.1 The runbook/playbook distinction

The distinction is not standardised but is used consistently across SRE and security operations:

Source (strategic vs tactical framing) - https://www.cortex.io/post/runbooks-vs-playbooks Source (execution vs coordination framing) - https://tysonmartin.com/feeds/blog/incident-response-runbook-playbook Source (runbooks contained within playbooks) - https://www.solarwinds.com/blog/runbook-vs-playbook-whats-the-difference

For the primitive vocabulary this matters because the industry has, in practice, been trying to build the runbook layer out of reusable actions all along. The playbook layer selects and orders those actions; the primitive layer executes them.

4.2 SOAR actions, applets, and tasks are the industry's primitives

Every major SOAR product exposes a small unit of automation that maps cleanly onto the notion of a primitive.

Cortex XSOAR (Palo Alto Networks). Playbooks are composed of tasks. The vendor documentation states: "Playbooks have different task types for each of the actions you want to take along the way. There are manual tasks where an analyst might have to confirm information or escalate an incident, and there are conditional tasks with a loop... The playbook tasks can open tickets in a ticketing system... detonate a file." Each task has typed inputs and outputs: "Inputs are data pieces that are present in the playbook or task... they produce outputs."

Source: Cortex XSOAR Developer Docs, "Playbooks" - https://xsoar.pan.dev/docs/playbooks/playbooks-overview

Cortex XSOAR organises work around three first-class concepts: Incidents, Indicators, and Playbooks; the playbook is the logic that orchestrates tasks, queries, and tools against the incident.

Source: WWT, "The Journey of a Cortex XSOAR Playbook" - https://www.wwt.com/blog/the-journey-of-a-cortex-xsoar-playbook-theory-and-concepts

Splunk SOAR. The primitive is the action, supplied by apps. Documentation: "To define a workflow that you want to automate, link together a series of actions that are provided by apps." Actions are concrete and named by effect, for example "geolocate ip" (MaxMind) or "set password" and "enable user" (Okta).

Source: Splunk, "Use playbooks to automate analyst workflows in Splunk SOAR" - https://help.splunk.com/en/splunk-soar/soar-cloud/build-playbooks Source: Splunk, "Add and configure apps and assets to provide actions" - https://help.splunk.com/en/splunk-soar/soar-cloud/administer-soar-cloud/manage-your-splunk-soar-cloud-apps-and-assets/add-and-configure-apps-and-assets-to-provide-actions-in-splunk-soar-cloud

Splunk's own use-case methodology names this three-level decomposition crawl, walk, run: define the process, map SOAR app actions to it, then compose the actions into a playbook.

Source: Splunk Lantern, "Developing SOAR use cases using workbooks and playbooks" - https://lantern.splunk.com/Security_Use_Cases/Automation_and_Orchestration/Developing_SOAR_use_cases_using_workbooks_and_playbooks

Tines. The primitive is the action. "Actions are building blocks of automation in Tines Stories... They receive and emit events, and can run on a schedule or upon receiving an event. There are eight types of actions." A story is "a collection of interconnected actions working towards a singular mission" and is explicitly described as analogous to a playbook.

Source: Tines Docs, "Actions" - https://www.tines.com/stories/docs/actions Source: Tines Docs, "Stories" - https://www.tines.com/stories/docs/stories

Shuffle (open source). The building blocks are apps wired into workflows, with triggers as the entry points; workflows are serialisable as JSON.

Source: Shuffle, "Getting started with Shuffle, an Open Source SOAR platform part 2" - https://medium.com/shuffle-automation/getting-started-with-shuffle-an-open-source-soar-platform-part-2-1d7c67a64244

StackStorm (open source, IT operations rather than security). The most explicit decomposition: actions are the atomic units, workflows "stitch atomic actions into a higher level automation", and packs are reusable bundles of triggers, actions and workflows. The docs state that "A workflow strings atomic actions into a higher level automation, and orchestrates their executions by calling the right action, at the right time, with the right input."

Source: StackStorm Docs, "Workflows" - https://docs.stackstorm.com/workflows.html Source: StackStorm, "Features" - https://stackstorm.com/features

The recurring pattern across all five platforms is a three-tier model:

TierXSOARSplunk SOARTinesShuffleStackStorm
Primitivetask (action)actionactionapp operationaction
Orchestrationplaybookplaybookstoryworkflowworkflow
Distributioncontent packapp / content packstory packapp packpack

Every one of them has converged on the same shape: a small typed action carries one effect, and a higher-level document selects and orders actions. That is precisely the primitive plus meta-structure split this framework needs.

5. MITRE D3FEND and ATT&CK as a defensive primitive vocabulary

MITRE ATT&CK catalogues adversary tactics and techniques - what attackers do. MITRE D3FEND is its defensive counterpart: "a knowledge base... more specifically a knowledge graph, of cybersecurity countermeasure techniques", whose "primary goal... is to help standardize the vocabulary used to describe defensive cybersecurity technology functionality."

Source: MITRE D3FEND FAQ - http://web.archive.org/web/20230124065750/https://d3fend.mitre.org/faq Source: MITRE D3FEND matrix - https://d3fend.mitre.org

D3FEND organises defensive techniques under seven tactical categories: Model, Harden, Detect, Isolate, Deceive, Evict, and Restore. As of version 1.3.0 the matrix contains 267 defensive techniques.

Source: BSG, "MITRE D3FEND: 267 Defensive Techniques, 7 Tactics" - https://bsg.tech/blog/mitre-d3fend

The techniques themselves are, in effect, typed verbs. The D3FEND matrix lists techniques such as:

Source: MITRE D3FEND matrix technique listings - https://d3fend.mitre.org

This is a critical finding: D3FEND has already done much of the vocabulary work. Verbs such as isolate, evict (subsuming revoke, terminate, shut down, erase) and restore (subsuming reimage, reconfigure, reissue) are published, stable, and mapped to the ATT&CK techniques they counter. The framework should reference D3FEND technique identifiers rather than invent a competing namespace.

D3FEND's own caveat matters for governance: "D3FEND does not prescribe specific countermeasures, it does not prioritize them, and it does not characterize their effectiveness." The taxonomy supplies the verb; the control catalogue (SP 800-53B High) and the operator must supply the policy, priority and effectiveness evidence.

Source: MITRE D3FEND FAQ - http://web.archive.org/web/20230124065750/https://d3fend.mitre.org/faq

ATT&CK supplies the complementary input side: the indicator and technique identifiers that parameterise defensive verbs (for example, mapping D3FEND Network Isolation against an ATT&CK lateral-movement technique).

Source: MITRE ATT&CK - https://attack.mitre.org

6. SOC 2 and ISO/IEC 27001 control families that require documented response procedures

6.1 SOC 2 Trust Services Criteria

SOC 2 Common Criteria CC7 covers System Operations. CC7.4 requires that "the entity responds to identified security incidents by executing a defined incident response program to understand, contain, remediate, and communicate security incidents, as appropriate." CC7.5 requires that recovery activities "are performed, documented, and reviewed with assigned corrective actions."

Source: Design Compliance and Security, "SOC 2 CC7" - https://www.designcs.net/soc-2-cc7-common-criteria-related-to-system-operations Source: Bright Defense, "SOC 2 Controls List" (CC7.4 / CC7.5) - https://www.brightdefense.com/resources/soc-2-controls-list

Auditors look for two artefacts: (1) a documented incident response policy and procedures containing all required elements, and (2) evidence of execution - incident tickets, log samples, post-mortems, or records from tabletop exercises.

Source: Alert Logic, "SOC 2 CC7.4 Incident Containment and Remediation" - https://docs.alertlogic.com/analyze/reports/compliance/SOC2-CC-7.4-incident-containment-remediation.htm

The compliance consequence for primitives: CC7.4 and CC7.5 demand evidence that containment, remediation and recovery happened and were recorded. A primitive that does not emit an auditable record cannot satisfy the criterion on its own.

6.2 ISO/IEC 27001:2022 Annex A

The 2022 revision of ISO/IEC 27001 restructured Annex A. The incident-management controls are A.5.24 through A.5.30:

ControlTitleRequirement in primitive terms
A.5.24Information security incident management planning and preparationestablish and maintain process, roles, escalation, training
A.5.25Assessment and decision on information security eventstriage rules; distinguish event from incident
A.5.26Response to information security incidentstake action to prevent recurrence, mitigate, inform parties
A.5.27Learning from information security incidentspost-incident improvement
A.5.28Collection of evidenceforensic collection and chain of custody
A.5.29Information security during disruptioncontinuity during response
A.5.30ICT readiness for business continuityrecovery capability

Source: ISMS.online, "A.5.24 Incident Management Planning and Preparation" - https://www.isms.online/iso-27001/annex-a-2022/5-24-incident-management-planning-and-preparation-2022 Source: ISMS.online, "A.5.26 Response to Information Security Incidents" - https://www.isms.online/iso-27001/annex-a-2022/5-26-response-to-information-security-incidents-2022 Source: ISO27001.com, "Annex A 5.25 Assessment and Decision on Information Security Events" - https://iso27001.com/iso-27001-annex-a-5-25-assessment-and-decision-on-information-security-events

A.5.26 requires that "an incident must meet strict completion criteria in order to be closed", and that forensic analysis is performed per A.5.28 - directly implying a closure-verification primitive and an evidence-collection primitive.

Source: ISMS.online, "A.5.26" - https://www.isms.online/iso-27001/annex-a-2022/5-26-response-to-information-security-incidents-2022

ISO/IEC 27035 is the dedicated incident-management standard that complements 27001. It defines a five-phase process: detect and report, assess and decide, respond, and learn lessons, framed around a Plan and Prepare phase.

Source: ISO/IEC 27035-1 (standard page) - https://www.iso.org/standard/60803.html Source: Rapid7, "Introduction to ISO/IEC 27035" - https://www.rapid7.com/blog/post/2017/04/20/introduction-to-isoiec-27035-assessment-and-responding-to-incidents

6.3 NIST SP 800-53 control families

The control catalogue that the governance target references is NIST SP 800-53 Rev. 5, whose baselines are published separately in SP 800-53B (Low, Moderate, High, plus a privacy baseline).

Source: NIST SP 800-53 Rev. 5 - https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final Source: NIST, "Control Baselines: NIST Publishes SP 800-53B" - https://csrc.nist.gov/news/2020/control-baselines-nist-publishes-sp-800-53b Source: CSF Tools, NIST SP 800-53 Rev. 5 reference - https://csf.tools/reference/nist-sp-800-53/r5

The families that a playbook framework must be able to evidence are:

Each primitive should carry an explicit mapping to the control identifiers it can evidence, so that a playbook run produces control-satisfaction evidence rather than a narrative log.

7. Playbook as code, response as code, and declarative incident response

"Playbook as code" means expressing response logic in version-controlled, machine-readable form alongside infrastructure as code, so that playbooks can be reviewed, tested and deployed like any other artefact.

Source: Firefly, "Building Incident Response Playbooks-as-Code with Terraform" - https://www.firefly.ai/blog/building-incident-response-playbooks-as-code-with-terraform

The broader declarative principle is that you specify the desired end state rather than the steps, and the tool reconciles towards it - the same model used by Terraform and CloudFormation.

Source: Palo Alto Networks, "What is IaC" - https://www.paloaltonetworks.com/cyberpedia/what-is-iac

The mechanisms SOAR platforms provide for typed, parameterised primitives are concrete:

These are the exact typing and parameterisation properties the primitive definitions in Section 9 adopt: each verb declares typed inputs, a typed output, an idempotency class, and an authority class.

8. How on-call and alerting tools model incident workflows declaratively

PagerDuty Incident Workflows are built from triggers and actions with if-this-then-that logic. Support documentation states: "Through highly-configurable triggers and actions, you can apply 'if-this-then-that' logic to orchestrate the right response", and later steps reference earlier outputs by name, for example {{steps['Create a Slack Channel for an Incident'].fields['Channel Link']}}. Common actions include adding responders, subscribing stakeholders, spinning up a conference bridge, and creating collaboration channels.

Source: PagerDuty Support, "Incident Workflows" - https://support.pagerduty.com/main/docs/incident-workflows Source: PagerDuty, "New Incident Workflows" - https://www.pagerduty.com/blog/incident-management-response/incident-workflows-deep-dive

incident.io Workflows are "a collection of triggers, conditions, and steps". The vendor's own example: "Trigger: an incident is created; Condition: the incident is Critical; Step: an SMS is sent out to everyone on the leadership team". Steps are drawn from a library of actions such as prompting for a status-page update.

Source: incident.io, "Workflows: bringing automation into your incident response process" - https://incident.io/blog/automating-workflows

Rootly Workflows expose the cleanest declarative model of the three, with four explicit layers: trigger events, run conditions, actions, and execution phases. Triggers are OR-joined; run conditions support all-of, any-of, or none-of operators; there is an explicit wait primitive with a minimum 10-second delay and a re-check of run conditions after the wait.

Source: Rootly Docs, "Rootly workflows for incident response automation" - https://docs.rootly.com/workflows/workflows Source: Rootly Docs, "Incident Workflows" - https://docs.rootly.com/workflows/incident-workflows

Rootly also illustrates an execution phase running a remediation action against infrastructure (triggering an Ansible playbook to restart a service or roll back a deployment), confirming that these tools already treat infrastructure mutations as first-class workflow steps.

Source: Rootly, "Rootly Automation Workflows Explained" - https://rootly.com/sre/rootly-automation-workflows-explained-boost-sre-reliability

Across all three, the model is identical to SOAR: typed triggers and conditions select and order a library of parameterised actions, and each action references the outputs of earlier actions. The declarative wrapper is a phase/condition structure around a fixed verb library.

9. Synthesis: a primitive verb vocabulary and a phase meta-structure

9.1 Design criteria

The vocabulary must satisfy four criteria, each grounded in the prior art above:

  1. Small and closed. Every verb is a single, named effect on a typed target, mirroring the SOAR action model (Section 4.2).
  2. Typed and parameterised. Each verb declares typed inputs, a typed output, an idempotency class, and an authority class, mirroring XSOAR task inputs/outputs and StackStorm action metadata (Section 7).
  3. Traceable to published vocabularies. Verbs align with D3FEND techniques (Section 5) and map to SP 800-53 control families (Section 6.3).
  4. Evidence-emitting. Every verb emits an auditable record, satisfying SOC 2 CC7.4/CC7.5 and ISO 27001 A.5.28 (Section 6).

9.2 The primitive verbs

The set below is minimal but complete for infrastructure operations. It is grouped by function. The "Authority" column names the class of actor permitted to invoke the verb; the "Idempotent" column states whether repeat invocation is safe without a guard.

VerbFunctionSemanticsTyped inputsTyped outputIdempotentAuthority
observeDetectread telemetry for a subject over a windowsubject: Asset/Identity/Indicator; source: TelemetryChannel; window: TimeRangeSignalyesautonomous
assessTriageclassify severity, scope and confidence against a rubricsignal: Signal; rubric: SeverityPolicyVerdict(severity, scope, confidence)yesautonomous
declareTriageopen an incident record and assign an ownersignal: Signal; severity: Level; owner: RoleIncidentnooperator
isolateContainsever network or execution adjacencytarget: Asset; scope: Host/Segment/Service; mode: Hard/SoftIsolationHandleyesoperator
revokeContaininvalidate a credential, session or tokensubject: Credential/Session/Token; reason: StringRevocationRecordyesoperator
blockContaindeny an indicator at a boundaryindicator: Indicator; boundary: Firewall/DNS/Email/AppRuleRefyesoperator
snapshotContaincapture forensic, configuration or state imagetarget: Asset; mode: Forensic/Config/StateEvidenceArtifactyes (deduped)operator
eradicateEradicateremove an artefact or persistence mechanismtarget: Artifact; method: MethodEradicationRecordyessenior
patchEradicateapply a configuration or vulnerability fixtarget: Asset; control: ControlRefPatchRecordyessenior
rotateEradicatereplace secret material with new materialsecret: SecretRef; scope: ScopeSecretRefnodual-control
restoreRecoverreinstate state from a known-good sourcetarget: Asset; source: BackupRef; at: PointInTimeRestoreReceiptyesoperator
rebuildRecoverreprovision a target from a golden imagetarget: Asset; image: ImageRefAssetnooperator
failoverRecovershift service to a standby peerservice: Service; peer: NodeRef; mode: ModeServiceStateyesoperator
notifyGoverninform or escalate to an audienceaudience: Party; channel: Channel; template: MessageTemplate; urgency: LevelNotificationReceiptyes (deduped)operator
authorizeGoverngate a primitive call behind approvalaction: PrimitiveCall; authority: Role; policy: ControlRefApprovaln/aapprover
recordGovernappend evidence to the audit ledgerevidence: EvidenceArtifact; ledger: Log; digest: HashCustodyEntryno (append-only)system
verifyVerifytest an assertion about a desired stateassertion: Assertion; method: TestVerdictyesoperator
closeCloseclose the incident against completion criteriaincident: Incident; criteria: CompletionPolicyClosureRecordnosenior

Notes on the set:

9.3 The phase meta-structure

The meta-structure is a phase model that wraps the verb library. It is a refinement of NIST Rev. 2 and SANS PICERL (Sections 2 and 3), with two additions driven by the governance target: an explicit Verify phase and a cross-cutting Govern overlay.

  1. Prepare - establish authority, tooling, and pre-staged primitives (snapshot, authorize, record).
  2. Detect - observe telemetry and surface signals (observe).
  3. Triage - assess and declare, distinguishing events from incidents (assess, declare).
  4. Contain - limit blast radius (isolate, revoke, block, snapshot).
  5. Eradicate - remove the cause and remove persistence (eradicate, patch, rotate).
  6. Recover - return to service from a known-good state (restore, rebuild, failover).
  7. Verify - prove the desired state holds and control effectiveness is evidenced (verify, observe).
  8. Close and Learn - close against completion criteria and feed improvement (close, record).

The Govern overlay (notify, authorize, record) is active in every phase. This is what makes the model NIST SP 800-53B High compatible rather than merely an SRE response diagram: no phase can mutate state without an authority decision and an audit record.

PhaseNIST Rev. 2SANS PICERLPrimary verbs
PreparePreparationPreparationsnapshot, authorize, record
DetectDetection and AnalysisIdentificationobserve
TriageDetection and AnalysisIdentificationassess, declare
ContainContainment/Eradication/RecoveryContainmentisolate, revoke, block, snapshot
EradicateContainment/Eradication/RecoveryEradicationeradicate, patch, rotate
RecoverContainment/Eradication/RecoveryRecoveryrestore, rebuild, failover
VerifyPost-Incident ActivityLessons Learnedverify, observe
Close and LearnPost-Incident ActivityLessons Learnedclose, record

9.4 Why one primitive set serves many scenarios

The decomposition works because it separates mechanism from policy and makes every mechanism composable:

  1. Composition covers scenarios, not enumeration. A ransomware scenario, a credential-theft scenario, and a failed-deployment rollback are all distinct orderings and parameterisations of the same verb set. A ransomware run is isolate, snapshot, eradicate, restore, verify. A credential leak is revoke, rotate, notify, verify. No new verb is required for either; only a new sequence and new parameters. This is the same separation SOAR platforms achieve with actions plus playbooks (Section 4.2).

  2. Typed I/O makes sequences machine-checkable. Because each verb declares typed inputs and outputs, a meta-structure can validate that the output of one step satisfies the input of the next, refusing to run a playbook whose steps do not type-check - the guarantee XSOAR tasks and StackStorm workflows deliver structurally (Section 7).

  3. Idempotency and authority classes make the same verb safe across risk tiers. The same restore verb can be invoked automatically in a low-risk tier and behind dual control in a high-risk tier, because the authority requirement is metadata on the verb, not hard-coded in the scenario document. This is what allows a single verb set to span environments of different sensitivity.

  4. Publication-backed vocabularies resist drift. Anchoring verbs to MITRE D3FEND technique identifiers (Section 5) and mapping them to NIST SP 800-53 families (Section 6.3) means the vocabulary is externally defined and auditable, not invented per scenario.

  5. Evidence is a property of the verb, not the scenario. Because record is a primitive rather than a manual step, every scenario automatically produces the audit trail that SOC 2 CC7.4/CC7.5 and ISO 27001 A.5.28 require (Section 6). Compliance is a consequence of running the primitives, not a separate documentation exercise.

  6. The meta-structure provides the governance shell. The phase model plus the Govern overlay gives each scenario a fixed, auditable shape: authority is granted in Prepare, mutation is gated in Contain through Recover, and closure is verified against criteria in Verify and Close (Section 9.3). Different scenarios slot into the same shape.

The result is a framework in which the primitives are a small, closed, typed, evidence-emitting verb library, and the playbooks are declarative sequences over that library, each sequence carrying its own parameters, authority requirements, and control mappings.

10. Source list

  1. NIST SP 800-61r2, Computer Security Incident Handling Guide (CSRC) - https://csrc.nist.gov/pubs/sp/800/61/r2/final
  2. NIST SP 800-61r2, full text PDF - https://nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-61r2.pdf
  3. NIST SP 800-61r3, Incident Response Recommendations (CSF 2.0 Community Profile) - https://csrc.nist.gov/pubs/sp/800/61/r3/final
  4. CISA, Federal Government Cybersecurity Incident and Vulnerability Response Playbooks - https://www.cisa.gov/resources-tools/resources/federal-government-cybersecurity-incident-and-vulnerability-response-playbooks
  5. CISA news release on the playbooks - https://www.cisa.gov/news-events/news/cisa-releases-incident-and-vulnerability-response-playbooks-strengthen-cybersecurity-federal
  6. SANS, Incident Handler's Handbook (Patrick Kral) PDF - https://share.ialab.dsu.edu/CAE_Workshops/2019/Incident%20Response/Supplementary%20Material/incident-handlers-handbook-33901.pdf
  7. SANS, Incident Response glossary entry - https://www.sans.org/security-resources/glossary-of-terms/incident-response
  8. Insane Cyber, NIST vs SANS incident response models - https://insanecyber.com/incident-response-frameworks-nist-vs-sans
  9. Daylight, Incident Response Frameworks: NIST vs SANS - https://daylight.ai/blog/incident-response-frameworks
  10. Cortex XSOAR Marketplace, SANS content pack - https://cortex.marketplace.pan.dev/marketplace/details/SANS
  11. Cortex content repo, SANS template README - https://github.com/demisto/content/blob/master/Packs/SANS/Playbooks/playbook-SANS_-_Incident_Handlers_Handbook_Template_README.md
  12. Cortex.io, Runbooks vs Playbooks - https://www.cortex.io/post/runbooks-vs-playbooks
  13. Tyson Martin, Incident Response Runbook vs Playbook - https://tysonmartin.com/feeds/blog/incident-response-runbook-playbook
  14. SolarWinds, Runbook vs Playbook - https://www.solarwinds.com/blog/runbook-vs-playbook-whats-the-difference
  15. Cortex XSOAR Developer Docs, Playbooks - https://xsoar.pan.dev/docs/playbooks/playbooks-overview
  16. WWT, The Journey of a Cortex XSOAR Playbook - https://www.wwt.com/blog/the-journey-of-a-cortex-xsoar-playbook-theory-and-concepts
  17. Splunk, Use playbooks to automate analyst workflows - https://help.splunk.com/en/splunk-soar/soar-cloud/build-playbooks
  18. Splunk, Add and configure apps and assets to provide actions - https://help.splunk.com/en/splunk-soar/soar-cloud/administer-soar-cloud/manage-your-splunk-soar-cloud-apps-and-assets/add-and-configure-apps-and-assets-to-provide-actions-in-splunk-soar-cloud
  19. Splunk Lantern, Developing SOAR use cases using workbooks and playbooks - https://lantern.splunk.com/Security_Use_Cases/Automation_and_Orchestration/Developing_SOAR_use_cases_using_workbooks_and_playbooks
  20. Tines Docs, Actions - https://www.tines.com/stories/docs/actions
  21. Tines Docs, Stories - https://www.tines.com/stories/docs/stories
  22. Shuffle, Getting started part 2 - https://medium.com/shuffle-automation/getting-started-with-shuffle-an-open-source-soar-platform-part-2-1d7c67a64244
  23. StackStorm Docs, Workflows - https://docs.stackstorm.com/workflows.html
  24. StackStorm, Features - https://stackstorm.com/features
  25. CloudThat, StackStorm and event-driven automation (idempotency guidance) - https://www.cloudthat.com/resources/blog/stackstorm-and-event-driven-automation-in-modern-it-operations
  26. MITRE D3FEND, matrix - https://d3fend.mitre.org
  27. MITRE D3FEND, FAQ (archived) - http://web.archive.org/web/20230124065750/https://d3fend.mitre.org/faq
  28. BSG, MITRE D3FEND: 267 Defensive Techniques, 7 Tactics - https://bsg.tech/blog/mitre-d3fend
  29. MITRE ATT&CK - https://attack.mitre.org
  30. Design Compliance and Security, SOC 2 CC7 - https://www.designcs.net/soc-2-cc7-common-criteria-related-to-system-operations
  31. Bright Defense, SOC 2 Controls List - https://www.brightdefense.com/resources/soc-2-controls-list
  32. Alert Logic, SOC 2 CC7.4 Incident Containment and Remediation - https://docs.alertlogic.com/analyze/reports/compliance/SOC2-CC-7.4-incident-containment-remediation.htm
  33. ISMS.online, ISO 27001 Annex A 5.24 - https://www.isms.online/iso-27001/annex-a-2022/5-24-incident-management-planning-and-preparation-2022
  34. ISMS.online, ISO 27001 Annex A 5.26 - https://www.isms.online/iso-27001/annex-a-2022/5-26-response-to-information-security-incidents-2022
  35. ISO27001.com, Annex A 5.25 - https://iso27001.com/iso-27001-annex-a-5-25-assessment-and-decision-on-information-security-events
  36. ISO/IEC 27035-1 standard page - https://www.iso.org/standard/60803.html
  37. Rapid7, Introduction to ISO/IEC 27035 - https://www.rapid7.com/blog/post/2017/04/20/introduction-to-isoiec-27035-assessment-and-responding-to-incidents
  38. NIST SP 800-53 Rev. 5 - https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final
  39. NIST, Control Baselines: SP 800-53B - https://csrc.nist.gov/news/2020/control-baselines-nist-publishes-sp-800-53b
  40. CSF Tools, NIST SP 800-53 Rev. 5 reference - https://csf.tools/reference/nist-sp-800-53/r5
  41. Firefly, Building Incident Response Playbooks-as-Code with Terraform - https://www.firefly.ai/blog/building-incident-response-playbooks-as-code-with-terraform
  42. Palo Alto Networks, What is IaC - https://www.paloaltonetworks.com/cyberpedia/what-is-iac
  43. PagerDuty Support, Incident Workflows - https://support.pagerduty.com/main/docs/incident-workflows
  44. PagerDuty, New Incident Workflows - https://www.pagerduty.com/blog/incident-management-response/incident-workflows-deep-dive
  45. incident.io, Automating workflows - https://incident.io/blog/automating-workflows
  46. Rootly Docs, Workflows - https://docs.rootly.com/workflows/workflows
  47. Rootly Docs, Incident Workflows - https://docs.rootly.com/workflows/incident-workflows
  48. Rootly, Automation Workflows Explained - https://rootly.com/sre/rootly-automation-workflows-explained-boost-sre-reliability

Build vs borrow

The decision rules, the verdict vocabulary, and the live position on every third-party component the platform runs or has declined.

Build versus borrow

What this is

A record of every third-party component the platform runs, or has considered and declined, with the licence, language, sovereignty position and the verdict.

It is held as data in registries/adoption.yaml rather than as a document, so the decisions are queryable, the doctor can check them, and a component that was declined cannot be quietly reintroduced later by someone who did not know why.

The decision rules

In priority order. A component that fails rule 1 or 2 is disqualified before anything else is discussed.

rulethe questiondisqualifying when
1. Licenceis the open edition genuinely open, OSI-approved, and does it permit self-hosted commercial use inside a bank?permission, role or plan-enablement code is carved out of the open grant, or the licence is non-OSI for the edition we would run
2. Languagewhat is it written in, and does that conflict with project law?Python, for anything first-party. A Python upstream may be run as a vendored container, never extended
3. Sovereigntydoes it work offline, on premises, with no paid account or cloud dependency?account-bound or cloud-only, unless the dependency is explicitly accepted and recorded
4. Governance fitcan its governance model be expressed as playbook primitives, or would adopting it replace the registry as the source of truth?it must own the approval or audit record
5. Security posturedoes the open edition carry real access control, audit and a credible patch cadence?RBAC, audit or backup sit behind a paid tier for the edition we would run
6. Strategic valueis this the differentiated product, or commodity infrastructure?commodity should be borrowed. Only the differentiated core is worth building
7. Maintenancewho maintains it, and what is the drift cost if we fork?a fork that drifts silently misses upstream security fixes

The rule that does the most work

Rule 4 is the one that is easy to miss and expensive to get wrong.

If a product's governance model can be expressed as primitives, adopt the product as an execution backend and keep the registry authoritative. If it cannot, and the registry must defer to it, then it is replacing the governance rather than serving it, and that is a much larger decision.

This is what declined Bytebase. On capability it was a strong fit. But its approval workflow and audit log would have become a second source of truth for approval, alongside the primitive properties and the playbook registry that already hold that role.

The verdicts

verdictmeans
BUILDwrite it first-party, in Rust or bun, because it is strategic and nothing adequate exists
BORROWrun it as a pinned upstream dependency, configured but not patched
FORKadopt and maintain a fork, accepting the drift cost, with a named owner and a rebase cadence
SKIPdeclined, with the reason recorded so it is not reconsidered blindly
BUYadopt under a commercial licence, with the cost and the exit path recorded
CANDIDATEpromising, not yet decided, with the open question named

The current position

Decided by licence or language

componentverdictlicencewhy
golang-migrateBORROWMITOSI-approved, Go, fully offline. Adopted as the migration backend
BytebaseSKIPMIT with a proprietary carve-outpermission and plan-enablement code is excluded from the MIT grant; governance features are paid
ClickHouseCANDIDATEApache-2.0genuinely open, RBAC in the open build, held pending four control preconditions
Neo4j CommunitySKIPGPLv3no RBAC, no sub-graph access control, no online backup
Neo4j EnterpriseBUYcommercialthe only edition with RBAC and online backup, which the target requires
Apache AGECANDIDATEApache-2.0graph inside the PostgreSQL already deployed, so it inherits RBAC and backup
LiquibaseSKIPFSL 5.0+the current licence is not OSI-approved
AtlasCANDIDATEApache-2.0Go and permissive; the alternative if declarative schema diffing is wanted
schemachangeSKIPApache-2.0Python, which law forbids, and Snowflake-locked so it cannot target Postgres
pg_lakeCANDIDATEApache-2.0the one snowflake-labs artefact that works offline with no account
GraphAware FrameworkSKIPGPLv3archived in 2021, Neo4j 3.x era
neo4j-config-cliBORROWApache-2.0declarative database reconciliation, same pattern as the registries

Borrowed and running

componentlicencelanguagerole
CaddyApache-2.0Goreverse proxy and TLS
OpenBaoMPL-2.0Gosecrets management
HeadscaleBSD-3-ClauseGoself-hosted mesh control plane
WazuhGPLv2C, Java, JSSIEM and host intrusion detection
LiteLLMMIT plus an enterprise directoryPythonAI gateway, accepted upstream, never extended
PlantUML serverMITJavalocal diagram rendering
FossFLOWMITTypeScriptisometric diagrams
BunMITZig, C++the sanctioned scripting runtime
docker-socket-proxyApache-2.0Goread-only Docker API for the indexer

The platform is overwhelmingly a borrow platform. That is the correct position: it is not differentiating on a reverse proxy or a SIEM.

Anti-patterns this sheet exists to catch

  1. Adopting a component whose open edition lacks the control you need, then discovering at audit that RBAC was a paid tier. Neo4j Community and Bytebase are both this.
  2. Adopting a Python component as first-party code. A Python upstream as a vendored container is fine and recorded; extending one is a law breach.
  3. Forking without an owner or a rebase cadence. A drifted fork silently misses security fixes, and in a bank that is not acceptable.
  4. Letting a product become the governance record. Two sources of truth for approval is worse than one, even when the product is better at it.
  5. Re-deciding something already declined. The SKIP rows carry their reason precisely so the argument does not have to be had twice.

What is missing

The sheet is honest about its own gaps.

  1. Sixty-plus repositories are under evaluation in ten themed groups. Their verdicts will be added as they land.
  2. Python upstreams are recorded per component but there is no estate-wide count. The platform clearly runs several. That register should exist.
  3. No exit cost is recorded for the BUY rows. Neo4j Enterprise has a price and a migration path away from it, and neither is written down.
  4. The doctor checks are specified but not written: adopted_component_missing_licence, adopted_component_python, adopted_component_no_rationale.

How to use it

  1. Before adopting anything, work the seven rules in order and stop at the first disqualification.
  2. Record the verdict in registries/adoption.yaml with its evidence URL, not in a document.
  3. If the verdict is SKIP, write the reason. The reason is the deliverable.
  4. Re-run the collector and the doctor. A component with no licence recorded is a finding.

Multi-tenancy

The isolation assessment measured against the live estate, the false claim the docs index was making, and the two-tier model that separates a household from an enterprise.

Multi-tenancy - where we actually are

The short answer

Zero. Not partially, and not nearly. There is no isolation mechanism of any kind in the platform today, and everything runs inside one flat trust domain.

That is a defensible position for a single-operator development platform. It is not defensible for anything you sell, and it is definitely not the basis for a household product until the model is chosen deliberately.

The evidence, measured against the live estate

This is not a reading of the architecture. It is what the running system reports.

layermeasurementwhat it means
Database11 databases, every one owned by prodg, one shared instance, no connection limitsno database boundary exists. Every service can read every other service's data as the same role
Database roleprodg is rolsuper, rolcreatedb, rolcreateroletenant provisioning is possible, which is the one thing that is ready. Nothing uses it
Resource isolation0 of 40 containers have a memory limitone tenant's runaway container takes the host down with it. There is no ceiling to sell
Routing26 Caddy routes, no wildcard and no tenant segmentevery route is a hardcoded single-tenant subdomain. Tenancy would mean editing the proxy per customer
Tenant contextno TENANT, MULTISITE or equivalent anywhere in the environmentno request carries a tenant identity, so no service could enforce one if it wanted to
Backupsone global postgres directoryrestore is all-or-nothing. You cannot restore one tenant

The one genuinely positive result: the database role can create databases and roles, so per-tenant provisioning is a supported operation rather than a blocker.

The docs were claiming otherwise

The knowledge base index carried this row:

| Multi-tenant isolation model | roadmap/mainframe-launch-initiative.md |

The target document contains zero occurrences of the word "tenant". It is a phase plan covering authentication, a file server, a software-cloning pipeline, a loadout system, a playbook repository and partner registries. Isolation is not in it.

This matters more than a broken link. A founder decision (D3) settled that the docs must be truthful, and this was a claim about a capability that does not exist. It is the exact failure mode the platform is built to prevent: a confident statement in a document, no artefact behind it, and nobody checking because the document is the thing they trust.

Corrected, and the pointer now goes to the loadout registry and this document, which is where the answer actually lives.

Why zero is currently the right answer

The founder's own answer to the separation-of-duties question was: "This has only been the case since we are in development and I'm the only one with access." One operator, one trust domain, no isolation needed. Tenancy costs complexity, and paying it before there is a second person would be premature.

The mistake would be to now build enterprise tenancy for a household. Which brings us to the design.

The two-tier model

The platform needs two different isolation models, because it has two genuinely different threat models. Using one for both is the trap.

Tier A - personal and homeTier B - mainframe
Whoone household, 2 to 6 peopleorganisations, banks, government
Threataccidental disclosure, device loss, a curious household memberinsider fraud, a hostile tenant, an attacker, a regulator
Isolationshared services, per-user accounts, per-user spacesper-tenant databases, RBAC, audit trail
Enforced byapplication ACLs and filesystem ownershipdatabase boundaries plus network policy
Auditwho changed what, kept for the householdtamper-evident, retained, exportable
Hardware4 to 8 GB RAM, one small box62 GB, 12 cores, a fleet

The critical judgement: a family does not need per-tenant database isolation, and imposing it would make the product worse. Per-tenant databases mean per-tenant migrations, per-tenant backups, per-tenant restores, and a provisioning step every time someone joins. For four people sharing photos and a calendar, that is unmaintainable weight bought at the cost of the thing working.

What a family actually needs is per-user spaces inside shared services, which is what every consumer product in this space does, and which is honest about what it is: isolation enforced by the application, not by the platform.

What a family genuinely does need, and must not be waved away:

  1. A private space that is actually private. One member's journal or medical documents must not be readable by another, and "the app hides it" is weaker than "the database refuses it".
  2. A stated difference between shared and private. Which is which must be a decision, not a default nobody examined.
  3. A restore that works. A household has no IT department, so backup and restore must be one command and must be rehearsed.
  4. An honest upgrade path. Growing from personal to mainframe must not mean starting again.

What real tenancy would require, in order

If and when Tier B tenancy is genuinely needed, this is the sequence. Each step depends on the one before it.

  1. Pick the isolation pattern. Per-database is the right default at small tenant counts and the technology-skill recommendation. Row-level security only pays off beyond that.
  2. Stop running everything as prodg. One role per service, with the minimum it needs. Superuser is the finding here, not the tenant count.
  3. Resource limits on every container. Without a ceiling there is nothing to sell and no blast radius to contain. This is also the cheapest item on the list.
  4. Tenant identity in the request path. A header set by the proxy and enforced by services, not trusted from the client.
  5. Tenant-scoped backups and rehearsed restore. Until a single tenant can be restored alone, the platform cannot promise isolation it cannot deliver.
  6. Per-tenant routing. Wildcard or path routing in Caddy rather than a hardcoded block per customer.
  7. Then onboarding automation, templated rather than scripted per tenant.

Assessment verdict

Against the readiness indicators: not ready, with the foundation in place.

The next action is not to build tenancy. It is to decide which tier the next deployment is, and the answer for a household is Tier A, which needs a loadout rather than a tenant model.

Personal edition

A mainframe for a household: the hardware target, the service set, why the enterprise services are excluded, and what is missing before it can ship.

The personal edition

What it is

A separate deployment of the mainframe for one household, on one small box.

It is not a tenant on the existing mainframe. It is a product edition, and it is modelled as loadouts, which is the mechanism the platform already has for exactly this.

It is also the first real pilot install. The founder's answer on the bus factor was "pilot installs, extensive onboarding and teaching material" - this is that install, and deploying it for a family is the cheapest possible way to find out what a non-technical operator needs.

Hardware target

resourceminimumcomfortable
RAM4 GB8 GB
CPU2 cores4 cores
Disk64 GB256 GB plus media
HostRaspberry Pi 5, NUC, old desktop, small VPSa home NAS that runs containers

For scale: the mainframe runs 40 containers on 62 GB and 12 cores, uses 18 GB of disk and 52 GB of images. The personal edition has to be an order of magnitude smaller, which is the entire reason the enterprise services are excluded rather than configured down.

The service set

Inherited from core (requires: [core]): Caddy, OpenBao, PostgreSQL, Redis, the Hermes agent API, node exporter. Without these a node is not part of the mainframe at all.

Added by the personal loadout:

servicewhat it replaces at homewhy it
Vaultwardenpasswords in a browser and a shared noteBitwarden-compatible, so every phone and laptop already has a client, and it has shared collections for household items like the wifi password and the alarm code
Cryptgeontexting a passwordone-time secret sharing with an expiry, so a secret does not live in a chat log forever
Cal.coma shared paper calendarone household calendar, bookable, with the agent able to read it
Stirling PDFa scanner app and an online converterdocuments never leave the house to be merged or signed
MinIOa consumer cloud driveS3-compatible object storage, so the household owns the bucket and the backups land in it

Optional home-media loadout, deliberately separate: FossFLOW and PlantUML, plus whatever media service the household wants. Kept apart because a media library is the largest thing a home node will ever store, and that has to be a deliberate choice about a disk rather than a default.

What is excluded, and why

This is the more important list.

excludedwhy
Wazuh (SIEM)Wazuh alone wants more RAM than the entire target box. At home the threat is not a coordinated intrusion, and the proportionate control is a weekly review of who logged in and whether the backups ran, not a SIEM nobody reads
Neo4j (registry graph)The registry methodology earns its keep across forty components and a compliance target. Across six services for one family it is operational weight with no reader
Headscale (mesh)A mesh exists to connect many nodes across locations. A household has one box. Tailscale's own client, or plain LAN access, is enough
Twenty (CRM), Mattermost (team chat)A household has no customers and no staff. Mattermost is a genuine maybe for a family with teenagers, recorded as optional rather than assumed
PassboltIt is a team password manager built around separation of duties. Vaultwarden is the right tool for a household; Passbolt is the right tool for an audit
LiteLLM (inference)The monetised capability, and separable by design. A household that wants a local assistant adds it; a household that does not should not pay its RAM cost

The principle: at home, the proportionate control is not the smaller enterprise control. A SIEM on a Raspberry Pi is not diligence, it is cargo.

The tenancy model: per-user spaces

Recorded in the loadout as tenancy: shared-services-per-user-spaces, and this is the loadout's most consequential decision.

What it means: one instance of each service, one account per household member, and a space per person inside each service. Isolation is enforced by the application, not by a database boundary.

What that gets: nothing to provision when someone joins, one backup, one migration path, and a system a non-technical person can run.

What it costs, stated plainly: isolation is only as strong as the application's ACL. If Vaultwarden has a bug, a private space is exposed. For a household that is an acceptable trade. For a bank it would not be, which is precisely why Tier B exists separately.

The four things that must still hold at home, because a per-user space model must not become an excuse:

  1. Shared versus private is a stated decision. Some things are shared by default and some are private by default, and which is which is written down rather than discovered.
  2. A private space names who can read it. If the answer is "the admin, effectively", that is not privacy and should not be described as such.
  3. The agent has a defined reach. A household assistant that can read every private space is a different product from one that cannot. The blast radius question applies at home too, and the answer is a configuration decision.
  4. Restore is rehearsed. A household cannot recover from a backup nobody has ever tested.

Authentication

No enterprise SSO. A household wants an account per person and a shared account for shared things, so:

Backup

The single most important feature and currently the weakest.

A household backup must be: one command, to a location that is not the same disk, with a restore that has been run at least once. MinIO on a NAS plus a cheap offsite target is the target shape.

Until restore has been rehearsed, the personal edition is not shippable. A household losing a decade of photographs is the failure that ends the product.

The upgrade path

The founder's constraint that matters here: the archive and the node must be upgradeable. A household should be able to add the security loadout, or the inference loadout, or eventually stand up a second node, without starting again.

Because the edition is a loadout rather than a separate codebase, this mostly holds already: adding a loadout is adding services. What is unproven is the migration of data and the state of a running household.

What exists versus what is missing

elementstatenote
Loadout definitiondonepersonal and home-media in the loadout registry, with hardware, tenancy and exclusions declared
Service selectiondonechosen and the exclusions argued
Per-user space modeldesignedstated as the tenancy model; not yet implemented in any service
Install pathmissingeverything is hand-built for the mainframe. There is no bootstrap for a fresh box, and this is the blocker
Backup and restoremissingno household-grade backup, and restore has never been rehearsed
Update mechanismmissinga household cannot run the current upgrade path
Onboarding materialpartiala Termius guide exists; nothing for a non-technical household operator
Resource limitsmissingrelevant here too: a 4 GB box needs every container capped

The honest position

The design is done and the decisions are recorded. The install does not exist.

Nobody can currently deploy this to a family's house, because there is no bootstrap, no backup a household could trust, and no way to update it. Those are three pieces of work, and they are the three that stand between a good design and a product.

The loadout is real and in the registry. The rest is a roadmap.

Migrations plan

One plan from the running mainframe to the specified target: the pre-sealed bootstrap, four clusters, the event backbone and a projector for every VIEW.

Unified migrations plan

What this unifies

Two architectures exist and neither document knows about the other.

The running mainframeThe specified target
Wherestack.md, definition-of-ready/done.md and the security viewpointthe deployed VPS, Talos, 40 containers
ShapeKubernetes, four clusters, Redpanda, CQRS, Tekton, SPIREDocker Compose, Headscale, a registry graph
Statusnormative and under REVIEWlive today

The plan below migrates the second onto the first and unifies a third thing neither addresses: the platform's own registries, which are already a declarative source of truth and should ride the same rails as the spec corpus.

The unification principle

The spec corpus has VIEW documents. The platform has registries. They are the same kind of artefact: a declarative statement of intent with an owner, a status, a change log and derived consumers.

The target architecture already names the mechanism - projectors. So the plan applies one rule everywhere:

Every VIEW and every registry gets a projector. The projector consumes CloudEvents and materialises a read model. Nothing reads the source document directly.

That single rule collapses a large amount of the migration into one repeatable pattern, and it is what makes CQRS real rather than aspirational.

Command side (writes): a ticket changes, a registry changes, a document is promoted. The change is validated and emits a CloudEvent.

Query side (reads): projectors consume those events and update their read model. A consumer asking "what is in the stack" queries the read model, never the markdown.

Server-Side Apply plays the same role one layer down: declarative desired state, the cluster reconciles, field ownership is tracked rather than fought over.

The three SSA layers

SSA resolves to three things and all three are in scope. They are layers of one question - who holds authority - and the full treatment with measured findings is in ssa-authority-model.md. The plan accounts for all three:

layerauthority overfixing phaseMainframe state today
Server-Side Applycluster statePhase 1a cluster with no reconciler
Self-Sovereign Architectureexternal dependenciesPhase 5mostly sovereign, one undeclared exception (LiteLLM to OpenRouter)
Sealed Secrets Authoritykey materialPhase 0 and 6unsplit unseal key on one host, no ceremony

The sequencing consequence, stated because it changes the phase order: Sealing must precede the first workload in every new cluster, which is why Phase 0 exists at all. A cluster built before its secret authority is established has a window in which plaintext existed, and that window is the audit finding.

The uncomfortable consequence: Sealed Secrets Authority cannot be satisfied by a solo operator. Splitting a key with a threshold requires a second custodian, and a ceremony requires someone to hold the other share. Phase 0 and Phase 6 are therefore gated on a person, not on work.

Phase 0 - The pre-sealed bootstrap cluster

Goal: a cluster that can be rebuilt from git plus one sealed key, with no interactive step and no human-held plaintext.

elementchoice
ProvisioningPulumi, so the bootstrap is code and the boundary is auditable
Isolationself-contained. The bootstrap cluster reaches out to build the clusters; nothing reaches in
Sealingsealed before workloads land. Secrets exist as ciphertext in git from the first commit, so a lost bootstrap never means a lost platform
Who may touch itno human directly. GitOps only, two-reviewer approval

The ordering matters more than the components. Sealing must precede the first workload, because retro-fitting a sealed secret store means a period in which plaintext existed, and that period is the finding an auditor will look for.

Exit criteria: a bootstrap cluster is destroyed and rebuilt from the repository and the sealed key alone, with no manual step.

Phase 1 - The cluster fabric

Cluster API on the bootstrap cluster provisions and owns four workload clusters. The four are not arbitrary - each exists because it has a different trust level.

clusterpurposetrust levelwho has access
InferencevLLM under KubeAI, LangFuse, Llama Guard 3, LLM Guard, NVIDIA GPU Operatormoderateplatform engineers
Agentsagent runtime, the fourteen MCP servers, MCP Guard, gVisor-isolated node poollowest - assumed compromisedplatform engineers
SecuritySPIRE, Keycloak, OpenBao, cert-manager, Fulcio, Rekor, Falcohighestno human, GitOps only
DatabasesCloudNativePG, MongoDB (Percona), Neo4j, OpenSearch, pgvector, RedishighDBAs via GitOps

Three properties are load-bearing and must survive every later phase:

  1. No human has direct access to the production Security cluster. If an operator can kubectl exec into SPIRE, the trust root is a person away from compromise.
  2. The Agents cluster is assumed hostile. gVisor isolation, risk-segmented egress, MCP Guard on every MCP call. Agent fallibility is designed for, not denied.
  3. Server-Side Apply is the single apply path. Declarative desired state, the API server as arbiter of field ownership, conflicts surfaced rather than silently overwritten. No human applies to a cluster by hand. The Mainframe has a cluster and no reconciler today, so this is a new control rather than a change to an existing one - and the tooling is the easy half. The rule is the hard half.

The private substrate uses k3s with k3k for nested clusters; k3d is the local development shape so a developer's laptop matches the target closely enough to be useful.

Exit criteria: all four clusters exist, are GitOps-managed, and a kubectl from a human to the Security cluster fails.

Phase 2 - The read models, and the projector wave

This is the phase the unification principle pays for. One pattern, applied many times.

sourceprojectorread model
stack.mdstack-projectorMongoDB - current component inventory, queryable by type, cluster and owner
definition-of-ready.mddor-projectorPostgreSQL - the gate criteria as rows, so a checker evaluates rather than parses
definition-of-done.mddod-projectorPostgreSQL - DoD criteria and the acceptance gate
the security viewpointsecurity-projectorMongoDB - controls, residual risks, opened tensions
the platform registriesregistry-projectorNeo4j - the existing graph, now event-fed rather than batch-collected

Why each VIEW gets its own projector rather than one generic one. A VIEW's read model should be shaped for its consumers, not for its author. The stack read model wants to answer "what runs on the inference cluster"; the DoD read model wants to answer "which criteria gate this ticket". A generic document projector answers neither well.

MongoDB for document-shaped read models, PostgreSQL for relational ones, Neo4j for graph ones. That is the whole architecture decision, and it is driven by access pattern rather than by taste.

Exit criteria: every VIEW has a projector, every projector has a read model, and a consumer can answer a real question without opening a markdown file.

Phase 3 - The event backbone

| element | role | | --- | --- | --- | | Redpanda | the domain bus. Kafka-compatible, single binary, no ZooKeeper | | Schema Registry | Avro, Protobuf and JSON compatibility enforced at the bus | | Bus sidecar | Kyverno-injected into every event-consuming pod. Deserialise, retry, dead-letter - without changing event semantics | | Publisher Service | validates write-side commands, publishes CloudEvent-wrapped domain events | | Connectors | the boundary that lets the spec corpus emit into the bus without the corpus caring that it is event-driven |

The sidecar is the quiet win. Because Kyverno injects it, no service author writes event plumbing, and no service can silently opt out. Consistency is a cluster property rather than a code-review property - the same reasoning the mainframe already applies to its own registries.

Exit criteria: a document change propagates to every consumer read model with no direct call between producer and consumer.

Phase 4 - Supply chain and pipelines

Tekton is the sole pipeline engine. Everything that produces an artefact routes through it.

stagecomponents
BuildTekton, Tekton Chains
ProveSyft (SBOM), Grype, Trivy, Trivy Operator
SignFulcio, Rekor
GateSonarQube, Microcks, Kyverno image-signature validation
UpdateRenovate
DispatchPipeline Dispatcher

Two commitments from the corpus carry into the plan unchanged and both are non-negotiable:

Exit criteria: no artefact reaches a cluster without a signature and an SBOM, and the pipeline proves it without a human assertion.

Phase 5 - Inference and agent surfaces

elementrole
KubeAIcontrol plane for vLLM serving, prefix-aware routing, lifecycle
vLLMthe serving backend. PagedAttention, continuous batching, tensor and pipeline parallelism
LangFuseLLM observability, prompt management, evaluation tracing
Llama Guard 3 + LLM Guardcontent safety gate and input/output scanning proxy
PageIndexhierarchical tree retrieval, vendored, called through LiteLLM
Agent Runtimeupstream VS Code and Copilot harness with Rust first-party adapters

A conflict to resolve rather than paper over: the stack lists vLLM twice - at 34 and again at 81, with near-identical descriptions. That is not a duplicate component, it is an unmerged edit. The plan treats it as one component and the register records it as an open item.

LangFuse is deliberately not part of the operational telemetry store. The stack is explicit that LLM observability is a distinct concern from ClickHouse and SigNoz. Keeping them separate is correct - an LLM trace has a different retention, cost and audience than a service metric.

Exit criteria: an agent call is served, traced in LangFuse, safety-gated, and observable without touching the operational telemetry path.

Phase 6 - Identity and the hardened plane

layercomponents
Workload identitySPIRE (x509-SVIDs, federated across all three substrates), Istio mTLS
Human identityKeycloak (OIDC/OAuth 2.0)
SecretsOpenBao, dynamic credentials, PKI backend
Certificatescert-manager
PolicyKyverno - admission, mutation, image signature
DetectionFalco, Tetragon
Runtime isolationgVisor for agent workloads

The signing key MUST live in the secrets manager PKI engine, never on the filesystem. The corpus states it and the plan inherits it without softening: filesystem key material is the single most common way a trust root is lost.

The unseal ceremony is a migration deliverable, not an afterthought: Shamir shards, no single holder of all of them, sealed backups in the object store, and a rehearsed restoration. Until that ceremony has been rehearsed, the platform cannot honestly claim it can recover.

Exit criteria: a workload gets an identity it never stored, reads a database it has no password for, and every step is audited.

Phase 7 - Observability

elementrole
ClickHousesingle columnar store for logs, metrics and traces. Hot NVMe, cold tier to the object store, ClickHouse Keeper for coordination
OpenTelemetry Collectorthe single collection agent. Daemonset per cluster, gateway on Observation
OTel eBPF instrumentationzero-code auto-instrumentation
SigNoz + query-service + Alertmanagerthe console, the query backend, alert routing
Hubble, OpenCost, Blackbox Exporterflow visibility, cost, synthetic availability

One store, one collector. The corpus removed Prometheus, Loki, Tempo, Thanos and the Grafana stack in favour of this. The migration therefore includes a decommission step, and the risk is running both stores for months because the old dashboards still work. Cutover must be dated.

Phase 8 - Migrating off the running mainframe

The current estate maps onto the target as follows. This is the phase with real data at risk, so it is sequenced last for a reason.

todaytargetmigration note
Docker Compose stacksKubernetes workloads under GitOpslift and re-template, not re-architect. The Compose files are the specification
HeadscaleTailscale plus Cluster API networkingHeadscale remains valid for the mesh; it does not need replacing to satisfy the target
PostgreSQL, single instance, one prodg superuserCloudNativePG, per-role credentialsthe largest security win available. Eleven databases on one superuser role is the finding this phase closes
the Neo4j registry graphregistry-projector fed by eventsthe graph moves from batch-collected to event-fed
CaddyIstio ingress plus external-dnskeep Caddy at the boundary if it still earns its place; the mesh does not require its removal
the 20 conformance checksKyverno policies plus the doctor looppolicies belong in the cluster, the doctor loop remains the evidence producer
no resource limits on 40 of 40 containersrequests and limits on every workloadtrivial to add, and required before any tenancy claim

What must not be migrated: the prodg superuser pattern, the unsealed filesystem secrets, and the flat single-trust-domain assumption. Those are the three things the target exists to remove, and carrying any of them forward forfeits the migration.

Open items that block phases

Recorded here because a phase with an unresolved prerequisite is not a plan, it is a hope. Full register in spec-corpus-open-items.md.

itemblocks
The security watch plane's three open tensions have a deadline of "before this document leaves DRAFT"Phase 6 - the layer cannot be built while its own tenancy and fail-closed behaviour are undecided
jwt.md and tenancy.md are referenced as APPROVED but are absent from the available corpusPhase 6 and all tenancy work
The in-cluster DoR and DoD equivalents are both TBCPhase 2 - the projectors have no enforcement target until specified
platform.patch-finder is TBCPhase 4 - emergency lane automation depends on it
Laya and Jev-Omni have no pinned artifact, serving design or admission recordPhase 5 - typed decision engines are unadopted
row 85 of the stack, "Github Copilot SDK", has no description and a ~ sourcePhase 5
vLLM appears twice in the stackPhase 5 - an unmerged edit, not a component

The dependency chain

Phase 0 (pre-sealed bootstrap)
   |
Phase 1 (four clusters via Cluster API)
   |-----------+-----------+
Phase 3       Phase 6     Phase 4
(bus)         (identity)  (supply chain)
   |             |            |
Phase 2 ------+  |            |
(projectors)  |  |            |
   |          |  |            |
Phase 5 ------+--+------------+
(inference and agents)
   |
Phase 7 (observability)
   |
Phase 8 (migrate off the compose estate)

Phase 2 depends on Phase 3, not the reverse. Projectors need events to consume, so the bus lands first. Building projectors against a queue that does not exist is how this migration would waste a month.

Phase 8 is last and is the only phase that touches live data. Everything before it can be built alongside the running platform without risk.

What this plan does not solve

  1. The corpus is incomplete here. Stack.md references 40 source documents and none are present on this machine. The plan is derived from the eleven documents available and the directives given.
  2. The two APPROVED security documents that are missing (jwt.md, tenancy.md) are the ones that govern Phase 6 and the tenancy model. Their absence is the single largest gap.
  3. No effort estimates. Deliberately. The corpus has an estimate model with an estimator role and a variance record, and inventing numbers outside it would produce figures that look authoritative and are not.
  4. The typed decision engine question stays open. Laya and Jev-Omni are candidates, not components, and the plan does not assume either.

Open items

Seven blocking items, eleven open, three structural defects and four candidates, evaluated across the available spec corpus.

Open items register

How to read this

Three severities:

severitymeaningconsequence
BLOCKINGwork cannot proceed correctly until this is decided or writtenanything built on top is provisional
OPENa known gap with a workaround or an accepted riskcan proceed, but the gap must stay visible
CANDIDATEa considered option, not adoptedno consequence until it is taken up

The rule applied throughout: an item is open if the document says so. Nothing here is inferred from absence alone except where marked, and those are called out explicitly.

BLOCKING

| # | item | where | blocks | | --- | --- | --- | | 1 | Three security-watch tensions are undecided, each with the deadline "before this document leaves DRAFT" - cross-tenant visibility of the full transcript, inline fail-closed stopping the platform during a watcher outage, and the cost of examining every trace | agentic-security-layer.md (DRAFT) | the entire agentic security plane. It is a DRAFT that cannot be promoted until its own tenancy and failure behaviour are decided | | 2 | ai-governance.md is DRIFT-blocked pending MCP Guard consistency resolution - the governance roles cannot settle while MCP Guard's model is inconsistent | readme.md naming ai-governance.md | agent authority tiers and approval gates. Status is REVIEW and cannot advance | | 3 | The in-cluster Definition of Ready equivalent is TBC | definition-of-ready.md | every projector in migration Phase 2. There is no enforcement target in the cluster | | 4 | The in-cluster Definition of Done equivalent is TBC - server-side, event-driven enforcement on the bus, signed events as the audit trail, Tekton reconciliation as artefact truth | definition-of-done.md | same as above. Both gates are local-only today | | 5 | key-custody-runbook.md is "not yet written" | audit-compliance.md line 412 | the unseal ceremony. The policy names the runbook as its operative document and the runbook does not exist | | 6 | jwt.md (view-security-007) is listed as APPROVED in the security index but is absent | readme.md index vs the available corpus | anything depending on the JWT model. An APPROVED document that cannot be read is worse than a missing one, because the index implies it exists | | 7 | tenancy.md (view-security-009) is listed as APPROVED in the security index but is absent | readme.md index vs the available corpus | all tenancy work, including the four-layer isolation model referenced from security.md |

Items 6 and 7 are marked inferred-from-absence only in the sense that they are not in the available eleven documents. The index asserts they are APPROVED, so either they exist outside this set or the index is stale. Both possibilities need resolving and only the corpus owner can say which.

OPEN

| # | item | where | note | | --- | --- | --- | | 8 | The event sidecar, MCP Guard and the Rust workbook integration remain delivery work | stack.md preamble | the stack is a specified inventory, not implementation evidence. This sentence qualifies the entire document | | 9 | platform.patch-finder is TBC - a future component to scan CVEs and regulatory bulletins against the bill of materials and raise emergency-patch demands | definition-of-ready.md | the emergency lane's automation path. Today the lane depends on a human populating bypass-reason: | | 10 | verified_by: was removed and "its verification assets no longer exist" | both definition-of-* change logs, 2026-10-06 | a verification field was withdrawn. Nothing says the verification capability was replaced, so the question "who verified this" may now be unanswerable from the ticket alone | | 11 | No overall project plan exists - "The plan is per-ticket; there is no overall project plan" | definition-of-ready.md | a deliberate choice, recorded here because it is unusual and a reader will ask. Sequencing across tickets is therefore emergent | | 12 | Blue-green is the only permitted rollback, and it expires at the first production schema migration | definition-of-done.md | after that, defects must be fixed forward via a new ticket. This is a real constraint on how fast the platform can move, and it interacts with every migration phase that changes a schema | | 13 | Acceptance is one-way with no un-accept transition | definition-of-done.md | recovery from a bad acceptance is structural, not transactional. The rollback model is the only relief valve | | 14 | Coordinated insider supply-chain attack has "no purely technical control" | threat-model.md residual risk 1 | two colluding reviewers can merge malicious change into an L4 component. Compensating controls are Rekor, log emission, access reviews and least access - all detective, not preventive | | 15 | Upstream dependency compromise can evade SBOM scanning | threat-model.md residual risk 2 | a legitimate signed dependency carrying a novel or logic-level attack passes Grype. Only hermetic builds and Falco bound it | | 16 | Upstream IdP compromise has no platform-side prevention | threat-model.md residual risk 3 | recovery requires upstream remediation, token revocation and key rotation. The platform cannot act alone | | 17 | Emergency lane recognition is unenforced - "The story-manager, the reviewer swarm and pmo.lead MUST all flag any emergency ticket whose bypass-reason: does not match a recognised emergency category. TBC." | definition-of-ready.md | the categories are not enumerated, so the check cannot be mechanical. Depends on item 9 | | 18 | Github Copilot SDK at row 85 has no description and a ~ source | stack.md | an incomplete row in a document that is otherwise fully sourced. Looks like an unfinished edit |

Structural findings in the stack

Not open items in the corpus's own terms, but defects a review should surface.

#findingeffect
19vLLM is listed twice, at #34 and #81, with near-identical descriptions and the same source documentsnot a duplicate component - an unmerged edit. Any tooling counting the inventory will over-count, and a reader will wonder which row is authoritative
20Row numbering is not stable across changesa 2026-07-23 entry says it "renumbered the table". Rows are referenced by number elsewhere, so a renumber is a breaking change to every reference
21stack.md is normative: false while being the golden source for the component bill of materialsa non-normative golden source is a contradiction a reader must resolve. It likely means "specified, not approved", which is exactly what item 8 says

CANDIDATE

| # | candidate | where | state | | --- | --- | --- | | 22 | Laya - typed-decision model and runtime, non-autoregressive | stack.md | Apache-2.0 declared; exact checkpoints and dependencies still need review; no pinned artifact | | 23 | Jev-Omni - multimodal decision classifier, Gemma 4 12B IT base | stack.md | Apache-2.0 model card, dataset rights separate; GPU resources, base-model preload, modality limits and serving compatibility need evaluation; no pinned artifact | | 24 | Their reported accuracy, calibration, language coverage and latency are upstream figures, not verified service levels | stack.md | the document says so explicitly. Any decision on these must treat the numbers as claims | | 25 | Jev-Omni is an independent project, not TypeSafe's hosted Jev | stack.md | and TypeSafe's Jev "is not a runtime dependency or an approved service and will never be approved". That is a permanent exclusion worth knowing |

What this register does not do

  1. It does not resolve anything. Items 1, 2, 6 and 7 need a decision owner, not an analysis. The tensions in the security layer are judgement calls with named owners and deadlines already recorded.
  2. It is scoped to eleven documents. stack.md alone references forty source documents that are not present, so open items inside those forty are invisible here. The register cannot be called complete.
  3. It does not rank by effort. Severity here is about consequence, not cost. Item 3 may be cheap and item 14 may be unfixable; both are BLOCKING or OPEN for honest reasons.

The one-line summary

Seven blocking items, eleven open items, three structural defects and four candidates. The two that matter most are the two missing APPROVED documents (items 6 and 7), because a corpus that lists a document as approved and cannot produce it has lost the ability to be trusted about its own status.

Corpus consolidation

The responsibility map that removes the overlap, the five streamlining changes, and the reading order the corpus never stated.

Consolidation and streamlining

The corpus in one table

Eleven documents are available. They follow one schema and one convention, and the convention is good: every document carries an id, a status, a normative flag, a viewpoint, an owner, a golden_source_for list, a satisfies list and a change log with agent attribution.

That frontmatter is the most valuable thing in the corpus. It is a registry schema, and it means the documents are already machine-describable.

iddocumentstatusnormative
view-security-001security index (readme.md)APPROVEDno
view-security-002platform security stance (security.md)APPROVEDyes
view-security-003threat model (threat-model.md)APPROVEDyes
view-security-004AI agent governance (ai-governance.md)REVIEWyes
view-security-005audit, compliance and data governance (audit-compliance.md)APPROVEDyes
view-security-006ephemeral agent execution blueprint (enterprise-security-blueprint.md)APPROVEDno
view-security-007JWT (absent)listed APPROVED-
view-security-008workload identity lifecycle (workload-identity.md)APPROVEDyes
view-security-009tenant isolation (absent)listed APPROVED-
view-security-010agentic security watch layer (agentic-security-layer.md)DRAFTyes
-component stack (stack.md)REVIEWno
-definition of readyREVIEWyes
-definition of doneREVIEWyes

Nine of thirteen are APPROVED or better; four are REVIEW or DRAFT. The corpus is closer to settled than its own open-items list suggests, and the four unsettled documents are exactly the four that gate the migration phases.

The single responsibility map

The overlap in the corpus is real but small, and it has one cause: a document states a topic and delegates its detail, and the boundary is described in prose rather than enforced. The map below makes it explicit.

documentownsmust not restate
security indexthe folder index and nothing elseanything. The document already says this correctly: security.md "is not a folder index"
security stancethe zero-trust stance, the five-layer strategy, and the existence of the controlsthe control detail owned by the specific views. It should link, not recount
threat modelattack paths, threat actors, assets, residual riskcontrol implementation. It maps threats to controls that other documents own
AI governanceapproval gates, authority tiers, model risk, prompt-injection controlsthe general threat model. Its AI threats should defer to threat-model.md's AI section or absorb it, not both
audit and compliancethe logging substrate's required properties, classification, residency, retention, key custodythe logging pipeline's components, which the stack owns
workload identitythe SPIFFE/SPIRE lifecycle and its exception pathsthe JWT model for humans, which jwt.md owns
agentic security layerthe watch plane, truth enforcement, enforcement spinethe harness behaviour it observes
enterprise blueprintthe ephemeral execution pattern and its concrete configuration blocksthe identity and policy components it configures, which SPIRE and Kyverno own
component stackthe component bill of materials and cluster placementprotocols, methodologies, compliance framework names and rejected alternatives - the document already excludes these explicitly and correctly
definition of readythe intake gate criteriathe exit gate. It already links rather than restates, which is the discipline the others should copy
definition of donethe exit gate and the acceptance gatethe intake gate, same discipline

The one duplication that matters

security.md contains a JWT section and a Tenant isolation section, while jwt.md and tenancy.md exist as their own APPROVED documents. The security stance says it "sets direction and lists the specs it delegates detail to", which is the right intent - but then it carries the tenant-isolation detail inline, including the four-layer enforcement model.

Resolution: security.md keeps a one-paragraph statement that tenant isolation is a security property enforced at four layers, and links to tenancy.md for the layers themselves. The four-layer enumeration belongs in one place, and that place is the document named after it.

This is a real finding, not a style preference: two copies of a four-layer control model will drift, and the one an auditor reads will be whichever they happen to open.

The one duplication that is harmless

The "Relationship to other documents" table appears in both gates with the same shape. That is correct and should stay. A reader arriving at either gate needs the map, and making them open the other gate to find it would be worse.

Streamlining: five changes

#changewhy
1Move the four-layer tenant-isolation enumeration out of security.md into tenancy.md, leaving a statement and a linkremoves the only harmful duplication in the corpus
2State "the in-cluster equivalent is TBC" once, in a shared delivery note, and have both gates link to itit is currently restated in both gates with slightly different wording, which will diverge
3Merge the threat model's AI-specific threats into ai-governance.md, or have one own them and the other linkAI threats currently live in two documents with different framing
4Give stack.md a stable identifier per component rather than relying on row numbera 2026-07-23 change renumbered the table. Numbers are referenced elsewhere, so renumbering is a breaking change
5Mark row 85 (Github Copilot SDK) explicitly as incomplete rather than leaving it with a ~ sourcean unsourced row in a fully-sourced table reads as an error, not as an admission

The reading order

The corpus has no stated order. This one is derived from the dependency between the documents rather than from importance.

To understand the platform:

  1. stack.md - what runs where, and the one table that anchors everything else
  2. security.md - the stance that explains why those components
  3. threat-model.md - what the stance is defending against
  4. workload-identity.md - the identity path most other controls depend on
  5. audit-compliance.md - how any of it can be proven afterwards

To understand the process:

  1. definition-of-ready.md - how work enters
  2. definition-of-done.md - how work leaves, and what acceptance adds

For the hard parts:

  1. ai-governance.md - the agent authority model
  2. agentic-security-layer.md - the watch plane (DRAFT, read as unfinished)
  3. enterprise-security-blueprint.md - the ephemeral execution pattern
  4. readme.md - the index, for navigation

What is genuinely strong here

Worth recording, because a consolidation that only lists defects is not a review.

  1. The frontmatter schema is a registry. Every document is machine-describable with an owner, a status, a normative flag and a change log. This is what makes the migration's projector phase possible at all - the documents are already structured data pretending to be prose.
  2. The change logs attribute an agent per change. Corpus Worker 6, spec.fact-fixer, GitHub Copilot, Default Agent. Knowing whether a change came from a human or an automated pass is unusual and valuable.
  3. The gates link rather than restate. Both definition-of-ready.md and definition-of-done.md explicitly say other documents MUST link here rather than restating the rules. That is the correct instinct and it is stated as a rule, not a hope.
  4. Normative flags are honest. stack.md marks itself normative: false and says in its own preamble that it is "a specified inventory, not implementation evidence". A document that volunteers its own limits is worth more than one that does not.
  5. The residual risks are admitted. The threat model lists what it cannot control, in priority order, naming the compensating controls. Most threat models stop at the controls.
  6. The agentic security layer volunteers three unresolved tensions with owners and deadlines. A DRAFT that says "here is what we have not decided" is more trustworthy than one that pretends completeness.

The honest limit

This consolidation is built from eleven documents. stack.md alone references forty source documents that are not present on this machine, and the security index lists two APPROVED documents that are missing. A consolidation of one viewpoint plus three architecture views is not a consolidation of the corpus.

What it can do is establish the method: the responsibility map, the duplication findings, the reading order and the frontmatter-as-registry insight all transfer, and they are the parts that need judgement. Applying them across the remaining forty is mechanical once the documents are available.

SSA authority model

Server-Side Apply, Self-Sovereign Architecture and Sealed Secrets Authority as three layers of one question, each measured against the live Mainframe.

SSA - the three meanings

Why one document for three terms

SSA was given in a list of architecture directives and it resolves to three different things. Rather than pick one, they are accounted for together, because they are three layers of the same question: who holds authority.

expansionthe authorityover what
Server-Side Applythe API serverthe desired state of the cluster
Self-Sovereign Architecturethe platform itselfits own existence and dependencies
Sealed Secrets Authoritynamed custodiansthe key material that decrypts everything else

Read top to bottom they are: authority over state, authority over existence, authority over secrets. A platform that gets one right and the others wrong is still not sovereign. That is the argument for treating them as one model.


SSA-1 - Server-Side Apply

The mechanism. Declarative desired state, applied to the Kubernetes API server, which tracks which actor owns which field and surfaces conflicts rather than silently overwriting. The cluster reconciles toward the declaration.

Why it matters here. Server-Side Apply is what makes a declaration authoritative. Without field ownership, two controllers fight over the same object and the loser's intent vanishes silently. With it, the conflict is an event someone can see.

The Mainframe finding, measured:

what was checkedresult
kubectl get nsworks - default, kube-node-lease, kube-public, kube-system
GitOps controller runningnone
Cluster API controller runningnone

So the Mainframe has a cluster and no declarative apply layer at all. Everything is imperative Docker Compose, hand-run. A namespace exists; nothing reconciles it toward a declared state.

That is not a criticism of where the platform is - it is a precise statement of what migration Phase 1 and Phase 8 have to add, and it is why those phases are sequenced where they are.

Governs: Phase 0, Phase 1, Phase 8. Every phase that applies a manifest.

What adoption requires: a GitOps controller as the single apply path, Server- Side Apply mode rather than client-side, and a rule that no human applies to a cluster by hand. The rule is the hard part - the tooling is trivial by comparison.


SSA-2 - Self-Sovereign Architecture

The principle. The platform owns its identity, its data, its inference and its control plane. It does not depend on a third party for anything it cannot replace, and it declares every external dependency it does have.

Why it matters here. The Pax corpus states a sovereignty boundary explicitly and excludes a candidate for crossing it. Self-sovereignty is therefore not a vibe in this architecture, it is a stated admission rule - which makes it auditable.

The Mainframe finding, measured:

external dependency foundopenrouter in the LiteLLM configuration, with a base_url
what that meansthe platform's AI capability routes to a US SaaS for inference
declared anywhere?no

The Mainframe is mostly sovereign - OpenBao rather than Vault, Headscale rather than Tailscale SaaS, self-hosted Postgres, MinIO, Wazuh, Grafana. And then the AI path leaves the building on every model call.

That is not necessarily wrong. It is undeclared, which is the actual defect. A sovereignty claim with an undeclared exception is worse than a documented dependency, because the claim is what a reader trusts.

Governs: Phase 5 (inference), Phase 6 (identity), Phase 8 (migration).

What adoption requires:

  1. An external dependency register - every outbound service the platform talks to, with a justification and an exit path. LiteLLM to OpenRouter is entry one.
  2. A local-first rule: inference must be servable locally before it is routed externally. KubeAI and vLLM in Phase 5 make that possible; the register records who still depends on the outside.
  3. Identity stays internal. Keycloak and SPIRE over any hosted IdP.
  4. Recognition that sovereignty is a spectrum with declared position, not a binary. The target is not "zero external calls", it is "every external call is a decision someone made on the record".

A note connecting to the personal edition: the household edition took the same position for a different reason - local models so the house works without internet. Self-sovereignty and home resilience turn out to want the same architecture, which is worth knowing when scoping either.


SSA-3 - Sealed Secrets Authority

The mechanism. Secrets exist as ciphertext from the first commit. The authority that decrypts them is (a) held by named custodians, (b) split so no single person holds all of it, and (c) exercised through a rehearsed ceremony rather than at a prompt.

Why it matters here. This is the one where the Mainframe's current state is a genuine finding rather than a gap.

The Mainframe finding, measured:

.unseal-keya 26-byte file, mode 600, on one host
.root-token44 bytes, mode 600, on the same host
Shamir shards configurednone found

Read that back plainly: the key that unseals the platform's secrets manager is a single unsplit file on a single machine. Whoever reads that file, or whichever host it lives on, holds every secret the platform stores. The 600 permission is real hygiene and it protects against exactly one threat - a local unprivileged user. It does not protect against host compromise, accidental backup inclusion, or an operator who is root.

This is the anti-pattern the Sealed Secrets Authority exists to prevent, present in the running system.

There is a second finding, and it is worse than a missing control. audit-compliance.md names specifications/operations/key-custody-runbook.md as the operative document for the unseal ceremony - and records that the runbook is "not yet written". So the Pax corpus specifies the policy and has not written the procedure, and the Mainframe implements the policy's opposite. Neither project can currently restore its own secrets from cold.

Governs: Phase 0 (pre-sealed bootstrap), Phase 6 (identity and hardening).

What adoption requires, in order:

  1. Split the unseal key. Shamir shards with a threshold, no single holder of all of them. OpenBao supports this natively; the work is custody, not software.
  2. Move shards into sealed backups in the object store, as the Pax security stance already requires.
  3. Write the runbook, and rehearse it. An unrehearsed ceremony is a document, not a control.
  4. Seal before the first workload in every new cluster. Phase 0's ordering rule exists for this.
  5. Hold the identity signing key in the secrets manager PKI engine, never on a filesystem. The Pax stance states it; the Mainframe should be checked against it during Phase 6.

The honest note: step 1 is achievable in an afternoon. Step 3 is the one that takes a month, because it requires a second person, and the Mainframe currently has one operator. Sealed Secrets Authority is the one SSA that cannot be satisfied by a solo operator at all - which is worth knowing before promising it.


The three together

layerauthority overMainframe statefixing phase
SSA-1 Server-Side Applycluster statecluster, no reconcilerPhase 1
SSA-2 Self-Sovereign Architecturedependenciesmostly sovereign, one undeclared exceptionPhase 5
SSA-3 Sealed Secrets Authoritykey materialunsplit key on one host, no ceremonyPhase 0 and 6

The pattern worth noticing: SSA-2 is a documentation problem and SSA-3 is a custody problem. Neither is solved by adding a component. SSA-1 is the only one that a tool installs.

That is why all three belong in one document. Read separately, SSA-1 looks like the real work - it has a product name. Read together, SSA-1 is the easy one.

Cross-references

topicdocument
where these phases situnified-migrations-plan.md
the runbook that does not existspec-corpus-open-items.md item 5
the sovereignty boundary in Paxstack.md decision-engine candidates
the registry methodology these layers feedregistry-driven-methodology.md

Pax Agentic

Pax Agentic as a substance source: what transfers, what does not, what it reveals about the Mainframe's gaps, and the plan for full corpus access.

Pax Agentic - substance extraction

The relationship, stated correctly

Pax Agentic is a separate project. The documents sent are a sample shared to aid Mainframe development, and full access to the Pax corpus is expected in future.

That changes the exercise. The earlier pass treated the material as a corpus to be consolidated and its internal open items to be resolved. Those findings are still true, but they are Pax's findings to resolve, not the Mainframe's. The Mainframe's job here is different:

Read Pax for substance the Mainframe can adopt, and for what Pax reveals about the Mainframe's own gaps. Leave Pax's internal consistency to Pax.

Everything below is framed that way. spec-corpus-open-items.md should be read as a note handed back to Pax, not as the Mainframe's backlog.

What Pax is, in one paragraph

A specification corpus for a Kubernetes-native, multi-tenant autonomous-agent platform, written as VIEW documents in a versioned schema. It specifies a four-cluster topology with differentiated trust, an event-driven backbone, CQRS with projectors, a hardened supply chain, SPIFFE-based workload identity, an agentic security watch layer, and a level-aware ticket process with Definition of Ready and Done gates. The Mainframe is a working single-operator platform on Docker Compose with a registry-driven methodology. They are solving the same category of problem at different maturity in different directions - Pax has the architecture and not the running system, the Mainframe has the running system and not the architecture.

That is why the sample is useful. Each fills the other's hole.

The transfer register

Ordered by how much the Mainframe gains. This is the substance extraction.

#Pax substanceMainframe gaineffort
1Trust-tiered cluster separation - Security, Agents, Databases, Inference, each with a stated trust level and access rulethe Mainframe is one flat trust domain. This is the single largest architectural gap, and Pax supplies the model, the rationale and the access ruleshigh
2Workload identity (SPIFFE/SPIRE) - identities issued and rotated, never storedthe Mainframe has no workload identity at all. Services authenticate with long-lived credentials from environment fileshigh
3The VIEW frontmatter schema - id, status, normative, owner, golden_source_for, satisfies, agent-attributed changesthe Mainframe's registries are the same idea but less strict. Pax's normative flag and satisfies link are direct upgradeslow
4Projectors and CQRS - one projector per source, materialising a read model shaped for its consumersgives the registry methodology an event-driven execution path instead of batch collectionmedium
5The threat model method - attack paths, then controls, then residual risks in priority order with compensating controlsthe Mainframe has controls but no published threat model with admitted residual risklow
6Audit as a function, not a component - the required properties of the logging substrateclarifies that the Mainframe's log store is not the audit capability; the properties arelow
7Supply chain - Tekton, Syft, Grype, Trivy, Fulcio, Rekor, signed and attested artefactsthe Mainframe archives but does not sign or attest. Fulcio and Rekor are the missing halvesmedium
8Self-sovereignty as an admission rule with a stated boundaryconverts the Mainframe's sovereignty claim into something auditable, and exposes its one exceptionlow
9AI governance - authority tiers, approval gates, model cards, prompt-injection controlsthe Mainframe has one unrestricted operator agent. Pax supplies the tier modelmedium
10The agentic security watch layer - tool-less watchers over all agent and LLM trafficnovel and directly applicable; the Mainframe's agent currently has no watcherhigh
11Level-aware gates (DoR and DoD with epic, feature and story criteria)the Mainframe's registry changes have no gate at all. Pax's level-awareness is more than the Mainframe needs, but the gate idea transfersmedium
12The emergency lane - a defined bypass with lane:, bypass-reason: and a mandatory follow-up ticketdirectly applicable to incident work, and more disciplined than the playbook approach: the bypass is recorded permanently and repaired afterwardslow
13SigNoz over ClickHouse replacing the metrics stacka candidate consolidation, not an obvious win. See the reservations belowhigh

What does NOT transfer

Stated so nobody imports a process the Mainframe has no use for.

| not transferred | why | | --- | --- | --- | | The pmo.* agent roster and the ticket hierarchy | that is Pax's delivery process. The Mainframe is single-operator and has no BA, planner, estimator or manager roles to populate | | Per-ticket plans with mermaid sequence diagrams | correct at Pax's scale with Pax's roles. At one operator it is overhead with no reader | | The estimator and the estimate-variance record | there is no team to estimate against | | Pax's specific cluster names and count | four clusters is the right shape; the Mainframe may need two or three, and adopting four because Pax has four would be cargo | | The forty source documents as a reading list | they will be available in full later; reading them now in fragmentary form would be guessing |

What Pax reveals about the Mainframe

The most useful output, and it is uncomfortable. Reading an architecture that took these questions seriously shows where the Mainframe never asked them.

gaprevealed byseverity
No workload identitythe entire SPIFFE and SPIRE modelhigh - every service uses long-lived static credentials
One flat trust domainthe four-cluster trust tiershigh - a compromise anywhere is a compromise everywhere
No declarative applyServer-Side Apply as the stated mechanismmedium - a cluster exists with no reconciler
Undeclared external dependencythe sovereignty boundary and the admission rulemedium - LiteLLM routes inference to OpenRouter and nothing records it
Unsplit secrets keythe sealed secrets authority and the unseal ceremonyhigh - one 26-byte file on one host unseals everything
No artefact signing or attestationFulcio, Rekor, Tekton Chainsmedium
No gate on registry changesthe level-aware DoRmedium - the registries are authoritative and anything may edit them
No published threat modelthe attack-path and residual-risk methodmedium - unexamined is not the same as safe
No resource limits anywhereimplicit: Pax specifies per-cluster placementlow to fix, high to leave

Six of these are already findings in the Mainframe's own work - the suggested point is not that Pax discovered them, it is that Pax supplies a designed answer for each rather than only naming the problem. That is the difference between a finding and a remediation.

The noise-pattern exception

Items 13 in the transfer register is the one place the sample suggests something that should not be taken at face value.

Pax removed Prometheus, Loki, Tempo, Thanos, Grafana, Alloy, Beyla and Pyroscope in favour of ClickHouse, SigNoz and OpenTelemetry. The Mainframe runs Prometheus, Grafana, Loki and Promtail, and they work.

The transferable part is the principle, not the stack: one columnar store, one collection agent, one console. The Mainframe can meet that principle with what it already runs. Replacing a working observability stack to match another project's component list is exactly the cargo the adoption rules exist to prevent - and the Mainframe has a track record of declining components on precisely that ground.

So: adopt the principle, decline the migration until the Mainframe's own observability actually hurts.

When the full corpus arrives

A plan now, so the access is used well rather than skimmed.

1. Read in dependency order, not document order. The sample already shows the shape: the component stack anchors everything, the security stance explains why, the threat model explains what it defends against, workload identity is the path most controls depend on, and audit explains how it is proven.

2. Extract into the transfer register, adversarially. For each Pax component, answer three questions before adopting: what does the Mainframe gain, what does it cost to run, and does the Mainframe's own adoption rules permit it. Several Pax components will fail the licence or language rules - Pax is written as a specification and does not appear to apply a licence filter, which is a real difference between the two projects.

3. Resolve the two missing documents first. jwt.md and tenancy.md are listed APPROVED and govern the identity path and the tenant model. Everything in the transfer register that depends on tenancy is blocked until they are read.

4. Treat Pax's open items as Pax's. Record them, hand them back, do not let them into the Mainframe's backlog. The Mainframe's backlog is its own nine migration phases.

5. Watch for the licence and language collision specifically. Pax specifies Python-hosted components (Docling), Node tooling and AGPL dependencies without comment. Every one of those is a rule violation in the Mainframe. The two projects have different adoption laws and the register must apply the Mainframe's, not Pax's.

The honest summary

The sample is worth more than its size suggests, because Pax has designed the architecture the Mainframe is missing, and the Mainframe has the running system Pax does not.

The most valuable single transfer is trust-tiered cluster separation, because it is the gap the Mainframe's own tenancy assessment already identified - one flat trust domain - and Pax supplies the model rather than only the diagnosis.

The most valuable single revelation is workload identity, because the Mainframe has none and its services hold long-lived credentials from environment files. That is the finding an auditor finds first.

And the constraint to carry into the full corpus: Pax's answers were not written to the Mainframe's adoption rules. Apply ours, not theirs.

Agent protocol (HELM)

Handshake, Envelope, Lease, Merge - a protocol for multi-agent interaction, built from the measured collision evidence and the trust layer A2A leaves empty.

HELM

Handshake, Envelope, Lease, Merge. A protocol for multiple agents writing to shared authoritative state.

The problem, measured

Not hypothetical. Three rounds of collisions in one session, all on the Mainframe's own registries:

#what happenedmechanism
1a peer agent added five primitives and two playbooks while I was reading the same fileslost update - I would have overwritten its edits had I written from my in-context copy
2a peer agent added five doctor checks; I then added a check numbered 17, which already existedidentifier collision - both of us assigned "17"
3I inserted a check after a ; and broke doctor-summary.cypher outrightno validation before write, so a syntax error reached the shared artefact

Every one is a textbook concurrency defect. Round 1 is a lost update. Round 2 is a collision on a hand-assigned identifier. Round 3 is a write without validation.

And the diagnosis is not mine. Christopher Meiklejohn watched exactly this happen with two Claude Code instances creating migration 267 simultaneously:

"This is a lost update - the exact same problem that distributed databases have been solving since the 1970s. A lost update playing out in a directory of SQL files instead of a network of processes."

His conclusion is the premise of this design:

"These aren't prompt engineering problems. They're coordination problems. ... shared mutable state with no formal concurrency control. No fault model. No reasoning about what happens when agents disagree."

What the field already provides

A2A v1.0 - and the gap it leaves

A2A is the agent-to-agent standard: contributed by Google, hosted by the Linux Foundation, stable v1.0 in March 2026, Apache-2.0, 150+ organisations.

elementwhat it does
Agent Carda JSON manifest at /.well-known/agent-card.json advertising skills, input/output modes, security schemes and interfaces. v1.0 allows signed cards
Client / Server rolesfluid - any agent can switch, so topologies can be mesh or hub-and-spoke
Taskthe unit of long-running work, with explicit states: submitted, working, input-required, completed, failed, canceled
Message and Partsunified part structure - text, structured data, inline bytes, file URL
Artifactthe result of delegated work
Streaming and pushSSE for live updates, push notifications for work outliving the connection
BindingsJSON-RPC, gRPC, HTTP+JSON/REST - the application model is separated from the transport

And the sentence that defines this project's opportunity:

"A2A describes how an agent advertises and applies those schemes, but credential issuance and trust policy remain outside the protocol."

A2A is deliberately incomplete on trust. HELM is that layer.

MCP - and why it is not this

MCP connects an agent to tools and data. A2A connects agents to agents. Neither addresses agents writing to shared authoritative state, which is the Mainframe's actual problem. The registries are not tools and not peers; they are the platform's declared truth, and three writers are editing them.

Pax - the authority model already decided

Pax supplies the tier model the Mainframe should adopt:

tierrolesauthority
Operatorarc.*, pmo.*, graph leadsPropose only. MUST NOT apply changes directly. Output is a PR or a plan ticket
Worker / Plannerreview.*, sys.*, research.*MAY apply changes within their declared scope
Senior agentexplicitly grantedMAY approve a peer's output, MUST NOT approve its own

The load-bearing line, which this design treats as a requirement:

"Segregation of duties is enforced by agent identity, not trust level."

That is the whole argument for envelopes carrying cryptographic identity rather than a self-declared role.

The design

The insight that makes this tractable

A registry is a map keyed by entry key. That changes the conflict analysis completely:

casefrequencycoordination needed
two agents edit different keysthe overwhelmingly common casenone. A keyed map merges them without loss - this is the CRDT property
two agents edit the same keyrare, and usually a genuine disagreementa lease, and a recorded winner

So the protocol is free for the common case. The Mainframe's peers were mostly adding different entries - which is why most of their work and mine coexisted fine. The collisions happened on things that are not keyed maps at all:

That is the real finding. The registry entries are safe by construction; the things around them are not.

The four mechanisms

1. Handshake - capability declaration

Every agent publishes an agent card: identity, tier, declared scope, capabilities, and the interfaces it exposes. Signed, and served at a well-known path so any peer can read it before interacting.

A2A-compatible. A HELM card is an A2A Agent Card plus a governance extension:

HELM additionwhy
tieroperator, worker or senior - drives the authority check
declared_scopethe paths and registries the agent may write to. Pax requires this in .agent.md; HELM requires it in the card
last_handshakewhen the card was published, so a stale card is visible
signaturethe card is signed, and the signer is verifiable

2. Envelope - no bare writes

Every write to shared state carries a signed envelope:

fieldpurpose
agentverifiable identity, not a self-declared name
tier and scopewhat the card claimed, checked at write time
subjectthe artefact and key being written
observedthe version vector the writer had seen. This is the causal context
lamporta logical timestamp, so ordering exists without a shared clock
leasethe lease being exercised, if other writers exist
digestthe content hash, so the write is verifiable after the fact
signatureover all of the above

observed is the field that prevents round 1. Without it, a writer cannot be asked "had you seen the other change?" and a lost update is undetectable after the fact - which is exactly why round 1 was only caught by luck.

3. Lease - a scoped, expiring claim

Before writing to a non-keyed artefact - a script, a generated file, a shared counter - an agent takes a lease: a claim on the path with a short TTL, renewable, and bound to an agent identity.

Three rules make leases safe where naive locking is not:

  1. Leases expire. An agent that hits a context limit and stops must not block the platform forever. This is the crash-recovery model applied to LLM processes.
  2. A lease is a hint, not a mutex. If a lease expired and another agent wrote, the merge still applies - the lease reduces collisions, it does not replace merge.
  3. Leases are recorded. A lease is a registry entry with a TTL, so the claim store is the graph the platform already runs rather than new infrastructure.

The identifier rule. Round 2 was not a file collision, it was an identifier collision: two agents both chose "17". The rule that prevents it:

Identifiers MUST be derived from the key, never assigned by sequence.

A check named external_dependency_unenumerated cannot collide. A check named 17 collides whenever two agents add one. This is the same defect I found in stack.md, where a change "renumbered the table" and rows are referenced by number elsewhere - a hand-assigned sequence is shared mutable state, and it will collide. One rule fixes both projects.

4. Merge - causal ordering, surfaced conflict

When two envelopes touch the same subject:

situationresolution
different keysmerge automatically. No conflict exists
same key, one writer observed the otherlast-writer-wins is safe, because the causality is known and the losing version is recorded
same key, neither observed the otherconcurrent write. Both are retained; one is marked authoritative; the divergence is an event, not a silent overwrite
same key, same valueidempotent, nothing to do

The third row is the one that matters. A concurrent write must be an event someone can see, never a silent loss.

Where HELM sits in the stack

    A2A          agent <-> agent delegation      (wire, cross-organisation)
    MCP          agent <-> tool and data         (wire, capability)
    HELM         agent <-> shared authoritative state   (governance, THIS)
    SPIFFE       identity underneath             (Pax Phase 6)
    Redpanda     the event log underneath        (Pax Phase 3)

A2A carries the delegation. HELM decides whether the resulting write is permitted, ordered, and proven. A2A's own specification says trust is out of scope; HELM is in scope for exactly that.

Alignment with where the Mainframe is heading

The protocol is designed to land on the Pax target rather than beside it.

HELM mechanismlands onPax phase
Handshake identitySPIFFE SVIDs, not self-declared namesPhase 6
Envelope eventsCloudEvents on RedpandaPhase 3
Lease claimsa keyed node in the graph, read by the doctorPhase 2
Mergethe event log as the audit trailPhase 3
Envelopes as the watch surfacethe agentic security watch layerPhase 6

That last row is the important one. Pax's watch layer is specified to observe "all agent, LLM, and tool communications" - but raw transcripts are a poor watch surface because there is no structure to check. HELM envelopes give the watch layer something to actually inspect: who wrote, under what tier, with what observed state, under which lease. A watcher can reject an envelope. A watcher cannot reject a transcript.

So HELM is not parallel to Pax's security layer - it is what makes it enforceable.

Enforcement, in the platform's own idiom

The protocol is expressed as the platform expresses everything else.

Primitives (additions to the vocabulary):

primitiveintentriskapprovalevidence
publish-agent-cardcommunicatelownoneagent-card
claim-artefactactmediumnonelease-record
release-claimactlownonelease-record
write-with-envelopeactmediumnonewrite-envelope
reconcile-concurrent-writedecidehighrequiredreconciliation-record

reconcile-concurrent-write is gated because it decides which of two competing authoritative claims survives. That is a governance act, not a technical one.

Playbook: concurrent-edit-conflict - detect from doctor findings, assess whether the divergence is semantic, reconcile with approval, record the outcome, and update the loser's agent card if the cause was an undeclared scope.

Doctor checks:

checkdetects
artefact_written_without_envelopea write with no causal context - round 1
hand_assigned_identifiera sequence-numbered identifier - round 2
stale_agent_cardan agent whose handshake has lapsed
expired_lease_holder_activean agent holding an expired lease but still writing
concurrent_write_unreconcileda divergence recorded but never resolved

The minimum viable version, buildable now

The full protocol needs SPIFFE (Phase 6). The collision problem is solvable today with what already runs.

  1. Agent cards as a registry. A agents.yaml with tier and declared scope, collected like every other registry. The platform already collects agents; this adds two fields.
  2. The graph as the claim store. A lease is a node with a TTL and an owner. MATCH (c:Claim) WHERE c.expires > datetime() is the whole implementation.
  3. The identifier rule, enforced by a doctor check. Mechanical, and it fixes rounds 2 and the stack.md renumbering at once.
  4. Envelopes as commit trailers. Until SPIFFE exists, the envelope is a commit message trailer: agent, tier, scope, observed. Not cryptographic, but it makes the causal context present, which is the part that prevents silent loss.
  5. A pre-write digest check. Round 3 was a syntax error reaching a shared file. A validation step before any shared write turns that from a broken artefact into a refused write.

Five items, none requiring new infrastructure, and together they close all three measured failure modes.

Honest limits

  1. A lease is not a lock. It reduces collisions, it does not eliminate them. Agents that ignore the protocol still collide, and the merge is the actual safety net.
  2. Byzantine agents are the unsolved case. Meiklejohn's sharpest point: an LLM that hallucinates a plausible fix, passes its own tests and ships it is a Byzantine fault. HELM's envelopes make such a write visible and attributable, not correct. Detecting a confident wrong answer is the watch layer's problem, not this protocol's.
  3. No CRDT machinery is proposed. The registries are keyed maps and merge naturally; the non-keyed artefacts are not, and pretending otherwise would be false precision. Leases plus recorded conflict is the honest design for them.
  4. The protocol cannot be retrofitted to the three collisions already gone. Two were resolved by hand and one was repaired. They are evidence, not recoverable.
  5. This does not decide who is authoritative. When two agents genuinely disagree about a registry entry, HELM records the disagreement and requires reconcile-concurrent-write with approval. It does not make the judgement.

Operations

The Docker socket privilege fix, one-command bring-up, and the scheduled conformance loop that closes the recursive loop.

Registry operations

The privilege fix

The registry indexer used to require /var/run/docker.sock bind-mounted into its container. That socket is not a monitoring interface. It is the daemon control plane, and access to it is equivalent to root on the host: anything holding it can start, stop and delete containers, and can exec arbitrary commands inside them.

For a platform whose declared target is banks, government and defence, that is a finding an auditor raises on the first pass. It was recorded as such, and it is now fixed.

What replaced it

wasnowwhy it is narrower
docker ps over the raw socketdocker ps through a read-only socket proxythe proxy disables POST, so no create, start, stop, exec or delete is possible
docker exec headscale headscale nodes listHeadscale's HTTP API with a scoped keyno runtime exec; the key is scoped and expires
docker exec postgres psql ...PostgreSQL over TCP with bun's built-in clienta read-only SELECT, creds from an existing 600 file
docker exec litellm cat /app/config.yamlread the bind-mounted fileit was already a host file

The indexer now contains zero docker exec calls and no socket mount. Verified by grep, not by assertion.

The socket proxy listens on loopback only and permits containers, images, info and ping. POST=0 denies everything mutating, which is the property that matters: the proxy can read the estate and cannot alter it.

Bring-up

bringup.sh takes the graph from nothing to conformant in one command:

  1. generate the Neo4j password if absent
  2. start the read-only socket proxy
  3. start Neo4j
  4. wait for health
  5. apply the schema, then the generated registry graph
  6. refresh the host-derived registries with the bun indexer
  7. re-apply, then run the conformance checks

It is idempotent: every step tolerates already being done.

The conformance loop

doctor-loop.sh is the recursive loop closing. It regenerates the registries from the live host, reapplies them to the graph, runs every check, and records the outcome as an evidence artefact.

exit codemeaning
0conformant, every check returned zero findings
1findings present
2the loop could not run, the graph is unreachable

The distinction between 1 and 2 matters. A finding is a real result about the platform; a failure to run is a broken loop. Collapsing them into one non-zero code would hide the difference between the platform is non-conformant and we do not know.

Why a summary query

Twenty separate checks each returning an empty result set is awkward to alert on. doctor-summary.cypher returns one row per check with its finding count, which sums to a single number. That number is what the loop reports and what a scheduler can act on, while the detailed queries remain available for triage.

Schedule

Installed at /etc/cron.d/prodg-doctor, daily at 04:15 UTC, writing to /opt/prodg/data/registry-reports/. Every run leaves a timestamped report, so the evidence trail accumulates rather than being overwritten.

What a finding should trigger

A finding is not a crash and should not be handled as one. It is a fact about the platform that no playbook currently owns, which is the gap worth closing next: each check should map to a primitive, so that a service_without_loadout finding composes into a remediation rather than landing in a log.

What the loop found on its first real run

The conformance loop paid for itself immediately. Its first end-to-end run surfaced four defects in this platform's own work, three of them in code written the same day. That is the strongest possible argument for the loop existing.

defectwhat was wronghow it was found
Collector emitted no registry edgesemitEntry wrote MERGE (e:Entry:...) without a terminating semicolon, so the following MERGE (e)-[:IN_REGISTRY] ran as a separate statement with e unbound, creating orphan nodes instead of edges88 entries reported as unregistered
Full-pattern MERGE violated a constraintMERGE (e)-[:IN_REGISTRY]->(:Registry {key: ...}) attempts to create a new Registry node because an anonymous node in a MERGE pattern is created rather than matched, which then hit the uniqueness constraintthe apply failed with Node(12) already exists with label Registry
Check counted the meta-registry as unprovenancedmissing_provenance did not exclude the registry-of-registries, so 18 legitimate registry nodes were reported18 phantom findings
A playbook had no evidence stepsupply-chain-compromise had no verify or record step, so it could not be shown to have workedplaybook_without_evidence, correctly

The first two are the same class of mistake: a Cypher MERGE behaving differently from how it reads. Both are now fixed, and both carry a comment explaining why, so the next person does not reintroduce them.

Live state

The graph is up and queryable.

measurevalue
registries18
entries112
relationships223
primitives38
playbooks10
playbook steps100

The socket proxy is verified doing its job: GET /_ping returns 200 and POST /containers/create returns 403. The indexer reads 37 containers through it without ever touching the raw socket.

Legitimate findings that remain

Two checks return non-zero and both are correct, not defects. They are the loop working as intended.

  1. Three agents have no declared interface - the Hermes runtime profiles cypher, nexus and investigator act on the platform but their interface surfaces are not declared anywhere. An agent nothing can reach cannot be alerted on or held to account.
  2. Five primitives are declared but unused - assign-role, start-service, page-oncall, update-status and rollback-schema. The first four are the vocabulary running ahead of the scenarios. rollback-schema is the one that matters: it is defined, it is dangerous, and no playbook uses it, so schema rollback has no procedure.

They are not crashes

A finding is a fact about the platform, not a failure of the loop. The loop exits 1 and writes a report; it does not stop the platform and it does not pretend the finding is not there. Exit 2 is reserved for the loop itself being unable to run.

The gap worth closing next is that a finding has no owner. Each check should map to a primitive, so a service_without_loadout finding composes into a remediation rather than landing in a log.

Assessments

ClickHouse, snowflake-labs and Bytebase assessed against the regulated target, with the licence findings verified against the actual licence files.

Third-party assessments

The questions that decided it

Two tests were applied to each repository, and they are the same two that disqualified Neo4j Community Edition earlier in this work:

  1. Is the open edition genuinely open, and does it permit self-hosted commercial use inside a bank?
  2. Does the open edition carry real access control, or is RBAC a paid tier?

A third test applied throughout: the project forbids Python, so a tool written in Python cannot be adopted as-is no matter how good it is.

Verdicts

repositoryverdictthe deciding fact
ClickHouseadopt later, as a complementApache-2.0, OSI-approved, never relicensed, and RBAC is in the open-source build
snowflake-labsdo not adopt, except one artefacta SaaS vendor's labs org; almost nothing works offline or without an account
Bytebasenot adopted as the governance layerthe LICENSE carves the permission and plan-enablement code out of the MIT grant

The licence findings, verified

Both decisive claims were checked against the actual licence files rather than taken on trust.

ClickHouse is genuinely Apache-2.0. The licence file reads Copyright 2016-2026 ClickHouse, Inc. followed by the unmodified Apache 2.0 text. The common belief that ClickHouse relicensed is wrong: what changed was the copyright holder, from Yandex to ClickHouse Inc, plus an open-core product boundary where SharedMergeTree, lightweight UPDATE and the S3 role are Cloud features. The core has shipped Apache-2.0 since 2016. No field-of-use restriction, no SaaS clause. Self-hosted commercial use inside a bank is permitted.

Bytebase's carve-out is real, and it is verbatim. The top-level LICENSE states that, outside a few directories, the MIT grant applies, except for:

- Any code controlling feature, permission, role and plan enablement.

That is the permission machinery itself. The functional consequence is that the free Community edition does have RBAC, but approval workflow, audit log, SSO, custom roles, just-in-time access and data masking are all Enterprise-only, and self-hosted offers no middle tier. The code that decides what a role may do is not open source.

A related finding worth recording: Liquibase 5.0 moved to the Functional Source License, which is not OSI-approved. Anything pinned to Liquibase should stay on the 4.x Apache-2.0 line or move.

What changed as a result

The assessments did not sit in a document. Three things changed in the platform.

1. Schema-change governance, in the vocabulary

The research surfaced a real gap: ten PostgreSQL databases and no schema-change governance at all. Three primitives were added, bringing the vocabulary to thirty-eight:

primitiveriskapprovalevidence
migrate-schemahighrequiredmigration-record
rollback-schemacriticalrequiredrollback-record
verify-schemalownoneschema-verification

And a tenth playbook, schema-change, which sequences them: query the registry, open a ticket, snapshot the pre-state, hash the migration artefact, pass a human approval gate, apply, verify the resulting version, record the evidence, and write the new version back to the registry.

2. A migration engine, chosen on licence and language

golang-migrate was adopted. MIT licensed and OSI-approved, written in Go so it satisfies the no-Python law, and it runs entirely offline against a local database so it satisfies sovereignty.

schemachange from snowflake-labs was rejected on two independent grounds: it is Python, and it is Snowflake-locked and cannot target PostgreSQL. It was mined for its migration patterns, which are sound, and then discarded as a component.

The runner lives at migrations/migrate.sh. Nine databases now have a baseline migration marking the existing schema as version 1, so future changes have a version to build on. Verified working: the runner connects to a real database over loopback and reports cleanly.

3. No deployments

ClickHouse was not deployed. Its verdict was adopt later, as a long-retention analytics store alongside Prometheus, Loki and PostgreSQL, gated on four control preconditions rather than on capability: audit-trail shipping to WORM storage, access-lifecycle governance, a licence clean-room over bundled repositories, and the platform's own self-certification.

Bytebase was not deployed. The verdict was that it would duplicate governance the platform already has, and that two sources of truth for approval is worse than one.

The one snowflake-labs artefact worth a second look is pg_lake, an Apache-2.0 C extension giving PostgreSQL a standalone Iceberg lakehouse with no Snowflake account required. It is recorded as a candidate, not adopted.

The architectural point

Bytebase is a good product solving a real problem. The reason it was declined is specific to this platform: the approval, audit and evidence model it sells is already represented here as primitive properties and a playbook registry, which is authoritative, free, and joined into the same graph as everything else.

That is the test to apply to the next tool in this category. If a product's governance model can be expressed as primitives, adopt the product as an execution backend and keep the registry authoritative. If it cannot, and the registry must defer to it, then it is replacing the governance rather than serving it, and that is a much larger decision.

Open decisions

questionblocks
Is the four-precondition gate for ClickHouse the right one, or should a non-regulated dev instance be stood up first?analytics capability
Does pg_lake get a security review, and who owns it?lakehouse capability
Should the nine baselines be applied so tracking begins, or stay declarative until the first real change?migration governance
Who approves a migration when the operator is the only approver? Separation of duties reappears here.schema change

ClickHouse

ClickHouse - adoption assessment for a self-hosted, regulated-target platform

Assessment of ClickHouse (https://github.com/ClickHouse, https://clickhouse.com) for adoption into a self-hosted platform whose governing objective is to be "secure and compliant enough to be deployed in the most sensitive high risk environments ... Think banks / governments / defence".

All facts were checked against live primary sources (GitHub REST API, the ClickHouse documentation, the Apache/OSI licence texts, and vendor legal pages) on 2026-10-06. Where a claim is a judgement rather than a verified fact, it is labelled as such. The assessment assumes the already-adopted control catalogue NIST SP 800-53B High and the ISO 27001:2022 certification shell.

Constraints applied throughout: no Python, no node/npm/npx/yarn (bun is the replacement), and ASCII-only output (no emoji, plain hyphen for dashes). This document is descriptive research; the project laws govern tooling, not the content of third-party software assessments.

0. Verified at a glance

FactValueSource (checked 2026-10-06)
Core repositoryClickHouse/ClickHousehttps://api.github.com/repos/ClickHouse/ClickHouse
SPDX licence of coreApache-2.0https://api.github.com/repos/ClickHouse/ClickHouse
Stars / archived / last push50,274 / false / 2026-10-06T16:39:25Zhttps://api.github.com/repos/ClickHouse/ClickHouse
Open-sourced15 June 2016, under Apache 2.0https://clickhouse.com/blog/what-a-difference-10-years-of-open-source-makes
Latest stable (Wikipedia)v26.8.2.7-lts, 1 September 2026https://en.wikipedia.org/wiki/ClickHouse
Modern container imageclickhouse/clickhouse-serverhttps://clickhouse.com/docs/get-started/setup/self-managed/docker
Governing ports8123 (HTTP), 9000 (native TCP)https://clickhouse.com/docs/guides/sre/network-ports
Commercial vehicleClickHouse, Inc. (Delaware, SFO/Amsterdam)https://clickhouse.com/company/our-story

1. What ClickHouse is and its core architecture

ClickHouse is a column-oriented SQL database management system (DBMS) for online analytical processing (OLAP), available both as open-source software and as a managed cloud offering (https://clickhouse.com/docs/get-started/about/intro). It began inside Yandex in 2009 and was open-sourced on 15 June 2016 (https://clickhouse.com/blog/what-a-difference-10-years-of-open-source-makes).

The performance model rests on four architectural pillars:

  1. Column-oriented storage. Tables are stored as a collection of columns, so the values of each column sit contiguously on disk. A query that reads a few of many columns reads only those columns, avoiding the whole-row I/O that a row store must perform. The documentation's worked example processes 100 million rows in 92 ms (roughly 1 billion rows/second) because irrelevant columns are not loaded (https://clickhouse.com/docs/get-started/about/intro).
  2. The MergeTree engine family. MergeTree is the workhorse storage engine; data is written immutably into sorted "parts" and merged in the background. Specialised variants extend it: ReplacingMergeTree (dedup), AggregatingMergeTree (pre-aggregation), SummingMergeTree, and more. A sparse primary index (order-of-megabytes per terabyte) prunes the search space (https://clickhouse.com/reference/engines/table-engines/mergetree-family/mergetree; overview: https://clickhouse.com/clickhouse).
  3. Vectorized query execution. Instead of processing one row at a time, ClickHouse processes a block (granule) of 8192 values at once, using SIMD-friendly loops that keep modern CPUs busy and reduce per-row overhead (https://oneuptime.com/blog/post/2026-03-31-clickhouse-column-oriented-storage/view; https://www.instaclustr.com/education/clickhouse/clickhouse-architecture-4-key-components-and-optimization-tips).
  4. Massive parallel + adaptive processing. Queries are parallelised across cores and, in a cluster, across nodes; joins are chosen adaptively (fast hash joins, falling back to merge joins for large tables) (https://clickhouse.com/docs/get-started/about/intro).

Additional architecturally relevant properties:

Judgement: the architecture is a good match for append-heavy, scan-heavy, high-volume analytical workloads (logs, events, metrics, traces, security telemetry). It is not a transactional (OLTP) database; row-level updates and single-row reads are weak relative to PostgreSQL.

2. The licence situation and its history

2.1 What the current version ships under

The core ClickHouse repository is licensed under the Apache License, Version 2.0. This is stated by the repository metadata ("spdx_id": "Apache-2.0") and by the LICENSE file itself, whose header reads "Copyright 2016-2026 ClickHouse, Inc. ... Apache License, Version 2.0, January 2004" (https://api.github.com/repos/ClickHouse/ClickHouse; https://github.com/ClickHouse/ClickHouse/blob/master/LICENSE). Wikipedia's infobox records the same (https://en.wikipedia.org/wiki/ClickHouse).

2.2 Is it OSI-approved?

Yes. The Apache License 2.0 is an OSI Approved License, and has been since 2004 (https://www.apache.org/licenses/LICENSE-2.0; SPDX identifier Apache-2.0). It is a permissive licence, not a copyleft or source-available licence such as BSL, SSPL, or RSAL.

2.3 The history - precise and honest

The premise "it changed licence at some point" needs correcting against primary sources: the core ClickHouse code has been Apache 2.0 since it was open-sourced on 15 June 2016 and has never been relicensed away from Apache 2.0. Two real events are what people usually mean by a "change":

  1. Copyright-holder change, not a licence change. The LICENSE file now attributes copyright to "ClickHouse, Inc." (2016-2026) rather than to Yandex. The licence text itself is unchanged. The company was incorporated in September 2021 to commercialise the project (https://clickhouse.com/company/our-story). In 2023 this prompted the community question "is ClickHouse moving away from open source?", to which both ClickHouse's CTO and third-party vendor Altinity answered explicitly that the Apache 2.0 licence is not changing (https://altinity.com/blog/is-clickhouse-moving-away-from-open-source; https://altinity.com/blog/clickhouse-is-apache-2-0).
  2. A shift to an open-core model. Since ClickHouse Cloud launched in September 2022, some features exist only in the closed-source Cloud branch - notably the SharedMergeTree engine (storage/compute separation), lightweight UPDATE, and S3 role-based access. The CTO framed the intent as keeping any Cloud-only modifications "small, limited" and non-compromising for self-managed users (https://altinity.com/blog/is-clickhouse-moving-away-from-open-source, quoting https://github.com/ClickHouse/ClickHouse/issues/44767). This is a product-boundary shift, not a relicensing of the Apache-2.0 core.

Two further precision points for a bank's legal review:

2.4 What the ClickHouse, Inc. commercial offering adds

ClickHouse, Inc. monetises through ClickHouse Cloud (and BYOC), not by gating RBAC. From the published pricing tiers (https://clickhouse.com/pricing) and compliance docs (https://clickhouse.com/docs/products/cloud/reference/security/compliance-overview):

Important correction: several third-party comparison blogs (for example https://www.getorchestra.io/guides/clickhouse-enterprise-vs-open-source) claim "advanced security & RBAC" is an Enterprise-only feature. That is wrong for the self-managed open-source build. RBAC, roles, row policies, column-level GRANTs, quotas, and LDAP/Kerberos are in the open-source server (see section 4). RBAC is not the Cloud paywall; Cloud pays for convenience, HA, managed compliance evidence, SSO, and support.

2.5 Does the licence permit self-hosted commercial use inside a bank?

Yes, unambiguously. Apache 2.0 grants every recipient "a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work" (https://www.apache.org/licenses/LICENSE-2.0, section 2; identical text in the ClickHouse LICENSE). There is:

The only obligations are the standard Apache ones: retain copyright/licence notices; state significant changes; the patent-termination clause (section 3) if the user sues over patents; and trademark is not granted (section 6). The "ClickHouse" name is a registered trademark of ClickHouse, Inc.; a self-hosted deployment should follow the project's trademark guidance before using the mark in user-facing product names. Legal counsel should confirm the trademark posture, but the licence itself poses no barrier to regulated self-hosted commercial use.

2.6 Compliance artefacts are for the Cloud service, not the self-managed server

ClickHouse, Inc. holds and publishes reports for ClickHouse Cloud and BYOC: SOC 2 Type II (since 2022), ISO 27001 (since 2023), U.S. Data Privacy Framework (since 2024), HIPAA (since 2024), and PCI DSS as a service provider (since 2025), all via https://trust.clickhouse.com (https://clickhouse.com/docs/products/cloud/reference/security/compliance-overview). These certifications attest to ClickHouse, Inc.'s managed service, not to a self-hosted deployment. A bank running ClickHouse on its own metal gains no inherited ISO 27001 or SOC 2 coverage from this; it must certify its own control environment (which is exactly the platform's own ISO 27001:2022 shell). The upstream project's clean-room licence checks and signed release process are useful supply-chain evidence, but they are not a substitute for the operator's own audit.

3. Fit for real-time observability and analytics, versus Prometheus+Loki

The platform already runs Prometheus (metrics), Loki + promtail (logs), and Grafana (visualisation), backed by MinIO object storage. ClickHouse is not a like-for-like replacement for Prometheus; it is a complementary analytical store. The honest framing (see https://last9.io/blog/high-cardinality-metrics-prometheus-clickhouse) is: "Prometheus is a monitoring system that happens to include a TSDB; ClickHouse is a general-purpose analytical database that happens to handle time-series workloads."

3.1 Where ClickHouse does better

  1. Long retention at low cost. Columnar compression plus tiered S3 storage makes multi-month or multi-year retention far cheaper than keeping it all in Prometheus local blocks or Loki chunks (https://clickhouse.com/docs/operations/storing-data; https://clickhouse.com/resources/engineering/best-open-source-observability-solutions). The platform's MinIO is S3-compatible and can back a ClickHouse s3/object_storage disk (https://clickhouse.com/docs/operations/storing-data).
  2. High cardinality. Prometheus pays the cardinality cost at write time (one series per unique label set, each with an index entry and in-memory head block), which is why cardinality explosions take Prometheus down. ClickHouse pays at query time (aggregation memory) and stores label combinations as ordinary columns, so cardinality is a query-cost problem, not an outage risk (https://last9.io/blog/high-cardinality-metrics-prometheus-clickhouse).
  3. SQL analytics. ClickHouse gives full SQL (GROUP BY, JOIN, window functions, subqueries), enabling ad-hoc correlation and cross-domain joins that neither PromQL nor LogQL can express (https://clickhouse.com/docs/get-started/about/intro).
  4. Log analytics. With inverted indices, bloom filters, and the native JSON type, ClickHouse supports full-text and structured querying over log content that Loki cannot do cheaply, because Loki indexes only labels and must scan raw chunks for content search (https://openobserve.ai/blog/top-10-open-source-observability-tools; https://clickhouse.com/resources/engineering/best-open-source-observability-solutions).
  5. Native OpenTelemetry storage. ClickHouse is the storage engine behind several OTel-native platforms (SigNoz, qryn, BetterStack) and can ingest logs, metrics, and traces into one store, removing duplication and enabling trace/log/metric correlation by trace_id (https://www.dash0.com/comparisons/9-best-grafana-loki-alternatives; https://clickhouse.com/resources/engineering/best-open-source-observability-solutions).
  6. Consistent performance at scale. Sub-second aggregations over billions of rows are ClickHouse's core competence; PromQL/LogQL degrade under large aggregations and high-cardinality labels (https://clickhouse.com/resources/engineering/best-open-source-observability-solutions).

3.2 Where ClickHouse does worse

  1. Alerting and service discovery. Prometheus is the de-facto standard for scrape-based monitoring, alert rules, and ecosystem of exporters; ClickHouse has no equivalent built-in alert engine or scrape model (https://www.netdata.cloud/resources/best-open-source-observability-tools).
  2. PromQL/LogQL ecosystem and Grafana data sources. Existing dashboards, recording rules, and alert expressions are PromQL/LogQL; moving them to ClickHouse SQL means re-writing and re-testing. Telemetry is often a single Grafana data source away from working, and that source speaks Prometheus/Loki, not ClickHouse (https://www.dash0.com/comparisons/9-best-grafana-loki-alternatives).
  3. Operational familiarity. Prometheus/Loki are already deployed here; ClickHouse adds a new engine whose memory, merge, and partitioning behaviour is a new operational skill (https://www.netdata.cloud/resources/best-open-source-observability-tools, which lists "ClickHouse operational expertise is now your operational expertise" as a con).
  4. Write pattern mismatch for metrics. Prometheus is optimised for frequent small scrapes of a relatively stable series set; ClickHouse prefers batched inserts. High-frequency single-row metric writes are an anti-pattern and need a batching buffer.
  5. No drop-in replacement. You cannot simply point Grafana's Prometheus data source at ClickHouse; you need either a compatibility layer or a ClickHouse-native tool (SigNoz, qryn, ClickStack, OpenObserve-style product) (https://altinity.com/blog/altinity-loves-every-observability-vendor-especially-the-ones-that-use-clickhouse).

Judgement: the strongest fit is not to replace Prometheus for live monitoring/alerting, but to add ClickHouse as the long-term, high-cardinality, SQL-analysable telemetry store behind log/event/trace analytics (and optionally as the retention tier that Prometheus/Loki write into). This is the "unified database" blueprint the vendor itself documents (https://clickhouse.com/resources/engineering/best-open-source-observability-solutions).

4. Security and access-control features (open-source vs Cloud)

This section is decisive because RBAC was the deciding factor against Neo4j Community Edition on this project. The key finding: ClickHouse is the opposite of Neo4j CE - its access-control model is in the open-source server, not reserved for the commercial edition. Verified against the official access-control documentation (https://clickhouse.com/docs/concepts/features/security/access-rights) and the row/column policy knowledge-base page (https://clickhouse.com/docs/resources/support-center/knowledge-base/security/row-column-policy).

ControlOpen-source serverClickHouse Cloud (commercial)Source
Users, roles, GRANT/REVOKE, WITH GRANT OPTIONYes (SQL-driven, access_management=1)Yesaccess-rights doc
Row-level policies (CREATE ROW POLICY)YesYesrow-column-policy KB
Column-level security (column-level GRANT)YesYesrow-column-policy KB
Quotas (resource limits per user/role)YesYesaccess-rights doc
Settings profiles and constraintsYesYesaccess-rights doc
LDAP (authenticator and user directory, role mapping)YesNot available in Cloud (see note)LDAP doc
Kerberos authenticator (HTTP, GSS-SPNEGO)YesNot available in CloudKerberos doc
SSL X.509 / JWT / HTTP authenticatorsYes(varies)external-authenticators doc
Audit trail via system tables (query_log, session_log, part_log, text_log)YesYesaudit-log doc; system-tables doc
Encryption at rest (encrypted disk, AES_256_CTR)YesYes (Cloud-managed by default)CMEK doc
Column-level encryption codecs (AES_128/256_GCM_SIV)YesYesencryption codecs
SAML SSO / MFA / SCIMNo (console-side only)YesSAML SSO doc
Transparent Data Encryption / CMEK key managementNo (operator manages keys)YesCMEK doc
Managed backups, HA, multi-AZ, private networkingOperator's responsibilityYespricing
Managed compliance reports (SOC 2, ISO 27001, HIPAA, PCI)Not applicableYescompliance-overview

Notes:

5. Operational footprint

5.1 Upstream recommendations

5.2 What this specific host can run

The host has 62 GB RAM (33 Gi in use, ~29 Gi available, plus 31 Gi swap), a 12-core CPU, and 279 GB free disk on /dev/md2 (436 GB total). Against those numbers:

Judgement: the host can run a single-node ClickHouse for real-time analytics/observability with tiered storage to MinIO. It should not be expected to hold years of raw telemetry entirely on local disk, and clustering would exceed the host's headroom - cluster only on the Kubernetes fleet.

6. Alternatives - honest comparison

Licence facts verified: ClickHouse Apache-2.0 (https://github.com/ClickHouse/ClickHouse/blob/master/LICENSE); DuckDB MIT, governed by the independent DuckDB Foundation with a statutory commitment to remain MIT "in perpetuity" (https://duckdb.org/faq.html); TimescaleDB is split - "TimescaleDB Open Source" under Apache 2.0 and "TimescaleDB Community" under the source-available Timescale License (TSL), which restricts offering it as a hosted DBaaS (https://www.tigerdata.com/legal/licenses); Apache Druid Apache-2.0 (https://druid.apache.org/licensing); Apache Parquet Apache-2.0; PostgreSQL under the PostgreSQL Licence (BSD-style) (https://www.postgresql.org/about/licence/).

CriterionClickHouseDuckDBTimescaleDBApache DruidPostgres + Timescale (existing)Parquet files queried directly
LicenceApache-2.0 (OSI)MIT (OSI)Apache-2.0 core + TSL communityApache-2.0 (OSI)PostgreSQL + Apache-2.0/TSLApache-2.0 (OSI)
ModelServer DBMS (client/server)Embedded, in-processPostgreSQL extensionDistributed clusterServer DBMS + extensionFile format only
Best forLarge-scale OLAP, observability, real-time analyticsLocal/single-node analytics, embedded pipelines, <= a few hundred GBTime-series that must co-exist with relational SQL/JOINs/ACIDStreaming event analytics at scale with immediate queryabilityFits current stack; time-series where Postgres semantics matterAd-hoc archival scans with no service to run
RBAC / row+column securityYes, in OSS (roles, row policies, column grants)No server RBAC (file/process scope)Postgres roles + RLS; some ops features in TSLYes (authn/authz, but heavier ops)Postgres roles + RLSOS file permissions only
High cardinalityExcellent (cost at query time)Good at single-node scaleModerate (RowStore + Hypercore)Good (segments, high cardinality)ModeratePoor (no index; full scans)
Concurrency / multi-userHigh (server, many concurrent queries)Single-process, lowHigh (Postgres)High (distributed)HighNone (each reader scans files)
Updates / deletesWeak (async mutations)WeakStrong (full Postgres)Limited (segment rewrites)Strong (ACID)Rewrite whole files
Ops complexityMedium-highVery low (no service)Low if you run Postgres anywayHigh (ZooKeeper/Keeper, multiple processes)Low-moderateMinimal service, but query plumbing to build
Retention cost at scaleExcellent (compression + S3 tiering)Bounded by local diskModerateGood (deep storage)ModerateExcellent (cheapest raw storage)
Fit for THIS platformStrong complementUseful local tool, not a storeAttractive because Postgres is already deployedEnterprise-grade but heavyLowest friction, fewer new toolsCheap archive only

Reading of the table:

  1. DuckDB is not a competitor for a server-side store in this setting - it is embedded, single process, and aimed at local analytics. Keep it (or bun-adjacent equivalents) as an analyst's tool, not as the platform's telemetry store (https://duckdb.org/faq.html).
  2. TimescaleDB is the lowest-friction option because PostgreSQL is already deployed (10 databases). Its weakness is licence complexity (two licences, one source-available) and a smaller ceiling on raw analytical throughput than ClickHouse (https://www.tigerdata.com/legal/licenses; https://www.flexera.com/blog/finops/clickhouse-alternatives). For a bank, the TSL component needs careful review to confirm it is used only in permitted ways (i.e. not offered as a DBaaS).
  3. Apache Druid is a genuine enterprise alternative but has the highest operational overhead (multiple process types and a coordination service), which is a poor fit for a small team (https://druid.apache.org/licensing; https://www.flexera.com/blog/finops/clickhouse-alternatives).
  4. Parquet queried directly is the cheapest archive but gives no RBAC, no row/column policy, no concurrency, and full-scan performance - acceptable as a WORM cold tier, unacceptable as a governed query surface (licence: https://parquet.apache.org/docs/).
  5. ClickHouse wins where the platform's gap actually is: high-cardinality, long-retention, SQL-analysable telemetry with server-grade RBAC in the open-source build.

7. Deployment topology

7.1 Single-node Docker install (recommended starting point)

The official image is clickhouse/clickhouse-server; the container exposes 8123 (HTTP) and 9000 (native TCP) (https://clickhouse.com/docs/get-started/setup/self-managed/docker; https://clickhouse.com/docs/guides/sre/network-ports). A minimal, hardened shape:

  1. Pin the image to an lts tag (for example clickhouse/clickhouse-server:26.8), never latest, so the deployment is reproducible and supply-chain-pinnable.
  2. Bind ports to localhost only and let Caddy terminate TLS and front the HTTP interface; do not publish 8123/9000 on a public address. Restrict 9000 to the internal Docker/tailnet network (ports reference: https://clickhouse.com/docs/guides/sre/network-ports). Note Caddy already fronts the platform's ~36 containers, so a new subdomain/route is the natural exposure pattern.
  3. Persist two volumes: /var/lib/clickhouse (data) and /var/log/clickhouse-server (logs), plus a bind-mounted config.d/ directory for overrides rather than editing config.xml (https://clickhouse.com/docs/get-started/setup/self-managed/docker).
  4. Set container resource limits (CPU and memory) so ClickHouse cannot starve the other containers on the shared 62 GB host. Cap memory in the 16-24 GB range for a shared node.
  5. Raise file descriptors (ulimit nofile=262144:262144) as the docs' example does (https://clickhouse.com/docs/get-started/setup/self-managed/docker).
  6. Enable access control on first boot with CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 and a non-empty admin password, then create least-privilege roles; never leave the default passwordless default user reachable (https://clickhouse.com/docs/concepts/features/security/access-rights).
  7. Configure encryption and audit before ingesting sensitive data: an encrypted disk or column codecs, and query_log/session_log retention plus shipping those logs to WORM storage (sections 4 and 5.1).
  8. Add an S3/MinIO disk and a storage policy for tiering cold partitions (https://clickhouse.com/docs/operations/storing-data).

A single-node shape with an internal Keeper is only needed once you cluster; a standalone server does not require ZooKeeper/Keeper (Keeper replaces ZooKeeper for clusters - https://clickhouse.com/docs/guides/oss/best-practices/tips).

7.2 Kubernetes operation (fleet)

Two maintained operators exist, both Apache-2.0:

Judgement: adopt the official ClickHouse Operator on the Talos/Kubernetes fleet for consistency with the project's canonical track (k8s, not Compose). Keep the single-node Docker form as the dev/small deployment, mirroring the project's existing Compose-for-dev, K8s-for-production split. Use ClickHouse Keeper (not ZooKeeper) for coordination. Both operators need persistent volumes and careful resource requests; do not schedule ClickHouse on the same node as the control plane.

8. Ranked recommendation

Rank 1 - ADOPT LATER (recommended): adopt ClickHouse as the dedicated analytics/observability store once the regulated-control scaffolding is in place, not immediately.

Reasoning:

  1. Licence is clean. Apache-2.0, OSI-approved, no field-of-use or SaaS restriction, explicitly permits self-hosted commercial use inside a bank. It is not a Neo4j-CE-style trap; there is no commercial edition needed for access control (sections 2, 4).
  2. The RBAC disqualifier that killed Neo4j CE does not apply. Roles, row-level policies, column-level grants, quotas, and settings profiles are all in the open-source server, and LDAP/Kerberos are open-source but not Cloud-only (section 4). This is the single most important finding for this project.
  3. It fills a real gap. Prometheus/Loki cannot cheaply provide long retention, high-cardinality metrics, or content-searchable log analytics; ClickHouse can, and MinIO is already present to back cold tiers (section 3, 5.2).
  4. It fits the host, with a caveat. 62 GB RAM and 12 cores comfortably exceed the open-source minimums; 279 GB free disk is enough for a bounded hot window, but multi-year retention must tier to MinIO (section 5.2).
  5. "Later", not "now", because the gaps are control gaps, not capability gaps. Before a regulated deployment, the platform must (a) build the audit-trail shipping to WORM/SIEM, because OSS audit tables are mutable; (b) close the access-creep caveats (privileges survive table deletion, no privilege lifetimes); (c) run the licence clean-room over the specific repositories and contrib/ it bundles, since not all org repos are Apache-2.0; and (d) certify its own control environment, because the ClickHouse, Inc. SOC 2/ISO 27001 reports cover the Cloud service, not self-hosted servers.

Rank 2 - ADOPT NOW (narrowly): stand up a single-node, non-regulated ClickHouse as the internal telemetry/analytics store on a dev/observation basis, to build operational muscle (memory tuning, merges, tiering to MinIO, RBAC role design) against synthetic data. This de-risks the later adoption and produces the evidence needed to justify it. Do not connect it to regulated data until Rank-1 preconditions are met.

Rank 3 - DO NOT ADOPT (rejected): replacing Prometheus/Loki with ClickHouse, or adopting ClickHouse as the primary transactional store. Prometheus + Loki are the right tools for live monitoring, alerting, and label-indexed logs; ClickHouse is not a drop-in metric TSDB and is not an OLTP system. The correct end-state is ClickHouse alongside the existing stack as the analytical and long-retention tier, not instead of it (section 3).

Bottom line for the founder: ClickHouse is licence-safe, RBAC-complete in the open-source build, and the strongest available fit for the platform's high-cardinality, long-retention analytics gap. It should be adopted deliberately - as a complement to Prometheus/Loki and PostgreSQL, on the Kubernetes fleet with tiered storage to MinIO - with the audit, access-lifecycle, licence clean-room, and self-certification work completed first.

References

  1. ClickHouse core repository metadata (SPDX Apache-2.0, stars, push) - https://api.github.com/repos/ClickHouse/ClickHouse
  2. ClickHouse LICENSE file - https://github.com/ClickHouse/ClickHouse/blob/master/LICENSE
  3. Apache License 2.0 (OSI-approved) - https://www.apache.org/licenses/LICENSE-2.0
  4. What is ClickHouse? - https://clickhouse.com/docs/get-started/about/intro
  5. Ten years of ClickHouse open source (Apache 2.0 since 15 June 2016) - https://clickhouse.com/blog/what-a-difference-10-years-of-open-source-makes
  6. ClickHouse company story - https://clickhouse.com/company/our-story
  7. Is ClickHouse moving away from open source? - https://altinity.com/blog/is-clickhouse-moving-away-from-open-source
  8. ClickHouse is Apache 2.0 - https://altinity.com/blog/clickhouse-is-apache-2-0
  9. ClickHouse access control and account management (roles, row policies, quotas) - https://clickhouse.com/docs/concepts/features/security/access-rights
  10. Row-level and column-level security KB - https://clickhouse.com/docs/resources/support-center/knowledge-base/security/row-column-policy
  11. LDAP authenticator/user directory - https://clickhouse.com/docs/concepts/features/security/external-authenticators/ldap
  12. Kerberos authenticator - https://clickhouse.com/docs/concepts/features/security/external-authenticators/kerberos
  13. External authenticators overview - https://clickhouse.com/docs/concepts/features/security/external-authenticators
  14. Database audit log - https://clickhouse.com/docs/products/cloud/guides/security/audit-logging/database-audit-log
  15. Data encryption (Cloud CMEK/TDE) - https://clickhouse.com/docs/products/cloud/guides/security/cmek
  16. Encryption functions (AES codecs) - https://clickhouse.com/docs/reference/functions/regular-functions/encryption-functions
  17. OSS usage recommendations (RAM, disk, Keeper) - https://clickhouse.com/docs/guides/oss/best-practices/tips
  18. Sizing and hardware recommendations - https://clickhouse.com/docs/guides/oss/best-practices/sizing-and-hardware-recommendations
  19. Altinity hardware requirements - https://kb.altinity.com/altinity-kb-setup-and-maintenance/cluster-production-configuration-guide/hardware-requirements
  20. External disks / object storage tiering - https://clickhouse.com/docs/operations/storing-data
  21. Network ports (8123, 9000) - https://clickhouse.com/docs/guides/sre/network-ports
  22. Install using Docker - https://clickhouse.com/docs/get-started/setup/self-managed/docker
  23. Official ClickHouse Kubernetes Operator - https://github.com/ClickHouse/clickhouse-operator
  24. ClickHouse Kubernetes Operator docs - https://clickhouse.com/docs/products/kubernetes-operator/overview
  25. Altinity Kubernetes Operator - https://github.com/altinity/clickhouse-operator
  26. ClickHouse Cloud pricing (tiers, features) - https://clickhouse.com/pricing
  27. Support services policy (SLAs) - https://clickhouse.com/legal/support-services-policy
  28. Security and compliance reports (SOC 2, ISO 27001, HIPAA, PCI) - https://clickhouse.com/docs/products/cloud/reference/security/compliance-overview
  29. Prometheus vs ClickHouse high cardinality - https://last9.io/blog/high-cardinality-metrics-prometheus-clickhouse
  30. Best open-source observability solutions - https://clickhouse.com/resources/engineering/best-open-source-observability-solutions
  31. Loki alternatives (SigNoz/qryn on ClickHouse) - https://www.dash0.com/comparisons/9-best-grafana-loki-alternatives
  32. Altinity observability vendors using ClickHouse - https://altinity.com/blog/altinity-loves-every-observability-vendor-especially-the-ones-that-use-clickhouse
  33. Best open-source observability tools (ClickHouse ops caveat) - https://www.netdata.cloud/resources/best-open-source-observability-tools
  34. DuckDB FAQ (MIT, foundation) - https://duckdb.org/faq.html
  35. Timescale licenses (Apache-2.0 + TSL) - https://www.tigerdata.com/legal/licenses
  36. Apache Druid licensing - https://druid.apache.org/licensing
  37. ClickHouse alternatives overview - https://www.flexera.com/blog/finops/clickhouse-alternatives
  38. Column-oriented storage explainer - https://oneuptime.com/blog/post/2026-03-31-clickhouse-column-oriented-storage/view
  39. ClickHouse architecture components - https://www.instaclustr.com/education/clickhouse/clickhouse-architecture-4-key-components-and-optimization-tips
  40. Choosing ClickHouse server hardware (RAM guidance) - https://www.datapacket.com/blog/how-to-pick-the-right-server-for-clickhouse
  41. ClickHouse audit log (system tables) - https://www.datasunrise.com/knowledge-center/clickhouse-audit-log
  42. ClickHouse Cloud SAML SSO - https://clickhouse.com/docs/products/cloud/guides/security/cloud-access-management/saml-sso-setup

snowflake-labs

Snowflake-Labs: sovereignty assessment for a regulated on-premises platform

Central question: Snowflake is a commercial cloud data platform and modern Snowflake is not self-hostable, so which parts of the snowflake-labs GitHub organisation (540 public repositories, https://api.github.com/orgs/snowflake-labs) are usable OFFLINE, ON PREMISES, and WITHOUT a Snowflake account?

Short answer: almost nothing - with one material exception (pg_lake). The organisation is the open-source and developer-relations arm of Snowflake Inc, contactable at opensource@snowflake.com and pointing at https://developers.snowflake.com (https://api.github.com/orgs/snowflake-labs). Nearly every repository either executes inside a Snowflake account or is a tutorial that assumes one.

1. Organisation posture

  1. Created 2019-12-17, 540 public repositories (https://api.github.com/orgs/snowflake-labs).
  2. Predominantly Python and Jupyter Notebook, Apache-2.0 by default, with a long tail of sfguide-* and sfquickstart-* tutorial repositories that require a Snowflake account to run.
  3. Several artefacts the task names do NOT live under snowflake-labs; they are under the separate snowflakedb organisation (the product engineering org). This distinction matters when scoping what a "labs org" actually controls.

2. Repository survey

All figures below are from the GitHub REST API for each repository, retrieved 2026-10-06. "Account required" means the software cannot perform its core function without connecting to a Snowflake account.

2.1 snowflake-labs/schemachange

FieldValue
What it doesDatabase change management (DCM) / migration tool for Snowflake objects, imperatively applying versioned SQL scripts
LanguagePython (requires Python 3.10+)
LicenceApache-2.0
Account requiredYES - depends on snowflake-connector-python and a Snowflake account
Postgres supportNONE
Last activitypushed 2026-10-01; latest release v4.3.3 on 2026-04-20

Sources: https://github.com/Snowflake-Labs/schemachange and https://api.github.com/repos/Snowflake-Labs/schemachange. The README requires snowflake-connector-python and a change-history table created in Snowflake (https://github.com/Snowflake-Labs/schemachange). Snowflake's own developer guide states it is "a lightweight Python-based tool to manage all your Snowflake objects" and was inspired by Flyway (https://www.snowflake.com/en/developers/guides/devops-dcm-schemachange-github).

2.2 snowflakedb/snowpark-python

FieldValue
What it doesSnowpark Python API for dataframes and UDFs executed on Snowflake compute
LanguagePython
LicenceApache-2.0
Account requiredYES - the API compiles work to run inside a Snowflake account
Last activitypushed 2026-10-06

Source: https://github.com/snowflakedb/snowpark-python. This is Python and account-bound, so it is doubly disqualified here.

2.3 snowflakedb/snowflake-cli (historically "snowcli")

FieldValue
What it doesDeveloper command-line tool for SQL operations and developer workloads on Snowflake
LanguagePython
LicenceApache-2.0
Account requiredYES - explicitly "for developer-centric workloads" in Snowflake
Last activitypushed 2026-10-05; latest release v3.28.0 on 2026-09-24

Source: https://github.com/snowflakedb/snowflake-cli. Note it now lives under snowflakedb, not snowflake-labs; the old snowflake-labs/snowcli name is the historic one.

2.4 snowflakedb/terraform-provider-snowflake

FieldValue
What it doesTerraform provider that manages Snowflake account objects as infrastructure-as-code
LanguageGo
LicenceMIT
Account requiredYES - it provisions resources inside a Snowflake account
Last activitypushed 2026-10-06

Source: https://github.com/snowflakedb/terraform-provider-snowflake. Written in Go (permissive licence), but useless without a Snowflake account, so it adds no sovereign capability here.

2.5 sfguide-* and sfquickstart-* sample repositories

There are hundreds of these. They are tutorials and sample code. Representative example: sfguide-data-engineering-with-snowpark-python is Jupyter Notebook, Apache-2.0, and last touched 2025-02-13 (https://api.github.com/repos/Snowflake-Labs/sfguide-data-engineering-with-snowpark-python). The wider sf-samples repo is Apache-2.0 (https://api.github.com/repos/snowflake-labs/sf-samples). These are pedagogical assets that assume a live Snowflake account; they have no standalone utility on premises.

2.6 snowflake-labs/pg_lake - the exception

FieldValue
What it doesA set of PostgreSQL extensions that add Apache Iceberg tables, data-lake file access, and DuckDB-backed columnar execution to Postgres - a standalone Postgres lakehouse
LanguageBytes by language: Python, C, C++, PLpgSQL, Shell, Makefile (https://api.github.com/repos/snowflake-labs/pg_lake/languages); the shipped extensions are C/PLpgSQL
LicenceApache-2.0
Account requiredNO for the standalone lakehouse use case
Last activitypushed 2026-10-06 (very active)

Sources: https://github.com/Snowflake-Labs/pg_lake and https://api.github.com/repos/snowflake-labs/pg_lake. The README describes it as a way to "use Postgres as a stand-alone lakehouse system" with object-store access via COPY (https://github.com/Snowflake-Labs/pg_lake). It originated at Crunchy Data and was open-sourced by Snowflake after acquisition (https://daily.dev/posts/snowflake-labs-pg-lake-pg-lake-postgres-with-iceberg-and-data-lake-access-qzotitmx4). Snowflake also documents a managed variant on Snowflake Postgres that DOES require an account (https://docs.snowflake.com/en/user-guide/snowflake-postgres/postgres-pg_lake), but the repository itself builds against stock Postgres and an S3-compatible object store - which the platform already has in MinIO.

Honest caveat: GitHub reports "Python" as the dominant language by bytes, but that reflects large test/build scaffolding; the deployable artefact is a C PostgreSQL extension plus PLpgSQL. Adopting it is a Postgres-extension decision, not a Python-runtime decision, so it does not by itself import a Python dependency into the runtime - but it does need to be built, pinned, and reviewed as third-party native code.

2.7 Other repositories of note

3. Question (a): is schemachange useful for PostgreSQL?

No. schemachange is Snowflake-locked, not a generic migration engine.

  1. It is driven by snowflake-connector-python and requires Snowflake account credentials (account, user, role, warehouse, database) (https://www.snowflake.com/en/developers/guides/devops-dcm-schemachange-github).
  2. It creates and maintains its change-history table inside Snowflake (https://github.com/Snowflake-Labs/schemachange).
  3. It has no Postgres driver path; the connector target is Snowflake only. Independent write-ups confirm it "does not support any other database except Snowflake" (https://blog.devgenius.io/database-change-management-tool-schemachange-with-snowflake-overview-b62dec744e0a).
  4. It is written in Python, which the project law forbids outright.

Therefore it cannot be adopted for the platform's 10 Postgres databases as-is. The only thing of value is its design pattern: ordered versioned SQL scripts, a namespaced change-history table, idempotent apply, and CI/CD gate. That pattern is portable to a sovereign, non-Python engine, and is worth mining.

4. Question (b): independent open-source schema-migration ecosystem

All rows verified against each project's own repository or licence file on 2026-10-06.

ToolLicenceLanguagePostgresPolicy / approval supportSource
FlywayApache-2.0 (Community)Java (JVM)YesNo native approval; rollback/drift are Enterprise (paid)https://github.com/flyway/flyway
LiquibaseFSL-1.1-ALv2 since v5.0 (not OSI); 4.x Apache-2.0Java (JVM)YesGovernance in commercial "Secure" tierhttps://www.liquibase.com/blog/liquibase-community-for-the-future-fsl
golang-migrateMITGoYesNo; approvals via CI/CD onlyhttps://github.com/golang-migrate/migrate
AtlasApache-2.0 (core CLI)GoYesSchema linting / policy-as-code in CI; Pro is commercialhttps://github.com/ariga/atlas
sqitchMITPerlYesDependency-graph migrations with verify scripts; no policy enginehttps://github.com/sqitchers/sqitch
dbmateMITGoYesNo; approvals via CI/CD onlyhttps://github.com/amacneil/dbmate
gooseMITGoYesNo; approvals via CI/CD onlyhttps://github.com/pressly/goose
BytebaseMIT core + commercial EnterpriseGoYesYES - native approval workflow, SQL review, per-env policyhttps://github.com/bytebase/bytebase
schemachange (for reference)Apache-2.0PythonNoNo; approvals via CI/CD onlyhttps://github.com/Snowflake-Labs/schemachange

Notes with sources:

  1. Liquibase Community moved from Apache-2.0 to the Functional Source License (FSL) starting with v5.0 in September 2025; FSL is not OSI-approved and reverts each version to Apache-2.0 after two years. Versions 4.x remain Apache-2.0 (https://www.liquibase.com/blog/liquibase-community-for-the-future-fsl, https://docs.liquibase.com/community/release-notes/5-0). This licensing shift has already caused downstream re-licensing friction, e.g. in Keycloak (https://github.com/keycloak/keycloak/issues/43391).
  2. Atlas positions itself explicitly as version-based versus declarative schema-as-code, and supports PostgreSQL among the common open-source RDBMS (https://atlasgo.io/atlas-vs-others).
  3. Bytebase is the only tool in this table that ships approval/policy as a first-class feature in its self-hosted product; its core is MIT and enterprise features are separately licensed (https://www.bytebase.com/blog/bytebase-vs-liquibase, https://docs.bytebase.com/administration/license).

5. Question (c): Python-based tools eliminated by project law

The project law forbids Python entirely. On that basis:

  1. Eliminated as-is: schemachange (Python), snowflake-cli (Python), snowpark-python (Python), and every sfguide-* Python notebook. None can be adopted into a runtime governed by the Python prohibition.
  2. Also eliminated by the separate law preferring bun over node/npm/npx/yarn: nothing in the recommended set is Node-based, so that law does not narrow the choice here (the JS sql-formatter style utilities in the labs org are cosmetic and account-adjacent).
  3. Non-Python alternatives available: Flyway and Liquibase (Java/JVM), golang-migrate, Atlas, dbmate, goose and Bytebase (all Go), sqitch (Perl).
  4. The strongest non-Python, permissively licensed, offline, Postgres-native options are golang-migrate (MIT), Atlas (Apache-2.0 core) and, where a governance console with approvals is required, Bytebase (MIT core, self-hosted).
  5. pg_lake does not import a Python runtime: its deployable form is a C PostgreSQL extension (https://github.com/Snowflake-Labs/pg_lake), so it is compatible with the Python prohibition at the runtime level, subject to treating it as reviewed native third-party code.

6. Question (d): verdict

Honest verdict: snowflake-labs is a SaaS vendor's labs org. The correct posture for a sovereign, regulated, on-premises platform is to mine it for migration patterns and to adopt at most one artefact - pg_lake - as an infrastructure component; nothing account-bound should be adopted.

  1. Account-bound and therefore unusable offline: schemachange, snowflake-cli, snowpark-python, the Terraform provider, mcp, snowflake-dcm-projects, django-snowflake, and the entire sfguide-* corpus (sources in section 2).
  2. The one genuine sovereign artefact is pg_lake: Apache-2.0, standalone Postgres lakehouse, no account required, actively maintained, and complementary to the existing Postgres and MinIO estate (https://github.com/Snowflake-Labs/pg_lake).
  3. Patterns worth mining from schemachange: versioned SQL ordering, a namespaced change-history table, idempotent apply, and a CI/CD gate (https://www.snowflake.com/en/developers/guides/devops-dcm-schemachange-github).
  4. For the platform's immediate gap - 10 Postgres databases with no schema-migration governance - build on a non-Python, permissive engine (golang-migrate or Atlas) and wrap it in the existing primitive/registry governance, so each migration primitive declares risk, approval requirement, reversibility and an evidence artefact. Where a built-in approval workflow is preferred, self-host Bytebase rather than reaching for a SaaS product.

Recommendation:

  1. Do NOT adopt schemachange: it is Python (against project law) and Snowflake-locked (https://github.com/Snowflake-Labs/schemachange).
  2. Adopt a sovereign migration stack for the 10 Postgres databases, led by golang-migrate (MIT) or Atlas (Apache-2.0), both Go and offline (https://github.com/golang-migrate/migrate, https://github.com/ariga/atlas).
  3. Optionally self-host Bytebase (Go, MIT core) to get native approval/policy workflows under the governed operation model (https://github.com/bytebase/bytebase).
  4. Avoid Liquibase 5.0+ unless acceptable under FSL; if Liquibase is required, pin to an Apache-2.0 4.x line (https://www.liquibase.com/blog/liquibase-community-for-the-future-fsl).
  5. Portfolio decision on pg_lake: adopt as a Postgres/Iceberg infrastructure capability, behind the primitive framework, subject to native-code review (https://github.com/Snowflake-Labs/pg_lake).
  6. Treat all remaining snowflake-labs content as a patterns quarry only; do not add any Snowflake-account-dependent dependency to the regulated platform.

Bytebase

Bytebase - adoption assessment

Assessment of Bytebase (https://github.com/bytebase/bytebase) for adoption on the ProDG mainframe, against the governing objective of being "secure and compliant enough to be deployed in the most sensitive high risk environments", under a NIST SP 800-53B High control catalogue and an ISO 27001:2022 certification shell.

All facts below were verified against the project's own GitHub repository, the official Bytebase documentation and pricing pages, and vendor licence texts on 2026-10-06. Where a judgement is made rather than a fact stated, it is marked as such. Every external claim carries a source URL in the Sources section.


1. What Bytebase is, and the problem it solves

Bytebase describes itself as "the open-source database governance platform" that "acts as a single control plane between your users - humans and AI agents - and your databases, governing change management, access control, and compliance so every change and query is reviewed, controlled, and recorded". It positions itself as replacing "the disparate tools stitched across migration scripts, SQL clients, and ticketing systems".

The problem it solves is the operational gap that every fleet of databases eventually hits: schema and data changes are applied by people (and now agents) running SQL through local clients, ad-hoc scripts, or CI jobs, with no central review, no approval gate, no rollback plan, and no shared audit trail. Bytebase wraps that work in a database CI/CD lifecycle:

  1. Plan change - DDL (schema) and DML (data) changes are drafted as an issue/plan against one database, several databases, or a database group.
  2. Automatic SQL review - a built-in advisor validates every change against a configurable review policy (syntax, naming, data types, performance, security, backward-compatibility), with rules set to Error, Warning, or Disabled.
  3. Approval process - in the UI workflow, multi-level approval; in the GitOps workflow, pull-request reviews in GitHub/GitLab/Bitbucket, optionally integrated with ServiceNow, Jira, or custom systems.
  4. Multi-environment rollout - stage-by-stage promotion (dev, test, staging, prod) with configurable deployment paths, gated promotion, and per-environment policies.
  5. Rollback - one-click rollback for UPDATE/DELETE DML, and reverse-migration generation for DDL, with automatic pre-change backup for risky DML.

It is explicitly pitched alongside code tooling: "While Liquibase and Flyway are powerful command-line migration tools (think Git), Bytebase provides the complete platform experience (think GitHub/GitLab)", and "Bytebase is the CI/CD tool to manage database changes" as "GitHub/GitLab is the CI/CD tool to manage code changes".

The four advertised pillars are Change Management, Access Control, Compliance, and AI (an MCP server is bundled).

Sources: repository README (https://github.com/bytebase/bytebase), what-is-bytebase (https://docs.bytebase.com/introduction/what-is-bytebase), change-workflow (https://docs.bytebase.com/change-database/change-workflow), Platform Engineering entry (https://platformengineering.org/tools/bytebase).


2. The licence position (the decisive question)

Bytebase is open core, not fully open source. The repository is routinely described as "open source" and its front page says so, but the licence file carves meaningful code out of the permissive grant.

2.1 What the LICENSE actually says

The top-level LICENSE file states that "Portions of this software are licensed as follows":

  1. Source code files that contain "enterprise" in their dirname are licensed under LICENSE.enterprise.
  2. "Any code controlling feature, permission, role and plan enablement." is also under LICENSE.enterprise.
  3. Everything else is under the MIT Expat licence.

LICENSE.enterprise is a proprietary, non-OSI licence. It permits production use only if the user "have agreed to, and are in compliance with, the Bytebase Terms of Service ... and otherwise have a valid Bytebase Enterprise subscription for the correct number of instance and paid plan". Development and testing use is allowed without a subscription; production use is not. It also forbids copying, publishing, sublicensing, or selling the software.

So: the bulk of the code is MIT; a meaningful, functionally significant slice - the enterprise directories plus all feature/permission/role/plan enablement code - is under a proprietary licence. That second carve-out is important: it is precisely the code that gates roles, permissions and plan-tier features. In open-core terms, the feature-gating machinery itself is not open.

The Terms of Service reinforce this: "The source code for our Software is publicly available at https://github.com/bytebase. Your rights to access and use that code is covered by the software license in that repository." - i.e. the terms do not grant rights beyond the repository licence.

2.2 Can the free tier be run self-hosted for commercial use inside a bank?

Functionally, yes. The free Community plan is described as "Free / forever" and can be self-hosted. Bytebase's own comparison copy states the Community plan is "free and self-hosted for up to 20 users and 10 instances" and that its limits are 20 users and 10 instances. There is no licence key required for Community, and the self-host documentation presents a plain Docker deployment with no licence step. Nothing in the Community plan restricts commercial use.

Legally, with a caveat. The Community build is covered for the MIT-licensed portion, but the carve-out for "any code controlling feature, permission, role and plan enablement" sits inside the proprietary Enterprise License, which on its face requires a subscription for production use. Bytebase markets and operates the Community edition as free for production, so this is a grey area rather than a clear prohibition - but a bank's licence review should treat "the permission/role gating code is non-OSI" as a real procurement and continuity risk, not a footnote.

2.3 Why this matters given the Neo4j precedent

On this project Neo4j Community Edition was rejected because the free edition lacks RBAC altogether (RBAC, sub-graph access control, online backup and clustering are Enterprise-only). Bytebase is materially better on that specific axis: the free Community edition does include built-in RBAC roles and the core change workflow (see section 3). But the answer to "is the open edition genuinely open" is no - it is open core, and the governance features that a bank actually needs (approval workflow, audit log, SSO/OIDC, custom roles, data masking, just-in-time access) are paid-tier only. The free tier is a usable product, not a compliant one.

Sources: LICENSE (https://github.com/bytebase/bytebase/blob/main/LICENSE), LICENSE.enterprise (https://github.com/bytebase/bytebase/blob/main/LICENSE.enterprise), pricing (https://www.bytebase.com/pricing), self-host-vs-cloud (https://docs.bytebase.com/get-started/self-host-vs-cloud), community-features copy (https://www.bytebase.com/blog/bytebase-vs-cloudbeaver), Neo4j precedent (../research/open-questions-options.md, Question 37).


3. Security and governance features, and the free/paid split

Two facts dominate the regulated-deployment picture:

  1. For self-hosting, Pro is not available. Bytebase's own docs state: "The Pro plan is cloud-only. Self-hosted deployments use the Community plan or require an Enterprise license." So on a self-hosted bank estate, the only choices are Community (free) or Enterprise (commercial).
  2. The compliance-grade controls are Enterprise. Approval workflow, the audit log, OIDC/LDAP SSO, 2FA, SCIM provisioning, custom roles, dynamic data masking, just-in-time access, data classification and risk assessment are all Enterprise. The audit log has a partial Pro allowance (7-day retention) that is unavailable self-hosted.

3.1 Feature split (Community / Pro / Enterprise)

CapabilityCommunity (free, self-host)Pro (cloud only)Enterprise (commercial, self-host)
Git-based schema version control, declarative migration, schema compare/syncYesYesYes
Online schema migration, pre-deployment SQL review (200+ rules)YesYesYes
Automatic backup and one-click rollback, multi-database batch, rollout policyYesYesYes
Web SQL Editor, admin mode, data export, query history, AI assistance, MCP serverYesYesYes
Built-in IAM (users, roles, permissions) - workspace + project RBACYesYesYes
Terraform provider (policy as code)YesYesYes
SSONoGoogle, GitHubOAuth2, OIDC, LDAP
Audit logNo7-day retentionUnlimited retention
Auth policies (2FA, password, sign-in)NoNoYes
Custom rolesNoNoYes
Approval workflowNoNoYes
Risk assessment, data classificationNoNoYes
Dynamic data maskingNoNoYes
Just-in-time access, restrict data copyingNoNoYes
User provisioning (SCIM, Entra/AD/Okta)NoNoYes
High availabilityNoNoAdd-on

3.2 RBAC in the free edition (precise)

The free Community edition does ship RBAC. Built-in roles are:

Grants can carry a database scope (all, manual selection, or a CEL expression), an environment scope for DDL/DML, a reason, and an automatic expiration. So the free edition supports scoped, expiring, least-privilege database access - unlike Neo4j Community Edition. What the free edition does not provide is custom roles (Enterprise), fine-grained per-database or per-table access policies at scale, and just-in-time access (Enterprise).

3.3 Audit logging (precise)

Audit logging "is available only for Pro and Enterprise plans". The event catalogue is strong: authentication, user/group/role management, identity providers, project and workspace IAM changes (with policy deltas), instance/data-source changes, issue approvals and rejections, plan and rollout execution, and policy changes. Logs can be exported to stdout as JSON for SIEM ingestion (Splunk, Datadog, Elastic, Fluentd, Logstash, Loki, CloudWatch, etc.). The audit log is stored in the audit_log table of the Bytebase metadata PostgreSQL database and is not auto-purged - the docs recommend at least 90 days and 6-12 months for compliance, with external export for longer retention.

Implication: on the free Community edition, there is no audit log at all. For a bank this alone disqualifies the free tier as the governance layer.

3.4 Data masking, SQL review, approval

Sources: pricing (https://www.bytebase.com/pricing), roles (https://docs.bytebase.com/administration/roles), audit-log (https://docs.bytebase.com/security/audit-log), data-masking (https://docs.bytebase.com/security/data-masking/overview), approval (https://docs.bytebase.com/change-database/approval), sql-review (https://docs.bytebase.com/sql-review/review-policy), self-host-vs-cloud (https://docs.bytebase.com/get-started/self-host-vs-cloud).


4. Database support (PostgreSQL, MySQL, same-host Docker)

PostgreSQL is a first-class citizen: officially supported at version 12.0 and above, with UI workflow, GitOps workflow, batch change, SQL lint and data rollback all supported. MySQL is supported at 5.7 and above, likewise fully. The wider matrix includes Oracle, SQL Server, MariaDB, TiDB, CockroachDB, Spanner, MongoDB, Redis, Cassandra, Snowflake, BigQuery, ClickHouse, Databricks and more.

For the platform's own estate (10 PostgreSQL databases plus Redis, and MinIO for object storage), PostgreSQL and Redis are both covered; MinIO has no native Bytebase engine (it is object storage, not a database, so this is expected).

Databases already running in Docker on the same host:

Sources: supported-databases (https://docs.bytebase.com/introduction/supported-databases), deploy-with-docker (https://docs.bytebase.com/get-started/self-host/deploy-with-docker).


5. Deployment, resources and footprint

5.1 Docker deployment and port

Minimal install:

docker run --rm --init \
  --name bytebase \
  --publish 8080:8080 --pull always \
  --volume ~/.bytebase/data:/var/opt/bytebase \
  bytebase/bytebase:latest

Bytebase is then reachable at http://localhost:8080. The default port is 8080 and can be remapped with --publish <port>:8080. Docker must be at least 20.10.24; the image supports linux/amd64 and linux/arm64. Air-gapped transfer is documented (docker save / docker load / retag), which suits a bank's offline registry. A Helm chart exists for Kubernetes.

5.2 Metadata database

Bytebase always needs its own metadata store, and that store is PostgreSQL:

The enterprise estate already runs PostgreSQL, so an external bytebase metadata database could be added to the existing cluster rather than running a second PostgreSQL. Note this would add an 11th logical database to the estate and must be reflected in the registry and the doctor's closed-world checks.

5.3 Minimum resources and footprint on the target host

Bytebase's own production sizing table:

Users and instancesBytebaseExternal PostgreSQL
Up to 5 users / 5 instances1 CPU / 2 GB RAM1 CPU / 2 GB RAM
Up to 20 users / 20 instances2 CPU / 4 GB RAM1 CPU / 2 GB RAM
Up to 50 users / 50 instances4 CPU / 8 GB RAM2 CPU / 4 GB RAM
250+ users or 50+ instances8 CPU / 16 GB RAM2 CPU / 4 GB RAM

On a 62 GB RAM, 12-core host, even the top tier (8 CPU / 16 GB plus 4-6 GB for the metadata database) consumes roughly a third of RAM and two thirds of one core-pool. A realistic deployment for this estate (well under 50 users, ~10 instances) needs about 2-4 CPU and 4-8 GB, plus an optional 1-2 CPU / 2 GB for an external metadata PostgreSQL. Footprint is modest and not a constraint. It is a single container (plus the existing PostgreSQL if external metadata is chosen).

One privacy note for a bank: self-hosted Bytebase collects anonymous usage metrics sent to Segment, which "can be disabled in the workspace settings"; the registered email and name of the first member is sent to Bytebase for sales/security/policy/product updates. Review and disable before any regulated deployment.

Sources: deploy-with-docker (https://docs.bytebase.com/get-started/self-host/deploy-with-docker), production-setup (https://docs.bytebase.com/get-started/self-host/production-setup), external-postgres (https://docs.bytebase.com/get-started/self-host/external-postgres), high-availability (https://docs.bytebase.com/get-started/self-host/high-availability), security details (https://www.bytebase.com/security).


6. Comparison with the alternatives

Licence, policy/approval support and PostgreSQL support for the migration-tool field.

ToolLicencePolicy / approval supportPostgreSQLNotes
BytebaseMIT Expat core plus proprietary, non-OSI Bytebase Enterprise License for enterprise dirs and "any code controlling feature, permission, role and plan enablement"SQL review 200+ rules in all tiers; approval workflow, audit log, masking, JIT access EnterpriseYes, 12.0+Open core; Community free up to 20 users / 10 instances; self-hosted Pro unavailable
FlywayCommunity: Apache-2.0; Teams/Enterprise: commercial (Redgate)Community: none; Teams/Enterprise add policy checks and dry runsYesCLI-first migration engine; Redgate now pushes "governed change management"
LiquibaseCommunity 5.0+: Functional Source License (FSL, non-OSI, source-available), reverting to Apache-2.0 after two years; Liquibase Secure commercialCommunity: none; Secure adds policy checks, flow files, JSON loggingYesChanged from Apache-2.0 to FSL in September 2025 - no longer open source
AtlasCore: Apache-2.0; Atlas Pro / Cloud: commercialCore ships 50+ lint analyzers; approval/CI policy via Pro/CloudYesDeclarative and versioned schema-as-code; strong drift detection
sqitchMITNone built in (no server, no policy engine)Yes, 8.4+Standalone, no opinions; pairs with git and your CI for review
Plain migration files in gitN/A (your own)Whatever your CI/PR process providesYes (native SQL)Zero platform; you build review, approval, audit and rollback yourself

Observations:

  1. The migration-tool field is fracturing on licence. Liquibase's FSL move (September 2025) removed the last permissively-licensed incumbent migration engine of its class. Bytebase's MIT-core model is, on the surface, the most permissive of the platform-class tools - but only for the parts that are not feature/permission/role gating.
  2. Policy and approval are the paid differentiator everywhere. No tool in the table offers free, self-hosted, multi-stage approval plus audit; it is Enterprise/Secure/Pro in every commercial case and absent in the free cases (except Bytebase's SQL review, which is the notable free exception).
  3. PostgreSQL support is universal. Postgres is not a differentiator; governance depth is.

Sources: Bytebase LICENSE and pricing (as above); Flyway Apache-2.0 licence (https://github.com/flyway/flyway/blob/main/LICENSE.md) and Redgate commercial editions (https://documentation.red-gate.com/fd/commercial-licensing-faq-181633028.html); Liquibase FSL announcement (https://www.liquibase.com/blog/liquibase-community-for-the-future-fsl) and FSL definition (https://fsl.software); Atlas repository, Apache-2.0 (https://github.com/ariga/atlas); sqitch (https://github.com/sqitchers/sqitch); naive-migration baseline is the platform's own.


7. Architectural question: does Bytebase duplicate or complement GitOps-plus-registry?

The platform already has a registry-driven methodology (registry entries describe services, databases and technologies; a conformance tool called the doctor runs closed-world checks) and a playbook framework composing operational scenarios from 35 typed primitives, each declaring its own risk, approval requirement, reversibility and evidence artefact. A schema change is exactly a gated operation of the kind the primitive model is built for. So the question is whether Bytebase adds a needed execution and control layer, or a second governance model that competes with the one the platform already has.

7.1 The complement case

7.2 The duplication case

7.3 Honest synthesis

Both are true, and the deciding variable is scope of adoption:

The cheap, vendor-independent first step is therefore to model a schema-change primitive in the existing playbook framework now; that work is needed whether or not Bytebase is ever adopted.

Sources: howBytebase integrates (README integrations and Terraform provider links, https://github.com/bytebase/bytebase); GitOps workflow (https://docs.bytebase.com/change-database/change-workflow); playbook framework context (../research/playbook-prior-art.md); registry/doctor context (../research/open-questions-options.md).


8. Ranked recommendation

Rank 1 - Adopt later (conditional, bounded pilot). Do not adopt Bytebase now, but keep it as the leading candidate for a database-change execution layer, subject to three gates:

  1. Commercial decision first. For a self-hosted bank deployment the only useful tier is Enterprise (Pro is cloud-only). Enterprise pricing is quote-based. Adoption is a procurement decision, not a free-tool decision.
  2. Licence review. The non-OSI carve-out for feature/permission/role/plan-enablement code must clear legal and continuity review, and the Segment telemetry must be disabled.
  3. Architecture alignment. Adopt Bytebase only as an execution backend behind a primitive, with the registry/doctor/primitive layer remaining the canonical governance record. A one-database, non-production pilot against PostgreSQL should prove the API, webhook and evidence-return path before any production use.

Rank 2 - Do not adopt (as the governance platform). Reject Bytebase as the top-level governance model. It would duplicate the registry, doctor and primitive meta-structure, and the free edition lacks the audit log and approval workflow that the bank objective demands, so it cannot serve as a free governance win in any case. If no Enterprise budget exists, this becomes the effective outcome.

Rank 3 - Adopt now (rejected). Not recommended. Adopting now would commit to a second governance model, spend against a paid tier before a licence review, and pre-empt the cheaper primitive-level design that is needed regardless.

Net: the free Community edition is a competent database DevOps tool - genuinely better than Neo4j Community Edition on RBAC - but it is open core, and its compliance-grade controls (approval workflow, audit log, OIDC/LDAP SSO, custom roles, dynamic data masking, just-in-time access) are Enterprise-only. It is a future execution-layer option, not the governance answer, and not an immediate adoption.


Sources

Bytebase:

Alternatives:

Project context:

Odysseus

A self-hosted AI workspace. Duplicates three loadouts on the mainframe, and is the strongest candidate yet for the personal edition.

Odysseus - build vs borrow assessment

Verdict, stated first

The verdict differs by target, and that is the whole finding.

targetverdictreason
MainframeSKIPDuplicates the collaboration, ai and commercial loadouts. It would be a third chat surface, a second calendar and a second document editor, with no governance gain
Personal editionBORROWThe strongest candidate found so far, and it fills most of the gaps in the personal loadout: notes, tasks, calendar, documents, email, chat, agents and research in one lightweight stack

What it actually is

A self-hosted AI workspace. One application container plus three support services, offering:

The stack is four containers: the app itself, ChromaDB for vectors, SearXNG for search, and ntfy for notifications. Its database is SQLite. There is nothing else to run.

The seven rules

1. Licence - AGPL-3.0-or-later - the decisive finding

OSI-approved, and unmodified self-hosted use is unrestricted, so it passes the rule. But AGPL is the strongest copyleft in this project's adoption register, and the constraints must be recorded rather than waved through.

useposition
Run it unmodified for a householdfine. Internal use carries no obligation
Sell hosting of itfine, provided source is offered to network users - and it already is, since the project is public
Sell inference alongside itfine, that is a separate service
Modify it and offer it to users over a networkyou must offer those users the source, including your modifications

That last row is the real constraint, and it collides with one reading of the open-core plan - "open source the core, sell premium features". AGPL does not forbid that, but it does mean a premium tier cannot be built by modifying Odysseus and keeping the modifications closed. Premium would have to live in a separate service that talks to Odysseus, not inside it.

The integration boundary therefore matters. Running it as its own container that the platform reaches over HTTP is the safe shape. Linking the platform's own code into it is where the copyleft would bite.

This is a materially different situation from Bytebase and RedPlanetHQ, which failed the licence rule outright: those restricted rights and carved the permission machinery out of the grant. AGPL grants rights and imposes a reciprocal obligation. It is a constraint to design around, not a disqualifier.

2. Language - Python

app.py, launcher.py, and a Python stack throughout. Disqualifying for any first-party extension, exactly as with LiteLLM.

It may be run as a pinned, vendored upstream container and configured, never extended. It joins LiteLLM in the small set of recorded and deliberate Python exceptions, and it should appear in the adopted_component_python doctor check the moment it is adopted.

3. Sovereignty - the strongest score in the register

propertyposition
Runs offlineyes, entirely
Local modelsfirst-class: Ollama, LM Studio, vLLM, llama.cpp, with a Cookbook for hardware-aware selection
Requires an accountno
Requires a cloud serviceno
Web searchself-hosted SearXNG, not a commercial API
DatabaseSQLite on local disk

Nothing phones home. A household with no internet connection still gets chat with a local model, notes, documents and files. This is better than most of what the platform already runs.

4. Governance fit - neutral

It has its own auth, roles and per-user privileges, but it makes no claim to own approval, audit or change records. It would not become a second source of truth for anything the playbook registry owns. No conflict.

5. Security posture - mixed, and honestly documented

Good:

The finding - blast radius:

Odysseus gives an LLM shell access, Python execution and file read/write, plus IMAP/SMTP credentials and calendar access. That is, by design, an agent with the run of the box and the household's email.

The mitigation is real and specific, from the setup guide:

Non-admin users do not get shell/Python/file read/write by default, and admin-only routes and tools such as MCP management, API tokens, webhooks, model and cookbook serving, backup/vault, and app settings are admin-gated.

So the dangerous surface is admin-gated and off by default for non-admins. That is the correct design. But it means the administrator account on a household personal edition holds what amounts to root on the box plus email access, which must be a stated decision rather than a default nobody examined.

LOCALHOST_BYPASS is a documented footgun: development-only, and it must be false on any real deployment. It is worth checking on every upgrade.

6. Strategic value - high for the personal edition, negative for the mainframe

On the mainframe it overlaps Mattermost (chat), Cal.com (calendar), the document tools, the Hermes agent and LiteLLM. Adopting it would add a fourth human-facing surface and duplicate three capabilities to gain nothing the registry or the playbooks want.

For the personal edition it is the opposite. It supplies, in one container, almost everything the personal loadout was going to assemble from parts.

7. Maintenance - active, and packaged

signalvalue
Recent commitsthrough September 2026, so weeks rather than years
Default branchdev, with a curated main
Distributiona Repology packaging badge, so it is in distro repositories
Communityan active star history and a contributing guide
Provenancean organisation, not a single dormant author

This is a maintained project, not a personal experiment.

Why it matters for the personal edition

The previous assessment of the personal edition listed its service set as Vaultwarden, Cryptgeon, Cal.com, Stirling PDF and MinIO, and recorded four things that had to hold at home. Odysseus changes that picture.

household needbeforewith Odysseus
Chat and a household assistantnot providedprovided, with local models
Notes and tasksnot providedprovided
Shared calendarCal.comCal.com, or its CalDAV sync
DocumentsStirling PDFprovided, plus an editor
Emailnot providedprovided, with triage and drafts
Research with sourcesnot providedprovided
Photos and filesMinIOstill MinIO, or its gallery
PasswordsVaultwardenstill Vaultwarden
Containers required5 plus core4, with SQLite

Critically, it also satisfies the per-user space model the personal edition recorded as its tenancy decision: per-user privileges, a non-admin role without shell or file access, and 2FA. That was the loadout's most consequential requirement and it was previously unimplemented. Odysseus implements it.

The revised personal edition shape becomes: Odysseus as the application layer, Vaultwarden for passwords, MinIO for bulk storage, and core underneath. That is a household platform, not a collection of parts.

What I could not verify

Stated plainly rather than inferred:

  1. Whether per-user isolation is strong enough to separate two household members' private notes. The privilege model is documented, but I did not read the enforcement code, and the phrase "per-user privileges" could mean feature gating rather than data separation. This is the single question to answer before adopting, because the personal edition's private-space promise depends on it.
  2. The resource footprint under load. A four-container SQLite stack is light in principle; actual memory with a local model loaded was not measured.
  3. Whether the upgrade path preserves data safely. No release notes or migration review was done.
  4. The AGPL boundary in practice. Whether the platform's own code could interact with it without becoming a derivative work is a legal question, not a technical one, and I have answered only the technical shape.

Verdict

Mainframe: SKIP. It duplicates three loadouts and adds a surface without adding governance.

Personal edition: BORROW as the application layer, subject to answering the per-user isolation question. It is the best fit found for a household, it is maintained, it is sovereign, and its one disqualifying trait - Python - is the same recorded exception the platform already accepts for LiteLLM.

Two things to do if it is adopted: record it in the adoption register with the Python exception, and add a doctor check for the AGPL boundary so nobody inadvertently builds the premium tier inside it.

Standards

Engineering standards and laws

The mainframe adopts the Pax Agentica constitution as binding: laws.md, copilot-instructions.md and the per-language standards under instructions/. This page records what that means, and what currently does not comply.

The laws

Eleven laws. The four that change daily practice here:

  1. Law 3 - lower level first. Terminal work uses bash and GNU tools. When a script outgrows bash, use bun. Agent scripts belong in .github/scripts/.
  2. Law 4 - no Python. Never, for anything, ever. This is the law with the largest current debt in the estate.
  3. Law 5 - no emoji, no em-dash, no fancy unicode. Use [x] not a tick character, and a hyphen not an em-dash.
  4. Law 10 - no node, npm, npx or yarn. Bun is the equivalent tool in all cases.

Two more that change how work is delegated and scoped:

Law 11 requires steel-manning the sandbox's intent and never deviating from it. Where a law appears to conflict with local practice, the resolution is to surface the conflict, not to quietly pick a side. That is why this page exists.

The standards

Each standard declares a scope via applyTo, so the correct one is unambiguous at the point of work.

standardapplies toheadline rules
bash**/*.sh#!/usr/bin/env bash, set -euo pipefail, local camelCase, UPPER_SNAKE globals, no function keyword, quoted expansions, $(...) over backticks
rust**/*.rs, Cargo filesedition 2024, no nightly, safe Rust by default, bounded async, container-only verification
markdownall .mdlint-clean at creation, `
makefileMakefilelowercase everything, .PHONY on all targets, orchestrates docker rather than building
js**/*.js, **/*.tsBun not Node, const by default, ES modules, pino for logs, UI and automation only
htmlmarkupReact shop; semantic and accessible; raw .html kept minimal
dockerfile**/Dockerfilelowercase, multi-stage, digest-pinned, port 80 for first-party, non-root
commit-messagescommitsconventional commits, non-technical summary, changed files listed individually

Two boundaries in the standards matter more than the style rules, because they forbid whole categories of work rather than prescribing its shape:

  1. Bash must not implement backends. Bash orchestrates tools and containers. First-party backends are Rust.
  2. JavaScript must not implement backends. JS and TS are browser UI, UI prototypes and Bun automation.

So a service is never "a shell script plus some glue". The shell orchestrates, the Rust backend implements, and the standards are explicit about which side of the line a given file sits on.

Change lists

Every non-draft document carries a changes list in its front matter: date, ticket, description and agent, newest first. HITL is the ticket value for human-requested work outside a ticket. New documents record init. Existing documents without a change list are left alone.

This page complies. So do the loadout registry and the registry methodology page.

Compliance gap analysis

Measured against the live estate on 2026-10-06. This is the honest position, not the aspirational one.

law or standardcurrent stateseverity
Law 4 - no Pythonbuild-pack.py, index-mainframe.py, ascii-banners.py, generate-diagrams.py, generate-plantuml.py, generate-pack-diagrams.py are first-party Python. 3,127 .py files estate-wide, the large majority vendored upstream (mainframe-terminal bundled skills, wazuh forks)high for first-party tools
Law 10 - no npmthe docs site builds with npm run build on host Nodehigh
Law 3 - bunbun is not installed on the host, so the sanctioned replacement runtime for non-trivial scripting is unavailableblocking
Law 5 - no emoji or em-dashthe published docs use emoji status markers and em-dashes throughout; interfaces/registry.yaml carries emoji iconsmedium, cosmetic debt
bash standardcollect-registries.sh complies: shebang, set -euo pipefail, camelCase locals, UPPER_SNAKE globals, no function keyword, quoted expansionscompliant
bash standard - no host tools/usr/bin/yq on this host is yq 3.1.0, a Python script. It is used only as jq-over-YAMLgrey area, flag it

The yq problem, stated plainly

collect-registries.sh needs to read YAML. The available tool is a Python program. That is a real tension with law 4 and it is recorded rather than hidden. Three resolutions, in preference order:

  1. Move the collector to bun. This is what law 3 prescribes for logic bash cannot express cleanly, and YAML parsing is exactly that. Blocked only on bun being available in a pinned container.
  2. Keep registry sources as YAML and read them with a non-Python parser, if one can be pinned into the verification image.
  3. Note and accept as a documented exception with an owner and an expiry, which the rust standard already permits for narrowly scoped cases.

Option 1 is the intended path. It is not taken yet because installing host tooling is itself forbidden by the bash standard, so bun must arrive via a pinned container image.

Migration plan

  1. Get bun into a pinned container. No host installation. Establish the verification image the bash standard requires.
  2. Port the six first-party Python tools, highest value first: the pack builder, then the registry indexer, then the generators. Bash where it fits, bun where it does not.
  3. Move the docs build off npm. npm run build becomes a bun invocation in the same container.
  4. Vendor-versus-first-party triage. The 3,127 .py files include upstream forks and bundled skills that are not ours to rewrite. Classify them, then record the boundary so law 4 applies to first-party code only.
  5. Emoji and em-dash debt. Existing content is not swept: the markdown standard says write it right at creation, do not re-lint after the fact. New and edited content complies going forward.

Step 1 and step 3 both touch markdoc, which is the documentation pipeline itself, and step 2 touches generated artefacts the pack depends on. Both need explicit permission under law 6 before they are started.

Bundle

The declarative artefact set in one versioned archive with a sha256 manifest, so a second person can stand up a Mainframe from the artefacts alone.

Mainframe bundle

What it is

The bundle is the platform's declarative artefact set in one versioned archive. It exists to satisfy the position brief's definition of done: a second person stands up a Mainframe from the artefacts alone, without asking the original operator a single question.

The archive carries a MANIFEST.txt with a sha256 digest for every file and the headline counts, so it is reproducible rather than merely packaged.

Download

Contents

pathholdswhy
registry/loadouts, primitives, playbooks, interfacesthe sources of truth the graph is derived from
graph/schema, collector, conformance checks, generated seedeverything needed to build and test the registry graph
tools/pack builder, link checkerthe build tooling, in bun, runnable in a pinned container
docs/roadmap documents, pack sources, researchthe reasoning, so the bundle is not just the what

Counts at assembly

itemcount
loadouts8
primitives35
playbooks9
playbook steps91
registries18
graph entries emitted84 in the collector pass

Secrets

No secret is included. The bundler refuses to stage any file whose name matches .env, .key, .pem, unseal, token, secret or password, and it fails loudly rather than skipping quietly. The exclusion is re-verified by listing the finished archive, not by trusting the filter.

Reproducing the build

  1. Bring up the graph: docker compose up -d in neo4j/, then apply schema.cypher and the generated registries.cypher with cypher-shell.
  2. Regenerate the graph artefacts: bash graph/collect-registries.sh.
  3. Run the conformance checks: cypher-shell -f graph/doctor-registries.cypher. Every query must return zero rows.
  4. Rebuild the pack and the docs: docker run --rm -v /opt/prodg:/opt/prodg -w /opt/prodg/markdoc oven/bun:1-alpine bun tools/build-pack.ts.
  5. Verify the published tree: docker run --rm -v /opt/prodg:/opt/prodg -w /opt/prodg/markdoc oven/bun:1-alpine bun tools/check-links.ts.

Bun runs in a pinned container because host tool installation is forbidden. No step requires Python, and none requires npm.

How the bundle is produced

tools/make-bundle.sh stages the declared sources, regenerates the graph artefacts so the archive carries current output rather than stale files, writes the manifest, and archives. It is idempotent: re-running replaces the archive for the same date.