loki-mode 11.138.1 → 11.139.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/SKILL.md +2 -2
  2. package/VERSION +1 -1
  3. package/dashboard/__init__.py +1 -1
  4. package/docs/CLI-REFERENCE.md +1 -1
  5. package/docs/INSTALLATION.md +1 -1
  6. package/docs/dev/architecture-reference.md +4 -3
  7. package/loki-ts/dist/loki.js +1465 -1465
  8. package/mcp/__init__.py +1 -1
  9. package/package.json +2 -2
  10. package/packages/control-plane/dist/server.js +65357 -65327
  11. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  12. package/web-app/dist/assets/{AdminPage-DETlTnx5.js → AdminPage-jtODIZAt.js} +1 -1
  13. package/web-app/dist/assets/{Avatar-C-DUmRLi.js → Avatar-H6kG2p-Z.js} +1 -1
  14. package/web-app/dist/assets/{Badge-C_Q0_FfQ.js → Badge-dvq7uYlK.js} +1 -1
  15. package/web-app/dist/assets/{Button-DgnJIXeL.js → Button-BpCs2ymD.js} +1 -1
  16. package/web-app/dist/assets/{CockpitPage-BxCNRyY5.js → CockpitPage-07_s_vDT.js} +1 -1
  17. package/web-app/dist/assets/{ComparePage-BKxzW14M.js → ComparePage-JZ_tqDD7.js} +1 -1
  18. package/web-app/dist/assets/{ErrorBoundary-BHRXRXT3.js → ErrorBoundary-RPeSycKt.js} +1 -1
  19. package/web-app/dist/assets/{EvidenceReceiptPanel-SKmHS85W.js → EvidenceReceiptPanel-C-RfDk9Y.js} +1 -1
  20. package/web-app/dist/assets/{GitHubIssuesPanel-APWVHbeV.js → GitHubIssuesPanel-C4rzHzQU.js} +1 -1
  21. package/web-app/dist/assets/{GitHubPRsPanel-oRX15nsU.js → GitHubPRsPanel-YEdboNBe.js} +1 -1
  22. package/web-app/dist/assets/{HomePage-Cbf_cKZ_.js → HomePage-B-ydKDOS.js} +2 -2
  23. package/web-app/dist/assets/{LoginPage-9FHgR-yC.js → LoginPage-Kk5BXqtE.js} +1 -1
  24. package/web-app/dist/assets/{MagicPage-CDlbo3db.js → MagicPage-DjAQZxUp.js} +1 -1
  25. package/web-app/dist/assets/{MetricsPage-Bs744bVC.js → MetricsPage-BWBhkKm3.js} +1 -1
  26. package/web-app/dist/assets/{NotFoundPage-Bnhras8l.js → NotFoundPage-DYk7XnfY.js} +1 -1
  27. package/web-app/dist/assets/{ProjectPage-0ygbH3iz.js → ProjectPage-Ct3U8d6B.js} +3 -3
  28. package/web-app/dist/assets/{ProjectsPage-BbsPZv8j.js → ProjectsPage-D5LNFNgR.js} +1 -1
  29. package/web-app/dist/assets/{SettingsPage-DV92ywbD.js → SettingsPage-BSUvkHRg.js} +1 -1
  30. package/web-app/dist/assets/{ShowcasePage-DOd_eXQF.js → ShowcasePage-cjK3oiWS.js} +1 -1
  31. package/web-app/dist/assets/{SystemSettingsPage-QLZTCBib.js → SystemSettingsPage-CqzpIcJZ.js} +1 -1
  32. package/web-app/dist/assets/{TeamsPage-CsWEtv2l.js → TeamsPage-BijziNIs.js} +1 -1
  33. package/web-app/dist/assets/{TemplatesPage-COgikptr.js → TemplatesPage-BRBVRhPF.js} +1 -1
  34. package/web-app/dist/assets/{TerminalOutput-DCMLfdHT.js → TerminalOutput-BMlB6qgt.js} +1 -1
  35. package/web-app/dist/assets/{activity-BzG1eYey.js → activity-CXniysN_.js} +1 -1
  36. package/web-app/dist/assets/{bell-CMJ5Im8Q.js → bell-BpAF2cGg.js} +1 -1
  37. package/web-app/dist/assets/{bot-Cn3EJi2J.js → bot-DOaFRkHH.js} +1 -1
  38. package/web-app/dist/assets/{check-QRWwDi4V.js → check-zFtYcq5D.js} +1 -1
  39. package/web-app/dist/assets/{chevron-left-D5j5JtQ6.js → chevron-left-B4VXdl63.js} +1 -1
  40. package/web-app/dist/assets/{circle-alert-iVNYYn4r.js → circle-alert-dffDY3lc.js} +1 -1
  41. package/web-app/dist/assets/{clock-DzRvWxs2.js → clock-BAVVykfZ.js} +1 -1
  42. package/web-app/dist/assets/{cloud-By-tQCkz.js → cloud-C_gcDus6.js} +1 -1
  43. package/web-app/dist/assets/{code-xml-BjO9r9Cl.js → code-xml-ZrMx0o2t.js} +1 -1
  44. package/web-app/dist/assets/{database-BewH1dKI.js → database-BXzQLO2m.js} +1 -1
  45. package/web-app/dist/assets/{dollar-sign-DJtGbkJc.js → dollar-sign-B4FRzesC.js} +1 -1
  46. package/web-app/dist/assets/{file-code-corner-TkSskN-Z.js → file-code-corner-7DVYtgwI.js} +1 -1
  47. package/web-app/dist/assets/{file-plus-B4YpWx1A.js → file-plus-Q-mb47pO.js} +1 -1
  48. package/web-app/dist/assets/{globe-D3wFFrna.js → globe-CHWygSVz.js} +1 -1
  49. package/web-app/dist/assets/{hammer-B67JxxQ9.js → hammer-fF96WcCX.js} +1 -1
  50. package/web-app/dist/assets/{index-CVUkgAwP.js → index-C6S2czMH.js} +3 -3
  51. package/web-app/dist/assets/{layers-DlLhBWD_.js → layers-wNvjKZxj.js} +1 -1
  52. package/web-app/dist/assets/{loader-circle-8bQArUTF.js → loader-circle-TNNUU4Vp.js} +1 -1
  53. package/web-app/dist/assets/{lock-CdVvnR0M.js → lock-ONDlSN5z.js} +1 -1
  54. package/web-app/dist/assets/{package-0onj3FQw.js → package-itd_dmpo.js} +1 -1
  55. package/web-app/dist/assets/{plus-B6FvYKxN.js → plus-wz8cb6su.js} +1 -1
  56. package/web-app/dist/assets/{refresh-cw-lZa0zJBf.js → refresh-cw-Ddchs-pF.js} +1 -1
  57. package/web-app/dist/assets/{rotate-ccw-CIFqzR7C.js → rotate-ccw-C0t4Hbq2.js} +1 -1
  58. package/web-app/dist/assets/{scroll-text-CYcJHshd.js → scroll-text-CgXZq0KV.js} +1 -1
  59. package/web-app/dist/assets/{server-B_P_rTbc.js → server-CNAbZ5mD.js} +1 -1
  60. package/web-app/dist/assets/{shield-alert-CNIhYgC_.js → shield-alert-C4atr8M0.js} +1 -1
  61. package/web-app/dist/assets/{thumbs-up-C9Vy8-Ze.js → thumbs-up-CtOVJ2-w.js} +1 -1
  62. package/web-app/dist/assets/{trash-2-B0tjrB9V.js → trash-2-CNWZa26a.js} +1 -1
  63. package/web-app/dist/assets/{trending-down-LpZvkXSl.js → trending-down-BQ9GpDnf.js} +1 -1
  64. package/web-app/dist/assets/{trending-up-B9IGa6vJ.js → trending-up-jtsRG0TV.js} +1 -1
  65. package/web-app/dist/assets/{upload-C6AhmMKs.js → upload-C1Rxb2Gu.js} +1 -1
  66. package/web-app/dist/assets/{usePolling-BSq768xd.js → usePolling-Bd-Eo5wk.js} +1 -1
  67. package/web-app/dist/assets/{user-CjYVYJmb.js → user-CqNKv1gV.js} +1 -1
  68. package/web-app/dist/index.html +1 -1
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: loki-mode
3
3
  description: Runs an autonomous software factory that knows what it is supposed to deliver and proves it did, with a signed receipt. Use when the user says Loki Mode or asks to build, fix or verify software autonomously.
