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 | ✅ | ✅ |
| Clustering / HA | ❌ | ✅ |
| Online backup & restore | ❌ | ✅ |
| Role-based access control | ❌ | ✅ |
| Sub-graph access control | ❌ | ✅ |
| Multiple user databases | ❌ | ✅ |
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) | ✅ complete |
| Registry schema + meta-registry | ✅ written (schema.cypher) |
| Indexer + generated seed & doctor | ✅ 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 |