loki-mode 11.17.42 → 11.17.44

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 (75) hide show
  1. package/SKILL.md +2 -2
  2. package/VERSION +1 -1
  3. package/autonomy/lib/secure-scan.py +58 -2
  4. package/autonomy/loki +22 -7
  5. package/completions/_loki +13 -3
  6. package/completions/loki.bash +32 -1
  7. package/dashboard/__init__.py +1 -1
  8. package/docs/CLI-REFERENCE.md +3 -1
  9. package/docs/INSTALLATION.md +1 -1
  10. package/docs/v10/BOARD.md +37 -6
  11. package/docs/v10/CLI-MODERN.md +1 -1
  12. package/docs/v10/FAILURE-CLASSES.md +7 -0
  13. package/docs/v10/PROGRESS.md +6 -0
  14. package/loki-ts/dist/loki.js +1185 -1139
  15. package/mcp/__init__.py +1 -1
  16. package/package.json +2 -2
  17. package/packages/control-plane/dist/server.js +192 -142
  18. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  19. package/web-app/dist/assets/{AdminPage-BPVS2lw_.js → AdminPage-DQh0uMEZ.js} +1 -1
  20. package/web-app/dist/assets/{Avatar-DeNmWN6j.js → Avatar-84eTYVHr.js} +1 -1
  21. package/web-app/dist/assets/{Badge-DHIpQiHX.js → Badge-Cdj4WuMp.js} +1 -1
  22. package/web-app/dist/assets/{Button-Codl3KHK.js → Button-B4wS8oEx.js} +1 -1
  23. package/web-app/dist/assets/{CockpitPage-7-0787T9.js → CockpitPage-CmaQv_rL.js} +1 -1
  24. package/web-app/dist/assets/{ComparePage-iH3EIb7E.js → ComparePage-DfTjVQkq.js} +1 -1
  25. package/web-app/dist/assets/{ErrorBoundary-DSSzEuvn.js → ErrorBoundary-C3TjOwpP.js} +1 -1
  26. package/web-app/dist/assets/{EvidenceReceiptPanel-DDkXp4dL.js → EvidenceReceiptPanel-A_CiIZ4X.js} +1 -1
  27. package/web-app/dist/assets/{GitHubIssuesPanel-C18iXGn9.js → GitHubIssuesPanel-SVaeYaPy.js} +1 -1
  28. package/web-app/dist/assets/{GitHubPRsPanel-CuoSxf1X.js → GitHubPRsPanel-DJt7g4Pp.js} +1 -1
  29. package/web-app/dist/assets/{HomePage-Cc-UkeTr.js → HomePage-YMXFjgBp.js} +2 -2
  30. package/web-app/dist/assets/{LoginPage-Cz19E67v.js → LoginPage-DYg_NPth.js} +1 -1
  31. package/web-app/dist/assets/{MagicPage-B6zd2wsH.js → MagicPage-DGX4Lq5U.js} +1 -1
  32. package/web-app/dist/assets/{MetricsPage-B9INzw3f.js → MetricsPage-uD_P4MCJ.js} +1 -1
  33. package/web-app/dist/assets/{NotFoundPage-Do0a6qq9.js → NotFoundPage-DSmZyCJv.js} +1 -1
  34. package/web-app/dist/assets/{ProjectPage-DX3o3FPS.js → ProjectPage-gCZUZcT-.js} +3 -3
  35. package/web-app/dist/assets/{ProjectsPage-CBXj5ehW.js → ProjectsPage-YRevZmdN.js} +1 -1
  36. package/web-app/dist/assets/{SettingsPage-dlB_5z5P.js → SettingsPage-DwTsMRGS.js} +1 -1
  37. package/web-app/dist/assets/{ShowcasePage-B4AamDna.js → ShowcasePage-D3S-XKZm.js} +1 -1
  38. package/web-app/dist/assets/{SystemSettingsPage-CRMvKGYU.js → SystemSettingsPage-DQnfIRKG.js} +1 -1
  39. package/web-app/dist/assets/{TeamsPage-t9c4x788.js → TeamsPage-CWlL5x0m.js} +1 -1
  40. package/web-app/dist/assets/{TemplatesPage-DeGaZFTG.js → TemplatesPage-iutuIUEE.js} +1 -1
  41. package/web-app/dist/assets/{TerminalOutput-G31VzO9H.js → TerminalOutput-D9yF6zBW.js} +1 -1
  42. package/web-app/dist/assets/{activity-CmEjbl9p.js → activity-9_w3VmWg.js} +1 -1
  43. package/web-app/dist/assets/{bell-BrB1urp7.js → bell-D3OP8VZ7.js} +1 -1
  44. package/web-app/dist/assets/{bot-BMxqZc49.js → bot-DDG1cQxK.js} +1 -1
  45. package/web-app/dist/assets/{check-DgIZol8f.js → check-EW0lJblv.js} +1 -1
  46. package/web-app/dist/assets/{chevron-left-qMIE0cDr.js → chevron-left-B4rt_k4K.js} +1 -1
  47. package/web-app/dist/assets/{circle-alert-CX8OMfQi.js → circle-alert-DU98pynG.js} +1 -1
  48. package/web-app/dist/assets/{clock-BWn2Jze6.js → clock-AbKik9uE.js} +1 -1
  49. package/web-app/dist/assets/{cloud-B-AKwdUd.js → cloud-DwH-HIQ5.js} +1 -1
  50. package/web-app/dist/assets/{code-xml-D5g_nMzh.js → code-xml-ISq7rL8q.js} +1 -1
  51. package/web-app/dist/assets/{database-FLci9a_L.js → database-CJHcL02M.js} +1 -1
  52. package/web-app/dist/assets/{dollar-sign-oHFYulLR.js → dollar-sign-C6-GwMUE.js} +1 -1
  53. package/web-app/dist/assets/{file-code-corner-tOfIJYNi.js → file-code-corner-oa05HcOf.js} +1 -1
  54. package/web-app/dist/assets/{file-plus-BdjSTmSi.js → file-plus-p0HoytyR.js} +1 -1
  55. package/web-app/dist/assets/{globe-BhnmSAWt.js → globe-CL_RV__2.js} +1 -1
  56. package/web-app/dist/assets/{hammer-CF-MPA1L.js → hammer-CRP8xWZl.js} +1 -1
  57. package/web-app/dist/assets/{index-6SmuA6vo.js → index-D86O9Ak6.js} +3 -3
  58. package/web-app/dist/assets/{layers-7YlE4617.js → layers-BJbaP6xJ.js} +1 -1
  59. package/web-app/dist/assets/{loader-circle-BpZ0PaNs.js → loader-circle-Btcxs-64.js} +1 -1
  60. package/web-app/dist/assets/{lock--fYCznSR.js → lock-Bd2Yj6rY.js} +1 -1
  61. package/web-app/dist/assets/{package-U_Arm0cd.js → package-tKCkzim3.js} +1 -1
  62. package/web-app/dist/assets/{plus-BZVrxRYG.js → plus-rxy1B7R4.js} +1 -1
  63. package/web-app/dist/assets/{refresh-cw-C5w6Ak_2.js → refresh-cw-Bykzqbq7.js} +1 -1
  64. package/web-app/dist/assets/{rotate-ccw-BoOWI6PB.js → rotate-ccw-B0zi3eqY.js} +1 -1
  65. package/web-app/dist/assets/{scroll-text-C0pBzd-k.js → scroll-text-J8wWrWX-.js} +1 -1
  66. package/web-app/dist/assets/{server-Cs9i_vco.js → server-B5cOTUHz.js} +1 -1
  67. package/web-app/dist/assets/{shield-alert-3oKaRgIp.js → shield-alert-CryIgWVO.js} +1 -1
  68. package/web-app/dist/assets/{thumbs-up-BOZEbhQH.js → thumbs-up-DSLZJsOW.js} +1 -1
  69. package/web-app/dist/assets/{trash-2-B8x1w7gc.js → trash-2-6P-i8jxc.js} +1 -1
  70. package/web-app/dist/assets/{trending-down-CSDM4aj2.js → trending-down-LGEVSvWI.js} +1 -1
  71. package/web-app/dist/assets/{trending-up-CKCveriW.js → trending-up-BBN_6tC-.js} +1 -1
  72. package/web-app/dist/assets/{upload-C3Vn2m4l.js → upload-1O3p1SX0.js} +1 -1
  73. package/web-app/dist/assets/{usePolling-BQfKHNwN.js → usePolling-CFAGN7AY.js} +1 -1
  74. package/web-app/dist/assets/{user-B6OJgsvN.js → user-BkD7wEFM.js} +1 -1
  75. 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.42
6
+ # Loki Mode v11.17.44
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.42 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
486
+ **v11.17.44 | [Autonomi](https://www.autonomi.dev/) flagship product | core skill**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.17.42
1
+ 11.17.44
@@ -18,7 +18,7 @@ The scanner is honest by construction:
18
18
  .git, vendor, bundled dist of dependencies) and oversized files, so it is
19
19
  cheap and deterministic.
20
20
 
21
- The five v1 rules (see internal/LOOP4-SECURE-BY-DEFAULT-PLAN.md):
21
+ The v1 rules (rules 6 and 7 added later) (see internal/LOOP4-SECURE-BY-DEFAULT-PLAN.md):
22
22
  1. private-key-committed (HIGH) a PEM private-key block in any text file
23
23
  2. secret-in-client-file (HIGH) a real secret literal in a browser-served file
24
24
  3. world-open-datastore (HIGH) a literal world-open datastore rule
@@ -46,7 +46,7 @@ import os
46
46
  import re
47
47
  import sys
48
48
 
49
- RULES_VERSION = "1.1"
49
+ RULES_VERSION = "1.2"
50
50
 
51
51
  # --- scan limits -----------------------------------------------------------