4
4
  ---
5
5
 
6
- # Loki Mode v11.138.1
6
+ # Loki Mode v11.139.0
7
7
 
8
8
  **Current entry points (Loki 10 engine):** `loki "<task>"`, `loki owner/repo#N` and `loki quick "<task>"` run the Loki 10 engine and end with a signed receipt (`loki verify`). `loki backlog owner/repo --all` runs many issues in parallel. Guide: `docs/v10/GUIDE.md`. The skill instructions below, and `loki start`, describe the previous bash loop. PRD-file starts (`loki start ./prd.md`) and the opencode provider still run on it until FC38-SWEEP ports them; the legacy-engine command and the LOKI_ENGINE switch remain removed. Prefer `loki owner/repo#N` for issues.
9
9
 
@@ -461,4 +461,4 @@ Implemented, planned and deprecated items, with the version each landed in: `CHA
461
461
 
462
462
  ---
463
463
 
464
- **v11.138.1 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
464
+ **v11.139.0 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.138.1
1
+ 11.139.0
@@ -7,6 +7,6 @@ Modules:
7
7
  control: Session control helpers (status, atomic writes, origin check)
8
8
  """
9
9
 
10
- __version__ = "11.138.1"
10
+ __version__ = "11.139.0"
11
11
 
12
12
  __all__ = ["__version__"]
@@ -1,6 +1,6 @@
1
1
  # CLI reference
2
2
 
3
- Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.138.1. Do not edit by hand.
3
+ Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.139.0. Do not edit by hand.
4
4
  Hidden and legacy-only commands are omitted; see `docs/CLI-INVENTORY.md` for the full inventory.
5
5
 
6
6
  | Command | Description |
@@ -2,7 +2,7 @@
2
2
 
3
3
  Loki Mode, by [Autonomi](https://www.autonomi.dev/), turns a spec or an issue into a verified pull request with a receipt you can check. This page covers installing it, a first run, and the options around it.
4
4
 
5
- **Version:** v11.138.1
5
+ **Version:** v11.139.0
6
6
 
7
7
  **Engine note:** `loki start` is the primary command. `loki start`, `loki "<task>"`, `loki owner/repo#N` and `loki quick` all run the Loki 10 engine, whatever the flag order or input form (PRD file, issue ref, task or one-word brief). The previous loop runs only on `--engine legacy`, `LOKI_ENGINE=legacy`, or for one call when a flag Loki 10 cannot honor is present. See the [user guide](v10/GUIDE.md) and the [5-minute quickstart](QUICKSTART.md).
