Repository navigation
Description
A delayed task.agent_retry job admits a new queued agent run after the parent project has been archived. Manual Start on the same archived project correctly returns PROJECT_ARCHIVED, but the retry path only checks whether the task itself is archived.
Reproduce locally without running an agent
- Seed a synthetic in-progress agent task with its latest run failed and its retry budget available.
- Archive the parent project using native
archiveProject, leaving the task unarchived. - Confirm manual agent Start is refused with 403
PROJECT_ARCHIVED. - Invoke the already-queued
task.agent_retryhandler with that task, agent and expected failed run. Use an inert queue recorder in place of a worker.
Expected: the archived project prevents admission of new work, consistent with manual Start and the read-only archive contract.
Observed: a new app.project_agent_runs row is committed with status=queued, trigger=auto_retry, and a task.agent_turn job for it is committed. The archived-project fixture has one failed original plus this queued retry.
Independent evidence and controls
Parent replay uses the native createTaskList retry handler, task-start route, archive service and kick service on a newly allocated local PostgreSQL database with all 127 pinned migrations. Queue insertion records inert rows in the same transaction; no worker consumes them. External fetch is blocked and zero external calls occur.
- Active project + retryable failed run: one queued retry is admitted.
- Archived task: retry logs
task_unavailable, no new run. - Archived project + unarchived task: manual Start returns 403, but automatic retry creates a run and queued job.
This report proves queued admission after archival. It does not claim a sandbox/model turn executed, that provider spend occurred, or that a downstream worker cannot refuse the run.
Cause and repair boundary
backend/jobs/task-list.ts:939 re-derives retry guards under a task lock, but checks task.archivedAt and never the project's archival state before calling the kick service. The guide docs/en/platform/projects/tasks.md:6 says archived projects are read-only until restored.
Re-check project availability atomically with retry admission; retain the newest-run, assignee, status and retry-budget guards. Add a real-Postgres archived-project control alongside the existing archived-task test.
Audit scope and reproduction record
- Tested source:
480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d; local-only audit on 2026-09-28. - Relevant source compared with origin/main
2be6c267eaf8b7a67d0e5abe1b0b3d655eb2ca25. The cause remains present; the only changes in the compared Inbox UI files are unrelated accent/filter-error affordances. - Full-body dedup reviewed against the all-state issue snapshot and the existing 102-finding baseline. This is one distinct cause, not an endpoint/locale variant or documented debt.
- Parent replay log:
/Users/yannick/.codex/notes/tale-1000-additional/runs-next/parent-native-transitions.log. Retained proof code lives in the same notes directory outside the repository. No production testing, real customer data, provider calls or application source edits. - Source links are rooted at the tested commit.
- Severity: P2.
Activity