Plan: proposals gate + observed snapshots, and the analyst container
Date: 2026-10-11 Status: complete (both parts applied and verified) Source: helix-foundry-evaluation-2026-10-10.md sections 2.1, 2.2, 2.3, 2.4
Outcome
- Proposals gate:
neo4j/propose.sh- snapshot, lineage, key + property diff, preview report, atomic apply, rollback, audit log,--list. Verified by applying twice and rolling back once. - Observed half now lands: the graph went 186 -> 314 entries, 314 registry edges.
- Two generator defects found and fixed by the first live apply: relation statements did not bind their endpoints across
;(128 unregistered entries), andservice.exposurewas never derived. - Conformance summary 33 -> 91, but the composition changed entirely: the 33 were declared-half/vacuous, the 91 include 40 unrecorded licences and 18 services in no loadout.
interface_without_backing_service(DETAIL) 17 -> 9. - Analyst:
prodg/analyst:1, internal network, read-only, no caps, no egress, loopback via a socat forwarder. Verified health/schema/query + isolation.
Problem being fixed (verified)
doctor-loop.sh applies schema.cypher + registries.cypher only. The observed half (seed.cypher, 129 entries) is generated every loop and never applied, so the graph holds only the declared half (adoption, primitive, interface, playbook, agent, loadout, device, external-dependency, strategy, _meta = 186 entries). Every check that depends on the observed half passes vacuously. Latest report: 33 findings, mostly interface_without_backing_service because the service registry is empty in the graph.
Part 1 - proposals gate + observed snapshots
neo4j/propose.sh- the gate:- regenerate the observation (
index-mainframe.ts, connector = host-index) - write an immutable snapshot to
neo4j/observed/<snapId>/seed.cypherwithobserved_from = "<snapId>"injected on every entry (lineage, evaluation 2.2) - write
observed/<snapId>/meta.json(connector, host, ts, sha256, per-registry counts) - diff proposed vs graph per registry (additions / removals scoped to observed registries)
- write a reviewable proposal report to
data/registry-proposals/proposal-<snapId>.md --apply [snapId]- publish atomically in one transaction, moveobserved/current, write a rollback file, append toaudit.log, re-run conformance, write the applied report- default is preview only; nothing lands without an explicit apply
- regenerate the observation (
neo4j/doctor-loop.sh- apply the last approved snapshot (observed/current/seed.cypher) instead of never applying the observed half. A fresh observation is a proposal; only an approved one is truth.doctor-summary.cyphercheck 2 extended: an asserted fact with noobserved_fromlineage is a finding (evaluation 2.2).
Part 2 - analyst container (evaluation 2.4)
- enable APOC file export on neo4j (config), recreate the container
- exporter: graph -> Parquet via
apoc.export.parquet.query(entries, relations) underdata/analyst/exports/; ISMS corpus -> Parquet documents table via the duckdb CLI prodg/analystimage:oven/bun:1-alpine+ pinned duckdb CLI static binary (Law 4 no Python, Law 10 bun not node)- service: internal network only, loopback port, read-only rootfs, cap-drop ALL, no-new-privileges, memory + pids limits, no credentials
- HTTP API:
POST /query {sql}-> DuckDB read-only over the Parquet, returns rows plus the export snapshot id it read from (citation) - verify with a real query over the exported graph + ISMS
Constraints
Law 3 bash+GNU first, Law 4 no Python ever, Law 5 no emoji/em-dash, Law 10 bun not node.