8
8
 
@@ -133,8 +133,9 @@ These knobs together implement the RARV-C (closure) loop: findings -> override c
133
133
  - `LOKI_E10_SCAFFOLD` -- release-note fragment writer (on by default; `=0` opts out). Right before the first verify, when the implement stage ended `done` and the repo keeps changesets (`.changeset/config.json`) or towncrier fragments, and the diff carries no fragment, Loki writes one with no model call: the package of each changed file (public workspace packages only, config `ignore` honored) or `<issue>.<type><ext>` named from the task number and the repo's own fragments, the body from the task title plus one sentence of the implement summary, quote style and trailing period from the newest real fragment. Nothing is written when the task says no changelog, the title is an internal change (chore, refactor, docs, ci, deps), only tests or docs changed, or the type or issue number is unclear; `changeset status` / `towncrier build --draft` remove a fragment they reject. Emits `scaffold.applied`. Whenever it writes a fragment, the receipt (not-proven list) and the PR body both say: "Loki added <path> as the release note for this change; delete it if this change needs no release note (LOKI_E10_SCAFFOLD=0 turns this off)." (`fragmentNoticeLine`). Code: `writeReleaseNoteFragment` in `loki-ts/src/project_model/conventions.ts`; tests in `tests/min/context-pack.sh`.
