loki-mode 11.3.5 → 11.3.6

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/v10/FAILURE-CLASSES.md +18 -0
  7. package/docs/v10/GUARDS.md +7 -0
  8. package/loki-ts/dist/loki.js +667 -667
  9. package/mcp/__init__.py +1 -1
  10. package/package.json +2 -2
  11. package/packages/control-plane/dist/server.js +241 -179
  12. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  13. package/web-app/dist/assets/{AdminPage-CtMDQ7tq.js → AdminPage-DQmOVG7S.js} +1 -1
  14. package/web-app/dist/assets/{Avatar-BunEd-95.js → Avatar-CgA1W2hU.js} +1 -1
  15. package/web-app/dist/assets/{Badge-BrAChY_L.js → Badge-BHu-Aw77.js} +1 -1
  16. package/web-app/dist/assets/{Button-CUGJz-QD.js → Button-Dd5PTsTA.js} +1 -1
  17. package/web-app/dist/assets/{CockpitPage-mS3B6nCY.js → CockpitPage-BqZAu2dx.js} +1 -1
  18. package/web-app/dist/assets/{ComparePage-DOpjq2wB.js → ComparePage-BoLiFsH-.js} +1 -1
  19. package/web-app/dist/assets/{ErrorBoundary-BPVaV2s1.js → ErrorBoundary-D5LPwwqH.js} +1 -1
  20. package/web-app/dist/assets/{EvidenceReceiptPanel-B1o2RKnU.js → EvidenceReceiptPanel-_Cnzqiz3.js} +1 -1
  21. package/web-app/dist/assets/{GitHubIssuesPanel-07-Gi_tj.js → GitHubIssuesPanel-DP7RgZIj.js} +1 -1
  22. package/web-app/dist/assets/{GitHubPRsPanel-DwpdHdD0.js → GitHubPRsPanel-B7G7f1ME.js} +1 -1
  23. package/web-app/dist/assets/{HomePage-5SYxWllM.js → HomePage-BtTxigAS.js} +2 -2
  24. package/web-app/dist/assets/{LoginPage-DxKw4woS.js → LoginPage-BN8rKw8b.js} +1 -1
  25. package/web-app/dist/assets/{MagicPage-Cs1wKf5C.js → MagicPage-CZHgAX_d.js} +1 -1
  26. package/web-app/dist/assets/{MetricsPage-DViQGz-y.js → MetricsPage-BGeztBOD.js} +1 -1
  27. package/web-app/dist/assets/{NotFoundPage-DZ1rQcEH.js → NotFoundPage-llhb5dZD.js} +1 -1
  28. package/web-app/dist/assets/{ProjectPage-qjTYnrCe.js → ProjectPage-8eDk19Hz.js} +3 -3
  29. package/web-app/dist/assets/{ProjectsPage-CrJzeJzg.js → ProjectsPage-CGYuJP1i.js} +1 -1
  30. package/web-app/dist/assets/{SettingsPage-DfWrefQZ.js → SettingsPage-UT4j3Hi8.js} +1 -1
  31. package/web-app/dist/assets/{ShowcasePage-DBPrEBK-.js → ShowcasePage-BYj3La6L.js} +1 -1
  32. package/web-app/dist/assets/{SystemSettingsPage-CN-27Yul.js → SystemSettingsPage-Dp5zvB-G.js} +1 -1
  33. package/web-app/dist/assets/{TeamsPage-vXKC7Ctc.js → TeamsPage-DUK-Q4wW.js} +1 -1
  34. package/web-app/dist/assets/{TemplatesPage-BvC4ftFD.js → TemplatesPage-CB-bJpPc.js} +1 -1
  35. package/web-app/dist/assets/{TerminalOutput-pst4yhsm.js → TerminalOutput-BQs_SwaV.js} +1 -1
  36. package/web-app/dist/assets/{activity-B9Qo_kJN.js → activity-BgC_Ois0.js} +1 -1
  37. package/web-app/dist/assets/{bell-yXv87YzA.js → bell-CQM4oxzr.js} +1 -1
  38. package/web-app/dist/assets/{bot-UQlOwPgx.js → bot-BbnmKWvH.js} +1 -1
  39. package/web-app/dist/assets/{check-DYle8PJT.js → check-C7rK0fPm.js} +1 -1
  40. package/web-app/dist/assets/{chevron-left-BKGmCkxA.js → chevron-left-BcfKpSjM.js} +1 -1
  41. package/web-app/dist/assets/{circle-alert-Dc1XUGH3.js → circle-alert-Bz0gNsvI.js} +1 -1
  42. package/web-app/dist/assets/{clock-B0jfhwc2.js → clock-D62JPqIM.js} +1 -1
  43. package/web-app/dist/assets/{cloud-IkyAY6Dw.js → cloud-DqUjmEip.js} +1 -1
  44. package/web-app/dist/assets/{code-xml-CPdTgKr9.js → code-xml-BOfhXcsB.js} +1 -1
  45. package/web-app/dist/assets/{database-E6L0Lwuc.js → database-BtUHezwg.js} +1 -1
  46. package/web-app/dist/assets/{dollar-sign-alo3vpLg.js → dollar-sign-YuKPD0TX.js} +1 -1
  47. package/web-app/dist/assets/{file-code-corner-DcstcagN.js → file-code-corner-lM78R7wx.js} +1 -1
  48. package/web-app/dist/assets/{file-plus-DYrxUtNS.js → file-plus-k9jtMlVw.js} +1 -1
  49. package/web-app/dist/assets/{globe-D0ceSi6L.js → globe-BotkF9Lb.js} +1 -1
  50. package/web-app/dist/assets/{hammer-Bix0hGg_.js → hammer-BbctxPnE.js} +1 -1
  51. package/web-app/dist/assets/{index-Bq0IXorg.js → index-CQ_LSpnv.js} +3 -3
  52. package/web-app/dist/assets/{layers-ClEOJz-A.js → layers-DHh4VJfQ.js} +1 -1
  53. package/web-app/dist/assets/{loader-circle-aPR8MCfq.js → loader-circle-BAb1cEw6.js} +1 -1
  54. package/web-app/dist/assets/{lock-qWtNggvV.js → lock-DrdR04VZ.js} +1 -1
  55. package/web-app/dist/assets/{package-Cf9OA6-r.js → package-BoJAHt7a.js} +1 -1
  56. package/web-app/dist/assets/{plus-BFwUepQN.js → plus-CI6B0_tm.js} +1 -1
  57. package/web-app/dist/assets/{refresh-cw-DzmKZ3CW.js → refresh-cw-BqmrZLg2.js} +1 -1
  58. package/web-app/dist/assets/{rotate-ccw-DZMAdo4p.js → rotate-ccw-DUZOTZYh.js} +1 -1
  59. package/web-app/dist/assets/{scroll-text-CLK1QhL-.js → scroll-text-CNtbRU1G.js} +1 -1
  60. package/web-app/dist/assets/{server-D2hE3MdR.js → server-DyPZO72X.js} +1 -1
  61. package/web-app/dist/assets/{shield-alert-aK0eddg8.js → shield-alert-DrhFa6cZ.js} +1 -1
  62. package/web-app/dist/assets/{thumbs-up-B_jbqHDP.js → thumbs-up-DNgUkbHP.js} +1 -1
  63. package/web-app/dist/assets/{trash-2-Dgo9A169.js → trash-2-DGTZpPKg.js} +1 -1
  64. package/web-app/dist/assets/{trending-down-DeRHmNFR.js → trending-down-5zMgMOQa.js} +1 -1
  65. package/web-app/dist/assets/{trending-up-BxPu0OUd.js → trending-up-Dk5fQQzd.js} +1 -1
  66. package/web-app/dist/assets/{upload-DaaWxRxF.js → upload-BxVLazyr.js} +1 -1
  67. package/web-app/dist/assets/{usePolling-QplcA_Qc.js → usePolling-B6ukuagG.js} +1 -1
  68. package/web-app/dist/assets/{user-B9a_CFg0.js → user-BAuQUINc.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: 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.3.5
6
+ # Loki Mode v11.3.6
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.3.5 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
486
+ **v11.3.6 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.3.5
1
+ 11.3.6
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "11.3.5"
10
+ __version__ = "11.3.6"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try:
@@ -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.3.5. Do not edit by hand.
3
+ Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.3.6. 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.3.5
5
+ **Version:** v11.3.6
6
6
 
7
7
  **Engine note:** `loki "<task>"`, `loki owner/repo#N` and `loki quick` run the Loki 10 engine. `loki start` still routes to the older engine, which is being removed; prefer `loki owner/repo#N`. See the [user guide](v10/GUIDE.md).
8
8
 
@@ -768,3 +768,21 @@ L0 review rule (ENGINE-LAWS.md L0): a fix that adds an `if` or a regex about the
768
768
  - Siblings swept: every loki-ts/tests/**/*.test.ts that walks a src-rooted path (17 found, listed by the marker); three false positives that only walk tmp or tests dirs carry the audited opt-out.
769
769
  - Mechanism: a test that walks the src tree carries the line "// select: walk-all-src". scripts/select-tests.sh emit_marked_walkers finds them by content and emits each as an R8 row on every diff (skipping any already covered by a global-guards.tsv row or directory row), so a new walker needs no list edit.
770
770
  - Fixture: tests/test-select-tests.sh FC-89 (a diff touching only loki-ts/src/engine10/stages/wall.ts selects full_env_spawn_guard, fc25_raw_spawn_guard, l0_guard, spawn_env_guard, budget, l2_destructive_registry, never_below_raw; every marked file is selected; a completeness scan fails on any src-walking test with neither "select: walk-all-src" nor "select: not-src-walker (reason)"). Mutation: deleting the marker from l2_destructive_registry.test.ts turns it red on both the selection and the completeness check.
771
+
772
+ ## FC-90 Deleting the token env vars left the user's gh login and git credential helpers reachable (GH-KEYRING)
773
+ - User saw: nothing yet (found by audit). With GH_TOKEN, GITHUB_TOKEN, GH_ENTERPRISE_TOKEN, GITHUB_ENTERPRISE_TOKEN and SSH_AUTH_SOCK removed, `gh auth token` exited 0 and `gh api user` returned the user's login on the founder machine, and git held `osxkeychain` plus `!gh auth git-credential` helpers over an HTTPS origin.
774
+ - Law: P9 (agent and test code never holds the user's credential) is a property of every credential store a child can reach, not of the env vars alone; one shared mechanism builds the withheld env, so no env builder can delete a subset and call it token-free.
775
+ - Cause (measured): tokenFreeEnv (util/safe_git.ts) and plainTestEnv (util/check_result.ts) only deleted the vars. gh then falls back to GH_CONFIG_DIR/hosts.yml and the OS keyring, and git calls its configured helpers on an HTTPS push. withholdGithubTokens already closed this for the worker, but only for the worker env. Measured with gh: GH_CONFIG_DIR alone leaves `gh auth token` exit 0 (keyring); a sentinel token alone makes `gh auth status` fail but a named-account read (`gh auth token --user`) still reads hosts.yml; both together close it.
776
+ - Mechanism: util/credential_env.ts hardenCredentialEnv is the one function: the 4 vars become a non-working sentinel, GH_CONFIG_DIR is a per-process empty mode-700 directory, credential.helper is reset through GIT_CONFIG_COUNT/KEY/VALUE appended after existing entries (the user's gitconfig is never edited and identity survives), GIT_TERMINAL_PROMPT=0 and GCM_INTERACTIVE=never. tokenFreeEnv (so plainTestEnv, safeGitEnv) and withholdGithubTokens both call it; the LOKI_ALLOW_AGENT_GITHUB_TOKEN opt-out stays in withholdGithubTokens only, test envs are always hardened. The empty dir is made once per process (not per call), under LOKI_RUN_TMP when it is a real directory, else the OS temp dir, and removed by exact path at exit (the old per-call scoped dirs leaked).
777
+ - Siblings swept: withholdGithubTokens (now shared), tokenFreeEnv callers (attempts, wall_snapshot, verify_pr, start), plainTestEnv callers (wall, verify, load_owner), the worker assertion (sentinel prefix now exported from credential_env.ts), and the bash route (_loki_withhold_github_tokens at autonomy/run.sh main() already sets the sentinel, a scoped GH_CONFIG_DIR, the helper reset and an EXIT trap removal). Raw `process.env` spawns elsewhere inherit an already-withheld process env (runner after autonomous.ts withholdGithubTokens, worker after supervisor.ts) and are policed by full_env_spawn_guard.
778
+ - Fixture: tests/util/fc90_credential_env.test.ts (a fake HOME with a planted gh hosts.yml and a planted global git credential helper, each with a positive control on the raw env; red on the old tokenFreeEnv, red when the GH_CONFIG_DIR line, the credential.helper reset or the sentinel is removed; plus a count of loki-gh-config-* dirs in an isolated TMPDIR before and after).
779
+ - CI note (fix-forward, cc8e17512 red on ubuntu): the named-account control `gh auth token --user` returned empty on gh for Linux because a flat hosts.yml is not read by a named lookup there (the multi-account `users:` shape is), while the default `gh auth token` reads only the flat one on the same gh. The fixture now probes the installed gh with each shape in a scratch home, plants the one that works in a separate named home, and skips the named-account test (control and hardened assertion together) when no shape works. Verified on ubuntu:24.04 with gh 2.102.0.
780
+ - Residual: SSH keys under ~/.ssh and GIT_SSH_COMMAND are closed only for the worker env (withholdGithubTokens), not for plainTestEnv; a test command can still `ssh` with the user's default keys.
781
+
782
+ ## FC-88 The release gate repeated the Tests workflow's typecheck and bun suite on the same tree (WF-GATE-DEDUP)
783
+ - User saw: every release waited 6m40s in release.yml's gate step "Bun typecheck + test (protect published loki-ts dist)" (run 37859034694, v11.3.4) for work the Tests workflow had already finished green on the same tree, or on the bump-only parent (FC-70).
784
+ - Law: a gate does only what the verdict it depends on cannot; a second copy of a check is latency with no added safety, and it hides which check is the real one.
785
+ - Cause (measured): the step ran `bun install`, `bun run typecheck` and the full `bun test` plus a Python and pytest setup for the Wall tests. Tests already runs tsc (test.yml "Typecheck loki-ts (tsc)", lines 193-195) and the bun suites (impacted shards, full-suite fallback), and `release` needs required-ci (release.yml, `needs: [gate, required-ci]`), whose REQUIRED list names Tests and accepts the parent verdict for a bump-only commit. The one thing Tests cannot see was never checked in the gate: that the committed dist is a fresh build of the release SHA and that the packed tarball carries it.
786
+ - Siblings swept: publish-npm's pack check (release.yml "Pack once and verify the PACKED tarball", it also rebuilds through prepack; untouched), local-ci.sh's own typecheck and bun test (local tier, not a CI gate; untouched), version-bump-only reuse (unchanged), test.yml typecheck-build (kept as the single typecheck).
787
+ - Mechanism: scripts/ci/verify-release-dist.sh. `build` rebuilds loki-ts/dist and compares all four files to the committed dist byte for byte, ignoring only the debugId; `tarball` does the same for the dist inside `npm pack --ignore-scripts`. The gate runs these two and nothing that Tests runs.
788
+ - Fixture: tests/test-release-gate-dedup.sh (red when the gate reintroduces bun test, pytest or typecheck, loses either dist check, when release stops needing required-ci, or when required-ci stops requiring Tests; plus verifier behavior on a debugId-only tarball and a real byte difference).
@@ -868,3 +868,10 @@ previously mismarked two merged guards (S-16, S-74) as PENDING.
868
868
  - **The test that proves it fires:** `tests/test-select-tests.sh` (R8 cases):
869
869
  an attempts.ts-only diff and a docs-only diff each select every declared
870
870
  guard. Run: `bash tests/test-select-tests.sh`.
871
+
872
+ ## 23. Deleting the token env vars left gh and git credential stores reachable (GH-KEYRING, FC-90)
873
+
874
+ - **Incident:** with the token vars removed, `gh auth token` still returned the user's login via the keyring and git still ran osxkeychain and gh credential helpers; tokenFreeEnv and plainTestEnv did nothing about either.
875
+ - **Root cause:** each env builder deleted a subset of credential paths itself; only the worker env reset the rest.
876
+ - **Guard:** `loki-ts/tests/util/fc90_credential_env.test.ts` plants a fake gh hosts.yml and a fake global git credential helper in a fake HOME, proves the raw env sees them, and proves an env from plainTestEnv does not; it also pins the one-dir-per-process GH_CONFIG_DIR lifecycle. It lives in loki-ts/tests/util, which `scripts/global-guards.tsv` already selects on every diff.
877
+ - **The test that proves it fires:** removing the GH_CONFIG_DIR line, the credential.helper reset or the sentinel from `loki-ts/src/util/credential_env.ts` turns it red. Run: `cd loki-ts && bun test tests/util/fc90_credential_env.test.ts`.