Position brief
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)
- 36 containers running across 6 compose projects; 75 markdown docs; 42 ISMS documents.
- Reverse proxy Caddy with subdomain-per-service + path routing; automatic TLS.
- Headscale control plane + Tailscale mesh; OpenBao, Infisical, Vaultwarden, Passbolt for secrets; Prometheus/Grafana/Loki/promtail/cAdvisor/node-exporter/Wazuh for observability + SIEM.
- LiteLLM AI gateway; Hermes operator with Telegram/Discord/A2A surfaces; MCP (Context7).
- Documentation product: Markdoc pipeline, FossFLOW isometrics + PlantUML diagrams (10 each, one per section), interactive learning aids, and this consolidation pack.
- Kubernetes - two live clusters: a kind cluster (
prodg-cluster-control-plane, v1.27.3, default kubeconfig) and the Talos Track C cluster (Talos v1.14.2 / k8s v1.37.0) whose nodestrackc-node(192.168.100.207, control plane) andconvert-test(192.168.100.56, worker) are bothReady. Talos is now the canonical target; Track C is pending promotion. - A SOC/supply-chain framework (including clean-room rewrite as a licensing control), secrets-hardening plan (Phase 9), zero-trust design (~25%), onboarding roadmap.
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."
| Was | Now |
|---|---|
| Self-hosted SaaS alternative for solo technical owners | High-assurance platform for regulated, adversarial environments |
| Optimise for cheap and just-works | Optimise for provable, auditable, governable |
| Productise the instance | Productise the pattern - open-source the core, sell premium |
| Security as defence in depth | Security as evidenced control with governance provisions |
| Assumption validation as hygiene | Assumption validation as the product |
Four consequences follow immediately:
- 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.
- 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).
- 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.
- 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
| Strength | Corresponding risk |
|---|---|
| One agent holds root and acts | Single point of authority; no separation of duties - an audit finding in production |
| Deep integration | Coupling: a Caddy network mistake 502s /control/ and /hermes/ |
| Rich documentation | Docs drift from host (Ubuntu 22.04 vs 24.04; Talos vs kind) |
| Fast, agent-driven change | Claims outrun verification ("banners 17 files" false; "can't drift" false) |
| Self-sovereign | Operational 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:
- Track 1 - Harden & tell the truth. Close the review's defects; every doc claim
machine-verified or explicitly labelled unverified; resolve the
secure-file-serverincident. Low cost, high trust value - and a precondition for everything else. - Track 2 - Extract the framework. Blueprint phases become an installable, testable artefact:
mainframe install, amainframe doctorconformance suite, a version matrix, core + loadouts. This is the defensible asset. - Track 3 - Govern it. Choose the audit framework (recommendation: NIST 800-53 control catalogue + ISO 27001 certification shell), then build the provisions that depend on it: incident playbook, alert-tier model, separation of duties / break-glass, agent blast-radius envelope, and the graduation process that answer 3 implies.
- Track 4 - Promote and scale. Promote Track C to canonical (Talos/K8s), prove a proven restore, then the fleet fabric: identity, secrets distribution and observability across nodes.
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.
| Tier | What it is | Buyer | Why they pay |
|---|---|---|---|
| Core (open source) | The framework: manifest, installer, mainframe doctor, docs pipeline, diagram tooling, loadouts | Technical teams, open-source community, pilot companies | Free adoption; the distribution engine and the credibility engine |
| Enterprise support | SLAs, upgrade ownership, incident response, audit support, certification assistance | Regulated enterprises, government, defence | They need a named party to answer to an auditor |
| Managed hosting | The fleet, operated - sovereign tenancy, proven restore, monitored | Organisations that want the outcome, not the ops | Removes the last internal capability barrier |
| Inference | Model routing and inference on sovereign infrastructure (LiteLLM lineage) | Anyone who cannot send data to a public model provider | The 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
- Defensibility = integration + agent operation + evidence discipline. Every component is open source; a competitor can assemble the same parts. What they cannot copy quickly is the governed assembly and the corpus of evidence that makes it auditable.
- The evidence corpus is the moat. 75 docs pages, 42 ISMS policies, blueprints, and a machine-checkable claim discipline. In the target market, that is the product.
- The AI-operator angle is genuinely novel - an agent holding root under a governance envelope. Nobody is packaging that, and it is exactly what a small team needs to operate a platform that would otherwise require a department.
- Clean-room supply-chain licensing (founder decision 20) turns a legal risk into a compliance feature - a strong posture for defence and government procurement.
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:
- Sovereignty - data and inference never leave infrastructure they control.
- Provable operation - a conformance suite and evidence trail that answer an auditor.
- Governed agency - an agent operating inside an approval envelope, with blast-radius limits and a recorded trail when it acts outside it.
- Time-to-sovereignty - from "we need this" to a green instance, measured in days not quarters.
5. Costs & requirements to get there
| Item | Effort | Notes |
|---|---|---|
| Fix drift + verified-claim discipline (D1-D8) | ~1 day | Done in this pass |
Shared config + mainframe doctor conformance suite | ~1 week | The core framework asset |
Package mainframe install (core + loadouts) | ~1 week | Idempotent install, .env templating, post-install doctor |
| Second-instance validation (fresh host) | ~2 days | The only proof the framework works |
| Governance framework selection + control mapping | ~1-2 weeks | NIST 800-53 catalogue + ISO 27001 shell |
| Incident playbook + one tabletop rehearsal | ~1 week | A regulator requires a rehearsed one |
| Backup/DR: define RPO/RTO + prove a restore | ~1 week | Currently "not sure" - dis-qualifying |
| Separation of duties / break-glass / RBAC | ~2 weeks | Production requirement, not a nicety |
| Clean-room licensing pipeline | ongoing | Founder'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/week | Health, upgrades, incidents |
6. Risks
- Compliance cost and duration. ISO 27001 certification is months and real money. Mitigation: adopt the control catalogue first (cheap, immediately useful), certify later when there is a customer demanding it.
- Evidence burden. Every claim needs an artefact. Mitigation: automate it -
mainframe doctorgenerates the evidence as a by-product of running. - Bus factor / single operator. Mitigated only by someone else executing the blueprint; the founder's answer (pilot installs on founding companies) is the right instrument.
- Scope without a fence. Answer 3 says nothing is out of scope once graduated - but no graduation process exists yet. Without one, scope growth will outrun governance. This is the highest-priority process gap in the pack.
- Licensing. Resolved by clean-room rewrite inside the supply-chain pipeline, but that is real engineering effort, not a review.
- Commoditisation. All components are OSS. Speed, agent-operation and the evidence corpus are the only durable edge.
- Security surface. 36 containers, a root-holding agent, a public IP. A framework multiplies any weakness - which is precisely why the conformance suite must exist before the framework spreads.
7. Recommendation
Proceed to a bounded pilot, sequenced so that assurance work pays for itself early.
- Harden & tell the truth (days) - done in this pass; keeps the trust account in credit.
- Build
mainframe doctor+install(~2 weeks) - the core asset and the evidence generator. - Prove the second instance (~2 days) - the kill/continue gate.
- Choose the governance framework and map controls (~2 weeks) - unlocks the regulated market.
- 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
| # | Question | Answer | What it implies |
|---|---|---|---|
| 1 | Product, 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. |
| 2 | Target persona for a second instance? | Small team | Multi-operator from the start: separation of duties, shared-secret handling, handover docs. |
| 3 | What 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). |
| 4 | Build 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
| # | Question | Answer | What it implies |
|---|---|---|---|
| 5 | Ubuntu (A) vs Talos (B/C) canonical? | Talos | Supersedes the blueprint's "stay on Ubuntu" recommendation. Ubuntu is dev/legacy. |
| 6 | Why is the running cluster kind, not Track C? | Pending promotion | Promoting Track C is scheduled work, not a mystery. |
| 7 | Single 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). |
| 8 | How 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). |
| 9 | Compose vs K8s for the app tier? | K8s | Compose is dev-time ergonomics; K8s is the deployment target. |
C. Implementation & correctness
| # | Question | Answer | What it implies |
|---|---|---|---|
| 10 | Stop "can't drift" style claims? | D2 | Enforce structurally, never assert. Fixed in this pass; now a standing rule. |
| 11 | Should auto-generated files be decorated? | D1 | Decoration must be emitted by the generator. Manual passes over generated files are forbidden. |
| 12 | How do we keep docs truthful? | D3 | Machine-verified, or explicitly labelled unverified. Needs a check, not discipline. |
| 13 | Verification contract for agent work? | Research and present options | Open workstream - what must an agent prove before claiming done? |
D. Assumptions to validate
| # | Assumption | Answer | What 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 place | Zero-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. |
| 18 | Backup / DR | Not sure | Blocking for regulated environments. A proven restore is a stop condition (-> decision 34). |
E. Security & compliance
| # | Question | Answer | What it implies |
|---|---|---|---|
| 19 | Separation 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. |
| 20 | Licensing 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. |
| 21 | Breach / 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. |
| 22 | secure-file-server crash-looping | Incident | Reclassified from observed defect to incident - needs handling and a retrospective. |
F. Operations & people
| # | Question | Answer | What it implies |
|---|---|---|---|
| 23 | Bus 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. |
| 24 | Upgrade 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. |
| 25 | Who 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
| # | Question | Answer | What it implies |
|---|---|---|---|
| 26 | Quartz vs Markdoc? | Markdoc | Quartz is retired; the paused cron need not return. |
| 27 | Banner/grep audit over-counts | D5 | Fixed in this pass. |
| 28 | Where does runtime config live? | "Resolve them according to best practice" | Open workstream - define config precedence and location policy. |
H. Agent-specific
| # | Question | Answer | What it implies |
|---|---|---|---|
| 29 | require_mention isn't live | "Add this as an item to be resolved" | Recorded in Current; needs a human-run gateway lifecycle command. |
| 30 | A2A mesh | "Unsure of current status - investigate and operationalise" | Open workstream: assess, then make it real. |
| 31 | What 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
| # | Question | Blocks |
|---|---|---|
| 32 | Which 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 |
| 33 | What is the graduation process - research -> governed operation? | Answer 3 (no scope fence) |
| 34 | What is the backup/DR target (RPO/RTO), and has a restore been proven? | Any regulated deployment |
| 35 | What does a loadout mean concretely, and which are supported? | Answer 8 |
| 36 | What is the fleet fabric - identity, secrets distribution, observability across nodes? | Answer 7 |
Options
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:
| Layer | Standard | Role |
|---|---|---|
| Control catalogue | NIST SP 800-53 Rev. 5 (+ SP 800-53B baselines) | The normative list of controls the platform implements and evidences |
| Certification shell | ISO/IEC 27001:2022 (ISMS) | The auditable management system a bank's risk function recognises and certifies |
| Programme lens | NIST CSF 2.0 | Governance, tiers, and a common language for the risk register |
| Hardening baseline | CIS Critical Security Controls v8 | Concrete, automatable configuration baseline that maps into 800-53 |
| Commercial trust | SOC 2 Type II | Vendor-trust artefact for the premium SaaS/hosting tier only |
| Regional overlay | EU DORA + NIS2 | If 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.
- 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).
- 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).
- 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).
- 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).
- 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).
- 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).
- 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.
| Gate | Name | Entry requirement | Exit evidence (must be produced, not asserted) |
|---|---|---|---|
| G0 | Research | Idea, notes, throwaway prototype | Written hypothesis + owner named |
| G1 | Lab | Runs reproducibly in a non-production namespace | Reproducible manifest, no shared secrets, blast radius stated |
| G2 | Pilot | Runs for one real pilot company | Onboarding doc, monitoring wired, rollback tested |
| G3 | Governed | Runs under the governance framework | Control mapping to 800-53, threat model, incident playbook entry, restore proof, RBAC + break-glass |
| G4 | Certified | Passes external audit | ISO 27001 ISMS inclusion, evidence pack, signed risk acceptance |
Prior art used to justify the model.
- NIST CSF 2.0 implementation Tiers (Partial / Risk Informed / Repeatable / Adaptive) are the recognised maturity vocabulary for exactly this kind of staged governance. Source: https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf and the CSRC glossary term CSF Tier (https://csrc.nist.gov/glossary/term/csf_tier).
- SLSA (Supply-chain Levels for Software Artifacts) is the precedent for numbered, incremental trust levels attached to an artefact, which is how a gate badge should behave. Source: SLSA specification (https://slsa.dev/).
- The NIST AI Risk Management Framework gives the Govern / Map / Measure / Manage lifecycle for the agent-operated components, so agent-bearing loadouts graduate under AI RMF as well as 800-53. Source: NIST AI 100-1, AI RMF 1.0 (https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf).
- NIST SP 800-61 Rev. 3 ties incident response to CSF 2.0, so the incident playbook (founder answer 21) is produced as part of G3, not separately. Source: NIST SP 800-61 Rev. 3 (https://csrc.nist.gov/pubs/sp/800/61/r3/final).
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:
| Tier | Data / service | RPO | RTO | Mechanism |
|---|---|---|---|---|
| T0 | Identity, secrets (OpenBao), PKI, control plane | 15 min | 4 h | Continuous replication + sealed offline copy; emergency break-glass |
| T1 | Stateful platform data (PostgreSQL, graph, object store) | 60 min | 8 h | WAL archiving + periodic base backup + immutable offsite copy |
| T2 | Stateless app tier, configs, docs | 24 h | 24 h | Git + nightly config backup; rebuild from manifests |
| T3 | Analytical / regenerable data | 24 h | 72 h | Recompute 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.
- 3 copies of the data, 2 different media, 1 offsite, 1 immutable/air-gapped, 0 errors verified.
- This is the modern extension of the classic 3-2-1 rule that CISA and vendor guidance point to for ransomware resilience. Sources: CISA #StopRansomware Guide (https://www.cisa.gov/stopransomware/ransomware-guide); PlayCISO explainer on the 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); Nakivo on the base 3-2-1 rule (https://www.nakivo.com/blog/3-2-1-backup-rule-efficient-data-protection-strategy/) and Veeam on the 3-2-1 rule (https://www.veeam.com/blog/321-backup-rule.html).
- The immutable copy must be WORM: object-lock / retention-lock on the offsite object store. This is the control that satisfies both ransomware guidance and financial-records retention such as SEC Rule 17a-4's WORM requirement. Sources: AvePoint on immutable backups and 17a-4 (https://www.avepoint.com/blog/backup/immutable-backup).
- Contingency-planning structure (BIA, RTO/RPO selection, test/exercise/review) should follow NIST SP 800-34 Rev. 1. Source: https://csrc.nist.gov/pubs/sp/800/34/r1/upd1/final.
Restore-testing cadence (widely recommended).
- Continuous: automated integrity checks and restore-readiness (backup completed, restorable, no errors) - the "0" in 3-2-1-1-0.
- Monthly: granular restore test of T1 data into an isolated namespace (prove the dump/restore path, not just the backup).
- Quarterly: table-top / scenario exercise of the incident-response plan for a data-loss event.
- 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:
- Component set - which services are in (core is always in; optional services are toggled).
- Values / config - resource requests/limits, replica counts, feature flags, sizing tier.
- Policy bundle - Kyverno policies, PSA/seccomp profile, network policies that apply to it.
- 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).
- Helm umbrella charts: one chart declaring dependencies on sub-charts, with
conditiontoggles and sharedglobalvalues - exactly the "core plus optional components" idea. Source: Helm chart dependency documentation (https://helm.sh/docs/topics/charts/#chart-dependencies) and Helm best practices (https://helm.sh/docs/chart_best_practices/). - Kustomize bases and overlays: a base manifest with environment overlays that patch it - the canonical "profile" mechanism in Kubernetes. Source: Kubernetes Kustomize documentation (https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/).
- NixOS profiles / modules: declarative named configurations composed from modules, the strongest existing example of a first-class "profile" object. Source: NixOS Manual (https://nixos.org/manual/nixos/stable/).
- Ansible roles: reusable, parameterised units of configuration with a defined structure and metadata - a loadout is an Ansible role's mental model applied to workloads. Source: Ansible Roles (https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_reuse_roles.html).
- Kubernetes seccomp profiles: precedent for the word "profile" attached to a workload in K8s,
applied via
securityContext. Source: Kubernetes seccomp documentation (https://kubernetes.io/docs/reference/node/seccomp). - Fleet bundle targeting: Rancher Fleet deploys bundles to clusters by label/selector, which is how loadouts would be applied across the fleet. Source: Rancher Fleet overview (https://fleet.rancher.io/).
Supported loadouts to define (recommended set).
| Loadout | Purpose | Core? | Adds | Gate |
|---|---|---|---|---|
core | Minimum sovereign platform | yes | Gateway, identity, secrets, observability-min | G2 |
operator | Core plus the AI operator | yes | Hermes, LiteLLM, MCP interfaces, Skills | G2 |
regulated | Bank / government baseline | yes | Zero-trust (SPIRE), Kyverno, SIEM, immutable backup, RBAC | G3 |
defence-airgap | Air-gapped hardened | yes | Offline mirrors, signed artefacts, hardware-backed keys | G3 |
inference (premium) | Model serving | yes | GPU scheduling, model registry, gateway | G2 |
dev | Lab / research | yes | Debug tooling, Compose escape hatch, synthetic data | G0/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.
- Use SPIFFE IDs and SPIRE as the cross-node workload identity plane: cryptographic, automatic certificate rotation, and federation across trust domains, which is precisely the fleet requirement (nodes that "securely share data and services"). Sources: SPIFFE Overview (https://spiffe.io/docs/latest/spiffe-about/overview/) and SPIFFE Federation (https://spiffe.io/docs/latest/spire-helm-charts-hardened-advanced/federation/).
- Human/node identity stays with the tailnet (Headscale/Tailscale) and OIDC; SPIFFE covers service-to-service authz so mTLS does not depend on network location.
2. Secrets distribution: OpenBao + External Secrets Operator + cert-manager.
- OpenBao is the OSI-licensed, OpenSSF/Linux Foundation fork of HashiCorp Vault; it provides encrypted storage, dynamic secrets, leasing/revocation and identity-based access. Source: https://openbao.org/ and the "What is OpenBao" page (https://www.openbao.ch/what-is-openbao).
- External Secrets Operator (ESO) syncs OpenBao (or cloud secret managers) into Kubernetes as
ExternalSecret/SecretStore/ClusterSecretStoreresources, so services never hold static Kubernetes Secrets. Source: https://external-secrets.io/latest/. - cert-manager issues and rotates X.509 certificates from OpenBao/Vault or private PKI, and its csi-driver / csi-driver-spiffe options keep private keys off disk entirely. Sources: https://cert-manager.io/docs/ and https://cert-manager.io/docs/configuration/vault/.
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.
- Instrument with the OpenTelemetry SDK and ship via the OpenTelemetry Collector so the same signals flow from every node and every cluster. Source: https://opentelemetry.io/docs/.
- Long-term metrics span nodes with Prometheus plus a remote-write backend (Thanos or Grafana Mimir); logs via Loki; traces via Tempo. This keeps one pane of glass across the fleet and avoids per-node islands. Source: OpenTelemetry Collector documentation (https://opentelemetry.io/docs/collector/) and Grafana's OTel guidance (https://grafana.com/docs/opentelemetry/collector/).
- Runtime threat detection with Falco on every node closes the "would we have known?" gap. Source: https://falco.org/.
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.
| Option | Licence | RBAC / access control | Backup | Verdict |
|---|---|---|---|---|
| Neo4j Community | GPLv3 | No RBAC, no sub-graph access control | No online backup, no clustering | Reject for the governed core |
| Neo4j Enterprise | Commercial (Neo4j licence) | RBAC, sub-graph, online backup, clustering | Yes | Premium/enterprise option only |
| Apache AGE (PostgreSQL) | Apache-2.0 | Inherits PostgreSQL RBAC, RLS, roles | pg_dump/pg_basebackup/WAL | Recommended default |
| Memgraph | BSL 1.1 (source-available) | Enterprise features gated | Varies | Reject for open core (not OSI-open) |
| JanusGraph | Apache-2.0 | Storage-layer auth; heavy stack | Via Cassandra/HBase | Consider only if distributed scale dominates |
Evidence.
- Neo4j Community Edition is GPLv3 and the Enterprise Edition is commercially licensed; RBAC, sub-graph access control, online backup and clustering are Enterprise-only. Sources: Neo4j open-core licensing explanation (https://neo4j.com/blog/news/open-core-licensing-model-neo4j-enterprise-edition); Neo4j open-source project licensing page (https://neo4j.com/open-source-project); Neo4j legal terms (https://neo4j.com/licensing/).
- Apache AGE is an Apache-2.0 PostgreSQL extension that adds graph modelling and traversal inside PostgreSQL, so it inherits PostgreSQL's role/privilege model and backup tooling. Sources: https://age.apache.org/ and the PostgreSQL extension overview (https://learn.microsoft.com/en-us/azure/postgresql/azure-ai/generative-ai-age-overview).
- Open-core posture: a GPLv3 Community edition plus a commercial Enterprise edition creates a licence split that must be managed; a clean-room supply-chain review (founder answer 20) is cheaper if the default is Apache-2.0. Sources: OSI Open Source Definition (https://opensource.org/osd) and SPDX licence list (https://spdx.dev/learn/handling-license-info/).
- Memgraph's BSL 1.1 licence is source-available but not OSI-open, which conflicts with "open-source the core". Sources: Memgraph LICENSE (https://github.com/memgraph/memgraph/blob/master/LICENSE) and the isitreallyfoss assessment (https://isitreallyfoss.com/projects/memgraph).
- JanusGraph is Apache-2.0 but is a distributed store needing a backing database (Cassandra/HBase), which raises operational cost on a single node. Source: https://janusgraph.org/ and the licence file (https://github.com/JanusGraph/janusgraph/blob/master/LICENSE.txt).
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.
| Registry | Class | System of record | Rule |
|---|---|---|---|
| Service / component register | Authoritative | Git (declarative manifests) | Change via merge request; GitOps reconciles |
| Identity directory | Authoritative | IdP + Headscale/SPIRE registry | Single issuer; no shadow accounts |
| Secrets metadata (not values) | Authoritative | OpenBao | Values never in Git |
| Control catalogue / gate badges | Authoritative | 800-53 mapping file + graduation log | One row per control/component |
| Dependency register / SBOM | Derived | Generated from lockfiles and images | CycloneDX/SPDX, regenerated by pipeline |
| Docs, diagrams, the pack build | Derived | Generators over source docs | Never hand-edited (matches D1/D2) |
| Inventory snapshots, dashboards | Derived | Prometheus/Loki exporters | Rebuildable, timestamped |
| Infra state exports | Derived | IaC apply output | Reproducible 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.
- GitOps principles codify "the desired state is stored declaratively in a version-controlled single source of truth". Source: OpenGitOps (https://opengitops.dev/) and Argo CD (https://argo-cd.readthedocs.io/en/stable/).
- SBOM standards give the derived-artefact format: CycloneDX (https://cyclonedx.org/) and SPDX (https://spdx.dev/).
- SLSA provenance is the model for a machine-generated artefact carrying its own build provenance, which is how a derived registry should stamp itself. Source: https://slsa.dev/spec/v1.0/provenance.
Question 39 - Is GraphAware Hume a candidate dependency?
Recommendation. No - not a core dependency. Treat Hume as a premium/partner integration at most.
Rationale.
- 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.
- 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).
- 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):
- Normalisation. Canonicalise names, addresses, dates, identifiers; hash direct identifiers (national ID, email) for blocking keys.
- Blocking (candidate generation). Reduce the quadratic comparison space using exact-key blocking and locality-sensitive hashing (MinHash/LSH, canopy clustering) for scale.
- Pairwise scoring. Combine string similarity (Jaro-Winkler, Levenshtein, Jaccard on token sets), embedding cosine similarity, and graph-structural similarity.
- Classification. Probabilistic record linkage in the Fellegi-Sunter framework (e.g. Splink) or supervised/active learning, producing a match probability per pair.
- Decision. Threshold into auto-match, review queue, auto-non-match. No silent merge.
- 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.
- Blocking and filtering techniques are the standard scalable ER approach; the foundational survey is Papadakis et al., "A Survey of Blocking and Filtering Techniques for Entity Resolution" (https://arxiv.org/abs/1905.06167).
- End-to-end ER for big data is surveyed in Christophides et al., ACM Computing Surveys (https://dl.acm.org/doi/abs/10.1145/3418896).
- Neo4j Graph Data Science provides Node Similarity and Filtered Node Similarity for neighbourhood-based structural matching, and its own ER playbook frames threshold-based resolution. Sources: https://neo4j.com/docs/graph-data-science/current/algorithms/node-similarity/, https://neo4j.com/docs/graph-data-science/current/algorithms/filtered-node-similarity/, and the Neo4j GDS entity-resolution use case (https://neo4j.com/blog/graph-data-science/graph-data-science-use-cases-entity-resolution/).
- Embedding-assisted ER for knowledge graphs is established practice. Source: "Embedding-Assisted Entity Resolution for Knowledge Graphs" (https://ceur-ws.org/Vol-2873/paper8.pdf).
- Fellegi-Sunter probabilistic linkage is the accepted statistical model; Splink implements it with SQL backends. Sources: https://github.com/moj-analytical-services/splink and the interactive introduction (https://www.robinlinacre.com/intro_to_probabilistic_linkage).
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.
| # | Question | Recommended option | Source |
|---|---|---|---|
| 1 | Product / platform / lab? | All three; design so research is not sacrificed for product rigour | OSI Open Source Definition https://opensource.org/osd |
| 2 | Target persona? | Small team; multi-operator with separation of duties from the start | NIST SP 800-53 Rev. 5 (AC-5) https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final |
| 3 | Out of scope? | Nothing; manage scope by a graduation process, not exclusion | NIST CSF 2.0 https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf |
| 4 | Build / sell / open-source? | Open-core: open the core, sell support, hosting and inference | Open Source Initiative https://opensource.org/osd |
| 5 | Canonical track? | Talos Linux is canonical; Ubuntu is dev/legacy | Talos overview https://docs.siderolabs.com/talos/v1.14/overview/what-is-talos |
| 6 | kind vs Track C? | Promote Track C on a schedule; kind is transitional only | Talos https://www.talos.dev/ |
| 7 | Single VPS or fleet? | Fleet: nodes sharing data and services as a fabric | Cluster API https://cluster-api.sigs.k8s.io/ |
| 8 | Core + loadouts? | Define core plus a small set of named loadouts | Kustomize bases/overlays https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/ |
| 9 | Compose or K8s? | Kubernetes for the app tier; Compose is dev ergonomics only | Kubernetes overview https://kubernetes.io/docs/concepts/overview/ |
| 10 | "Can't drift" claims? | Enforce a single source of truth; never assert it | OpenGitOps https://opengitops.dev/ |
| 11 | Decorate generated files? | Decoration must be emitted by the generator | Helm best practices https://helm.sh/docs/chart_best_practices/ |
| 12 | Keep docs truthful? | Machine-verify or explicitly label unverified | SLSA provenance https://slsa.dev/spec/v1.0/provenance |
| 13 | Verification contract? | Every claim carries a re-runnable command and its output | SLSA https://slsa.dev/ |
| 14 | "Single self-sovereign server"? | Validate headroom before asserting the claim | AWS 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-have | NIST SP 800-207 https://csrc.nist.gov/pubs/sp/800/207/final |
| 16 | "100% Checkov compliance"? | Attach dated Checkov evidence or drop the claim | Checkov https://www.checkov.io/ |
| 17 | "99.9% uptime"? | Label as an unvalidated north star until measured | Google SRE SLOs https://sre.google/sre-book/service-level-objectives/ |
| 18 | Backup / DR? | Undefined is a stop condition; adopt RPO/RTO tiers and prove a restore | CISA #StopRansomware https://www.cisa.gov/stopransomware/ransomware-guide |
| 19 | Separation of duties? | Build RBAC, break-glass and dual-control provisions now | NIST SP 800-53 Rev. 5 (AC-5) https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final |
| 20 | Licensing review? | Clean-room rewrite inside the supply-chain pipeline | SPDX https://spdx.dev/learn/handling-license-info/ |
| 21 | Incident playbook? | Build it to the governance framework and rehearse it | NIST SP 800-61 Rev. 3 https://csrc.nist.gov/pubs/sp/800/61/r3/final |
| 22 | secure-file-server? | Treat as an incident with handling and a retrospective | CISA #StopRansomware (response checklist) https://www.cisa.gov/stopransomware/ransomware-guide |
| 23 | Bus factor = 1? | Pilot installs, onboarding material, living docs, interfaces, skills | Bus factor https://en.wikipedia.org/wiki/Bus_factor |
| 24 | Upgrade cadence / pinning? | Define roles and requirements, then build a pinning/upgrade agent | Renovate https://docs.renovatebot.com/ |
| 25 | Who answers alerts? | Tier by risk; approved plans proceed, high-risk routes to humans | NIST CSF 2.0 tiers https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf |
| 26 | Quartz or Markdoc? | Markdoc owns the site; retire Quartz | Markdoc https://markdoc.dev/ |
| 27 | Banner/grep over-count? | Canonicalise the decoration query; exclude tool and cache files | ripgrep https://github.com/BurntSushi/ripgrep |
| 28 | Runtime config location? | Declarative ConfigMaps/Secrets with a defined precedence | Kubernetes ConfigMap https://kubernetes.io/docs/concepts/configuration/configmap/ |
| 29 | require_mention not live? | Resolve via a human-run gateway lifecycle command | Telegram Bot API https://core.telegram.org/bots/api |
| 30 | A2A mesh? | Operationalise it: exercise a real round-trip, not just configuration | A2A protocol https://github.com/a2aproject/A2A |
| 31 | Agent blast radius? | Standard, but under the same governance envelope as a human operator | NIST AI RMF https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf |
Part 4 - Consolidated recommendations (priority order)
- 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.
- 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.
- Build the G0..G4 graduation pipeline and give every component a gate badge.
- Define loadouts (core / operator / regulated / defence-airgap / inference / dev) as Kustomize overlays plus Helm umbrella charts over a fixed core.
- Build the fleet fabric with SPIFFE/SPIRE identity, OpenBao + ESO + cert-manager secrets, Kyverno policy, and OpenTelemetry-based cluster-wide observability.
- 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.
- Classify registries authoritative vs derived and forbid hand-edits to derived artefacts.
- Do not adopt GraphAware Hume into the core; document it as an optional commercial integration.
- Adopt a layered, auditable entity-resolution policy with reversible merges and recorded match evidence.
References
- NIST SP 800-53 Rev. 5, Security and Privacy Controls - https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final
- NIST SP 800-53B, Control Baselines - https://csrc.nist.gov/pubs/sp/800/53/b/upd1/final
- NIST SP 800-53B announcement - https://csrc.nist.gov/news/2020/control-baselines-nist-publishes-sp-800-53b
- NIST SP 800-34 Rev. 1, Contingency Planning Guide - https://csrc.nist.gov/pubs/sp/800/34/r1/upd1/final
- NIST SP 800-61 Rev. 3, Incident Response - https://csrc.nist.gov/pubs/sp/800/61/r3/final
- NIST SP 800-207, Zero Trust Architecture - https://csrc.nist.gov/pubs/sp/800/207/final
- NIST CSF 2.0 (CSWP 29) - https://nvlpubs.nist.gov/nistpubs/CSWP/NIST.CSWP.29.pdf
- NIST CSF Tier glossary - https://csrc.nist.gov/glossary/term/csf_tier
- NIST AI RMF 1.0 (AI 100-1) - https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf
- ISO/IEC 27001:2022 - https://www.iso.org/standard/27001
- CIS Critical Security Controls v8 - https://www.cisecurity.org/controls/v8
- AICPA SOC 2 / Trust Services Criteria - https://www.aicpa-cima.com/topic/audit-assurance/audit-and-assurance-greater-than-soc-2
- FedRAMP program - https://www.fedramp.gov/ and NIST 800-53 controls - https://csrc.nist.gov/projects/risk-management/sp800-53-controls
- CISA #StopRansomware Guide - https://www.cisa.gov/stopransomware/ransomware-guide
- 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
- 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
- AvePoint immutable backups (SEC 17a-4 WORM) - https://www.avepoint.com/blog/backup/immutable-backup
- Eon DR testing - https://www.eon.io/blog/disaster-recovery-testing
- NinjaOne DR testing cadence - https://www.ninjaone.com/blog/how-to-build-a-disaster-recovery-testing-cadence
- Helm chart dependencies - https://helm.sh/docs/topics/charts/#chart-dependencies
- Helm best practices - https://helm.sh/docs/chart_best_practices/
- Kubernetes Kustomize - https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/
- NixOS Manual - https://nixos.org/manual/nixos/stable/
- Ansible Roles - https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_reuse_roles.html
- Kubernetes seccomp profiles - https://kubernetes.io/docs/reference/node/seccomp
- Rancher Fleet - https://fleet.rancher.io/
- SPIFFE Overview - https://spiffe.io/docs/latest/spiffe-about/overview/
- SPIFFE Federation - https://spiffe.io/docs/latest/spire-helm-charts-hardened-advanced/federation/
- OpenBao - https://openbao.org/
- External Secrets Operator - https://external-secrets.io/latest/
- cert-manager - https://cert-manager.io/docs/
- cert-manager Vault issuer - https://cert-manager.io/docs/configuration/vault/
- Kyverno - https://kyverno.io/docs/
- OpenTelemetry - https://opentelemetry.io/docs/
- OpenTelemetry Collector - https://opentelemetry.io/docs/collector/
- Falco - https://falco.org/
- Cluster API - https://cluster-api.sigs.k8s.io/
- Argo CD - https://argo-cd.readthedocs.io/en/stable/
- OpenGitOps - https://opengitops.dev/
- SLSA specification - https://slsa.dev/ and provenance https://slsa.dev/spec/v1.0/provenance
- Neo4j open-core licensing - https://neo4j.com/blog/news/open-core-licensing-model-neo4j-enterprise-edition
- Neo4j open-source licensing page - https://neo4j.com/open-source-project
- Neo4j legal terms - https://neo4j.com/licensing/
- Apache AGE - https://age.apache.org/
- Memgraph LICENSE (BSL 1.1) - https://github.com/memgraph/memgraph/blob/master/LICENSE
- JanusGraph - https://janusgraph.org/ and https://github.com/JanusGraph/janusgraph/blob/master/LICENSE.txt
- Papadakis et al., Survey of Blocking and Filtering - https://arxiv.org/abs/1905.06167
- Christophides et al., End-to-End ER for Big Data - https://dl.acm.org/doi/abs/10.1145/3418896
- Neo4j GDS Node Similarity - https://neo4j.com/docs/graph-data-science/current/algorithms/node-similarity/
- Neo4j GDS Filtered Node Similarity - https://neo4j.com/docs/graph-data-science/current/algorithms/filtered-node-similarity/
- Neo4j GDS entity resolution - https://neo4j.com/blog/graph-data-science/graph-data-science-use-cases-entity-resolution/
- Embedding-Assisted ER for Knowledge Graphs - https://ceur-ws.org/Vol-2873/paper8.pdf
- Splink probabilistic linkage - https://github.com/moj-analytical-services/splink
- GraphAware Hume - https://graphaware.com/hume
- Talos Linux - https://docs.siderolabs.com/talos/v1.14/overview/what-is-talos
- SPDX - https://spdx.dev/learn/handling-license-info/
- CycloneDX - https://cyclonedx.org/
- 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:
- PlantUML subdomain - deployed
plantuml/plantuml-server:jettyon the sharedcompose_prodg-internalnetwork, exposed atplantuml.mainframe.prodg.studio, generated one.pumlper docs section (10), rendered each to SVG intodocs/assets/diagrams/, and wired the SVGs into the docs build + home-page diagram table. - ASCII banners -
markdoc/tools/ascii-banners.pystamps a 5-row block-font banner carrying anASCII-BANNERmarker onto project scripts (idempotent). - Termius guide -
docs/guides/termius-mobile-ssh-guide.md, published in the Guides section. - 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)
| Claim | Result |
|---|---|
| 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)
- The conversation claims banners on 17 files / "16 already, 1 added". At report time that was true.
- Now false.
/opt/prodg/docs/prodg-mainframe-mcp-server.pycarries 0ASCII-BANNERmarkers and--checkreportswould insert after line 1. - Cause: the file is auto-generated - its header literally says
AUTO-GENERATED Mon Oct 5 11:28:03 PM CEST 2026 - DO NOT EDIT MANUALLY- and its mtime is 23:28, i.e. after the 22:43 banner run. The generator overwrote the banner. - Severity: medium. The tool stamps a file that is regenerated, so the banner is non-durable and the "17 files covered" claim silently rots. Fix: either regenerate banners as a post-generation build step, or drop auto-generated files from
TARGETS.
D2 - "Both generated from the same section list so they can't drift" is false (design)
generate-plantuml.pyheader (lines ~15-16) and the conversation both assert the two diagram generators share one section list so they "can't drift".- Not true.
generate-diagrams.pydefines its own section spec ("overview": {...}at line 139 etc.);generate-plantuml.pydefines an independent hard-codedDIAGRAMSdict. Both currently contain the same 10 slugs by coincidence of duplication, not by a shared source. Adding an 11th section to one will not propagate to the other. - Severity: medium (maintainability / correctness-of-claim). Fix: extract a single
sections.jsonconsumed by both, or have the PlantUML generator read the section list out of the FossFLOW generator's output (diagrams-index.json) rather than hard-coding.
D3 - Documentation has drifted from the live host (accuracy)
mainframe-brief-2026-10-04.mdstates "Host OS: Ubuntu 22.04 LTS"; the host is Ubuntu 24.04.5 LTS.BLUEPRINT.mdcorrectly says 24.04. Direct contradiction between two authoritative docs.- The same brief describes "2-node Talos Kubernetes cluster (Track C)" with nodes
192.168.100.207/.56; the live Kubernetes cluster isprodg-cluster-control-plane(kindest/node:v1.27.3) - a kind cluster, not the Talos one. The brief reads as aspirational, not current. - Severity: medium. The brief is presented as "Status: Production Ready [x] / Last Updated 2026-10-04". A stale brief labelled authoritative is worse than none.
D4 - generate-plantuml.py is outside the banner tool's target list (consistency)
- The conversation says "both generators" are covered. Only
generate-diagrams.pyis inascii-banners.pyTARGETS.generate-plantuml.pyhas a different, hand-written figlet-style banner with noASCII-BANNERmarker - so it is not greppable via the documentedgrep -l "ASCII-BANNER"and is not idempotently managed. - Severity: low. Cosmetic/inconsistency, but it contradicts the stated grep workflow.
D5 - Banner TARGETS includes a false-positive path (cosmetic)
ascii-banners.pyitself contains the literalMARKERstring, so it self-matches the documented grep, and its compiled.pycmatches too. Any audit by grep over-counts by 1-2 files. Minor, but it will skew future "N files covered" reports.
D6 - Docs "Current" table is stale: it lists two already-fixed 502s (accuracy)
docs/index.md(§Current, mtime 22:44) lists/hermes/-> 502 and/control/-> 502 as blocked with next actions to fix them.- Live check says both are already fixed:
https://mainframe.prodg.studio/control/-> 200;/hermes/-> 302 (redirect to/login?next=%2F, i.e. the dashboard is up and asking for auth - the correct behaviour)./docs/and/ai/-> 200. - So the primary agent's in-conversation claim that
/control/was fixed is correct, and the docs home page - updated in the same session - was left describing a problem that no longer exists. This is the same drift class as D3, on the page a reader would trust first. - Severity: medium (accuracy). Fix: regenerate the "Current" table from live probes, or mark it "as of
D6b - Genuinely still open: require_mention, Nexus poller (status fact)
telegram.require_mentionis set on disk but not live untilhermes gateway restartruns from outside the gateway process tree.- The Nexus host still polls
@NexusclerkBot, causing409 Conflict. - These remain real and correctly flagged; they are not touched by this work.
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)
file-server-autheliaandfile-server-redisareRestarting (1)(compose projectsecure-file-server,restarting(2)). Unrelated to the reviewed work but worth surfacing: a security component is not stable.
5. Verified vs read-only
- Verified by execution: container states, HTTP status/content-types, Caddy validation, banner
--check, syntax checks, SVG theme/content, file counts/mtimes, section-list duplication, host OS. - Read only (not executed): the Termius guide's mobile UX, the FossFLOW editor round-trip (
flow.../display/...links), the zero-trust/SPIFFE claims, the Talos Track C claims in the brief, backup/DR operation, ISMS document contents.
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:
- Line 334:
docker-compose -f /opt/prodg/compose/docker-compose.yml restart && hermes gateway restart- stale (docker-composev1, andhermes gateway restartcannot run inside the gateway process tree; the documented path issystemd-run --user). - Line 508:
docker-compose -f ... restart failing-service- same v1 issue. - The guide documents only the public IP path (
65.109.89.215), not the tailnet IP the user prefers. The primary agent's offer to fix these is warranted.
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)
- D1 - move banner stamping into the MCP-server generation step (or exclude auto-generated files); re-run
ascii-banners.py; re-verify--checkreports17 already. - D2 - extract one
sections.json; repoint both generators at it; delete the duplicated literal. - D3 - regenerate
mainframe-brief-2026-10-04.mdfrom live host state (OS, cluster type, node list) or mark itdraft: true. - D4/D5 - add
generate-plantuml.pytoTARGETSwith a compatible marker; exclude the tool itself and__pycache__from the grep audit. - D6 - regenerate the docs "Current" table from live probes (the two 502s are already fixed; the table is what's stale).
- D7 - investigate the
secure-file-serverrestart loop.
Components
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.
| # | Health | Strategy · Technology · Implementation · Assumption | Next 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.
| # | Severity | Finding | Status this pass |
|---|---|---|---|
| D1 | Med | Banner 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 |
| D2 | Med | "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 |
| D3 | Med | The 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 |
| D4 | Low | generate-plantuml.py outside banner TARGETS despite the "both generators" claim.tools/ascii-banners.py | [x] Fixed |
| D5 | Low | The banner audit grep self-matched the tool and its .pyc -> over-count.tools/ascii-banners.py | [x] Fixed |
| D6 | Med | The docs "Current" table was stale: it listed /hermes/ and /control/ as 502-blocked when both are live.docs/index.md §Current | [x] Fixed |
| D6b | Open | Genuinely still open: require_mention is not live; the Nexus bot fights 409 Conflict.docs/index.md §Current | [BLOCKED] Open |
| D7 | Incident | file-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 |
| D8 | Low | The 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.
| Seam | From -> To | Invariant |
|---|---|---|
| S1 | Host -> Docker | services bind loopback or the shared network, never 0.0.0.0 unless intended |
| S2 | Docker -> Caddy | Caddy is attached to every network whose services it fronts (the /control/, /hermes/ 502 class of bug) |
| S3 | Caddy -> host processes | unix-socket (socat) or the docker bridge gateway IP - never the host's tailnet IP from inside a container |
| S4 | Services -> secrets | loaded via one loader; never printed; .env on disk is a tracked, temporary exception |
| S5 | Sections -> diagrams | one sections.json feeds both generators (no duplicate literals) |
| S6 | Manifest -> everything | installer, 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)
- I1 - Loopback discipline: no service is publicly reachable unless it has an explicit Caddy block.
- I2 - Proxy reachability: every declared subdomain returns the expected status and content-type.
- I3 - Health: every core/standard container is
runningandhealthy. - I4 - Mesh: the control plane answers; ≥1 client can register.
- 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.
- I6 - Backup: the newest backup object is < 26 h old.
- I7 - Restore: a restore has been proven at least once (
restore_tested: true). - I8 - Docs truth: generated docs match host state (OS, cluster, node list, service set).
- I9 - Single source: generators share
sections.json; a divergence test exists and passes. - 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
| Profile | Services | Target |
|---|---|---|
| minimal | mesh + proxy + secrets + one app | a sovereign node in < 1 h |
| standard | + observability + AI operator + docs | the reference instance |
| full | + entire app suite + SOC framework | the ProDG instance today |
Profiles are additive subsets of the manifest - never separate install paths.
7. Anti-patterns (learned the hard way)
- Prose claims that aren't tested -> drift ("Ubuntu 22.04", "17 files", "can't drift"). Fix: every claim has a verify command.
- Duplicate config literals -> silent divergence. Fix: one source, a divergence test.
- Decorating generated files -> the decoration is wiped on next build. Fix: decorate during generation.
- Documenting a cluster you're not running -> the brief describes Talos while kind runs. Fix: docs generated from host.
- Assuming a container can reach a host tailnet IP -> 502s. Fix: bridge gateway IP or unix socket.
- Adding Caddy blocks without attaching networks -> 502s. Fix: seam S2 is checked by I2.
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
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.
- Done this pass: D1-D8 adjudicated; the two false claims retired; brief corrected; banner pass
made generative;
sections.jsonwritten;secure-file-serverincident contained. - Exit: no doc contradicts the host; no claim is asserted without a re-runnable check.
- Owner: operator + agent · Cost: ~1 day.
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.
- Exit: the docs build, both diagram generators, the installer and
doctorall read the manifest; adding a service requires editing exactly one file. - Cost: ~2 days.
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).
- Exit:
doctorruns green on this host and red on a deliberately broken one (prove it by breaking something). - Cost: ~1 week · Doubles as the answer to decision 16 (auditable proof for claims).
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.
- Exit: the installer reaches a green
doctoron a fresh host, from the repo alone. - Cost: ~1 week + 2 hand-fixes budgeted for unknowns · Implements decision 35 (core + loadouts).
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.
- Exit: green
doctorwithin two working days, zero questions to the original operator. - Cost: ~2 days.
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.
- Exit: every control in scope is mapped to either an automated check in
doctor, a documented procedure, or an explicit, recorded gap. No silent omissions. - Cost: ~1-2 weeks · Unlocks decisions 18, 21, 25, 31 and the governing objective.
Phase 6 - Close the dis-qualifying gaps
The four items that stop a regulated deployment cold, all now unblocked by Phase 5:
- Backup/DR - define RPO/RTO, then prove a restore (decision 34). A backup is not real until a restore is proven.
- Separation of duties - RBAC, break-glass, dual control; the single-operator development exception ends here (decision 19).
- Incident playbook + one tabletop rehearsal (decision 21). First retrospective: the
secure-file-serverincident (decision 22). - 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).
- Exit: a restore has been proven; an incident has been rehearsed; alerts have a named human path; the agent's envelope is written down and enforced.
- Cost: ~3-4 weeks.
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).
- Exit (promotion): the running platform is Talos/K8s; kind is labelled
lab; Compose is dev-only. - Exit (fleet): two nodes share identity, secrets distribution and observability under the Phase 5 control mapping - with the conformance suite proving it across nodes.
- Cost: ~1 week promotion, ~1 month fabric · Answers decision 36.
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.
- Exit: one external party runs the open core unaided, and a paid expression has a named first customer.
- Implements decisions 4, 20, 23.
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
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
- Strategy: one sovereign box. Fine for now; headroom unknown.
- Technology: Ubuntu 24.04.5, Docker + Compose v2. Solid, boring, correct.
- Implementation: 6 compose projects, 36 containers, loopback-bound services.
- Assumptions: "single server suffices." Unvalidated CPU/disk headroom.
- Next move: [PENDING] add disk/mem/load to the watchdog; publish a headroom line in the brief. (Validates open Q14.)
Component 2 - Networking & Mesh
- Strategy: tailnet-first, public only for what must be public.
- Technology: Headscale + Tailscale; Caddy automatic TLS.
- Implementation: Caddy subdomain blocks + path routing;
docs->redirect;flow/plantumllive. - Assumptions: "management-grade isn't public." Headscale and
t3codeare public by design - verify the surface. - Next move: [BLOCKED] document the effective public attack surface; enable
--accept-routeswhere subnet routes are needed (trackc-gw advertises but isn't honoured).
Component 3 - Container Platform
- Strategy: compose as the default runtime; K8s for the curious.
- Technology: Compose v2 + a kind cluster + a Talos prototype.
- Implementation: reorganised into per-directory compose files (good); registry locally.
- Assumptions: "compose scales." It does for one node.
- Next move: [PENDING] resolve the kind-vs-Talos-vs-compose ambiguity in the brief (D3).
Component 4 - Kubernetes Layer
- Strategy: Track C exploration.
- Technology: kind (live) + Talos (prototype) + talhelper + boot-to-talos.
- Implementation: Track C prototype validated per BLUEPRINT §10, but the running cluster is kind.
- Assumptions: "K8s is the future for additional nodes." Reasonable, unproven at this scale.
- Next move: [PENDING] decide canonical K8s track; label the others
lab(open Q5/Q6).
Component 5 - Security & Secrets
- Strategy: defence in depth; ISMS as evidence.
- Technology: OpenBao (Raft, KV v2, AppRole), Infisical, Vaultwarden, Passbolt, UFW, digest-pinned images.
- Implementation: 42 ISMS docs; loopback bindings; secret loading via
load-secrets.sh. - Assumptions: ".env on disk is acceptable interim" and Checkov compliance claimed.
- Next move: [BLOCKED] investigate the
secure-file-serverrestart loop (D7); [PENDING] attach evidence to the "100% Checkov" claim (open Q16).
Component 6 - Observability & SIEM
- Strategy: see everything, alert on it.
- Technology: Prometheus, Grafana, Loki, promtail, cAdvisor, node-exporter, Wazuh.
- Implementation: full stack running; Wazuh host agent active.
- Assumptions: "alerts reach a human." Escalation path unproven.
- Next move: [PENDING] add the log-bloat + headroom watchdogs; prove an alert reaches a human (open Q25).
Component 7 - AI Operator (Hermes)
- Strategy: one agent holds root; humans supervise via chat. The differentiator.
- Technology: Hermes gateway + dashboard, LiteLLM virtual keys/budgets, MCP (Context7), A2A.
- Implementation:
require_mentionset but not live; A2A configured, no live peers exercised. - Assumptions: "the agent is safe to hold root." Needs an explicit accepted-risk record.
- Next move: [BLOCKED]
hermes gateway restart(outside the process tree); [PENDING] A2A round-trip test against a real peer (open Q30).
Component 8 - Application / Productivity Suite
- Strategy: replace SaaS; own the data.
- Technology: Twenty, Cal.com, Mattermost, DocuSeal, Cryptgeon, Stirling-PDF, Passbolt.
- Implementation: all healthy and published via Caddy.
- Assumptions: "each app's licence permits this use." Unreviewed.
- Next move: [PENDING] licensing review before any productisation (open Q20).
Component 9 - Documentation & Knowledge Base
- Strategy: the docs are the product.
- Technology: Markdoc build, Quartz (paused), FossFLOW isometrics, PlantUML.
- Implementation: 10 diagrams per tool; home-page table; SVG dark theme; but dual hard-coded section lists (D2).
- Assumptions: "docs stay truthful." They already drifted (D3).
- Next move: [BLOCKED] extract
sections.json(D2); [PENDING] regenerate the brief or gate itdraft.
Component 10 - Tooling & Automation
- Strategy: every hard-won fix becomes a reusable tool/skill.
- Technology: Python/mjs generators, shell scripts, cron watchdogs,
ascii-banners.py. - Implementation: banner tool idempotent but stamps an auto-generated file that later wipes it (D1), and misses one generator (D4).
- Assumptions: "the tool's target list is stable." It isn't.
- Next move: [BLOCKED] move banner stamping into generation or exclude auto-generated files (D1); add the PlantUML generator (D4).
Component 11 - SOC / Supply-chain Security
- Strategy: vet and monitor every component.
- Technology: Checkov, OpenSSF Scorecard, fork mirrors, research agents.
- Implementation: 6 components classified; Scorecard 7.93 avg.
- Assumptions: "daily scanning keeps us safe." Good hygiene, no exploit rehearsal.
- Next move: [OK] maintain; add the restore/rehearsal to Component 12.
Component 12 - Backup, DR & Onboarding
- Strategy: survive loss; onboard a human.
- Technology: rclone -> B2 nightly; guides (Termius, VS Code, AI tools).
- Implementation: backups run; restore never proven; Termius guide has stale commands and omits the tailnet path.
- Assumptions: "a backup is a backup." Unproven.
- Next move: [BLOCKED] prove a restore; [PENDING] fix the Termius guide's stale commands and lead with the tailnet path.
The recursive loop, applied
Each [BLOCKED] move is small, verifiable, and leaves a written lesson:
| # | Move | Verify command | Capture |
|---|---|---|---|
| 1 | Stamp banners during generation | python3 tools/ascii-banners.py --check -> 17 | patch MCP generator |
| 2 | Extract sections.json | regenerate both diagram sets; diff = 0 | new mainframe-diagrams skill |
| 3 | Regenerate the brief from host | grep OS/cluster in brief == host | doc-truth CI check |
| 4 | Prove a restore | restore into a scratch volume; compare | mainframe-dr skill |
| 5 | Close the 502s | curl -o /dev/null -w '%{http_code}' -> 200 | Caddy network note |
After every pass, re-run the decomposition: what new false claim did this create? That question is the recursion.
Decisions
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:
| Was | Now |
|---|---|
| "A self-hosted SaaS alternative for solo technical owners" | A high-assurance platform for regulated, adversarial environments |
| Optimise for cheap and just-works | Optimise for provable, auditable, governable |
| "Productise the instance" | Productise the pattern - open-source the core, sell premium |
| Security = defence in depth, best effort | Security = evidenced control, with governance provisions |
| Assumption validation is hygiene | Assumption 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
| # | Question | Decision | Consequence |
|---|---|---|---|
| 1 | Product / platform / lab? | All three - research project that evolved | Design for productisation without blocking research |
| 2 | Target persona? | Small team | Multi-operator, separation of duties becomes a requirement, not a nicety |
| 3 | Out of scope? | Nothing - once it graduates a process that assigns responsibility | A graduation gate must exist; scope is managed by process, not by exclusion |
| 4 | Build / sell / open-source? | Build, open-source the core, sell premium (support, hosting, inference) | Open-core business model; core must be genuinely usable alone |
| 5 | Canonical track? | Talos | Ubuntu becomes dev/legacy; kind is transitional only |
| 6 | Why kind, not Track C? | Pending promotion | Track C promotion is a scheduled workstream, not an open question |
| 7 | VPS vs fleet? | Fleet - nodes securely sharing data and services, evolving over time | Single-VPS assumptions throughout the pack are now wrong; needs a fabric model |
| 8 | Too many services? | None - research and define core + loadouts | Service tiering becomes a defined artefact, not a judgement call |
| 9 | Compose vs K8s for apps? | K8s | Compose is dev-time ergonomics; K8s is the deployment target |
| 10 | Stop "can't drift" claims? | D2 - enforce it, don't assert it | Already fixed in this pass; the pattern is now a rule |
| 11 | Decorate auto-generated files? | D1 - decoration must be part of generation | Already fixed; manual passes over generated files are forbidden |
| 12 | Keep docs truthful? | D3 - machine-verified or explicitly labelled unverified | Needs a doc-verification check, not discipline |
| 13 | Verification contract for agent work? | Research and present options | Open workstream: define what an agent must prove before claiming done |
| 14 | "Single self-sovereign server" | Agreed - but validation must exist before asserting the claim | Claims gain a validation precondition |
| 15 | "Nothing management-grade is public" | Assume addressed by the zero-trust hardening phase | Zero-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 proof | Evidence generation becomes a first-class deliverable |
| 17 | "99.9%+ uptime" | North star, unvalidated | Must be labelled an aspiration until measured |
| 18 | Backup / DR | Not sure | Open - and disqualifying for regulated environments until resolved |
| 19 | Separation of duties | Dev-time exception (single operator); provisions must be built | RBAC + break-glass + dual control required before any regulated deployment |
| 20 | Licensing review | Clean-room rewrite inside the supply-chain pipeline | Clones the SOC framework into a licensing control; strong for defence |
| 21 | Breach / incident playbook | Must be built to the governance framework | Depends on choosing a framework (see below) |
| 22 | secure-file-server crash-looping | Incident | Reclassified from "observed defect" to incident; requires handling + a playbook |
| 23 | Bus factor = 1 | Pilot installs, onboarding material, living docs, interfaces (TUI/MCP), skills | Knowledge externalisation is the mitigation; pilot on founding companies |
| 24 | Upgrade cadence / pinning | None at present - define roles and requirements, then build an agent | An agent owns patching; the policy is its spec |
| 25 | Who answers alerts? | Tiered by risk - approved plans proceed; high-risk and regulated differ | Needs an alert-tier model tied to the governance framework |
| 26 | Quartz vs Markdoc? | Markdoc | Quartz is retired; the paused cron need not return |
| 27 | Banner/grep over-count | D5 | Already fixed |
| 28 | Runtime config location | Resolve per best practice | Open workstream: define the config precedence and location policy |
| 29 | require_mention not live | Add as an item to be resolved | Recorded in Current; needs a human-run gateway lifecycle command |
| 30 | A2A mesh | Unsure - investigate and operationalise | Open workstream: assess current state, then make it real |
| 31 | Agent blast radius | Standard - must adhere to governance principles | The agent operates under the same governance envelope as a human operator |
| 37 | Is v0.1 cleared for use? | Yes - approved 2026-10-08 for internal deploy, test and pilot | The registry and tooling at v0.1 are cleared for internal use; external/regulated use still waits on the graduation gate (33) |
| 38 | Rewrite track | Keep a rewrite-track entry for each of the adoption registry and the interfaces | Every 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
- 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.
- 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.
- 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
| Item | Why 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:
- ISO/IEC 27001 + 27017/27018 - the international baseline; broadly accepted by banks.
- NIST CSF 2.0 + NIST 800-53 / 800-171 - the US federal and defence lineage; strong mapping to technical controls.
- SOC 2 Type II - the SaaS-vendor expectation; weak for government/defence.
- IEC 62443 - if any operational-technology or critical-infrastructure angle emerges.
- Common Criteria / FIPS 140-3 - for cryptographic module claims in defence contexts.
- EU NIS2 / DORA - if European regulated financial entities are in the target set.
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:
- 24 - an agent owning upgrade cadence and pinning.
- 25 - an alert-tier model where approved plans proceed automatically and high-risk items route to humans.
- 13 / 30 - research-and-present-options workstreams.
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 question | Blocks |
|---|---|---|
| 32 | Which governance framework is the audit target? | 18, 21, 25, 31 and the governing objective |
| 33 | What is the graduation process - research -> governed operation? | Answer 3 (no scope fence) |
| 34 | What is the backup/DR target (RPO/RTO) and has a restore been proven? | Regulated deployment |
| 35 | What does "loadout" mean concretely, and which are supported? | Answer 8 |
| 36 | What 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:
- adopt_and_run (the default) - run the upstream artefact; licence is rule 1 and disqualifies.
- study_and_rewrite - examine it for its requirements and its implementation, then reimplement
it clean-room first-party. Here licence is provenance, not a gate, and the entry must declare
two things:
spec_to_mine(what to reimplement from - the public standard, the observed behaviour, the written requirements) andclean_room(the boundary that keeps the rewrite free of the upstream licence). A port inherits the licence; a clean-room reimplementation of functionality does not - that boundary is what makes the track legal, so both fields are conformance-enforced (rewrite_target_without_spec,rewrite_target_without_clean_room,interface_without_track,rewrite_interface_without_spec).
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
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
| Source | Contribution | What it means here |
|---|---|---|
| Fowler, P of EAA - Registry | A well-known object others use to find common objects and services | The entry point: stable keys, lookup decoupled from creation |
| Registry Architecture / Registry Information Model | A registry is described by metadata - the structures and relationships it can hold - not by a fixed schema | The 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 reference | One writer per registry, declared as data |
| Metadata-driven architecture | Behaviour is generated from externalised metadata and policy, not hard-coded | Configs and docs become generated artefacts |
| Attribute registry / enterprise data elements | A structured catalogue of the attributes describing key business data | The per-registry required property list |
| Data catalog / lineage practice | Metadata managed as a first-class asset; lineage as a graph | Neo4j'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:
- blast radius (transitive dependency closure)
- provenance chains (which decision -> which strategy -> which governing objective)
- coverage gaps (which controls are evidenced, which strategies have no method serving them)
- entity resolution (two registry entries that are the same real thing)
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:
| Fact | Detail |
|---|---|
| The GraphAware Framework is retired | Announced 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 APOC | GraphAware 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 product | A 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 GraphAware | Announced 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:
- Neo4j 5 + APOC - the framework's successor for utility procedures. This is what the prototype uses.
- 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:
| repository | what it is | last activity |
|---|---|---|
neo4j-config-cli | declares a Neo4j database's desired configuration state from a JSON definition, Apache-2.0 | September 2025 |
hume-helm-charts | Helm charts for deploying GraphAware Hume on Kubernetes | September 2026 |
hume-quickstart | local Docker playground for Hume training, Cypher | September 2026 |
cypher-tools | microservice exposing Cypher utilities, Apache-2.0 | August 2024 |
hume-starters, hume-configuration-as-code-example | Hume onboarding material | 2022 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:
| Capability | Community (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):
| Option | Why it is credible here |
|---|---|
| Apache AGE on PostgreSQL | Postgres 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. |
| Memgraph | In-memory, Cypher-compatible, open core. |
| JanusGraph | Apache-licensed, pluggable storage and external auth; heavier operationally. |
This is recorded as decision 37 (see §7).
2. The registry model
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).
| Registry | Holds | Required | Primary consumers |
|---|---|---|---|
| inference | models, providers, routing | name, provider, modality, status | agent, docs, litellm |
| datasource | every store read/written | name, engine, class, residency | backup, doctor, ISMS |
| technology | software run, version, licence, pin | name, version, licence | doctor, supply-chain, ISMS |
| partner | vendors, customers, pilot companies, authorities | name, relationship, status | CRM, legal |
| project | tracked workstreams | name, stage | docs, roadmap |
| entity | resolved real-world entities | name, entity_type | graph, CRM |
| reference | standards, papers, advisories, licences cited | name, ref_type | docs, ISMS |
| methodology | how the platform does things | name, stage | docs, agent |
| strategy | declared intent | name, horizon | pack, roadmap, governance |
| node | machines and cluster members | name, role, reachable | doctor, mesh, k8s |
| service | container, port, subdomain, healthcheck | name, state, exposure | doctor, Caddy, monitoring |
| decision | binding decisions + consequence | name, decided_by, status | pack, governance |
| interface | every surface a human or agent reaches the platform through | name, url | docs, Caddy, onboarding |
| agent | every agent that can act, with its role, runtime and skills | name, role | governance, Control Room, blast radius |
| loadout | named, versioned bundles of services provisioned as one unit | name, version | fleet, provisioning, roadmap |
| device | capability-scoped endpoints, identified by tailnet identity | name, device_type | mesh, 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:
| Check | Catches |
|---|---|
unregistered_entry | a thing that exists but is in no registry |
missing_provenance | a fact with no declared source |
missing_required_property | a registry entry missing a property its own registry demands |
unauthorised_writer | a registry written by an authority other than the one declared |
dangling_relation | an edge pointing at something never registered |
unregistered_technology | a running service whose technology is unmanaged supply chain |
high_blast_radius | entries with ≥3 dependents - the concentration-risk view |
strategy_without_method | declared intent that no methodology serves |
service_without_loadout | a registered service in no loadout |
loadout_without_core | a loadout that does not transitively require core |
mandatory_loadout_count | not exactly one mandatory loadout |
agent_without_interface | an agent nothing can reach |
agent_skill_unregistered | an agent declaring skills that do not exist |
interface_without_backing_service | an interface with no matching service |
device_without_capabilities | an unscoped device endpoint |
agent_without_runtime | an 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:
| Registry | Entries |
|---|---|
| service | 34 |
| technology | 33 |
| datasource | 11 |
| node | 10 |
| decision | 5 |
| reference | 5 |
| project | 4 |
| inference | 3 |
| strategy | 3 |
| methodology | 2 |
| TOTAL | 110 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:
- Idempotent -
MERGE-only, so re-running converges rather than duplicating. - Everything is
source: 'host-index'unless hand-written, so the doctor can separate observed facts from asserted ones. That distinction is the whole evidence-discipline argument, encoded. - The indexer is not the authority. It is a collector. Where a registry has a real owner (partner, entity, decision), entries are hand-registered with a declared source.
Artefacts: neo4j/schema.cypher, neo4j/seed.cypher (generated, 45 KB), neo4j/doctor.cypher.
4. What this changes about engineering practice
- Inventories stop being documents. The service/technology/node inventories become queries.
- 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.
- The agent gets a map instead of a search. "What depends on Redis?" is a one-hop query, not a grep across compose files.
- Onboarding gains a spine. A new operator reads twelve registries rather than inferring the
platform from
docker psand tribal memory. - Governance becomes queryable.
strategy_without_methodis the difference between having a governing objective and being governed by it.
5. Risks
- Two sources of truth, again. If the graph is read-only and the compose files remain the real source, drift simply relocates. Mitigation: generate configs from the graph before making the graph authoritative - otherwise this repeats the exact failure the review found.
- Community Neo4j cannot enforce what the design assumes. Write-authority is currently convention plus a doctor query, not a database control. For a regulated target that is not sufficient (§1.4).
- Indexer breadth ≠ truth. The indexer sees what the host exposes. A service not running, or a
relationship not derivable, is invisible - which is exactly when a
missing_provenancefinding should fire. - Graph sprawl. Twelve registries invite a thirteenth. The registry-of-registries should keep growth deliberate and each addition should name the consumer that needs it.
6. Deployment state
| Step | State |
|---|---|
| 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
| # | Question | Blocks |
|---|---|---|
| 37 | Neo4j 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 |
| 38 | Which registries are authoritative vs derived? Generating configs from the graph is the point - but it is a migration. | The drift risk in §5 |
| 39 | Is 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 |
| 40 | What 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)
- The GraphAware Framework was retired in May 2021; the associated GitHub repositories
were archived and the code is GPLv3, targeting the Neo4j 3.x era.
- Retire notice: https://github.com/graphaware/graph-aided-search (README)
- Announcement: https://graphaware.com/framework/2021/05/06/from-graphaware-framework-to-graphaware-hume.html
- GraphAware Hume is the current commercial, government-grade intelligence analysis product.
- Neo4j acquired GraphAware on 5 August 2026.
- Neo4j Community Edition is GPLv3 and excludes RBAC, sub-graph access control, online backup and clustering, which are Enterprise-only features.
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:
- Public repositories: 98 (matches the brief).
- Of those 98, 25 are flagged archived by GitHub.
- Organisation display name: GraphAware.
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.
| Repository | What it does | License | Last commit | Status | Usable without a Hume licence? |
|---|---|---|---|---|---|
| neo4j-config-cli | Neo4j 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.3 | Apache-2.0 | 2025-09-17 | Active, maintained, not archived | Yes |
| 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.0 | 2024-08-28 | Not archived, but dormant (no commits for ~2 years); self-described "experimental" | Yes |
| hume-helm-charts | Official 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 key | No license file detected (all rights reserved) | 2026-09-24 | Active, maintained, not archived | No |
| hume-quickstart | Local Docker Compose playground running Hume with Neo4j (Enterprise) and Keycloak, for training/evaluation | Proprietary - "Copyright (c) 2026 GraphAware Limited. All rights reserved." | 2026-09-17 | Active, maintained, not archived (created 2026-06-18) | No |
| hume-starters | Docker Compose demo bundle deploying Hume Orchestra (docker.graphaware.com/public/hume-orchestra) plus Neo4j 4.2.5 Enterprise; no README present | No license file (all rights reserved) | 2021-07-15 | Dormant, not archived | No |
| hume-configuration-as-code-example | Example Hume Movies knowledge graph configured from YAML (roles, users, GraphQL API key, actions) | No license file (all rights reserved) | 2022-03-16 | Dormant, not archived | No |
| hume-iframe-example | Example Docker setup for iframing Hume inside a React parent app, with Keycloak SSO | No license file (all rights reserved) | 2021-10-18 (branch push recorded 2024-11-18) | Dormant, not archived | No |
| graph-aided-search | Elasticsearch plugin offering Neo4j integration for personalized search (bi-directional Neo4j/Elasticsearch integration) | GPLv3 (gpl.txt) | 2021-05-05 | Archived / retired (explicit "RETIRED" notice, May 2021) | Yes in licence terms, but unusable (archived, Neo4j 3.x era) |
Key evidence URLs:
- https://github.com/graphaware/neo4j-config-cli
- https://github.com/graphaware/cypher-tools
- https://github.com/graphaware/hume-helm-charts
- https://github.com/graphaware/hume-quickstart
- https://github.com/graphaware/hume-starters
- https://github.com/graphaware/hume-configuration-as-code-example
- https://github.com/graphaware/hume-iframe-example
- https://github.com/graphaware/graph-aided-search
Caveats on the "usable" columns
- hume-helm-charts: the README states Neo4j is not included and must be provisioned
separately; the chart branch is at
3.3.0-devwhile the latest released version is3.2.0. Both the image registry (docker.graphaware.com) and a licence key are prerequisites. - hume-quickstart: the README states "A valid Hume licence key" is a prerequisite and the
Docker images come from
docker.graphaware.com. It explicitly notes it is a "run-and-destroy environment". - hume-starters contains a committed
.envfile (GET .../contents/root listing) and pullshume-orchestrafromdocker.graphaware.com. Treat its embedded defaults as untrusted/example-only. No README is present onmaster(README fetch returns 404). - neo4j-config-cli itself is Apache-2.0 and licence-free, but the features it drives on the
target server (multiple databases, users/roles/RBAC) are largely Neo4j Enterprise-only. Its
own README example runs against
neo4j:5.14.0-enterprise. On Community Edition its usable surface is much smaller. - cypher-tools has only a single commit visible and a
1.0.0Docker tag; it is an experiment, not a supported product.
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.
| Repository | What it did | Archived | Last commit | Notes |
|---|---|---|---|---|
| neo4j-framework | GraphAware Neo4j Framework (base runtime modules) | Yes | 2021-05-05 | 250 stars; GPLv3 |
| neo4j-uuid | Runtime module assigning a UUID to every node/relationship | Yes | 2021-05-05 | 106 stars |
| neo4j-timetree | Java and REST APIs for time-representing trees in Neo4j | Yes | 2021-05-05 | 210 stars |
| neo4j-triggers | "Neo4j Triggers on Steroids" | Yes | 2021-05-05 | 8 stars |
| neo4j-nlp | NLP capabilities in Neo4j (OpenNLP/Stanford NLP) | Yes | 2021-05-05 | 344 stars; homepage now points at hume.graphaware.com |
| neo4j-reco | Recommendation engine module (real-time and pre-computed) | Yes | 2021-05-05 | 387 stars |
| neo4j-to-elasticsearch | Framework module integrating Neo4j with Elasticsearch | Yes | 2021-05-05 | 266 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):
- https://github.com/graphaware/neo4j-framework
- https://github.com/graphaware/neo4j-uuid
- https://github.com/graphaware/neo4j-timetree
- https://github.com/graphaware/neo4j-triggers
- https://github.com/graphaware/neo4j-nlp
- https://github.com/graphaware/neo4j-reco
- https://github.com/graphaware/neo4j-to-elasticsearch
Ranked recommendation
Ranking is for a self-hosted, regulated, Neo4j 5 based knowledge-graph platform with no assumed commercial Hume licence.
Adopt
-
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.
-
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)
- 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)
- 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
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
| layer | is | lives in |
|---|---|---|
| Primitive | the vocabulary. An atomic, parameterised action. | registries/primitives.yaml |
| Phase | the grammar. A fixed phase vocabulary that orders work. | declared in the primitive registry metadata |
| Playbook | the 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:
| intent | primitives | character |
|---|---|---|
| observe | collect-state, query-registry, read-logs, snapshot, hash-artefact | read-only, never gated |
| assess | classify-severity, scope-impact, check-conformance | read-only, never gated |
| decide | gate-approval, declare-incident, assign-role | the human control points |
| act | isolate, contain, stop-service, start-service, rotate-secret, revoke-credential, restore-backup, failover, rebuild, apply-loadout | the mutating set, mostly gated |
| communicate | notify, page-oncall, update-status | outward-facing |
| record | record-evidence, open-ticket, log-decision, update-registry | the audit trail |
| verify | verify-health, verify-restore, verify-absence, re-run-evidence | the proof set |
| learn | postmortem, close-incident, promote-control | the loop closing |
Thirty-five primitives in total.
The property that makes governance inherit
Every primitive declares four governance properties:
| property | meaning |
|---|---|
risk | low, medium, high or critical |
approval | none, tier-dependent or required |
reversible | whether the action can be undone |
evidence | the 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:
| playbook | class | what it is for |
|---|---|---|
| incident-response | incident | the generic lifecycle; every specific incident is this shape with different bindings |
| credential-compromise | incident | a secret is believed exposed; assumes use, not just exposure |
| data-loss-restore | recovery | data lost or corrupt; prove the restore before declaring recovery |
| node-failure | recovery | a node is unreachable; repair in place or rebuild from declarative source |
| agent-misbehaviour | incident | containing the operator that usually does the containing |
| certificate-expiry | change | the cheapest incident is the one a check prevented |
| supply-chain-compromise | incident | an upstream image is compromised; clean-room rewrite is the remediation |
| restore-drill | rehearsal | the rehearsal that makes the recovery playbooks credible |
| node-onboarding | change | bringing 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.
- Closed world. Every step names a primitive that exists. Verified: zero steps reference an undeclared verb. The doctor check
playbook_step_unknown_primitiveenforces it, so an invented procedure is a finding, not a style question. - Governance is inherited, not restated.
playbook_without_approval_gatefails any incident-class playbook that never passes through a human decision.playbook_without_evidencefails any incident playbook that produces no verification or record step. - 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
- Declare a playbook in
registries/playbooks.yamlwith an identity, a class and a phase subset. - Write steps that bind declared primitives to parameters.
- Run the collector, then the doctor. A step using an undeclared verb fails immediately.
- 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
- Registry-driven. Playbooks and primitives are registries, joined into the same graph as services, nodes and agents. A playbook step resolving to a primitive is the same closed-world pattern as a service resolving to a technology.
- Evidence discipline. Each primitive declares the artefact it produces, so a response leaves an evidence trail by construction rather than by diligence.
- The recursive loop.
promote-controlis the primitive that turns a lesson into a permanent check. That is the improvement loop closing in the vocabulary itself. - Agent blast radius.
agent-misbehaviourexists because the operator holds root. It is the playbook for the case where the agent is the problem, which is why its approval gate is deliberately placed first.
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 framework | NIST 800-61 | SANS PICERL |
|---|---|---|
| prepare | Preparation | Preparation |
| detect | Detection and Analysis | Identification |
| assess | Detection and Analysis | Identification |
| contain | Containment, Eradication and Recovery | Containment |
| resolve | Containment, Eradication and Recovery | Eradication |
| recover | Containment, Eradication and Recovery | Recovery |
| verify | (implicit) | (implicit) |
| communicate | (implicit) | (implicit) |
| learn | Post-Incident Activity | Lessons 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
| question | blocks |
|---|---|
| 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:
- Preparation
- Detection and Analysis
- Containment, Eradication, and Recovery
- 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:
- Policy - the authority: what must be done, by whom, and under what delegation.
- Plan - the approach: how the capability is organised and resourced.
- Procedure - the execution: the step-by-step actions taken during handling.
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:
- Preparation
- Identification
- Containment
- Eradication
- Recovery
- 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. 2 | SANS PICERL | Primitive focus |
|---|---|---|
| Preparation | Preparation | observe, authorize, snapshot, record |
| Detection and Analysis | Identification | observe, assess, declare |
| Containment, Eradication, Recovery | Containment | isolate, revoke, block, snapshot |
| (same phase) | Eradication | eradicate, patch, rotate |
| (same phase) | Recovery | restore, rebuild, failover |
| Post-Incident Activity | Lessons Learned | verify, 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:
- A runbook is a low-level, tactical, task-scoped procedure: the precise, tested, often automatable steps for one bounded operation.
- A playbook is a higher-level strategic document: it coordinates roles, decision points, escalation paths, and which runbook applies in which circumstance.
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:
| Tier | XSOAR | Splunk SOAR | Tines | Shuffle | StackStorm |
|---|---|---|---|---|---|
| Primitive | task (action) | action | action | app operation | action |
| Orchestration | playbook | playbook | story | workflow | workflow |
| Distribution | content pack | app / content pack | story pack | app pack | pack |
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:
- Isolate: Network Isolation, Broadcast Domain Isolation, Execution Isolation, Network Traffic Filtering, DNS Denylisting.
- Evict: Credential Eviction, Credential Revocation, Account Locking, Process Termination, Host Shutdown, Host Reboot, Session Termination, File Eviction, Disk Erasure.
- Restore: Restore Disk Image, Restore Configuration, Restore Database, Reissue Credential, Restore Network Access, Unlock Account, Restore File.
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:
| Control | Title | Requirement in primitive terms |
|---|---|---|
| A.5.24 | Information security incident management planning and preparation | establish and maintain process, roles, escalation, training |
| A.5.25 | Assessment and decision on information security events | triage rules; distinguish event from incident |
| A.5.26 | Response to information security incidents | take action to prevent recurrence, mitigate, inform parties |
| A.5.27 | Learning from information security incidents | post-incident improvement |
| A.5.28 | Collection of evidence | forensic collection and chain of custody |
| A.5.29 | Information security during disruption | continuity during response |
| A.5.30 | ICT readiness for business continuity | recovery 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:
- IR (Incident Response) - the core family driving this work.
- AU (Audit and Accountability) - the record primitive.
- CP (Contingency Planning) - restore, rebuild, failover.
- RA (Risk Assessment) - assess, triage.
- SI (System and Information Integrity) - patch, eradicate, verify.
- AC (Access Control) - revoke, isolate, disable.
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:
- Typed inputs and outputs. XSOAR tasks consume typed inputs and emit outputs stored in the incident context, which downstream tasks reference. Source: https://xsoar.pan.dev/docs/playbooks/playbooks-overview
- Parameterised actions. Splunk SOAR actions take named parameters supplied by the app; for
example the Okta app exposes actions such as
set passwordandenable user. Source: https://help.splunk.com/en/splunk-soar/soar-cloud/build-playbooks - Reusable blocks with metadata. StackStorm actions are "either Python plugins, or any scripts, consumed into StackStorm by adding a few lines of metadata", and can be invoked directly or as part of rules and workflows. Source: https://stackstorm.com/features
- JSON-serialised workflows. Shuffle workflows are JSON, which makes them diffable and reviewable. Source: https://medium.com/shuffle-automation/getting-started-with-shuffle-an-open-source-soar-platform-part-2-1d7c67a64244
- Rollback and idempotency as design safety. StackStorm guidance explicitly advises "Ensure idempotency: Actions should be safe to rerun and include clear rollback procedures" and "Design for safety: Implement dry-run modes, approval gates, throttles, and circuit breakers". Source: https://www.cloudthat.com/resources/blog/stackstorm-and-event-driven-automation-in-modern-it-operations
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:
- Small and closed. Every verb is a single, named effect on a typed target, mirroring the SOAR action model (Section 4.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).
- Traceable to published vocabularies. Verbs align with D3FEND techniques (Section 5) and map to SP 800-53 control families (Section 6.3).
- 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.
| Verb | Function | Semantics | Typed inputs | Typed output | Idempotent | Authority |
|---|---|---|---|---|---|---|
| observe | Detect | read telemetry for a subject over a window | subject: Asset/Identity/Indicator; source: TelemetryChannel; window: TimeRange | Signal | yes | autonomous |
| assess | Triage | classify severity, scope and confidence against a rubric | signal: Signal; rubric: SeverityPolicy | Verdict(severity, scope, confidence) | yes | autonomous |
| declare | Triage | open an incident record and assign an owner | signal: Signal; severity: Level; owner: Role | Incident | no | operator |
| isolate | Contain | sever network or execution adjacency | target: Asset; scope: Host/Segment/Service; mode: Hard/Soft | IsolationHandle | yes | operator |
| revoke | Contain | invalidate a credential, session or token | subject: Credential/Session/Token; reason: String | RevocationRecord | yes | operator |
| block | Contain | deny an indicator at a boundary | indicator: Indicator; boundary: Firewall/DNS/Email/App | RuleRef | yes | operator |
| snapshot | Contain | capture forensic, configuration or state image | target: Asset; mode: Forensic/Config/State | EvidenceArtifact | yes (deduped) | operator |
| eradicate | Eradicate | remove an artefact or persistence mechanism | target: Artifact; method: Method | EradicationRecord | yes | senior |
| patch | Eradicate | apply a configuration or vulnerability fix | target: Asset; control: ControlRef | PatchRecord | yes | senior |
| rotate | Eradicate | replace secret material with new material | secret: SecretRef; scope: Scope | SecretRef | no | dual-control |
| restore | Recover | reinstate state from a known-good source | target: Asset; source: BackupRef; at: PointInTime | RestoreReceipt | yes | operator |
| rebuild | Recover | reprovision a target from a golden image | target: Asset; image: ImageRef | Asset | no | operator |
| failover | Recover | shift service to a standby peer | service: Service; peer: NodeRef; mode: Mode | ServiceState | yes | operator |
| notify | Govern | inform or escalate to an audience | audience: Party; channel: Channel; template: MessageTemplate; urgency: Level | NotificationReceipt | yes (deduped) | operator |
| authorize | Govern | gate a primitive call behind approval | action: PrimitiveCall; authority: Role; policy: ControlRef | Approval | n/a | approver |
| record | Govern | append evidence to the audit ledger | evidence: EvidenceArtifact; ledger: Log; digest: Hash | CustodyEntry | no (append-only) | system |
| verify | Verify | test an assertion about a desired state | assertion: Assertion; method: Test | Verdict | yes | operator |
| close | Close | close the incident against completion criteria | incident: Incident; criteria: CompletionPolicy | ClosureRecord | no | senior |
Notes on the set:
- Governance verbs (notify, authorize, record, verify) are cross-cutting: they apply in every phase and are the mechanism by which a run emits SOC 2 and ISO 27001 evidence.
- Idempotency classes are the safety property StackStorm prescribes (Section 7) and are what make a primitive safe to retry during an automated run.
- Authority classes encode the delegation of power that SP 800-61r2 places in the policy layer (Section 2.2) and that ISO 27001 A.5.24 requires to be assigned (Section 6.2).
- rotate is deliberately non-idempotent and dual-control, because credential rotation is the classic irreversible, high-blast-radius operation.
- Verbs align to D3FEND: isolate and block map to D3FEND Isolate; eradicate, revoke and patch map to Evict; restore and rebuild map to Restore (Section 5).
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.
- Prepare - establish authority, tooling, and pre-staged primitives (snapshot, authorize, record).
- Detect - observe telemetry and surface signals (observe).
- Triage - assess and declare, distinguishing events from incidents (assess, declare).
- Contain - limit blast radius (isolate, revoke, block, snapshot).
- Eradicate - remove the cause and remove persistence (eradicate, patch, rotate).
- Recover - return to service from a known-good state (restore, rebuild, failover).
- Verify - prove the desired state holds and control effectiveness is evidenced (verify, observe).
- 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.
| Phase | NIST Rev. 2 | SANS PICERL | Primary verbs |
|---|---|---|---|
| Prepare | Preparation | Preparation | snapshot, authorize, record |
| Detect | Detection and Analysis | Identification | observe |
| Triage | Detection and Analysis | Identification | assess, declare |
| Contain | Containment/Eradication/Recovery | Containment | isolate, revoke, block, snapshot |
| Eradicate | Containment/Eradication/Recovery | Eradication | eradicate, patch, rotate |
| Recover | Containment/Eradication/Recovery | Recovery | restore, rebuild, failover |
| Verify | Post-Incident Activity | Lessons Learned | verify, observe |
| Close and Learn | Post-Incident Activity | Lessons Learned | close, record |
9.4 Why one primitive set serves many scenarios
The decomposition works because it separates mechanism from policy and makes every mechanism composable:
-
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).
-
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).
-
Idempotency and authority classes make the same verb safe across risk tiers. The same
restoreverb 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. -
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.
-
Evidence is a property of the verb, not the scenario. Because
recordis 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. -
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
- NIST SP 800-61r2, Computer Security Incident Handling Guide (CSRC) - https://csrc.nist.gov/pubs/sp/800/61/r2/final
- NIST SP 800-61r2, full text PDF - https://nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-61r2.pdf
- NIST SP 800-61r3, Incident Response Recommendations (CSF 2.0 Community Profile) - https://csrc.nist.gov/pubs/sp/800/61/r3/final
- CISA, Federal Government Cybersecurity Incident and Vulnerability Response Playbooks - https://www.cisa.gov/resources-tools/resources/federal-government-cybersecurity-incident-and-vulnerability-response-playbooks
- CISA news release on the playbooks - https://www.cisa.gov/news-events/news/cisa-releases-incident-and-vulnerability-response-playbooks-strengthen-cybersecurity-federal
- 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
- SANS, Incident Response glossary entry - https://www.sans.org/security-resources/glossary-of-terms/incident-response
- Insane Cyber, NIST vs SANS incident response models - https://insanecyber.com/incident-response-frameworks-nist-vs-sans
- Daylight, Incident Response Frameworks: NIST vs SANS - https://daylight.ai/blog/incident-response-frameworks
- Cortex XSOAR Marketplace, SANS content pack - https://cortex.marketplace.pan.dev/marketplace/details/SANS
- Cortex content repo, SANS template README - https://github.com/demisto/content/blob/master/Packs/SANS/Playbooks/playbook-SANS_-_Incident_Handlers_Handbook_Template_README.md
- Cortex.io, Runbooks vs Playbooks - https://www.cortex.io/post/runbooks-vs-playbooks
- Tyson Martin, Incident Response Runbook vs Playbook - https://tysonmartin.com/feeds/blog/incident-response-runbook-playbook
- SolarWinds, Runbook vs Playbook - https://www.solarwinds.com/blog/runbook-vs-playbook-whats-the-difference
- Cortex XSOAR Developer Docs, Playbooks - https://xsoar.pan.dev/docs/playbooks/playbooks-overview
- WWT, The Journey of a Cortex XSOAR Playbook - https://www.wwt.com/blog/the-journey-of-a-cortex-xsoar-playbook-theory-and-concepts
- Splunk, Use playbooks to automate analyst workflows - https://help.splunk.com/en/splunk-soar/soar-cloud/build-playbooks
- 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 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 Docs, Actions - https://www.tines.com/stories/docs/actions
- Tines Docs, Stories - https://www.tines.com/stories/docs/stories
- Shuffle, Getting started part 2 - https://medium.com/shuffle-automation/getting-started-with-shuffle-an-open-source-soar-platform-part-2-1d7c67a64244
- StackStorm Docs, Workflows - https://docs.stackstorm.com/workflows.html
- StackStorm, Features - https://stackstorm.com/features
- CloudThat, StackStorm and event-driven automation (idempotency guidance) - https://www.cloudthat.com/resources/blog/stackstorm-and-event-driven-automation-in-modern-it-operations
- MITRE D3FEND, matrix - https://d3fend.mitre.org
- MITRE D3FEND, FAQ (archived) - http://web.archive.org/web/20230124065750/https://d3fend.mitre.org/faq
- BSG, MITRE D3FEND: 267 Defensive Techniques, 7 Tactics - https://bsg.tech/blog/mitre-d3fend
- MITRE ATT&CK - https://attack.mitre.org
- Design Compliance and Security, SOC 2 CC7 - https://www.designcs.net/soc-2-cc7-common-criteria-related-to-system-operations
- Bright Defense, SOC 2 Controls List - https://www.brightdefense.com/resources/soc-2-controls-list
- 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
- 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
- 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
- ISO27001.com, Annex A 5.25 - https://iso27001.com/iso-27001-annex-a-5-25-assessment-and-decision-on-information-security-events
- ISO/IEC 27035-1 standard page - https://www.iso.org/standard/60803.html
- Rapid7, Introduction to ISO/IEC 27035 - https://www.rapid7.com/blog/post/2017/04/20/introduction-to-isoiec-27035-assessment-and-responding-to-incidents
- NIST SP 800-53 Rev. 5 - https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final
- NIST, Control Baselines: SP 800-53B - https://csrc.nist.gov/news/2020/control-baselines-nist-publishes-sp-800-53b
- CSF Tools, NIST SP 800-53 Rev. 5 reference - https://csf.tools/reference/nist-sp-800-53/r5
- Firefly, Building Incident Response Playbooks-as-Code with Terraform - https://www.firefly.ai/blog/building-incident-response-playbooks-as-code-with-terraform
- Palo Alto Networks, What is IaC - https://www.paloaltonetworks.com/cyberpedia/what-is-iac
- PagerDuty Support, Incident Workflows - https://support.pagerduty.com/main/docs/incident-workflows
- PagerDuty, New Incident Workflows - https://www.pagerduty.com/blog/incident-management-response/incident-workflows-deep-dive
- incident.io, Automating workflows - https://incident.io/blog/automating-workflows
- Rootly Docs, Workflows - https://docs.rootly.com/workflows/workflows
- Rootly Docs, Incident Workflows - https://docs.rootly.com/workflows/incident-workflows
- Rootly, Automation Workflows Explained - https://rootly.com/sre/rootly-automation-workflows-explained-boost-sre-reliability
Build vs borrow
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.
| rule | the question | disqualifying when |
|---|---|---|
| 1. Licence | is 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. Language | what 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. Sovereignty | does 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 fit | can 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 posture | does 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 value | is this the differentiated product, or commodity infrastructure? | commodity should be borrowed. Only the differentiated core is worth building |
| 7. Maintenance | who 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
| verdict | means |
|---|---|
| BUILD | write it first-party, in Rust or bun, because it is strategic and nothing adequate exists |
| BORROW | run it as a pinned upstream dependency, configured but not patched |
| FORK | adopt and maintain a fork, accepting the drift cost, with a named owner and a rebase cadence |
| SKIP | declined, with the reason recorded so it is not reconsidered blindly |
| BUY | adopt under a commercial licence, with the cost and the exit path recorded |
| CANDIDATE | promising, not yet decided, with the open question named |
The current position
Decided by licence or language
| component | verdict | licence | why |
|---|---|---|---|
| golang-migrate | BORROW | MIT | OSI-approved, Go, fully offline. Adopted as the migration backend |
| Bytebase | SKIP | MIT with a proprietary carve-out | permission and plan-enablement code is excluded from the MIT grant; governance features are paid |
| ClickHouse | CANDIDATE | Apache-2.0 | genuinely open, RBAC in the open build, held pending four control preconditions |
| Neo4j Community | SKIP | GPLv3 | no RBAC, no sub-graph access control, no online backup |
| Neo4j Enterprise | BUY | commercial | the only edition with RBAC and online backup, which the target requires |
| Apache AGE | CANDIDATE | Apache-2.0 | graph inside the PostgreSQL already deployed, so it inherits RBAC and backup |
| Liquibase | SKIP | FSL 5.0+ | the current licence is not OSI-approved |
| Atlas | CANDIDATE | Apache-2.0 | Go and permissive; the alternative if declarative schema diffing is wanted |
| schemachange | SKIP | Apache-2.0 | Python, which law forbids, and Snowflake-locked so it cannot target Postgres |
| pg_lake | CANDIDATE | Apache-2.0 | the one snowflake-labs artefact that works offline with no account |
| GraphAware Framework | SKIP | GPLv3 | archived in 2021, Neo4j 3.x era |
| neo4j-config-cli | BORROW | Apache-2.0 | declarative database reconciliation, same pattern as the registries |
Borrowed and running
| component | licence | language | role |
|---|---|---|---|
| Caddy | Apache-2.0 | Go | reverse proxy and TLS |
| OpenBao | MPL-2.0 | Go | secrets management |
| Headscale | BSD-3-Clause | Go | self-hosted mesh control plane |
| Wazuh | GPLv2 | C, Java, JS | SIEM and host intrusion detection |
| LiteLLM | MIT plus an enterprise directory | Python | AI gateway, accepted upstream, never extended |
| PlantUML server | MIT | Java | local diagram rendering |
| FossFLOW | MIT | TypeScript | isometric diagrams |
| Bun | MIT | Zig, C++ | the sanctioned scripting runtime |
| docker-socket-proxy | Apache-2.0 | Go | read-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
- 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.
- 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.
- Forking without an owner or a rebase cadence. A drifted fork silently misses security fixes, and in a bank that is not acceptable.
- 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.
- Re-deciding something already declined. The
SKIProws 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.
- Sixty-plus repositories are under evaluation in ten themed groups. Their verdicts will be added as they land.
- Python upstreams are recorded per component but there is no estate-wide count. The platform clearly runs several. That register should exist.
- 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.
- The doctor checks are specified but not written:
adopted_component_missing_licence,adopted_component_python,adopted_component_no_rationale.
How to use it
- Before adopting anything, work the seven rules in order and stop at the first disqualification.
- Record the verdict in
registries/adoption.yamlwith its evidence URL, not in a document. - If the verdict is SKIP, write the reason. The reason is the deliverable.
- Re-run the collector and the doctor. A component with no licence recorded is a finding.
Multi-tenancy
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.
| layer | measurement | what it means |
|---|---|---|
| Database | 11 databases, every one owned by prodg, one shared instance, no connection limits | no database boundary exists. Every service can read every other service's data as the same role |
| Database role | prodg is rolsuper, rolcreatedb, rolcreaterole | tenant provisioning is possible, which is the one thing that is ready. Nothing uses it |
| Resource isolation | 0 of 40 containers have a memory limit | one tenant's runaway container takes the host down with it. There is no ceiling to sell |
| Routing | 26 Caddy routes, no wildcard and no tenant segment | every route is a hardcoded single-tenant subdomain. Tenancy would mean editing the proxy per customer |
| Tenant context | no TENANT, MULTISITE or equivalent anywhere in the environment | no request carries a tenant identity, so no service could enforce one if it wanted to |
| Backups | one global postgres directory | restore 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 home | Tier B - mainframe | |
|---|---|---|
| Who | one household, 2 to 6 people | organisations, banks, government |
| Threat | accidental disclosure, device loss, a curious household member | insider fraud, a hostile tenant, an attacker, a regulator |
| Isolation | shared services, per-user accounts, per-user spaces | per-tenant databases, RBAC, audit trail |
| Enforced by | application ACLs and filesystem ownership | database boundaries plus network policy |
| Audit | who changed what, kept for the household | tamper-evident, retained, exportable |
| Hardware | 4 to 8 GB RAM, one small box | 62 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:
- 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".
- A stated difference between shared and private. Which is which must be a decision, not a default nobody examined.
- A restore that works. A household has no IT department, so backup and restore must be one command and must be rehearsed.
- 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.
- 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.
- Stop running everything as
prodg. One role per service, with the minimum it needs. Superuser is the finding here, not the tenant count. - 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.
- Tenant identity in the request path. A header set by the proxy and enforced by services, not trusted from the client.
- Tenant-scoped backups and rehearsed restore. Until a single tenant can be restored alone, the platform cannot promise isolation it cannot deliver.
- Per-tenant routing. Wildcard or path routing in Caddy rather than a hardcoded block per customer.
- Then onboarding automation, templated rather than scripted per tenant.
Assessment verdict
Against the readiness indicators: not ready, with the foundation in place.
- Infrastructure is stable and administrative automation is possible.
- Database isolation is capable but unused.
- Tenant context is entirely absent.
- No resource boundaries exist.
- Onboarding is manual.
- Backup is global-only.
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
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
| resource | minimum | comfortable |
|---|---|---|
| RAM | 4 GB | 8 GB |
| CPU | 2 cores | 4 cores |
| Disk | 64 GB | 256 GB plus media |
| Host | Raspberry Pi 5, NUC, old desktop, small VPS | a 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:
| service | what it replaces at home | why it |
|---|---|---|
| Vaultwarden | passwords in a browser and a shared note | Bitwarden-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 |
| Cryptgeon | texting a password | one-time secret sharing with an expiry, so a secret does not live in a chat log forever |
| Cal.com | a shared paper calendar | one household calendar, bookable, with the agent able to read it |
| Stirling PDF | a scanner app and an online converter | documents never leave the house to be merged or signed |
| MinIO | a consumer cloud drive | S3-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.
| excluded | why |
|---|---|
| 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 |
| Passbolt | It 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:
- 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.
- 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.
- 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.
- 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:
- One account per person, with a real name rather than a username
- Recovery that does not require an IT department
- No dependence on a corporate identity provider
- OpenBao holds the secrets either way, so the custody chain is the same as the mainframe
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
| element | state | note |
|---|---|---|
| Loadout definition | done | personal and home-media in the loadout registry, with hardware, tenancy and exclusions declared |
| Service selection | done | chosen and the exclusions argued |
| Per-user space model | designed | stated as the tenancy model; not yet implemented in any service |
| Install path | missing | everything is hand-built for the mainframe. There is no bootstrap for a fresh box, and this is the blocker |
| Backup and restore | missing | no household-grade backup, and restore has never been rehearsed |
| Update mechanism | missing | a household cannot run the current upgrade path |
| Onboarding material | partial | a Termius guide exists; nothing for a non-technical household operator |
| Resource limits | missing | relevant 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
Unified migrations plan
What this unifies
Two architectures exist and neither document knows about the other.
| The running mainframe | The specified target | |
|---|---|---|
| Where | stack.md, definition-of-ready/done.md and the security viewpoint | the deployed VPS, Talos, 40 containers |
| Shape | Kubernetes, four clusters, Redpanda, CQRS, Tekton, SPIRE | Docker Compose, Headscale, a registry graph |
| Status | normative and under REVIEW | live 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:
| layer | authority over | fixing phase | Mainframe state today |
|---|---|---|---|
| Server-Side Apply | cluster state | Phase 1 | a cluster with no reconciler |
| Self-Sovereign Architecture | external dependencies | Phase 5 | mostly sovereign, one undeclared exception (LiteLLM to OpenRouter) |
| Sealed Secrets Authority | key material | Phase 0 and 6 | unsplit 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.
| element | choice |
|---|---|
| Provisioning | Pulumi, so the bootstrap is code and the boundary is auditable |
| Isolation | self-contained. The bootstrap cluster reaches out to build the clusters; nothing reaches in |
| Sealing | sealed 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 it | no 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.
| cluster | purpose | trust level | who has access |
|---|---|---|---|
| Inference | vLLM under KubeAI, LangFuse, Llama Guard 3, LLM Guard, NVIDIA GPU Operator | moderate | platform engineers |
| Agents | agent runtime, the fourteen MCP servers, MCP Guard, gVisor-isolated node pool | lowest - assumed compromised | platform engineers |
| Security | SPIRE, Keycloak, OpenBao, cert-manager, Fulcio, Rekor, Falco | highest | no human, GitOps only |
| Databases | CloudNativePG, MongoDB (Percona), Neo4j, OpenSearch, pgvector, Redis | high | DBAs via GitOps |
Three properties are load-bearing and must survive every later phase:
- No human has direct access to the production Security cluster. If an operator can
kubectl execinto SPIRE, the trust root is a person away from compromise. - The Agents cluster is assumed hostile. gVisor isolation, risk-segmented egress, MCP Guard on every MCP call. Agent fallibility is designed for, not denied.
- 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.
| source | projector | read model |
|---|---|---|
stack.md | stack-projector | MongoDB - current component inventory, queryable by type, cluster and owner |
definition-of-ready.md | dor-projector | PostgreSQL - the gate criteria as rows, so a checker evaluates rather than parses |
definition-of-done.md | dod-projector | PostgreSQL - DoD criteria and the acceptance gate |
| the security viewpoint | security-projector | MongoDB - controls, residual risks, opened tensions |
| the platform registries | registry-projector | Neo4j - 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.
| stage | components |
|---|---|
| Build | Tekton, Tekton Chains |
| Prove | Syft (SBOM), Grype, Trivy, Trivy Operator |
| Sign | Fulcio, Rekor |
| Gate | SonarQube, Microcks, Kyverno image-signature validation |
| Update | Renovate |
| Dispatch | Pipeline Dispatcher |
Two commitments from the corpus carry into the plan unchanged and both are non-negotiable:
- Generated artefacts MUST be signed and attested. The DoD requires it, and the pipeline is the only place it can be true.
- Renovate PRs are a live threat path. The threat model ranks upstream dependency compromise second. Hermetic builds and Falco are the compensating controls and both must land before Renovate is enabled at breadth.
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
| element | role |
|---|---|
| KubeAI | control plane for vLLM serving, prefix-aware routing, lifecycle |
| vLLM | the serving backend. PagedAttention, continuous batching, tensor and pipeline parallelism |
| LangFuse | LLM observability, prompt management, evaluation tracing |
| Llama Guard 3 + LLM Guard | content safety gate and input/output scanning proxy |
| PageIndex | hierarchical tree retrieval, vendored, called through LiteLLM |
| Agent Runtime | upstream 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
| layer | components |
|---|---|
| Workload identity | SPIRE (x509-SVIDs, federated across all three substrates), Istio mTLS |
| Human identity | Keycloak (OIDC/OAuth 2.0) |
| Secrets | OpenBao, dynamic credentials, PKI backend |
| Certificates | cert-manager |
| Policy | Kyverno - admission, mutation, image signature |
| Detection | Falco, Tetragon |
| Runtime isolation | gVisor 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
| element | role |
|---|---|
| ClickHouse | single columnar store for logs, metrics and traces. Hot NVMe, cold tier to the object store, ClickHouse Keeper for coordination |
| OpenTelemetry Collector | the single collection agent. Daemonset per cluster, gateway on Observation |
| OTel eBPF instrumentation | zero-code auto-instrumentation |
| SigNoz + query-service + Alertmanager | the console, the query backend, alert routing |
| Hubble, OpenCost, Blackbox Exporter | flow 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.
| today | target | migration note |
|---|---|---|
| Docker Compose stacks | Kubernetes workloads under GitOps | lift and re-template, not re-architect. The Compose files are the specification |
| Headscale | Tailscale plus Cluster API networking | Headscale remains valid for the mesh; it does not need replacing to satisfy the target |
PostgreSQL, single instance, one prodg superuser | CloudNativePG, per-role credentials | the largest security win available. Eleven databases on one superuser role is the finding this phase closes |
| the Neo4j registry graph | registry-projector fed by events | the graph moves from batch-collected to event-fed |
| Caddy | Istio ingress plus external-dns | keep Caddy at the boundary if it still earns its place; the mesh does not require its removal |
| the 20 conformance checks | Kyverno policies plus the doctor loop | policies belong in the cluster, the doctor loop remains the evidence producer |
| no resource limits on 40 of 40 containers | requests and limits on every workload | trivial 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.
| item | blocks |
|---|---|
| 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 corpus | Phase 6 and all tenancy work |
The in-cluster DoR and DoD equivalents are both TBC | Phase 2 - the projectors have no enforcement target until specified |
platform.patch-finder is TBC | Phase 4 - emergency lane automation depends on it |
| Laya and Jev-Omni have no pinned artifact, serving design or admission record | Phase 5 - typed decision engines are unadopted |
row 85 of the stack, "Github Copilot SDK", has no description and a ~ source | Phase 5 |
| vLLM appears twice in the stack | Phase 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
- 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.
- The two
APPROVEDsecurity 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. - 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.
- The typed decision engine question stays open. Laya and Jev-Omni are candidates, not components, and the plan does not assume either.
Open items
Open items register
How to read this
Three severities:
| severity | meaning | consequence |
|---|---|---|
| BLOCKING | work cannot proceed correctly until this is decided or written | anything built on top is provisional |
| OPEN | a known gap with a workaround or an accepted risk | can proceed, but the gap must stay visible |
| CANDIDATE | a considered option, not adopted | no 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.
| # | finding | effect |
|---|---|---|
| 19 | vLLM is listed twice, at #34 and #81, with near-identical descriptions and the same source documents | not a duplicate component - an unmerged edit. Any tooling counting the inventory will over-count, and a reader will wonder which row is authoritative |
| 20 | Row numbering is not stable across changes | a 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 |
| 21 | stack.md is normative: false while being the golden source for the component bill of materials | a 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
- 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.
- It is scoped to eleven documents.
stack.mdalone references forty source documents that are not present, so open items inside those forty are invisible here. The register cannot be called complete. - 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
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.
| id | document | status | normative |
|---|---|---|---|
| view-security-001 | security index (readme.md) | APPROVED | no |
| view-security-002 | platform security stance (security.md) | APPROVED | yes |
| view-security-003 | threat model (threat-model.md) | APPROVED | yes |
| view-security-004 | AI agent governance (ai-governance.md) | REVIEW | yes |
| view-security-005 | audit, compliance and data governance (audit-compliance.md) | APPROVED | yes |
| view-security-006 | ephemeral agent execution blueprint (enterprise-security-blueprint.md) | APPROVED | no |
| view-security-007 | JWT (absent) | listed APPROVED | - |
| view-security-008 | workload identity lifecycle (workload-identity.md) | APPROVED | yes |
| view-security-009 | tenant isolation (absent) | listed APPROVED | - |
| view-security-010 | agentic security watch layer (agentic-security-layer.md) | DRAFT | yes |
| - | component stack (stack.md) | REVIEW | no |
| - | definition of ready | REVIEW | yes |
| - | definition of done | REVIEW | yes |
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.
| document | owns | must not restate |
|---|---|---|
| security index | the folder index and nothing else | anything. The document already says this correctly: security.md "is not a folder index" |
| security stance | the zero-trust stance, the five-layer strategy, and the existence of the controls | the control detail owned by the specific views. It should link, not recount |
| threat model | attack paths, threat actors, assets, residual risk | control implementation. It maps threats to controls that other documents own |
| AI governance | approval gates, authority tiers, model risk, prompt-injection controls | the general threat model. Its AI threats should defer to threat-model.md's AI section or absorb it, not both |
| audit and compliance | the logging substrate's required properties, classification, residency, retention, key custody | the logging pipeline's components, which the stack owns |
| workload identity | the SPIFFE/SPIRE lifecycle and its exception paths | the JWT model for humans, which jwt.md owns |
| agentic security layer | the watch plane, truth enforcement, enforcement spine | the harness behaviour it observes |
| enterprise blueprint | the ephemeral execution pattern and its concrete configuration blocks | the identity and policy components it configures, which SPIRE and Kyverno own |
| component stack | the component bill of materials and cluster placement | protocols, methodologies, compliance framework names and rejected alternatives - the document already excludes these explicitly and correctly |
| definition of ready | the intake gate criteria | the exit gate. It already links rather than restates, which is the discipline the others should copy |
| definition of done | the exit gate and the acceptance gate | the 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
| # | change | why |
|---|---|---|
| 1 | Move the four-layer tenant-isolation enumeration out of security.md into tenancy.md, leaving a statement and a link | removes the only harmful duplication in the corpus |
| 2 | State "the in-cluster equivalent is TBC" once, in a shared delivery note, and have both gates link to it | it is currently restated in both gates with slightly different wording, which will diverge |
| 3 | Merge the threat model's AI-specific threats into ai-governance.md, or have one own them and the other link | AI threats currently live in two documents with different framing |
| 4 | Give stack.md a stable identifier per component rather than relying on row number | a 2026-07-23 change renumbered the table. Numbers are referenced elsewhere, so renumbering is a breaking change |
| 5 | Mark row 85 (Github Copilot SDK) explicitly as incomplete rather than leaving it with a ~ source | an 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:
stack.md- what runs where, and the one table that anchors everything elsesecurity.md- the stance that explains why those componentsthreat-model.md- what the stance is defending againstworkload-identity.md- the identity path most other controls depend onaudit-compliance.md- how any of it can be proven afterwards
To understand the process:
definition-of-ready.md- how work entersdefinition-of-done.md- how work leaves, and what acceptance adds
For the hard parts:
ai-governance.md- the agent authority modelagentic-security-layer.md- the watch plane (DRAFT, read as unfinished)enterprise-security-blueprint.md- the ephemeral execution patternreadme.md- the index, for navigation
What is genuinely strong here
Worth recording, because a consolidation that only lists defects is not a review.
- 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.
- 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. - The gates link rather than restate. Both
definition-of-ready.mdanddefinition-of-done.mdexplicitly 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. - Normative flags are honest.
stack.mdmarks itselfnormative: falseand 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. - 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.
- 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
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.
| expansion | the authority | over what |
|---|---|---|
| Server-Side Apply | the API server | the desired state of the cluster |
| Self-Sovereign Architecture | the platform itself | its own existence and dependencies |
| Sealed Secrets Authority | named custodians | the 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 checked | result |
|---|---|
kubectl get ns | works - default, kube-node-lease, kube-public, kube-system |
| GitOps controller running | none |
| Cluster API controller running | none |
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 found | openrouter in the LiteLLM configuration, with a base_url |
|---|---|
| what that means | the 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:
- An external dependency register - every outbound service the platform talks to, with a justification and an exit path. LiteLLM to OpenRouter is entry one.
- 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.
- Identity stays internal. Keycloak and SPIRE over any hosted IdP.
- 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-key | a 26-byte file, mode 600, on one host |
|---|---|
.root-token | 44 bytes, mode 600, on the same host |
| Shamir shards configured | none 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:
- 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.
- Move shards into sealed backups in the object store, as the Pax security stance already requires.
- Write the runbook, and rehearse it. An unrehearsed ceremony is a document, not a control.
- Seal before the first workload in every new cluster. Phase 0's ordering rule exists for this.
- 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
| layer | authority over | Mainframe state | fixing phase |
|---|---|---|---|
| SSA-1 Server-Side Apply | cluster state | cluster, no reconciler | Phase 1 |
| SSA-2 Self-Sovereign Architecture | dependencies | mostly sovereign, one undeclared exception | Phase 5 |
| SSA-3 Sealed Secrets Authority | key material | unsplit key on one host, no ceremony | Phase 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
| topic | document |
|---|---|
| where these phases sit | unified-migrations-plan.md |
| the runbook that does not exist | spec-corpus-open-items.md item 5 |
| the sovereignty boundary in Pax | stack.md decision-engine candidates |
| the registry methodology these layers feed | registry-driven-methodology.md |
Pax Agentic
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 substance | Mainframe gain | effort |
|---|---|---|---|
| 1 | Trust-tiered cluster separation - Security, Agents, Databases, Inference, each with a stated trust level and access rule | the Mainframe is one flat trust domain. This is the single largest architectural gap, and Pax supplies the model, the rationale and the access rules | high |
| 2 | Workload identity (SPIFFE/SPIRE) - identities issued and rotated, never stored | the Mainframe has no workload identity at all. Services authenticate with long-lived credentials from environment files | high |
| 3 | The VIEW frontmatter schema - id, status, normative, owner, golden_source_for, satisfies, agent-attributed changes | the Mainframe's registries are the same idea but less strict. Pax's normative flag and satisfies link are direct upgrades | low |
| 4 | Projectors and CQRS - one projector per source, materialising a read model shaped for its consumers | gives the registry methodology an event-driven execution path instead of batch collection | medium |
| 5 | The threat model method - attack paths, then controls, then residual risks in priority order with compensating controls | the Mainframe has controls but no published threat model with admitted residual risk | low |
| 6 | Audit as a function, not a component - the required properties of the logging substrate | clarifies that the Mainframe's log store is not the audit capability; the properties are | low |
| 7 | Supply chain - Tekton, Syft, Grype, Trivy, Fulcio, Rekor, signed and attested artefacts | the Mainframe archives but does not sign or attest. Fulcio and Rekor are the missing halves | medium |
| 8 | Self-sovereignty as an admission rule with a stated boundary | converts the Mainframe's sovereignty claim into something auditable, and exposes its one exception | low |
| 9 | AI governance - authority tiers, approval gates, model cards, prompt-injection controls | the Mainframe has one unrestricted operator agent. Pax supplies the tier model | medium |
| 10 | The agentic security watch layer - tool-less watchers over all agent and LLM traffic | novel and directly applicable; the Mainframe's agent currently has no watcher | high |
| 11 | Level-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 transfers | medium |
| 12 | The emergency lane - a defined bypass with lane:, bypass-reason: and a mandatory follow-up ticket | directly applicable to incident work, and more disciplined than the playbook approach: the bypass is recorded permanently and repaired afterwards | low |
| 13 | SigNoz over ClickHouse replacing the metrics stack | a candidate consolidation, not an obvious win. See the reservations below | high |
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.
| gap | revealed by | severity |
|---|---|---|
| No workload identity | the entire SPIFFE and SPIRE model | high - every service uses long-lived static credentials |
| One flat trust domain | the four-cluster trust tiers | high - a compromise anywhere is a compromise everywhere |
| No declarative apply | Server-Side Apply as the stated mechanism | medium - a cluster exists with no reconciler |
| Undeclared external dependency | the sovereignty boundary and the admission rule | medium - LiteLLM routes inference to OpenRouter and nothing records it |
| Unsplit secrets key | the sealed secrets authority and the unseal ceremony | high - one 26-byte file on one host unseals everything |
| No artefact signing or attestation | Fulcio, Rekor, Tekton Chains | medium |
| No gate on registry changes | the level-aware DoR | medium - the registries are authoritative and anything may edit them |
| No published threat model | the attack-path and residual-risk method | medium - unexamined is not the same as safe |
| No resource limits anywhere | implicit: Pax specifies per-cluster placement | low 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)
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 happened | mechanism |
|---|---|---|
| 1 | a peer agent added five primitives and two playbooks while I was reading the same files | lost update - I would have overwritten its edits had I written from my in-context copy |
| 2 | a peer agent added five doctor checks; I then added a check numbered 17, which already existed | identifier collision - both of us assigned "17" |
| 3 | I inserted a check after a ; and broke doctor-summary.cypher outright | no 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.
| element | what it does |
|---|---|
| Agent Card | a JSON manifest at /.well-known/agent-card.json advertising skills, input/output modes, security schemes and interfaces. v1.0 allows signed cards |
| Client / Server roles | fluid - any agent can switch, so topologies can be mesh or hub-and-spoke |
| Task | the unit of long-running work, with explicit states: submitted, working, input-required, completed, failed, canceled |
| Message and Parts | unified part structure - text, structured data, inline bytes, file URL |
| Artifact | the result of delegated work |
| Streaming and push | SSE for live updates, push notifications for work outliving the connection |
| Bindings | JSON-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:
| tier | roles | authority |
|---|---|---|
| Operator | arc.*, pmo.*, graph leads | Propose only. MUST NOT apply changes directly. Output is a PR or a plan ticket |
| Worker / Planner | review.*, sys.*, research.* | MAY apply changes within their declared scope |
| Senior agent | explicitly granted | MAY 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:
| case | frequency | coordination needed |
|---|---|---|
| two agents edit different keys | the overwhelmingly common case | none. A keyed map merges them without loss - this is the CRDT property |
| two agents edit the same key | rare, and usually a genuine disagreement | a 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:
- generated files (
registries.cypher) - derived, overwritten wholesale - scripts (
collect-registries.sh,doctor-summary.cypher) - shared source, edited in place - hand-assigned numbers ("check 17") - an identifier with no key
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 addition | why |
|---|---|
tier | operator, worker or senior - drives the authority check |
declared_scope | the paths and registries the agent may write to. Pax requires this in .agent.md; HELM requires it in the card |
last_handshake | when the card was published, so a stale card is visible |
signature | the card is signed, and the signer is verifiable |
2. Envelope - no bare writes
Every write to shared state carries a signed envelope:
| field | purpose |
|---|---|
agent | verifiable identity, not a self-declared name |
tier and scope | what the card claimed, checked at write time |
subject | the artefact and key being written |
observed | the version vector the writer had seen. This is the causal context |
lamport | a logical timestamp, so ordering exists without a shared clock |
lease | the lease being exercised, if other writers exist |
digest | the content hash, so the write is verifiable after the fact |
signature | over 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:
- 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.
- 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.
- 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:
| situation | resolution |
|---|---|
| different keys | merge automatically. No conflict exists |
| same key, one writer observed the other | last-writer-wins is safe, because the causality is known and the losing version is recorded |
| same key, neither observed the other | concurrent write. Both are retained; one is marked authoritative; the divergence is an event, not a silent overwrite |
| same key, same value | idempotent, 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 mechanism | lands on | Pax phase |
|---|---|---|
| Handshake identity | SPIFFE SVIDs, not self-declared names | Phase 6 |
| Envelope events | CloudEvents on Redpanda | Phase 3 |
| Lease claims | a keyed node in the graph, read by the doctor | Phase 2 |
| Merge | the event log as the audit trail | Phase 3 |
| Envelopes as the watch surface | the agentic security watch layer | Phase 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):
| primitive | intent | risk | approval | evidence |
|---|---|---|---|---|
publish-agent-card | communicate | low | none | agent-card |
claim-artefact | act | medium | none | lease-record |
release-claim | act | low | none | lease-record |
write-with-envelope | act | medium | none | write-envelope |
reconcile-concurrent-write | decide | high | required | reconciliation-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:
| check | detects |
|---|---|
artefact_written_without_envelope | a write with no causal context - round 1 |
hand_assigned_identifier | a sequence-numbered identifier - round 2 |
stale_agent_card | an agent whose handshake has lapsed |
expired_lease_holder_active | an agent holding an expired lease but still writing |
concurrent_write_unreconciled | a 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.
- Agent cards as a registry. A
agents.yamlwith tier and declared scope, collected like every other registry. The platform already collects agents; this adds two fields. - 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. - The identifier rule, enforced by a doctor check. Mechanical, and it fixes rounds 2 and the stack.md renumbering at once.
- 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.
- 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
- 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.
- 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.
- 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.
- 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.
- This does not decide who is authoritative. When two agents genuinely disagree about a registry entry, HELM records the disagreement and requires
reconcile-concurrent-writewith approval. It does not make the judgement.
Operations
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
| was | now | why it is narrower |
|---|---|---|
docker ps over the raw socket | docker ps through a read-only socket proxy | the proxy disables POST, so no create, start, stop, exec or delete is possible |
docker exec headscale headscale nodes list | Headscale's HTTP API with a scoped key | no runtime exec; the key is scoped and expires |
docker exec postgres psql ... | PostgreSQL over TCP with bun's built-in client | a read-only SELECT, creds from an existing 600 file |
docker exec litellm cat /app/config.yaml | read the bind-mounted file | it 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:
- generate the Neo4j password if absent
- start the read-only socket proxy
- start Neo4j
- wait for health
- apply the schema, then the generated registry graph
- refresh the host-derived registries with the bun indexer
- 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 code | meaning |
|---|---|
| 0 | conformant, every check returned zero findings |
| 1 | findings present |
| 2 | the 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.
| defect | what was wrong | how it was found |
|---|---|---|
| Collector emitted no registry edges | emitEntry 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 edges | 88 entries reported as unregistered |
Full-pattern MERGE violated a constraint | MERGE (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 constraint | the apply failed with Node(12) already exists with label Registry |
| Check counted the meta-registry as unprovenanced | missing_provenance did not exclude the registry-of-registries, so 18 legitimate registry nodes were reported | 18 phantom findings |
| A playbook had no evidence step | supply-chain-compromise had no verify or record step, so it could not be shown to have worked | playbook_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.
| measure | value |
|---|---|
| registries | 18 |
| entries | 112 |
| relationships | 223 |
| primitives | 38 |
| playbooks | 10 |
| playbook steps | 100 |
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.
- Three agents have no declared interface - the Hermes runtime profiles
cypher,nexusandinvestigatoract on the platform but their interface surfaces are not declared anywhere. An agent nothing can reach cannot be alerted on or held to account. - Five primitives are declared but unused -
assign-role,start-service,page-oncall,update-statusandrollback-schema. The first four are the vocabulary running ahead of the scenarios.rollback-schemais 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
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:
- Is the open edition genuinely open, and does it permit self-hosted commercial use inside a bank?
- 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
| repository | verdict | the deciding fact |
|---|---|---|
| ClickHouse | adopt later, as a complement | Apache-2.0, OSI-approved, never relicensed, and RBAC is in the open-source build |
| snowflake-labs | do not adopt, except one artefact | a SaaS vendor's labs org; almost nothing works offline or without an account |
| Bytebase | not adopted as the governance layer | the 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:
| primitive | risk | approval | evidence |
|---|---|---|---|
migrate-schema | high | required | migration-record |
rollback-schema | critical | required | rollback-record |
verify-schema | low | none | schema-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
| question | blocks |
|---|---|
| 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
| Fact | Value | Source (checked 2026-10-06) |
|---|---|---|
| Core repository | ClickHouse/ClickHouse | https://api.github.com/repos/ClickHouse/ClickHouse |
| SPDX licence of core | Apache-2.0 | https://api.github.com/repos/ClickHouse/ClickHouse |
| Stars / archived / last push | 50,274 / false / 2026-10-06T16:39:25Z | https://api.github.com/repos/ClickHouse/ClickHouse |
| Open-sourced | 15 June 2016, under Apache 2.0 | https://clickhouse.com/blog/what-a-difference-10-years-of-open-source-makes |
| Latest stable (Wikipedia) | v26.8.2.7-lts, 1 September 2026 | https://en.wikipedia.org/wiki/ClickHouse |
| Modern container image | clickhouse/clickhouse-server | https://clickhouse.com/docs/get-started/setup/self-managed/docker |
| Governing ports | 8123 (HTTP), 9000 (native TCP) | https://clickhouse.com/docs/guides/sre/network-ports |
| Commercial vehicle | ClickHouse, 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:
- 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).
- 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). - 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).
- 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:
- Compression. Columnar storage plus pluggable codecs (LZ4 default, ZSTD, and others) yields high compression ratios; ClickHouse reports fitting in 99 GB what took PostgreSQL 622 GB on a one-billion-document benchmark (https://clickhouse.com/blog/what-a-difference-10-years-of-open-source-makes).
- Replication and coordination. An asynchronous multi-master replication scheme replicates parts across nodes. Coordination uses ClickHouse Keeper, a built-in Raft-based system that replaces Apache ZooKeeper in clusters (https://clickhouse.com/docs/get-started/about/intro; https://clickhouse.com/docs/guides/oss/best-practices/tips).
- Approximate and tiered computation. Approximate aggregates (uniq, quantiles) and sampling trade accuracy for speed; tiered storage moves data hot-to-cold across SSD/HDD/S3 (https://clickhouse.com/docs/get-started/about/intro; https://clickhouse.com/docs/operations/storing-data).
- Native JSON. A production-ready columnar JSON type landed in 25.3 (March 2025) (https://clickhouse.com/blog/what-a-difference-10-years-of-open-source-makes).
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":
- 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).
- 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
SharedMergeTreeengine (storage/compute separation), lightweightUPDATE, 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:
- Not every repository in the
ClickHouseGitHub org is Apache-2.0. For examplewalshadowis published under AGPL-3.0 (https://github.com/orgs/ClickHouse/repositories). Each component must be licence-checked individually before it is bundled into the supply chain; a blanket "ClickHouse is Apache-2.0" assumption across the org would be wrong. - The
clickhouse-servercore is Apache-2.0, butcontrib/vendored third-party libraries carry their own upstream licences (a normal, expected consequence of the Apache model). The project runs a clean-room licence or compatibility workflow that should be repeated inside this platform's supply-chain pipeline.
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):
- Managed operations, autoscaling, compute-compute separation, multi-AZ HA.
- Cloud-only compute engine (SharedMergeTree) for true storage/compute separation.
- SSO via SAML, MFA, private regions, private networking, scheduled upgrades.
- Transparent Data Encryption / customer-managed encryption keys (CMEK).
- Managed backups with retention and export to the customer's own object storage.
- Compliance artefacts (see 2.6): SOC 2 Type II, ISO 27001, HIPAA, PCI.
- Enterprise support SLAs down to 30-minute Severity-1 response, with a named Lead Support Engineer (https://clickhouse.com/legal/support-services-policy).
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:
- No field-of-use restriction: running the server for a bank's internal analytics is expressly permitted; "no restriction on business use" (https://altinity.com/blog/clickhouse-is-apache-2-0).
- No SaaS/competing-offering clause of the kind found in SSPL/BSL. A bank (or this platform) may even offer ClickHouse as a hosted service without a commercial licence.
- No copyleft obligation on the bank's own proprietary code that merely links to or queries ClickHouse over the network.
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
- 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_storagedisk (https://clickhouse.com/docs/operations/storing-data). - 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).
- 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). - 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).
- 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). - 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
- 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).
- 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).
- 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).
- 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.
- 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).
| Control | Open-source server | ClickHouse Cloud (commercial) | Source |
|---|---|---|---|
Users, roles, GRANT/REVOKE, WITH GRANT OPTION | Yes (SQL-driven, access_management=1) | Yes | access-rights doc |
| Row-level policies (CREATE ROW POLICY) | Yes | Yes | row-column-policy KB |
| Column-level security (column-level GRANT) | Yes | Yes | row-column-policy KB |
| Quotas (resource limits per user/role) | Yes | Yes | access-rights doc |
| Settings profiles and constraints | Yes | Yes | access-rights doc |
| LDAP (authenticator and user directory, role mapping) | Yes | Not available in Cloud (see note) | LDAP doc |
| Kerberos authenticator (HTTP, GSS-SPNEGO) | Yes | Not available in Cloud | Kerberos doc |
| SSL X.509 / JWT / HTTP authenticators | Yes | (varies) | external-authenticators doc |
Audit trail via system tables (query_log, session_log, part_log, text_log) | Yes | Yes | audit-log doc; system-tables doc |
| Encryption at rest (encrypted disk, AES_256_CTR) | Yes | Yes (Cloud-managed by default) | CMEK doc |
| Column-level encryption codecs (AES_128/256_GCM_SIV) | Yes | Yes | encryption codecs |
| SAML SSO / MFA / SCIM | No (console-side only) | Yes | SAML SSO doc |
| Transparent Data Encryption / CMEK key management | No (operator manages keys) | Yes | CMEK doc |
| Managed backups, HA, multi-AZ, private networking | Operator's responsibility | Yes | pricing |
| Managed compliance reports (SOC 2, ISO 27001, HIPAA, PCI) | Not applicable | Yes | compliance-overview |
Notes:
- Roles are the RBAC primitive. A role is a container for privileges, settings, and constraints that is granted to users; row policies and quotas attach to roles or users (https://clickhouse.com/docs/concepts/features/security/access-rights). This directly satisfies the "separation of duties / RBAC" requirement that disqualified Neo4j CE.
- Row policies filter which rows a read-only user sees, created with
CREATE ROW POLICY. They are meaningful only for read-only access - if a user can modify tables or move partitions, the restriction is defeated (https://clickhouse.com/docs/resources/support-center/knowledge-base/security/row-column-policy). They must be defined on the underlying local tables of a cluster, not onDistributedtables, andserialize_query_planmust be 0 for users whose row policies must be enforced (https://clickhouse.com/docs/concepts/features/security/access-rights). These are real, documentable operational caveats a control-evidence process must capture. - Column-level security is expressed as column-level
GRANT; a user may only reference columns they have access to, andSELECT *over a table with restricted columns errors (row-column-policy KB). - Certainty gap to flag: the access-control doc itself notes that privileges on a deleted table
are not automatically revoked, and that there are no lifetime settings for privileges
(https://clickhouse.com/docs/concepts/features/security/access-rights). In a regulated environment
this must be handled by a governed re-creation workflow (e.g.
REVOKE ... FROM ALLon table drop) driven from the registry, or it becomes an access-creep finding. - LDAP and Kerberos are open-source but not available in Cloud. The LDAP page states plainly: "This page isn't applicable to ClickHouse Cloud ... The feature documented here isn't available in ClickHouse Cloud services" (https://clickhouse.com/docs/concepts/features/security/external-authenticators/ldap). For a self-hosted bank this is good news: the enterprise authentication integrations a bank needs (LDAP/Active Directory, Kerberos) are in the build you are allowed to run.
- Encryption at rest can be done natively. Two mechanisms exist: a native encrypted disk
(
<type>encrypted</type>, algorithmAES_256_CTR) that encrypts at the storage layer (https://clickhouse.com/docs/products/cloud/guides/security/cmek describes the same VFS feature; the OSS equivalent is configured instorage_configuration), and column-level encryption codecsAES_128_GCM_SIV/AES_256_GCM_SIV(authenticated encryption, key configured inencryption_codecs) for sensitive columns (https://clickhouse.com/docs/reference/functions/regular-functions/encryption-functions; codec usage: https://oneuptime.com/blog/post/2026-03-31-clickhouse-aes-encryption-codec/view). The OSS docs actually recommend ClickHouse's built-in encryption over OS-level encrypted filesystems: "It's not recommended to use encrypted filesystems, because you can use builtin encryption in ClickHouse, which is better" (https://clickhouse.com/docs/guides/oss/best-practices/tips). - Audit logging is present but not a dedicated immutable audit log in OSS. ClickHouse records
security-relevant events in system tables by default:
system.session_log(successful and failed logins and their source - useful for credential-stuffing/brute-force detection) andsystem.query_log(query text, user, timing, memory).system.part_logrecords insert/merge activity (https://clickhouse.com/docs/products/cloud/guides/security/audit-logging/database-audit-log; https://www.datasunrise.com/knowledge-center/clickhouse-audit-log). Caveat for NIST AU controls: these are ordinary, mutable MergeTree tables, not a tamper-evident/WORM log. For a regulated environment the audit trail should be shipped continuously to append-only storage (the platform's MinIO object lock / WORM, or an external SIEM such as the already-deployed Wazuh) with TTLs set to meet the retention control. This is a build task, not a blocker.
5. Operational footprint
5.1 Upstream recommendations
- RAM. "The recommended amount of RAM is 32 GB or more." Below 16 GB, default settings cause memory exceptions. It can run on as little as 2 GB, but only with heavy tuning and low ingest rate (https://clickhouse.com/docs/guides/oss/best-practices/tips). For data volumes around 50 TB per server, 128 GB materially beats 64 GB because hot data fits the page cache. For small datasets (up to roughly 200 GB compressed), "it is best to use as much memory as the volume of data" (same source). Independent guidance lists 4-core / 16 GB / 1 TB HDD as a development minimum and 16+ cores / 64+ GB RAM as recommended for hundreds of millions to billions of rows (https://kb.altinity.com/altinity-kb-setup-and-maintenance/cluster-production-configuration-guide/hardware-requirements).
- CPU. ClickHouse needs SSE4.2 as a floor; no universal utilisation target is published, but
10-20% is advised for ad-hoc analytics to leave headroom
(https://www.datapacket.com/blog/how-to-pick-the-right-server-for-clickhouse). Set the CPU
scaling governor to
performance(https://clickhouse.com/docs/guides/oss/best-practices/tips). - Disk. SSD strongly preferred; 7200 RPM SATA HDD is acceptable for cost-driven bulk. Ext4 or
XFS with
noatime; do not use a compressed filesystem (ClickHouse compresses better itself). RAID-10 preferred when using HDD (https://clickhouse.com/docs/guides/oss/best-practices/tips). - Kernel/OS hygiene. Set transparent huge pages to
madvise; keepvm.overcommit_memoryat 0 or 1; exclude/var/lib/clickhousefrom antivirus scanning (https://clickhouse.com/docs/guides/oss/best-practices/tips).
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:
- RAM: comfortable. The 32 GB reconciliation minimum is easily met on a 62 GB host, and the
"as much memory as data" guidance for datasets up to ~200 GB compressed is achievable for a
bounded telemetry retention window. A sensible service cap for a shared host is 16-24 GB
(
max_server_memory_usage/max_memory_usage), leaving room for the ~36 existing containers. - CPU: adequate. 12 cores exceed the 4-core dev floor and sit below the 16-core "recommended" mark, which is fine for a single-node, moderate-concurrency observability/analytics workload.
- Disk: the real constraint. 279 GB free is ample to start (a single-node ClickHouse with a
few hundred GB of compressed data and a 90-180 day retention window is realistic), but it is not
a long-term home for multi-year telemetry. The correct pattern is to keep recent/hot data on local
disk and age cold partitions to MinIO (S3-compatible) via a ClickHouse
s3/object_storagedisk (https://clickhouse.com/docs/operations/storing-data), which uses storage already deployed. This also reduces the risk of filling the shared root volume.
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/).
| Criterion | ClickHouse | DuckDB | TimescaleDB | Apache Druid | Postgres + Timescale (existing) | Parquet files queried directly |
|---|---|---|---|---|---|---|
| Licence | Apache-2.0 (OSI) | MIT (OSI) | Apache-2.0 core + TSL community | Apache-2.0 (OSI) | PostgreSQL + Apache-2.0/TSL | Apache-2.0 (OSI) |
| Model | Server DBMS (client/server) | Embedded, in-process | PostgreSQL extension | Distributed cluster | Server DBMS + extension | File format only |
| Best for | Large-scale OLAP, observability, real-time analytics | Local/single-node analytics, embedded pipelines, <= a few hundred GB | Time-series that must co-exist with relational SQL/JOINs/ACID | Streaming event analytics at scale with immediate queryability | Fits current stack; time-series where Postgres semantics matter | Ad-hoc archival scans with no service to run |
| RBAC / row+column security | Yes, in OSS (roles, row policies, column grants) | No server RBAC (file/process scope) | Postgres roles + RLS; some ops features in TSL | Yes (authn/authz, but heavier ops) | Postgres roles + RLS | OS file permissions only |
| High cardinality | Excellent (cost at query time) | Good at single-node scale | Moderate (RowStore + Hypercore) | Good (segments, high cardinality) | Moderate | Poor (no index; full scans) |
| Concurrency / multi-user | High (server, many concurrent queries) | Single-process, low | High (Postgres) | High (distributed) | High | None (each reader scans files) |
| Updates / deletes | Weak (async mutations) | Weak | Strong (full Postgres) | Limited (segment rewrites) | Strong (ACID) | Rewrite whole files |
| Ops complexity | Medium-high | Very low (no service) | Low if you run Postgres anyway | High (ZooKeeper/Keeper, multiple processes) | Low-moderate | Minimal service, but query plumbing to build |
| Retention cost at scale | Excellent (compression + S3 tiering) | Bounded by local disk | Moderate | Good (deep storage) | Moderate | Excellent (cheapest raw storage) |
| Fit for THIS platform | Strong complement | Useful local tool, not a store | Attractive because Postgres is already deployed | Enterprise-grade but heavy | Lowest friction, fewer new tools | Cheap archive only |
Reading of the table:
- 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).
- 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).
- 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).
- 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/).
- 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:
- Pin the image to an lts tag (for example
clickhouse/clickhouse-server:26.8), neverlatest, so the deployment is reproducible and supply-chain-pinnable. - 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.
- Persist two volumes:
/var/lib/clickhouse(data) and/var/log/clickhouse-server(logs), plus a bind-mountedconfig.d/directory for overrides rather than editingconfig.xml(https://clickhouse.com/docs/get-started/setup/self-managed/docker). - 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.
- Raise file descriptors (
ulimit nofile=262144:262144) as the docs' example does (https://clickhouse.com/docs/get-started/setup/self-managed/docker). - Enable access control on first boot with
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1and a non-empty admin password, then create least-privilege roles; never leave the default passwordlessdefaultuser reachable (https://clickhouse.com/docs/concepts/features/security/access-rights). - Configure encryption and audit before ingesting sensitive data: an encrypted disk or column
codecs, and
query_log/session_logretention plus shipping those logs to WORM storage (sections 4 and 5.1). - 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:
- Official ClickHouse Operator - automates deployment, configuration, scaling, upgrades, and
lifecycle of ClickHouse clusters and ClickHouse Keeper ensembles via custom resources; installable
via raw manifests or a Helm chart from
ghcr.io/clickhouse/clickhouse-operator-helm(https://github.com/ClickHouse/clickhouse-operator; https://clickhouse.com/docs/products/kubernetes-operator/overview). Verified Apache-2.0 via https://api.github.com/repos/ClickHouse/clickhouse-operator. - Altinity Kubernetes Operator - the older, widely deployed alternative, Apache-2.0, using
ClickHouseInstallationandClickHouseKeeperInstallationresources with rolling upgrades (https://github.com/altinity/clickhouse-operator; https://altinity.com/kubernetes-operator).
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:
- 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).
- 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.
- 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).
- 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).
- "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
- ClickHouse core repository metadata (SPDX Apache-2.0, stars, push) - https://api.github.com/repos/ClickHouse/ClickHouse
- ClickHouse LICENSE file - https://github.com/ClickHouse/ClickHouse/blob/master/LICENSE
- Apache License 2.0 (OSI-approved) - https://www.apache.org/licenses/LICENSE-2.0
- What is ClickHouse? - https://clickhouse.com/docs/get-started/about/intro
- 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
- ClickHouse company story - https://clickhouse.com/company/our-story
- Is ClickHouse moving away from open source? - https://altinity.com/blog/is-clickhouse-moving-away-from-open-source
- ClickHouse is Apache 2.0 - https://altinity.com/blog/clickhouse-is-apache-2-0
- ClickHouse access control and account management (roles, row policies, quotas) - https://clickhouse.com/docs/concepts/features/security/access-rights
- Row-level and column-level security KB - https://clickhouse.com/docs/resources/support-center/knowledge-base/security/row-column-policy
- LDAP authenticator/user directory - https://clickhouse.com/docs/concepts/features/security/external-authenticators/ldap
- Kerberos authenticator - https://clickhouse.com/docs/concepts/features/security/external-authenticators/kerberos
- External authenticators overview - https://clickhouse.com/docs/concepts/features/security/external-authenticators
- Database audit log - https://clickhouse.com/docs/products/cloud/guides/security/audit-logging/database-audit-log
- Data encryption (Cloud CMEK/TDE) - https://clickhouse.com/docs/products/cloud/guides/security/cmek
- Encryption functions (AES codecs) - https://clickhouse.com/docs/reference/functions/regular-functions/encryption-functions
- OSS usage recommendations (RAM, disk, Keeper) - https://clickhouse.com/docs/guides/oss/best-practices/tips
- Sizing and hardware recommendations - https://clickhouse.com/docs/guides/oss/best-practices/sizing-and-hardware-recommendations
- Altinity hardware requirements - https://kb.altinity.com/altinity-kb-setup-and-maintenance/cluster-production-configuration-guide/hardware-requirements
- External disks / object storage tiering - https://clickhouse.com/docs/operations/storing-data
- Network ports (8123, 9000) - https://clickhouse.com/docs/guides/sre/network-ports
- Install using Docker - https://clickhouse.com/docs/get-started/setup/self-managed/docker
- Official ClickHouse Kubernetes Operator - https://github.com/ClickHouse/clickhouse-operator
- ClickHouse Kubernetes Operator docs - https://clickhouse.com/docs/products/kubernetes-operator/overview
- Altinity Kubernetes Operator - https://github.com/altinity/clickhouse-operator
- ClickHouse Cloud pricing (tiers, features) - https://clickhouse.com/pricing
- Support services policy (SLAs) - https://clickhouse.com/legal/support-services-policy
- Security and compliance reports (SOC 2, ISO 27001, HIPAA, PCI) - https://clickhouse.com/docs/products/cloud/reference/security/compliance-overview
- Prometheus vs ClickHouse high cardinality - https://last9.io/blog/high-cardinality-metrics-prometheus-clickhouse
- Best open-source observability solutions - https://clickhouse.com/resources/engineering/best-open-source-observability-solutions
- Loki alternatives (SigNoz/qryn on ClickHouse) - https://www.dash0.com/comparisons/9-best-grafana-loki-alternatives
- Altinity observability vendors using ClickHouse - https://altinity.com/blog/altinity-loves-every-observability-vendor-especially-the-ones-that-use-clickhouse
- Best open-source observability tools (ClickHouse ops caveat) - https://www.netdata.cloud/resources/best-open-source-observability-tools
- DuckDB FAQ (MIT, foundation) - https://duckdb.org/faq.html
- Timescale licenses (Apache-2.0 + TSL) - https://www.tigerdata.com/legal/licenses
- Apache Druid licensing - https://druid.apache.org/licensing
- ClickHouse alternatives overview - https://www.flexera.com/blog/finops/clickhouse-alternatives
- Column-oriented storage explainer - https://oneuptime.com/blog/post/2026-03-31-clickhouse-column-oriented-storage/view
- ClickHouse architecture components - https://www.instaclustr.com/education/clickhouse/clickhouse-architecture-4-key-components-and-optimization-tips
- Choosing ClickHouse server hardware (RAM guidance) - https://www.datapacket.com/blog/how-to-pick-the-right-server-for-clickhouse
- ClickHouse audit log (system tables) - https://www.datasunrise.com/knowledge-center/clickhouse-audit-log
- 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
- Created 2019-12-17, 540 public repositories (https://api.github.com/orgs/snowflake-labs).
- Predominantly Python and Jupyter Notebook, Apache-2.0 by default, with a long tail of
sfguide-*andsfquickstart-*tutorial repositories that require a Snowflake account to run. - Several artefacts the task names do NOT live under
snowflake-labs; they are under the separatesnowflakedborganisation (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
| Field | Value |
|---|---|
| What it does | Database change management (DCM) / migration tool for Snowflake objects, imperatively applying versioned SQL scripts |
| Language | Python (requires Python 3.10+) |
| Licence | Apache-2.0 |
| Account required | YES - depends on snowflake-connector-python and a Snowflake account |
| Postgres support | NONE |
| Last activity | pushed 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
| Field | Value |
|---|---|
| What it does | Snowpark Python API for dataframes and UDFs executed on Snowflake compute |
| Language | Python |
| Licence | Apache-2.0 |
| Account required | YES - the API compiles work to run inside a Snowflake account |
| Last activity | pushed 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")
| Field | Value |
|---|---|
| What it does | Developer command-line tool for SQL operations and developer workloads on Snowflake |
| Language | Python |
| Licence | Apache-2.0 |
| Account required | YES - explicitly "for developer-centric workloads" in Snowflake |
| Last activity | pushed 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
| Field | Value |
|---|---|
| What it does | Terraform provider that manages Snowflake account objects as infrastructure-as-code |
| Language | Go |
| Licence | MIT |
| Account required | YES - it provisions resources inside a Snowflake account |
| Last activity | pushed 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
| Field | Value |
|---|---|
| What it does | A set of PostgreSQL extensions that add Apache Iceberg tables, data-lake file access, and DuckDB-backed columnar execution to Postgres - a standalone Postgres lakehouse |
| Language | Bytes by language: Python, C, C++, PLpgSQL, Shell, Makefile (https://api.github.com/repos/snowflake-labs/pg_lake/languages); the shipped extensions are C/PLpgSQL |
| Licence | Apache-2.0 |
| Account required | NO for the standalone lakehouse use case |
| Last activity | pushed 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
snowflake-labs/mcp- MCP server for Snowflake (Python, Apache-2.0) - account-bound (https://api.github.com/orgs/snowflake-labs).snowflake-labs/snowflake-dcm-projects- Python, Apache-2.0 - account-bound (https://api.github.com/orgs/snowflake-labs).snowflake-labs/django-snowflake- Python, MIT - account-bound (https://api.github.com/orgs/snowflake-labs).snowflake-labs/SC.DDLExportScripts- PowerShell, Apache-2.0 - exports DDL from a live Snowflake account (https://api.github.com/orgs/snowflake-labs).
3. Question (a): is schemachange useful for PostgreSQL?
No. schemachange is Snowflake-locked, not a generic migration engine.
- It is driven by
snowflake-connector-pythonand requires Snowflake account credentials (account, user, role, warehouse, database) (https://www.snowflake.com/en/developers/guides/devops-dcm-schemachange-github). - It creates and maintains its change-history table inside Snowflake (https://github.com/Snowflake-Labs/schemachange).
- 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).
- 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.
| Tool | Licence | Language | Postgres | Policy / approval support | Source |
|---|---|---|---|---|---|
| Flyway | Apache-2.0 (Community) | Java (JVM) | Yes | No native approval; rollback/drift are Enterprise (paid) | https://github.com/flyway/flyway |
| Liquibase | FSL-1.1-ALv2 since v5.0 (not OSI); 4.x Apache-2.0 | Java (JVM) | Yes | Governance in commercial "Secure" tier | https://www.liquibase.com/blog/liquibase-community-for-the-future-fsl |
| golang-migrate | MIT | Go | Yes | No; approvals via CI/CD only | https://github.com/golang-migrate/migrate |
| Atlas | Apache-2.0 (core CLI) | Go | Yes | Schema linting / policy-as-code in CI; Pro is commercial | https://github.com/ariga/atlas |
| sqitch | MIT | Perl | Yes | Dependency-graph migrations with verify scripts; no policy engine | https://github.com/sqitchers/sqitch |
| dbmate | MIT | Go | Yes | No; approvals via CI/CD only | https://github.com/amacneil/dbmate |
| goose | MIT | Go | Yes | No; approvals via CI/CD only | https://github.com/pressly/goose |
| Bytebase | MIT core + commercial Enterprise | Go | Yes | YES - native approval workflow, SQL review, per-env policy | https://github.com/bytebase/bytebase |
| schemachange (for reference) | Apache-2.0 | Python | No | No; approvals via CI/CD only | https://github.com/Snowflake-Labs/schemachange |
Notes with sources:
- 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).
- 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).
- 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:
- 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. - 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-formatterstyle utilities in the labs org are cosmetic and account-adjacent). - Non-Python alternatives available: Flyway and Liquibase (Java/JVM), golang-migrate, Atlas, dbmate, goose and Bytebase (all Go), sqitch (Perl).
- 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).
pg_lakedoes 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.
- Account-bound and therefore unusable offline: schemachange, snowflake-cli, snowpark-python,
the Terraform provider,
mcp,snowflake-dcm-projects,django-snowflake, and the entiresfguide-*corpus (sources in section 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). - 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).
- 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:
- Do NOT adopt schemachange: it is Python (against project law) and Snowflake-locked (https://github.com/Snowflake-Labs/schemachange).
- 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).
- Optionally self-host Bytebase (Go, MIT core) to get native approval/policy workflows under the governed operation model (https://github.com/bytebase/bytebase).
- 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).
- 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). - Treat all remaining
snowflake-labscontent 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:
- Plan change - DDL (schema) and DML (data) changes are drafted as an issue/plan against one database, several databases, or a database group.
- 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.
- 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.
- Multi-environment rollout - stage-by-stage promotion (dev, test, staging, prod) with configurable deployment paths, gated promotion, and per-environment policies.
- 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":
- Source code files that contain "enterprise" in their dirname are licensed under
LICENSE.enterprise. - "Any code controlling feature, permission, role and plan enablement." is also under
LICENSE.enterprise. - 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:
- 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).
- 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)
| Capability | Community (free, self-host) | Pro (cloud only) | Enterprise (commercial, self-host) |
|---|---|---|---|
| Git-based schema version control, declarative migration, schema compare/sync | Yes | Yes | Yes |
| Online schema migration, pre-deployment SQL review (200+ rules) | Yes | Yes | Yes |
| Automatic backup and one-click rollback, multi-database batch, rollout policy | Yes | Yes | Yes |
| Web SQL Editor, admin mode, data export, query history, AI assistance, MCP server | Yes | Yes | Yes |
| Built-in IAM (users, roles, permissions) - workspace + project RBAC | Yes | Yes | Yes |
| Terraform provider (policy as code) | Yes | Yes | Yes |
| SSO | No | Google, GitHub | OAuth2, OIDC, LDAP |
| Audit log | No | 7-day retention | Unlimited retention |
| Auth policies (2FA, password, sign-in) | No | No | Yes |
| Custom roles | No | No | Yes |
| Approval workflow | No | No | Yes |
| Risk assessment, data classification | No | No | Yes |
| Dynamic data masking | No | No | Yes |
| Just-in-time access, restrict data copying | No | No | Yes |
| User provisioning (SCIM, Entra/AD/Okta) | No | No | Yes |
| High availability | No | No | Add-on |
3.2 RBAC in the free edition (precise)
The free Community edition does ship RBAC. Built-in roles are:
- Workspace roles: Workspace Admin, Workspace DBA, Workspace Member.
- Project roles: Project Owner, Project Developer, Project Releaser, SQL Editor User, SQL Editor Read User, Project Viewer, GitOps Service Agent.
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
- Dynamic data masking is Enterprise. It is column-level, driven by semantic types (email, phone, credit card), infects derived views, and the docs describe masking exemptions that go through approval and are logged.
- SQL review (200+ rules) is available in all tiers, configurable at environment or project level, with Error/Warning/Disabled enforcement. This is the strongest free-tier governance feature.
- Approval workflow is Enterprise. It supports condition-based routing (environment, risk
level, SQL type, affected rows), multi-stage chains, role-based approvers, and first-match
-wins ordering, with a
risk_levelvariable auto-computed by Bytebase.
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:
- If Bytebase runs inside Docker on Linux, you must add
--network hosttodocker runso Bytebase can reach a database instance on the same host vialocalhost. - If Bytebase runs in Docker Desktop on macOS, use
host.docker.internalinstead. - Bytebase supports secure connections (SSL/TLS, SSH tunnel, cloud IAM auth) across all tiers.
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:
- Default: embedded PostgreSQL. The Bytebase release is a single Go binary that embeds the frontend assets and the PostgreSQL binary. No separate database setup is required for a basic install.
- Optional: external PostgreSQL 14 or above, configured via the
PG_URLenvironment variable, storing metadata in a database namedbytebase. External PostgreSQL is required for High Availability, and HA mode "does not work with Bytebase's embedded PostgreSQL". The metadata database is separate from the databases Bytebase manages.
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 instances | Bytebase | External PostgreSQL |
|---|---|---|
| Up to 5 users / 5 instances | 1 CPU / 2 GB RAM | 1 CPU / 2 GB RAM |
| Up to 20 users / 20 instances | 2 CPU / 4 GB RAM | 1 CPU / 2 GB RAM |
| Up to 50 users / 50 instances | 4 CPU / 8 GB RAM | 2 CPU / 4 GB RAM |
| 250+ users or 50+ instances | 8 CPU / 16 GB RAM | 2 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.
| Tool | Licence | Policy / approval support | PostgreSQL | Notes |
|---|---|---|---|---|
| Bytebase | MIT 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 Enterprise | Yes, 12.0+ | Open core; Community free up to 20 users / 10 instances; self-hosted Pro unavailable |
| Flyway | Community: Apache-2.0; Teams/Enterprise: commercial (Redgate) | Community: none; Teams/Enterprise add policy checks and dry runs | Yes | CLI-first migration engine; Redgate now pushes "governed change management" |
| Liquibase | Community 5.0+: Functional Source License (FSL, non-OSI, source-available), reverting to Apache-2.0 after two years; Liquibase Secure commercial | Community: none; Secure adds policy checks, flow files, JSON logging | Yes | Changed from Apache-2.0 to FSL in September 2025 - no longer open source |
| Atlas | Core: Apache-2.0; Atlas Pro / Cloud: commercial | Core ships 50+ lint analyzers; approval/CI policy via Pro/Cloud | Yes | Declarative and versioned schema-as-code; strong drift detection |
| sqitch | MIT | None 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 git | N/A (your own) | Whatever your CI/PR process provides | Yes (native SQL) | Zero platform; you build review, approval, audit and rollback yourself |
Observations:
- 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.
- 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).
- 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
- Bytebase is a control plane for database change and access, a different layer from the registry (a description of the estate) and the doctor (a conformance check over that description). It could be the execution backend that actually applies migrations, reviews SQL and records rollouts.
- Its API-first design (gRPC/REST API, Terraform provider, webhooks, MCP server) means the platform's primitives and the registry can drive and observe it: a "schema-change" primitive invokes Bytebase's plan/rollout API, and Bytebase's audit events and rollout outcomes feed back as the primitive's evidence artefact.
- Its GitOps workflow is genuinely complementary to a repo-based schema source of truth: migrations live in git, PR review supplies the human gate, and Bytebase supplies the execution, drift and rollback tooling.
- It is written in Go, so the project law forbidding Python and the bun-only JavaScript rule are irrelevant to adopting it; the frontend is TypeScript/Vue and ships prebuilt.
7.2 The duplication case
- Bytebase ships its own projects, environments, RBAC roles, approval flows, risk assessment, audit log and policy engine. That is a parallel governance model that overlaps the registry (service/database entries), the doctor (conformance) and the playbook primitives (risk/approval/evidence). Running it as the top-level governance model creates a second source of truth, which is the exact drift risk a registry-driven methodology exists to eliminate.
- The platform's primitives already declare approval requirement and evidence artefact.
A schema-change primitive with
approval = requiredandevidence = plan + rollout logcan be represented, gated and verified without adopting Bytebase at all. Bytebase's approval model is, in that sense, reproducible in the meta-structure the platform owns. - The compliance features that would justify a new control plane - approval workflow, audit log - are Enterprise-only, so a "free" Bytebase integration would not even supply the governance the architecture claims to add.
7.3 Honest synthesis
Both are true, and the deciding variable is scope of adoption:
- As the platform's governance model (projects, environments, approval, audit as the canonical record), Bytebase duplicates the registry, doctor and primitives, and should not be adopted.
- As an execution backend behind an existing primitive (the primitive stays canonical; Bytebase is one implementation of "apply schema change with approval and evidence"), Bytebase complements the platform and removes a large amount of UI/engine work the platform would otherwise build.
- Because Bytebase's own audit log and approval flow are paid, the primitive layer should remain the canonical record of approval and evidence regardless, with Bytebase's API output ingested as supporting evidence - never the other way round.
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:
- 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.
- 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.
- 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:
- Repository and README: https://github.com/bytebase/bytebase
- LICENSE (MIT core and enterprise carve-outs): https://github.com/bytebase/bytebase/blob/main/LICENSE
- LICENSE.enterprise (proprietary, non-OSI): https://github.com/bytebase/bytebase/blob/main/LICENSE.enterprise
- Terms of Service: https://www.bytebase.com/terms
- What is Bytebase: https://docs.bytebase.com/introduction/what-is-bytebase
- Pricing and feature matrix: https://www.bytebase.com/pricing
- Self-host vs Cloud (Pro is cloud-only): https://docs.bytebase.com/get-started/self-host-vs-cloud
- Manage licence: https://docs.bytebase.com/administration/license
- Deploy with Docker: https://docs.bytebase.com/get-started/self-host/deploy-with-docker
- Production setup and sizing: https://docs.bytebase.com/get-started/self-host/production-setup
- Configure external PostgreSQL: https://docs.bytebase.com/get-started/self-host/external-postgres
- High availability: https://docs.bytebase.com/get-started/self-host/high-availability
- Upgrade and metadata backup: https://docs.bytebase.com/get-started/self-host/upgrade
- Supported databases: https://docs.bytebase.com/introduction/supported-databases
- Change workflow: https://docs.bytebase.com/change-database/change-workflow
- Custom approval: https://docs.bytebase.com/change-database/approval
- Roles and permissions: 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
- SQL review policy: https://docs.bytebase.com/sql-review/review-policy
- Security details and telemetry: https://www.bytebase.com/security
- Community feature copy: https://www.bytebase.com/blog/bytebase-vs-cloudbeaver
- Releases: https://github.com/bytebase/bytebase/releases
Alternatives:
- Flyway licence (Apache-2.0): https://github.com/flyway/flyway/blob/main/LICENSE.md
- Flyway commercial editions (Redgate): 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
- Functional Source License definition: https://fsl.software
- Atlas repository (Apache-2.0): https://github.com/ariga/atlas
- Sqitch repository: https://github.com/sqitchers/sqitch
Project context:
- Neo4j Community Edition precedent: ../research/open-questions-options.md (Question 37)
- Playbook primitive framework prior art: ../research/playbook-prior-art.md
- Platform Engineering entry: https://platformengineering.org/tools/bytebase
Odysseus
Odysseus - build vs borrow assessment
Verdict, stated first
The verdict differs by target, and that is the whole finding.
| target | verdict | reason |
|---|---|---|
| Mainframe | SKIP | Duplicates 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 edition | BORROW | The 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:
- Chat and agents - local or API models, tools, MCP, files, shell, skills, memory
- Cookbook - hardware-aware model recommendations, downloads and serving
- Deep research - multi-step web research with source reading and report generation
- Documents - a writing-first editor with AI edits
- Email - IMAP/SMTP inbox with triage, tags and reply drafts
- Notes, tasks and calendar - with CalDAV sync
- Gallery, themes, uploads, web search, presets, sessions and 2FA
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.
| use | position |
|---|---|
| Run it unmodified for a household | fine. Internal use carries no obligation |
| Sell hosting of it | fine, provided source is offered to network users - and it already is, since the project is public |
| Sell inference alongside it | fine, that is a separate service |
| Modify it and offer it to users over a network | you 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
| property | position |
|---|---|
| Runs offline | yes, entirely |
| Local models | first-class: Ollama, LM Studio, vLLM, llama.cpp, with a Cookbook for hardware-aware selection |
| Requires an account | no |
| Requires a cloud service | no |
| Web search | self-hosted SearXNG, not a commercial API |
| Database | SQLite 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:
AUTH_ENABLED=trueby default- A real role split with per-user privileges - see below, this is the important one
- Two-factor authentication
.gitleaks.tomlin the repository, so secret scanning is part of their process- Deliberate handling of
SECURE_COOKIESbehind a proxy - The setup guide states plainly: "Treat it like an admin console."
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
| signal | value |
|---|---|
| Recent commits | through September 2026, so weeks rather than years |
| Default branch | dev, with a curated main |
| Distribution | a Repology packaging badge, so it is in distro repositories |
| Community | an active star history and a contributing guide |
| Provenance | an 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 need | before | with Odysseus |
|---|---|---|
| Chat and a household assistant | not provided | provided, with local models |
| Notes and tasks | not provided | provided |
| Shared calendar | Cal.com | Cal.com, or its CalDAV sync |
| Documents | Stirling PDF | provided, plus an editor |
| not provided | provided, with triage and drafts | |
| Research with sources | not provided | provided |
| Photos and files | MinIO | still MinIO, or its gallery |
| Passwords | Vaultwarden | still Vaultwarden |
| Containers required | 5 plus core | 4, 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:
- 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.
- The resource footprint under load. A four-container SQLite stack is light in principle; actual memory with a local model loaded was not measured.
- Whether the upgrade path preserves data safely. No release notes or migration review was done.
- 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:
- 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/. - Law 4 - no Python. Never, for anything, ever. This is the law with the largest current debt in the estate.
- Law 5 - no emoji, no em-dash, no fancy unicode. Use
[x]not a tick character, and a hyphen not an em-dash. - 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 7 - use subagents whenever possible. The agent system is hierarchical by design; lead agents decompose and delegate.
- Law 6 - do not modify agents or specs without explicit permission. Ask before self-modifying.
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.
| standard | applies to | headline 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 files | edition 2024, no nightly, safe Rust by default, bounded async, container-only verification |
| markdown | all .md | lint-clean at creation, ` |
| makefile | Makefile | lowercase everything, .PHONY on all targets, orchestrates docker rather than building |
| js | **/*.js, **/*.ts | Bun not Node, const by default, ES modules, pino for logs, UI and automation only |
| html | markup | React shop; semantic and accessible; raw .html kept minimal |
| dockerfile | **/Dockerfile | lowercase, multi-stage, digest-pinned, port 80 for first-party, non-root |
| commit-messages | commits | conventional 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:
- Bash must not implement backends. Bash orchestrates tools and containers. First-party backends are Rust.
- 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 standard | current state | severity |
|---|---|---|
| Law 4 - no Python | build-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 npm | the docs site builds with npm run build on host Node | high |
| Law 3 - bun | bun is not installed on the host, so the sanctioned replacement runtime for non-trivial scripting is unavailable | blocking |
| Law 5 - no emoji or em-dash | the published docs use emoji status markers and em-dashes throughout; interfaces/registry.yaml carries emoji icons | medium, cosmetic debt |
| bash standard | collect-registries.sh complies: shebang, set -euo pipefail, camelCase locals, UPPER_SNAKE globals, no function keyword, quoted expansions | compliant |
| 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-YAML | grey 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:
- 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.
- Keep registry sources as YAML and read them with a non-Python parser, if one can be pinned into the verification image.
- 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
- Get bun into a pinned container. No host installation. Establish the verification image the bash standard requires.
- 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.
- Move the docs build off npm.
npm run buildbecomes a bun invocation in the same container. - Vendor-versus-first-party triage. The 3,127
.pyfiles 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. - 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
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
| path | holds | why |
|---|---|---|
registry/ | loadouts, primitives, playbooks, interfaces | the sources of truth the graph is derived from |
graph/ | schema, collector, conformance checks, generated seed | everything needed to build and test the registry graph |
tools/ | pack builder, link checker | the build tooling, in bun, runnable in a pinned container |
docs/ | roadmap documents, pack sources, research | the reasoning, so the bundle is not just the what |
Counts at assembly
| item | count |
|---|---|
| loadouts | 8 |
| primitives | 35 |
| playbooks | 9 |
| playbook steps | 91 |
| registries | 18 |
| graph entries emitted | 84 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
- Bring up the graph:
docker compose up -dinneo4j/, then applyschema.cypherand the generatedregistries.cypherwithcypher-shell. - Regenerate the graph artefacts:
bash graph/collect-registries.sh. - Run the conformance checks:
cypher-shell -f graph/doctor-registries.cypher. Every query must return zero rows. - 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. - 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.