rehearsal-report.sh still defaults REHEARSAL_DRIVE_ISSUE=492, and posts product issue numbers into a consumer's tracker #54

Closed
opened 2026-08-24 03:35:40 +00:00 by matou-build-agent · 2 comments

Why

Found while closing #51, out of its scope (it fixed the two literals the ticket
named). Two more product facts sit in rehearsal-report.sh, a vendored harness
file:

  1. L71: : "${REHEARSAL_DRIVE_ISSUE:=492}" — the literal #43 removed from
    session-runner.sh for exactly this reason ("one product's tracker number that
    silently filtered issue 492 out of every consumer's ready-for-session queue"),
    still defaulted here in the sibling that USES it to block the drive issue. In a
    consumer that runs no drive, or runs one with a different number, every red
    drive wires its blockers onto whatever issue 492 happens to be in that repo —
    and the flip-to-human invariant fires on it too.
    Note the asymmetry to rule on: list-ready-tasks.sh and session-runner.sh
    default it EMPTY, which is the right shape for a FILTER (an empty filter filters
    nothing) — but this script's use is a WRITE, so "empty" has to mean "wire
    nothing, and say so" rather than "wire to issue ''". That is the whole ticket.

  2. Product issue numbers inside strings POSTED to a consumer's tracker.
    L640's dependency-failure flip comment names #381; #51 removed (#596) from
    the evidence note beside it because it was rewriting that line anyway. These are
    the same hazard #51 ratcheted in prompt SKELETONS: a number cannot 404, it
    MISRESOLVES — the comment lands in the consumer's own tracker, where #381 is a
    different issue. Audit the family across the harness (grep -n '#[0-9]' minus
    comment lines) and decide whether the skeleton ratchet extends to strings a
    harness .sh POSTS, which is a narrower and checkable class than "any string".

Ask

Fix (1) with a ruling on what an undeclared drive issue means for a WRITE path,
and ratchet it in tests/rehearsal-report-test.sh. Then audit and fix (2), with
the ratchet if the class holds up.

Both two-way doors; the offline reporter suite (37 cases) drives the real script
with shimmed curl/claude.

## Why Found while closing #51, out of its scope (it fixed the two literals the ticket named). Two more product facts sit in `rehearsal-report.sh`, a vendored harness file: 1. **L71: `: "${REHEARSAL_DRIVE_ISSUE:=492}"`** — the literal #43 removed from `session-runner.sh` for exactly this reason ("one product's tracker number that silently filtered issue 492 out of every consumer's ready-for-session queue"), still defaulted here in the sibling that USES it to block the drive issue. In a consumer that runs no drive, or runs one with a different number, every red drive wires its blockers onto whatever issue 492 happens to be in that repo — and the flip-to-human invariant fires on it too. Note the asymmetry to rule on: `list-ready-tasks.sh` and `session-runner.sh` default it EMPTY, which is the right shape for a FILTER (an empty filter filters nothing) — but this script's use is a WRITE, so "empty" has to mean "wire nothing, and say so" rather than "wire to issue ''". That is the whole ticket. 2. **Product issue numbers inside strings POSTED to a consumer's tracker.** L640's dependency-failure flip comment names `#381`; #51 removed `(#596)` from the evidence note beside it because it was rewriting that line anyway. These are the same hazard #51 ratcheted in prompt SKELETONS: a number cannot 404, it MISRESOLVES — the comment lands in the consumer's own tracker, where `#381` is a different issue. Audit the family across the harness (`grep -n '#[0-9]'` minus comment lines) and decide whether the skeleton ratchet extends to strings a harness `.sh` POSTS, which is a narrower and checkable class than "any string". ## Ask Fix (1) with a ruling on what an undeclared drive issue means for a WRITE path, and ratchet it in `tests/rehearsal-report-test.sh`. Then audit and fix (2), with the ratchet if the class holds up. Both two-way doors; the offline reporter suite (37 cases) drives the real script with shimmed curl/claude.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=423
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=423 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #54 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 54,
  "status": "success",
  "commits": [
    "31adaebc1d09bb6295f8251163075b23c2046010"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "rehearsal-report.sh",
    "tests/rehearsal-report-test.sh"
  ],
  "tests": [
    {
      "command": "bash tests/rehearsal-report-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Fix (1): REHEARSAL_DRIVE_ISSUE no longer defaults to 492 on the WRITE path": "rehearsal-report.sh:99 now `: \"${REHEARSAL_DRIVE_ISSUE:=}\"` (empty, matching the filter-side siblings), with a comment stating the WRITE-vs-FILTER asymmetry ruling",
    "Fix (1): a ruling on what an undeclared drive means for a WRITE path": "Ruled (ADR 0174, two-way door, in-code comment + STATUS milestone): empty means 'wire nothing, and say so', never write to issue ''. A `drive_issue_set` predicate (rehearsal-report.sh:100) gates every drive write — the auth-alert comment (L147), the healer-history read (L193), the heal comment (L294), and the whole bottom dependency-wire + blocked-invariant-flip block (L607, L651); the blocker still files and floats priority regardless",
    "Fix (1): ratcheted in tests/rehearsal-report-test.sh": "cases 36 (undeclared drive files but wires no dependency, emits no /issues//, and SAYS SO) and 36b (blocked-invariant flip writes no label with no drive declared)",
    "Fix (2): audit + fix product issue numbers POSTED to a consumer's tracker": "grep -n '#[0-9]' minus comment lines audited across the harness; ruled the ratchet extends to the checkable class of strings a harness .sh POSTS to the tracker (forgejo_comment/issue body), not Mattermost ops notes where #NNN does not auto-link. The two POSTED numbers in rehearsal-report.sh reworded: the wiring-failure flip comment's `#381` -> 'the hot-loop state', and the evidence note's `#596` dropped (superseded byte-for-byte by #51's evidence-note rewrite merged just ahead, which also removed the matou-workstation host literal)",
    "Fix (2): ratchet if the class holds up": "case 37 asserts the whole tracker POST wire (create-issue body + wiring-failure flip comment) carries no bare `#[0-9]`",
    "docs/GOTCHAS.md entry for the operational hazard": "GOTCHAS #19 — a product's issue NUMBER defaulted or POSTED by a vendored harness file misresolves in every consumer's tracker (WRITE-vs-FILTER asymmetry + the posted-#NNN class)",
    "Blast-radius rule: no product-specific number left in a harness WRITE default": "verified — REHEARSAL_DRIVE_ISSUE defaults empty; grep for `#381`/`#596` shows only code comments (not posted strings) remain"
  },
  "summary": "The rehearsal reporter's REHEARSAL_DRIVE_ISSUE stops defaulting to a product's number on its WRITE path (empty now means wire-nothing-and-say-so, gated by drive_issue_set) and no string it POSTS to a consumer's tracker names a bare #NNN.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #54 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 54, "status": "success", "commits": [ "31adaebc1d09bb6295f8251163075b23c2046010" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "rehearsal-report.sh", "tests/rehearsal-report-test.sh" ], "tests": [ { "command": "bash tests/rehearsal-report-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\" || echo FAIL; done", "exit_code": 0 } ], "criteria": { "Fix (1): REHEARSAL_DRIVE_ISSUE no longer defaults to 492 on the WRITE path": "rehearsal-report.sh:99 now `: \"${REHEARSAL_DRIVE_ISSUE:=}\"` (empty, matching the filter-side siblings), with a comment stating the WRITE-vs-FILTER asymmetry ruling", "Fix (1): a ruling on what an undeclared drive means for a WRITE path": "Ruled (ADR 0174, two-way door, in-code comment + STATUS milestone): empty means 'wire nothing, and say so', never write to issue ''. A `drive_issue_set` predicate (rehearsal-report.sh:100) gates every drive write — the auth-alert comment (L147), the healer-history read (L193), the heal comment (L294), and the whole bottom dependency-wire + blocked-invariant-flip block (L607, L651); the blocker still files and floats priority regardless", "Fix (1): ratcheted in tests/rehearsal-report-test.sh": "cases 36 (undeclared drive files but wires no dependency, emits no /issues//, and SAYS SO) and 36b (blocked-invariant flip writes no label with no drive declared)", "Fix (2): audit + fix product issue numbers POSTED to a consumer's tracker": "grep -n '#[0-9]' minus comment lines audited across the harness; ruled the ratchet extends to the checkable class of strings a harness .sh POSTS to the tracker (forgejo_comment/issue body), not Mattermost ops notes where #NNN does not auto-link. The two POSTED numbers in rehearsal-report.sh reworded: the wiring-failure flip comment's `#381` -> 'the hot-loop state', and the evidence note's `#596` dropped (superseded byte-for-byte by #51's evidence-note rewrite merged just ahead, which also removed the matou-workstation host literal)", "Fix (2): ratchet if the class holds up": "case 37 asserts the whole tracker POST wire (create-issue body + wiring-failure flip comment) carries no bare `#[0-9]`", "docs/GOTCHAS.md entry for the operational hazard": "GOTCHAS #19 — a product's issue NUMBER defaulted or POSTED by a vendored harness file misresolves in every consumer's tracker (WRITE-vs-FILTER asymmetry + the posted-#NNN class)", "Blast-radius rule: no product-specific number left in a harness WRITE default": "verified — REHEARSAL_DRIVE_ISSUE defaults empty; grep for `#381`/`#596` shows only code comments (not posted strings) remain" }, "summary": "The rehearsal reporter's REHEARSAL_DRIVE_ISSUE stops defaulting to a product's number on its WRITE path (empty now means wire-nothing-and-say-so, gated by drive_issue_set) and no string it POSTS to a consumer's tracker names a bare #NNN.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#54
No description provided.