Skip to content

Make loop lifecycle explicit - #52

Merged
chriswu727 merged 1 commit into
mainfrom
agent/explicit-loop-state-machine
Jul 21, 2026
Merged

Make loop lifecycle explicit#52
chriswu727 merged 1 commit into
mainfrom
agent/explicit-loop-state-machine

Conversation

@chriswu727

Copy link
Copy Markdown
Owner

Summary

  • persist an explicit fail-closed loop state, transition reason, and monotonic sequence across claims, recovery, pauses, cancellation, verification, and terminal outcomes
  • extract transition, decision, context/history, dispatch, verification, and delegation policies while retaining the existing progress guard as the no-progress control
  • expose the persisted lifecycle through the API and task UI, migrate legacy rows safely, and document the design in ADR 0011

Verification

  • uv run pytest -q (513 tests)
  • uv run ruff check app tests alembic
  • uv run ruff format --check app tests alembic
  • uv run mypy app
  • pnpm lint
  • pnpm typecheck
  • pnpm test (33 web/desktop tests)
  • pnpm build
  • Alembic empty upgrade, downgrade, re-upgrade, plus 8-state legacy data migration
  • deterministic HTTP Verified Completion benchmark: 1/1 solved, 0 false acceptances, 2 steps, 24 tokens, valid integrity and replay

@chriswu727
chriswu727 marked this pull request as ready for review July 21, 2026 22:06
@chriswu727
chriswu727 merged commit 3a1a597 into main Jul 21, 2026
13 checks passed
@chriswu727
chriswu727 deleted the agent/explicit-loop-state-machine branch July 21, 2026 22:06
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