loki-mode 11.65.4 → 11.65.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 (70) hide show
  1. package/SKILL.md +2 -2
  2. package/VERSION +1 -1
  3. package/autonomy/run.sh +12 -24
  4. package/dashboard/__init__.py +1 -1
  5. package/dashboard/server.py +2 -2
  6. package/docs/CLI-REFERENCE.md +1 -1
  7. package/docs/INSTALLATION.md +1 -1
  8. package/docs/v10/FAILURE-CLASSES.md +17 -0
  9. package/loki-ts/dist/loki.js +756 -760
  10. package/mcp/__init__.py +1 -1
  11. package/package.json +2 -2
  12. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  13. package/skills/model-selection.md +1 -1
  14. package/web-app/dist/assets/{AdminPage-E8uz-C73.js → AdminPage-BR2oo8oF.js} +1 -1
  15. package/web-app/dist/assets/{Avatar-IPp347qL.js → Avatar-B7S-WmGm.js} +1 -1
  16. package/web-app/dist/assets/{Badge-Cs4HfbCB.js → Badge-C8KIMe7J.js} +1 -1
  17. package/web-app/dist/assets/{Button-Da2g0eLS.js → Button-CU23Gq_d.js} +1 -1
  18. package/web-app/dist/assets/{CockpitPage-wWxlQDYf.js → CockpitPage-CtaUl_8x.js} +1 -1
  19. package/web-app/dist/assets/{ComparePage-Dk94IWxj.js → ComparePage-DulIq8Pp.js} +1 -1
  20. package/web-app/dist/assets/{ErrorBoundary-BcGjW2_c.js → ErrorBoundary-Ca9bISpx.js} +1 -1
  21. package/web-app/dist/assets/{EvidenceReceiptPanel-CtBBDRs3.js → EvidenceReceiptPanel-RKHuadzu.js} +1 -1
  22. package/web-app/dist/assets/{GitHubIssuesPanel-D_5ggf7g.js → GitHubIssuesPanel-Clqc7qd5.js} +1 -1
  23. package/web-app/dist/assets/{GitHubPRsPanel-BXuSD0jX.js → GitHubPRsPanel-DncKl207.js} +1 -1
  24. package/web-app/dist/assets/{HomePage-uVC682YC.js → HomePage-4fZqKDVI.js} +2 -2
  25. package/web-app/dist/assets/{LoginPage-CFHKcLZY.js → LoginPage-xsfVqzKw.js} +1 -1
  26. package/web-app/dist/assets/{MagicPage-CsIbn36t.js → MagicPage-DBg-lc0r.js} +1 -1
  27. package/web-app/dist/assets/{MetricsPage-BCPwY7xx.js → MetricsPage-BPSBoRpo.js} +1 -1
  28. package/web-app/dist/assets/{NotFoundPage-DeWSEs7u.js → NotFoundPage-9mPQaUKW.js} +1 -1
  29. package/web-app/dist/assets/{ProjectPage-B4qrEJ0l.js → ProjectPage-BubpfslC.js} +3 -3
  30. package/web-app/dist/assets/{ProjectsPage-3_ZfvwmI.js → ProjectsPage-D_9boYgm.js} +1 -1
  31. package/web-app/dist/assets/{SettingsPage-Bq6DKDrG.js → SettingsPage-CZVCwQWR.js} +1 -1
  32. package/web-app/dist/assets/{ShowcasePage-SBlZEbsl.js → ShowcasePage-Bv53ooUS.js} +1 -1
  33. package/web-app/dist/assets/{SystemSettingsPage-P9t6itKT.js → SystemSettingsPage-BGmbeUnH.js} +1 -1
  34. package/web-app/dist/assets/{TeamsPage-DWW22Bt1.js → TeamsPage-D-6Mk_XH.js} +1 -1
  35. package/web-app/dist/assets/{TemplatesPage-DLugy3PX.js → TemplatesPage-XWQ7o4Qs.js} +1 -1
  36. package/web-app/dist/assets/{TerminalOutput-rQWsRe2Q.js → TerminalOutput-Cn_-Nu_s.js} +1 -1
  37. package/web-app/dist/assets/{activity-Cx2E5u5e.js → activity-BKy8AeRX.js} +1 -1
  38. package/web-app/dist/assets/{bell-DpjwhH6X.js → bell-DMmejLqr.js} +1 -1
  39. package/web-app/dist/assets/{bot-BegJ_aOp.js → bot-BZji7MY5.js} +1 -1
  40. package/web-app/dist/assets/{check-BtLFYDnO.js → check-C59wPVTO.js} +1 -1
  41. package/web-app/dist/assets/{chevron-left-8hoi5uzX.js → chevron-left-D-sr7v8x.js} +1 -1
  42. package/web-app/dist/assets/{circle-alert-D9QYd_Hu.js → circle-alert-CcFV2V_y.js} +1 -1
  43. package/web-app/dist/assets/{clock-BLo-U6Ub.js → clock-BBODLmoc.js} +1 -1
  44. package/web-app/dist/assets/{cloud-ChNZ0Ei3.js → cloud-BV20wcMx.js} +1 -1
  45. package/web-app/dist/assets/{code-xml-BeIUSpxK.js → code-xml-31vAK_M-.js} +1 -1
  46. package/web-app/dist/assets/{database-asumYV1v.js → database-gw5hkTxO.js} +1 -1
  47. package/web-app/dist/assets/{dollar-sign-Bg-kjsAN.js → dollar-sign-BTuQDoSJ.js} +1 -1
  48. package/web-app/dist/assets/{file-code-corner-DK6Mx3KM.js → file-code-corner-jnqbZyx2.js} +1 -1
  49. package/web-app/dist/assets/{file-plus-BRUOODu1.js → file-plus-Br73zQPJ.js} +1 -1
  50. package/web-app/dist/assets/{globe-Cz32XNOf.js → globe-D4Xo34wz.js} +1 -1
  51. package/web-app/dist/assets/{hammer-Co1ru-mB.js → hammer-l1Bhh5E7.js} +1 -1
  52. package/web-app/dist/assets/{index-Dr8VE_ox.js → index-Lge9tflt.js} +3 -3
  53. package/web-app/dist/assets/{layers-CJvsnKaM.js → layers-u75y8AMB.js} +1 -1
  54. package/web-app/dist/assets/{loader-circle-CPx0kiRk.js → loader-circle-D5z5-Rnk.js} +1 -1
  55. package/web-app/dist/assets/{lock-TmQLjsFI.js → lock-BLDB8krK.js} +1 -1
  56. package/web-app/dist/assets/{package-Cx2ZpdtQ.js → package-hBfq3Sq5.js} +1 -1
  57. package/web-app/dist/assets/{plus-CSX7EWzp.js → plus-BkRuA5UX.js} +1 -1
  58. package/web-app/dist/assets/{refresh-cw-yJIiLz6u.js → refresh-cw-B1tDgw7d.js} +1 -1
  59. package/web-app/dist/assets/{rotate-ccw-BK0q4o0l.js → rotate-ccw-D6nyjUWf.js} +1 -1
  60. package/web-app/dist/assets/{scroll-text-CRZEfsPm.js → scroll-text-6wVJsZ5v.js} +1 -1
  61. package/web-app/dist/assets/{server-Cy8gyVqG.js → server-CTsRTewM.js} +1 -1
  62. package/web-app/dist/assets/{shield-alert-BDSkJbCl.js → shield-alert-VFq3IBcq.js} +1 -1
  63. package/web-app/dist/assets/{thumbs-up-i8_zkP38.js → thumbs-up-B0xyaV46.js} +1 -1
  64. package/web-app/dist/assets/{trash-2-CurWuRme.js → trash-2-BVakBOLq.js} +1 -1
  65. package/web-app/dist/assets/{trending-down-ota1b_SX.js → trending-down-aNe_rT17.js} +1 -1
  66. package/web-app/dist/assets/{trending-up-B5fqalge.js → trending-up-WdUiEy_4.js} +1 -1
  67. package/web-app/dist/assets/{upload-DENZnPXB.js → upload-B6ZDtnjb.js} +1 -1
  68. package/web-app/dist/assets/{usePolling-ClKiMYSn.js → usePolling-D0qAhsnE.js} +1 -1
  69. package/web-app/dist/assets/{user-tYJTJ8mU.js → user-Bk2jAXVf.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: 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.65.4
6
+ # Loki Mode v11.65.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
 
@@ -476,4 +476,4 @@ Implemented, planned and deprecated items, with the version each landed in: `ski
476
476
 
477
477
  ---
478
478
 
479
- **v11.65.4 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
479
+ **v11.65.6 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.65.4
1
+ 11.65.6
package/autonomy/run.sh CHANGED
@@ -16508,24 +16508,15 @@ _dispatch_reviewer() {
16508
16508
  fi
16509
16509
  case "${PROVIDER_NAME:-claude}" in
16510
16510
  claude)
16511
- # SECURITY-REVIEW MODEL GUARD (evidence-based routing, item 4b):
16512
- # By DEFAULT reviewers pass NO --model, so they run on the account
16513
- # default model and are NEVER routed to Fable by a mid-flight model
16514
- # override or LOKI_FABLE_ARCHITECT (those only rewrite the
16515
- # iteration's tier_param, not this dispatch). The ONLY way to pin the
16516
- # reviewer model is the explicit opt-in LOKI_ADVISOR_MODEL below,
16517
- # which honors haiku|sonnet|opus and REFUSES fable for the reason
16518
- # stated here. This must stay true. The official model-config docs
16519
- # CONTRADICT
16520
- # routing security review to Fable: Fable's safety classifiers
16521
- # refuse cybersecurity content, and in non-interactive (-p)
16522
- # mode a flagged request ends the turn with stop_reason
16523
- # "refusal" instead of a transparent Opus re-run. A refused
16524
- # security reviewer would return no VERDICT and break the
16525
- # unanimous-council gate. Defensive-cyber capability lives in
16526
- # Mythos 5 (Project Glasswing), not Fable. If a future change
16527
- # adds --model here, the security-sentinel reviewer must be
16528
- # pinned to opus, never fable.
16511
+ # REVIEWER MODEL PIN: by DEFAULT reviewers pass NO --model, so they
16512
+ # run on the account default model; a mid-flight model override or
16513
+ # LOKI_FABLE_ARCHITECT only rewrites the iteration's tier_param, not
16514
+ # this dispatch. The ONLY way to pin the reviewer model is the
16515
+ # explicit opt-in LOKI_ADVISOR_MODEL below (haiku|sonnet|opus).
16516
+ # A reviewer turn that ends with no VERDICT is never a PASS: the
16517
+ # unanimous-council gate counts it as no verdict. On the raw-SDK
16518
+ # judge path a refusal ends in a named outcome (refused:<category>)
16519
+ # in the gate record (sdk_invoker.ts judgeOutcomeNote).
16529
16520
  # EMBED 2 + 3 (v7.33.0). This is a trust-gate council subcall.
16530
16521
  # $prompt_text is fully self-contained (the diff, changed files,
16531
16522
  # checks, and strict VERDICT/FINDINGS output format), output is
@@ -16550,18 +16541,15 @@ _dispatch_reviewer() {
16550
16541
  # account default). When the operator/user sets LOKI_ADVISOR_MODEL to
16551
16542
  # an allowlisted alias, pin the trust-gate reviewer to it for a
16552
16543
  # stronger/consistent judge - the founder's "advisor will be opus if
16553
- # needed or user opted". FABLE IS REFUSED here: the model-config docs
16554
- # say Fable's safety classifiers refuse cybersecurity content and end
16555
- # a -p turn with stop_reason "refusal", which would return no VERDICT
16556
- # and break the unanimous-council gate. So only haiku|sonnet|opus are
16557
- # honored; fable (or any other value) is ignored with no --model.
16544
+ # needed or user opted". Only the tier aliases haiku|sonnet|opus are
16545
+ # honored; any other value is ignored with no --model.
16558
16546
  if [ -n "${LOKI_ADVISOR_MODEL:-}" ]; then
16559
16547
  local _adv _adv_norm
16560
16548
  _adv="${LOKI_ADVISOR_MODEL}"
16561
16549
  _adv_norm="$(printf '%s' "$_adv" | tr '[:upper:]' '[:lower:]' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
16562
16550
  case "$_adv_norm" in
16563
16551
  haiku|sonnet|opus) _rv_argv+=("--model" "$_adv_norm") ;;
16564
- *) : ;; # fable and invalid values: no --model (account default)
16552
+ *) : ;; # any other value: no --model (account default)
16565
16553
  esac
16566
16554
  fi
16567
16555
  if loki_is_supervised_simple_web; then
@@ -7,6 +7,6 @@ Modules:
7
7
  control: Session control helpers (status, atomic writes, origin check)
8
8
  """
9
9
 
10
- __version__ = "11.65.4"
10
+ __version__ = "11.65.6"
11
11
 
12
12
  __all__ = ["__version__"]
@@ -3956,8 +3956,8 @@ class StartBuildRequest(BaseModel):
3956
3956
  # deliberate session-scope reset, run.sh:15623), which is why start-time uses
3957
3957
  # env, not the override file.
3958
3958
  model: Optional[str] = None
3959
- # Advisor / reviewer model (opt-in Opus judge). haiku|sonnet|opus; fable NOT
3960
- # accepted. Exported as LOKI_ADVISOR_MODEL into the run env; run.sh reads it at
3959
+ # Advisor / reviewer model (opt-in Opus judge). haiku|sonnet|opus; any other
3960
+ # value is rejected. Exported as LOKI_ADVISOR_MODEL into the run env; run.sh reads it at
3961
3961
  # the reviewer-dispatch site (run.sh:10199) to pin the code-review judge while
3962
3962
  # execution stays on the chosen/default execution model. Absent/invalid -> no
3963
3963
  # advisor pin (reviewers use the account default).
@@ -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.65.4. Do not edit by hand.
3
+ Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.65.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.65.4
5
+ **Version:** v11.65.6
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
 
@@ -1857,3 +1857,20 @@ L0 review rule (ENGINE-LAWS.md L0): a fix that adds an `if` or a regex about the
1857
1857
  - Mechanism: scripts/first-run-gate.sh stub claude branches on the session. The Wall author (task.md names the brief) writes tests/loki_wall_hello.test.js content as an agent-independent test; only the implement session (`Loki 10 implement stage` in its prompt) builds hello.js and hello.test.js; project-model and plan sessions write nothing. The engine is unchanged: it already reports PARTIAL when only agent-authored tests ran, and that is the honest verdict for the old stub.
1858
1858
  - Fixture: tests/test-first-run-gate.sh extracts the stub from the gate and runs it per session (plan and project-model write nothing, the Wall author writes only loki_wall_hello.test.js, implement builds the CLI); against the origin/main gate three of those four cases are red, against the fixed gate all pass, and `first-run-gate.sh --entry start-empty` ends `PASS outcome-verified: Outcome: VERIFIED`.
1859
1859
  - Sibling class (dev-machine dist): bin/loki prefers loki-ts/dist/loki.js unless loki-ts/src/cli.ts is newer (bin/loki, the `-nt` freshness guard). It compares only cli.ts, so an edit to any other src file leaves a gitignored dist that silently runs stale code, and a worktree `bun run build` fails and deletes dist. Runs measured through bin/loki in a worktree therefore need dist rebuilt in the main checkout or `BUN_FROM_SOURCE=1`; reviewers state which one they used. No row covered this; this line is the record, and a code fix (compare the newest src mtime) is a separate slice.
1860
+
1861
+ ## FC-SUBPROCESS-TEST-DEFAULT-TIMEOUT Tests that spawn CLIs ran against bun's 5s default timeout and failed on a loaded host with no logic fault
1862
+ - User-visible vs raw: raw (red tests on main, no user message).
1863
+ - Law: a test file that spawns CLIs sets its time budget through the one shared setter, setLoadAwareTimeout in loki-ts/tests/preload.ts (FC-TEST-TIMEOUT-OVERRIDES-CLI); it does not rely on bun's 5s default or a per-test literal.
1864
+ - Cause (measured): "header [1] and a dict attestation exit 1 with attestation: FAILED" in loki-ts/tests/commands/proof_verify_parity.test.ts runs 2 forged shapes x (1 in-process verify + 2 spawned CLIs) plus signing; on origin/main a78f48031 at load about 24 it failed with "this test timed out after 5000ms" and passed with `--timeout 60000` (1 pass, 0 fail, 5.44s). rev-b saw it fail at 5044.65ms at load 30. eng-mcpchain measured loki-ts/tests/providers/mcp_config.test.ts "bash and TS produce the same launch for the same fixture" failing the same way.
1865
+ - Not the fix: `timeout` under [test] in loki-ts/bunfig.toml. Measured on bun 1.3.13: with it set, the dict attestation test still failed at 5045.87ms, so bun ignores the key.
1866
+ - Siblings swept (measured with `git grep -lE "Bun\.spawn|spawnSync|execFileSync|execSync|child_process" -- loki-ts/tests` minus `git grep -l "setLoadAwareTimeout|setDefaultTimeout" -- loki-ts/tests`): 164 files spawn a subprocess, 154 of them set no timeout (engine10 81, runner 15, util 14, commands 11, features 10, e10ext 7, project_model 4, integration 3, council 3, providers 2, others 4). Only the two measured failing files are bounded here. The other 154 are out of scope for this change because none has been timed and bounding all of them blind would hide real slowness; each file that fails the same way gets the same one-line call. Per-test durations were not recorded.
1867
+ - Mechanism: setLoadAwareTimeout(30_000) at file level in both measured files, scaled by machine load and overridable with LOKI_TEST_TIMEOUT_SCALE and LOKI_TEST_TIMEOUT_MS.
1868
+ - Fixture: the two named tests; red at the 5000ms default under load, green after (bun test of both files: 36 pass, 0 fail). Mutant on the sibling: setLoadAwareTimeout(1) in mcp_config.test.ts turns the file red with hook timeouts (3.55ms, 3.16ms); restored.
1869
+
1870
+ ## FC-MODEL-OVERRIDE-TEST-TOO-SLOW tests/test-model-override.sh took 445s at load 20-29 and exceeded the 300s shard budget, so a reviewer could not run it to completion
1871
+ - User-visible vs raw: raw (a guard nobody can finish running is a guard nobody trusts; no user message).
1872
+ - Law: a guard script finishes inside the shard budget at the documented load, or it is split; a slow guard is not a skipped guard.
1873
+ - Cause (measured, per-line $SECONDS stamps): two parity matrices took 181s and 249s of the 445s. Each of their 224 cells started a fresh python3 that imported dashboard.server (0.75s per import at load 28), so 448 imports cost about 340s.
1874
+ - Siblings swept: the resolver matrix (section 7) and the session-pin matrix (section 9) both used the per-cell python leg. The estimator leg (`loki plan`) and the bash legs are different processes by design and stay per cell. Other python3 -c calls in the file run once.
1875
+ - Mechanism: one `py_batch` helper resolves every cell in a single interpreter. Each cell runs against a fresh copy of the ambient environment plus its own exports, the same input the per-cell `env "$@" python3` gave. Cell counts stay at 224 and 224.
1876
+ - Fixture: after the change the file finishes in 103s with 71 passed, 0 failed (before: 445s, 71 passed). Mutant: dashboard/server.py `_clamp_to_max_tier` opus arm returning the alias unchanged makes the resolver matrix report PARITY MISMATCH on the fable cells; restored and re-run green.