Deliver a Framekit issue
Treat delivery as complete only when the requested external state is verified. Do not stop at a plan, local patch, or local green test when the user requested a PR.
Collect live context
Run:
.agents/skills/deliver-issue/scripts/collect-delivery-context.sh OWNER/REPO ISSUE
Read AGENTS.md, the issue body and comments, linked PRs, current acceptance criteria, and relevant repository contracts. Re-check live state even when prior context names an older branch or result.
Plan and isolate
- Translate every acceptance criterion into a test or explicit verification item.
- Inspect existing worktrees and branches before creating anything.
- Use an isolated worktree. Prefer
../codex-ws-ISSUEwhen available and afeat/,fix/, orperf/branch matching the change. - Preserve unrelated edits. Never reset or clean another worktree.
Implement incrementally
Use Red-Green-Refactor:
- Add a focused failing test and confirm the expected failure.
- Implement the smallest behavior that passes it.
- Refactor without changing behavior.
- Validate the focused seam after each step.
When the user asks for a commit at every step, create short reviewable commits. Use update: messages under eight words when requested. A deliberately red checkpoint may bypass a hook only after the focused failure is captured and explained.
Validate and deliver
Continue past local validation only when the user's current request explicitly authorizes pushing and creating or updating a pull request. A request only to edit or implement code does not authorize remote delivery; stop with the validated branch and commits.
- Invoke
$validate-framekit; include native gates when native files changed. - Inspect the complete diff and confirm documentation and MCP contracts remain aligned.
- Push the delivery branch and create a non-draft PR from the repository template.
- Link the issue and map the PR evidence to its acceptance criteria.
- Wait for relevant remote checks, inspect failures, and re-check the PR head SHA and mergeability.
Do not merge or close the issue unless the user explicitly requests it. Report commit hashes, validation evidence, PR URL, current checks, and any headed-native or external-state limitation.