Skip to content

fix(platform): refresh task descriptions on resumed runs - #4479

Merged
yannickmonney merged 1 commit into
mainfrom
fix/resumed-task-description
Oct 7, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/resumed-task-description

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Resumed task agents could keep following an old task description after it changed: normal scheduled, delegated and manual restarts omitted the current description from the continuation prompt. Every resumed kick now carries the current description, or explicitly clears the remembered description when it is empty.

Description mentions remain deduplicated. Human feedback authority, discussion deltas, completed-work continuity and staged task inputs are preserved.

Validation: 41 focused prompt/input/resume/steer tests passed, including regression failures before the fix; formatting, targeted lint, manual-test mapping, conflict guards and SAST passed. Full CI runs on this PR.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

POST-MERGE ACCEPT — reviewed merge commit 6eaa56999bb6528abe26666aa23bfcad607ef862 (parent e011cc8f825680061a0ccf3cdb063a8f5932d3e0). I did not author #4479.

  • CODE — PASS. buildKickPrompts now reads the task brief at every start and places the current description in ordinary resumed prompts. Undefined, empty, and whitespace-only descriptions produce an explicit clearing instruction, preventing stale remembered requirements. Description mentions remain a single authoritative edit; discussion deltas, requester/reviewer authority, staged inputs, output-box semantics, and completed-work continuity remain intact. The changed prompt path is used by scheduled, delegated, manual, and capacity-wake restarts.
  • REL-MANUAL — PASS. The added prompt regression covers no-feedback, automation/agent/manual requesters, explicit clearing, feedback precedence, deduplication, and staged deliverables. The new manual reference row matches the behavior; CI’s platform unit artifact records agent_run_host.task_prompt.test.ts (19 tests) passing.
  • WORKFLOW — PASS. The merge tree is the exact CI-tested tree. Backend integration job 112693376728 completed successfully at this head. The current-description read occurs after the run’s task-brief query, so a queued/capacity-woken resume observes the latest task state.
  • SECURITY — PASS. The prompt is scoped by the existing taskId brief lookup; no other task’s description is introduced. Existing resume/session incarnation fences and staged-input boundaries remain in force. No secrets or credentials are added.
  • DATA — NOT_APPLICABLE (justified). No schema, persistence, migration, or stored-value format changed; this reads the existing task description for prompt assembly.
  • DOCS — NOT_APPLICABLE (justified). No product/setup/API contract or documentation guide changed. The manual automation reference is covered under REL-MANUAL.

Interaction with #4481: no overlapping hunk or semantic conflict was found at its recorded head. #4481’s capacity park/wake path re-enters this shared prompt builder, so resumed capacity wakes receive the same refreshed description. Its separate metrics finding remains outside #4479.

No local tests/install/build were run per the coordination-only phase restriction.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

POST-MERGE ACCEPT — independent API review of #4479. I did not author or implement this PR.

Head: e3a00701f992dabc992f05e95abbf3d3012e9200
Merge: 6eaa56999bb6528abe26666aa23bfcad607ef862
Base: e011cc8f825680061a0ccf3cdb063a8f5932d3e0

Changed contracts and consumers

  • buildKickPrompts / buildResumeKickPrompt: every resumed task-agent kick receives the current task description, including an explicit empty state; it preserves feedback authority, deduplication, staged attachments/outputs, and completed-work continuity.
  • Consumers are the shared task-agent host start and re-kick paths (scheduled, delegated/manual, capacity wake, and auto-retry), which read getTaskBriefForAgentRun before prompt construction. Added prompt tests cover no-feedback, requester variants, clearing, feedback precedence, deduplication, and staged deliverables; these fail against the pre-change builder.
  • Manual automation reference adds the corresponding task coverage row.

CI at merge
All seven head aggregators were green: CI ready (Build), Checks, CLI, Commitlint, E2E, SAST, and Security — each success.

The merge commit's post-merge workflow had skipped aggregators. Its Smoke test failed because sandbox session creation returned HTTP 502 while Docker attempted to pull busybox:1.36 and the registry connection reset. This is an external image-pull failure; no rerun or cancellation was performed.

Disposition

  • CODE — PASS.
  • SECURITY — PASS: existing task-id-bound brief query; no new credential, tenant, or secret path.
  • DATA — NOT_APPLICABLE: no schema, migration, persistence, or stored-value format change.
  • CICD — PASS for head checks; merge Smoke failure needs separate infrastructure follow-up.
  • DEPLOYMENT — NOT_APPLICABLE.
  • LOCALE — NOT_APPLICABLE: no shipped locale catalog changed.
  • DOCS — PASS: manual automation reference updated; no product/setup guide contract changed.
  • PERFORMANCE/RESOURCES — PASS by inspection: bounded description text and existing staged-input limits.
  • RECOVERY/WORKFLOW — PASS: all restart paths share the refreshed builder and preserve resume/sweep semantics.

No follow-up PR or revert is required for #4479.

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