loki-mode 11.17.101 → 11.17.102

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 (70) 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/v10/FAILURE-CLASSES.md +16 -0
  8. package/docs/v10/PROGRESS.md +3 -0
  9. package/loki-ts/dist/loki.js +1282 -1277
  10. package/mcp/__init__.py +1 -1
  11. package/package.json +2 -2
  12. package/packages/control-plane/dist/server.js +164 -70
  13. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  14. package/web-app/dist/assets/{AdminPage-DSJGYumL.js → AdminPage-vDT6jaWl.js} +1 -1
  15. package/web-app/dist/assets/{Avatar-DVxsrfEX.js → Avatar-BdSscJ5J.js} +1 -1
  16. package/web-app/dist/assets/{Badge-DLLtIvQM.js → Badge-BCufY0Ud.js} +1 -1
  17. package/web-app/dist/assets/{Button-DAyVA7mU.js → Button-DfTDN0WV.js} +1 -1
  18. package/web-app/dist/assets/{CockpitPage-CF5cNHR_.js → CockpitPage-DfRqj4xs.js} +1 -1
  19. package/web-app/dist/assets/{ComparePage-CHLo66No.js → ComparePage-v_2-2cfi.js} +1 -1
  20. package/web-app/dist/assets/{ErrorBoundary-Y7HdiEu9.js → ErrorBoundary-DWjDhnb-.js} +1 -1
  21. package/web-app/dist/assets/{EvidenceReceiptPanel-8zXYO2-F.js → EvidenceReceiptPanel-D137NBb7.js} +1 -1
  22. package/web-app/dist/assets/{GitHubIssuesPanel-2BY91j89.js → GitHubIssuesPanel-nrs-6UM3.js} +1 -1
  23. package/web-app/dist/assets/{GitHubPRsPanel-Bk2p_NV0.js → GitHubPRsPanel-ztLmI7PF.js} +1 -1
  24. package/web-app/dist/assets/{HomePage-BXAp8WvL.js → HomePage-D7ardTQS.js} +2 -2
  25. package/web-app/dist/assets/{LoginPage-uflglYRk.js → LoginPage-BBh8oD42.js} +1 -1
  26. package/web-app/dist/assets/{MagicPage-zYt576mT.js → MagicPage-Bif9DbRZ.js} +1 -1
  27. package/web-app/dist/assets/{MetricsPage-BUH_gujC.js → MetricsPage-BNs9yjcQ.js} +1 -1
  28. package/web-app/dist/assets/{NotFoundPage-DAXP26VD.js → NotFoundPage-C36t4wL8.js} +1 -1
  29. package/web-app/dist/assets/{ProjectPage-C4ztOAbB.js → ProjectPage-wRtrbDO6.js} +3 -3
  30. package/web-app/dist/assets/{ProjectsPage-yN7k5C7o.js → ProjectsPage-DO4A0M2F.js} +1 -1
  31. package/web-app/dist/assets/{SettingsPage-BZBl94NZ.js → SettingsPage-BKWXl4Np.js} +1 -1
  32. package/web-app/dist/assets/{ShowcasePage-QA4PUdY2.js → ShowcasePage-UNZcXiHr.js} +1 -1
  33. package/web-app/dist/assets/{SystemSettingsPage-DWuQnpoH.js → SystemSettingsPage-CW2mOuWl.js} +1 -1
  34. package/web-app/dist/assets/{TeamsPage-2PpAKMeX.js → TeamsPage-Cxk0bCsu.js} +1 -1
  35. package/web-app/dist/assets/{TemplatesPage-Bf2q1WkF.js → TemplatesPage-iYNF5yYL.js} +1 -1
  36. package/web-app/dist/assets/{TerminalOutput-BG7OHTGl.js → TerminalOutput-Dg_Xdxmz.js} +1 -1
  37. package/web-app/dist/assets/{activity-B19QgRZX.js → activity-CsJcnEkv.js} +1 -1
  38. package/web-app/dist/assets/{bell-2x39NR4Y.js → bell-Dj1eV0sE.js} +1 -1
  39. package/web-app/dist/assets/{bot-CKeM2yXE.js → bot-SdhbB-yI.js} +1 -1
  40. package/web-app/dist/assets/{check-4F3sF2p_.js → check-qfdE8z-n.js} +1 -1
  41. package/web-app/dist/assets/{chevron-left-yWZaZ1cO.js → chevron-left-BZTvZw6M.js} +1 -1
  42. package/web-app/dist/assets/{circle-alert-CMVv2D6y.js → circle-alert-C0ZCdZKV.js} +1 -1
  43. package/web-app/dist/assets/{clock-B73y-HjH.js → clock-BoLle2Q_.js} +1 -1
  44. package/web-app/dist/assets/{cloud-DY2rAmZf.js → cloud-B62-AI50.js} +1 -1
  45. package/web-app/dist/assets/{code-xml-B0TSkFsr.js → code-xml-BJ6VEWJ2.js} +1 -1
  46. package/web-app/dist/assets/{database-DtFpb-5M.js → database-CJWmI9K6.js} +1 -1
  47. package/web-app/dist/assets/{dollar-sign-CpQrnNzy.js → dollar-sign-CHkKo4JL.js} +1 -1
  48. package/web-app/dist/assets/{file-code-corner-n_LVjVlC.js → file-code-corner-Cak0xMzn.js} +1 -1
  49. package/web-app/dist/assets/{file-plus-DBazo6sC.js → file-plus-KcuuGUvs.js} +1 -1
  50. package/web-app/dist/assets/{globe-DRAOq9zG.js → globe-RYkFQXqZ.js} +1 -1
  51. package/web-app/dist/assets/{hammer-BMAJcbOt.js → hammer-CqZmiYoP.js} +1 -1
  52. package/web-app/dist/assets/{index-BRXwDqho.js → index-V8ZcLtYm.js} +3 -3
  53. package/web-app/dist/assets/{layers-DA52g4VD.js → layers-CmUGOLSC.js} +1 -1
  54. package/web-app/dist/assets/{loader-circle-CiudNyEn.js → loader-circle-CUbu3dVo.js} +1 -1
  55. package/web-app/dist/assets/{lock-pdPLMeIV.js → lock-Cyp2Z2pp.js} +1 -1
  56. package/web-app/dist/assets/{package-BJaEhXRn.js → package-xTUAKlLM.js} +1 -1
  57. package/web-app/dist/assets/{plus-B02mfKg8.js → plus-S1HlIoRX.js} +1 -1
  58. package/web-app/dist/assets/{refresh-cw-Be77lY9T.js → refresh-cw-D-8F6vP5.js} +1 -1
  59. package/web-app/dist/assets/{rotate-ccw-3ZzNbbS6.js → rotate-ccw-D0ddZ4wZ.js} +1 -1
  60. package/web-app/dist/assets/{scroll-text-CAEh1b9S.js → scroll-text-gqL8lJfM.js} +1 -1
  61. package/web-app/dist/assets/{server-DvsYm58b.js → server-DEK4ac2b.js} +1 -1
  62. package/web-app/dist/assets/{shield-alert-B0OlkOcu.js → shield-alert-DYk3CMCo.js} +1 -1
  63. package/web-app/dist/assets/{thumbs-up-CuZV2EPG.js → thumbs-up-CsujEA-F.js} +1 -1
  64. package/web-app/dist/assets/{trash-2-CwC4tvYA.js → trash-2-CN1t155F.js} +1 -1
  65. package/web-app/dist/assets/{trending-down-BuirR3f2.js → trending-down-Co40Z73C.js} +1 -1
  66. package/web-app/dist/assets/{trending-up-B7amM0mF.js → trending-up-Dn7lt32C.js} +1 -1
  67. package/web-app/dist/assets/{upload-BLPBN-f3.js → upload-DvHTb05g.js} +1 -1
  68. package/web-app/dist/assets/{usePolling-B201_skn.js → usePolling-ZAgszFZ5.js} +1 -1
  69. package/web-app/dist/assets/{user-iVW3gDvf.js → user-CpJHdCRI.js} +1 -1
  70. package/web-app/dist/index.html +1 -1
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: loki-mode
3
3
  description: An autonomous software factory that knows what it is supposed to deliver, and proves it did. Use when the user says Loki Mode or asks to build, fix or verify software autonomously.