52
52
  # Cap per-file size so a giant generated bundle cannot stall the gate. 2 MiB is
@@ -408,6 +408,48 @@ def _tls_rule_applies(rel_path):
408
408
  return not norm.lower().endswith((".md", ".mdx", ".rst", ".txt", ".adoc"))
409
409
 
410
410
 
411
+ # ---------------------------------------------------------------------------
412
+ # rule 7: shell injection shapes
413
+ # ---------------------------------------------------------------------------
414
+ # Literal forms only, one line: subprocess.* with shell=True whose first
415
+ # argument is an f-string, a %-format, a .format() call or a concatenation;
416
+ # os.system() with an f-string, %-format, .format() or concatenation; and
417
+ # child_process exec/execSync with a template literal containing ${...}.
418
+ # Constant-string commands and list-form argv are never flagged.
419
+ _PY_DYNAMIC_ARG = (
420
+ r"""(?:[rRbB]?[fF][rR]?(?:"[^"]*"|'[^']*')"""
421
+ r"""|(?:"[^"]*"|'[^']*')\s*(?:%|\+|\.format\()"""
422
+ r"""|[A-Za-z_][\w.]*\s*\+\s*(?:"|'|[A-Za-z_]))"""
423
+ )
424
+ _SHELL_TRUE_SUBPROCESS = re.compile(
425
+ r"""\bsubprocess\.(?:run|call|Popen|check_output|check_call)\(\s*"""
426
+ + _PY_DYNAMIC_ARG + r""".*\bshell\s*=\s*True\b"""
427
+ )
428
+ _OS_SYSTEM_DYNAMIC = re.compile(
429
+ r"""\bos\.(?:system|popen)\(\s*""" + _PY_DYNAMIC_ARG
430
+ )
431
+ _NODE_EXEC_TEMPLATE = re.compile(
432
+ r"""\b(?:child_process\.|cp\.)?(?:exec|execSync)\(\s*`[^`]*\$\{"""
433
+ )
434
+ _NODE_CP_FILE = re.compile(r"""\bchild_process\b""")
435
+ _SHELL_INJECTION_PATH_RE = _TLS_FIXTURE_PATH_RE
436
+
437
+
438
+ def _shell_rule_applies(rel_path):
439
+ """Same exclusions as rule 6: dev/test/fixture paths and prose docs."""
440
+ return _tls_rule_applies(rel_path)
441
+
442
+
443
+ def _shell_injection_hit(text, node_file):
444
+ if _SHELL_TRUE_SUBPROCESS.search(text) or _OS_SYSTEM_DYNAMIC.search(text):
445
+ return True
446
+ m = _NODE_EXEC_TEMPLATE.search(text)
447
+ if not m:
448
+ return False
449
+ qualified = text[max(0, m.start()):m.end()].lstrip().startswith(("child_process.", "cp."))
450
+ return qualified or node_file
451
+
452
+
411
453
  # ---------------------------------------------------------------------------
412
454
  # file walking / reading
413
455
  # ---------------------------------------------------------------------------
@@ -471,6 +513,8 @@ def _scan_file(rel_path, lines, secrets_everywhere=False):
471
513
  browser_served = _is_browser_served(rel_path)
472
514
  prod_config = _is_production_config(rel_path)
473
515
  tls_scan = _tls_rule_applies(rel_path)
516
+ shell_scan = _shell_rule_applies(rel_path)
517
+ node_file = shell_scan and any(_NODE_CP_FILE.search(t) for _, t in lines)
474
518
 
475
519
  # rule 3 / rule 5 need whole-file context for the AND conditions.
476
520
  saw_rls_disable = None # lineno of a DISABLE ROW LEVEL SECURITY
@@ -603,6 +647,18 @@ def _scan_file(rel_path, lines, secrets_everywhere=False):
603
647
  "instead of turning verification off.",
604
648
  ))
605
649
 
650
+ # --- rule 7: shell injection shapes ------------------------------
651
+ if (shell_scan and not _COMMENT_OR_DOC_LINE.match(text)
652
+ and _shell_injection_hit(text, node_file)):
653
+ findings.append(_finding(
654
+ "shell-injection", rel_path, lineno, "HIGH",
655
+ "A shell command is built from a formatted or concatenated "
656
+ "string; any untrusted value in it becomes shell syntax.",
657
+ "Pass an argv list without shell=True (subprocess.run([cmd, "
658
+ "arg])) or use execFile/spawn with an args array; never "
659
+ "interpolate input into a command string.",
660
+ ))
661
+
606
662
  # --- rule 5: CORS wildcard + credentials (whole-file AND) --------
607
663
  # Skip prose/doc lines (_rule3_skip = comment-only line or .md/.rst/.txt
608
664
  # doc file): a README or comment WARNING about ACAO * + credentials is not
package/autonomy/loki CHANGED
@@ -1757,14 +1757,15 @@ _help_answer() {
1757
1757
  _help_verify_pr() {
1758
1758
  echo -e "${BOLD}loki verify-pr${NC} - Verify a PR against its linked issue (experimental, LOKI_VERIFY_PR=1)"
1759
1759
  echo ""
1760
- echo "Usage: loki verify-pr <https://github.com/o/r/pull/N | o/r#N> [--out DIR]"
1760
+ echo "Usage: loki verify-pr <https://github.com/o/r/pull/N | o/r#N> [--out DIR] [--json]"
1761
1761
  echo " loki verify-pr respond <o/r#N> fix open review comments (one commit each, on the PR"
1762
1762
  echo " branch), push, reply with the sha; never resolves threads"
1763
1763
  echo ""
1764
1764
  echo "Derives a check from the PR's linked issue (Check: \`cmd\` or a loki-check fence)."
1765
1765
  echo "VERIFIED only if the check fails on the PR base, passes on its head, and the"
1766
1766
  echo "touched packages' suites pass. A PR with no linked issue, no check, a removed"
1767
- echo "test or a non-discriminating check is NOT PROVEN. Writes verify-pr-result.json."
1767
+ echo "test or a non-discriminating check is NOT PROVEN. Writes verify-pr-result.json;"
1768
+ echo "--json also prints that verdict object on stdout instead of the text summary."
1768
1769
  echo "PR code runs only in the container sandbox (scripts/verify-pr-sandbox.sh); set"
1769
1770
  echo "LOKI_VPR_IMAGE to a locally present image."
1770
1771
  echo ""
@@ -1855,6 +1856,7 @@ show_help_all() {
1855
1856
  echo " ultracode \"task\" Run a task as a native Claude Code Dynamic Workflow (opt-in, Claude-only)"
1856
1857
  echo " trust [cmd] Visible trust trajectory; 'trust detail' for metrics"
1857
1858
  echo " undo <run> [--plan|--dry-run] Plan or apply (LOKI_UNDO=1) an undo of a run; verifies the receipt"
1859
+ echo " undo --list List recent runs with verdict, files changed and age"
1858
1860
  echo ""
1859
1861
  echo "Observe:"
1860
1862
  echo " dashboard [cmd] Operations UI server (start|stop|status|url|open)"
@@ -1873,9 +1875,9 @@ show_help_all() {
1873
1875
  echo ""
1874
1876
  echo "Config:"
1875
1877
  echo " config [cmd] Manage configuration (show|init|edit|path|set|get)"
1876
- echo " doctor [--json] Check system prerequisites and skill symlinks"
1878
+ echo " doctor [--json] [--quiet] Check system prerequisites and skill symlinks"
1877
1879
  echo ""
1878
- echo " version Show version"
1880
+ echo " version [--json] Show version (--json for machine-readable)"
1879
1881
  echo " help Show this help ('loki help aliases' for old names)"
1880
1882
  echo ""
1881
1883
  echo "More commands (the most useful; many more are dispatchable):"
@@ -1928,6 +1930,7 @@ show_help_all() {
1928
1930
  echo " loki status [--json] # Current status"
1929
1931
  echo " loki report session --efficiency # Token + cost stats"
1930
1932
  echo " loki report kpis [--json] # Accuracy + efficiency KPI snapshot"
1933
+ echo " loki report kpis --since 7d # Window KPI totals (Nd or YYYY-MM-DD)"
1931
1934
  echo " loki doctor [--json] # System prereq + skill symlinks"
1932
1935
  echo " loki logs # Tail recent log output"
1933
1936
  echo " loki report export json|markdown|csv|timeline # Export session"
@@ -7494,6 +7497,9 @@ cmd_provider() {
7494
7497
  cmd_provider_set "$@"
7495
7498
  ;;
7496
7499
  list)
7500
+ case " $* " in
7501
+ *" --json "*) _loki_bun_delegate provider list "$@" || { echo "loki provider list --json needs bun: ${_LOKI_DELEGATE_WHY}" >&2; return 1; } ;;
7502
+ esac
7497
7503
  cmd_provider_list
7498
7504
  ;;
7499
7505
  info)
@@ -7516,7 +7522,7 @@ cmd_provider() {
7516
7522
  echo "Commands:"
7517
7523
  echo " show Show current provider (default)"
7518
7524
  echo " set Set provider for this project"
7519
- echo " list List available providers"
7525
+ echo " list List available providers (--json: name, tier, installed, version)"
7520
7526
  echo " info Show provider details (--json: capability contract)"
7521
7527
  echo " matrix Show the capability matrix per provider and engine"
7522
7528
  echo " models Show resolved model configuration for all providers"
@@ -15486,10 +15492,19 @@ cmd_version() {
15486
15492
  --help|-h|help)
15487
15493
  echo -e "${BOLD}Loki Mode -- print version${NC}"
15488
15494
  echo ""
15489
- echo "Usage: loki version"
15495
+ echo "Usage: loki version [--json]"
15490
15496
  echo ""
15491
15497
  echo "Prints 'Loki Mode vX.Y.Z' from the VERSION file shipped with"
15492
15498
  echo "the package. Equivalent to 'loki --version' and 'loki -v'."
15499
+ echo ""
15500
+ echo " --json Print {\"version\",\"runtime\",\"install_path\"} as one JSON line"
15501
+ return 0
15502
+ ;;
15503
+ --json)
15504
+ local _vp="${SKILL_DIR:-}"
15505
+ _vp="${_vp//\\/\\\\}"
15506
+ _vp="${_vp//\"/\\\"}"
15507
+ printf '{"version":"%s","runtime":"bash","install_path":"%s"}\n' "$(get_version)" "$_vp"
15493
15508
  return 0
15494
15509
  ;;
15495
15510
  esac
@@ -25720,7 +25735,7 @@ except Exception as e:
25720
25735
  echo "Usage: loki memory <command> [args]"
25721
25736
  echo ""
25722
25737
  echo "Learnings Commands:"
25723
- echo " list Show summary of all learnings"
25738
+ echo " list [--json] Show summary of all learnings"
25724
25739
  echo " show [type] Show entries (patterns|mistakes|successes|all)"
25725
25740
  echo " Options: --limit N, --project P"
25726
25741
  echo " search <query> Search across all learnings"
package/completions/_loki CHANGED
@@ -73,6 +73,7 @@ function _loki {
73
73
  doctor)
74
74
  _arguments \
75
75
  '--json[Output machine-readable JSON]' \
76
+ '(-q --quiet)'{-q,--quiet}'[Print only failed and warned checks plus the summary]' \
76
77
  '--fix[Create state dirs and a default config; offer claude install and login]' \
77
78
  '--yes[With --fix: run the claude install and login without asking]' \
78
79
  '--help[Show help]'
@@ -164,6 +165,9 @@ function _loki {
164
165
  completions)
165
166
  _arguments '1:shell:(bash zsh install)'
166
167
  ;;
168
+ version)
169
+ _arguments '--json[Print version, runtime and install path as JSON]' '--help[Show help]'
170
+ ;;
167
171
  monitor)
168
172
  _directories
169
173
  ;;
@@ -186,6 +190,12 @@ function _loki {
186
190
  '--auto-rollback[Roll back on a failed health probe]' \
187
191
  '--help[Show help]'
188
192
  ;;
193
+ verify-pr)
194
+ _arguments \
195
+ '--out[Result directory]:dir:_files -/' \
196
+ '--json[Print the verdict object on stdout]' \
197
+ '--help[Show help]'
198
+ ;;
189
199
  verify)
