loki-mode 9.73.0 → 9.75.0
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.
- package/SKILL.md +2 -2
- package/VERSION +1 -1
- package/autonomy/council-v2.sh +60 -13
- package/autonomy/lib/done-recognition.sh +73 -21
- package/autonomy/lib/proof-generator.py +7 -0
- package/autonomy/loki +18 -7
- package/autonomy/run.sh +14 -1
- package/dashboard/__init__.py +1 -1
- package/dashboard/server.py +22 -13
- package/dashboard/static/index.html +5 -5
- package/docs/INSTALLATION.md +1 -1
- package/docs/R3-COST-OBSERVABILITY-DESIGN.md +7 -1
- package/docs/exit-codes.md +21 -0
- package/docs/v10/ARCHITECT-CUTS.md +386 -317
- package/docs/v10/BOARD.md +64 -24
- package/docs/v10/GUARDS.md +13 -7
- package/loki-ts/dist/loki.js +251 -250
- package/mcp/__init__.py +1 -1
- package/package.json +1 -1
- package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
- package/web-app/dist/assets/{AdminPage-B11jqriL.js → AdminPage-CMGkmNnt.js} +1 -1
- package/web-app/dist/assets/{Avatar-vmIEiL2U.js → Avatar-9mn8sJ-2.js} +1 -1
- package/web-app/dist/assets/{Badge-DxtrDGcl.js → Badge-mSFLvvRX.js} +1 -1
- package/web-app/dist/assets/{Button-BiPlRkkg.js → Button-B1v4CSkD.js} +1 -1
- package/web-app/dist/assets/CockpitPage-BW0hYuzC.js +47 -0
- package/web-app/dist/assets/{ComparePage-B4ddvt9J.js → ComparePage-C1BXuolM.js} +1 -1
- package/web-app/dist/assets/{ErrorBoundary-BIJy59N_.js → ErrorBoundary-C2sJyBhb.js} +1 -1
- package/web-app/dist/assets/{EvidenceReceiptPanel-C4-Phh1f.js → EvidenceReceiptPanel-a1irlBPD.js} +1 -1
- package/web-app/dist/assets/GitHubIssuesPanel-zM-WRxYB.js +7 -0
- package/web-app/dist/assets/{GitHubPRsPanel-B_VHTB-t.js → GitHubPRsPanel-DvRa5Rxq.js} +1 -1
- package/web-app/dist/assets/{HomePage-cxONjTSm.js → HomePage-CNwRexp5.js} +2 -2
- package/web-app/dist/assets/{LoginPage-D49p6aVy.js → LoginPage-HKogNiEX.js} +1 -1
- package/web-app/dist/assets/{MagicPage-C5GUEIuM.js → MagicPage-u1mvdkUd.js} +1 -1
- package/web-app/dist/assets/{MetricsPage-I-OXi9kG.js → MetricsPage-CThdMJb5.js} +1 -1
- package/web-app/dist/assets/{NotFoundPage-Do19cbOP.js → NotFoundPage-B1v3lELS.js} +1 -1
- package/web-app/dist/assets/{ProjectPage-TRyzTIFH.js → ProjectPage-hDvSsdLF.js} +63 -63
- package/web-app/dist/assets/{ProjectsPage-BLSDhtVb.js → ProjectsPage-CRAegSM6.js} +1 -1
- package/web-app/dist/assets/{SettingsPage-BvixtAw7.js → SettingsPage-Dt90bFxo.js} +1 -1
- package/web-app/dist/assets/{ShowcasePage-By96BMJz.js → ShowcasePage-C5a9l8u_.js} +1 -1
- package/web-app/dist/assets/{SystemSettingsPage-AvVujpIo.js → SystemSettingsPage-DtqsDXbx.js} +1 -1
- package/web-app/dist/assets/{TeamsPage-BiT3N4px.js → TeamsPage-CooeoWxR.js} +1 -1
- package/web-app/dist/assets/{TemplatesPage-Y_m-dzfd.js → TemplatesPage-CJhTxWrw.js} +1 -1
- package/web-app/dist/assets/{TerminalOutput-oPTCcEGy.js → TerminalOutput-DvjfbDxb.js} +1 -1
- package/web-app/dist/assets/{activity-DCa9Pi7k.js → activity-DK6KBQKA.js} +1 -1
- package/web-app/dist/assets/{bell-Br7Xsjam.js → bell-Cd8tQpN6.js} +1 -1
- package/web-app/dist/assets/{bot-BsQKlSP5.js → bot-Y30w8rML.js} +1 -1
- package/web-app/dist/assets/{check-Cb49hCzQ.js → check-B5eUl1j9.js} +1 -1
- package/web-app/dist/assets/{chevron-left-Cs63FOmY.js → chevron-left-qyvpFqze.js} +1 -1
- package/web-app/dist/assets/{circle-alert-C8A636Wl.js → circle-alert-DXtjVPDB.js} +1 -1
- package/web-app/dist/assets/{clock-DhlnHjQI.js → clock-dqQis2Q6.js} +1 -1
- package/web-app/dist/assets/{cloud-uOYQxGRY.js → cloud-CzTURYO9.js} +1 -1
- package/web-app/dist/assets/{code-xml-9O9XlVo9.js → code-xml-DLbw1HTk.js} +1 -1
- package/web-app/dist/assets/{database-D9Oek2JS.js → database-BIj38v85.js} +1 -1
- package/web-app/dist/assets/{dollar-sign-CHetUBPR.js → dollar-sign-9bVcHIkD.js} +1 -1
- package/web-app/dist/assets/{file-code-corner-oTJV_ce4.js → file-code-corner-D57x6xD1.js} +1 -1
- package/web-app/dist/assets/{file-plus-vuloOqQB.js → file-plus-BXOrz3T5.js} +1 -1
- package/web-app/dist/assets/{globe-DMVdf8bk.js → globe-Cnq8h4Gt.js} +1 -1
- package/web-app/dist/assets/{hammer-15WRQJ1o.js → hammer-iiLGlF28.js} +1 -1
- package/web-app/dist/assets/{index-SRKz3Imw.js → index-uGGZ1Ij3.js} +2 -2
- package/web-app/dist/assets/{layers-C-QQQP9K.js → layers-gcGxxNEN.js} +1 -1
- package/web-app/dist/assets/{loader-circle-DqoJevCK.js → loader-circle-B4Ad11xq.js} +1 -1
- package/web-app/dist/assets/{lock-B68yfqau.js → lock-DvQNG5RI.js} +1 -1
- package/web-app/dist/assets/{package-DAxTtm-S.js → package-BtQBNbq2.js} +1 -1
- package/web-app/dist/assets/{plus-BSbdI5QI.js → plus-DKLiMXBZ.js} +1 -1
- package/web-app/dist/assets/{refresh-cw-DlvFuI3J.js → refresh-cw-B4Gu8e2m.js} +1 -1
- package/web-app/dist/assets/{rotate-ccw-BF03pKE0.js → rotate-ccw-DATSPLYS.js} +1 -1
- package/web-app/dist/assets/{scroll-text-QFZ1JdTD.js → scroll-text-GA8EtlY4.js} +1 -1
- package/web-app/dist/assets/{server-tyIvmSke.js → server-DT_3kM4V.js} +1 -1
- package/web-app/dist/assets/{shield-alert-DHeqbtBK.js → shield-alert-BEaqZEhO.js} +1 -1
- package/web-app/dist/assets/{thumbs-up-CRag1Tn5.js → thumbs-up-DVvA-Fas.js} +1 -1
- package/web-app/dist/assets/{trash-2-B0n4x-Ds.js → trash-2-BCyT5A9N.js} +1 -1
- package/web-app/dist/assets/{trending-down-DC4Aqzso.js → trending-down-BLcNt39o.js} +1 -1
- package/web-app/dist/assets/{trending-up-DFG157ke.js → trending-up-BqfBp13A.js} +1 -1
- package/web-app/dist/assets/{upload-BdWQ4cWx.js → upload-BxH0rjQU.js} +1 -1
- package/web-app/dist/assets/{usePolling-DMgD-dJ5.js → usePolling-CokbBZIQ.js} +1 -1
- package/web-app/dist/assets/{user-DXaZeAe4.js → user-C_u9mNZM.js} +1 -1
- package/web-app/dist/index.html +1 -1
- package/web-app/dist/assets/CockpitPage-DXKAc0jc.js +0 -47
- package/web-app/dist/assets/GitHubIssuesPanel-CVIG0uwi.js +0 -7
|
@@ -1,334 +1,403 @@
|
|
|
1
|
-
# Architect slice cuts (2026-09-27)
|
|
2
1
|
|
|
3
|
-
Verbatim final reports from the two Architect agents, kept so BOARD rows S-112..S-151 can cite a durable source.
|
|
4
2
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
| S-147 | BACKLOG 118: `loki metrics --json` sends `tokens.total` 0 and `total_iterations` 0 when nothing was recorded, and invents `time_saved_hours = iterations*15/60` (source 2) | autonomy/loki (cmd_metrics only), tests/test-metrics-json-unmeasured.sh (new) | MEDIUM | red: on an empty .loki, `loki metrics --json` prints total 0, iterations 0 and a numeric time_saved_hours. green: null (unknown) for unrecorded values, time_saved_hours removed or null, real recorded values unchanged | ready@2026-09-27T18:05Z | cmd_metrics (~28481) is far from S-123's attestation region (~956); rebase if S-123 lands first. Survey consumers of the JSON (dashboard, docs) before changing 0 to null. The Captain registers the test. |
|
|
64
|
-
| S-148 | BACKLOG 118: trust.html says "Stable: no significant change" when every axis lacks the 2+ runs of history needed (source 2) | dashboard/static/trust.html | LOW | red: an API fixture where every axis has `insufficient: true` renders the "Stable" headline. green: it renders "Not enough history yet"; a fixture with real flat axes still says "Stable" (pull the headline into a named function and check it with a small node assertion) | ready@2026-09-27T18:05Z | Hand-written page, not a generated bundle. The `delta: 0.0` on an insufficient axis in trust_trajectory.py is out of scope; note it for later. |
|
|
65
|
-
| S-149 | BACKLOG 118: prompt_optimizer.get_current_version returns never-ran zeros (version 0, based_on_sessions 0), and a corrupt latest file is folded into the same default (source 2) | dashboard/prompt_optimizer.py, tests/dashboard/test_prompt_optimizer_sentinels.py (new) | LOW | red: a corrupt latest file and a missing one return the identical zero dict. green: missing returns an explicit never-ran marker (nulls); corrupt returns an error marker distinct from never-ran | ready@2026-09-27T18:05Z | Survey the endpoint and panel consumers first so the new fields render as unknown, not crash. |
|
|
66
|
-
| S-150 | BACKLOG 118: migration_engine.get_progress reports 0/0 features and steps when the features or plan file is corrupt or missing (source 2) | dashboard/migration_engine.py (get_progress only), tests/dashboard/test_migration_progress_unknown.py (new) | LOW | red: a corrupt plan.json gives `steps_total 0, steps_completed 0`, identical to a real empty plan. green: corrupt or missing gives null counts plus a reason; a real empty plan still gives 0 | ready@2026-09-27T18:05Z | Survey consumers (loki-migration-dashboard.js, server endpoint) to make sure null renders as unknown. |
|
|
67
|
-
| S-151 | BACKLOG 118: loki-analytics heatmap counts days before the returned activity window as 0 activities (source 2) | dashboard-ui/components/loki-analytics.js (_computeHeatmap and the cell render only) | LOW | red: a fixture with activity starting 10 days ago renders the previous ~355 days as "0 activities". green: days before the earliest returned entry (or the API's window start) render as "no data", while days inside the window with no activity stay 0 | ready@2026-09-27T18:05Z | The Captain rebuilds dashboard/static/index.html. Different file from S-146. |
|
|
68
|
-
|
|
69
|
-
**Risks**
|
|
70
|
-
- **Registration is on the Captain.** 8 rows add a new test file (S-132, S-134, S-138, S-141, S-145, S-147, S-149, S-150). Each needs the Captain to register it in `tests/run-all-tests.sh`, or it never runs in CI.
|
|
71
|
-
- **Rebuilds are on the Captain.** S-143 needs web-app/dist rebuilt; S-146 and S-151 need dashboard/static rebuilt.
|
|
72
|
-
- **Test anchors, not files, couple S-135, S-140 and S-141.** Trust-core probes anchor into completion-council.sh and probably into the run.sh failure-count awk. Merge S-140 and S-141 first, and each of them must run the trust-core suite in its wall. S-135's first step is confirming probes use a private copy.
|
|
73
|
-
- **Two rows touch the release gate.** S-132 is the highest-risk slice: an all-skipped Tests run reads as success at the release SHA. It needs a HIGH review focused on the parent-green check and on eligibility never being looser than release.yml STEP 1. S-133 also touches release.yml, so under D22 it ships in its own train.
|
|
74
|
-
- **Same-file neighbours.** S-140 (run.sh) and S-147 (autonomy/loki) share a file with in-flight S-100/S-124 and S-123, in regions far from theirs. Expect rebases, not conflicts.
|
|
75
|
-
- **S-134's gain only shows on a real CI run.** The first Tests run after merge is the evidence; the Moat suite (195s) may become the new floor.
|
|
76
|
-
- **Changing zeros to null or 200 to 500 changes response shapes.** S-145, S-147, S-149 and S-150 must name the consumers they checked, or a panel can crash where it used to show a false zero.
|
|
77
|
-
|
|
78
|
-
**Held for a CEO decision or waiting on another slice (not in the 20)**
|
|
79
|
-
- S-112 and S-117 to S-122 (P4 corpus and ablation producer): already held.
|
|
80
|
-
- BACKLOG 4: breaking exit-code renumber for `loki verify` (v10.0.0).
|
|
81
|
-
- BACKLOG 18: Caveman bootstrap and its global `~/.claude` hook default-on; changing the default is a product decision.
|
|
82
|
-
- BACKLOG 121: browser-only settings (plain-text API keys in localStorage, unwired "Budget limit" and "Auto-deploy"): remove or wire is a product decision.
|
|
83
|
-
- BACKLOG 77: whether Bun should write its own test-results freshness marker.
|
|
84
|
-
- BACKLOG 123: `audit.py verify` reporting valid on nothing checked; the cross-chain verifier reads it, so it needs its own review.
|
|
85
|
-
- WhatsNew.tsx version: stays stale until someone decides what should trigger the modal.
|
|
86
|
-
- GUARDS 11 (scratchpad glob `rm`): a helper nobody is forced to call blocks nothing. The real rule belongs in `scripts/v10-guard.sh`, so cut it after S-99 lands.
|
|
87
|
-
- Waiting on a slice in this set: BACKLOG 127 remainder (`run.sh` auto_capture_episode, `cd "$PROJECT_DIR"` with no unset guard, ~21361) after S-140; BACKLOG 38 after S-141; BACKLOG 133 after S-139.
|
|
88
|
-
|
|
89
|
-
I edited no files. The only temp file was a log saved under `$TMPDIR` and deleted in the same command. I started no background processes.
|
|
90
|
-
|
|
91
|
-
## 19:10Z cut (S-154..S-173)
|
|
92
|
-
|
|
93
|
-
I edited no files and started no background processes. Each red condition below comes from reading or grepping the current tree at e952e1ae. Two numbers were measured on this host (load average about 9):
|
|
94
|
-
- `python3 tests/lib/scan-unreachable-shipped.py` ran in 47s, rc 0.
|
|
95
|
-
- `EVENT_NAME=push SHA=8d17be2b bash scripts/ci/version-bump-only.sh check` printed `normalizer: not on the allowlist: web-app/src/components/Footer.tsx`, rc 1.
|
|
96
|
-
|
|
97
|
-
`tests/test-sentrux-init-rules.sh` ran once for timing. It removed its own mktemp dir through its EXIT trap: `ls -d /tmp/loki-test-sentrux-init-*` found 0 entries. The working tree shows only the Chief of Staff's uncommitted BOARD.md and TODO.md edits.
|
|
98
|
-
|
|
99
|
-
Rules that apply to every row:
|
|
100
|
-
- No file set includes a hot file.
|
|
101
|
-
- Any new test file is registered in `tests/run-all-tests.sh` by the Captain.
|
|
102
|
-
- Dashboard-ui rows need the Captain to rebuild `dashboard/static/index.html`. Web-app rows need a `web-app/dist` rebuild.
|
|
103
|
-
- UI walls follow the pattern already in the repo. Web-app rows pull the copy decision into a named pure function tested with `node --test`, like `web-app/src/cockpit/useCockpitState.derive-view.test.mjs`. Dashboard-ui rows drive the real component class against a DOM stub, like `dashboard-ui/tests/loki-empty-vs-error.node.test.mjs`.
|
|
104
|
-
- Each UI wall includes a negative assertion: the error render must not contain the empty-state sentence. A grep for the absence of a string is not accepted as a wall.
|
|
105
|
-
|
|
106
|
-
### S-154: prune-worktrees.sh treats a cherry-picked branch as merged (GUARDS 5, TODO item 8)
|
|
107
|
-
- Files: scripts/prune-worktrees.sh, tests/test-prune-worktrees.sh (new)
|
|
108
|
-
- Tier: MEDIUM (it removes worktrees)
|
|
109
|
-
- Red: the script counts a worktree as merged only through `git merge-base --is-ancestor`. The Chief of Staff lands slices by cherry-pick, so no slice branch is ever an ancestor of main, and the dry run lists 0 of them. That is why pruning is still manual (TODO item 8: "count now 7 of 15"). No test file for the script exists (`ls tests | grep -i prune` shows only checkpoint tests).
|
|
110
|
-
- Green, on a fixture repo:
|
|
111
|
-
- A branch whose commits are all patch-equivalent on main (`git cherry main <branch>` shows no `+` lines) is listed as removable.
|
|
112
|
-
- A branch with one `+` commit is kept.
|
|
113
|
-
- A locked worktree is kept, and so is a dirty one.
|
|
114
|
-
- `--apply` removes only through `git worktree remove`.
|
|
115
|
-
- The test also greps the script and fails on any `stat`, `mtime`, `-mmin` or `-newer` token, so GUARDS 5 finally has a checked-in test.
|
|
116
|
-
- Wall: `bash tests/test-prune-worktrees.sh` exits 0 with every case PASS. A mutation that drops the `git cherry` branch makes the cherry-picked fixture case FAIL.
|
|
117
|
-
|
|
118
|
-
### S-155: shipped-module reachability scan under 10s, same verdicts (velocity)
|
|
119
|
-
- Files: tests/lib/scan-unreachable-shipped.py (referenced_from_runtime and its caller only)
|
|
120
|
-
- Tier: LOW
|
|
121
|
-
- Red: the scan takes 47s locally and 95s on CI (`tests/shard-durations.tsv`: "shipped modules have a recorded reachability verdict 95"). It is the 4th slowest suite. Every module runs one large alternation regex over every corpus file, including a `(node|bun)\s+[^\n]*` arm, and nothing filters the files first.
|
|
122
|
-
- Green:
|
|
123
|
-
- The builder first measures where the time goes (regex or I/O) and puts the numbers in the commit.
|
|
124
|
-
- Then add a substring prefilter: skip any corpus file that does not contain the module's stem. This is sound because every pattern alternative contains the stem literally. Also compile the regex once per module.
|
|
125
|
-
- stdout and rc are byte-identical to a capture taken before the change.
|
|
126
|
-
- Wall: the scan runs in under 10s wall time. `bash tests/test-no-unreachable-shipped.sh` shows 4 passed, 0 failed. A mutation that removes one real require of a listed module still gets reported (rc 1).
|
|
127
|
-
|
|
128
|
-
### S-156: auto-capture shadow_write runs the agent repo's memory package when PROJECT_DIR is unset, and splices importance into python source (BACKLOG 127 remainder)
|
|
129
|
-
- Files: autonomy/run.sh (the managed-memory auto-capture block, found by grepping `shadow_write`, about line 21380-21396 only), tests/test-autocapture-shadow-write-guard.sh (new)
|
|
130
|
-
- Tier: HIGH (code execution on a verdict-adjacent path)
|
|
131
|
-
- Red: `cd "$PROJECT_DIR" 2>/dev/null && ... python3 -m memory.managed_memory.shadow_write` has no `-n PROJECT_DIR` guard. On bash 3.2, `cd ""` succeeds silently and the cwd stays inside the agent repo. Also, `python3 -c "print('yes' if float('$_ep_imp') >= 0.6 else 'no')"` interpolates an episode-file value straight into the python source.
|
|
3
|
+
## 20:12Z cut (S-194..S-213)
|
|
4
|
+
|
|
5
|
+
**Checked before cutting.** All reads are on main at 8ba7024d (v9.73.0).
|
|
6
|
+
- **Alternates re-read against the code.**
|
|
7
|
+
- **A1 (BACKLOG 108) is real.** `create_session_pr`'s `LOKI_AUTO_PR=1` branch calls `_loki_trusted_push` and never reads `.loki/state/agent-committed-user-files.z`. The only references to that file are the writer comment and the writer itself, inside `_loki_untrack_agent_committed_user_files`.
|
|
8
|
+
- **A2 (BACKLOG 17) is real.** The "Notify dashboard of active project directory" block, about 24477 today, posts to `/api/focus` behind `command -v curl` only. It has no `ENABLE_DASHBOARD` check.
|
|
9
|
+
- **A3 is real and larger than the card says.** run.sh 211 and 239 always set PROJECT_DIR to the Loki install root. So the BACKLOG 127 "guard when unset" would do nothing. The actual defect is that `council_managed_should_stop` runs `git diff --stat` in Loki's own tree, not the target project. Its three readers are still bare `python3 -E`, and p2-honest-verdict.sh (about 858) says so.
|
|
10
|
+
- **A4 (BACKLOG 51) is real.** `grep -c PYTHONUSERBASE autonomy/loki` prints 0. The NOT CHECKED text says "Install python3 cryptography" even to a user who installed it through PYTHONPATH or PYTHONUSERBASE, which `-E` ignores.
|
|
11
|
+
- **A5 is split.**
|
|
12
|
+
- BACKLOG 145 sits in the Array.from generator arm, about 1934-1994. That does not overlap S-180's helper-return arm (about 2081-2170).
|
|
13
|
+
- BACKLOG 147 edits `HELPER_LOCAL_DECL_TMPL`, which is in S-180's region, so it is held.
|
|
14
|
+
- **New class found: every `-E`-only verdict reader outside completion-council.sh (BACKLOG 53 and 54).** These are:
|
|
15
|
+
- autonomy/lib/done-recognition.sh: 16 sites.
|
|
16
|
+
- autonomy/council-v2.sh: 7 sites.
|
|
17
|
+
- autonomy/lib/voter-agents.sh: 3 sites.
|
|
18
|
+
- autonomy/lib/proof-check.sh: 3 sites.
|
|
19
|
+
- autonomy/prd-checklist.sh: about 11 sites.
|
|
20
|
+
- loki-ts/src/commands/proof.ts:606, the Bun `loki proof verify` path.
|
|
21
|
+
|
|
22
|
+
All of them run PATH `python3 -E`. BACKLOG 134 showed that a user-site `.pth` still loads under `-E`.
|
|
23
|
+
|
|
24
|
+
On `-S` compatibility:
|
|
25
|
+
- The imports I read are stdlib only: swarm/sycophancy.py, autonomy/checklist-verify.py, and autonomy/lib/proof-verify.py (which adds its own directory to sys.path at line 76). So `-I -S` should hold for those.
|
|
26
|
+
- Each builder still audits the imports of the rest of its sites, including the prd-checklist oracle heredoc.
|
|
27
|
+
|
|
28
|
+
Existing tests source each of these files on their own, so each file needs the guarded helper copy. For voter-agents.sh, `.` at completion-council.sh 4245 sources it into the parent shell.
|
|
29
|
+
- **council-v2 fails open on sycophancy.** A detector crash yields `0.000`, then `should_challenge=no`. A unanimous approve then skips the devil's advocate.
|
|
30
|
+
- **Cockpit remainder (BACKLOG 114).**
|
|
31
|
+
- `FinalActions` receives `git=null` after a failed status fetch (the `settle` fallback) and still says "The working tree is clean" and "Nothing to push".
|
|
32
|
+
- A failed `getStatus` (the swallow at useCockpitState.ts:202) makes Pause, Resume and Stop read "No run in progress".
|
|
33
|
+
- A failed `getChecklist` (the swallow at 204) renders "No gate results recorded."
|
|
34
|
+
- **Already handled, so dropped:**
|
|
35
|
+
- BACKLOG 31: proof-verify maps unverifiable drift to 2.
|
|
36
|
+
- BACKLOG 38: `no_pass_recorded`.
|
|
37
|
+
- BACKLOG 49: the `--jwks` output is patched.
|
|
38
|
+
- BACKLOG 16 and 85: `PYTHONDONTWRITEBYTECODE` in `enforce_test_coverage`, plus the py_compile rewrite.
|
|
39
|
+
- BACKLOG 133: `PULSE_MOAT_RESULT` carries a `.sha` sidecar.
|
|
40
|
+
- BACKLOG 140: the environment-variables.md row names all four tokens and both routes.
|
|
41
|
+
- BACKLOG 13: release.sh bumps INSTALLATION.md at 320.
|
|
42
|
+
- BACKLOG 22: the resource monitor backgrounds its sleep.
|
|
43
|
+
- BACKLOG 26: test-bun-parity-disk-tolerance.sh.
|
|
44
|
+
- The unreadable-waivers banner in loki-checklist-viewer is already pinned in loki-unmeasured-panels-honesty.node.test.mjs:319.
|
|
45
|
+
- The GitPanel badge on a null fetch renders nothing.
|
|
46
|
+
- PhaseVisualizer: its only caller passes 'idle'.
|
|
47
|
+
- **Dropped on merit: BACKLOG 69 (snapshot hash size cap).**
|
|
48
|
+
- A size-plus-mtime fingerprint is spoofable, which weakens `preexisting_modified`.
|
|
49
|
+
- It changes the sealed `.sha.z` entries.
|
|
50
|
+
- Nobody has measured the stall.
|
|
51
|
+
|
|
52
|
+
### S-194: LOKI_AUTO_PR pushes a branch whose history still holds user files (BACKLOG 108, A1)
|
|
53
|
+
- Files:
|
|
54
|
+
- autonomy/run.sh: `create_session_pr` only, from its head to the `_loki_trusted_push` call. Anchor on the function name, because S-175 shifts line numbers when it merges.
|
|
55
|
+
- tests/test-auto-pr-agent-committed-refuse.sh (new)
|
|
56
|
+
- Tier: HIGH (secret exposure)
|
|
57
|
+
- Region: this does not overlap S-175 (`enforce_test_coverage`) or S-195 (the focus notify block).
|
|
58
|
+
- Red:
|
|
59
|
+
- With a non-empty agent-committed-user-files.z and `LOKI_AUTO_PR=1`, the stubbed `_loki_trusted_push` gets called.
|
|
60
|
+
- The advisory path prints `git push -u` advice with no cleanup step.
|
|
132
61
|
- Green:
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
-
|
|
142
|
-
-
|
|
143
|
-
-
|
|
62
|
+
- When the record is non-empty:
|
|
63
|
+
- Recompute the fork the way `_loki_untrack_agent_committed_user_files` does: the merge base with base-branch.txt, else session-start-sha.
|
|
64
|
+
- Print `git reset --soft <fork> && git commit` before any push advice.
|
|
65
|
+
- Under `LOKI_AUTO_PR=1`, refuse the push: `log_warn` naming the files, and return 1.
|
|
66
|
+
- An empty or absent record leaves both paths byte-identical to today.
|
|
67
|
+
- Gate: the builder first reproduces the stub push call on main. If it does not reproduce, the slice closes as handled.
|
|
68
|
+
- Test rule: `cd` to scratch before sourcing run.sh, and assert that no `.loki/state/provider` appears in the repo (BACKLOG 126).
|
|
69
|
+
- Wall: `bash tests/test-auto-pr-agent-committed-refuse.sh` exits 0. Its legs:
|
|
70
|
+
- Auto path with a record: no push, rc 1, and the cleanup line printed.
|
|
71
|
+
- Advisory path with a record: the cleanup line appears before `git push -u`.
|
|
72
|
+
- Empty record: the push happens.
|
|
73
|
+
- Removing the record read in a scratch copy fails the first leg.
|
|
74
|
+
- `bash tests/test-trusted-push-agent-config.sh` exits 0.
|
|
75
|
+
|
|
76
|
+
### S-195: the /api/focus POST fires with the dashboard disabled (BACKLOG 17, A2)
|
|
77
|
+
- Files:
|
|
78
|
+
- autonomy/run.sh: the "Notify dashboard of active project directory" block only.
|
|
79
|
+
- tests/test-focus-post-dashboard-off.sh (new)
|
|
80
|
+
- Tier: MEDIUM
|
|
81
|
+
- Region: this does not overlap S-175 or S-194.
|
|
82
|
+
- Red: with `ENABLE_DASHBOARD=false`, a curl shim on PATH records one POST to `/api/focus`.
|
|
144
83
|
- Green:
|
|
145
|
-
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
84
|
+
- Guard on the runtime `ENABLE_DASHBOARD`, which run.sh sets false at about 19288. Do not guard on `LOKI_DASHBOARD`.
|
|
85
|
+
- Test: extract the block by its comment anchor, as test-autocapture-shadow-write-guard.sh does. No full run.sh source.
|
|
86
|
+
- Wall: `bash tests/test-focus-post-dashboard-off.sh` exits 0.
|
|
87
|
+
- false: the shim log is empty.
|
|
88
|
+
- true: exactly one POST.
|
|
89
|
+
- Removing the guard in a scratch copy fails the false leg.
|
|
90
|
+
|
|
91
|
+
### S-196: council_managed_should_stop reads Loki's install tree for its diff and runs -E readers (A3)
|
|
92
|
+
- Files:
|
|
93
|
+
- autonomy/completion-council.sh: `council_managed_should_stop` only.
|
|
94
|
+
- tests/moat/p2-honest-verdict.sh: `case_council_readers_no_user_site_pth`, plus the about-858 comment in `case_council_readers_not_shadowed`.
|
|
95
|
+
- tests/test-council-managed-diff-target.sh (new)
|
|
96
|
+
- Tier: HIGH (moat)
|
|
97
|
+
- Red:
|
|
98
|
+
- A stub `providers.managed` records `_CC_DIFF`. It shows install-tree paths, not the target project's change.
|
|
99
|
+
- A planted user-site `.pth` forges the test_summary read.
|
|
154
100
|
- Green:
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
- The
|
|
159
|
-
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
-
|
|
101
|
+
- `diff_summary` comes from `${TARGET_DIR:-.}`, the same root as `loki_dir` and `LOKI_TARGET_DIR`.
|
|
102
|
+
- The two inline readers and the heredoc run through `_loki_snapshot_py_tool -I -S`.
|
|
103
|
+
- If no interpreter resolves, test_summary is empty, pending is `[]`, and the function returns 1 (the Bash voting fallback). It never returns 0.
|
|
104
|
+
- The new leg lands in the same commit as the fix, because the case is already proven.
|
|
105
|
+
- Gate: reproduce the install-tree diff with the stub first. Reuse S-173's stub.
|
|
106
|
+
- Wall:
|
|
107
|
+
- `bash tests/moat/p2-honest-verdict.sh` prints `CASE P2.council-readers-no-user-site-pth PASS` and `CASE P2.council-readers-not-shadowed PASS`.
|
|
108
|
+
- `bash tests/test-council-managed-diff-target.sh` exits 0: a file changed only in the target appears in `_CC_DIFF`.
|
|
109
|
+
- Reverting the readers to `python3 -E` in a scratch copy makes the pth case FAIL.
|
|
110
|
+
- `bash tests/moat/run.sh` reports no rule failed.
|
|
111
|
+
|
|
112
|
+
### S-197: the NOT CHECKED text should name PYTHONPATH and PYTHONUSERBASE (BACKLOG 51, A4)
|
|
113
|
+
- Files:
|
|
114
|
+
- autonomy/loki:
|
|
115
|
+
- `loki_remote_verify_receipt`'s attestation NOT CHECKED branch only.
|
|
116
|
+
- `cmd_proof verify`'s `--jwks` NOT CHECKED echo only.
|
|
117
|
+
- tests/test-proof-verify-jwks.sh (case 4 only)
|
|
163
118
|
- Tier: LOW
|
|
164
|
-
-
|
|
119
|
+
- Region: this does not overlap S-179 (`cmd_cost`).
|
|
165
120
|
- Green:
|
|
166
|
-
-
|
|
167
|
-
-
|
|
168
|
-
|
|
169
|
-
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
-
|
|
121
|
+
- Both messages add that the verifier runs `python3 -E`, so cryptography supplied through PYTHONPATH or PYTHONUSERBASE is not seen.
|
|
122
|
+
- Exit codes are unchanged.
|
|
123
|
+
- Wall:
|
|
124
|
+
- `bash tests/test-proof-verify-jwks.sh` exits 0, and case 4 asserts that the NOT CHECKED output names PYTHONUSERBASE.
|
|
125
|
+
- `grep -c PYTHONUSERBASE autonomy/loki` prints 2 or more (0 today).
|
|
126
|
+
- `bash tests/test-remote-attestation-verdict.sh` exits 0.
|
|
127
|
+
|
|
128
|
+
### S-198: the P7 Array.from arm loses an outer generator's index when generators nest (BACKLOG 145, A5)
|
|
129
|
+
- Files: tests/moat/p7-no-fabricated-data.sh. Only two regions:
|
|
130
|
+
- the Array.from generator arm, about 1934-1994;
|
|
131
|
+
- one fixture beside the B-8 fixture, about 3301.
|
|
132
|
+
- Tier: HIGH (moat)
|
|
133
|
+
- Region: this does not overlap S-180's helper-return arm. Do not append fixtures at the file tail.
|
|
134
|
+
- Red: `Array.from({length:2}, (_, r) => Array.from({length:2}, (_, c) => ({ id: r, user: 'Admin' })))` goes through.
|
|
135
|
+
- Green: substitute the enclosing generator's params as well as the inner ones.
|
|
136
|
+
- Branch: run the widened arm on main first.
|
|
137
|
+
- On any live hit in dashboard-ui or web-app, the slice becomes report-only.
|
|
138
|
+
- Never add an allowlist.
|
|
139
|
+
- cases.txt stays unchanged.
|
|
140
|
+
- Wall:
|
|
141
|
+
- `bash tests/moat/p7-no-fabricated-data.sh` prints PASS for every P7 case, and the nested fixture is flagged.
|
|
142
|
+
- Removing the outer substitution lets the fixture through.
|
|
143
|
+
|
|
144
|
+
### S-199: the py-tool identity test covers every guarded copy
|
|
145
|
+
- Files: tests/test-council-py-tool-identity.sh
|
|
180
146
|
- Tier: LOW
|
|
181
|
-
- Red: `usePolling` returns `error` (web-app/src/hooks/usePolling.ts:7), but ProjectsPage destructures only `data` and `refresh` (~65). A failed history fetch renders "No projects yet. Start building." (~168).
|
|
182
147
|
- Green:
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
- Wall:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
193
|
-
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
- Files: web-app/src/components/CICDPanel.tsx (normalizeRunStatus, normalizeJobStatus, normalizeStepStatus and the status style map only), web-app/src/components/CICDPanel.status.test.mjs (new)
|
|
197
|
-
- Tier: LOW
|
|
198
|
-
- Red: all three normalizers map `default: return 'failed'` for a completed item, so `neutral`, `action_required`, `stale` and a null conclusion read as Failed. Any unlisted `status` returns `'running'`.
|
|
148
|
+
- Compare every `^_loki_snapshot_py_tool() {` body found by `git grep -l` under autonomy/ against run.sh's.
|
|
149
|
+
- Vacuity guard: at least one copy besides run.sh, and each body at least 10 lines.
|
|
150
|
+
- This is the only row that edits this file. S-200 to S-204 add copies and rely on it.
|
|
151
|
+
- Wall:
|
|
152
|
+
- `bash tests/test-council-py-tool-identity.sh` exits 0 and prints the number of copies compared.
|
|
153
|
+
- A one-byte change to completion-council.sh's copy in a scratch tree exits 1.
|
|
154
|
+
|
|
155
|
+
### S-200: done-recognition readers load user-site .pth (BACKLOG 54)
|
|
156
|
+
- Files:
|
|
157
|
+
- autonomy/lib/done-recognition.sh: every python3 site, plus a guarded helper copy.
|
|
158
|
+
- tests/test-done-recognition-no-user-site-pth.sh (new)
|
|
159
|
+
- Tier: HIGH
|
|
160
|
+
- Red: a user-site `.pth` under a scratch HOME changes the verdict read (the about-703 site).
|
|
199
161
|
- Green:
|
|
200
|
-
-
|
|
201
|
-
-
|
|
202
|
-
-
|
|
203
|
-
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
-
|
|
210
|
-
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
-
|
|
214
|
-
-
|
|
215
|
-
-
|
|
162
|
+
- All sites run through `_loki_snapshot_py_tool -I -S`.
|
|
163
|
+
- The builder lists each site's result when no interpreter resolves. None of them may read as done or met.
|
|
164
|
+
- Add a byte-identical guarded copy.
|
|
165
|
+
- Gate: reproduce the forged read on main first.
|
|
166
|
+
- Wall:
|
|
167
|
+
- `bash tests/test-done-recognition-no-user-site-pth.sh` exits 0.
|
|
168
|
+
- Reverting one site to `-E` in a scratch copy fails it.
|
|
169
|
+
- `bash tests/test-done-recognition-tests-axis.sh` and `bash tests/test-reuse-done-recognition.sh` exit 0.
|
|
170
|
+
|
|
171
|
+
### S-201: council-v2 readers load .pth, and a crashed sycophancy check skips the devil's advocate (BACKLOG 54)
|
|
172
|
+
- Files:
|
|
173
|
+
- autonomy/council-v2.sh: its 7 python3 sites and the Step 4 and 5 fallbacks, plus a guarded helper copy.
|
|
174
|
+
- tests/test-council-v2-no-user-site-pth.sh (new)
|
|
175
|
+
- Tier: MEDIUM. The path is opt-in through `LOKI_COUNCIL_VERSION=2`.
|
|
176
|
+
- Red:
|
|
177
|
+
- A `.pth` forges a vote read.
|
|
178
|
+
- A detector failure yields `0.000`, so a unanimous approve never challenges.
|
|
216
179
|
- Green:
|
|
217
|
-
-
|
|
218
|
-
-
|
|
219
|
-
|
|
220
|
-
- Wall:
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
-
|
|
224
|
-
|
|
225
|
-
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
-
|
|
231
|
-
-
|
|
232
|
-
-
|
|
233
|
-
-
|
|
234
|
-
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
-
|
|
238
|
-
-
|
|
239
|
-
-
|
|
240
|
-
-
|
|
241
|
-
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
-
|
|
180
|
+
- `-I -S` on every site.
|
|
181
|
+
- An unmeasured sycophancy score on a unanimous approve runs the devil's advocate. A resolver failure never yields "no challenge".
|
|
182
|
+
- Gate: reproduce both on main first.
|
|
183
|
+
- Wall:
|
|
184
|
+
- `bash tests/test-council-v2-no-user-site-pth.sh` exits 0, covering the `.pth` leg and the detector-failure leg.
|
|
185
|
+
- Reverting either change fails its leg.
|
|
186
|
+
- `bash tests/test-council-v2-quorum.sh` exits 0.
|
|
187
|
+
|
|
188
|
+
### S-202: voter-agents readers load user-site .pth (BACKLOG 54)
|
|
189
|
+
- Files:
|
|
190
|
+
- autonomy/lib/voter-agents.sh: its 3 python3 sites, plus a guarded helper copy.
|
|
191
|
+
- tests/test-voter-agents-no-user-site-pth.sh (new)
|
|
192
|
+
- Tier: HIGH
|
|
193
|
+
- Red: a `.pth` changes a parsed voter verdict.
|
|
194
|
+
- Green: `-I -S`. With no interpreter, the dispatch fails, so completion-council's existing fail-closed CONTINUE applies.
|
|
195
|
+
- Gate: reproduce the changed verdict on main first.
|
|
196
|
+
- Wall:
|
|
197
|
+
- `bash tests/test-voter-agents-no-user-site-pth.sh` exits 0, and reverting fails it.
|
|
198
|
+
- `bash tests/test-voter-agents-json.sh` and `bash tests/test-sdk-voter-agents.sh` exit 0.
|
|
199
|
+
|
|
200
|
+
### S-203: proof-check readers load user-site .pth (BACKLOG 54)
|
|
201
|
+
- Files:
|
|
202
|
+
- autonomy/lib/proof-check.sh: its 3 heredoc readers, plus a guarded helper copy.
|
|
203
|
+
- tests/test-proof-check-no-user-site-pth.sh (new)
|
|
204
|
+
- Tier: MEDIUM
|
|
205
|
+
- Red: a `.pth` forges the headline read.
|
|
206
|
+
- Green: `-I -S`. With no interpreter, the readers print empty, as they do today when python3 is absent.
|
|
207
|
+
- Gate: reproduce the forged headline on main first.
|
|
208
|
+
- Wall:
|
|
209
|
+
- `bash tests/test-proof-check-no-user-site-pth.sh` exits 0, and reverting fails it.
|
|
210
|
+
- `bash tests/test-proven-pr-check.sh` exits 0.
|
|
211
|
+
|
|
212
|
+
### S-204: checklist verification loads user-site .pth (BACKLOG 53)
|
|
213
|
+
- Files:
|
|
214
|
+
- autonomy/prd-checklist.sh: every python3 site, including the checklist-verify.py call and the oracle heredoc, plus a guarded helper copy.
|
|
215
|
+
- tests/test-prd-checklist-no-user-site-pth.sh (new)
|
|
216
|
+
- Tier: HIGH
|
|
217
|
+
- Red: a `.pth` changes the status_token or the waiver read.
|
|
218
|
+
- Green:
|
|
219
|
+
- `-I -S`. The builder audits the oracle heredoc's imports first.
|
|
220
|
+
- Any site that needs a non-stdlib module stays `-E` with a ponytail note.
|
|
221
|
+
- Resolver failure: the builder lists each site's result. None reads as verified.
|
|
222
|
+
- Gate: reproduce the changed read on main first.
|
|
223
|
+
- Wall:
|
|
224
|
+
- `bash tests/test-prd-checklist-no-user-site-pth.sh` exits 0, and reverting fails it.
|
|
225
|
+
- `bash tests/moat/p2-honest-verdict.sh` prints `CASE P2.checklist-verify-not-shadowed PASS`.
|
|
226
|
+
- `bash tests/test-prd-checklist-interval-w4.sh` exits 0.
|
|
227
|
+
|
|
228
|
+
### S-205: Bun loki proof verify runs a PATH python3 -E (BACKLOG 48 class, Bun half)
|
|
229
|
+
- Files:
|
|
230
|
+
- loki-ts/src/commands/proof.ts: the verifier spawn only.
|
|
231
|
+
- loki-ts/src/util/python.ts, only to extend the helper that already exists there.
|
|
232
|
+
- loki-ts/tests/commands/proof_verify_interpreter.test.ts (new)
|
|
233
|
+
- Tier: HIGH
|
|
234
|
+
- Red: a user-site `.pth` under a scratch HOME changes verify output, or writes a marker.
|
|
235
|
+
- Green:
|
|
236
|
+
- Resolve like `_loki_snapshot_py_tool`: /usr/bin/python3 and /bin/python3 first, then absolute PATH dirs, each probed with `-I -S -c ''`. Run with `-I -S`.
|
|
237
|
+
- If none resolves, exit 2 as NOT CHECKED.
|
|
238
|
+
- Gate: reproduce the `.pth` effect on main first.
|
|
239
|
+
- Wall:
|
|
240
|
+
- `cd loki-ts && bun test tests/commands/proof_verify_interpreter.test.ts tests/commands/proof_verify_parity.test.ts` exits 0.
|
|
241
|
+
- Reverting to `["python3","-E"]` fails the new test.
|
|
242
|
+
- The Captain rebuilds loki-ts/dist.
|
|
243
|
+
|
|
244
|
+
### S-206: cockpit actions say "working tree is clean" and "no run in progress" after a failed fetch (BACKLOG 114)
|
|
245
|
+
- Files:
|
|
246
|
+
- web-app/src/cockpit/FinalActions.tsx (disabled reasons only)
|
|
247
|
+
- web-app/src/cockpit/FinalActions.reasons.test.mjs (new)
|
|
245
248
|
- Tier: LOW
|
|
246
|
-
-
|
|
247
|
-
-
|
|
248
|
-
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
-
|
|
249
|
+
- Green:
|
|
250
|
+
- Export a pure reasons function.
|
|
251
|
+
- `git === null`: commit, push and PR read "Working tree status not loaded".
|
|
252
|
+
- `status === null`: pause, resume and stop read "Run status not loaded".
|
|
253
|
+
- Real data keeps today's copy.
|
|
254
|
+
- Wall:
|
|
255
|
+
- `node --test web-app/src/cockpit/FinalActions.reasons.test.mjs` passes:
|
|
256
|
+
- git null lacks "The working tree is clean" and "Nothing to push";
|
|
257
|
+
- status null lacks "No run in progress";
|
|
258
|
+
- `{ahead:0}` with no files keeps both sentences.
|
|
259
|
+
- `cd web-app && npx tsc -b` exits 0.
|
|
260
|
+
- The Captain rebuilds web-app/dist.
|
|
261
|
+
|
|
262
|
+
### S-207: cockpit evidence says "No gate results recorded" when the checklist request failed (BACKLOG 114)
|
|
263
|
+
- Files:
|
|
264
|
+
- web-app/src/cockpit/useCockpitState.ts: `getChecklist` through `settle`, plus a `checklistError` field.
|
|
265
|
+
- web-app/src/cockpit/EvidencePanel.tsx (empty branch only)
|
|
266
|
+
- web-app/src/cockpit/ExecutionCockpit.tsx (EvidencePanel props only)
|
|
267
|
+
- web-app/src/cockpit/EvidencePanel.state.test.mjs (new)
|
|
252
268
|
- Tier: LOW
|
|
253
|
-
-
|
|
254
|
-
-
|
|
255
|
-
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
-
|
|
269
|
+
- Wall:
|
|
270
|
+
- `node --test web-app/src/cockpit/EvidencePanel.state.test.mjs` passes:
|
|
271
|
+
- an error renders "Could not load gate results" and not "No gate results recorded";
|
|
272
|
+
- `items:[]` with no error keeps that sentence.
|
|
273
|
+
- `node web-app/src/cockpit/run-derive-view-test.mjs` exits 0.
|
|
274
|
+
- `cd web-app && npx tsc -b` exits 0.
|
|
275
|
+
- The Captain rebuilds web-app/dist.
|
|
276
|
+
|
|
277
|
+
### S-208: trust trajectory reads any non-pass council verdict as a failure (BACKLOG 118)
|
|
278
|
+
- Files:
|
|
279
|
+
- autonomy/lib/trust_trajectory.py (`_verdict_is_pass` only)
|
|
280
|
+
- tests/test_trust_trajectory_unknown_verdict.py (new)
|
|
259
281
|
- Tier: MEDIUM
|
|
260
|
-
- Red:
|
|
282
|
+
- Red: a verdict such as "UNKNOWN" or "INCONCLUSIVE" maps to 0.0.
|
|
261
283
|
- Green:
|
|
262
|
-
- The
|
|
263
|
-
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
-
|
|
271
|
-
-
|
|
284
|
+
- Only explicit fail tokens map to False. The builder enumerates them from completion-council.sh and proof-generator's writers.
|
|
285
|
+
- Anything else maps to None, meaning the axis has no data point.
|
|
286
|
+
- Gate: find a writer string that is neither pass nor fail. If none exists, close the slice as handled.
|
|
287
|
+
- Wall:
|
|
288
|
+
- `python3 -m pytest -q tests/test_trust_trajectory_unknown_verdict.py tests/test_trust_trajectory.py tests/dashboard/test_trust_trajectory_endpoint.py` passes.
|
|
289
|
+
- An unknown verdict adds no data point, and REJECTED still reads 0.0.
|
|
290
|
+
- Reverting fails the first case.
|
|
291
|
+
|
|
292
|
+
### S-209: Bun codex, cline and aider get the raw prompt without the commit-hygiene line (BACKLOG 99, Bun half)
|
|
293
|
+
- Files:
|
|
294
|
+
- loki-ts/src/runner/providers.ts: the codex, cline and aider invokers only.
|
|
295
|
+
- loki-ts/tests/runner/provider_commit_hygiene.test.ts (new)
|
|
296
|
+
- loki-ts/tests/runner/providers.test.ts, only where exact-argv assertions move.
|
|
297
|
+
- Tier: MEDIUM
|
|
272
298
|
- Green:
|
|
273
|
-
-
|
|
274
|
-
- The
|
|
275
|
-
- Wall:
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
-
|
|
279
|
-
-
|
|
280
|
-
-
|
|
299
|
+
- Prefix the prompt with the hygiene line plus a blank line, matching the bash `"$PROVIDER_COMMIT_HYGIENE"$'\n\n'"$prompt"`.
|
|
300
|
+
- The test reads the literal from providers/codex.sh; it does not copy it.
|
|
301
|
+
- Wall:
|
|
302
|
+
- `cd loki-ts && bun test tests/runner/provider_commit_hygiene.test.ts tests/runner/providers.test.ts` exits 0.
|
|
303
|
+
- All three argvs carry the bash literal.
|
|
304
|
+
- Claude's prompt is not double-prefixed.
|
|
305
|
+
- Removing the prefix fails the three legs.
|
|
306
|
+
- The Captain rebuilds loki-ts/dist.
|
|
307
|
+
|
|
308
|
+
### S-210: speed up the two command-probe suites (29s and 30s in shard-durations.tsv)
|
|
309
|
+
- Files: tests/test-help-discoverability.sh, tests/test-completion-coverage.sh (the probe loops only)
|
|
310
|
+
- Tier: LOW
|
|
311
|
+
- Change:
|
|
312
|
+
- The builder captures `real_count` and the pass and fail lines first.
|
|
313
|
+
- Then probe with `xargs -P 8`, each probe in its own scratch cwd, writing one result file per command.
|
|
314
|
+
- Keep the captured-output (never piped) rule noted in the file.
|
|
315
|
+
- Wall:
|
|
316
|
+
- `time bash tests/test-help-discoverability.sh` and `time bash tests/test-completion-coverage.sh` each exit 0 with real time under 10s.
|
|
317
|
+
- `real_count` and the pass counts match the pre-change capture.
|
|
318
|
+
- The builder reports both timings.
|
|
319
|
+
|
|
320
|
+
### S-211: register the four suites BACKLOG 75 still leaves unrun (after S-174 merges)
|
|
321
|
+
- Files: tests/run-all-tests.sh (four `run_test` lines only), tests/shard-durations.tsv (four lines)
|
|
322
|
+
- Tier: LOW. **Captain-built after S-174 merges.**
|
|
323
|
+
- Suites: tests/council/test_managed_completion_flag.sh, tests/council/test_managed_review_flag.sh, tests/test-evidence-gate-no-tests.sh, tests/test-voter-agents-json.sh.
|
|
324
|
+
- All four appear only in comments in run-all-tests.sh, so no runner executes them.
|
|
325
|
+
- The evidence-gate suite also appears in scripts/local-ci.sh, which is retired.
|
|
326
|
+
- Gate:
|
|
327
|
+
- Each suite passes 3 of 3 from a scratch cwd and leaves no `.loki/state/provider` in the repo.
|
|
328
|
+
- A suite that fails is reported, not registered, and becomes its own fix slice (the S-110 lesson).
|
|
329
|
+
- Wall:
|
|
330
|
+
- `grep -c -e test_managed_completion_flag -e test_managed_review_flag -e test-evidence-gate-no-tests -e test-voter-agents-json tests/run-all-tests.sh` prints 8 (4 before registration).
|
|
331
|
+
- `bash tests/test-shard-coverage.sh` exits 0.
|
|
332
|
+
|
|
333
|
+
### S-212: GUARDS 5, 12 and 13 still read PENDING after S-138, S-139 and S-154 landed (after S-181 merges)
|
|
334
|
+
- Files: docs/v10/GUARDS.md (sections 5, 12 and 13 only). This does not overlap S-181's section 11.
|
|
335
|
+
- Tier: LOW
|
|
281
336
|
- Green:
|
|
282
|
-
-
|
|
283
|
-
-
|
|
284
|
-
-
|
|
285
|
-
- Wall:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
| S-
|
|
330
|
-
| S-
|
|
331
|
-
| S-
|
|
332
|
-
| S-
|
|
333
|
-
| S-
|
|
334
|
-
| S-
|
|
337
|
+
- Section 12 names tests/test-no-ambient-gitconfig-writes.sh (S-138).
|
|
338
|
+
- Section 13 names the RELEASED_AHEAD_OF_NPM case in tests/test-v10-pulse.sh (S-139). It states that this is a flag, not a refusal.
|
|
339
|
+
- Section 5 names tests/test-prune-worktrees.sh only if that test asserts the no-mtime rule. Otherwise it stays PENDING and says what would close it.
|
|
340
|
+
- Wall:
|
|
341
|
+
- `awk '/^## 12\./,0' docs/v10/GUARDS.md | grep -c 'PENDING, no slice cut'` prints 0.
|
|
342
|
+
- `bash tests/test-no-ambient-gitconfig-writes.sh` and `bash tests/test-v10-pulse.sh` exit 0.
|
|
343
|
+
|
|
344
|
+
### S-213: no test of their own covers the council-vote labels on cost.html and proofs.html (BACKLOG 123, tests only)
|
|
345
|
+
- Files: dashboard-ui/tests/static-council-vote-label.node.test.mjs (new)
|
|
346
|
+
- Tier: LOW
|
|
347
|
+
- It pins:
|
|
348
|
+
- proofs.html: the badge reads "council " plus the verdict, with the title "Recorded council vote, not a verification result".
|
|
349
|
+
- cost.html: the runs header reads "Council vote".
|
|
350
|
+
- Wall:
|
|
351
|
+
- `node --test dashboard-ui/tests/static-council-vote-label.node.test.mjs` passes.
|
|
352
|
+
- Renaming the header, or dropping the title, in a scratch copy fails it.
|
|
353
|
+
|
|
354
|
+
**Registration and rebuilds (Captain).**
|
|
355
|
+
- New tests to register:
|
|
356
|
+
- S-194 to S-198.
|
|
357
|
+
- S-200 to S-209.
|
|
358
|
+
- S-213.
|
|
359
|
+
- Bundle rebuilds:
|
|
360
|
+
- S-205 and S-209: loki-ts/dist.
|
|
361
|
+
- S-206 and S-207: web-app/dist.
|
|
362
|
+
- Sequencing:
|
|
363
|
+
- S-211 builds after S-174 merges.
|
|
364
|
+
- S-212 builds after S-181 merges.
|
|
365
|
+
- S-194 and S-195 are the only run.sh rows. They name regions that do not overlap each other or S-175, and merge one at a time.
|
|
366
|
+
|
|
367
|
+
**Held, not in the 20:**
|
|
368
|
+
- BACKLOG 147 (P7 useMemo composed form): wait for S-180.
|
|
369
|
+
- BACKLOG 36 (P7 zero-file scan): wait for S-180 and S-198.
|
|
370
|
+
- BACKLOG 19 (a stripped remote attestation reads UNSIGNED exit 0): same function as S-197, so wait for S-197.
|
|
371
|
+
- The bash `loki proof verify` interpreter (autonomy/loki `cmd_proof`, `python3 -E`): wait for S-179 and S-197.
|
|
372
|
+
- BACKLOG 99, bash half (run.sh main loop): wait for S-175, S-194 and S-195.
|
|
373
|
+
- workspace_diff reports count 0 in a non-git directory: needs a design, because the value lands in the receipt.
|
|
374
|
+
- dashboard/server.py items from BACKLOG 118: wait for S-178. They are:
|
|
375
|
+
- `/cost` pricing at Sonnet rates with no estimate label;
|
|
376
|
+
- council-state `total_votes: 0`;
|
|
377
|
+
- notifications zero summary;
|
|
378
|
+
- `StatusResponse` defaults;
|
|
379
|
+
- skill-session `running_agents: 0`.
|
|
380
|
+
- ProjectWorkspace phase labels and Replay Build: wait for S-187.
|
|
381
|
+
- Speeding up test-autocapture-shadow-write-guard.sh: its negative legs wait on a disowned process and need a design.
|
|
382
|
+
- Carried over: P1.verification-metadata-signed; the P2 verify renumber (CEO); BACKLOG 18, 28, 52, 121, and 123 (the audit.py half); S-112, S-114, S-115, S-117 to S-122.
|
|
383
|
+
|
|
384
|
+
| S-194 | BACKLOG 108: LOKI_AUTO_PR pushes a branch whose history still holds user files | autonomy/run.sh (create_session_pr only; does not overlap S-175 or S-195), tests/test-auto-pr-agent-committed-refuse.sh (new) | HIGH | bash tests/test-auto-pr-agent-committed-refuse.sh exits 0: auto path with a record makes no push, returns 1 and prints git reset --soft; advisory path prints the cleanup before git push -u; empty record pushes; removing the record read in a scratch copy fails leg 1; bash tests/test-trusted-push-agent-config.sh exits 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
385
|
+
| S-195 | BACKLOG 17: /api/focus POST fires with the dashboard disabled | autonomy/run.sh (dashboard focus notify block only; does not overlap S-175 or S-194), tests/test-focus-post-dashboard-off.sh (new) | MEDIUM | bash tests/test-focus-post-dashboard-off.sh exits 0: ENABLE_DASHBOARD=false leaves the curl shim log empty, true records one POST; removing the guard in a scratch copy fails the false leg | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
386
|
+
| S-196 | council_managed_should_stop diffs Loki's install tree and runs -E readers | autonomy/completion-council.sh (council_managed_should_stop only), tests/moat/p2-honest-verdict.sh (case_council_readers_no_user_site_pth plus the ~858 comment), tests/test-council-managed-diff-target.sh (new) | HIGH | bash tests/moat/p2-honest-verdict.sh prints CASE P2.council-readers-no-user-site-pth PASS and CASE P2.council-readers-not-shadowed PASS; bash tests/test-council-managed-diff-target.sh exits 0 with the target-only file in _CC_DIFF; reverting the readers to -E makes the pth case FAIL; bash tests/moat/run.sh reports no rule failed | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
387
|
+
| S-197 | BACKLOG 51: NOT CHECKED text should name PYTHONPATH and PYTHONUSERBASE | autonomy/loki (loki_remote_verify_receipt attestation NOT CHECKED branch and cmd_proof --jwks NOT CHECKED echo only; does not overlap S-179), tests/test-proof-verify-jwks.sh (case 4 only) | LOW | bash tests/test-proof-verify-jwks.sh exits 0 with case 4 asserting PYTHONUSERBASE in the NOT CHECKED output; grep -c PYTHONUSERBASE autonomy/loki prints 2 or more; bash tests/test-remote-attestation-verdict.sh exits 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
388
|
+
| S-198 | BACKLOG 145: P7 Array.from arm loses an outer generator's index when generators nest | tests/moat/p7-no-fabricated-data.sh (Array.from generator arm ~1934-1994 and one fixture beside the B-8 fixture ~3301 only; does not overlap S-180) | HIGH | bash tests/moat/p7-no-fabricated-data.sh prints PASS for every P7 case and flags the nested fixture; removing the outer substitution lets it through; tests/moat/cases.txt unchanged | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
389
|
+
| S-199 | py-tool identity test covers every guarded _loki_snapshot_py_tool copy under autonomy/ | tests/test-council-py-tool-identity.sh | LOW | bash tests/test-council-py-tool-identity.sh exits 0 and prints the number of copies compared (at least 1 besides run.sh); a one-byte change to completion-council.sh's copy in a scratch tree exits 1 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
390
|
+
| S-200 | BACKLOG 54: done-recognition readers load user-site .pth (-E only) | autonomy/lib/done-recognition.sh (python3 sites plus guarded helper copy), tests/test-done-recognition-no-user-site-pth.sh (new) | HIGH | bash tests/test-done-recognition-no-user-site-pth.sh exits 0 and reverting one site to -E in a scratch copy fails it; bash tests/test-done-recognition-tests-axis.sh and bash tests/test-reuse-done-recognition.sh exit 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
391
|
+
| S-201 | BACKLOG 54: council-v2 readers load .pth; a crashed sycophancy check skips the devil's advocate | autonomy/council-v2.sh (python3 sites, Step 4 and 5 fallbacks, guarded helper copy), tests/test-council-v2-no-user-site-pth.sh (new) | MEDIUM | bash tests/test-council-v2-no-user-site-pth.sh exits 0 (pth leg and detector-failure leg run the devil's advocate on a unanimous approve); reverting either change fails its leg; bash tests/test-council-v2-quorum.sh exits 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
392
|
+
| S-202 | BACKLOG 54: voter-agents readers load user-site .pth (-E only) | autonomy/lib/voter-agents.sh (3 python3 sites plus guarded helper copy), tests/test-voter-agents-no-user-site-pth.sh (new) | HIGH | bash tests/test-voter-agents-no-user-site-pth.sh exits 0 and reverting fails it; bash tests/test-voter-agents-json.sh and bash tests/test-sdk-voter-agents.sh exit 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
393
|
+
| S-203 | BACKLOG 54: proof-check readers load user-site .pth (-E only) | autonomy/lib/proof-check.sh (3 heredoc readers plus guarded helper copy), tests/test-proof-check-no-user-site-pth.sh (new) | MEDIUM | bash tests/test-proof-check-no-user-site-pth.sh exits 0 and reverting fails it; bash tests/test-proven-pr-check.sh exits 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
394
|
+
| S-204 | BACKLOG 53: checklist verification loads user-site .pth (-E only) | autonomy/prd-checklist.sh (python3 sites incl. checklist-verify.py call and oracle heredoc, plus guarded helper copy), tests/test-prd-checklist-no-user-site-pth.sh (new) | HIGH | bash tests/test-prd-checklist-no-user-site-pth.sh exits 0 and reverting fails it; bash tests/moat/p2-honest-verdict.sh prints CASE P2.checklist-verify-not-shadowed PASS; bash tests/test-prd-checklist-interval-w4.sh exits 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
395
|
+
| S-205 | Bun loki proof verify runs a PATH python3 -E (user-site .pth reaches the verdict) | loki-ts/src/commands/proof.ts (verifier spawn only), loki-ts/src/util/python.ts (extend existing helper only if used), loki-ts/tests/commands/proof_verify_interpreter.test.ts (new) | HIGH | cd loki-ts && bun test tests/commands/proof_verify_interpreter.test.ts tests/commands/proof_verify_parity.test.ts exits 0; reverting to python3 -E fails the new test; no resolvable interpreter exits 2 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
396
|
+
| S-206 | BACKLOG 114: cockpit actions say working tree is clean and no run in progress after a failed fetch | web-app/src/cockpit/FinalActions.tsx (disabled reasons only), web-app/src/cockpit/FinalActions.reasons.test.mjs (new) | LOW | node --test web-app/src/cockpit/FinalActions.reasons.test.mjs passes: git null lacks The working tree is clean and Nothing to push, status null lacks No run in progress, real data keeps both; cd web-app && npx tsc -b exits 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
397
|
+
| S-207 | BACKLOG 114: cockpit evidence says No gate results recorded when the checklist request failed | web-app/src/cockpit/useCockpitState.ts (getChecklist via settle only), web-app/src/cockpit/EvidencePanel.tsx (empty branch only), web-app/src/cockpit/ExecutionCockpit.tsx (EvidencePanel props only), web-app/src/cockpit/EvidencePanel.state.test.mjs (new) | LOW | node --test web-app/src/cockpit/EvidencePanel.state.test.mjs passes: an error renders Could not load gate results, items [] keeps No gate results recorded; node web-app/src/cockpit/run-derive-view-test.mjs exits 0; cd web-app && npx tsc -b exits 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
398
|
+
| S-208 | BACKLOG 118: trust trajectory reads any non-pass council verdict as a failure | autonomy/lib/trust_trajectory.py (_verdict_is_pass only), tests/test_trust_trajectory_unknown_verdict.py (new) | MEDIUM | python3 -m pytest -q tests/test_trust_trajectory_unknown_verdict.py tests/test_trust_trajectory.py tests/dashboard/test_trust_trajectory_endpoint.py passes: an unknown verdict adds no data point, REJECTED stays 0.0; reverting fails case 1 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
399
|
+
| S-209 | BACKLOG 99 (Bun): codex, cline and aider get the prompt without the commit-hygiene line | loki-ts/src/runner/providers.ts (codex, cline, aider invokers only), loki-ts/tests/runner/provider_commit_hygiene.test.ts (new), loki-ts/tests/runner/providers.test.ts (argv asserts only if moved) | MEDIUM | cd loki-ts && bun test tests/runner/provider_commit_hygiene.test.ts tests/runner/providers.test.ts exits 0: all three argvs carry the providers/codex.sh literal, claude not double-prefixed; removing the prefix fails the three legs | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
400
|
+
| S-210 | Velocity: help-discoverability (29s) and completion-coverage (30s) probe loops under 10s each | tests/test-help-discoverability.sh, tests/test-completion-coverage.sh (probe loops only) | LOW | time bash tests/test-help-discoverability.sh and time bash tests/test-completion-coverage.sh each exit 0 with real under 10s; real_count and pass counts match the pre-change capture; both timings reported | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
401
|
+
| S-211 | BACKLOG 75: register the four suites no runner executes (Captain, after S-174 merges) | tests/run-all-tests.sh (four run_test lines only, after S-174 merges), tests/shard-durations.tsv (four lines) | LOW | grep -c -e test_managed_completion_flag -e test_managed_review_flag -e test-evidence-gate-no-tests -e test-voter-agents-json tests/run-all-tests.sh prints 8; bash tests/test-shard-coverage.sh exits 0; each suite ran 3 of 3 from a scratch cwd with no .loki/state/provider left | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
402
|
+
| S-212 | GUARDS 5, 12 and 13 still read PENDING after S-138, S-139 and S-154 landed (after S-181 merges) | docs/v10/GUARDS.md (sections 5, 12, 13 only; does not overlap S-181 section 11) | LOW | awk '/^## 12\./,0' docs/v10/GUARDS.md piped to grep -c 'PENDING, no slice cut' prints 0; bash tests/test-no-ambient-gitconfig-writes.sh and bash tests/test-v10-pulse.sh exit 0 | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|
|
403
|
+
| S-213 | BACKLOG 123: cost.html and proofs.html council-vote labels have no test of their own | dashboard-ui/tests/static-council-vote-label.node.test.mjs (new) | LOW | node --test dashboard-ui/tests/static-council-vote-label.node.test.mjs passes (proofs.html council prefix and title, cost.html Council vote header); renaming the header or dropping the title in a scratch copy fails it | ready@2026-09-27T20:12Z | Source: 20:12Z cut. |
|