Run a code-change goal
A code-change goal implements or modifies production code. It is goal_type: IMPLEMENTATION_PHASE (or similar) and is dispatched under BUILDER role.
When to use
- Adding a new module or feature.
- Modifying an existing module.
- Bounded refactors that don't cross frozen surfaces.
Steps
- Create a new branch.
- Copy an existing IMP-style contract (
goals/ASF50_IMP_11_IMPLEMENTATION_001/GOAL_RECORD.yaml). - Update all required fields.
- Commit the goal contract.
- Run
goal-run.ps1 -GoalId <NEW_GOAL_ID> -RuntimeRoot … -DryRun. - Inspect the JSON.
- Implement the bounded scope. Stay inside
allowed_paths. - Run the test suite (
pytest). - Commit the implementation.
- Push the branch.
- Open the PR.
- STOP at the GitHub review boundary.
Special considerations
- A code-change goal may require
INDEPENDENT_AUDIT_HIGH. Two-root provenance is required: dispatch worktree + audit worktree pinned ataudit_subject_sha. - The audit worktree must be created before the dispatch.
- The orchestrator will detect any drift between the two and refuse to dispatch the auditor.