190
200
  _arguments \
191
201
  '--pubkey[Check against this public key only]:key file:_files' \
@@ -305,7 +315,7 @@ function _loki_commands {
305
315
  'verify-pr:Verify a PR against its linked issue in a sandbox'
306
316
  'queue:Overnight issue queue with a morning digest'
307
317
  'issues:Run every open issue in a repo and open PRs'
308
- 'undo:Show what undoing a run would do (read-only plan; --dry-run adds the diffstat)'
318
+ 'undo:Show what undoing a run would do (read-only plan; --dry-run adds the diffstat; --list shows recent runs)'
309
319
  'chat:Interactive chat session (run, attach)'
310
320
  'route:Print the engine, provider and model route without running'
311
321
  'edit:Make a scoped edit to files'
@@ -345,7 +355,7 @@ function _loki_commands {
345
355
  'bench:Run benchmarks'
346
356
  'open:Open a project resource'
347
357
  'rc:Release candidate commands'
348
- 'version:Show version'
358
+ 'version:Show version (--json for machine-readable)'
349
359
  'completions:Output shell completions'
350
360
  'help:Show help'
351
361
  )
@@ -435,7 +445,7 @@ function _loki_provider {
435
445
  cmds=(
436
446
  'show:Display current provider'
437
447
  'set:Set default provider'
438
- 'list:List available providers'
448
+ 'list:List available providers (--json: name, tier, installed, version)'
439
449
  'info:Get provider information (--json: capability contract)'
440
450
  'matrix:Show the capability matrix'
441
451
  'help:Provider help'
@@ -72,6 +72,10 @@ _loki_completion() {
72
72
  ;;
73
73
 
74
74
  provider)
75
+ if [[ $cword -ge 3 && ( "${words[2]}" == "list" || "${words[2]}" == "info" ) ]]; then
76
+ COMPREPLY=( $(compgen -W "--json" -- "$cur") )
77
+ return 0
78
+ fi
75
79
  local provider_cmds="show set list info matrix help"
76
80
  COMPREPLY=( $(compgen -W "${provider_cmds}" -- "$cur") )
77
81
  ;;
@@ -143,7 +147,7 @@ _loki_completion() {
143
147
  ;;
144
148
  doctor)
145
149
  if [[ "$cur" == -* ]]; then
146
- COMPREPLY=( $(compgen -W "--json --fix --yes --repo --requirements --help" -- "$cur") )
150
+ COMPREPLY=( $(compgen -W "--json --quiet --fix --yes --repo --requirements --help" -- "$cur") )
147
151
  return 0
148
152
  fi
149
153
  ;;
@@ -274,6 +278,29 @@ _loki_completion() {
274
278
  _filedir -d
275
279
  ;;
276
280
 
281
+ report)
282
+ if [[ "$cur" == -* ]]; then
283
+ COMPREPLY=( $(compgen -W "--json --since --efficiency --help" -- "$cur") )
284
+ return 0
285
+ fi
286
+ COMPREPLY=( $(compgen -W "session metrics cost kpis export share dogfood" -- "$cur") )
287
+ return 0
288
+ ;;
289
+
290
+ verify-pr)
291
+ if [[ "$cur" == -* ]]; then
292
+ COMPREPLY=( $(compgen -W "--out --json --help" -- "$cur") )
293
+ return 0
294
+ fi
295
+ ;;
296
+
297
+ undo)
298
+ if [[ "$cur" == -* ]]; then
299
+ COMPREPLY=( $(compgen -W "--list --plan --dry-run --help" -- "$cur") )
300
+ return 0
301
+ fi
302
+ ;;
303
+
277
304
  metrics)
278
305
  if [[ "$cur" == -* ]]; then
279
306
  COMPREPLY=( $(compgen -W "--json --last --save --share --help" -- "$cur") )
@@ -319,6 +346,10 @@ _loki_completion() {
319
346
  _filedir -d
320
347
  ;;
321
348
 
349
+ version)
350
+ COMPREPLY=( $(compgen -W "--json --help" -- "$cur") )
351
+ ;;
352
+
322
353
  completions)
323
354
  COMPREPLY=( $(compgen -W "bash zsh install" -- "$cur") )
324
355
  ;;
@@ -7,6 +7,6 @@ Modules:
7
7
  control: Session control helpers (status, atomic writes, origin check)
