Repository navigation
fix(shared): the queue refuses transitions its lifecycle does not name; pin devcontainer-kit v1.4.2 - #108
Conversation
…e; pin devcontainer-kit v1.4.1 Upstream findings from the AI Diff Reviewer on the Dailybot DWP 8.0.2 upgrade PRs (relayed by the Dailybot hub lane), checked against the spec: - shared/queue.py: set-state now follows one lifecycle table (spec LOOP_ENGINEERING.md section 4): queued -> started|done|skipped, started -> done|skipped, done and skipped terminal. queued -> done stays allowed: outside Herdr a plan is never marked started and execute marks it done after closure. started -> queued, queued -> queued and anything out of skipped are refused with the allowed set named. - tests/v8-queue.bats: the refused transitions (writing nothing) and the bare-pane-id normalization are covered; the transition test fails on the previous code. - addons/herdr/scripts/notify-dailybot.py: an event without a schema is refused like a wrong one; the daemon has stamped plan-event-v1 on every event since 1.3.0 (tests/herdr-notify.bats). - refine/SKILL.md: the hand reorder of .dwp/queue.json the spec allows moves whole items, keeps the dwp-queue-v1 shape and is confirmed with queue.py show. - devcontainer-kit v1.4.1 (tag commit cf04872, SHA256SUMS ef3043e6…, interface 2; it bakes herdr-peers v2.2.0 and pack 8.0.2): the descriptor, SKILL (the Tag cell gains the 1.4.1 entry), SPEC, the machine-install recipe and its digest, the catalog, ADDONS.md, CONFIG.md, V7_ROADMAP.md, onboarding and the release smoke digest (smoke passes: install, doctor interface 2, 44/44, the dck-dockerfile skill). This closes the cycle-rule deferral recorded for 8.0.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
devcontainer-kit v1.4.2 (tag commit bb8165d, SHA256SUMS c8f2b57d…, 44 files; interface stays 2) adds Node 24.22.3 and keeps herdr-peers' state on the state volume. The descriptor, SKILL (the Tag cell gains the 1.4.2 entry), SPEC, the machine-install recipe and its digest, the catalog, ADDONS.md, CONFIG.md, V7_ROADMAP.md, onboarding and the release smoke digest move to v1.4.2 (smoke passes: install, doctor interface 2, 44/44, the dck-dockerfile skill). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AI review for
|
There was a problem hiding this comment.
Code review — 0 finding(s): 0 critical · 0 warning · 0 info
Check: ✅ passing — strictness block-on-critical: highest severity none ≤ critical threshold
No findings posted inline.
Summary
Looks good — the queue now refuses unnamed transitions without breaking the out-of-Herdr queued → done path, the herdr notifier requires the daemon schema, and the devcontainer-kit v1.4.2 pin is consistent across the pack and dogfood.
Methodology integrity
Core surfaces in this diff: shared/queue.py, refine/SKILL.md, spec/ADDONS.md, spec/CONFIG.md, spec/V7_ROADMAP.md, onboard/addons.md.
| # | Check | Result |
|---|---|---|
| M1 | Long-horizon loop intact | Pass — create append, execute started/done, refine skip, and resume are unchanged. The new table only refuses transitions the lifecycle does not name. |
| M2 | .dwp/ durability |
Pass — the queue stays .dwp/queue.json; a damaged document is still a quiet none. |
| M3 | Atomic task contract | Pass — acceptance criteria and validation are untouched. |
| M4 | Gate discipline | Pass — execute still treats queue writes as best-effort and never a gate; [x] rules are unchanged. |
| M5 | Mandatory finals | Pass — no Final Review change; the addon pin adds no mandatory plan task. |
| M6 | Zero-optional-addon baseline | Pass — queue.py is core stdlib; the notify tightening is herdr-only; the kit pin is opt-in. |
| M7 | Interruptibility | Pass — resume/progress are untouched; refused set-state calls write nothing. |
| M8 | Spec ↔ guide ↔ create/execute | Pass — queued → done is kept for LOOP_ENGINEERING §4 / execute/v6.md (outside Herdr the item stays queued, then execute marks done after closure). Refine's reorder guidance matches “a human or the lead reorders”. |
What I verified
TRANSITIONSisqueued → {started, done, skipped},started → {done, skipped}, withdoneandskippedterminal. That matches the spec: inside Herdr execute marksstartedwhile still queued; outside Herdr it leaves the item queued and marksdoneafter closure; create/refine skip with a note. Execute already only callsstartedwhile the item is queued, so a retry ofstartedremaining refused is consistent.tests/v8-queue.batscovers the holes the previous helper left open (started → queued,queued → queued, skipped as terminal) and asserts those refusals do not write.notify-dailybot.pynow requiresherdr-peers/plan-event-v1, matching herdr SPEC §6.5 (schema is a listed field) and the daemon stamp since 1.3.0. The herdr pin is v2.2.0; missing schema is a quiet exit 0, so the daemon notify path still never breaks.- Devcontainer-kit
v1.4.2is the single pin inaddon.json, SKILL/SPEC, onboard, ADDONS.md, CONFIG.md, V7_ROADMAP.md,machine-installs.md(digestc8f2b57d…), andsmoke-ecosystem-pins.sh. Install lines stay tag-pinned (git clone --branch v1.4.2, tree-URLskills addwith--yesand-y). The addon SKILL still has a Trust boundary / write-scope section. Pack and.agentsdogfood copies of the touched files are byte-identical;skills-lock.jsonwas refreshed. Frontmatterversion:is left at 8.0.2 for auto-release (titlefix(shared):→ PATCH 8.0.3).
Recommendation: approve
Check status: ✅ passing — strictness
block-on-critical, highest severity in effectnone: highest severitynone≤ critical threshold.This line is written by the reviewer runtime after the gate ran and matches the check conclusion and the tracking comment. Any recommendation above is the model's advisory opinion, not the gate.
Summary
The AI Diff Reviewer flagged these findings on the Dailybot DWP 8.0.2 upgrade PRs, and the Dailybot hub lane relayed them. I checked each against the spec before fixing it. A normal merge of this PR cuts pack 8.0.3.
shared/queue.py:set-statenow follows one lifecycle table (spec/LOOP_ENGINEERING.md§4).queued → started|done|skipped,started → done|skipped.doneandskippedare terminal.queued → donestays allowed, as the spec requires: outside Herdr a plan is never markedstarted, and execute marks itdoneafter closure.started → queued,queued → queuedand any transition out ofskippedare refused. The error names the allowed set.tests/v8-queue.bats: the refused transitions write nothing, and a bare pane id is normalized to alocal:address. The transition test fails on the previous code.addons/herdr/scripts/notify-dailybot.py: an event with noschemais now refused, the same as an event with the wrong schema. The herdr-peers daemon has stampedherdr-peers/plan-event-v1on every event since 1.3.0 (tests/herdr-notify.bats).refine/SKILL.md: the spec allows reordering.dwp/queue.jsonby hand. The text now says to move whole items, keep thedwp-queue-v1shape, and confirm withqueue.py show.bb8165d,SHA256SUMSc8f2b57dc7c36ea2d212b9819ee6420344acbb0c64a46eace020a98a23e4d76a, 44 files. It adds Node 24.22.3 and keeps herdr-peers' state on the state volume.cf04872,SHA256SUMSef3043e6…. Interface 2.ADDONS.md,CONFIG.md,V7_ROADMAP.md, onboarding and the release smoke digest.Not changed: the review also suggested refusing
queued → done. That would break the spec's out-of-Herdr completion path, so it is kept.Validation
bats tests/reports 977 ok.scripts/smoke-ecosystem-pins.sh devcontainerpasses on v1.4.2:dck doctor --jsonreports interface 2;SHA256SUMS;dck-dockerfileskill installs.Merge
Normal merge, which cuts 8.0.3.
🤖 Generated with Claude Code