f8fc3bf506
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
2.8 KiB
2.8 KiB
id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
| id | title | status | wave | depends_on | plan | requirements | acceptance_criteria | system_design | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 01-session-concurrency-ceiling | Preserve session ceiling launch ownership | done | 1 | plan.md |
|
|
|
Task 01: Preserve Session Ceiling Launch Ownership
Outcome
Keep every accepted or deferred launch owned by one component across refusal, callback, replay, and prompt-edit paths.
In scope
- Return the existing resume attempt when seam-3 admission refuses a cold resume.
- Stop a successful early prompt-fallback result before callback preparation.
- Fence process callbacks by the current session execution identity.
- Preserve manual origin for the compound resume-and-prompt operation.
- Distinguish dynamic relaunch success, deferral, and failure.
- Keep Office start records out of workflow auto-start drop checks.
- Report a different pending payload as an explicit conflict.
- Requeue ordinary messages after seam-3 refusal.
- Update nested ceiling launch payload prompts.
Exclusions
- New launch seams, new storage tables, or a frontend settings surface.
- Changes to provider protocols or the task card presentation.
Acceptance
- Automatic refusals either retain their exact durable replay record or return an explicit conflict. Manual actions remain admitted and audited.
- A stale execution callback cannot release a successor reservation, and a deferred detached relaunch does not finalize its automation run.
- Cold resume, queue retry, Office replay, dynamic outcome, and nested prompt regressions pass in focused tests.
Verification
cd apps/backend && go test ./internal/orchestrator ./internal/task/service -count=1
cd apps/backend && go test -race ./internal/orchestrator -count=1
git diff --check
Likely files
apps/backend/internal/orchestrator/task_operations.goapps/backend/internal/orchestrator/dynamic_launch.goapps/backend/internal/orchestrator/ceiling_defer.goapps/backend/internal/orchestrator/ceiling_replay.goapps/backend/internal/orchestrator/ceiling_release.goapps/backend/internal/orchestrator/event_handlers_agent.goapps/backend/internal/task/service/service_deferred_launch.go- matching regression tests
Results
- Focused orchestrator regressions pass for cold-resume ownership, stale callback fencing, Office replay, duplicate conflicts, queue retry, and the dynamic deferred outcome.
- Focused task-service regressions pass for top-level and nested prompt edits.