Execute Proposed Change Sets through API/CLI #9

Closed
opened 2026-06-14 10:21:21 +00:00 by liang · 1 comment
Owner

Parent

Parent PRD: #2

What to build

Provide API or CLI review execution for Proposed Change Sets. The user should be able to approve all, reject all, or approve selected Proposed Changes. Execution should enforce dependencies and write the confirmed domain changes, Matter Events, and audit Events while preserving Proposed Change Sets as one-time audit objects.

Acceptance criteria

  • Review execution supports partial approval and rejection of individual Proposed Changes.
  • Proposed Changes with unmet dependencies are blocked from execution and report the dependency reason.
  • Supported domain operations include create_project_matter, link_communication_to_matter, link_document_to_matter, set_matter_deadline, add_matter_milestone, create_task, update_matter_summary, and set_matter_status.
  • User-initiated direct API/CLI actions can write immediately with Events where the PRD allows direct writes, while Agent-suggested writes require Proposed Change approval.
  • Automated tests verify dependency blocking, one-time audit behavior, Matter Links with Link Rationales, Matter Deadline and Matter Milestone writes, Matter Events, Task creation, and audit Events.

Blocked by

## Parent Parent PRD: #2 ## What to build Provide API or CLI review execution for Proposed Change Sets. The user should be able to approve all, reject all, or approve selected Proposed Changes. Execution should enforce dependencies and write the confirmed domain changes, Matter Events, and audit Events while preserving Proposed Change Sets as one-time audit objects. ## Acceptance criteria - [ ] Review execution supports partial approval and rejection of individual Proposed Changes. - [ ] Proposed Changes with unmet dependencies are blocked from execution and report the dependency reason. - [ ] Supported domain operations include create_project_matter, link_communication_to_matter, link_document_to_matter, set_matter_deadline, add_matter_milestone, create_task, update_matter_summary, and set_matter_status. - [ ] User-initiated direct API/CLI actions can write immediately with Events where the PRD allows direct writes, while Agent-suggested writes require Proposed Change approval. - [ ] Automated tests verify dependency blocking, one-time audit behavior, Matter Links with Link Rationales, Matter Deadline and Matter Milestone writes, Matter Events, Task creation, and audit Events. ## Blocked by - #8
Author
Owner

Implemented issue #9.

Summary:

  • Added services.proposed_change_execution.execute_proposed_change_set.
  • Supports selected approval/rejection, dependency blocking, one-time review status, audit Events, and Matter Events.
  • Executes create Project Matter, link Communication, link Document placeholder, set deadline, add milestone, create Task, update summary, and set status operations.

Verification: .venv/bin/pytest tests/test_proposed_change_execution.py -q -> passed.

Implemented issue #9. Summary: - Added `services.proposed_change_execution.execute_proposed_change_set`. - Supports selected approval/rejection, dependency blocking, one-time review status, audit Events, and Matter Events. - Executes create Project Matter, link Communication, link Document placeholder, set deadline, add milestone, create Task, update summary, and set status operations. Verification: `.venv/bin/pytest tests/test_proposed_change_execution.py -q` -> passed.
liang closed this issue 2026-06-14 10:54:22 +00:00
Sign in to join this conversation.
No labels
ready-for-agent
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
liang/sales-ai#9
No description provided.