Skip to content

docs(spec04): align §3.2/§5.4 with the merged harness-tool impl#29

Merged
wine-fall merged 2 commits into
mainfrom
zachg-0715--fix-spec04-harness-tool
Jul 15, 2026
Merged

docs(spec04): align §3.2/§5.4 with the merged harness-tool impl#29
wine-fall merged 2 commits into
mainfrom
zachg-0715--fix-spec04-harness-tool

Conversation

@wine-fall

Copy link
Copy Markdown
Owner

Aligns specs/spec04/04-no-dead-air.md with the slice-2 code already merged to main.

What & why

Slice 2 (talk look-ahead) shipped in PR #26 using a terminal harness tool for structured batch output — emit_talk_beats / parse_talk_beats in src/murmur/talk_tools.py, the same seam as music discovery (spec 03-01). But the spec still described the pre-refactor design: a JSON array requested in the prompt, parsed by a _parse_talk_batch that no longer exists in code. That's a spec↔code drift (CLAUDE.md alignment red line).

  • §3.2 — rewritten to the tool-seam design: the model returns beats by calling the tool (SDK hands them back as a parsed mapping, no free-text JSON to scrape); parse_talk_beats is the single trust point; empty/malformed/missing tool result degrades to a single next_talk beat.
  • §5.4 — acceptance now references parse_talk_beats instead of the removed _parse_talk_batch.
  • Fixed the stale slice 2 (next build) label — both slices are now merged.

Docs-only; no code change. The graphify graph was refreshed for the edited spec.

AI coding brief

🤖 Generated with Claude Code

wine-fall and others added 2 commits July 15, 2026 15:44
Slice 2 shipped (PR #26) using a terminal harness tool (emit_talk_beats /
parse_talk_beats in talk_tools.py) for structured batch output, but the spec
still described the pre-refactor prompt-JSON + _parse_talk_batch approach that
no longer exists in code. Rewrite §3.2 and acceptance §5.4 to the tool-seam
design (same seam as music discovery, spec 03-01), and fix the stale
"slice 2 (next build)" label now that both slices are merged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@wine-fall wine-fall merged commit eb23d4b into main Jul 15, 2026
4 checks passed
@wine-fall wine-fall deleted the zachg-0715--fix-spec04-harness-tool branch July 15, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant