3.1 KiB
Contributor review handoff
Follow repository AGENTS.md, bortstack-context, and the actual provider configuration. These steps are a gate sequence, not blanket permission for remote actions.
- Identify the task ID, accepted scope, branch, source worktree, integration branch, and any other active worktrees. Report mismatches before changing Git state.
- Inspect
git status --short, tracked diff, and every untracked path. Exclude secrets, local data, generated test output, and unrelated work. Preserve them in place. Do not usegit add -Awithout a reviewed file list. - Run required tests, lint/build/security checks, and
git diff --check. Inspect the repository testtask interface and refresh its candidate after edits. Record manual-test result or the exact missing environment/confirmation. Required manual testing cannot be inferred from green automated checks. - Update tasks, current state, and handoff with the exact candidate and limitations. Stage only intended files and inspect the staged diff. Commit on the task branch only when authorised by repository policy and the Commander's completion request.
- Check configured remote and provider capabilities. Push the task branch and create/update a PR to the configured integration branch when supported and authorised. Never create a provider account or repository by assumption. Record branch, commit, PR URL, validation, and Captain's pending approval. Set Ready for Review only after successful review submission.
- If validation, staging, commit, push, or PR creation fails, stop the sequence. Preserve worktree, commit, and test resources. Record the exact failed step and recovery command or decision. Never call the task Complete or silently begin another implementation task.
- Captain alone accepts and authorises merge unless repository policy explicitly delegates it. Verify integration before recording Merged; record human acceptance before Closed. Remove only task-owned test containers after authorised confirmation. Clean the task worktree only after both integration and acceptance are recorded.
For local-only Git, provide the committed task branch and exact diff/test commands to Captain. Its status remains Ready to Finalise or Blocked / Suspended according to repository policy until a review handoff is acknowledged. GitHub and Gitea may use different PR commands; discover them from available provider tools and record authentication and failure behavior. A missing provider is not a reason to lose the contribution.
Two-task gate exercise
Use a disposable repository to verify this sequence without touching a contributor project: create accepted tasks A and B; implement A in its own worktree; leave a safe untracked file and verify it appears in status; stage only intended files; commit A; simulate a review submission and record its reference; leave A unmerged; then create B in a different branch/worktree from the integration branch. Check A's worktree and branch remain intact, B does not contain A's commit, and neither task is marked Merged or Closed. If a real PR provider is unavailable, mark that part unverified; a simulated reference is not a PR.