01 / 08Two paths. One trust boundary.
Rune wraps Cargo with a deterministic build path and a separate, budgeted discovery path.
An approved plan replays without a model. Exploration may suggest a candidate, but it cannot edit the acceptance contract or silently enter the build.
- Build from a frozen plan
- Explore only when explicitly asked
- Promote only after independent evaluation
02 / 08Freeze the world that matters.
A plan is bound to the exact source tree, lockfile, compiler identity, policy, and target.
Its ID is the SHA-256 of canonical JSON. Edit a source file and ordinary rune build refuses with a stale-plan reason until you approve a new plan with --freeze.
Why it matters: reproducibility starts by making drift visible.
03 / 08Build without asking an agent.
The normal path replays the approved plan using Cargo’s locked, offline mode.
rune build runs the equivalent of cargo build --release --locked --offline, records an artifact digest, and writes a receipt stating that model calls equal zero.
- Credentials are not read
- The cost ledger is not touched
rune verify rebuilds in a clean target directory
04 / 08Learning is a gated loop.
Recall. Propose. Apply. Evaluate. Retain. Record.
Recipes are ranked by workload, hardware, compiler, ABI, target, and policy fingerprints. Ranking is only a suggestion. A paid proposal reserves its dollar and token budget first; output remains data until tested.
- Candidate edits are hash-checked
- Failure preserves the baseline
- Rejected recipes remain searchable with their failure scope
05 / 08The optimizer cannot grade itself.
The contract, thresholds, and hidden holdout live outside the candidate tree.
Static gates reject new unsafe, dependencies, build scripts, proc-macros, network access, process creation, environment reads, and filesystem writes before candidate code is built.
- At least 30 paired, interleaved samples after warmup
- The 95% CI lower bound must clear the minimum improvement
- Guard benchmarks must stay within tolerance
06 / 08Approve the thing you tested.
Promotion binds approval to the exact artifact, target, compiler, policy, contract, and evaluator version.
An Ed25519 evaluator receipt authenticates the report bytes. A trusted key must be supplied independently of the candidate workspace.
Important: a signature proves provenance and integrity—not correctness, and not a hardened sandbox.
07 / 08Measured, scoped, and falsifiable.
A squared-distance fixture reached a 3.51× geometric-mean speedup with a 95% CI of [3.511, 3.513].
The experiment used 40 interleaved pairs after five warmups, pinned to one core. A candidate that dropped the final partial chunk passed visible tests, then failed the hidden length-7 holdout.
Scope: one small kernel, one session, one x86_64 Linux machine. It is not a benchmark of your code.
08 / 08Suggestions are cheap. Evidence is durable.
Rune turns optimization from an act of faith into a chain of inspectable decisions.
Explain shows the recipe, measurements, and cost behind a decision. Rollback restores the previous approved plan. Cleanup is dry-run by default and quarantines only owned generated objects.
- Similarity suggests
- Measurements decide
- Evidence travels with the artifact