4
4
  ---
5
5
 
6
- # Loki Mode v11.17.101
6
+ # Loki Mode v11.17.102
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
 
@@ -483,4 +483,4 @@ See `CHANGELOG.md` entries [7.5.7], [7.5.8], [7.5.13] for the per-fix list and r
483
483
 
484
484
  ---
485
485
 
486
- **v11.17.101 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
486
+ **v11.17.102 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.17.101
1
+ 11.17.102
@@ -7,6 +7,6 @@ Modules:
7
7
  control: Session control helpers (status, atomic writes, origin check)
8
8
  """
9
9
 
10
- __version__ = "11.17.101"
10
+ __version__ = "11.17.102"
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.17.101. Do not edit by hand.
3
+ Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.17.102. Do not edit by hand.
4
4
  Hidden and legacy-only commands are omitted; see `docs/v10/CLI-MODERN.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.17.101
5
+ **Version:** v11.17.102
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
 
@@ -113,3 +113,4 @@ extract_learnings_from_session (autonomy/run.sh) mirrors learnings and decisions
113
113
  - Parallel units: `route.ts` maybeRunGroup defaults to `features/speed/run_group.ts`, which freezes per-unit acceptance (`features/contract.ts`), runs units, merges with `engine10/integrate.ts` and seals once via sealGroup.
114
114
  - Lessons: every sealed run appends a receipt fact (`LOKI_AUTO_LEARN_PR`, default on) outside the receipt body; `implement.ts` injects lessons and relevant learnings inside the untrusted-data fence; `loki memory brief --task T` prints the same block.
115
115
 
116
+ - Wall publish (FC-VERIFIED-PR-WITHOUT-ITS-TEST): on a VERIFIED seal only, `publishWall` (`util/check_result.ts`, called from `stages/seal.ts`) makes ONE child commit (trailer `Loki-Wall-Publish: <runId>`) of the SEALED Wall bytes (`runDir/wall`, hash-checked against `wall.files[].sha256`) that verify ran and passed (`publishableWall`). Before writing, the realpath of each Wall file's parent directory must be inside the repo, and an existing file or symlink is removed first. The child commit runs with hooks and signing OFF (the default `git()` call, no `userHooks`), so a pre-commit hook cannot add files or rewrite the Wall bytes. Afterwards the commit must touch exactly the published paths and each committed blob must equal the blob hash of the sealed bytes (computed in process, never read from the worktree); on any mismatch the child is rolled back (`update-ref` HEAD to the product head plus `read-tree`), nothing is published and a NOT PROVEN note is added. The receipt binds the PRODUCT head (head_sha, tree, diff_sha256 are computed before the child commit). A re-seal binds `HEAD^` only when HEAD's message has the exact trailer line for this run, HEAD touches only paths of this run's `wall.files`, and every blob sha256 matches (`wallChild`); a forged trailer is not enough. `util/seal_drift.ts` accepts a moved HEAD after head_sha as benign only when every commit after it is such a Wall publish commit (linear, trailer line for the receipt's run_id, only `wall.files` paths, blob sha256 equal to the sealed one); any commit after head_sha that carries this run's trailer but fails that check is head drift (UNCHECKED). Later commits without the trailer stay under the TEN-GATES-16 sealed-path overlap rule. The PR body gains an "Acceptance tests" section. Commit stage and `backstopCommit` still drop Wall files. `LOKI_COMMIT_WALL=0` restores the old behavior (nothing published).
@@ -1277,6 +1277,14 @@ L0 review rule (ENGINE-LAWS.md L0): a fix that adds an `if` or a regex about the
1277
1277
  - Mechanism: one `product` list in runPackageSuites, the changed files minus this run's passing Wall files (the same set execProves excludes). Unknown diff or a Wall-only diff stays owned (fail-safe). A failed Wall has no proofFiles, so nothing is excluded.
1278
1278
  - Fixture: loki-ts/tests/engine10/monorepo_cwd.test.ts test "FC-WALL-FILE-OWNS-EVERY-PACKAGE" (N/A with a passing root Wall and an untouched test-less package; NOT PROVEN when the Wall failed or an unowned product path is present). Red on HEAD 2739c8e26 (1 fail), green after (38/0).
1279
1279
 
1280
+ ## FC-VERIFIED-PR-WITHOUT-ITS-TEST A VERIFIED run's pushed branch never contained the acceptance test that made it VERIFIED
1281
+ - User-visible vs raw: user-visible. anthropics/claude-code#81826, run e10-20261019T171807Z-7698, sealed VERIFIED; its commit changed 2 product files and tests/loki_wall_ralph_max_iterations.test.ts stayed untracked, so the PR reviewer saw "Missing tests: the diff has no test changes" for the very test that ran green.
1282
+ - Law: a proof a reviewer is asked to trust must be reproducible from the pushed branch (evidence or it did not happen). Not product, but publishable once the verdict is sealed.
1283
+ - Cause (measured): commit_filter.ts dropSet drops every WALL_FILE (loki_wall_*) in the commit stage and in backstopCommit, and nothing publishes the Wall afterwards, even on VERIFIED.
1284
+ - Siblings swept: backstopCommit (killed or crashed worker: stays dropped), discardIfSatisfied, runPackageSuites proofFiles (FC-WALL-FILE-OWNS-EVERY-PACKAGE), flagOutsideScope, formatChanged, receipt diff_sha256 and head_sha, seal_drift head check, reviewer_body changed-files list: none sees a Wall file as product, because the Wall is published in a SEPARATE child commit made at seal after the verdict.
1285
+ - Mechanism: publishableWall (util/check_result.ts) selects the Wall files verify ran and passed (target_checks + executed proof), reads the SEALED copy under runDir/wall and requires it to hash to wall.files[].sha256 (mismatch: not published, NOT PROVEN note). The seal stage, only when the verdict is VERIFIED, writes the sealed bytes and makes one child commit (trailer Loki-Wall-Publish). The receipt binds the PRODUCT head (head_sha, tree, diff_sha256 computed before the child commit); the pushed head is its child whose only change is Wall files, so sealDrift reads it as benign head movement (no overlap with the sealed diff). The PR body gains an "Acceptance tests" section (paths and the exact verify command). Opt-out LOKI_COMMIT_WALL=0.
1286
+ - Fixture: loki-ts/tests/engine10/seal.test.ts describe "FC-VERIFIED-PR-WITHOUT-ITS-TEST" and loki-ts/tests/engine10/pr_body_golden.test.ts (publish on VERIFIED, sealed bytes not agent bytes, failed/not-run/PARTIAL/opt-out/backstop keep dropping, receipt head and diff unchanged, PR body section). Red on base 4ade2c9a6, green after.
1287
+
1280
1288
  ## FC-CHANGED-PATH-QUOTED A non-ASCII changed path came back from git as a quoted octal escape, so no consumer of changedFiles could match it to a package, Wall file or test
1281
1289
  - User-visible vs raw: user-visible. A diff in `frontend/src/café.ts` made the test-less frontend package read as not owned by the diff, its note became N/A, not_proven was empty and the run could seal VERIFIED with the frontend edit unproven (HIGH re-review of FC-SEAL-NA-AS-UNPROVEN r2).
1282
1290
  - Law broken: a git path must be the real path; an unresolvable path must fail safe, never read as "not in the package".
@@ -1372,3 +1380,11 @@ L0 review rule (ENGINE-LAWS.md L0): a fix that adds an `if` or a regex about the
1372
1380
  - Siblings swept: autonomy/lib/engine10-push.sh `_e10_local_push` (same fetch-from-path into a temp repo, left unchanged on purpose: its pinned origin is a local path, so a lazy blob fetch would read the operator's own local repo, which holds every object, and there is no remote network credential to seed; the partial-clone failure is a remote-origin shape); autonomy/lib/engine10-push-gitlab.sh (same fetch from "$dir"; fixed with the same seeding, kept logically equivalent in the child because it is a standalone script that cannot source run.sh, and tests/test-engine10-push-gitlab.sh runs it that way); loki-ts/src/runner/attempts.ts only calls the shell push and holds no copy. No other fetch or clone from the agent repo path exists in autonomy/ or loki-ts/src.
1373
1381
  - Mechanism: in `_loki_trusted_push`, when the agent repo is partial (extensions.partialclone non-empty, or any remote.<n>.promisor true/yes/on/1, both read as data), the temp repo is seeded with the validated origin URL (captured before a fork destination overwrites it) as promisor remote `loki-base`, and its refs are fetched with --filter=blob:none under the credential runner. The agent pack is thin (deltas against blobs the temp repo knows only by id), so the client lazy-fetches those delta bases from loki-base during the agent fetch; that fetch therefore also runs under the runner, with the agent-dir upload-pack (the only process that reads agent config) started through `--upload-pack '/usr/bin/env -i PATH=/usr/bin:/bin GIT_NO_LAZY_FETCH=1 git upload-pack'`, so no token, helper config, HOME or lazy fetch reaches it. Option chosen over prefetching delta-base blobs (git may pick any blob in the edge trees as a base, so an enumeration is a heuristic that fails closed only on private origins and costs a tree walk on large repos) and over an unfiltered seed (downloads full history). GIT_TERMINAL_PROMPT=0 on both fetches. Non-partial repos take the old path with no extra network or runner. A failed seeding or agent fetch fails closed.
1374
1382
  - Fixture: tests/test-engine10-push-gitlab.sh (partial-clone block, red before with "could not stage branch", green after) and tests/test-trusted-push-agent-config.sh "FC-TRUSTED-PUSH-PARTIAL-CLONE" block (a real blob:none clone of a local origin with a history-only blob; pushes the agent branch; asserts the non-partial path never writes remote.loki-base config). Red before (rc=1, no push), green after. Review round 1 (HIGH, reproduced): the agent fetch ran token-less, so a private origin refused the lazy delta-base fetch; both fixtures now add a 20000-line file edited by the agent, an origin that refuses token-less reads through a packObjectsHook in the test global config, and a spy on the agent-dir upload-pack environment. Red on 95bf13b9a for the GitHub path (rc=1, nothing pushed); the GitLab child holds its token process-wide, so only its env-scrub assertion was red there.
1383
+
1384
+ ## FC-FULL-SUITE-EXIT-CODED-SCRIPT A project-model full-suite command that is a plain CI checker script (not a test framework) prints no runner summary, so verify recorded it not_run UNMEASURED and a proven change sealed PARTIAL
1385
+ - User-visible vs raw: user-visible. claude-code#81826 on v11.17.101 sealed PARTIAL although the Wall passed with n=7; Not-proven listed "one reviewer", "not run: full suite: repo-root" and "executed count unmeasured".
1386
+ - Law broken: a run seals VERIFIED unless it genuinely cannot be proven; a harness-side parse gap on a command that has no summary to parse must not hold back a proven change.
1387
+ - Cause (measured): the model gave package repo-root the test command `python3 .github/scripts/check_workflow_hardening.py`; it printed "OK: checked 3 job(s) ..." and exited 0; classifyCheck (kind test) needs a parsed count, ran() returned null, result not_run. crossReview returns null for any verdict other than VERIFIED or ALREADY_SATISFIED, so "one reviewer" stayed uncredited only because the run was already PARTIAL.
1388
+ - Siblings swept: runFullSuite legacy per-runner path (commands come from FULL_SUITE_CMD, always frameworks, unchanged); base_guard and wall use real runners (unchanged).
1389
+ - Mechanism: check_result.ts isExitCodedScript (every segment a plain interpreter-plus-script run, nothing naming a test framework or containing "test"; anything ambiguous is a framework) feeds classifyCheck exitCoded: pass on rc 0, fail on rc != 0, count "n/a (exit-coded check, not a test runner)", never an n, so it is never executed proof. A framework with no summary stays UNMEASURED. FC-16 on the target is unchanged.
1390
+ - Fixture: tests/util/check_result.test.ts and tests/engine10/monorepo_cwd.test.ts (red before: missing export), tests/engine10/seal.test.ts (Wall n>0 plus exit-coded full suite is VERIFIED with one reviewer credited by a real review).
@@ -2677,3 +2677,6 @@ v11.17.21 published (Release success on 462fbc40a; npm latest 11.17.21, next 11.
2677
2677
 
2678
2678
  ## 2026-10-19T18:37Z (CoS) v11.17.101
2679
2679
  - 11.17.101: FC-TRUSTED-PUSH-PARTIAL-CLONE (opus HIGH APPROVE; trusted-push-agent-config 62/0, engine10-push-gitlab 25/0). claude-code#81826 on 11.17.100 sealed VERIFIED but the fork push failed rc=1 in a partial clone.
2680
+
2681
+ ## 2026-10-19T19:00Z (CoS) v11.17.102
2682
+ - 11.17.102: FC-VERIFIED-PR-WITHOUT-ITS-TEST (opus HIGH APPROVE after hook BLOCK; seal 121/0, pr_body_golden 17/0, log_seal 19/0) and FC-FULL-SUITE-EXIT-CODED-SCRIPT (opus HIGH APPROVE; check_result 31/0, monorepo_cwd 39/0). claude-code#81826 draft rerun on 11.17.101 sealed PARTIAL on an exit-coded checker script.