Skip to content

Phase l next wait bulk#3

Merged
RamiAltai merged 8 commits into
mainfrom
phase-l-next-wait-bulk
Jun 12, 2026
Merged

Phase l next wait bulk#3
RamiAltai merged 8 commits into
mainfrom
phase-l-next-wait-bulk

Conversation

@RamiAltai

Copy link
Copy Markdown
Owner

No description provided.

RamiAltai and others added 8 commits June 12, 2026 23:41
Agents that crash after claiming no longer hold tasks forever. New
tasks.claimed_at column (migration v3), atomic conditional-UPDATE
takeover emitting task.reclaimed, ?stale= filter, dashboard stale
badge, and full test coverage across store/server/cli/migrate.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… docs

Review round 1 fixes for the Phase L work loop:

- cmd/am/wait.go: scope the SSE stream by project only in --ready mode.
  Under --done the watched task may live outside AGENTMAN_PROJECT, and a
  scoped stream dropped its events — the wait ran to the full timeout
  (exit 7) even after the task was done. Regression test
  TestWaitDoneCrossProject covers it.
- architecture/system-map.md, contribution-guide.md, known-risks-and-gaps.md,
  data-model.md, project-overview.md: sync sweep for Phase L (wait.go module,
  POST /api/tasks/next route, exitCodeFor as the exit-mapping source,
  next/wait/bulk verbs, NextTask as a claimed_at setter, work-loop
  capability + flow, test inventory now 10 files / 130 tests).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- backend.md / engineering-conventions.md: 129 -> 130 tests; 22 -> 23
  phase L work-loop tests
- CHANGELOG.md / backend.md: add the missing TestWaitDoneCrossProject to
  the wait_test.go enumerations
- decision-records.md ADR-023: 9 -> 10 wait tests
- planning-guide.md / security.md / system-map.md: add NextTask to the
  atomic-claim path enumerations (ClaimTask / StealStaleClaim / NextTask)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@RamiAltai RamiAltai merged commit a0eebdf into main Jun 12, 2026
1 check passed
@RamiAltai RamiAltai deleted the phase-l-next-wait-bulk branch June 13, 2026 12:22
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