M2: Run a Pass (S3.1) #24

Closed
opened 2026-08-28 18:33:10 +02:00 by AlexKucera · 0 comments
Owner

What to build

Pass 1 (paragraph level and up) and Pass 2 (line level) run on the current draft as first-class document state, over the bridge, with pass-scoped context assembly (draft plus the relevant memory and library context; cost shown before the pass runs). A pre-pass snapshot lands in the Post's passes/ (latest per pass type kept); running a pass never destroys text — changes diff against the original. The mentor's critique streams live into the mentor pane. Pass State advances when the pass completes (the engine's turn ends), not when its Fix Cards resolve; passes run in any order; cancel mid-pass stops the agent.

Acceptance criteria

  • Pass 1 and Pass 2 invocable on the current draft; streamed critique renders live
  • Pre-pass snapshot written to the Post's passes/, latest per pass type; original text never destroyed
  • Pass State advances on completion, not card resolution; order-free; explicit state, never inferred
  • Cancel mid-pass stops the agent cleanly
  • Pass cost shown before the pass runs

Blocked by

  • #14 — M0: ACP bridge spike (S2.2)
  • #19 — M1: Editor core — open, edit, autosave (S1.2)
  • #23 — M2: museion-tools MCP server (S2.4)

[Generated by AI]

## What to build Pass 1 (paragraph level and up) and Pass 2 (line level) run on the current draft as first-class document state, over the bridge, with pass-scoped context assembly (draft plus the relevant memory and library context; cost shown before the pass runs). A pre-pass snapshot lands in the Post's `passes/` (latest per pass type kept); running a pass never destroys text — changes diff against the original. The mentor's critique streams live into the mentor pane. Pass State advances when the pass completes (the engine's turn ends), not when its Fix Cards resolve; passes run in any order; cancel mid-pass stops the agent. ## Acceptance criteria - [ ] Pass 1 and Pass 2 invocable on the current draft; streamed critique renders live - [ ] Pre-pass snapshot written to the Post's `passes/`, latest per pass type; original text never destroyed - [ ] Pass State advances on completion, not card resolution; order-free; explicit state, never inferred - [ ] Cancel mid-pass stops the agent cleanly - [ ] Pass cost shown before the pass runs ## Blocked by - #14 — M0: ACP bridge spike (S2.2) - #19 — M1: Editor core — open, edit, autosave (S1.2) - #23 — M2: museion-tools MCP server (S2.4) [Generated by AI]
AlexKucera added the ready-for-agent label 2026-08-28 18:33:10 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:43 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:43 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:44 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:44 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:45 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:45 +02:00
Sign in to join this conversation.