Codifies the reviewer-validate Loop-C bug as a RED-in-main contract
test. Same source-grep pattern as PR #10 and PR #12. Heartbeat can't
self-approve; Kay's call to merge.
Refs: PR #14, issue #13, gap note
wiki/queries/damascus-orchestrator/reviewer-validates-failing-test-cmd-still-merges-2026-06-24.md
- Add queries/damascus-orchestrator/spec-refiner-ambiguity-routing-drift-2026-06-24.md
codifying the contract drift where phases.py:74's ambiguity-detection
requires the section to end with '?', but the contract (wiki/concepts/
spec-refiner-contract.md AC line ~122) says any non-empty Ambiguities
section routes to awaiting_human. Three options with Option A (drop the
regex) recommended; PR #11 will ship the contract test.
- Append heartbeat log entries from 04:50 (PR #7 rebase + push) and 05:55
(PR #10 contract test) to queries/damascus-orchestrator/2026-06-23-test-session.md.
Both rows were captured in prior ticks but the wiki was never committed;
catch-up commit so the wiki matches the in-repo heartbeat log.
- Append the §7-metrics-analyzer.md change log with the PR #7 rebase
verification entry (no new content; same reason as above).
- Mirror the change-log + heartbeat entries to _meta/log.md.
No code change, no PR. The contract test PR (test/spec-refiner-ambiguity-routing
branch) opens in the damascus-orchestrator repo alongside this commit.
Issue #6 left §7 implementation work blocked on 5 BMAD design questions
(cadence, storage, window scope, first-pass marker, empty windows). Per the
gap-finding discipline the heartbeat does not pick implementation choices,
but the issue body committed to mirroring the recommended answers into the
contract page on the next tick.
This commit adds concepts/§7-metrics-analyzer.md with:
- §1 background and load-bearing dependency on §2/§3 amendments
- §2 input contract (events_outbox + work_items, no schema migration)
- §3 output contract (first_pass_merge_rate, rebase_conflict_rate,
p95_attempts_to_merge) and threshold-crossing event shape
- §4 side effects (idempotent replay from events_outbox)
- §5 consumer contracts for §2 trust threshold + §3 scope-overlap policy
- §6 the 5 open design questions with options + tradeoffs
- §7 heartbeat-proposed answers with explicit accept/override workflow
- §8 minimum bar (the load-bearing contract tests + CLI verb)
- §9 cross-references
Updates _meta/index.md (Concepts section +1, page count 8→9) and
_meta/log.md (chronological entry). Appends a heartbeat log row to the
test-session note.
No code change, no PR against damascus-orchestrator. Code PRs are
downstream of BMAD/human accepting any of the 5 answers.