Skip to content

feat(agent): add proposal -> review -> commit workflow for AI edits - #24

Merged
PeterGuy326 merged 1 commit into
mainfrom
qoder/issue-9-proposal-workflow
Aug 7, 2026
Merged

feat(agent): add proposal -> review -> commit workflow for AI edits#24
PeterGuy326 merged 1 commit into
mainfrom
qoder/issue-9-proposal-workflow

Conversation

@PeterGuy326

Copy link
Copy Markdown
Contributor

Summary

  • Implement a proposal state machine: pending_review -> approved/denied/expired -> committed
  • AI agents create proposals without mutating documents; human reviewers approve/deny
  • Commit rechecks document permission and base revision at execution time
  • Expiration, idempotency, and full audit correlation across the workflow lifecycle

Dependencies

Test plan

  • Verify creating a proposal does not mutate the document
  • Verify approval/denial state transitions are enforced
  • Verify stale/conflicting proposals fail safely at commit time
  • Verify denied/expired proposals cannot execute
  • Verify commit is idempotent and produces a version record
  • Verify revoked permission at commit time is caught
  • Run npx vitest run src/__tests__/lib/api-v1-proposals.test.ts

Closes #9

Implement a state machine (pending_review -> approved/denied/expired ->
committed) that ensures AI-suggested changes require human approval before
mutating any document. Rechecks permission and base revision at execution
time, enforces expiration, and records full audit correlation.

Closes #9
@PeterGuy326
PeterGuy326 requested a review from Bindy-lbb as a code owner August 7, 2026 03:35
@PeterGuy326
PeterGuy326 merged commit ff14700 into main Aug 7, 2026
0 of 2 checks passed
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.

feat(agent): add a proposal → review → commit workflow for AI edits

1 participant