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 / docs / plans / 2026-10-12-evidence-driven-rsi-cut.md

218 lines · 15379 bytes Raw Blame History Source

Evidence-Driven RSI: the M1 + M2 cut

Status: approved plan, no code yet. Decided by Drake in a three-round design grilling on 2026-10-12. Supersedes, for implementation purposes, the broader brief "AIEN Development Brief: Evidence-Driven Autonomous Engineering".

The one rule above everything

No candidate-controlled statement can independently establish that a canary passed.

A candidate may answer a challenge. The supervisor must have sent that challenge, must measure the elapsed time itself, must compare the answer against independently defined expectations, and must durably commit the verified observation. Only the existing admission and promotion authorities act on that evidence. Tests that let a worker self-report success into production admission are defects and must be rewritten.

**Every accepted canary observation must be demonstrably tied to the exact executable that was built, independently checked by the supervisor, and admitted through one authoritative promotion path.**

Fixture qualification and production safety qualification are different things. Ten verified fixture requests prove the canary mechanism works. They do not establish that every existing safety evaluator is ready to authorize production changes; see the safety-envelope defect below.

Scope

In scope, this cut only:

Deferred, not authorized here: objective discharge (M3), residual-unknown registry (M4), RSI and explanation interoperability (M5), REA investigation adapter (M6, filed as a mind-map idea).

Pinned baseline

RepositoryCommit
spark-rsif74a7dbdcd06
aien-sovereign-coreb323258396a9
aien-protocols5c2316954e16
aienos5cfba1bba3f8

Verified defects at the baseline

Decisions

Terminology

M1 Measurement

M2 Execution

M2 Admission

Narrow contract freeze

Implementation sequence and ownership

  1. Contract foundation (orchestrator, before any worker starts): adapter manifest format, wire protocol, observation schema and canonical encoding, durable log format, sealed-log hand-off interface to the quota validator, golden tests.
  2. M1 Measurement (worker A): stage instrumentation, sample log, compatibility filtering, cold start, deterministic ranking, explanation marks unavailable values via the existing MissingDoc reason field.
  3. Harden the supervisor (worker B, first half): strict readiness, generation binding, per-connection session authentication, no active.sock switch on Ready, memory-read failure reverts.
  4. M2 Execution (worker B, second half): fixture crate implementing the adapter, supervisor-driven timed requests, independent result checking, replay protection, observation storage and sealing.
  5. M2 Admission (worker C, the only worker that edits src/daemon.rs): build-artifact identity chain, wire spawn_worker and the request loop into run_cycle, remove premature durability, ledger commitment, quota integration with verified-success checks, canary applicability policy, rewrite self-report tests.
  6. Qualification: adversarial CI plus one real DGX Spark run against the fixture crate, with the evidence package attached to the pull request and remaining production limitations stated in the report.

Workers run on Sonnet. Daemon changes land serially: A, then C.

Qualification fixture

A dedicated Rust fixture crate inside this repository implementing the adapter protocol. It must be able to: answer correctly, answer wrongly, fabricate self-reported success, send duplicate responses, replay after restart, time out, return a wrong digest, and attempt premature promotion. Defaults for the fixture run: 10 supervisor-issued requests, 2-second deadline each, both configurable. The real run must include at least one failing request.

A passing fixture run qualifies the canary execution pipeline. It does not qualify RSI's ability to improve itself, and it does not qualify the safety envelope as a production evaluator. Both are later targets, with spark-rsi as the first real adapter.

Evidence package for the qualification pull request

Pinned workload manifest and digest, complete sealed observation log and its digest, matching ledger commitment, candidate artifact identity, quota decision, safety-envelope and promotion decisions, the CI run showing the exact revision and tests executed.

Acceptance

Delivery status (2026-10-12)

All six steps are implemented on the integration branch feat/evidence-driven-rsi-cut (pull request #44, stacked on the plan pull request #38):

StepDeliveryTicket
1 Contract foundationsrc/canary/, docs/CANARY-CONTRACT.md, golden tests (b13ea46)#39
2 M1 Measurementsrc/measure/, measured graph, exploratory hypotheses (PR #45)#40
3 and 4 Supervisor hardening, M2 executionsrc/supervisor/canary_exec.rs, fixtures/canary-target (PR #46)#41
5 M2 Admissionidentity chain, executor and quota wired into run_cycle (PR #47)#42
6 Qualificationexamples/canary_qualification.rs, evidence/rsi-cut-2026-10-12/REPORT.md#43

The qualification report states what the fixture run qualifies and the remaining production limitations. The one that matters most: the promotion gate refuses every candidate until the separate judge is wired in (#35), so nothing becomes durable in this cut. That is fail closed by design.