Repository navigation
Loki Mode v11.140.0
·
809 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Verify reads unfamiliar repos more correctly.
Verify now handles suites already red on base, runners in multi-module repos and edits inside methods. This is the base for more work on new repos, where Loki does not yet beat raw Opus.
Changed
- Verify recognizes a suite that was already red on base with no parseable test ids, and excuses it only when the head run fails in the identical kind: same exit code, no parseable ids, and the same output once durations, clock times, timestamps and hex addresses are normalized. A new failure, a different message or count, or another exit code still counts as introduced, and the excuse is disclosed on NOT PROVEN (LOKI_E10_BASE_RED_SHAPE=0 opts out).
- Every package that holds a file proving a test runner (go.mod, Cargo.toml, a test file) now gets that runner, not only the package of the first such file, so a multi-module repo whose nested module sorts first no longer leaves the root module with no tests (LOKI_E10_EVIDENCE_PER_PACKAGE=0 opts out).
- An edit inside an indented method now names its enclosing method, so the lean gate and the fail-then-pass proof see the changed symbol instead of "(no declared symbol)" (LOKI_E10_ENCLOSING_DECL=0 opts out).
- Every symbol the task names is either changed by the diff or written up by the model as unchanged with a reason about the code; a reason that only restates the task's hedge does not count (LOKI_E10_NAMED_SITES=0 opts out).
- Intake guard: a plan scope that holds none of the files or symbols the task names is discarded instead of capping the run (LOKI_E10_PLAN_SCOPE_ANCHOR=0 opts out), and all of intake's baseline test runs share one 180 second budget (LOKI_E10_INTAKE_CAP_S sets it, 0 opts out to the per-command caps alone).
- When verify selects no test in a mocha package, each changed file maps to its own mocha test file, at most 8, run through the normal test path (LOKI_E10_MOCHA_TARGETED=0 opts out).
- A test assertion that pins the old behavior the issue explicitly asks to change gets its expected value updated instead of being treated as a spec conflict; every other test protection stays (LOKI_E10_PINNED_TEST_UPDATE=0 opts out).
- A fix that widens a type or value check gets one follow-up turn to keep the inputs that took their own branch before (LOKI_E10_PRECEDENCE_CHECK=0 opts out).
- A test-only edit in a package the change does not otherwise touch, and the task does not name, is reset to base before commit with a NOT PROVEN line naming it (LOKI_E10_SCOPE_TEST_DROP=0 opts out).
- The run's own added or modified files are formatted with the repo's real formatter, resolved the way verify resolves its linter, and never a file whose base text was not already formatter-clean (LOKI_E10_FORMAT_RESOLVE=0 opts out).
- When an issue ranks its possible fixes, Loki implements the first-ranked remedy, checked by one small Haiku call after the implement (LOKI_E10_RANKED_REMEDY=0 opts out; LOKI_E10_RANKED_REMEDY_MODEL sets the model).
- A run whose failures were already red on base is delivered instead of BLOCKED, and the split planner writes its plan.
- LOKI_E10_ATTEMPTS now counts total attempts, not extra attempts: LOKI_E10_ATTEMPTS=3 used to mean 3 extra and now means 3 in all. It stays off by default (one attempt). LOKI_E10_ATTEMPT_MODELS (for example haiku,sonnet) sets one model per attempt, and LOKI_E10_SELECT_REVIEW_MODEL sets the model of the review that picks between attempts (default Sonnet; LOKI_E10_ATTEMPTS_REVIEW_MODEL is its older name).
Fixed
- Loki's own Wall test files no longer ship in the delivered branch: LOKI_COMMIT_WALL now defaults to off (=1 publishes them as before), and the sealed copy and its hash stay in the run directory and the receipt. On the tuning bench, every published Wall file whose run passed the hidden tests failed the judge (3 of 3).
- The small tool-less checks (such as the ranked-remedy check) no longer fail empty under load: they were capped at 50 output tokens, which the CLI turned into an error. A failed tool-less call now records its error class, message, status and timing in the ledger.
- When verify compares a failure to base, it treats only stack paths, line:col, hex ids and durations as noise, never an assertion value.
Measured
- Tuning bench, 19 fair tasks across 5 repos, seed 1: Loki on Haiku merge-ready 18/19 on this build against 17/19 for the earlier acc-143 candidate build (whose changes also ship here) and 16/19 for raw Opus, at $0.0159 per task against $0.4824 for raw Opus. The paired gain over the acc-143 build is one task net (95% CI -0.11 to +0.21), so it is not significant, and this build had 1 false VERIFIED among its 7 exit-0 runs against 0 of 7 before. The test-gaming check flagged nothing.
- Best-of-2 implement attempts were measured on the tuning bench and on held-out repos and added cost with no lift, so one attempt stays the default.
- On repos never used for tuning, the tuning gain does not yet hold: Loki on Haiku does not beat raw Opus there, and this release does not claim it does. This release is the base for the verify work on new repos that comes next.
- No blind-set result is claimed for this release: it ships on the founder's release order, not on the blind gate, and the blind set stays sealed.