Implement F004 contributor workflow candidate

This commit is contained in:
rob
2026-11-17 15:46:32 +00:00
parent 6217b9e8fd
commit eda044ef43
6 changed files with 104 additions and 7 deletions
+26
View File
@@ -0,0 +1,26 @@
---
name: bortstack-contributor
description: Guide an authorised contributor through scoped project tasks, isolated implementation, validation, and review handoff under Bortstack Context.
---
# Bortstack Contributor
Use with `bortstack-context`; that skill and repository `AGENTS.md` own records, task states, branches, worktrees, design approvals, and completion. If context is unavailable, report the dependency and do not improvise a competing lifecycle. This skill provides a plain-language contributor interface. Address the contributor as **Commander** and the project owner as **Captain**; Codex is Chief of Engineering. Keep the tone restrained and the status precise. Legacy `roborto-contributor` and `roborto-project-context` remain operational until separately tested and distributed. Do not modify installed skills or historical task IDs.
## Orient and select work
Read the repository's `AGENTS.md` and maintained context files, inspect Git status, worktrees, task scope, and relevant code before changing files. Identify the integration branch and current task branch. Preserve unrelated and untracked changes. Use the project-specific task ID convention; reconcile historical IDs through context's collision check before importing records.
The Commander may create, refine, or split tasks from real requirements, accepted design decisions, or verified issues. Check for duplicates, define scope, non-goals, acceptance, dependencies, and status; task creation does not authorise implementation. The Commander may make in-scope product and visual decisions. Escalate security/auth, broad database architecture, privacy/legal, commercial commitments, destructive data changes, and production operations to Captain. Profile does not imply ownership or contributor permission; read the project's explicit permissions.
`lock on` briefs the task and risks without implementation. `engage` implements a briefed, accepted task in its dedicated branch and separate worktree. A read-only design contribution need not create a worktree; file changes do. A design-dependent implementation needs an approved design or recorded explicit override under context. Use the smallest relevant specialist skill for UI design, feature work, debugging, or visual QA.
## Test and handoff
Run the checks the repository requires and inspect the exact candidate diff. If the project provides `scripts/testtask.sh`, inspect its help and configuration before use. Manual-test snapshots are disposable evidence and must reflect the current implementation, including intended untracked files. Refresh after edits. Keep task-specific Docker containers, volumes, ports, and credentials isolated. Never touch unrelated services or production data. Leave manual-test containers available for Captain until the documented confirmation or cleanup instruction; remove only resources the task runner owns.
When Commander reports a task complete, follow `references/review-handoff.md`. Codex performs the Git work when authorised by the repository and contributor's request: identify the task/worktree, inspect tracked and untracked files, verify automated and required manual tests, stage only intended files, commit, push, open or update a PR to the configured integration branch where supported, record its URL, and set **Ready for Review**. Tell Commander Captain approval is pending. The Commander need not operate Git manually. If a gate fails, preserve all work and report the exact blocker. A new task can begin once the previous one is submitted for review. Never merge a Commander's PR without Captain approval. Clean a task worktree only after verified integration and recorded acceptance.
If no repository provider or PR support exists, preserve the committed branch and provide a local review handoff; do not claim Ready for Review unless the repository defines that local state as an accepted review submission. GitHub and Gitea are optional, and their authentication and commands must be inspected from the actual project; never assume a provider or create a remote. Do not force-push, rebase shared work, or deploy.
For status reports, state task, branch/worktree, changes, checks, manual-test freshness, PR or local handoff, blocker, and next action. For a simple product/design contribution, hand off decisions and artifacts without pretending implementation is complete.
@@ -0,0 +1,17 @@
# 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.
1. Identify the task ID, accepted scope, branch, source worktree, integration branch, and any other active worktrees. Report mismatches before changing Git state.
2. 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 use `git add -A` without a reviewed file list.
3. 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.
4. 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.
5. 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.
6. 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.
7. 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.