Skip to content

Commit 46d2d05

Browse files
committed
docs(plan): record assignment source-context blocker
Record the re-plan trigger discovered while attempting worker-owned dispatch assignment execution: runtime-branch events are admitted without the source profile that rehydration requires before task-attempt construction. List standards-aligned options for the next decision and document that exploratory source edits were reverted instead of keeping an unverified bridge path.
1 parent ae8aae9 commit 46d2d05

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

  • docs/plans/current-image-generation-graphs

docs/plans/current-image-generation-graphs/plan.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2604,6 +2604,49 @@ lock/workflow fixture files, preserve request-scoped runtime dispatch fallback,
26042604
or remove bridge selected-candidate projections until assignment-owned
26052605
execution is validated.
26062606

2607+
2026-06-10 assignment-owned execution re-plan trigger: stop before wiring the
2608+
worker-owned assignment execution slice. An exploratory implementation proved
2609+
the worker can prepare readiness, start/select/bind a scheduler runtime task,
2610+
create a dispatch assignment, record selected candidate evidence, and link the
2611+
assignment before rehydration. The next fail-closed boundary is now the
2612+
runtime-branch task-attempt source context: production runtime-branch task
2613+
events are still admitted with `batch_eligibility: None`, while rehydration
2614+
requires the runtime-branch profile fields (`operation_type`,
2615+
`context_shape_key`, `cancellation_mode`, timeout correlation, and the selected
2616+
runtime/model/resource compatibility profile) before assignment-owned runtime
2617+
execution may continue. Filling those fields inside the worker from the
2618+
selected candidate, graph shape, provisional `batching_key`, request data, or
2619+
runtime-host inputs would synthesize canonical source-context facts and
2620+
violate the no-fallback/no-legacy rule.
2621+
2622+
Re-plan options:
2623+
1. Populate the runtime-branch task-attempt source profile at runtime-branch
2624+
event admission/recovery from a backend-owned planning snapshot that
2625+
explicitly owns operation type, context shape, cancellation mode, timeout,
2626+
and selected runtime/model/resource compatibility facts. This is the
2627+
strictest assignment path, but it requires identifying or adding that
2628+
backend-owned planning snapshot before worker execution can proceed.
2629+
2. Move the profile into the durable dispatch assignment record and make
2630+
assignment creation the source-context owner. This keeps profile ownership
2631+
with the new assignment lifecycle and avoids duplicating it on
2632+
runtime-branch events, but it requires changing rehydration to consume the
2633+
assignment profile instead of `batch_eligibility` on the event.
2634+
3. Narrow the current task-attempt source context contract so runtime-branch
2635+
events own only operation/context/cancellation/timeout, while selected
2636+
candidate evidence owns runtime/model/resource compatibility. This reduces
2637+
duplication, but it must be done as a contract slice with tests proving the
2638+
worker does not synthesize operation/context/cancellation facts and does not
2639+
treat candidate evidence as a replacement for run-scoped source context.
2640+
2641+
Do not continue by making `batch_eligibility` optional in rehydration, deriving
2642+
context shape from `batching_key`, deriving operation/cancellation policy from
2643+
graph/request/runtime-host state, or letting assignment-owned execution fall
2644+
back to the old request-scoped runner. The next plan decision must choose the
2645+
canonical owner for runtime-branch operation/context/cancellation profile facts
2646+
before source implementation resumes. Exploratory source edits for the failed
2647+
assignment-owned execution attempt were reverted; no unverified code slice was
2648+
kept.
2649+
26072650
2026-06-07 runtime-branch durable active-state slice: completed the first
26082651
Option 3 promotion step. Smallest useful vertical slice: extend the durable
26092652
runtime-branch task-event contract from bridge-style `Claimed` directly to

0 commit comments

Comments
 (0)