loki-mode 11.141.0 → 11.141.1

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 (69) 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 +1 -0
  7. package/docs/dev/release-checklist.md +2 -0
  8. package/loki-ts/dist/loki.js +1699 -1698
  9. package/mcp/__init__.py +1 -1
  10. package/package.json +2 -2
  11. package/packages/control-plane/dist/server.js +240 -101
  12. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  13. package/web-app/dist/assets/{AdminPage-Ch63nqJJ.js → AdminPage-CyrZ0lVQ.js} +1 -1
  14. package/web-app/dist/assets/{Avatar-BGzv9D9p.js → Avatar-HVsqbJDy.js} +1 -1
  15. package/web-app/dist/assets/{Badge-Dp6PH-Rw.js → Badge-Cl4d3UiW.js} +1 -1
  16. package/web-app/dist/assets/{Button-U4RqOlar.js → Button-DK96_8fz.js} +1 -1
  17. package/web-app/dist/assets/{CockpitPage-CGxfadSz.js → CockpitPage-trGqUQG8.js} +1 -1
  18. package/web-app/dist/assets/{ComparePage-ANl5ioFg.js → ComparePage-DAH2WKoS.js} +1 -1
  19. package/web-app/dist/assets/{ErrorBoundary-D_sHZ8fh.js → ErrorBoundary-YLMvxCBX.js} +1 -1
  20. package/web-app/dist/assets/{EvidenceReceiptPanel-BcMt4wR9.js → EvidenceReceiptPanel-ChbaWlfG.js} +1 -1
  21. package/web-app/dist/assets/{GitHubIssuesPanel-Cw7ijm9K.js → GitHubIssuesPanel-Cy-a21mI.js} +1 -1
  22. package/web-app/dist/assets/{GitHubPRsPanel-iAm1wnrJ.js → GitHubPRsPanel-DZxyuRJn.js} +1 -1
  23. package/web-app/dist/assets/{HomePage-Bmrnuvm2.js → HomePage-CitCe7Hp.js} +2 -2
  24. package/web-app/dist/assets/{LoginPage-BL_08imZ.js → LoginPage-D77qV6GG.js} +1 -1
  25. package/web-app/dist/assets/{MagicPage-96Omf7fs.js → MagicPage-ls3_mi0r.js} +1 -1
  26. package/web-app/dist/assets/{MetricsPage-setocK5A.js → MetricsPage-BRiWJxwM.js} +1 -1
  27. package/web-app/dist/assets/{NotFoundPage-BxZbHqCx.js → NotFoundPage-zg2L2XVX.js} +1 -1
  28. package/web-app/dist/assets/{ProjectPage-CaCNqPhA.js → ProjectPage-CZzWE-4p.js} +3 -3
  29. package/web-app/dist/assets/{ProjectsPage-BGhsKcnW.js → ProjectsPage-VUcvC0NC.js} +1 -1
  30. package/web-app/dist/assets/{SettingsPage-BaPtARmq.js → SettingsPage-CHVQJ19x.js} +1 -1
  31. package/web-app/dist/assets/{ShowcasePage-DootX_Rv.js → ShowcasePage-Bg6grTXX.js} +1 -1
  32. package/web-app/dist/assets/{SystemSettingsPage-CwDb3rVs.js → SystemSettingsPage-DsRZ0-xE.js} +1 -1
  33. package/web-app/dist/assets/{TeamsPage-BYl3e9Td.js → TeamsPage-CaTemCxx.js} +1 -1
  34. package/web-app/dist/assets/{TemplatesPage-D8de7dvp.js → TemplatesPage-BhaJA7pC.js} +1 -1
  35. package/web-app/dist/assets/{TerminalOutput-DKVZg6SO.js → TerminalOutput-BfOkrKSl.js} +1 -1
  36. package/web-app/dist/assets/{activity-DIQUumgD.js → activity-DbQIWo1H.js} +1 -1
  37. package/web-app/dist/assets/{bell-D7tbnhAM.js → bell-BIxiZZLC.js} +1 -1
  38. package/web-app/dist/assets/{bot-DO96ra4B.js → bot-B29JFAKe.js} +1 -1
  39. package/web-app/dist/assets/{check-9lM1wqXN.js → check-eFrYlRX2.js} +1 -1
  40. package/web-app/dist/assets/{chevron-left-DjmTGuYx.js → chevron-left-B8Y6dg5E.js} +1 -1
  41. package/web-app/dist/assets/{circle-alert-DNn4HgtD.js → circle-alert-DBBzGsvI.js} +1 -1
  42. package/web-app/dist/assets/{clock-DtdNA2ZI.js → clock-Dq4VdmRL.js} +1 -1
  43. package/web-app/dist/assets/{cloud-CDpRR5WU.js → cloud-By5Dz28l.js} +1 -1
  44. package/web-app/dist/assets/{code-xml-DrvYNTKD.js → code-xml-BuxW3PKD.js} +1 -1
  45. package/web-app/dist/assets/{database-ClSkFKKo.js → database-8yPYngba.js} +1 -1
  46. package/web-app/dist/assets/{dollar-sign-CJQBvVmF.js → dollar-sign-CnMURBiL.js} +1 -1
  47. package/web-app/dist/assets/{file-code-corner-Den6jX10.js → file-code-corner-DvauxYVA.js} +1 -1
  48. package/web-app/dist/assets/{file-plus-BJyVsMto.js → file-plus-BRtK7xDy.js} +1 -1
  49. package/web-app/dist/assets/{globe-BZY0lJXN.js → globe-DSzvEwzA.js} +1 -1
  50. package/web-app/dist/assets/{hammer-BJ0w6IT1.js → hammer-C-0bgkhm.js} +1 -1
  51. package/web-app/dist/assets/{index-BxSDD_tX.js → index-XQ-bFGQE.js} +3 -3
  52. package/web-app/dist/assets/{layers-Dc6o3GdS.js → layers-CHtZrk_M.js} +1 -1
  53. package/web-app/dist/assets/{loader-circle-OsOqcdhx.js → loader-circle-DDIRImbs.js} +1 -1
  54. package/web-app/dist/assets/{lock-B4xqbuIy.js → lock-DMYEb6iD.js} +1 -1
  55. package/web-app/dist/assets/{package-BNbqKwa5.js → package-Vh6ODRFi.js} +1 -1
  56. package/web-app/dist/assets/{plus-BoYko36-.js → plus-DdbM86Sk.js} +1 -1
  57. package/web-app/dist/assets/{refresh-cw-BhJav8DJ.js → refresh-cw-DN7fyy51.js} +1 -1
  58. package/web-app/dist/assets/{rotate-ccw-BH5S5eq1.js → rotate-ccw-_LiXn4f3.js} +1 -1
  59. package/web-app/dist/assets/{scroll-text-C5q727c8.js → scroll-text-iOYkzHRL.js} +1 -1
  60. package/web-app/dist/assets/{server-LNJjx00G.js → server-C4fDFqum.js} +1 -1
  61. package/web-app/dist/assets/{shield-alert-DtgIuz_o.js → shield-alert-BrlFKF10.js} +1 -1
  62. package/web-app/dist/assets/{thumbs-up-Dcfjdt3W.js → thumbs-up-CELA6jYM.js} +1 -1
  63. package/web-app/dist/assets/{trash-2-bY_78mmT.js → trash-2-BFh0_4hy.js} +1 -1
  64. package/web-app/dist/assets/{trending-down-C7FrGcbH.js → trending-down-BuhHSUh0.js} +1 -1
  65. package/web-app/dist/assets/{trending-up-Dnm4K3Su.js → trending-up-DdM35X0R.js} +1 -1
  66. package/web-app/dist/assets/{upload-D8GMaF6v.js → upload-CylWmA1t.js} +1 -1
  67. package/web-app/dist/assets/{usePolling-CTqmDKPs.js → usePolling-BS-LpZFV.js} +1 -1
  68. package/web-app/dist/assets/{user-BTGxiVtl.js → user-BqgsBztl.js} +1 -1
  69. 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.141.0
