Create Contract¶
Guide the user through defining a new contract for a bounded deliverable.
Workflow name: create-contract
Workflow ID: wfd_1534d464b7194b01b47b553dd52a494a
Execution: main
Override not allowed
Steps¶
| # | ID | Name | Type | Depends on |
|---|---|---|---|---|
| 1 | identify-deliverable |
Identify the deliverable | reasoning |
|
| 2 | draft-contract |
Draft the structured contract | reasoning |
identify-deliverable |
| 3 | check-scope |
Check for scope issues | reasoning |
draft-contract |
| 4 | review-existing |
Review against existing contracts | reasoning |
draft-contract |
| 5 | confirm-save |
Confirm and create in SQLite | reasoning |
check-scope, review-existing |
Step instructions¶
identify-deliverable¶
(main, reasoning)
Agentic step. The agent interviews the user to identify the deliverable. Behavioral instructions (questions to ask, interview flow) are in the slash command, not here.
draft-contract¶
(main, reasoning)
Agentic step. The agent drafts a structured payload for the native Contracts service. Include a logical-name alias, typed dates, commitments, constraints, evidence links, and explicit body roles. Do not create or edit a file.
check-scope¶
(main, reasoning)
Agentic step. The agent checks for scope issues before finalizing. Behavioral instructions (scope questions, what to challenge) are in the slash command, not here.
review-existing¶
(main, reasoning)
Agentic step. The agent reviews the new contract against existing active contracts. Behavioral instructions (competition check, branch detection) are in the slash command, not here.
confirm-save¶
(main, reasoning)
Agentic step. The agent presents the complete contract for user confirmation.
After explicit confirmation, call create_contract with the structured JSON
payload and a stable mutation identity. Behavioral instructions (confirmation
requirements and status rules) are in the slash command, not here.