FORGE-F015 Add mission commands to context and contributor skills

This commit is contained in:
rob
2026-11-19 15:10:12 +00:00
parent 9dc4420373
commit 835a164418
9 changed files with 140 additions and 7 deletions
@@ -0,0 +1,111 @@
# Mission commands
This is the conversational interface to the existing task lifecycle in
`task-lifecycle.md`. Interpret commands with Codex's normal language
capabilities; no CLI or parser is required. **Mission** is the user-facing name
for a development task. Say mission ID, mission roster (`TASKS.md`), active
mission, mission briefing, mission worktree, mission awaiting Captain review,
and mission accomplished when the task is Verified / Closed. Preserve technical
terms in Git commands, filenames, repository records, API contracts, and
diagnostics. Never rename historical IDs, branches, `TASKS.md`, or task records.
## Selection and help
The form is `MISSION-ID action [options]`. Accept `set course`, `lock on`,
`engage`, `status`, `help`, and `complete`; `set course` and `lock on` are exact
aliases. Accept `set course direct`, `set course worktree`, and `set course auto`.
The default mode is auto. Accept `complete no-cleanup` and `complete review-only`.
Continue to understand existing natural language such as “lock on to PI-042,”
“engage task 042,” “finished testing,” and “everything works.” Interpret the
intent and role before acting; do not require exact command syntax.
- `missions`: read the mission roster and current repository evidence; show
available, active, blocked, and awaiting-Captain-review missions, with IDs
and the next action. Do not label an unsubmitted branch as awaiting review.
- `mission status`: show the selected mission, mode, actual lifecycle state,
branch/worktree or direct checkout, last validation, blocker, and next action.
If selection is unclear, ask which mission; do not select one by recency.
- `MISSION-ID status`: inspect that mission's current record and Git/provider
evidence; do not infer success from a status label alone.
- `MISSION-ID help`: explain the commands for that mission, permitted modes,
current state, and which role can submit, integrate, and close it.
Record selection and working mode in the existing task and handoff records,
not a second state store. Where the repository uses another context format,
record the same facts in its maintained equivalent. A selected mission is not
automatically In Progress.
## Set course / lock on
Find exactly one mission ID, including historical IDs. Read objective, scope,
non-goals, acceptance criteria, dependencies, decisions and blockers; inspect
the current branch, worktrees, uncommitted files, prior mission handoffs and
repository permissions. If the ID or authority is ambiguous, ask rather than
altering work. Select and record the authorised mode, then give a concise
briefing and the next command, `MISSION-ID engage`. Do not implement or create
a task worktree merely from selection.
`direct` uses the current authorised development/integration branch. Permit it
only when repository policy and the person's permissions allow it, the checkout
is suitable, and concurrent/unrelated work is protected. `worktree` means a
dedicated task branch and separate worktree under repository policy; reuse an
existing valid one and never check a branch out twice. `auto` applies repository
policy first, then Captain direction, contributor permissions, complexity,
concurrency, worktree state and file conflicts. Prefer direct for genuinely
small, low-risk Captain-authorised work where allowed; prefer isolation when
concurrent work, integration risk or uncertainty exists. Explicit direct never
overrides mandatory isolation or protected-branch rules. For Commander, select
the repository's safe contributor workflow, normally worktree, without making
them choose a technical mode. Explain a disallowed mode in plain language.
## Engage
`MISSION-ID engage` begins or resumes an authorised, briefed mission. Confirm
the selected ID and mode, accepted scope, required decisions/dependencies,
repository status, other unfinished missions, and the intended branch/worktree
before editing. Create or reuse only the worktree authorised by the selected
mode. Follow project instructions and approved design, preserve unrelated work,
validate the candidate, and keep state and handoff current. Isolated checks do
not establish integrated success. A direct request to implement without the
exact phrase can also authorise work under repository policy; preserve the same
preflight and gates.
## Complete
`MISSION-ID complete` starts finalisation for that exact mission. It is a
person's readiness signal, not a shortcut to Verified / Closed. Identify the
worktree and baseline; inspect staged, unstaged, untracked and temporary files;
check scope, likely secrets, acceptance criteria, automated and manual testing;
stage only intended changes; commit where authorised; record commits and
evidence; then apply the role's review or integration authority. Stop on a
failed gate, preserve recoverable work, and report the actual state. Never
claim mission accomplished solely because Git succeeded.
For a Captain-issued complete, the exact command can authorise routine
finalisation and integration into the designated development/integration branch
when the repository permits it and source, target, scope and checks are clear.
Inspect branch protection and unrelated changes first. Merge with the
repository's strategy, preserve history, run combined tests and affected
workflow checks, and record the integration commit. If the target is protected,
the source/target is ambiguous, a required gate fails, or repository policy
requires a separate approval, stop before that operation and present the
concrete candidate. A completed direct-branch change still needs combined
verification and human acceptance. Never infer permission to push, deploy,
force-push, reset, or bypass protection from `complete`.
For Commander-issued complete, follow `bortstack-contributor/references/review-handoff.md`:
verify the exact candidate, commit/push/submit review where authorised, and
report **mission awaiting Captain review** only after submission is verified.
It never authorises a contributor merge, deployment, or closure. Existing
natural completion language starts the same sequence.
`complete review-only` prepares and verifies the review handoff, stopping
before merge and closure even for Captain. `complete no-cleanup` performs the
otherwise authorised finalisation but retains eligible mission worktrees,
containers and temporary resources. Without that option, cleanup is still
limited to resources explicitly owned by the mission and eligible under
repository policy after verified integration and acceptance. Never delete a
dirty/unintegrated worktree, persistent data, or unrelated resources. Retain
contributor-created manual-test containers until Commander explicitly asks for
their removal, including after mission completion. Record what was retained or
removed and the actual final state.
@@ -2,6 +2,10 @@
This is the canonical lifecycle for `bortstack-context`. Repository rules may use different labels, but must preserve these gates. Contributor, design, and new-project skills refer here instead of defining competing states. The task record is authoritative; Git and provider state are evidence to inspect, not a substitute for it.
`mission-commands.md` is the user-facing command interface to these states.
It changes terminology and conversation flow without changing IDs, files,
record formats, state gates or Git authority.
## States and evidence
| State | Entry evidence | Permitted next state |