8
8
  """
9
9
 
10
- __version__ = "11.17.42"
10
+ __version__ = "11.17.44"
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.42. Do not edit by hand.
3
+ Generated from `loki-ts/src/cli/registry.ts` by `scripts/generate-stale-zero.sh` for v11.17.44. 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 |
@@ -71,6 +71,8 @@ Hidden and legacy-only commands are omitted; see `docs/v10/CLI-MODERN.md` for th
71
71
  | `loki queue` | Overnight issue queue with a morning digest |
72
72
  | `loki queue add` | Queue issue refs |
73
73
  | `loki queue list` | Show the queue |
74
+ | `loki queue remove` | Take issue refs out of the queue |
75
+ | `loki queue clear` | Empty the queue |
74
76
  | `loki queue run` | Process the queue |
75
77
  | `loki issues` | Run every open issue in a repo and open PRs |
76
78
  | `loki issues run` | Triage and run open issues; split too-large ones into stacked PRs |
@@ -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.42
5
+ **Version:** v11.17.44
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
 
package/docs/v10/BOARD.md CHANGED
@@ -1155,7 +1155,7 @@ Source: ~/git/autonomi-dev/research/2026-09-30-adoption/SWARM-PROMPT-ADOPTION.md
1155
1155
  | TEN-STABILITY-14 | P0 fix-forward: four loki-ts/tests/util structural guards are red on main (model_output_regex_guard: wall.ts count mismatched after TEN-STABILITY-13 moved classifiers to util/check_result.ts; full_env_spawn_guard: doctor.ts mismatched and util/funnel.ts unlisted; registration_list_guard: stale commands/status.ts entry; start_flag_parity_guard: --cost undeclared) | the four allowlist or table files those guards load, plus the src file only when the honest fix is in code (for example funnel.ts spawning with the full env) | MEDIUM | red: cd loki-ts && bun test tests/util/model_output_regex_guard.test.ts tests/util/full_env_spawn_guard.test.ts tests/util/registration_list_guard.test.ts tests/util/start_flag_parity_guard.test.ts has 4 fails; green: 0 fails and bun test tests/util tests/engine10 has 0 fails | released v11.17.39 | Each allowlist entry needs a true reason; a full-env spawn in funnel.ts is fixed in code (allowlisted env) unless it is a documented passthrough. Three were red at ac43fb498 (v11.17.37). Source: combined-tree run before v11.17.38. |
1156
1156
  | TEN-COST-31 | feature: loki report kpis --since <Nd or YYYY-MM-DD> limits the iteration totals to a window and the human output names the window | loki-ts/src/commands/kpis.ts, loki-ts/src/metrics/kpis.ts, loki-ts/tests/commands/kpis.test.ts | MEDIUM | red: `loki report kpis --since 7d` exits 1 with unknown arg; green: iterations older than the window are excluded from cost and token totals, output says "since <date>", bad value exits 1; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/kpis.test.ts | released v11.17.40 | Gap: grep -n -e '--since' loki-ts/src/commands/kpis.ts returned 0 hits; the flag loop at kpis.ts:66-80 accepts only --json and help. Engineer confirms the iteration file mtime or timestamp field in metrics/kpis.ts before filtering. |
1157
1157
  | TEN-COST-32 | enhancement: a BUDGET_STOP run's next line names the exact recovery (loki start --max-cost <higher> or the resume command) instead of the generic loki status | loki-ts/src/util/run_summary.ts, loki-ts/tests/util/run_summary.test.ts | LOW | red: nextOf for a BUDGET_STOP run returns "loki status"; green: next line contains "--max-cost" and the run id; cd loki-ts && bunx tsc --noEmit && bun test tests/util/run_summary.test.ts | released v11.17.41 | Gap: run_summary.ts:62-67 returns "loki status" for every stopped result; grep -n 'max-cost' loki-ts/src/util/run_summary.ts returned 0 hits. Keep the change in util/ (engine10/output.ts is at the line cap): key on the outcome the summary input already carries. |
1158
- | TEN-COST-33 | feature: loki queue run --max-total-cost <usd> stops the queue before the next item once cumulative spend reaches the cap and says so in the digest | loki-ts/src/commands/queue.ts, loki-ts/tests/commands/queue.test.ts, loki-ts/src/cli/registry.ts | MEDIUM | red: queue run has no total cap, a 3-item queue runs all 3 with injected spend 2 each and cap 3; green: stops after item 2, remaining items stay queued, digest line names the cap; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/queue.test.ts tests/cli/registry_guard.test.ts | ready@2026-10-17T08:05Z | Gap: grep -nE 'max-cost or total or spend' loki-ts/src/commands/queue.ts shows only the governor forecast (queue.ts:213-235); no cumulative cap. Serialize on queue.ts after TEN-STABILITY-15 and TEN-UX-16. |
1158
+ | TEN-COST-33 | feature: loki queue run --max-total-cost <usd> stops the queue before the next item once cumulative spend reaches the cap and says so in the digest | loki-ts/src/commands/queue.ts, loki-ts/tests/commands/queue.test.ts, loki-ts/src/cli/registry.ts | MEDIUM | red: queue run has no total cap, a 3-item queue runs all 3 with injected spend 2 each and cap 3; green: stops after item 2, remaining items stay queued, digest line names the cap; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/queue.test.ts tests/cli/registry_guard.test.ts | released v11.17.44 | Gap: grep -nE 'max-cost or total or spend' loki-ts/src/commands/queue.ts shows only the governor forecast (queue.ts:213-235); no cumulative cap. Serialize on queue.ts after TEN-STABILITY-15 and TEN-UX-16. |
1159
1159
  | TEN-COST-34 | enhancement: the run summary Spend line adds "of which $X on retries" when retry sessions cost money | loki-ts/src/util/run_summary.ts, loki-ts/tests/util/run_summary.test.ts | LOW | red: a summary input with retry_usd 0.40 prints no retry figure; green: Spend line ends with "($0.40 on retries)", nothing printed when retry_usd is 0 or null; cd loki-ts && bunx tsc --noEmit && bun test tests/util/run_summary.test.ts | released v11.17.40 | Gap: costBreakdown computes retry_usd and retry_sessions (util/cost_breakdown.ts:17-43) and engine10/cost.ts:168 attaches it, but grep -rn retry_usd loki-ts/src outside cost_breakdown.ts returned 0 hits, so no reader. If the breakdown does not reach the summary input, thread it through spendText in run_summary.ts:166 only. |
1160
1160
  | TEN-SPEED-06 | enhancement: loki doctor runs its independent CLI version and network probes concurrently (Promise.all) so the report takes the slowest probe, not the sum | loki-ts/src/commands/doctor.ts, loki-ts/tests/commands/doctor.test.ts | MEDIUM | red: a test with three injected probes of 200ms each takes at least 600ms; green: under 350ms and the output order is unchanged; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/doctor.test.ts | released v11.17.41 | Gap: grep -c 'spawnSync or execSync' loki-ts/src/commands/doctor.ts is 11 against 4 Promise.all uses. Output ordering must stay byte-identical (doctor_router and doctor_count tests). Do not touch claudeLoginProbeCached (TEN-SPEED-05). |
1161
1161
  | TEN-SPEED-07 | feature: fix-round verification runs the previously failing test files first (pytest --ff style, bun/vitest file order) and stops at first failure when the runner supports it | loki-ts/src/util/check_result.ts, loki-ts/src/e10ext/select.ts, loki-ts/tests/e10ext/select.test.ts | MEDIUM | red: fix-round test command is identical to the round-1 command; green: command lists last-round failing files first for bun test, pytest and jest, unchanged for unknown runners; cd loki-ts && bunx tsc --noEmit && bun test tests/e10ext/select.test.ts tests/util | released v11.17.40 | Gap: grep -rnE 'failed.?first or lastFailed or --ff or --bail' loki-ts/src returned 0 hits. Engineer finds the verify command builder; if the only wiring point is inside engine10 core, land the pure helper in e10ext/ and wire with a net-zero line change. |
@@ -1166,22 +1166,53 @@ Source: ~/git/autonomi-dev/research/2026-09-30-adoption/SWARM-PROMPT-ADOPTION.md
1166
1166
  | TEN-GATES-18 | feature: Seal risk summary flags a dependency manifest change (package.json deps, pyproject deps, go.mod) with no matching lockfile change | loki-ts/src/util/check_result.ts, loki-ts/tests/util/check_result.test.ts, loki-ts/tests/engine10 L0 guard allowlist (widened at review) | HIGH | red: diff touching package.json dependencies only produces no finding; green: advisory finding "manifest changed without lockfile", clean when both change or only scripts change; cd loki-ts && bunx tsc --noEmit && bun test tests/util tests/engine10 | released v11.17.40 | Gap: check_result.ts:272 classifies lockfile paths and :312 flags deleted tests, but nothing pairs a manifest with its lockfile (grep -nE 'manifest.*lock' returned only the classifier). Advisory only, never turns a VERIFIED into a fail; needs FAILURE-CLASSES row. |
1167
1167
  | TEN-GATES-19 | feature: the signed receipt records the toolchain that ran the checks (bun, node, python3, git versions) so a verifier can see what produced the proof | loki-ts/src/util/composite_seal.ts, loki-ts/src/util/receipt_signer.ts, loki-ts/tests/engine10/seal_group.test.ts | HIGH | red: receipt payload has no toolchain field; green: receipt carries toolchain {bun,node,python3,git}, absent tools recorded as null, old receipts still verify; cd loki-ts && bunx tsc --noEmit && bun test tests/engine10 tests/util/receipt_bundle.test.ts | released v11.17.40 | Gap: grep -rnE 'node_version or toolchain or bun_version or python_version' loki-ts/src/util loki-ts/src/engine10 returned 0 hits. Schema is additive and optional so verify of pre-existing receipts is unchanged; moat file set, two unanimous reviewers. |
1168
1168
  | TEN-GATES-20 | enhancement: secure-scan.py reports files_scanned and the Seal treats a scan of zero files as not_run instead of a clean pass | autonomy/lib/secure-scan.py, loki-ts/src/util/secure_scan.ts, loki-ts/tests/util/secure_scan.test.ts | HIGH | red: scanning an empty directory returns ok with total 0 and no file count; green: result carries summary.files_scanned, zero files yields not_run in the wrapper; cd loki-ts && bunx tsc --noEmit && bun test tests/util/secure_scan.test.ts && bash tests/test-secure-scan.sh | released v11.17.40 | Gap: scan() at autonomy/lib/secure-scan.py:600-630 returns only rules_version, findings, summary.total and by_severity; grep -n 'files_scanned or scanned' loki-ts/src/util/secure_scan.ts returned 0 hits. Serialize with TEN-SECURITY-06/07 (same python file). |
1169
- | TEN-UX-16 | feature: loki queue remove <issue...> and loki queue clear take items out of the queue | loki-ts/src/commands/queue.ts, loki-ts/src/cli/registry.ts, loki-ts/tests/commands/queue.test.ts | LOW | red: `loki queue remove 12` prints the usage error; green: remove drops the normalized ref and reports "N removed, M left", clear empties the file, missing ref exits 0 with "not queued"; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/queue.test.ts tests/cli/registry_guard.test.ts | ready@2026-10-17T08:05Z | Gap: runQueue dispatches only add, list, run (queue.ts:384-390) and registry.ts:174 declares the same three subcommands; grep -nE 'queue.*(remove or rm or clear)' loki-ts/src returned 0 hits. Serialize after TEN-STABILITY-15. |
1169
+ | TEN-UX-16 | feature: loki queue remove <issue...> and loki queue clear take items out of the queue | loki-ts/src/commands/queue.ts, loki-ts/src/cli/registry.ts, loki-ts/tests/commands/queue.test.ts | LOW | red: `loki queue remove 12` prints the usage error; green: remove drops the normalized ref and reports "N removed, M left", clear empties the file, missing ref exits 0 with "not queued"; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/queue.test.ts tests/cli/registry_guard.test.ts | released v11.17.44 | Gap: runQueue dispatches only add, list, run (queue.ts:384-390) and registry.ts:174 declares the same three subcommands; grep -nE 'queue.*(remove or rm or clear)' loki-ts/src returned 0 hits. Serialize after TEN-STABILITY-15. |
1170
1170
  | TEN-UX-17 | feature: loki undo --list prints the recent runs that can be undone (run id, verdict, files changed, age) | loki-ts/src/commands/undo.ts, loki-ts/tests/commands/undo.test.ts | LOW | red: `loki undo --list` prints the usage text and exits 2; green: lists newest first from the runs dir, exits 0, empty state says "no runs to undo"; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/undo.test.ts | released v11.17.40 | Gap: undo.ts:156 USAGE lists only --plan and --dry-run forms and :180 requires a run id; grep -rnE '"--list"' loki-ts/src/commands returned 0 hits. New test file only if grep -rl runUndo loki-ts/tests finds none. Read-only: no git writes. |
1171
- | TEN-UX-18 | enhancement: loki doctor --quiet prints only failed and warned checks plus the summary footer | loki-ts/src/commands/doctor.ts, loki-ts/tests/commands/doctor.test.ts | LOW | red: doctor --quiet is rejected or prints every pass row; green: only non-pass rows and the footer, exit code unchanged, --json unaffected; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/doctor.test.ts | ready@2026-10-17T08:05Z | Gap: grep -nE 'quiet or -q\b' loki-ts/src/commands/doctor.ts returned 0 hits; the footer tally is at doctor.ts:1026. Update the usage text at doctor.ts:1052 and the start_flag_parity or help-drift guards if they list doctor flags. |
1171
+ | TEN-UX-18 | enhancement: loki doctor --quiet prints only failed and warned checks plus the summary footer | loki-ts/src/commands/doctor.ts, loki-ts/tests/commands/doctor.test.ts | LOW | red: doctor --quiet is rejected or prints every pass row; green: only non-pass rows and the footer, exit code unchanged, --json unaffected; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/doctor.test.ts | released v11.17.44 | Gap: grep -nE 'quiet or -q\b' loki-ts/src/commands/doctor.ts returned 0 hits; the footer tally is at doctor.ts:1026. Update the usage text at doctor.ts:1052 and the start_flag_parity or help-drift guards if they list doctor flags. |
1172
1172
  | TEN-UX-19 | enhancement: loki start --help ends with three copyable examples (brief, PRD file, issue ref) | loki-ts/src/commands/start.ts, loki-ts/tests/commands/start.test.ts | LOW | red: start help text has no Examples section; green: help lists loki start "<brief>", loki start ./prd.md, loki start owner/repo#123 and the quick-start docs agree; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/start.test.ts tests/commands/cli_help_routes.test.ts | released v11.17.41 | Gap: grep -nE 'Examples?:' loki-ts/src/commands/start.ts returned 0 hits. Check the bash help route (autonomy/help-core.sh) is not the one users reach; if it is, change the one that owns the text and keep the other byte-equal per the help-drift guard. |
1173
1173
  | TEN-ADOPTION-13 | feature: loki proof share --dry-run runs the secret scan and prints what would be published without publishing | loki-ts/src/commands/proof.ts, loki-ts/tests/commands/proof.test.ts | MEDIUM | red: `proof share <id> --dry-run` is treated as an unknown arg or publishes; green: prints the file list and scan verdict, publishes nothing, exit 0 clean and 1 when the scan blocks; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/proof.test.ts | released v11.17.40 | Gap: grep -n 'dry' loki-ts/src/commands/proof.ts returned 0 hits; share dispatch is at proof.ts:890 and its token scan came from TEN-ADOPTION-03-F1. |
1174
1174
  | TEN-ADOPTION-14 | enhancement: loki proof list --json prints the proof index as machine-readable JSON | loki-ts/src/commands/proof.ts, loki-ts/tests/commands/proof.test.ts | LOW | red: `proof list --json` prints the text table; green: JSON array of {id, verdict, created} sorted newest first, text output unchanged; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/proof.test.ts | released v11.17.41 | Gap: only show handles --json (proof.ts:47 and :149 args.includes("--json") inside show); the list arm at proof.ts:873 ignores it. Serialize after TEN-ADOPTION-13 (same file). |
1175
1175
  | TEN-ADOPTION-15 | enhancement: loki self-update --check also reports the installed version, the latest published version and whether an update is available | autonomy/loki, tests/test-self-update.sh | MEDIUM | red: --check prints only the detected package manager; green: also prints "installed X, latest Y, update available yes/no", offline prints "latest unknown" and exits 0; bash tests/test-self-update.sh | released v11.17.40 | Gap: autonomy/loki:14665 and :14694 document --check as "Print detection result" only. Reuse the registry lookup already in loki-ts/src/util/update_check.ts:97 instead of a second fetch. If tests/test-self-update.sh does not exist, extend the test that owns cmd_self_update (grep -l self-update tests/*.sh). |
1176
1176
  | TEN-DEPLOY-13 | fix: loki status --probe reports a regression when the health URL redirects to a different host (login page, provider not-found page) even though the final status is 200 | loki-ts/src/commands/status.ts, loki-ts/tests/commands/status.test.ts | MEDIUM | red: probe of a URL that redirects to another host returning 200 prints "Deploy health OK"; green: prints a failure naming the final host and exits 1, same-host redirects (http to https, trailing slash) still pass; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/status.test.ts | released v11.17.40 | Gap: status.ts:865 fetches with redirect follow and accepts 200-399 without comparing res.url to the recorded health_url host, so a redirect to a shared provider page reads healthy. |
1177
1177
  | TEN-DEPLOY-14 | feature: loki status --probe --json prints the probe result as one JSON object (url, ok, status, attempts, reason) | loki-ts/src/commands/status.ts, loki-ts/tests/commands/status.test.ts | LOW | red: --probe --json prints text lines; green: single JSON object, exit codes unchanged (0 healthy or nothing to probe, 1 regression); cd loki-ts && bunx tsc --noEmit && bun test tests/commands/status.test.ts | released v11.17.41 | Gap: status.ts:1023-1031 parses --probe and the usage text allows --json only without --probe; probe output at status.ts:850-880 is text only. Serialize after TEN-DEPLOY-13 (same region). |
1178
- | TEN-DEPLOY-15 | enhancement: loki doctor disk check measures the current repo directory and the temp directory volumes, not only the home directory | loki-ts/src/commands/doctor.ts, loki-ts/tests/commands/doctor.test.ts | LOW | red: checkDisk reads statfs of homedir only; green: result reports the minimum free GB across home, cwd and tmpdir and names which volume is low; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/doctor.test.ts | ready@2026-10-17T08:05Z | Gap: checkDisk at doctor.ts:353-365 calls statfsSync(homedir()) only; builds and worktrees write under cwd and tmpdir, which can be a separate full volume. Keep the DiskCheck JSON shape backwards compatible (add a field, do not rename). Serialize after TEN-SPEED-06 and TEN-UX-18 (same file). |
1178
+ | TEN-DEPLOY-15 | enhancement: loki doctor disk check measures the current repo directory and the temp directory volumes, not only the home directory | loki-ts/src/commands/doctor.ts, loki-ts/tests/commands/doctor.test.ts | LOW | red: checkDisk reads statfs of homedir only; green: result reports the minimum free GB across home, cwd and tmpdir and names which volume is low; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/doctor.test.ts | released v11.17.44 | Gap: checkDisk at doctor.ts:353-365 calls statfsSync(homedir()) only; builds and worktrees write under cwd and tmpdir, which can be a separate full volume. Keep the DiskCheck JSON shape backwards compatible (add a field, do not rename). Serialize after TEN-SPEED-06 and TEN-UX-18 (same file). |
1179
1179
  | TEN-STABILITY-15 | fix: queue add on a corrupt queue file quarantines it and warns instead of silently overwriting every queued item | loki-ts/src/commands/queue.ts, loki-ts/tests/commands/queue.test.ts | MEDIUM | red: a truncated queue.json followed by queue add leaves a file holding only the new item; green: the bad file is renamed to queue.json.corrupt-<ts>, a warning is printed once, the new item is added to a fresh file; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/queue.test.ts | released v11.17.41 | Gap: readQueue returns [] on any JSON error (queue.ts:79-86) and queueAdd then writeQueue overwrites (queue.ts:108-124). Same class as TEN-STABILITY-12 (outbox quarantine at util/outbox.ts:28-33); reuse that pattern and add the row to FAILURE-CLASSES.md. |
1180
1180
  | TEN-STABILITY-16 | enhancement: loki start sweeps stale temp files left by a killed atomic write (name.tmp.<deadpid>.<n>) older than 1 hour in the .loki state dirs | loki-ts/src/util/atomic.ts, loki-ts/tests/util/atomic.test.ts | MEDIUM | red: a leftover state.json.tmp.99999.1 with a dead pid stays forever; green: swept when pid is dead and mtime older than 1h, a live pid or fresh file is untouched, only exact tmp names matched; cd loki-ts && bunx tsc --noEmit && bun test tests/util | released (already shipped before the row: loki-ts/src/runner/state.ts:444 sweepOrphanTmpFiles) | Gap: grep -rnE '\.tmp\.' loki-ts/src shows temp names created at util/atomic.ts:89 and run_control.ts:13 with no sweeper anywhere. Never glob outside .loki; reuse processStartTime or kill -0 from util/run_pid.ts for the liveness test; wire from a util/ entry point, not engine10 core. |
1181
- | TEN-STABILITY-17 | feature: loki doctor lists orphan runs (a run dir whose owner process died before run.completed) with the resume or undo command for each | loki-ts/src/commands/doctor.ts, loki-ts/tests/commands/doctor.test.ts | MEDIUM | red: doctor ignores a run dir with a dead pid and no run.completed event; green: a warn row names the run id and "loki resume" or "loki undo", live and completed runs produce no row; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/doctor.test.ts | ready@2026-10-17T08:05Z | Gap: runOwnerAlive (util/run_pid.ts:59) is consumed only by util/run_outputs.ts:156; grep -n runOwnerAlive loki-ts/src/commands/doctor.ts returned 0 hits. Warn level only, never fails doctor. Serialize after TEN-DEPLOY-15 (same file). |
1181
+ | TEN-STABILITY-17 | feature: loki doctor lists orphan runs (a run dir whose owner process died before run.completed) with the resume or undo command for each | loki-ts/src/commands/doctor.ts, loki-ts/tests/commands/doctor.test.ts | MEDIUM | red: doctor ignores a run dir with a dead pid and no run.completed event; green: a warn row names the run id and "loki resume" or "loki undo", live and completed runs produce no row; cd loki-ts && bunx tsc --noEmit && bun test tests/commands/doctor.test.ts | released v11.17.44 | Gap: runOwnerAlive (util/run_pid.ts:59) is consumed only by util/run_outputs.ts:156; grep -n runOwnerAlive loki-ts/src/commands/doctor.ts returned 0 hits. Warn level only, never fails doctor. Serialize after TEN-DEPLOY-15 (same file). |
1182
1182
  | TEN-STABILITY-18 | P0 fix-forward: nightly 39016259458 reds still red on main e32ee1b5d (pr_body_golden not-recorded producer util/check_result.ts; sizing wall brief 726 vs cap 616; router_optout_golden wall stage haiku for development; verify.test uv resolution CI-only via Bun.which PATH; test-sigpipe-guard 1737 vs ceiling 1728; help-changelog-drift loki verify --require-exogenous; test-ui-bare-loki exact-match on new control lines; test-local-ci-gitleaks scope) | the failing tests, loki-ts/src/util/check_result.ts, loki-ts/src/engine10/stages/wall.ts, loki-ts/src/engine10/stages/verify.ts, verify help and completions, scripts/local-ci.sh, docs/v10/FAILURE-CLASSES.md | MEDIUM | red: each named test fails on e32ee1b5d; green: cd loki-ts && bun test tests/engine10/pr_body_golden.test.ts tests/engine10/sizing.test.ts tests/engine10/router_optout_golden.test.ts tests/engine10/verify.test.ts tests/util; bash tests/test-sigpipe-guard.sh; bash tests/test-help-changelog-drift.sh; bash tests/test-ui-bare-loki.sh; bash tests/test-local-ci-gitleaks.sh | released v11.17.42 | Diagnosis 2026-10-17 by nightly diag agent; one FAILURE-CLASSES row per class |
1183
1183
  | TEN-STABILITY-19 | P0 fix-forward: moat P8.ablation-dead-code-not-sealed positive control headline VERIFIED WITH GAPS (expected VERIFIED) and first-run-gate --stub FAILED with dirty tracked tree M sum.js at intake.ts:61 | tests/moat/p8-*.sh or the ablation producer, scripts/first-run-gate.sh, loki-ts/src/engine10/stages/intake.ts only if the honest fix is there | HIGH | red: bash tests/moat/run.sh prints moat suite: FAIL (1 rule failure(s)); bash scripts/first-run-gate.sh --stub fails 7 assertions; green: both exit 0 | released v11.17.42 | Diagnosis 2026-10-17; never weaken a moat assertion to pass |
1184
+ | TEN-STABILITY-20 | Fix help-changelog-drift red after v11.17.42: list report kpis --since and undo --list in Bun help, autonomy/loki help and both completions | completions/loki.bash, completions/_loki, loki-ts/src help, autonomy/loki, docs/v10/FAILURE-CLASSES.md | LOW | merged 3c4e2fcd9 | released v11.17.43 |
1185
+ | TEN-COST-35 | fix: `loki start --budget-limit=5` (and --provider=, --session-model=, --prd=, --brief=) is accepted by the flag validator then silently ignored, so the default $100 cap and default provider apply; read the `=` form everywhere argVal reads a flag | loki-ts/src/commands/start.ts, loki-ts/tests/commands/start.test.ts | MEDIUM | red: bun test tests/commands/start.test.ts -t "equals form" fails (cap stays default); green: same test passes and `cd loki-ts && bunx tsc --noEmit` exits 0 | released v11.17.44 | Gap: start.ts:23 argVal matches only exact args via indexOf; start.ts:212 validator splits on "=" so the form is accepted; only --cost and --attempts parse "=" |
1186
+ | TEN-COST-36 | fix: `loki start --budget-limit abc`, `--max-iterations -1`, `--budget-limit 0x` and a trailing value flag with no value are silently dropped so the default cap applies; print one error line naming the flag and exit 2 | loki-ts/src/commands/start.ts, loki-ts/tests/commands/start.test.ts | MEDIUM | red: bun test tests/commands/start.test.ts -t "invalid numeric" fails (exit 0, no message); green: passes, valid values unchanged | released v11.17.44 | Gap: start.ts:123 posNum returns undefined for non-numeric, zero or negative with no diagnostic; chain after TEN-COST-35 |
1187
+ | TEN-STABILITY-21 | fix: control `--port` with no value or a non-numeric value silently falls back to the default port; reject with a usage line and exit 2 | loki-ts/src/commands/control.ts, loki-ts/tests/commands/control.test.ts | LOW | red: bun test tests/commands/control.test.ts -t "port without value" fails; green: passes and existing control tests stay green | released v11.17.44 | Gap: control.ts:33 flag() returns args[i+1] unchecked (undefined or the next flag) and callers fall through to the default |
1188
+ | TEN-SECURITY-08 | fix: `loki status <run-id>` and `loki intent show <id>` join the user id into a path with no id check, so `../..` reads an events.jsonl outside .loki/runs; validate against the same RUN_ID_RE as undo and exit 2 | loki-ts/src/commands/run_status.ts, loki-ts/tests/commands/run_status.test.ts | HIGH | red: bun test tests/commands/run_status.test.ts -t "traversal" fails (reads the planted file); green: passes, exit 2 with "invalid run id" | released v11.17.44 | Gap: run_status.ts:50 eventsPath and :148 readEvents(eventsPath(root, wanted)) take wanted unchecked; undo.ts defines RUN_ID_RE = /^[A-Za-z0-9][A-Za-z0-9._-]*$/ (reuse it, do not copy) |
1189
+ | TEN-STABILITY-22 | fix: `loki pause|cancel` prints "requested" for a run whose supervisor pid is dead and targets latestRunId instead of the live run; refuse with "no live run" and exit 1 when run_pid says the owner is gone | loki-ts/src/commands/run_status.ts, loki-ts/tests/commands/run_status.test.ts | MEDIUM | released v11.17.44 | ready@2026-10-17T10:00Z | Gap: run_status.ts:189 runControlVerb never calls runOwnerAlive from util/run_pid.ts; chain after TEN-SECURITY-08 |
1190
+ | TEN-UX-20 | fix: `loki provider frobnicate` prints the help text and exits 0, so scripts and typos look like success; unknown subcommand prints one error line plus help and exits 2 (help, -h, --help stay exit 0) | loki-ts/src/commands/provider.ts, loki-ts/tests/commands/provider.test.ts | LOW | red: bun test tests/commands/provider.test.ts -t "unknown subcommand" fails (exit 0); green: passes, and `bash autonomy/loki provider frobnicate` behavior is checked and the Bun route matches or the bash arm is noted in the PR | released v11.17.44 | Gap: provider.ts:161 default case returns printProviderHelp() which returns 0 |
1191
+ | TEN-DEPLOY-16 | fix: `loki rollback list --bogus` and `rollback to <id> --bogus` ignore unknown flags, so a mistyped safety flag (for example --dry-run spelled wrong) runs the real rollback; reject unknown flags with exit 2 | loki-ts/src/commands/rollback.ts, loki-ts/tests/commands/rollback.test.ts | MEDIUM | red: bun test tests/commands/rollback.test.ts -t "unknown flag" fails; green: passes, valid invocations unchanged | released v11.17.44 | Gap: rollback.ts:120 rejects only unknown subcommands; no flag check on to, latest or list |
1192
+ | TEN-COST-37 | fix: a set but unparseable LOKI_BUDGET_LIMIT (for example "5usd") or loki.yaml budgets.per_run is skipped without a warning and the $100 default silently applies; return the existing {error} form so the run refuses to start (0 stays a valid no-cap value) | loki-ts/src/e10ext/budget_cap.ts, loki-ts/tests/engine10/budget_cap.test.ts | MEDIUM | red: bun test tests/engine10/budget_cap.test.ts -t "unparseable" fails; green: passes, all existing cases green, net line change in engine10 core is zero (e10ext is outside it) | released v11.17.44 | Gap: budget_cap.ts:20 resolveCap falls through on NaN for env and yaml sources with no error or note |
1193
+ | TEN-UX-21 | fix: run summary color ignores the NO_COLOR convention inconsistently: useColor treats NO_COLOR="" as set (disables color) while util/colors.ts treats empty as unset, and neither honors TERM=dumb; make both read one rule (non-empty NO_COLOR or TERM=dumb disables) | loki-ts/src/util/run_summary.ts, loki-ts/src/util/colors.ts, loki-ts/tests/util/run_summary.test.ts | LOW | red: bun test tests/util/run_summary.test.ts -t "NO_COLOR empty" fails; green: passes and `bun test tests/util` stays green | released v11.17.44 | Gap: run_summary.ts:75 `env.NO_COLOR === undefined` vs colors.ts:9 `.length > 0`; grep TERM in both files returns 0 hits |
1194
+ | TEN-STABILITY-23 | fix: LOKI_E10_DASHBOARD_PORT="abc", "" or 70000 reaches Bun.serve as NaN, 0 (random port) or out of range; validate 1-65535, else print the bad value and fall back to the default port with a one-line note | loki-ts/src/runner/engine10_dashboard.ts, loki-ts/tests/engine10/dashboard_entry.test.ts | LOW | red: bun test tests/engine10/dashboard_entry.test.ts -t "bad port env" fails; green: passes, default behavior unchanged | released v11.17.44 | Gap: engine10_dashboard.ts:330 `Number(process.env["LOKI_E10_DASHBOARD_PORT"] ?? DEFAULT_PORT)` has no range or NaN check |
1195
+ | TEN-QUALITY-19 | fix: two different long tasks that share their first 40 slug characters map to one .loki/specs/<slug>.md and one spec-<slug> run dir, so the second task fails with "spec exists" or reuses the first task's edited spec; append a short task hash when the slug was truncated | loki-ts/src/util/spec_file.ts, loki-ts/tests/engine10/spec_first_intent.test.ts | MEDIUM | red: bun test tests/engine10/spec_first_intent.test.ts -t "long task collision" fails; green: passes, short-task slugs unchanged byte for byte | released v11.17.44 | Gap: spec_file.ts:29 slugify slices to 40 chars with no disambiguator; generateSpec uses it for both the path and the run dir |
1196
+ | TEN-UX-22 | fix: `loki memory brief --task` with no value silently briefs for an empty task; print usage and exit 2 | loki-ts/src/commands/memory.ts, loki-ts/tests/commands/memory.test.ts | LOW | red: bun test tests/commands/memory.test.ts -t "brief without task" fails; green: passes, `brief --task "x"` output unchanged | released v11.17.44 | Gap: memory.ts:123 `argv[i + 1] ?? ""` accepts a missing value |
1197
+ | TEN-QUALITY-20 | fix: `loki wiki show architecture modules` silently shows only the last section named; reject a second positional with a usage error and exit 1 | loki-ts/src/commands/wiki.ts, loki-ts/tests/commands/wiki.test.ts | LOW | red: bun test tests/commands/wiki.test.ts -t "two sections" fails; green: passes, single section output unchanged | released v11.17.44 | Gap: wiki.ts:59 `section = a` overwrites on each positional |
1198
+ | TEN-ADOPTION-16 | feature: `--json` for the control status verb so scripts can read running, pid, port and url without parsing text | loki-ts/src/commands/control.ts, loki-ts/tests/commands/control.test.ts | LOW | red: bun test tests/commands/control.test.ts -t "status json" fails; green: passes, text output byte identical | released v11.17.44 | Gap: grep -c '"--json"' loki-ts/src/commands/control.ts returns 0; chain after TEN-STABILITY-21 |
1199
+ | TEN-ADOPTION-17 | feature: `loki provider list --json` printing name, tier, installed and version per provider for CI and editor integrations | loki-ts/src/commands/provider.ts, loki-ts/tests/commands/provider.test.ts | LOW | red: bun test tests/commands/provider.test.ts -t "list json" fails; green: passes, plain `provider list` unchanged | released v11.17.44 | Gap: provider.ts has a single "--json" mention and none on the list arm; chain after TEN-UX-20 |
1200
+ | TEN-DEPLOY-17 | feature: `loki rollback list --json` so deploy automation can pick a rollback target without scraping text | loki-ts/src/commands/rollback.ts, loki-ts/tests/commands/rollback.test.ts | LOW | red: bun test tests/commands/rollback.test.ts -t "list json" fails; green: passes, text output byte identical | released v11.17.44 | Gap: grep -c '"--json"' loki-ts/src/commands/rollback.ts returns 0; chain after TEN-DEPLOY-16 |
1201
+ | TEN-ADOPTION-18 | feature: `loki version --json` printing {version, runtime, install_path}; plain `loki version` output stays byte identical to bash | loki-ts/src/commands/version.ts, loki-ts/tests/commands/version.test.ts | LOW | red: bun test tests/commands/version.test.ts -t "version json" fails; green: passes including the existing byte parity test | released v11.17.44 | Gap: version.ts:12 lines, runVersion() takes no args and the file has no "--json" |
1202
+ | TEN-ADOPTION-19 | feature: `loki crash list --json` (and `crash --json`) emitting id, captured_at, error_class, fingerprint for tooling | loki-ts/src/commands/crash.ts, loki-ts/tests/commands/crash.test.ts | LOW | red: bun test tests/commands/crash.test.ts -t "list json" fails; green: passes, text list unchanged | released v11.17.44 | Gap: crash.ts listCrashes prints a padded table only; grep -c '"--json"' returns 0 |
1203
+ | TEN-GATES-21 | feature: `loki verify-pr <ref> --json` printing the verify-pr-result.json verdict object on stdout (the file is already written) so CI can gate on it without reading disk | loki-ts/src/commands/verify_pr.ts, loki-ts/tests/commands/verify_pr.test.ts | MEDIUM | red: bun test tests/commands/verify_pr.test.ts -t "json stdout" fails; green: passes, exit codes 0/2/4 unchanged | released v11.17.44 | Gap: verify_pr.ts runVerifyPr handles only --out and --help and treats --json as an extra positional (usage error, exit 2) |
1204
+ | TEN-ADOPTION-20 | feature: `loki memory list --json` returning the pattern, mistake and success counts and learnings path | loki-ts/src/commands/memory.ts, loki-ts/tests/commands/memory.test.ts | LOW | red: bun test tests/commands/memory.test.ts -t "list json" fails; green: passes, text output unchanged | released v11.17.44 | Gap: memory.ts runMemoryList() takes no args; only `lessons` has --json; chain after TEN-UX-22 |
1205
+ | TEN-SECURITY-09 | enhancement: SARIF secret scan misses hyphenated and common vendor keys (sk-ant-api03-..., sk-proj-..., npm_..., sk_live_..., JWT); extend SECRET_PATTERNS with one fixture each and a no-false-positive fixture | loki-ts/src/commands/export_sarif.ts, loki-ts/tests/commands/export_sarif.test.ts | HIGH | red: bun test tests/commands/export_sarif.test.ts -t "vendor keys" fails (0 findings); green: passes and clean fixtures still report 0 | released v11.17.44 | Gap: export_sarif.ts:11 `openai-style-key: /sk-[A-Za-z0-9]{20,}/` stops at the first hyphen so sk-ant-api03-XXXX is not matched; no npm_, Stripe or JWT pattern |
1206
+ | TEN-SECURITY-10 | enhancement: redact() leaves SendGrid (SG.), Twilio (SK + 32 hex), Docker (dckr_pat_), DigitalOcean (dop_v1_) and Google OAuth (ya29.) tokens in logs and receipts; add anchored patterns with a positive and a near-miss fixture each | loki-ts/src/util/redact.ts, loki-ts/tests/util/redact.test.ts | HIGH | red: bun test tests/util/redact.test.ts -t "vendor tokens" fails; green: passes, existing redact tests and `bun test tests/util` green | released v11.17.44 | Gap: grep -n 'SG\\.' loki-ts/src/util/redact.ts returns 0 hits; same for dckr_pat_, dop_v1_, ya29 |
1207
+ | TEN-ADOPTION-21 | enhancement: update nudge ignores LOKI_NO_UPDATE_CHECK=true and always suggests `bun install -g loki-mode` even for npm or brew installs; accept 1/true/yes and pick the hint from the install path | loki-ts/src/util/update_check.ts, loki-ts/tests/util/update_check.test.ts | LOW | red: bun test tests/util/update_check.test.ts -t "opt out true" fails; green: passes, default hint unchanged for bun installs | released v11.17.44 | Gap: update_check.ts:62 `=== "1"` only; :286 hint string is fixed |
1208
+ | TEN-STABILITY-24 | enhancement: provider failover does not recognize HTTP 529, insufficient_quota, "quota exceeded", RESOURCE_EXHAUSTED or ETIMEDOUT, so those provider failures stall instead of failing over; extend RATE_LIMIT and OUTAGE with a fixture per marker and a non-match for plain app text | loki-ts/src/runner/provider_failover.ts, loki-ts/tests/engine10/failover.test.ts | MEDIUM | red: bun test tests/engine10/failover.test.ts -t "529 and quota" fails; green: passes, existing failover and failover_receipt tests green | released v11.17.44 | Gap: provider_failover.ts:18-19 RATE_LIMIT/OUTAGE list 429 and 502-504 only |
1209
+ | TEN-QUALITY-21 | enhancement: runner error classifier does not recognize the unittest load failure `ImportError: Failed to import test module`, so a broken test module reads as a code failure instead of a load error; add the pattern with a fixture | loki-ts/src/runner/runner_errors.ts, loki-ts/tests/engine10/runner_errors.test.ts | LOW | red: bun test tests/engine10/runner_errors.test.ts -t "unittest import" fails; green: passes, existing patterns unchanged | released v11.17.44 | Gap: runner_errors.ts:24 LOAD_PATTERNS has no unittest "Failed to import test module" entry |
1210
+ | TEN-DEPLOY-18 | enhancement: `loki rollback deploy` knows only vercel, fly, netlify and wrangler; add heroku (`heroku releases:rollback`), railway and render manual notes, and a gcloud run revisions hint, each read only (never run) | loki-ts/src/commands/rollback.ts, loki-ts/tests/commands/rollback.test.ts | LOW | red: bun test tests/commands/rollback.test.ts -t "more providers" fails (prints "No rollback command known"); green: passes, existing four unchanged | released v11.17.44 | Gap: rollback.ts:173 DEPLOY_ROLLBACKS has four prefixes; chain after TEN-DEPLOY-17 |
1211
+ | TEN-COST-38 | enhancement: retry classifier treats OpenAI's "You exceeded your current quota" and Gemini RESOURCE_EXHAUSTED billing text as retryable, burning retries (and cost) on an account that is out of funds; add to quota_exhausted with a fixture and keep rate limit wording transient | loki-ts/src/runner/retry_class.ts, loki-ts/tests/runner/retry_class.test.ts | MEDIUM | red: bun test tests/runner/retry_class.test.ts -t "exceeded current quota" fails; green: passes, TRANSIENT_OVERRIDE cases unchanged | released v11.17.44 | Gap: retry_class.ts:53 quota_exhausted matches insufficient quota/credit/funds and billing only |
1212
+ | TEN-STABILITY-25 | enhancement: retry classifier lacks HTTP 529 (Anthropic overloaded status) and "bad gateway"/"gateway timeout" words in TRANSIENT_OVERRIDE, so a 529 body that also carries permanent-looking text can be classed non-retryable | loki-ts/src/runner/retry_class.ts, loki-ts/tests/runner/retry_class.test.ts | MEDIUM | red: bun test tests/runner/retry_class.test.ts -t "529" fails; green: passes | released v11.17.44 | Gap: retry_class.ts:61 lists 502, 503, 504 but not 529; chain after TEN-COST-38 |
1213
+ | TEN-SPEED-09 | enhancement: unit mode silently drops its cost cap when LOKI_UNIT_USD_PER_MTOK is invalid (NaN, 0, negative); emit a NOT PROVEN style note so the user sees the cap was not applied, never loosen the existing cap | loki-ts/src/features/speed/unit_mode.ts, loki-ts/tests/e10ext/unit_mode.test.ts | MEDIUM | red: bun test tests/e10ext/unit_mode.test.ts -t "invalid rate note" fails; green: passes, valid rate output byte identical | released v11.17.44 | Gap: unit_mode.ts:83 returns the existing cap or {} for a non-finite rate with no note; unit_mode.ts:107 parses Number(env) unchecked |
1214
+ | TEN-UX-23 | fix: `loki crash show <id> extra` and `crash submit <id> extra` silently ignore extra args, and `crash list --foo` lists anyway; reject extra args with a usage line and exit 2 | loki-ts/src/commands/crash.ts, loki-ts/tests/commands/crash.test.ts | LOW | red: bun test tests/commands/crash.test.ts -t "extra args" fails; green: passes, single-arg forms unchanged | released v11.17.44 | Gap: crash.ts runCrash passes argv[1] only and ignores the rest; chain after TEN-ADOPTION-19 |
1184
1215
  | TEN-SECURITY-04 | fix: redactSecrets also strips GitLab (glpat-), npm (npm_), Hugging Face (hf_), Stripe (sk_live_, rk_live_) tokens and PEM private key blocks | loki-ts/src/util/redact.ts, loki-ts/tests/util/redact.test.ts | HIGH | red: each of the five token shapes and a -----BEGIN PRIVATE KEY----- block survive redactSecrets; green: all replaced with [REDACTED:...] markers, existing rules and ordering unchanged; cd loki-ts && bunx tsc --noEmit && bun test tests/util/redact.test.ts | released v11.17.40 | Gap: redact.ts RULES (lines 3-14) cover Anthropic, GitHub, Slack, AWS, JWT, Google, OpenAI, Bearer, URL userinfo; grep -rnE 'glpat or npm_ or hf_ or BEGIN [A-Z ]*PRIVATE or sk_live' loki-ts/src/util/redact.ts returned 0 hits (export_sarif.ts:18 and contrib/ai_bom.ts:83 know the shapes but are not the redactor). Specific rules before generic, keep ReDoS-safe quantifiers. |
1185
1216
  | TEN-SECURITY-05 | enhancement: redactSecrets strips secret query parameters (token, access_token, api_key, apikey, password, secret, sig) from URLs in logged and receipted output | loki-ts/src/util/redact.ts, loki-ts/tests/util/redact.test.ts | HIGH | red: https://h/x?access_token=abc123 survives; green: value replaced, parameter name and other params kept, non-secret params untouched; cd loki-ts && bunx tsc --noEmit && bun test tests/util/redact.test.ts | released v11.17.41 | Gap: TEN-SECURITY-02 covers URL userinfo and Authorization only (redact.ts:12-13); grep -nE 'access_token or api_key or \?' loki-ts/src/util/redact.ts returned 0 query-string rules. Serialize after TEN-SECURITY-04 (same two files). |
1186
1217
  | TEN-SECURITY-06 | feature: secure-scan rule 6 flags disabled TLS verification in committed code (verify=False, rejectUnauthorized: false, InsecureSkipVerify: true, NODE_TLS_REJECT_UNAUTHORIZED=0) | autonomy/lib/secure-scan.py, tests/test-secure-scan.sh | HIGH | red: a fixture with requests.get(url, verify=False) scans clean; green: finding rule tls-verify-disabled with file and line, test and fixture paths and comments excluded like rule 4; bash tests/test-secure-scan.sh | released v11.17.41 | Gap: secure-scan.py has rules 1-5 only (rule comments at lines 93, 105, 193, 238, 345); grep -nE 'verify=False or rejectUnauthorized or InsecureSkipVerify or NODE_TLS' autonomy/lib/secure-scan.py returned 0 hits. Bump RULES_VERSION (line 49). Serialize after TEN-GATES-20 and before TEN-SECURITY-07. |
1187
- | TEN-SECURITY-07 | feature: secure-scan rule 7 flags shell injection shapes (subprocess with shell=True and an f-string or format argument, os.system with concatenation, child_process.exec with a template literal) | autonomy/lib/secure-scan.py, tests/test-secure-scan.sh | HIGH | red: subprocess.run(f"rm {x}", shell=True) scans clean; green: finding rule shell-injection with file and line, constant-string commands and test paths not flagged; bash tests/test-secure-scan.sh | ready@2026-10-17T08:05Z | Gap: grep -nE 'shell=True or os\.system or child_process' autonomy/lib/secure-scan.py returned 0 hits. Precision first (the file's stated design: literal forms only), measure false positives on this repo's own tests before shipping. Serialize after TEN-SECURITY-06. |
1218
+ | TEN-SECURITY-07 | feature: secure-scan rule 7 flags shell injection shapes (subprocess with shell=True and an f-string or format argument, os.system with concatenation, child_process.exec with a template literal) | autonomy/lib/secure-scan.py, tests/test-secure-scan.sh | HIGH | red: subprocess.run(f"rm {x}", shell=True) scans clean; green: finding rule shell-injection with file and line, constant-string commands and test paths not flagged; bash tests/test-secure-scan.sh | released v11.17.44 | Gap: grep -nE 'shell=True or os\.system or child_process' autonomy/lib/secure-scan.py returned 0 hits. Precision first (the file's stated design: literal forms only), measure false positives on this repo's own tests before shipping. Serialize after TEN-SECURITY-06. |
@@ -11,7 +11,7 @@ Classes: KEEP-MODERN (v10-native or engine-neutral), UPDATE (live but needs mode
11
11
  - DROP-LEGACY: 31
12
12
  - DELETE: 14
13
13
  - Total rows: 141
14
- - Registry paths (commands and nested subcommands): 202
14
+ - Registry paths (commands and nested subcommands): 204
15
15
 
16
16
  ## Commands
17
17
 
@@ -1082,3 +1082,10 @@ L0 review rule (ENGINE-LAWS.md L0): a fix that adds an `if` or a regex about the
1082
1082
  - Siblings: FC-TEN-STABILITY-09 fixed the loki-ts/tests stubs but not scripts/first-run-gate.sh (fixed here). scripts/b9-scoreboard.sh already answers auth. tests/test-quick-config-safety.sh, test-quick-receipt-order.sh, test-quick-artifacts.sh, test-json-schemas.sh and test-usage-governor.sh all pass on this base (their stubs do not edit the tree on the probe).
1083
1083
  - Mechanism: the gate stub answers `auth status` with {"loggedIn": true}, no side effects; the cost-non-null probe reports an unreadable run record as a FAIL line instead of a traceback.
1084
1084
  - Fixture: loki-ts/tests/engine10/e2e.test.ts "every engine10 stub claude answers claude auth status as logged in" now also pins the first-run gate stub (red with the stub line removed); the gate itself returns to 7 failures with that line removed.
1085
+
1086
+ ## FC-TEN-STABILITY-20 A slice adds a CLI flag in the Bun route and CHANGELOG but not in the help-drift-checked help or completions (HELP-FLAG-DRIFT)
1087
+ - User-visible vs raw: user-visible. `loki report kpis --since` and `loki undo --list` (v11.17.40) worked but were absent from `loki help` and Tab completion, so tests/test-help-changelog-drift.sh was red on 3 lines.
1088
+ - Law broken: a documented flag must appear in the help output for its command and in completions/loki.bash.
1089
+ - Siblings: swept the other newest-window invocations (proof list --json, proof share --dry-run, queue add, start --help, status --probe/--json); all already pass. completions/_loki carries no per-flag lists for report or undo; its undo description now names --list.
1090
+ - Mechanism: autonomy/loki help text lists both flags; completions/loki.bash gains report and undo cases. The drift test already guards both.
1091
+ - Fixture: tests/test-help-changelog-drift.sh (22 passed, 0 failed); removing the `undo --list` help line turns it red.
@@ -2506,3 +2506,9 @@ v11.17.21 published (Release success on 462fbc40a; npm latest 11.17.21, next 11.
2506
2506
 
2507
2507
  ## 2026-10-17T09:41Z (CoS) v11.17.42
2508
2508
  - v11.17.42: TEN-STABILITY-18 and TEN-STABILITY-19 merged; FAILURE-CLASSES append conflicts resolved as union. Results: tests/util plus pr_body_golden, sizing, router_optout_golden, verify, budget and l0 guards 538 pass 0 fail. sigpipe, ui-bare and local-ci-gitleaks rc 0; first-run-gate --stub 0 assertions failed. help-changelog-drift still red on new v11.17.40 flags (report --since, undo --list); TEN-STABILITY-20 dispatched.
2509
+
2510
+ ## 2026-10-17T09:49Z (CoS) v11.17.43
2511
+ - Released TEN-STABILITY-20 (help/completion drift fix-forward). Board refilled with 30 TEN rows for wave AL (fc36b4548).
2512
+
2513
+ ## 2026-10-17T10:10Z (CoS) v11.17.44
2514
+ - Released waves AL (30 slices, 21 chains, all APPROVE) and AK (6 slices). Combined main: tsc rc 0; bun 1233/0 and 528/0; help-changelog-drift rc 0; secure-scan rc 0.