interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / docs / plans / adaptive-intelligence / inventory / spark-rsi.md

108 lines · 13684 bytes Raw Blame History Source

spark-rsi inventory (Milestone 0, read-only scout)

Repo: ~/workspace/adaptive/spark-rsi, commit 24f412f (PINS.txt confirms main). Nothing edited; no build/test run (reading only). Note: every .crumb in this repo has empty "role": "" fields (src/.crumb, tests/.crumb), so the Crumb gave no role/invariant text. Evidence is source only.

Classification

CapabilityClassKey evidence
Daemon cycle (ledger, holdouts, signer, propose, jail build, judge, supervisor, ratify)Implemented and integratedsrc/daemon.rs:26-612
Observation of the target repoExperimental (weak)src/observe.rs:168-186 (keyword scan + cargo check)
Capability graph / bottleneck rankingImplemented but disconnected from real measurementgraph/mod.rs:171-210; daemon.rs:66-99 literals
Hypothesis contractImplemented and integrated, fed by fake numbersdaemon.rs:112-130
Isolated evaluation (BlindJudge, bwrap, holdouts)Implemented and integrateddaemon.rs:359-383; actor/judge.rs
Signed promotion (receipt v2, exact-artifact binding)Implemented and integratedevaluator/mod.rs:58-257; promotion_gate.rs; daemon.rs:525-556
Production canary observation admissionImplemented, integrated, but never fed (fail-closed)canary_observation.rs; daemon.rs:445-449
Measured execution feed (real canary traffic)Missingdaemon.rs:437-439; no non-test sender of CanaryReport
Supervisor (in-repo)Implemented but disconnected from the observation pathsrc/supervisor/*; daemon.rs:417-435
Cortex clientImplemented and integrated, HTTP onlypropose/cortex.rs:77-110
Cortex store coupling (cortex-rs vs omega CxStore)cortex-rs HTTP API; omega absentsee sec 4
DUAL scarcity readerImplemented but disconnected by design (diagnostic only)daemon.rs:103-109
Meta/tier governance, A/B forkExperimentalsrc/meta/*; daemon.rs:210-270
Soak runnerExperimental, duplicates daemon graph literalssoak/runner.rs:158-191

1. src/daemon.rs main loop

2. src/canary_observation.rs

3. src/evaluator/ and the judge

4. src/propose/cortex.rs

5. Hardcoded capability-graph measurements

Graph nodes are the RSI pipeline's own stages, not the target system being improved. | Where | Literal values (p95 us, RSS KB, error rate) | Real source? | |---|---|---| | daemon.rs:66-69 Observe | 50.0, 1024, 0.0 | None | | daemon.rs:71-77 Propose | 400.0, 4096, 0.25 if drive_score>0.8 else 0.0 | error_rate derived from keyword count (observe.rs:64), not an error measurement | | daemon.rs:78-81 BuildJail | 150.0, 2048, 0.0 | None | | daemon.rs:82-85 JudgeEvaluation | 250.0, 8192, 0.0 | None | | daemon.rs:86-89 SupervisorCanary | 100.0, 4096, 0.0 | None | | daemon.rs:90-93 CortexCommit | 50.0, 1024, 0.0 | None | | daemon.rs:95-99 edges | 400/150/250/100/50 us, freq 1.0 | None | | soak/runner.rs:158-191 | same set plus Graph 120/2048, edges 120 | None | | daemon.rs:420,422,423 supervisor budgets | memory 49152 MB, max latency 1_000_000 us, error rate 0.0 | policy limits, not measurements | | tests (graph/mod.rs:260-272; tests/test_explain_evidence_graph.rs:31-49; fixtures/rsi_kv_cycle.evidence.json) | fabricated kv/scheduler numbers | synthetic by design | Consequence: the top bottleneck and the hypothesis target latency_us with b.latency_p95_us and a 15.0 delta (daemon.rs:124-126) come from these literals. "Propose" is always the hot node unless drive_score changes. No production source feeds CapabilityNode (the only setter is with_resource_metrics, graph/mod.rs:28; no reader of telemetry produces latency). Score weights 0.4/0.4/0.2 are literal (graph/mod.rs:185).

6. Supervisor / executor feed

7. Tests

FileProvesSynthetic?
integration_tests.rsbalance kernel, soul tension, invariants, staging, fail-closed on missing holdouts/signer, end-to-end with candidateMixed
safety_envelope_tests.rswrong-key receipt never promotesSynthetic keys
test_adversarial_containment.rsholdout secrecy, net isolation, root-of-trust, forged receiptReal jail
test_capability_graph_and_hypothesis.rsgraph topology on made-up numbers; live MAX testsSynthetic graph; live MAX needs service
test_cryptographic_improvement_ledger.rshash chain, tamper detect, Merkle+ECDSA, daemon records provenanceReal ledger, synthetic cycle
test_dual_price_reader.rsDUAL golden vectors, hostile inputs, "authority_paths" (diagnostic only)Golden fixtures
test_explain_evidence_graph.rsevidence graph, tampered receipt not a fact, matches tests/fixtures/rsi_kv_cycle.evidence.jsonSynthetic kv graph
test_host_supervisor_ipc.rscanary probation, rollback on defect/latency, unauthenticated worker rejectedSynthetic reports (fixed latencies)
test_max_inference_and_diagnosis.rsMAX client, extraction, Cortex queryNeeds live services
test_meta_improvement_governance.rstiers, operator signature, A/B forkSynthetic
test_no_synthetic_trust_inputs.rsjail blocks net, judge fails closed, paired benchmarks use real child-process metrics, daemon does NOT promote on synthetic canaryReal measurement for lab only
test_objective_evaluator.rsrusage, latency stats, bootstrap, Fisher, six-layerReal math
test_ratifier_branch_only.rsratifier writes review branch only, path/symlink/secret guardsReal git
test_receipt_v2.rsv2 binding, promotion gate, holdout digestSynthetic keys
test_soak_run.rsquarantine after 3 failures, soak preflightSynthetic

Biggest blocker for Milestone 5

There is no authenticated, measured execution feed: daemon.rs:446 passes &[] to admit_production_quota, nothing in the repo produces production CanaryObservations, and the capability graph that drives hypothesis selection is built from hardcoded literals (daemon.rs:66-99). Both ends (what to improve, and proof it improved) lack real measurement.