6
+ # Loki Mode v11.141.1
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.141.0 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
464
+ **v11.141.1 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.141.0
1
+ 11.141.1
@@ -7,6 +7,6 @@ Modules:
7
7
  control: Session control helpers (status, atomic writes, origin check)
8
8
  """
9
9
 
10
- __version__ = "11.141.0"
10
+ __version__ = "11.141.1"
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.141.0. Do not edit by hand.
3
+ Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.141.1. 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.141.0
5
+ **Version:** v11.141.1
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
 
@@ -140,6 +140,7 @@ These knobs together implement the RARV-C (closure) loop: findings -> override c
140
140
  - `LOKI_E10_RUN_OUTPUT_DROP` -- on by default, `0` opts out (RO; `runOutputs` in `loki-ts/src/e10ext/commit_filter.ts`, part of `dropSet` beside GB, named on the receipt with the GB note). A deterministic filter before commit, never a model judgment: an ADDED file under a `.loki/` or `.loki-*` directory at any depth (the root one was always dropped), under `test-results/`, `playwright-report/`, `blob-report/`, `coverage/`, `htmlcov/`, `.nyc_output/`, `.pytest_cache/`, `.mypy_cache/`, `.ruff_cache/`, `.tox/` or `.hypothesis/` anywhere, or a JUnit report, `*.log`, `.coverage`, `lcov.info`, `coverage.xml` or `nohup.out` file, never reaches the delivered diff. Kept: the task names the file, or that directory holds a file tracked at base. The self-check's stray-files item records these as `auto`. The failure: on held-out repos the top review-fail class was stray committed run artifacts (test-results output and nested `.loki` logs).
141
141
  - `LOKI_E10_CHANGELOG_REF` -- on by default, `0` opts out (CR; `changelogRefStyle`, `releaseNoteProblems` and the CL brief line in `loki-ts/src/project_model/conventions.ts`; checked by the self-check's release-note item). The reference form most existing changelog entries use (a markdown issue/PR link, `(#N)`, an rst `:pr:` role, `GH-N`, bare `#N`; at least 3 of the first 40 bullets and at least half) goes into the CL brief line with "use the number the task gives in that form, and never invent a number". The self-check flags an added entry that cites a number the task does not give, an entry with no reference to the task's number when existing entries carry one, a changeset naming a package no changed file belongs to, and a towncrier fragment numbered differently from the task's issue; a flag starts the self-check's review turn. After that turn a deterministic pass (`stripInventedRefsInFile`, `stripInventedReleaseRefs` in `features/self_review.ts`) removes from every release-note line the run added each `#N`, `(#N)`, `[#N](url)`, issue or pull URL, `:pr:` role and `GH-N` whose number the task input never gives, and tidies what is left, so the entry falls back to the repo's no-reference form; the receipt lists each removal (`changelog_refs_removed`). Base lines are never touched. The failure: on held-out repos the second review-fail class was changelog entries with no PR or issue reference, or with the wrong package or issue number.
142
142
  - `LOKI_E10_SELF_REVIEW` -- on by default, `0` opts out, `always` runs the turn on every run (SR; `loki-ts/src/features/self_review.ts`, called at the end of the implement stage after the named-sites check and before the Wall restore; the receipt carries `self_review`). The pre-delivery review self-check. Five deterministic items are computed on the implemented tree against base, with no model call: (a) a release note the repo's rules require (the CL, changeset or towncrier convention) and the diff lacks; (b) stray files: a run-added file in a directory the repo has never tracked (build output is recorded as `auto`, the commit filter drops it); (c) a source change with no test file in the diff; (d) format: `auto` when a configured formatter normalizes the changed files at commit, otherwise the style configs are named; (e) scope: edits to existing files outside every scope signal (`outsideScope`). When any item is flagged (or with `always`), one bounded resume of the implement session (suffix `-rv`, turn cap `LOKI_E10_SELF_REVIEW_MAX_TURNS`, default 12, the cost cap; skipped when the stage has under 60 s left) gets the flagged items, the CONTRIBUTING and PR template text (6000 characters) and the style config names, may edit the diff, must change nothing that already follows the rules, and ends with one `REVIEW <a-e>: ok|fixed|justified: <reason>` line per item. Each item is then settled: the after-turn check no longer flagging it reads `fixed`; a persisting flag reads `justified` only with a stated reason, else `unresolved`. A clean minimal diff starts no turn, so it is never touched and costs nothing. Verify and the commit stage run on the reviewed tree as usual.
143
+ - `LOKI_E10_REVIEW_TURN_GUARD` -- OFF by default until measured, `1` turns it on (TG; `guardReviewTurn`, `restoreTurnPaths` in `loki-ts/src/features/self_review.ts`, `reviewTurnGuard` in `loki-ts/src/engine10/stages/implement.ts`). Before the SR review turn the tree is snapshotted against base. When the turn changes any path, the tests of those paths (`patchCheckRefs`: the impacted tests of the turn's paths plus its own test files, at most 6) are rerun quietly through verify's runner. A test that fails after the turn is rerun with only the turn's paths put back to the snapshot; if it passes there, the turn stays taken back (the implement diff is kept, the implement result is not replaced by the review reply, and the items settle against the restored tree with the review reply ignored, so a flag the turn tried to fix reads unresolved), `self_review.turn_guard` records the paths, the runs and the broken test, and the receipt `not_proven` names it. A test that also fails without the turn keeps the turn. A new test file the turn added is never counted as a test that passed before.
143
144
  - `LOKI_E10_SR_COVERAGE` -- off by default since 11.141.0 (no bench measurement yet, GOALS A3.2), `1` opts in (SC; `statedCases`, `caseCovered`, `siblingDefinitions` in `loki-ts/src/features/self_review.ts`). Two more self-check items, computed only when the diff changes source: (f) stated cases, kept to fenced code blocks that show an error or a result (an error or exception token, a `// =>` result comment, or an expected/actual/output/returns/raises line right after the block) and four sentence forms ("similar error when ...", "... has the same effect", "both `x` and `y`" with a code token, "gets neither treatment"); a block case is covered when an added test line carries one of the block's called names, a sentence case when an added test line carries one of its backticked tokens, and a sentence with no code token is always flagged; at most 8 cases. (g) sibling definitions: other definitions, by name, of the function or method enclosing each changed hunk (Python, JS/TS, Go, Rust), in untouched non-test files of the same language, outside vendored or built dirs; a name with more than 5 such definitions, and common names (`__init__`, `constructor`, `main` ...), are dropped. Either flag starts the existing single `-rv` review turn, whose brief adds items (f) and (g) and accepts `REVIEW f|g` lines; a clean minimal diff still starts no turn. The failure: on a held-out style dev set Loki fixed the headline case and missed a stated one (a "similar error when wrapping it in ..." edge, a "... has the same effect" sentence, the issue's own error reproduction) or a sibling override in a subclass, while a stronger raw model covered them; expected reach 3-4 of those 6 losses, unmeasured.
144
145
  - `LOKI_E10_DOC_ENUM` -- off by default since 11.141.0 (no bench measurement yet, GOALS A3.2), `1` opts in (DE; `docEnumerations` in `loki-ts/src/features/self_review.ts`, self-check item (h) "docs"). A Markdown file in a changed source file's directory, or a `docs/` page named after its directory or file, that the diff leaves untouched and that already names at least 2 of the option keys or quoted names the source file holds on base, is flagged when the change adds a new key or name the doc does not carry. The flag starts the existing single review turn (brief item (h), reply `REVIEW h`). The failure: a change added a secondary option to two rules and left each rule's README, which lists every other option, without it.
145
146
  - `LOKI_E10_DOC_UPDATE_RULE` -- off by default since 11.141.0 (no bench measurement yet, GOALS A3.2), `1` opts in (UD; `DOC_RULE_UPDATE` and `fixedRules` in `loki-ts/src/e10ext/context.ts`). The implement and fix rules no longer say "write no documentation": they say to write no new documentation pages unless asked, but to update existing docs that list what changed (an option, flag, method, rule or name a README or doc page already lists gets its entry, written like the entries around it). The never-announce-missing-behavior rule is unchanged. `=0` restores the v11.139.0 line byte for byte (`FIXED_RULES_DOC_V139`); either text is a constant, so the rules prefix stays cache-stable, and the legacy block (`LOKI_E10_PINNED_TEST_UPDATE=0`) keeps the old line. The failure: both Loki arms left a rule's README, which lists every option, without the added option, while every raw arm updated it.
@@ -113,6 +113,8 @@ create tags.
113
113
 
114
114
  Run the engine end-to-end check alone with `cd loki-ts && bun run test:engine10` (it runs `tests/min/engine10-e2e-stub.sh` through `scripts/local-ci.sh`).
115
115
 
116
+ `release.sh --ship` refuses with exit 6 (SHIP_CI_NOT_GREEN) unless the latest completed GitHub CI run (`PR fast tier`, `required-ci`; LOKI_RELEASE_CI_WORKFLOWS) on HEAD, or on its parent when HEAD has none, succeeded. A gh error or a timeout (LOKI_RELEASE_CI_TIMEOUT_S, default 30) also refuses. Push the release candidate and wait for its CI first. `bash scripts/release.sh --check-ci` runs the same check alone. Main's PR fast tier was red from acc-154 through v11.141.0, a CI-only timeout that local gates never saw.
117
+
116
118
  Before pushing the release commit, run `bash scripts/release.sh --check-clean`: it exits 1 naming any tracked file (for example a stamped `loki-ts/dist/loki.js.map`) the commit left modified; `--bump-only` prints the "stage these files:" list.
117
119
 
118
120
  ### 5. Verify ALL Distribution Channels