Registry-Driven Methodology — research & design

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


0. The idea in one paragraph

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

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

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


1. What the research says

1.1 The registry tradition

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

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

1.2 Why a graph, not tables

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

  • 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:

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

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

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

Both are noted; neither is silently substituted.

1.3.1 The organisation, assessed repository by repository

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

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

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

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

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

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

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

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

1.4 ⚠️ The licensing constraint that blocks the regulated target

Researched licensing position:

CapabilityCommunity (GPLv3)Enterprise (commercial)
Single instance✅✅
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):

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

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


2. The registry model

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

2.1 The sixteen registries

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

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

2.2 The registry of registries

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

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

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

2.3 Shape

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

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

2.4 The closed-world check — what makes it driven

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

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

3. Prototype — built and run against the live host

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

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

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

Design choices that matter:

  • 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

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

5. Risks

  • 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_provenance finding 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

StepState
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

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