spark-rsi-mv
Native Rust recursive self-improvement engine with paired bootstrap evaluation and cryptographic ledger
Brought by drakestapleton
spark-rsi-mv / CONTEXT.md
| 1 | # spark-rsi domain glossary |
| 2 | |
| 3 | Vocabulary for the recursive self-improvement engine. Terms here are the canonical names; code and docs should use |
| 4 | them unchanged. |
| 5 | |
| 6 | ## Cycle and measurement |
| 7 | |
| 8 | - **Cycle**: one run of the RSI pipeline over a target repository, from observation to ratification. |
| 9 | - **Stage**: one named step of a cycle: Observe, Propose, BuildJail, JudgeEvaluation, SupervisorCanary, CortexCommit. |
| 10 | - **Stage sample**: the measured duration and outcome of one stage in one completed cycle, with its workload key and |
| 11 | execution-profile fingerprint. |
| 12 | - **Partial cycle**: a cycle that failed or was cancelled before completing. Its samples are kept but never eligible |
| 13 | for ranking. |
| 14 | - **Workload key**: what makes two cycles comparable: target repository identity, effective execution configuration, |
| 15 | model name. The target commit is provenance, not part of the key. |
| 16 | - **Execution-profile fingerprint**: the machine and configuration identity stamped on every sample. Samples with |
| 17 | different fingerprints are never aggregated. |
| 18 | - **Measured**: a value derived from stage samples that meet the sufficiency rule. |
| 19 | - **Unavailable**: an explicit state meaning no qualifying measurement exists. Never represented by zero. |
| 20 | - **Declared**: a value asserted rather than measured. Not used for production ranking. |
| 21 | - **Cold start**: ranking when stages lack sufficient samples; uses graph topology only. |
| 22 | - **Bottleneck ranking**: the ordered list of stages by composite score, ties broken by stage id. |
| 23 | |
| 24 | ## Candidate and canary |
| 25 | |
| 26 | - **Candidate**: a proposed change plus the artifact built from it in the build jail, identified by digest. |
| 27 | - **Generation**: one staged candidate under supervisor control, identified by generation id. |
| 28 | - **Canary**: the supervised trial of a generation against the canary workload. |
| 29 | - **Canary adapter manifest**: the declaration a target repository ships to say how its built artifact can be |
| 30 | exercised as a worker. A target without one is not eligible for canary. |
| 31 | - **Worker**: the generation's process launched by the supervisor and spoken to over its generation socket. |
| 32 | - **Canary workload**: the digest-pinned set of requests, expected outcomes and deadlines the supervisor issues. |
| 33 | - **Request**: one challenge the supervisor sends to the worker. The supervisor records that it issued it. |
| 34 | - **Observation**: the supervisor's verified record of one issued request and its checked outcome, with |
| 35 | supervisor-measured elapsed time. The only thing that counts toward the quota. |
| 36 | - **Self-report**: anything the worker says about its own success or latency. Diagnostic only. |
| 37 | - **Observation log**: the per-generation append-only record of observations. |
| 38 | - **Sealed**: an observation log closed with a final digest record and committed to the ledger. |
| 39 | - **Quota**: the configured minimum number of qualifying observations. Judged only by the quota validator. |
| 40 | - **Durable**: the state a generation reaches only after quota admission, safety envelope and the promotion gate. |
| 41 | - **Rollback**: returning to the parent generation on failure or insufficient evidence. |
| 42 | |
| 43 | ## Verification words shared with the wider AIEN system |
| 44 | |
| 45 | - **Closure**: the existing dependency-graph proof check (`verify-closure`). Not about objectives. |
| 46 | - **Discharge**: an objective whose required outcomes all have qualifying evidence. Planned, not implemented. |
| 47 | - **Obligation**: one required outcome of an objective. Planned as an extended proof Gate requirement. |
| 48 | - **Receipt**: a signed evidence record from the proof or evaluation protocol. |
| 49 | - **Ledger**: this repository's hash-chained record store with signed checkpoints. |