Evaluation — Helix Foundry (HelixDB) applied to the Mainframe registry framework
Date: 2026-10-10 Subject: https://github.com/HelixDB/helix-foundry (+ upstream https://github.com/HelixDB/helix-db) Status: assessment, no code change Verdict: adopt patterns selectively; trial HelixDB in a lab; do not insert Foundry or HelixDB into the production conformance path.
1. What the subject actually is (verified)
Helix Foundry — "your company's data, connected into one ontology, on your own computer." A local-first data workspace, single-user, no accounts, no sign-in.
| Layer | Product |
|---|---|
| Graph / ontology store | HelixDB (Rust, labeled property graph + native vector + BM25) |
| Analytics / SQL | DuckDB, run in an isolated executor with no network, no credentials, no capabilities, memory + process limits |
| Ingestion | Connectors: Postgres, MySQL (CDC where allowed), Neon/Supabase/PlanetScale, Stripe, WorkOS, PostHog, REST pagination, S3, CSV/JSON/JSONL/Parquet, batch ingestion API |
| Storage of record | Immutable Parquet snapshots with profiles, key candidates, sensitivity hints, schema-drift review, version history |
| Reasoning | Local model by default (qwen3:4b via Ollama, digest-pinned), Claude/OpenAI optional; AI returns executed SQL with snapshot citations |
| Governance of change | Proposals queue with before/after previews, bounded model repair, stale-proposal detection, atomic publication, definition rollback, audited edit overlays that survive rematerialisation |
| Access | Workspace-scoped API tokens, read-only unless write granted; loopback Host check; Origin check on browser writes |
HelixDB upstream — Apache-2.0, ~6k stars, Rust, first released Feb 2025, OLTP graph DB with object storage as the source of truth (S3-compatible / local), ACID per request, serializable snapshot isolation, prefiltered vector search that respects a traversal or a tenant property. Official SDKs Rust/TS/Python/Go; queries are built with typed SDK builders or raw JSON to POST /v2/query. HelixQL/HQL is archived. No RBAC, SSO, or audit logs in the OSS edition — listed as roadmap for Helix Cloud. Vendor is YC-backed; Helix Cloud is the commercial arm.
Foundry repo state — one commit, no LICENSE file at the root, no published release. It is a demo-grade artefact: read the docs for the model, do not vendor the code.
2. Where it maps onto this framework — genuinely useful
2.1 The collector becomes a connector with versioned snapshots
Today /opt/prodg/neo4j/collect-registries.sh reads hand-maintained YAML (/root/interfaces/registry.yaml, loadouts.yaml, primitives.yaml, playbooks.yaml, adoption.yaml, external-dependencies.yaml, agents.yaml) plus the Hermes profile dir. Its sources are declarations, not the live platform — so the observed half of the graph is thin, and seed.cypher is emitted but never applied (see §4).
Foundry's model is the correction: a connector reads the live system, produces an immutable, versioned snapshot with a profile and a drift review, and a failed collector shows up as a missing new version rather than as an empty result. That is exactly the failure mode recorded in the framework's own pitfall list ("indexer finds far fewer entries than expected … an empty result reads as a finding rather than as 'there are none'").
Action: give collect-registries.sh the Foundry semantics — one connector per source (Docker API, Postgres pg_catalog, Cloudflare API, LiteLLM /v1/models, Wazuh API, OpenBao KV list, Talos/kubeconfig), each writing a timestamped observed snapshot under /opt/prodg/neo4j/observed/<connector>/<ts>/, with the previous snapshot retained for drift comparison. No new service required; it is a discipline change plus a directory layout.
2.2 Every fact already carries source; Foundry shows how to make it evidence
The framework's rule is "an unattributed claim is not evidence." Foundry goes one step further: every AI answer ships the executed SQL and the snapshot it read from. Translated to the registries: every graph fact should name the snapshot it was derived from, not just the collector name. Then missing_provenance stops being a boolean and becomes a chain that terminates in a queryable observation.
Action: add observed_from (snapshot id + timestamp) alongside source, and extend check 2 to flag an asserted fact with no snapshot lineage. This is the cheapest high-value transfer in the whole evaluation.
2.3 The proposals queue is the missing link "editing a registry ≠ applying it"
The framework already states this as a known hole. Foundry's answer is a workflow, not a database: generated change → evidence + query preview → human review → atomic publication → rollback.
Action: wrap collect-registries.sh + seed.cypher application behind a proposal gate: emit the Cypher, diff it against the current graph, write a preview report, require an explicit approve to apply. This also closes the existing gap where seed.cypher is never loaded — the reason it was never loaded is that there is no safe, reviewable apply path. Build that path and the vacuous :Service checks (check 4, service_without_loadout) become real.
2.4 The isolated executor is the template for the analyst, and it is a real control
"No internet, no connector credentials, no Linux capabilities, memory and process limits" for AI-generated SQL is precisely the model the Mainframe needs for a read-only analyst. DuckDB is the right engine for the tabular half of the estate (registry exports, doctor reports, ISMS evidence) and it is trivially isolateable in a container on the internal network. This is the one component worth rebuilding almost verbatim.
Action: an analyst service — DuckDB over Parquet exports of the registry graph and the ISMS corpus, loopback/internal-only, no credentials, AI-generated SQL executed there and returned with citations to the exported snapshot. Very high value for an auditor-facing surface, no new store.
2.5 Reference checks the framework should copy outright
From AGENTS.md/scripts/doctor.ts, all directly applicable to the Mainframe's own runbooks:
- Health endpoint that proves a dependency, not just liveness —
/api/healthreturns ok only because the app initialised its HelixDB schema before listening. The Mainframe's healthchecks should assert a dependency has answered, and a VERDICT block should be mandatory, which the doctor loop already does. - Refuse-a-newer-schema startup and the coupled-pair rule (
PUBLIC_PORTandPUBLIC_ORIGINmust move together, else every save 403s). The Caddy/vhost analogue for the Mainframe: host and origin are one decision, documented as one step. - Never rotate the encryption key by replacing the value — the OpenBao unseal-key/root-token handling should state this explicitly.
- The agent runbook as a first-class artefact (preflight → start → wait → verify → report → troubleshooting table → "never do" list). The Mainframe has playbooks; this is the shape a component runbook should take, and it is what makes an agent safe to hand a stack to.
- Digest-pinned model with a documented failure ("Default model digest does not match the tested release" → fall back to hosted). The LiteLLM/GLM pinning should carry the same documented failure path.
3. Where it does not fit — do not force it
- Foundry contradicts the Mainframe's exposure model. It is single-user with no authentication, bound to
127.0.0.1, and its own runbook says: never put it behind a reverse proxy, tunnel or port forward; never publish the internal ports; never install on a shared or multi-user server. Running it on the VPS behind Caddy/Tailscale would violate its documented security model and there is no sign-in to compensate. Not a platform component. - A second ontology store is the framework's cardinal sin. If Foundry builds its own ontology of Mainframe data, the registries and that ontology will drift — the exact failure the framework exists to prevent. Foundry may be a lens (run on Mitch's laptop, read-only DB creds over Tailscale), never a second source of truth.
- HelixDB cannot be a drop-in Neo4j replacement for the conformance path. The checks live in plain
.cypher, run bydoctor-loop.shviacypher-shell, deliberately with no build step. HelixDB has no query language any more (HQL archived); queries are SDK builders overPOST /v2/query. Portingschema.cypher,doctor.cypher,doctor-registries.cypher,doctor-summary.cypherandseed.cypherwould introduce a TypeScript/Python build step into the audit path — a regression, and a direct violation of the stated design rule. - HelixDB does not fix the access-control gap that actually matters here. Neo4j Community lacks RBAC and fine-grained access control — the framework's open concern for separation of duties. HelixDB's OSS edition also lacks RBAC, SSO and audit logs (roadmap, cloud-only). Swapping one for the other trades a known gap for a smaller, younger, single-vendor version of the same gap. Pre-1.0, pinned at
v0.0.6, one vendor, Feb 2025. - Foundry assumes "one person, one computer." The framework's stated ambition is a bank/government/defence-grade multi-tenant estate with editions and tenancy models. Foundry is the opposite corner of the design space; its tenancy answer is explicitly "one owner, no accounts."
- Repo provenance. One commit, no LICENSE file, no release, no validation beyond a self-published
docs/VALIDATION.mdfrom Sept 2026. For an estate that claims evidence over assertion, that is study material, not a dependency. (Compare: theadoptionregistry already gates on licence and on clean-room boundary — Foundry's own missing licence is exactly what that gate is for.)
4. The honest gap in the framework that this does not close
Verified on this host today:
doctor-registries.cypherchecks 4–7 and 15–16 fire on the observed half. The latest report/opt/prodg/data/registry-reports/doctor-20261010-132810.txtends=== VERDICT === findings: 33, and the bulk of them areinterface_without_backing_service(calcom, wazuh, openbao, cryptgeon, docuseal, docs, litellm, grafana, stirling-pdf, passbolt, vaultwarden, control-room, ios_mobile, web_dashboard) — i.e. the interface registry is populated while the service registry is not.- The cause is known and recorded: the collector emits
seed.cypher(the observed half) but the loop applies onlyschema.cypherandregistries.cypher. Soservice_without_loadout: 0is a vacuous pass, not a clean estate.
Foundry does not fix this. It only makes the missing piece visible: there is no reviewable apply path, so the observed half never lands. Fix that first — proposals gate (§2.3) + observed snapshots (§2.1) + snapshot lineage (§2.2). Then 33 findings become a real signal instead of a standing background number.
5. Recommendation
Adopt now (no new dependency, no new service):
- Observed snapshots per connector, timestamped, retained for drift (§2.1).
observed_fromsnapshot lineage on every fact; extend check 2 (§2.2).- Proposal/review gate in front of registry application, with atomic apply and rollback (§2.3).
- The isolated DuckDB analyst over Parquet exports, internal-network only (§2.4).
- Runbook and healthcheck patterns from §2.5 folded into the Mainframe's component runbooks.
Trial, time-boxed and off the production path: 6. HelixDB in a lab container (ghcr.io/helixdb/helixdb, pinned by digest) loaded with the registries read-only, to test one hypothesis the framework genuinely lacks an answer for: semantic search over the registry + ISMS corpus — "which primitives apply to a compromised identity?" as a traverse-then-search query. Neo4j Community cannot do that in one query; HelixDB can, natively, in one transaction, and prefiltered search can be scoped to a traversal. If that proves valuable, it becomes the retrieval layer beside the conformance layer — the .cypher doctor stays exactly where it is. Kill it if it is not clearly better than a pgvector/LanceDB index (or than plain BM25 over the ISMS corpus, which is free). 7. Foundry itself on Mitch's laptop, pointed at a read-only Postgres role over Tailscale, purely as an exploration surface. Explicitly not as a platform component and not wired into the mesh, Caddy, or any registry.
Reject: 8. HelixDB as the registry/conformance store; Foundry as a hosted Mainframe service; any second ontology store.
Licence note: HelixDB core is Apache-2.0 and free to self-host/embed — compatible with the stated open-core model (free core, paid support/hosting/inference). Foundry's repository carries no LICENSE file; do not copy its code.