6.0 KiB
Contributor review and integration handoff
Use bortstack-context/references/task-lifecycle.md for states, evidence and approval gates, and bortstack-context/references/mission-commands.md for conversational commands. Follow repository AGENTS.md and actual provider configuration. This sequence starts automatically when Commander reports mission completion, including MISSION-ID complete or familiar natural language. If the mission is unclear, ask which one before staging or committing. complete review-only stops before integration and closure; complete no-cleanup retains eligible resources. Contributor finalisation is not authority for merge, deployment, destructive recovery or test-resource cleanup.
Submit the completed task
- Identify the active task, approved deliverable type (prototype or application feature), accepted scope, source worktree, task branch, baseline commit, integration target, and any parallel task branches. For an application feature, compare the implementation locations and intended route with the authoritative application identified in the briefing. If ambiguous, resolve it before claiming Implementation Complete or asking Commander to accept the result; preserve all work meanwhile.
- Confirm the required manual test covered the exact current candidate. For an application feature, launch or identify the real development application through its established manual-testing workflow and verify the intended route through actual navigation. Check applicable login, permissions, configured backend data, shared state, persistence, related pages, design fidelity and regressions. Record environment, route, observations and every unverified check. "Everything works" may confirm Commander's observations only when the exact candidate and real application route are clear; it cannot replace Codex's integration check. Refresh the task's manual-test snapshot after edits. A preview or Docker startup alone leaves the application-feature mission incomplete. If the real route or required environment is unavailable, record the blocker and continue safe implementation or preservation work without submitting it as ready for review.
- Inspect staged, unstaged and every untracked path; check conflicts, likely secrets, unexpected files and changes outside task scope. Preserve unrelated files. Never use an unreviewed blanket stage. Explain any needed choice without asking Commander to run Git.
- Run repository-required automated tests, lint/build/security checks as applicable and
git diff --check. Record commands and results. Fix only within scope and stop automated repair after two unsuccessful attempts on the same failure. - Update task, current state and handoff with task ID, branch/worktree, baseline, target, authoritative implementation locations and route, isolated automated results, real-route manual evidence, limitations, implementation commit when known, and integration still pending. For a prototype, label the standalone deliverable and its separate acceptance. Stage only intended files, inspect staged diff, and commit to the task branch. Verify the commit and remaining working-tree status. A dirty worktree may contain preserved unrelated work; record it explicitly.
- Inspect the configured remote and provider capability. Push the task branch and verify the remote commit. Create or update a PR against the designated integration branch where supported; verify its URL, source/target and status. Record branch, commit, PR reference, test evidence and Captain approval pending. Set Ready for Review / Integration only after verified submission and required application-delivery evidence. A repository-approved local review handoff may be used without a provider; otherwise retain the truthful pre-review state. Never invent a PR or create provider settings by assumption. A commit or PR does not turn a preview into an application feature.
- Tell Commander in ordinary language that the work is saved and the mission is awaiting Captain review, and that another independent mission may begin. If any step fails, say what failed, whether the work is committed or only preserved in the worktree, and the next safe action. Do not claim review submission from a local commit or integration from a PR. Preserve branch, worktree and test resources.
After Captain approval
Captain approval is required before merging a contributor PR. Identify the current designated integration branch and baseline, check task-ID collisions and dependencies, and integrate with the repository's merge strategy. Resolve conflicts without discarding others' work. Run combined-application tests and exercise affected real routes, navigation, login/permissions, APIs, persistent data, shared state and related workflows where applicable; record the integration commit and separate post-merge results. A conflict-free merge is not functional completion. Mark Integrated only when verification succeeds. If combined checks fail or cannot run, preserve the branch and merge history or candidate, record affected files and a reconciliation plan, and leave the task open. Mark Verified / Closed only after required acceptance and human confirmation. Never force-push, destructively reset, or remove an uncommitted/unintegrated worktree without explicit Captain approval. Keep task-created Docker test containers until Commander requests cleanup.
Local-only and platform notes
GitHub and Gitea are optional. Inspect the project's provider tooling and credentials; do not assume gh, a remote or PR support. For local-only Git, provide Captain the committed branch and exact review instructions, then wait for an acknowledged local review handoff before Ready for Review / Integration. Use Git argument forms that handle paths with spaces. Codex performs Git operations on both Linux and Windows; Commander needs no shell commands. On Windows, inspect the actual Codex CLI, Git, provider and Docker setup and run an end-to-end finalisation test before claiming production readiness. If commands must be shown, provide PowerShell and Bash variants.