3.9 KiB
Contributor lifecycle acceptance exercises
Use only disposable repositories and task-owned test resources. python3 -m unittest tests/test_contributor_workflow.py tests/test_context.py exercises the local Git and identifier fixtures on Linux. These fixtures validate preservation and ordering; they do not simulate a provider PR, a human approval, or Windows. For every exercise, record the task state and evidence fields from skills/bortstack-context/references/task-lifecycle.md.
| Scenario | Repeatable procedure and expected result | Current evidence |
|---|---|---|
| A — Sequential tasks | In a disposable repo, complete Task A in its worktree, inspect/stage intended files, commit and submit it for review, then start independent Task B from the integration baseline. A remains recoverable and unmerged; B excludes A's commit. | Automated local fixture; review marker only, not a real PR. |
| B — Combined failure | Pass Task A's isolated checks, approve and integrate it in a disposable target, then make a combined test fail. Record failure and keep A open; do not mark Integrated or Closed. | Automated local fixture checks the failure and open record. Real UI/API checks require an application. |
| C — Parallel development | Create two independent worktrees from the same appropriate baseline, record both targets/dependencies, and verify neither branch contains the other's commit. | Automated local fixture. |
| D — Failed push/PR | Commit Task A, use a deliberately failing disposable remote or unavailable provider, and run the submission gate. Verify the local commit/worktree survive, state remains pre-review, and Commander receives a plain-language saved-work explanation. | Automated failed-push fixture verifies preservation; provider dialogue pending live exercise. |
| E — Docker testing | Start a uniquely named disposable task container, complete and submit the task, verify the container remains, then have Commander explicitly request cleanup and remove only that container. | Documented procedure; live Docker exercise with JJ pending. |
| F — Legacy tasks | Inventory TASK-001 and FORGE-F001 beside a new prefixed ID. Verify stable IDs and no automatic rewrite. |
tests/test_context.py fixture. |
| G — Task-ID conflict | Put the same new ID in two task registers; run python3 scripts/context_audit.py first.md second.md. Expect collision locations and nonzero exit before integration. Captain authorises any renumbering; preview and update all references, then rerun. |
tests/test_context.py fixture detects collision; authorised renumbering is a documented manual procedure. |
| H — Windows | On JJ's Windows machine, use Codex CLI, Git, and Docker with a disposable repo under a path containing spaces. Complete and submit a task through conversation, check remote branch/PR, leave the test container until requested cleanup, and verify another task can start. Use PowerShell for any displayed shell command; avoid Bash assumptions and administrator privileges. | Mandatory external acceptance gate, unverified here. |
| I — Nontechnical completion | Ask Commander to say "everything works" after exact-candidate manual testing. Observe Codex identify the task, inspect files, test, commit, push, submit review, and report saved/submitted status without asking Commander to run Git. Repeat with a failed submission and verify truthful ordinary-language recovery message. | Skill instructions and local Git fixtures; JJ's conversational end-to-end exercise pending. |
After Captain approval, repeat a successful integration exercise against the latest designated baseline, including affected screens, navigation, routes, APIs and dependencies as applicable. A Git merge is only one step. Record combined checks separately from isolated checks. Do not mark F004 production-ready for JJ until H and I pass on his environment and real provider submission is verified where configured.