134
134
  - `LOKI_E10_ATTEMPTS` -- parallel attempts after a red first attempt (EXP-0010). When the first implement attempt ends with the repo's checks red (fix rounds included), k more independent attempts run in parallel on the same model, each in a detached worktree in its own temp directory with a different instruction (smallest change, test first, read the covering tests first). Each finished attempt is scored on the shared impacted-test set in the primary tree; the first that passes all of it stops the others; otherwise `e10ext/select.ts` ranks them (repo checks green, fail-then-pass proof, fewest files outside the task, smallest diff, the first attempt last). An attempt that loosens an existing test is disqualified. Core re-verifies the winner's tree. Opt-in: unset or `0` is off; `on`/`true`/`yes` is k=2; a whole number 1-5 sets k on any model; anything else is off. Fires only when a check the change introduced is failing (not a full-suite or pre-red failure alone). Shares the run's `--max-cost` cap and time cap; needs enough run time for one window (90 s) plus the re-verify. Journal event `attempts.selected`, receipt data `implement.attempts`. (Before EXP-0010, `LOKI_E10_ATTEMPTS=2` meant two upfront attempts on every task; it now means k=2 after a red first attempt.)
135
135
  - `LOKI_E10_PATCH` -- the implement patch protocol (`loki-ts/src/features/patch_protocol.ts`, wired in `engine10/stages/implement.ts`). On by default; `0`/`off`/`false` turns it off. Lean path only (plan skipped, router off, no session to continue, claude provider, a named model). One tool-less call (`runner/sdk_invoker.ts` toolLessCall, thinking off; `claude -p --tools ""` under `LOKI_E10_INVOKER=cli`) gets a dossier: the context pack's code, the heads and test names of the tests covering it, and the check command. It answers with FILE/SEARCH/REPLACE edit blocks. Before anything is written the harness refuses edits to lockfiles the task does not ask to change, test-runner and compiler configs (`features/runner_config.ts` RUNNER_CONFIGS), Wall tests, `.git`, `.loki`, paths outside the repo or through any symlink (realpath check), and an edit that changes nothing; the rest applies all-or-nothing (an exact, unique SEARCH match). The harness runs the targeted tests with verify's runner. At most one repair call follows (a red check with a failure digest and the edited regions, a rejected or missed edit, a NEED read, or a green fix with no regression test, which gets a test-only turn that can never make the green tree worse). Green means a check ran and passed and at least one of the checks is a test that existed before the change (the model's own new test alone never counts); the agentic session is then skipped and verify and seal judge the tree as usual. Any other end, including an exception anywhere in the protocol, restores every file the protocol wrote and today's agentic session runs, so the outcome floor is unchanged. A failed patch's spend still lands in the receipt total. Cost lands in the child ledger under phase `implement-patch`; the stage data carries `implement.patch` (status, calls, applied, refused, restored, usd, check) and the run dir keeps `implement-patch-<n>.txt` (prompt and reply). The receipt carries `patch` (outcome green, fallback or error, the protocol status, calls, seconds and dollars), so a scored run can count the fallback rate.
136
- - `LOKI_E10_LEAN_CALLS` -- on by default, `0` opts out (`loki-ts/src/util/cost_profile.ts`): skips the coverage claim re-ask `-c2`, whose result changed no outcome on the 20-task Haiku bench (v11.137.1, patch off: 11 of 11 sessions edited nothing, 3 of 3 on v11.137.0; 4.6% of the arm's dollars). An explicit `LOKI_E10_CLAIM_CHECK=1` keeps the call.
137
- - `LOKI_E10_OPUS_CONSULT` -- off by default, `1` turns it on (`loki-ts/src/features/opus_consult.ts` consultEnabled): one knob gates both the tool-less Opus consult (triggers stop, red-verify, open-choice; at most `LOKI_E10_CONSULT_MAX` per run) and never-stop (a headless run that would end SPEC_CONFLICT implements the most likely intent and is capped at PARTIAL). Off, a conflict ends BLOCKED as before v11.138.0. The default is set on cost. On the 20-task Haiku tuning bench (EVAL-2026-11-12-1, v11.138.0) each firing cost about $0.034, about $0.010 per task on average. On the 6 tasks where it fired, the runs cost $0.48 for 3/6 merge-ready with it on against $0.29 for 4/6 with it off. False VERIFIED is no worse with it off (0 against 2). The arm-level merge-ready gap (17/20 against 11/20, paired +0.30) is mostly one-seed variance, not an effect of the consult: it fired on only 1 of the 6 tasks gained.
136
+ - `LOKI_E10_LEAN_CALLS` -- on by default, `0` opts out (`loki-ts/src/util/cost_profile.ts`): skips the coverage claim re-ask `-c2`, whose result changed no outcome on the 20-task Haiku bench (v11.137.1, patch off: 11 of 11 sessions edited nothing, 3 of 3 on v11.137.0; 4.6% of the arm's dollars). An explicit `LOKI_E10_CLAIM_CHECK=1` keeps the call. The same knob sets three more cheaper defaults, each with its own opt-out: the Opus consult and never-stop are off (`LOKI_E10_OPUS_CONSULT=1` turns them on), the exec-spec generator call is off (`LOKI_E10_EXEC_SPEC=1` turns it on) and the coverage requirement is folded into the implement brief instead of a separate turn (`LOKI_E10_COVERAGE_RESUME=1` restores the turn). `LOKI_E10_LEAN_CALLS=0` restores all four v11.138.0 defaults.
137
+ - `LOKI_E10_OPUS_CONSULT` -- off by default under `LOKI_E10_LEAN_CALLS` (`1` turns it on, `0` keeps it off; `loki-ts/src/features/opus_consult.ts` consultEnabled): one knob gates both the tool-less Opus consult (triggers stop, red-verify, open-choice; at most `LOKI_E10_CONSULT_MAX` per run) and never-stop (a headless run that would end SPEC_CONFLICT implements the most likely intent and is capped at PARTIAL). Off, a conflict ends BLOCKED as before v11.138.0. The default is set on cost. On the 20-task Haiku tuning bench (EVAL-2026-11-12-1, v11.138.0) each firing cost about $0.034, about $0.010 per task on average. On the 6 tasks where it fired, the runs cost $0.48 for 3/6 merge-ready with it on against $0.29 for 4/6 with it off. False VERIFIED is no worse with it off (0 against 2). The arm-level merge-ready gap (17/20 against 11/20, paired +0.30) is mostly one-seed variance, not an effect of the consult: it fired on only 1 of the 6 tasks gained.
138
+ - `LOKI_E10_EXEC_SPEC` -- off by default under `LOKI_E10_LEAN_CALLS` (`1` turns it on, `0` keeps it off; `loki-ts/src/features/exec_spec.ts` execSpecEnabled): the tool-less generator call that writes an executable spec on the lean path. On the 20-task Haiku bench (v11.137.1, patch off) 16 of 20 tasks paid for it (17.5% of the arm's dollars), it sealed a binding case in 0 of 16 and 7 of 16 replies were dropped because the file did not build on base. With it off the Go tournament (`LOKI_E10_TOURNAMENT`) has no probe block and stays inert; the no-regression differential (`LOKI_E10_NRD`) makes its own call and is unaffected.
138
139
  - `LOKI_E10_COVERAGE_MAX_TURNS` -- default 10, `0`/`off` opts out (`loki-ts/src/util/conflict_resume.ts`): the coverage turn (`-c`, `-c2`) ends at this many turns. On the v11.137 Haiku bench arms 31 of 36 coverage turns took 2 to 8 turns and the other 5 took 13 to 33 (up to $0.031); a capped turn ends like a reply without LOKI_DONE, so the first result stands.
139
140
  - `LOKI_E10_SUITE_FIX_SKIP` -- on by default, `0` opts out (`loki-ts/src/engine10/machine.ts` suiteOnlyRed): no fix round when every blocking group is a full-suite or startup failure, no failing full-suite id names a changed file, nothing held out failed and a targeted test of the change passed. 21 such first rounds on the v11.137 bench arms turned no run green (18 made no edit). The receipt carries a NOT PROVEN line; the verify stays red, so the run is never VERIFIED.
140
141
  - `LOKI_E10_CLAIM_CHECK` -- off by default under `LOKI_E10_LEAN_CALLS` (`1` turns it on; with `LOKI_E10_LEAN_CALLS=0` it is on by default and `0` opts out; only with `LOKI_E10_COVERAGE_RESUME`; one extra session only when a claim is found absent): the coverage turn also asks for `SITE <path>:<line>: changed|unchanged` lines; a site claimed changed whose line is byte-identical to the base (claimed_change_absent) is re-asked once (`-c2`), recorded as `implement.claim_absent`. With `0`, the coverage turn is exactly as before.
@@ -142,7 +143,7 @@ These knobs together implement the RARV-C (closure) loop: findings -> override c
142
143
 
143
144
  ## engine10 improvement knobs, on by default (opt out with `=0`)
144
145
 
145
- - `LOKI_E10_COVERAGE_RESUME` -- on the lean path (plan skipped), a clean LOKI_DONE with a non-empty diff gets one more turn in the same session that maps every site, symbol or case the task names to a change and a test and fixes any gap. `=0` (or `off`/`false`) skips it. Code: `coverageResumeEnabled` in `loki-ts/src/util/conflict_resume.ts`.
146
+ - `LOKI_E10_COVERAGE_RESUME` -- lean path only (plan skipped). Default (`fold`, under `LOKI_E10_LEAN_CALLS`): the implement brief carries one fixed line right after `FOLD_PLAN_INSTRUCTION` (cache-stable prefix) asking that every site, symbol, example or case the task names be mapped to its hunk and test, any gap fixed and a test added where none exists, so no separate turn runs (`coverage_resume: folded`). `=1`/`on` (or `LOKI_E10_LEAN_CALLS=0`) restores the separate turn: a clean LOKI_DONE with a non-empty diff gets one more turn in the same session that maps every named site to a change and a test and fixes any gap, with the edit-shape site hints. `=0` (or `off`/`false`) does neither. On the 20-task Haiku bench (v11.137.1, patch off) the separate turn cost 18% of the arm's dollars for 1 source edit in 18 (9 of 18 added tests). Code: `coverageMode` in `loki-ts/src/util/conflict_resume.ts`.
146
147
  - `LOKI_E10_PACK_DIET` -- the implement context keeps only the code the task names plus its direct callers and callees (no fill up to the budget). `=0` restores the full pack. Code: `packDietEnabled` in `loki-ts/src/util/context_pack.ts`.
147
148
  - `LOKI_E10_PRECEDENT` -- sibling-implementation precedent is added to open either/or choices in the task. `=0` (or `off`/`false`) removes it. Code: `resolveChoices` in `loki-ts/src/features/spec_ambiguity.ts`.
148
149
  - `LOKI_E10_DEFECT_PIN` -- existing assertions that pin the wrong value the issue reports are listed in the implement brief, and a pure value replacement of exactly such an assertion is not counted as a weakened test (it never counts as fail-then-pass proof, and the receipt always lists the rewrite). `=0` turns both off. Code: `findDefectPins` in `loki-ts/src/e10ext/context.ts`, `pinLift` in `loki-ts/src/engine10/stages/seal.ts`.