## _bug_frontmatter_field
[id] [BUG-9]
[severity] [P1]
[status] [open]
[caused_by_chain] [[a, b]]
[empty] []
[missing] []
[absent file] [] rc=0
## _bug_status_terminal
[closed] rc=0
[wontfix] rc=0
[resolved] rc=0
[fixed] rc=0
[open] rc=1
[fixing] rc=1
[Closed] rc=1
[] rc=1
## story_escalated
[harness/stories/STORY-7/tasks/T-7-1.md#t-7-1] rc=1
[harness/stories/STORY-8/tasks/T-8-1.md#t-8-1] rc=0
[docs/other.md#x] rc=1
[harness/stories/STORY-8] rc=1
## escalate_story
empty story rc=0
ERR   x Escalation: STORY-7 lane halted (chain-depth>3, BUG-001) — see blockers.md
METRIC {"event":"escalation_raised","story":"STORY-7","reason":"chain-depth>3","bug_id":"BUG-001","at":"2026-10-18T00:00:00+00:00"}
CALL run_hooks [on_escalation] [] [HARNESS_ESCALATED_STORY=STORY-7]
rc=0
second call rc=0
ERR   x Escalation: STORY-9 lane halted (p0-age>24h) — see blockers.md
METRIC {"event":"escalation_raised","story":"STORY-9","reason":"p0-age>24h","bug_id":"","at":"2026-10-18T00:00:00+00:00"}
no run_hooks rc=0
-- escalations:
=== STORY-7.md
# ESCALATION · STORY-7 · 2026-10-18 00:00

- Trigger: chain-depth>3
- Bug: BUG-001
- caused_by_chain: [a, b, c, d]
- Effect: every pending queue.txt line under harness/stories/STORY-7/
  is DEFERRED (skipped, not failed) each loop until this file is removed.
- Clear: resolve the triggering bug (fix it, or set its status: wontfix), THEN delete this file. Deleting alone re-raises next tick: the escalation is re-derived from the bug ledger (FM-43).
=== STORY-9.md
# ESCALATION · STORY-9 · 2026-10-18 00:00

- Trigger: p0-age>24h
- Bug: n/a
- caused_by_chain: n/a
- Effect: every pending queue.txt line under harness/stories/STORY-9/
  is DEFERRED (skipped, not failed) each loop until this file is removed.
- Clear: resolve the triggering bug (fix it, or set its status: wontfix), THEN delete this file. Deleting alone re-raises next tick: the escalation is re-derived from the bug ledger (FM-43).
-- blockers:

## 2026-10-18 00:00 · STORY-7 · escalate-human (chain-depth>3)

- Spec: harness/stories/STORY-7/ (lane halted — product invariant 5)
- Failure: escalate-human — runaway fix loop broken mechanically
- Trigger: chain-depth>3
- Bug: BUG-001
- caused_by_chain: [a, b, c, d]
- Class: blocked
- Severity: P1
- Status: escalated — awaiting human. Clear by deleting state/escalations/STORY-7.md

## 2026-10-18 00:00 · STORY-9 · escalate-human (p0-age>24h)

- Spec: harness/stories/STORY-9/ (lane halted — product invariant 5)
- Failure: escalate-human — runaway fix loop broken mechanically
- Trigger: p0-age>24h
- Bug: n/a
- caused_by_chain: n/a
- Class: blocked
- Severity: P1
- Status: escalated — awaiting human. Clear by deleting state/escalations/STORY-9.md
## _bug_escalation_ledger
[harness/stories/STORY-7/bugs/BUG-001.md] [<T>/state/bug-escalation/harness/stories/STORY-7/bugs/BUG-001.md.yml]
[] []
[/abs/harness/stories/STORY-7/bugs/BUG-001.md] []
[harness/../harness/stories/STORY-7/bugs/BUG-001.md] []
[a..b/BUG-1.md] []
[unset root] []
## _bug_escalation_ledger_ensure
[<T>/state/bug-escalation/harness/stories/STORY-7/bugs/BUG-001.md.yml]
[<T>/state/bug-escalation/harness/stories/STORY-7/bugs/BUG-001.md.yml] existing kept:
---
reopen_count: 4
---
[<T>/state/bug-escalation/harness/stories/STORY-7/bugs/BUG-002.md.yml] new:
---
---
[] []
## bug_snapshot_path
[harness/stories/STORY-7/bugs/BUG-001.md#bug-001] [<T>/state/bug-verification/STORY-7__BUG-001.sh] rc=0
[harness/stories/STORY-7/bugs/BUG-001.md] [<T>/state/bug-verification/STORY-7__BUG-001.sh] rc=0
[docs/bugs/BUG-3.md#bug-3] [] rc=1
[harness/stories/BUG-4.md] [] rc=1
[no stories root] [] rc=1
## invalidate_legacy_bug_snapshots
absent dir rc=0
empty dir rc=0
LOG   Discarded unqualified bug snapshot state/bug-verification/BUG-001.sh — bug ids collide across stories, so it cannot be attributed to one
METRIC {"event":"bug_snapshot_invalidated","key":"BUG-001","reason":"unqualified-legacy-key","at":"2026-10-18T00:00:00+00:00"}
LOG   Discarded unqualified bug snapshot state/bug-verification/BUG-006.sh — bug ids collide across stories, so it cannot be attributed to one
METRIC {"event":"bug_snapshot_invalidated","key":"BUG-006","reason":"unqualified-legacy-key","at":"2026-10-18T00:00:00+00:00"}
rc=0
STORY-7__BUG-001.sh
notes.txt
## extract_bug_verification / bug_verification_section
-- [bash] extract:
   |echo bash-block
   rc=0
-- [bash] section:
   |
   |```bash
   |echo bash-block
   |```
-- [sh] extract:
   |echo sh-block
   rc=0
-- [sh] section:
   |```sh  
   |echo sh-block
   |```
-- [shell] extract:
   |echo shell-block
   rc=0
-- [shell] section:
   |```shell
   |echo shell-block
   |```
-- [untagged] extract:
   |echo untagged-block
   rc=0
-- [untagged] section:
   |```
   |echo untagged-block
   |```
-- [json-first] extract:
   |echo after-json
   rc=0
-- [json-first] section:
   |```json
   |{"a": 1}
   |```
   |then:
   |```bash
   |echo after-json
   |```
-- [text-only] extract:
   rc=0
-- [text-only] section:
   |```text
   |log excerpt
   |```
-- [unclosed] extract:
   rc=0
-- [unclosed] section:
   |```bash
   |echo never-closed
   |
   |## Suspected root cause
   |prose
-- [heading-in-fence] extract:
   |echo one
   |## not a heading
   |echo two
   rc=0
-- [heading-in-fence] section:
   |```bash
   |echo one
   |## not a heading
   |echo two
   |```
-- [prose] extract:
   rc=0
-- [prose] section:
   |
   |1. open the page
   |2. click save
   |
-- [no-section] extract:
   rc=0
-- [no-section] section:
-- [two-blocks] extract:
   |echo first
   rc=0
-- [two-blocks] section:
   |```bash
   |echo first
   |```
   |```bash
   |echo second
   |```
-- [trailing-space-heading] extract:
   |echo spaced
   rc=0
-- [trailing-space-heading] section:
   |```bash
   |echo spaced
   |```
## bug_spec_missing_sections
[complete] []
[template] [acceptance-criteria,verification]
[indented-ac] [acceptance-criteria]
[paren-ac] [verification]
[ac-under-h1] [acceptance-criteria]
[fence-in-ac] [acceptance-criteria]
[h3-resets] [acceptance-criteria]
[none] [acceptance-criteria,verification]
## check_bug_spec_sections
absent rc=0
complete rc=0
ERR   ! BUG-011: bug file harness/stories/STORY-7/bugs/BUG-011.md has no acceptance-criteria and no verification section — qa-verify step 1 will FAIL its fix however correct the code is. QA must add numbered '## Acceptance criteria' and a fenced '## Verification' (templates/bug.md).
METRIC {"event":"bug_spec_incomplete","bug_id":"BUG-011","spec":"harness/stories/STORY-7/bugs/BUG-011.md","missing":"acceptance-criteria,verification","phase":"enqueue","at":"2026-10-18T00:00:00+00:00"}
missing both rc=0
ERR   ! BUG-011: bug file harness/stories/STORY-7/bugs/BUG-011.md has no acceptance-criteria and no verification section — qa-verify step 1 will FAIL its fix however correct the code is. QA must add numbered '## Acceptance criteria' and a fenced '## Verification' (templates/bug.md).
METRIC {"event":"bug_spec_incomplete","bug_id":"BUG-011","spec":"harness/stories/STORY-7/bugs/BUG-011.md","missing":"acceptance-criteria,verification","phase":"dispatch","at":"2026-10-18T00:00:00+00:00"}
replayed rc=0
ERR   ! BUG-012: bug file harness/stories/STORY-7/bugs/BUG-012.md has no verification section — qa-verify step 1 will FAIL its fix however correct the code is. QA must add numbered '## Acceptance criteria' and a fenced '## Verification' (templates/bug.md).
METRIC {"event":"bug_spec_incomplete","bug_id":"BUG-012","spec":"harness/stories/STORY-7/bugs/BUG-012.md","missing":"verification","phase":"dispatch","at":"2026-10-18T00:00:00+00:00"}
missing verification rc=0
ERR   ! BUG-012: bug file harness/stories/STORY-7/bugs/BUG-012.md has no verification section — qa-verify step 1 will FAIL its fix however correct the code is. QA must add numbered '## Acceptance criteria' and a fenced '## Verification' (templates/bug.md).
METRIC {"event":"bug_spec_incomplete","bug_id":"BUG-012","spec":"harness/stories/STORY-7/bugs/BUG-012.md","missing":"verification","phase":"dispatch","at":"2026-10-18T00:00:00+00:00"}
no blockers file rc=0
-- blockers:

## 2026-10-18 00:00 · BUG-011 · bug-spec-incomplete · harness/stories/STORY-7/bugs/BUG-011.md

- Spec: harness/stories/STORY-7/bugs/BUG-011.md
- Failure: bug-spec-incomplete — missing: acceptance-criteria,verification
- Effect: qa-verify step 1 FAILs the fix on every attempt (the bug file is the spec under test); expect reopen → escalation.
- Do: add numbered `## Acceptance criteria` and a fenced `## Verification` block to the bug file before its fix is verified (see core/templates/bug.md).
- Severity: P2
- Status: warning — fix still dispatched

## 2026-10-18 00:00 · BUG-012 · bug-spec-incomplete · harness/stories/STORY-7/bugs/BUG-012.md

- Spec: harness/stories/STORY-7/bugs/BUG-012.md
- Failure: bug-spec-incomplete — missing: verification
- Effect: qa-verify step 1 FAILs the fix on every attempt (the bug file is the spec under test); expect reopen → escalation.
- Do: add numbered `## Acceptance criteria` and a fenced `## Verification` block to the bug file before its fix is verified (see core/templates/bug.md).
- Severity: P2
- Status: warning — fix still dispatched
## set_bug_frontmatter_field / grow_bug_chain
---
id: BUG-5
status: fixing
reopen_count: 1
note: a: b # c
caused_by_chain: [BUG-5-fix-1, BUG-5-fix-2]
---
status: body-line
reopen_count: 9
-- no frontmatter:
no frontmatter
status: x
absent rc=0 exists=no
-- spaced empty chain:
---
caused_by_chain: [one, two]
---
## record_bug_dispatch / apply_bug_dispatch_bookkeeping
-- ledger (first write wins):
---
dispatched_at: 2026-10-01T00:00:00+00:00
---
disabled rc=0
-- bug file:
---
id: BUG-001
severity: P0
status: fixing
origin_task: BUG-000
caused_by_chain: []
dispatched_at: 2026-10-03T00:00:00+00:00
---
## Acceptance criteria

1. it works

## Verification

run the thing
-- ledger of a missing bug file:
---
dispatched_at: 2026-10-05T00:00:00+00:00
---
## prepare_bug_dispatch
not a bug rc=0
missing file rc=0
LOG   Pinned BUG-020's filing-time Verification block → state/bug-verification/STORY-7__BUG-020.sh
first dispatch rc=0
ERR   ! BUG-020: bug file harness/stories/STORY-7/bugs/BUG-020.md has no acceptance-criteria section — qa-verify step 1 will FAIL its fix however correct the code is. QA must add numbered '## Acceptance criteria' and a fenced '## Verification' (templates/bug.md).
METRIC {"event":"bug_spec_incomplete","bug_id":"BUG-020","spec":"harness/stories/STORY-7/bugs/BUG-020.md","missing":"acceptance-criteria","phase":"dispatch","at":"2026-10-18T00:00:00+00:00"}
re-dispatch rc=0
ERR   ! BUG-021: '## Verification' has content but yielded no runnable block — NO closure contract pinned; closure will rest on the QA gate + regression suites alone. Commands belong in a ```bash fence (```sh/```shell/untagged also read); prose alone is not a contract.
METRIC {"event":"bug_verification_unparsed","bug_id":"BUG-021","spec":"harness/stories/STORY-7/bugs/BUG-021.md","at":"2026-10-18T00:00:00+00:00"}
ERR   ! BUG-021: bug file harness/stories/STORY-7/bugs/BUG-021.md has no acceptance-criteria section — qa-verify step 1 will FAIL its fix however correct the code is. QA must add numbered '## Acceptance criteria' and a fenced '## Verification' (templates/bug.md).
METRIC {"event":"bug_spec_incomplete","bug_id":"BUG-021","spec":"harness/stories/STORY-7/bugs/BUG-021.md","missing":"acceptance-criteria","phase":"dispatch","at":"2026-10-18T00:00:00+00:00"}
prose rc=0
ERR   ! BUG-022: bug file harness/stories/STORY-7/bugs/BUG-022.md has no verification section — qa-verify step 1 will FAIL its fix however correct the code is. QA must add numbered '## Acceptance criteria' and a fenced '## Verification' (templates/bug.md).
METRIC {"event":"bug_spec_incomplete","bug_id":"BUG-022","spec":"harness/stories/STORY-7/bugs/BUG-022.md","missing":"verification","phase":"dispatch","at":"2026-10-18T00:00:00+00:00"}
empty section rc=0
ERR   ! BUG-021: '## Verification' has content but yielded no runnable block — NO closure contract pinned; closure will rest on the QA gate + regression suites alone. Commands belong in a ```bash fence (```sh/```shell/untagged also read); prose alone is not a contract.
METRIC {"event":"bug_verification_unparsed","bug_id":"BUG-021","spec":"harness/stories/STORY-7/bugs/BUG-021.md","at":"2026-10-18T00:00:00+00:00"}
no section guard rc=0
-- snapshots:
=== STORY-7__BUG-020.sh
echo pinned-020
-- ledger:
=== harness/stories/STORY-7/bugs/BUG-020.md.yml
---
dispatched_at: 2026-10-18T00:00:00+00:00
---
=== harness/stories/STORY-7/bugs/BUG-021.md.yml
---
dispatched_at: 2026-10-18T00:00:00+00:00
---
=== harness/stories/STORY-7/bugs/BUG-022.md.yml
---
dispatched_at: 2026-01-01T00:00:00+00:00
---
-- bug files:
= BUG-020
id: BUG-020
status: fixing
dispatched_at: 2026-10-18T00:00:00+00:00
= BUG-021
id: BUG-021
dispatched_at: 2026-10-18T00:00:00+00:00
status: fixing
= BUG-022
id: BUG-022
dispatched_at: 2026-01-01T00:00:00+00:00
status: fixing
-- blockers:

## 2026-10-18 00:00 · BUG-020 · bug-spec-incomplete · harness/stories/STORY-7/bugs/BUG-020.md

- Spec: harness/stories/STORY-7/bugs/BUG-020.md
- Failure: bug-spec-incomplete — missing: acceptance-criteria
- Effect: qa-verify step 1 FAILs the fix on every attempt (the bug file is the spec under test); expect reopen → escalation.
- Do: add numbered `## Acceptance criteria` and a fenced `## Verification` block to the bug file before its fix is verified (see core/templates/bug.md).
- Severity: P2
- Status: warning — fix still dispatched

## 2026-10-18 00:00 · BUG-021 · bug-spec-incomplete · harness/stories/STORY-7/bugs/BUG-021.md

- Spec: harness/stories/STORY-7/bugs/BUG-021.md
- Failure: bug-spec-incomplete — missing: acceptance-criteria
- Effect: qa-verify step 1 FAILs the fix on every attempt (the bug file is the spec under test); expect reopen → escalation.
- Do: add numbered `## Acceptance criteria` and a fenced `## Verification` block to the bug file before its fix is verified (see core/templates/bug.md).
- Severity: P2
- Status: warning — fix still dispatched

## 2026-10-18 00:00 · BUG-022 · bug-spec-incomplete · harness/stories/STORY-7/bugs/BUG-022.md

- Spec: harness/stories/STORY-7/bugs/BUG-022.md
- Failure: bug-spec-incomplete — missing: verification
- Effect: qa-verify step 1 FAILs the fix on every attempt (the bug file is the spec under test); expect reopen → escalation.
- Do: add numbered `## Acceptance criteria` and a fenced `## Verification` block to the bug file before its fix is verified (see core/templates/bug.md).
- Severity: P2
- Status: warning — fix still dispatched
## bug_original_verification
-- from history:
echo filed-030
rc=0
-- from the pin:
echo pinned-030
rc=0
-- empty pin falls through:
echo filed-030
rc=0
-- working tree (uncommitted):
ERR   ! BUG-031: no snapshot and no committed filing version — falling back to the WORKING-TREE block (tamperable)
echo worktree-031
rc=0
-- nothing anywhere:
ERR   ! BUG-032: no snapshot and no committed filing version — falling back to the WORKING-TREE block (tamperable)
rc=0
## worktree_fingerprint / bug_reverify_record_pass / qa_verification_reuse_section
length=64
again: same
gate reports + state: same
-- reuse with no record:
rc=0
rc=0 at=[2026-10-18T00:00:00+00:00] log=[logs/reverify-x.log] fp-matches=yes
-- reuse on the same tree:
--- VERIFICATION REUSE (orchestrator-executed) ---
The filing-time Verification block for this task was ALREADY executed by the
orchestrator's own closure gate — not by the implementer agent — on this EXACT
tree (fingerprint-matched) at 2026-10-18T00:00:00+00:00, and it PASSED. Full output:
  <T>/logs/reverify-x.log
For contract step 2, do NOT re-execute the Verification block. AUDIT that log
instead: confirm the commands match the block and their recorded results are
non-vacuous, then cite the log path as your step-2 evidence. This supersedes
the "do not trust any prior claim" rule for the Verification block ONLY,
because the executor was the orchestrator's gate, not an agent. If the log is
missing, truncated, or inconsistent with the block, FALL BACK to re-executing
the block yourself. Every other contract step (ACs, routed suites, journeys,
log scans) you must still run and observe yourself.
--- END VERIFICATION REUSE ---
rc=0
untracked source: different
-- reuse after the tree moved:
rc=0
tracked edit: different
defaults length=64
## run_bug_reverification
-- no block, no packages:
ERR   ! BUG-032: no snapshot and no committed filing version — falling back to the WORKING-TREE block (tamperable)
LOG   o BUG-032 recorded no filing-time Verification block — closure rests on the QA gate + regression suites
CALL scoped_test_packages [abc123]
LOG   o No workspace package in the fix diff — no scoped regression suites to re-run
rc=0 spec=[harness/stories/STORY-7/bugs/BUG-032.md#bug-032] block=[] reason=[]
-- block passes, packages pass:
LOG   Re-running BUG-030's filing-time Verification block (the closure contract)
CALL run_fence [echo filed-030] [logs/reverify-20261018-000000-BUG-030.log] [BUG-030]
LOG   + Filing-time Verification block passed
CALL scoped_test_packages [abc123]
LOG   Re-running scoped regression suites for BUG-030 (AC-4): pkg-a pkg-b
CALL run_scoped_tests [abc123]
rc=0 block=[echo filed-030] reverify-log=[logs/reverify-20261018-000000-BUG-030.log] at=[2026-10-18T00:00:00+00:00]
-- block fails:
LOG   Re-running BUG-030's filing-time Verification block (the closure contract)
CALL run_fence [echo filed-030] [logs/reverify-20261018-000000-BUG-030.log] [BUG-030]
ERR   x Filing-time Verification block still fails (<T>/logs/reverify-20261018-000000-BUG-030.log) — last 20 lines:
ERR     fence line 1
ERR     fence line 2
ERR     fence line 3
rc=1 recorded=[]
-- scoped suites fail:
ERR   ! BUG-032: no snapshot and no committed filing version — falling back to the WORKING-TREE block (tamperable)
LOG   o BUG-032 recorded no filing-time Verification block — closure rests on the QA gate + regression suites
CALL scoped_test_packages [abc123]
LOG   Re-running scoped regression suites for BUG-032 (AC-4): pkg-a
CALL run_scoped_tests [abc123]
ERR   x Scoped regression suites failed during BUG-032 re-verification
rc=1
-- packages but no start sha and no scoped cmd:
ERR   ! BUG-032: no snapshot and no committed filing version — falling back to the WORKING-TREE block (tamperable)
LOG   o BUG-032 recorded no filing-time Verification block — closure rests on the QA gate + regression suites
CALL scoped_test_packages []
LOG   o No workspace package in the fix diff — no scoped regression suites to re-run
rc=0
-- packages, no start sha, scoped cmd set:
ERR   ! BUG-032: no snapshot and no committed filing version — falling back to the WORKING-TREE block (tamperable)
LOG   o BUG-032 recorded no filing-time Verification block — closure rests on the QA gate + regression suites
CALL scoped_test_packages []
LOG   Re-running scoped regression suites for BUG-032 (AC-4): pkg-a
CALL run_scoped_tests []
rc=0
-- logs:
reverify-20261018-000000-BUG-030.log
## requeue_spec_line
CALL queue_commit_write
ref rc=0
CALL queue_commit_write
bare id (uppercased) rc=0
CALL queue_commit_write
bare id again rc=0
dot is literal rc=1
DONE is not terminal rc=1
BLOCKED is not terminal rc=1
already pending rc=1
CALL queue_commit_write
bare bug id rc=0
# queue
harness/stories/STORY-2/bugs/BUG-002.md#bug-002
harness/stories/STORY-7/bugs/BUG-002.md#bug-002
# [DONE] docs/a.md#t-a-1
docs/a.md#t-a-2
docs/a.md#t-a-2
# [FAILED] harness/stories/STORY-7/bugs/BUG-0x2.md#bug-0x2
# [BLOCKED] docs/a.md#t-a-3
docs/a.md#t-a-4
-- the tmp file is cleaned up when the write fails:
CALL queue_commit_write (failing)
rc=1
blockers.md
queue.txt
## close_bug_on_pass
LOG   + BUG-040 closed — filing-time closure contract satisfied
METRIC {"event":"bug_closed","bug_id":"BUG-040","at":"2026-10-18T00:00:00+00:00"}
CALL queue_commit_write
LOG   + Origin harness/stories/STORY-7/bugs/BUG-004.md#bug-004 re-queued — unblocked by BUG-040's closure
METRIC {"event":"origin_requeued","bug_id":"BUG-040","origin_task":"harness/stories/STORY-7/bugs/BUG-004.md#bug-004","at":"2026-10-18T00:00:00+00:00"}
bare bug origin rc=0
LOG   + BUG-041 closed — filing-time closure contract satisfied
METRIC {"event":"bug_closed","bug_id":"BUG-041","at":"2026-10-18T00:00:00+00:00"}
CALL queue_commit_write
LOG   + Origin T-X-001 re-queued — unblocked by BUG-041's closure
METRIC {"event":"origin_requeued","bug_id":"BUG-041","origin_task":"T-X-001","at":"2026-10-18T00:00:00+00:00"}
task origin rc=0
LOG   + BUG-041 closed — filing-time closure contract satisfied
METRIC {"event":"bug_closed","bug_id":"BUG-041","at":"2026-10-18T00:00:00+00:00"}
LOG   o Origin T-X-001 has no terminal queue line to restore (already pending, done, or pre-queue) — nothing to unblock
task origin again rc=0
LOG   + BUG-042 closed — filing-time closure contract satisfied
METRIC {"event":"bug_closed","bug_id":"BUG-042","at":"2026-10-18T00:00:00+00:00"}
LOG   o Origin harness/stories/STORY-7/tasks/T-7-1.md has no terminal queue line to restore (already pending, done, or pre-queue) — nothing to unblock
ref origin (read anchorless) rc=0
LOG   + BUG-043 closed — filing-time closure contract satisfied
METRIC {"event":"bug_closed","bug_id":"BUG-043","at":"2026-10-18T00:00:00+00:00"}
no origin rc=0
LOG   + BUG-044 closed — filing-time closure contract satisfied
METRIC {"event":"bug_closed","bug_id":"BUG-044","at":"2026-10-18T00:00:00+00:00"}
CALL queue_commit_write
LOG   + Origin BUG-004 re-queued — unblocked by BUG-044's closure
METRIC {"event":"origin_requeued","bug_id":"BUG-044","origin_task":"BUG-004","at":"2026-10-18T00:00:00+00:00"}
storyless bare bug origin rc=0
-- queue:
harness/stories/STORY-2/bugs/BUG-004.md#bug-004
harness/stories/STORY-7/bugs/BUG-004.md#bug-004
docs/t.md#t-x-001
-- snapshots:
=== STORY-2__BUG-040.sh
echo other story pin
-- ledger:
-- BUG-040:
---
id: BUG-040
status: closed
origin_task: BUG-004
---
body
## reopen_bug_after_failed_fix / apply_bug_reopen_bookkeeping / record_bug_reopen
no bug file rc=0
ERR   x BUG-050 stays open (review-rejected) — chain grew (+BUG-050-fix-20261018000000), reopen_count=1, fix re-queued
METRIC {"event":"bug_reopened","bug_id":"BUG-050","bug":"harness/stories/STORY-7/bugs/BUG-050.md","reason":"review-rejected","reopen_count":1,"at":"2026-10-18T00:00:00+00:00"}
CALL queue_commit_write
rc=0
ERR   x BUG-050 stays open (unknown) — chain grew (+BUG-050-fix-20261018000000), reopen_count=2, fix re-queued
METRIC {"event":"bug_reopened","bug_id":"BUG-050","bug":"harness/stories/STORY-7/bugs/BUG-050.md","reason":"unknown","reopen_count":2,"at":"2026-10-18T00:00:00+00:00"}
default reason, already pending rc=0
-- bug file:
---
id: BUG-050
status: open
caused_by_chain: [BUG-050-fix-20261018000000, BUG-050-fix-20261018000000]
reopen_count: 2
---
body
-- ledger:
=== harness/stories/STORY-7/bugs/BUG-050.md.yml
---
caused_by_chain: [BUG-050-fix-20261018000000, BUG-050-fix-20261018000000]
reopen_count: 2
---
-- queue:
# [FAILED] harness/stories/STORY-2/bugs/BUG-050.md#bug-050
harness/stories/STORY-7/bugs/BUG-050.md#bug-050
ERR   x BUG-051 stays open (unknown) — chain grew (+BUG-051-fix-1), reopen_count=1, fix re-queued
METRIC {"event":"bug_reopened","bug_id":"BUG-051","bug":"harness/stories/STORY-7/bugs/BUG-051.md","reason":"unknown","reopen_count":1,"at":"2026-10-18T00:00:00+00:00"}
no bug file, ledger only rc=0
ERR   x BUG-051 stays open (gate:test) — chain grew (+BUG-051-fix-2), reopen_count=1, fix re-queued
METRIC {"event":"bug_reopened","bug_id":"BUG-051","bug":"harness/stories/STORY-7/bugs/BUG-051.md","reason":"gate:test","reopen_count":1,"at":"2026-10-18T00:00:00+00:00"}
non-numeric ledger count rc=0
ERR   x BUG-052 stays open (unknown) — chain grew (+BUG-052-fix-1), reopen_count=0, fix re-queued
METRIC {"event":"bug_reopened","bug_id":"BUG-052","bug":"harness/stories/STORY-7/bugs/BUG-052.md","reason":"unknown","reopen_count":0,"at":"2026-10-18T00:00:00+00:00"}
ledger disabled rc=0
ERR   x BUG-053 stays open (bare) — chain grew (+BUG-053-fix-1), reopen_count=1, fix re-queued
METRIC {"event":"bug_reopened","bug_id":"BUG-053","bug":"BUG-053","reason":"bare","reopen_count":1,"at":"2026-10-18T00:00:00+00:00"}
pathless rc=0
-- ledger:
=== BUG-053.yml
---
caused_by_chain: [BUG-053-fix-1]
reopen_count: 1
---
=== harness/stories/STORY-7/bugs/BUG-050.md.yml
---
caused_by_chain: [BUG-050-fix-20261018000000, BUG-050-fix-20261018000000]
reopen_count: 2
---
=== harness/stories/STORY-7/bugs/BUG-051.md.yml
---
reopen_count: 1
caused_by_chain: [BUG-051-fix-2]
---
## clear_bug_escalation_ledger
rc=0
absent rc=0
empty rc=0
disabled rc=0
-- ledger:
./BUG-053.yml
./harness/stories/STORY-7/bugs/BUG-051.md.yml
