Skip to content

fix(shared): the queue refuses transitions its lifecycle does not name; pin devcontainer-kit v1.4.2 - #108

Merged
xergioalex merged 2 commits into
mainfrom
fix/v8-queue-transitions-and-pins
Nov 17, 2026
Merged

xergioalex merged 2 commits into
mainfrom
fix/v8-queue-transitions-and-pins

Conversation

@xergioalex

@xergioalex xergioalex commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

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-state now follows one lifecycle table (spec/LOOP_ENGINEERING.md §4).
    • Allowed: queued → started|done|skipped, started → done|skipped. done and skipped are terminal.
    • queued → done stays allowed, as the spec requires: outside Herdr a plan is never marked started, and execute marks it done after closure.
    • started → queued, queued → queued and any transition out of skipped are refused. The error names the allowed set.
  • tests/v8-queue.bats: the refused transitions write nothing, and a bare pane id is normalized to a local: address. The transition test fails on the previous code.
  • addons/herdr/scripts/notify-dailybot.py: an event with no schema is now refused, the same as an event with the wrong schema. The herdr-peers daemon has stamped herdr-peers/plan-event-v1 on every event since 1.3.0 (tests/herdr-notify.bats).
  • refine/SKILL.md: the spec allows reordering .dwp/queue.json by hand. The text now says to move whole items, keep the dwp-queue-v1 shape, and confirm with queue.py show.
  • devcontainer-kit v1.4.2: pinned at the release coordinator's request (Option A, after fix(shared): the queue refuses transitions its lifecycle does not name; pin devcontainer-kit v1.4.2 #108's first review). The pin moved through v1.4.1 first.
    • v1.4.2: tag commit bb8165d, SHA256SUMS c8f2b57dc7c36ea2d212b9819ee6420344acbb0c64a46eace020a98a23e4d76a, 44 files. It adds Node 24.22.3 and keeps herdr-peers' state on the state volume.
  • devcontainer-kit v1.4.1 (intermediate):
    • Tag commit cf04872, SHA256SUMS ef3043e6…. Interface 2.
    • It bakes herdr-peers v2.2.0 and pack 8.0.2.
    • Moved: 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.
    • This closes the cycle-rule deferral recorded for 8.0.2.

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

  • Full local gate on the final head: frontmatter, shellcheck and public hygiene pass; bats tests/ reports 977 ok.
  • scripts/smoke-ecosystem-pins.sh devcontainer passes on v1.4.2:
    • the kit installs and dck doctor --json reports interface 2;
    • 44/44 files match SHA256SUMS;
    • the dck-dockerfile skill installs.
  • The v8 schemas are untouched.

Merge

Normal merge, which cuts 8.0.3.

🤖 Generated with Claude Code

…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>
@github-actions

This comment has been minimized.

github-actions[bot]

This comment was marked as outdated.

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>
@xergioalex xergioalex changed the title fix(shared): the queue refuses transitions its lifecycle does not name; pin devcontainer-kit v1.4.1 fix(shared): the queue refuses transitions its lifecycle does not name; pin devcontainer-kit v1.4.2 Nov 17, 2026
@xergioalex xergioalex added Ready and removed Ready labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

AI review for 402e167 — ✅ done

View review →

Highest severity: none

Verifier: 0 checked · 0 verified · 0 downgraded · 0 refuted · 0 unverified · 0 skipped — grok-4.5 (economy), 0s

Strictness gate: ✅ highest severity none ≤ critical threshold

0 inline comment(s) attached.

Usage: 1512.6k in (90% cached) · 21.2k out · est. $1.11 · 14 turns · 295s

Iteration-Aware Review: gen 2, round 1, policy=safety-net-forced-first-pass-exhaustive (new_commits) — 0 surfaced.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  • TRANSITIONS is queued → {started, done, skipped}, started → {done, skipped}, with done and skipped terminal. That matches the spec: inside Herdr execute marks started while still queued; outside Herdr it leaves the item queued and marks done after closure; create/refine skip with a note. Execute already only calls started while the item is queued, so a retry of started remaining refused is consistent.
  • tests/v8-queue.bats covers the holes the previous helper left open (started → queued, queued → queued, skipped as terminal) and asserts those refusals do not write.
  • notify-dailybot.py now requires herdr-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.2 is the single pin in addon.json, SKILL/SPEC, onboard, ADDONS.md, CONFIG.md, V7_ROADMAP.md, machine-installs.md (digest c8f2b57d…), and smoke-ecosystem-pins.sh. Install lines stay tag-pinned (git clone --branch v1.4.2, tree-URL skills add with --yes and -y). The addon SKILL still has a Trust boundary / write-scope section. Pack and .agents dogfood copies of the touched files are byte-identical; skills-lock.json was refreshed. Frontmatter version: is left at 8.0.2 for auto-release (title fix(shared): → PATCH 8.0.3).

Recommendation: approve


Check status: ✅ passing — strictness block-on-critical, highest severity in effect none: highest severity none ≤ 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.

@xergioalex
xergioalex merged commit 6626fa4 into main Nov 17, 2026
12 checks passed
@xergioalex
xergioalex deleted the fix/v8-queue-transitions-and-pins branch November 17, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant