Goal
Ingest the remark stream into the graph mirroring the AIMS Layer-A path, with incremental sync and a staleness flag.
Implementation Sketch
- Ingestion import phase in
import_code_graph.py:main()(symmetric with spec-clause/error-code/AIMS-state imports); joinRcRemark.function_qualified_name -> :Symbol.qualified_name(repo='ori'), exact MATCH; unmatched remarks bump a non-fatalmissing_targetscounter. - Incremental:
sync_ori_graph.py:run_incremental()glob-trigger on touchedcompiler/ori_arc/src/**;:Repo.last_rc_remarks_at+rc_remarks_staleflag inintel-query.sh status(parallel toaims_state_stale). - Producer-run wiring:
oric --emit-rc-remarkson the burden-sole path over the fixture corpus; graceful degradation (graph down -> exit 0).
Spec References
intel_repo/CLAUDE.md §AIMS-State Freshness Invariant(extend to the RC-emission surface).
Work Items
- Ingestion import phase mirroring AIMS Layer-A; qualified_name exact-MATCH join + non-fatal missing_targets counter.
- Incremental sync trigger on compiler/ori_arc/src/** + last_rc_remarks_at / rc_remarks_stale freshness flag.
- Producer-run wiring on the burden-sole path; graceful degradation when the graph is down.
Fresh intel (regenerated)
{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “aims-rc-remarks/s-b0326b49” }, “generated_at”: “2026-06-22T02:00:06.012851+00:00”, “graph_state”: { “head_sha”: “d1b2a9dc”, “last_code_import_at”: “2026-06-22T01:53:28.347Z”, “embedding_stale”: false, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:aims-rc-remarks/s-b0326b49] 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-ingestion—s-b0326b49.intel.json)