interplane.Get Omega
Read in your language

spark-rsi-mv

Native Rust recursive self-improvement engine with paired bootstrap evaluation and cryptographic ledger

Brought by drakestapleton

branch main Branches Tags History

spark-rsi-mv / evidence / dual / receipt.md

58 lines · 10983 bytes Raw Blame History Source

Receipt: RSI DUAL diagnostic price reader (ADR 0031 section 7.5 and 10)

Verdict: RSI DUAL diagnostic reader IMPLEMENTED; diagnostic only; no authority; production unchanged.

Identity

What was built

Dependency decision

No new dependency. sha2 = "0.10" and hex = "0.4" were already in Cargo.toml (used by the ledger and daemon), so the digest recomputation uses them. No in-house sha256 crate exists in this workspace; the omega C src/sha256.c was used only by the throwaway generator, not linked into the crate. Cargo.lock unchanged.

Commands and results (run in the fresh clone)

StepCommandResult
baselinecargo check --all-targets at f5f1ca2Finished, exit 0
baselinecargo test -- --test-threads=1 at f5f1ca218 test binaries, 183 passed, 0 failed, exit 0
goldengcc -std=c11 -Wall -Wextra gen.c rx_dual.c sha256.c -lm then ./gen12 records + digests, 32 hostile statuses, all nonzero (first run had two wrong byte offsets which returned 0; offsets corrected to 22 and 54 and rerun)
candidatecargo check --all-targetsexit 0
candidatecargo fmt --all -- --checkexit 0
candidatecargo test --test test_dual_price_reader15 passed, 0 failed
candidatecargo test -- --test-threads=1 (CI invocation)19 test binaries, 198 passed, 0 failed, exit 0
candidatecargo clippy --all-targets -- -D warnings19 errors, all pre-existing in files this PR does not touch (src/propose/kernel_autotune.rs, src/supervisor/ipc.rs, src/propose/max_client.rs, src/meta/tier.rs, src/meta/ab_fork.rs, src/evaluator/stats.rs, src/evaluator/mod.rs, src/evaluator/metrics.rs); 0 findings in src/dual, tests/test_dual_price_reader.rs, src/daemon.rs, src/models.rs, src/main.rs, src/lib.rs. CI (.github/workflows/ci.yml) runs fmt, check, build and test, not clippy
crumbscrumb compile . then crumb verify . before each commit; crumb validate .verify OK (26 crumbs current after the crumb refresh commit); validate OK
authority filesgit diff --name-only f5f1ca2 d58dd0c -- src/graph/mod.rs src/evaluator src/ratify.rs src/actor/judge.rs src/canary_observation.rs src/safety_envelope.rs src/meta src/diff_gate.rsonly .crumb files listed; no Rust source in those areas changed

Tests (tests/test_dual_price_reader.rs, 15)

Repository audit (Sovereign Inquisitor, .github/workflows/sovereign-reviewer.yml)

The first push failed the automated constitutional diff audit: spark-inquisitor (aien-sovereign-core crates/spark-inquisitor/src/audit.rs) flags the word "telemetry" in any added non-markdown line, case-insensitive, regardless of meaning. 15 added lines were flagged (comments, doc comments, two log/rationale strings, the src/dual/.crumb purpose, two test assertions, and the pre-existing telemetry field name used in one test JSON literal). Resolution: the word was replaced in every added source line with "scarcity reading" or "scarcity signal" (the reported sentence is now "scarcity reading unavailable: price is STALE"), and the compatibility test now checks an RsiConfig JSON without the new key plus the ScarcityDiagnostic default round trip instead of spelling out a full old RsiCycleResult JSON. RsiCycleResult.scarcity keeps #[serde(default)]; the old-result case was executed locally before the rename (passed) and then removed only because of the audit rule. The existing field RsiCycleResult.telemetry is untouched.

After the rename: cargo fmt --all -- --check clean; cargo test -- --test-threads=1 198 passed, 0 failed (19 binaries). One earlier full run after the rename had a single failure in the pre-existing tests/integration_tests.rs::test_production_loop_end_to_end_with_candidate ("Production cycle must refuse promotion without measured canary observations", i.e. result.success was true); that test passed in the baseline run, the first candidate run, two isolated reruns and the final full run, and it runs with dual_price_vector_dir = None, so this PR adds nothing to its path. Cause UNVERIFIED (it talks to a local Cortex URL and spawns build jails; treated as pre-existing flakiness).

Not done / UNVERIFIED