Conversation
…nedSlot, sources, outcomes, drop policies (gh-#401) SPEC F187 / STORY-454. Public sealed records under Plan/ in the GenWave.Orchestration namespace: BreakContext, BreakPlan (ToTrace: one line per slot, "(empty)" for none), PlannedSlot, Reservation + ReservationKind, and three closed hierarchies with private protected bases — SlotSource (Render, Verbatim, Ready), SlotOutcome (Rendered, TimedOut, Failed, Abandoned), DropPolicy (Silent, Warn, WarnAndEvent). Nothing consumes them yet; the Orchestrator is untouched (T521/T522). Interim until PR-4's speaker work (T524/T527): a Render or Verbatim slot's speaker is the request's PersonaName or "station", Verbatim carries the SegmentCopy, WarnAndEvent is parameterless because the handoff drop is the only event today. Story454's 14 facts are green.
…n from today's steps (gh-#401) BreakPlanner performs EnqueuePatterAsync's steps 1 → 1.5 → 1.75 → 2 → 2.25 → drain → 3 verbatim, minus rendering and minus the handoff arm (SPEC F188.1), keeping every side effect in today's order (F188.2) and reading the render + time/date budgets once per plan (F188.3). Claimed, vended, dequeued and pooled slots carry one named Reservation (F187.3); VerbatimSource gains AllowFlavor so the render phase keeps F191.4's flavored-then-plain law without the planner calling the copy writer. BreakContext gains UnitOrdinal (the Orchestrator's unitCount lives in GetNextAsync, so the planner never increments it). The Orchestrator is untouched — T522 wires the plan in and deletes the old path; the step logic is duplicated for exactly one commit. Story455 AC1–AC4 green through the new BreakPlannerBuilder; AC5/AC6 retagged pending T522. Full solution green, Release build 0 warnings.
…uePatterAsync and Build*Request deleted (gh-#401) PlanAndRenderAsync builds a BreakContext, asks BreakPlanner.PlanAsync for the plan, hands it to IBreakPlanObserver (NoOp by default), arms the handoff ceremony, then RenderPlanAsync (Orchestrator.Render.cs) kicks every slot and awaits in ordinal order against the plan's render budget — drop policies, WARN text, and HandoffPieceDropped unchanged (SPEC F186.3/F186.4, F191.4). EnqueuePatterAsync and every Build*Request method are gone (SPEC F188.5, STORY-455 AC6 un-skipped, proven by reflection). Orchestrator.cs drops from 2687 to 1641 lines; dead stationClock/contextSettings/StationLocalNow removed from the Orchestrator (still fed to BreakPlanner). Story452 replay gains a Traces table (O1–O9) via CapturingBreakPlanObserver; assertions otherwise frozen. ForwardingLogger<T> (test-only) keeps planner log lines visible to CapturingLogger<Orchestrator> specs. SEAMS.md regenerated (122 seams).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧩 gh-#401 PR-3 — the break plan is a value; BreakPlanner decides the break (STORY-454, STORY-455)
Part of #401 (Orchestrator split) and #772. Behaviour-preserving: the Story452 characterisation replay stays frozen and green, and the dev-station histogram matches
main.What
GenWave.Orchestration/Plan(one type per file):BreakPlan,PlannedSlot,BreakContext, the closedSlotSourcehierarchy (Render/Verbatim/Ready),Reservation, theDropPolicyhierarchy,SlotOutcome;BreakPlan.ToTrace()renders one line per slot (SPEC F187).BreakPlanner.PlanAsync(BreakContext): today's cadence steps and drain order moved verbatim out of the Orchestrator; named reservations for claimed slots; no tts / verbatim-renderer / copy-writer dependency (SPEC F188). Budgets read once per plan; side effects keep their order.PlanAndRenderAsyncbuilds the context, asks the planner, hands the plan toIBreakPlanObserver(NoOp by default), arms the handoff, thenRenderPlanAsync(Orchestrator.Render.cs) kicks every slot and awaits in ordinal order against the plan's render budget — drop policies, WARN text andHandoffPieceDroppedunchanged (SPEC F186.3/F186.4, F191.4).EnqueuePatterAsyncand everyBuild*Requestmethod are deleted (SPEC F188.5, proven by reflection).Orchestrator.cs2687 → 1641 lines.SEAMS.mdregenerated (122 seams).Proof
Category!=Integration) on the branch withmainmerged in (dependabot chore(deps): bump tailwind-merge from 3.6.0 to 3.7.0 in /admin-ui #809–Bump Microsoft.NET.Test.Sdk from 18.10.0 to 18.10.1 #816): Orchestration 514 / 48 skipped (epic pendings only), Architecture 172 / 12, Host 3075 / 15, Tts 879 / 9, Core 182, Context 78, Plugins 53, Ads 222, MediaLibrary 169. Release build 0 warnings.8d95a0d);station.booth_logkind histogram against themainhour from PR-1 (v5.9.0):Same kind set on both; the count gap is one track boundary, the same gap PR-1 measured. Branch window 2026-09-18 23:17–00:17Z; api log clean (no drops, no WARNs beyond the usual boot lines). The station stays on the branch image.
Interim, removed later in the epic
BreakPlan.UnitOrdinalduplicatesContext.UnitOrdinal(T527 candidate).WarnDropcarrying its own text is deferred to T534.Not in this PR
No speaker snapshot (#772, PR-4). No
IBreakRenderer/IBreakDelivererseams yet (PR-5/PR-6).