execute-codex-goal
Installation
SKILL.md
Execute Codex Goal
Use the runtime with the existing contract; a host Goal is optional tracking state. Read testing policy for impact selection, execution policy for amendments/commits, and the contract or work schema only when constructing or diagnosing those records.
- Verify contract authorization and reuse existing user permission within scope. Veto, drift, unresolved decisions, unknown legacy declarations, and incomplete transactions block dependent work. Retained legacy HTML must match its stored digest; do not rewrite it to pass validation.
- Use
startto capture the actual branch, source commit, and dirty baseline; resume existing work without resetting that baseline. Create a feature branch only when policy or the work requires it. - Select the first dependency-ready core Item; optional work cannot displace incomplete core behavior.
- For a behavior change, choose the smallest check that distinguishes the intended outcome. Observe RED before the fix when that is cheap and useful, then GREEN; reuse baseline or equivalent evidence for behavior-preserving moves. An Item with no product behavior may have no tests when its Done evidence is sufficient. Test observable outcomes, not trivial wording or implementation shape.
- Inspect changed logic and direct callers with existing diff/symbol searches. Record
changed_logic,affected_behaviors,scope, andreason;scope=noneis valid only when executable or configuration behavior is unaffected, and uses empty logic and behavior lists. Tooling changes that alter behavior still need relevant checks. Select exact relevant checks. Path mappings, Feature commands, and Full triggers are candidates. Unknown impact requires investigation, not automatic Full. Full runs for cross-cutting logic impact or an explicit request. Stop expanding checks after required checks pass unless new evidence changes scope. - Actually run selected checks and record each command, outcome, and relevant runtime/browser/print evidence once in
.work/goals/active/<work-id>/agent/evidence.jsonl. Reuse evidence while the implementation, acceptance criteria, and conditions are unchanged; do not duplicate the same evidence in plans, results, and chat. A check selection, success flag, or Result validator does not execute tests or prove product behavior. - Commit complete functional units with required source, tests, docs, schemas, and generated resources after mapped verification. Keep coupled Items together and preserve the dirty baseline. Use runtime-owned
/.worktree/paths only for independent work whose benefit exceeds coordination cost. - Apply an unambiguous low-risk descriptive delta as
approved_amendment. For a saved design or active work, amend one Item field throughamend --root <repo> --contract <persisted contract>; the runtime owns the atomic contract and active integrity update. Do not editcontract.jsondirectly or overwrite anauthorizeresult. Without--root, the pure transform is scratch-only and must not be used to update saved state. Preserve veto, identity, decisions, acceptance criteria, dependencies, scope, risks, priority, and an existing authorization when the semantic delta remains within its covered permission. For structural or material Item changes, add--intent explicit_approvewhen user permission covers that revision; the flag records existing permission and does not require a repeated question. This amendment API does not replace the whole contract; broader changes use their applicable design and authorization workflow. Never remove risks merely to obtain default authorization.
Load .harness/environment-exceptions.json once per task when present; refresh after relevant environment changes. Honor skip_until_manual_reenable, use its fallback, and retain capability/failure/unverified-scope evidence for result.json and final chat. Environment failure is verification_unavailable or execution_blocked.