You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
opencode-claimant: prompt.md constants drift from claimant.py — generate them or pin them by a sync check (#7772 disposition e) #8366
pm-stack/opencode-claimant/prompt.md restates constants that live in claimant.py/poll.py (the queue CLI path, the server URL, the cap, queue names, launched-by markers) as prose. The two copies drift: the #7770 Phase 4 closing audit (issue #7772, 2026-11-11) found prompt.md's queue-CLI path constants stale in two places (~/fleet-brokers/bin/repo-queue, retired by the code#5362 cutover) against the code's REPO_QUEUE_CMD = ~/.local/bin/repo-queue, and repaired them by hand. Hand repair is the recurring cost; this is the same drift class that put the plural /messages path into the claimant's gate (#7760).
Ask
Decide and land one of:
Generate prompt.md's constants block (and any other machine-checkable restatements) from the code's constants, or
Pin by check: a test in the claimant suites that fails when prompt.md's stated CLI path / cap / queue list / server URL disagree with claimant.py/poll.py.
Verdict: work kind task/small-fix · priority/normal · effort/s · kind/enhancement (kept; task/priority/effort labels applied this run, plus status/triaged and queue/queued for the follow-on)
Evidence: on current main, prompt.md (345 lines) states ~/.local/bin/repo-queue, matching claimant.py's REPO_QUEUE_CMD — the Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772 hand repair holds today. But there is still no generation and no sync check: no claimant python file references prompt.md and no test compares its stated constants (CLI path, cap, queue list, server URL) against claimant.py/poll.py. The drift mechanism the issue names is fully intact.
First step: inventory prompt.md's machine-checkable restatements, then land the pin-by-check test in the claimant suites (triage's recommended route: prompt.md is hand-tuned prose and a check meets the acceptance directly); generation only if the inventory shows too many restatements to pin individually. Record the route + reason on the PR.
Acceptance: a deliberate code-constant-only edit is caught (failing check or generation diff); every inventoried restatement is covered or explicitly exempted with a reason.
Fix packet:repo-health:v1:fix:developing-today/code:issue:8366 → enqueued as task 20130 (queue repo-health-code-pilot, status queued).
state=picked up
task=20130
lane=any-l
assignment=direct
Picked up by lane any-l (task 20130). Route decision per the triage recommendation in the packet: pin-by-check — prompt.md is hand-tuned prose; a test in the claimant suites will fail when prompt.md's stated constants (queue list, CLI path, cap, server URL, launched-by markers, activity windows, state paths, worker name, route defaults, held labels, primary clone) disagree with claimant.py/poll.py. Generation stays available later if the inventory grows. A deliberate-mismatch run (code constant edited only) will be shown failing the check before the PR.
Closing evidence: PR #11219 merged (4d96390); this issue auto-closed by the PR.
Route (b) pin-by-check landed: test_prompt_constants.py (11 tests) pins every machine-checkable restatement in prompt.md to claimant.py/poll.py — queue list, REPO_QUEUE_CMD path, the 36 cap (both statements), server URL, both recovery launched-by markers, 30-min/2-h windows, mode/fire-log paths, worker name, route defaults, held labels, primary clone — plus claimant↔poll cross-module equality. The test docstring is the inventory with exemptions and reasons. Wired into run_hermetic_tests.py; the test_harness_safety fixture stubs the new module.
Verification: deliberate mismatch (claimant.py CONCURRENCY_CAP 36→37 only) fails the check; revert restores green. Hermetic suite 154 OK; harness-safety OK; claimant/poll/args/launch_one/dispatch_batch/send_to_opencode suites all OK.
Activity
developing-today commentedon Nov 11, 2026
CODE-2498
dezren39 commentedon Nov 17, 2026
🤖 Agent note · picked up + triaged
task/small-fix· priority/normal · effort/s · kind/enhancement (kept; task/priority/effort labels applied this run, plus status/triaged and queue/queued for the follow-on)~/.local/bin/repo-queue, matching claimant.py'sREPO_QUEUE_CMD— the Closing seam inventory + stub-shape audit + contract statement (Phase 4 of the claimant seam-contract design #7770) #7772 hand repair holds today. But there is still no generation and no sync check: no claimant python file references prompt.md and no test compares its stated constants (CLI path, cap, queue list, server URL) against claimant.py/poll.py. The drift mechanism the issue names is fully intact.repo-health:v1:fix:developing-today/code:issue:8366→ enqueued as task 20130 (queue repo-health-code-pilot, status queued).dezren39 commentedon Nov 17, 2026
state=picked up
task=20130
lane=any-l
assignment=direct
Picked up by lane any-l (task 20130). Route decision per the triage recommendation in the packet: pin-by-check — prompt.md is hand-tuned prose; a test in the claimant suites will fail when prompt.md's stated constants (queue list, CLI path, cap, server URL, launched-by markers, activity windows, state paths, worker name, route defaults, held labels, primary clone) disagree with claimant.py/poll.py. Generation stays available later if the inventory grows. A deliberate-mismatch run (code constant edited only) will be shown failing the check before the PR.
Merge pull request #11219 from developing-today/queue/20130-8366-prom…
dezren39 commentedon Nov 17, 2026
state=done
task=20130
lane=any-l
outcome=fixed_merged
pr=#11219
Closing evidence: PR #11219 merged (4d96390); this issue auto-closed by the PR.
Route (b) pin-by-check landed:
test_prompt_constants.py(11 tests) pins every machine-checkable restatement in prompt.md to claimant.py/poll.py — queue list, REPO_QUEUE_CMD path, the 36 cap (both statements), server URL, both recovery launched-by markers, 30-min/2-h windows, mode/fire-log paths, worker name, route defaults, held labels, primary clone — plus claimant↔poll cross-module equality. The test docstring is the inventory with exemptions and reasons. Wired into run_hermetic_tests.py; the test_harness_safety fixture stubs the new module.Verification: deliberate mismatch (claimant.py CONCURRENCY_CAP 36→37 only) fails the check; revert restores green. Hermetic suite 154 OK; harness-safety OK; claimant/poll/args/launch_one/dispatch_batch/send_to_opencode suites all OK.