Skip to content

opencode-claimant: prompt.md constants drift from claimant.py — generate them or pin them by a sync check (#7772 disposition e) #8366

Closed

Description

@dezren39

Problem

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.

Evidence

Acceptance

  • One of the two routes above is chosen, with the reason recorded here.
  • A deliberate mismatch (edit the code constant only) is caught by generation or by a failing check.
  • prompt.md's remaining prose steps are inventoried for other machine-checkable restatements, each either covered or explicitly exempted with a reason.

Activity

  1. developing-today commented on Nov 11, 2026

    @developing-today
    Contributor
  2. added this to the PM stack coherence milestone on Nov 12, 2026
  3. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    status/triagedTriaged and routed (see agent note)
    on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up + triaged

  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

  6. added a commit that references this issue on Nov 17, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workepic/pm-stackReprioritization program epic (2026-11-12)kind/enhancementpriority/normalOrdinary priority (the default)status/triagedTriaged and routed (see agent note)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions