Goal
Add the graph schema so per-symbol RC facts hang on the existing :Symbol nodes, reusing the shipped AIMS Layer-A precedent.
Implementation Sketch
:RcRemarknode (id = sha256(repo+function_qualified_name+debug_loc+ssa_value+rc_op)+ the remark fields) +(:Symbol)-[:HAS_RC_REMARK]->(:RcRemark); per-symbol aggregate props (aims_rc_survived_count,aims_rc_eliminated_count,aims_rc_top_cause) mirroring theaims_*Layer-A properties.(:RcRemark)-[:BLAMES_DIMENSION]->(:LatticeValue)joining the cause to the already-seeded:LatticeDimension/:LatticeValueontology (schema.cypher:757).- RC stream schema-version paired-bump: producer
RC_SCHEMA_VERSION<-> importerEXPECTED_RC_SCHEMA_VERSION+ a pin entry, disciplined like the"2.0"plan-bug envelope (but independent of it). schema.cypher:CREATE CONSTRAINT rc_remark_id+CREATE INDEX rc_remark_function_qn(apply via cypher-shell before first ingestion; refresh does not auto-apply schema.cypher).
Spec References
intel_repo/CLAUDE.md §AIMS State on Symbol Nodes(the precedent to copy); CLAUDE.md §Intelligence Graph envelope/paired-bump.
Work Items
- :RcRemark node + HAS_RC_REMARK edge + per-symbol aggregate props + BLAMES_DIMENSION to seeded LatticeValue.
- RC stream schema-version paired-bump (producer RC_SCHEMA_VERSION <-> importer EXPECTED_RC_SCHEMA_VERSION + pin).
- schema.cypher constraint + index for :RcRemark (applied before first ingestion).
Fresh intel (regenerated)
{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “aims-rc-remarks/s-43e68e02” }, “generated_at”: “2026-06-22T01:52:08.884383+00:00”, “graph_state”: { “head_sha”: “d1b2a9dc”, “last_code_import_at”: “2026-06-22T01:50:49.192Z”, “embedding_stale”: false, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:aims-rc-remarks/s-43e68e02] agent-authored dossier”, “degraded”: false, “dossier”: { “objective_symbols”: [], “tiers”: {}, “agent_authored”: true, “difficulty”: { “class”: “routine”, “research_online”: false, “research_mode”: “auto”, “signals”: [], “plan_dir”: “/home/eric/projects/ori_lang/plans/aims-rc-remarks” } } }
(full dossier: intel-fusion-schema—s-43e68e02.intel.json)