@sumrco/cli 0.3.5 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +137 -2
- package/ai/modules/kontract/resources/api-generation-standards.rf.md +2 -0
- package/ai/modules/kontract/resources/authoring/configuration.rf.md +13 -0
- package/ai/modules/kontract/resources/authoring/design-profile/api-styles.rf.md +11 -0
- package/ai/modules/kontract/resources/authoring/design-profile/async-styles.rf.md +53 -0
- package/ai/modules/kontract/resources/authoring/overview.md +3 -0
- package/ai/modules/kontract/resources/authoring/schema-reuse.rf.md +3 -0
- package/ai/modules/kontract/resources/authoring/spec-layout.rf.md +12 -4
- package/ai/modules/kontract/resources/authoring/team-members/spec-author.tm.md +3 -0
- package/ai/modules/kontract/resources/authoring/workflows/{spec-change.wf.md → spec-change.cmd.md} +5 -3
- package/ai/modules/kontract/resources/generated-output.rf.md +99 -4
- package/ai/modules/kontract/resources/overview.md +3 -0
- package/ai/modules/mission/resources/flow-actions.rf.md +28 -3
- package/ai/modules/mission/resources/flow-config.rf.md +2 -2
- package/ai/modules/mission/resources/flow-safety-boundaries.rf.md +7 -0
- package/ai/modules/mission/resources/overview.md +69 -11
- package/ai/modules/mission/resources/stage-closeout.rf.md +15 -5
- package/ai/modules/mission/resources/stage-delivery.rf.md +19 -6
- package/ai/modules/mission/resources/stage-intake.rf.md +58 -8
- package/ai/modules/mission/resources/stage-planning.rf.md +17 -3
- package/ai/modules/mission/resources/stage-pull-request.rf.md +5 -2
- package/ai/modules/mission/resources/stage-quality.rf.md +25 -4
- package/ai/modules/mission/resources/team-members/delivery-lead.tm.md +5 -3
- package/ai/modules/mission/resources/team-members/implementer.tm.md +10 -3
- package/ai/modules/mission/resources/team-members/planner.tm.md +25 -15
- package/ai/modules/mission/resources/team-members/pr-writer.tm.md +4 -3
- package/ai/modules/mission/resources/team-members/product-owner.tm.md +8 -2
- package/ai/modules/mission/resources/team-members/quality-lead.tm.md +16 -3
- package/ai/modules/mission/resources/workflows/{daily-triage.wf.md → daily-triage.cmd.md} +5 -4
- package/ai/modules/mission/resources/workflows/{full-delivery.wf.md → full-delivery.cmd.md} +3 -3
- package/ai/modules/mission/resources/workflows/{mission-cycle.wf.md → mission-cycle.cmd.md} +9 -5
- package/ai/modules/mission/resources/workflows/{planning-only.wf.md → planning-only.cmd.md} +5 -4
- package/ai/modules/mission/resources/workflows/{pr-assist.wf.md → pr-assist.cmd.md} +5 -4
- package/ai/modules/mission/resources/workflows/{standard-delivery.wf.md → standard-delivery.cmd.md} +3 -3
- package/ai/modules/mission/sumr.module.yaml +20 -2
- package/ai/modules/playbook/resources/authoring/content-structure.rf.md +16 -1
- package/ai/modules/playbook/resources/authoring/extraction.rf.md +4 -2
- package/ai/modules/playbook/resources/authoring/markdown.rf.md +20 -0
- package/ai/modules/playbook/resources/authoring/overview.md +31 -1
- package/ai/modules/playbook/resources/authoring/patterns.rf.md +99 -0
- package/ai/modules/playbook/sumr.module.yaml +3 -0
- package/index.js +565 -397
- package/package.json +9 -9
|
@@ -14,9 +14,9 @@ Mission flow is repo configuration in `sumr.yaml`; runtime state stays in `.sumr
|
|
|
14
14
|
```yaml
|
|
15
15
|
mission:
|
|
16
16
|
tracker:
|
|
17
|
-
provider:
|
|
17
|
+
provider: {{MISSION_TRACKER_PROVIDER}}
|
|
18
18
|
git:
|
|
19
|
-
provider:
|
|
19
|
+
provider: {{MISSION_GIT_PROVIDER}}
|
|
20
20
|
prMode: ask
|
|
21
21
|
flow:
|
|
22
22
|
preset: standard-delivery
|
|
@@ -21,3 +21,10 @@ External writes include:
|
|
|
21
21
|
- dispatching CI/deployments
|
|
22
22
|
|
|
23
23
|
Default to preview-only. Use `sumr mission pr <key> --preview` before `--create-draft` or `--create`.
|
|
24
|
+
|
|
25
|
+
PR mode `preview` forbids remote creation. Remote creation also requires a reviewed placeholder-free
|
|
26
|
+
preview accepted with `--accept-preview`, an unchanged preview hash, accepted required evidence, a
|
|
27
|
+
`Clean` quality gate when configured, and the recorded Mission branch.
|
|
28
|
+
|
|
29
|
+
Cleanup is preview-only by default. Delete closed cache only with both `--delete` and `--yes`; never
|
|
30
|
+
delete an open Mission.
|
|
@@ -13,6 +13,15 @@ Use Mission when AI-assisted work needs durable state across sessions, agents, t
|
|
|
13
13
|
|
|
14
14
|
{{MISSION_IDENTIFIER_GUIDANCE}}
|
|
15
15
|
|
|
16
|
+
## Configured Providers
|
|
17
|
+
|
|
18
|
+
- Work provider: `{{MISSION_TRACKER_PROVIDER_LABEL}}` (`{{MISSION_TRACKER_PROVIDER}}`)
|
|
19
|
+
- Repository provider: `{{MISSION_GIT_PROVIDER_LABEL}}` (`{{MISSION_GIT_PROVIDER}}`)
|
|
20
|
+
|
|
21
|
+
Run `sumr mission providers --json` before assuming that either configured provider supports a
|
|
22
|
+
capability. The runtime catalogs, not product names or remembered behavior, are the source of
|
|
23
|
+
truth.
|
|
24
|
+
|
|
16
25
|
## Configured Mission Flow
|
|
17
26
|
|
|
18
27
|
This repo uses `{{MISSION_FLOW_PRESET}}`.
|
|
@@ -31,18 +40,42 @@ PR mode: `{{MISSION_PR_MODE}}`
|
|
|
31
40
|
|
|
32
41
|
```bash
|
|
33
42
|
sumr mission init
|
|
34
|
-
sumr mission
|
|
35
|
-
sumr mission
|
|
36
|
-
sumr mission
|
|
37
|
-
sumr mission
|
|
38
|
-
sumr mission
|
|
39
|
-
sumr mission
|
|
40
|
-
sumr mission
|
|
41
|
-
sumr mission
|
|
42
|
-
sumr mission
|
|
43
|
-
sumr mission
|
|
43
|
+
sumr mission providers --json
|
|
44
|
+
sumr mission start {{MISSION_ISSUE_KEY_EXAMPLE}} --title "Fix checkout flow"
|
|
45
|
+
sumr mission sync {{MISSION_ISSUE_KEY_EXAMPLE}}
|
|
46
|
+
sumr mission status {{MISSION_ISSUE_KEY_EXAMPLE}}
|
|
47
|
+
sumr mission plan {{MISSION_ISSUE_KEY_EXAMPLE}} --from plan.md
|
|
48
|
+
sumr mission approve {{MISSION_ISSUE_KEY_EXAMPLE}}
|
|
49
|
+
sumr mission claim {{MISSION_ISSUE_KEY_EXAMPLE}} --agent <actor> --workspace-owner <owner> --confirm-branch
|
|
50
|
+
sumr mission task list {{MISSION_ISSUE_KEY_EXAMPLE}}
|
|
51
|
+
sumr mission task start {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --actor <actor>
|
|
52
|
+
sumr mission task submit {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --from task-1.md --actor <actor>
|
|
53
|
+
sumr mission verify record {{MISSION_ISSUE_KEY_EXAMPLE}} --from task-receipt.json
|
|
54
|
+
sumr mission review {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --from spec-review.json
|
|
55
|
+
sumr mission review {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --from quality-review.json
|
|
56
|
+
sumr mission finding resolve {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 <finding-id> --resolution fixed --reason "Fixed and ready for re-review" --actor <actor>
|
|
57
|
+
sumr mission task complete {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --actor <actor>
|
|
58
|
+
sumr mission report {{MISSION_ISSUE_KEY_EXAMPLE}} --type validation --from validation.md --accept
|
|
59
|
+
sumr mission report {{MISSION_ISSUE_KEY_EXAMPLE}} --type quality --from quality.md --accept
|
|
60
|
+
sumr mission verify record {{MISSION_ISSUE_KEY_EXAMPLE}} --from mission-receipt.json
|
|
61
|
+
sumr mission pr {{MISSION_ISSUE_KEY_EXAMPLE}} --preview
|
|
62
|
+
sumr mission pr {{MISSION_ISSUE_KEY_EXAMPLE}} --accept-preview
|
|
63
|
+
sumr mission finish {{MISSION_ISSUE_KEY_EXAMPLE}} --from disposition.json
|
|
64
|
+
sumr mission close {{MISSION_ISSUE_KEY_EXAMPLE}}
|
|
44
65
|
```
|
|
45
66
|
|
|
67
|
+
## Facts and Methodology
|
|
68
|
+
|
|
69
|
+
Mission records facts: accepted-plan tasks, claims, blockers, implementation submissions,
|
|
70
|
+
verification receipts, reviews, finding resolutions, workspace provenance, and finish disposition.
|
|
71
|
+
Playbook defines methodology: how to research and size work, which checks to run, which reviewers to
|
|
72
|
+
dispatch, and whether to use TDD, debugging protocols, or worktrees.
|
|
73
|
+
|
|
74
|
+
Mission ledger, evidence-import, and finish commands never push, create or remove worktrees, delete
|
|
75
|
+
branches, merge, or mutate a work provider. The explicit bounded push exception is
|
|
76
|
+
`pr --create-draft` and `pr --create`: after every PR safety gate passes, these commands ask for
|
|
77
|
+
human approval before pushing and creating the remote PR.
|
|
78
|
+
|
|
46
79
|
## Operating Rules
|
|
47
80
|
|
|
48
81
|
- Check `sumr mission status <issueKey>` before editing for existing work.
|
|
@@ -52,10 +85,35 @@ sumr mission close GH-123
|
|
|
52
85
|
rely on the issue description alone.
|
|
53
86
|
- Stop on `human` and `ask` gates until the user or repo automation policy explicitly approves continuing.
|
|
54
87
|
- Treat `pr.create`, issue comments, issue transitions, merges, deploys, and other external mutations as human-approved actions only.
|
|
55
|
-
- Store durable plans,
|
|
88
|
+
- Store durable plans, task facts, receipts, reviews, validation, PR previews, blockers, and
|
|
89
|
+
handoffs in Mission state.
|
|
90
|
+
- Treat generated plan/report templates as drafts. Only substantive accepted evidence satisfies a flow step.
|
|
91
|
+
- Write accepted plans with contiguous top-level headings in the exact form
|
|
92
|
+
`### Task N: Title`, starting at task 1. Approval creates the ordered execution ledger.
|
|
93
|
+
- Use `task submit` for task implementation evidence and structured `review` imports for task
|
|
94
|
+
review. These task facts are the only sources for the execution and review task gates.
|
|
95
|
+
- Resolve critical or important findings with `finding resolve`, then import a later fresh passing
|
|
96
|
+
review of the same kind before completing the task.
|
|
97
|
+
- Treat verification receipts as attestations from the responsible tool or human. Mission validates
|
|
98
|
+
and records them but never executes the recorded command.
|
|
99
|
+
- Check `sumr mission providers --json` before synchronization. When the configured work provider
|
|
100
|
+
reports `issueContext: true`, run `mission sync` and use its validated context. Otherwise, gather
|
|
101
|
+
the complete work item and record it with `mission sync --from <file>` before planning; do not
|
|
102
|
+
imply that remote context was fetched.
|
|
103
|
+
- Never combine plan creation with approval. Stop after the draft and wait for the separate
|
|
104
|
+
`mission approve` action at a human gate.
|
|
105
|
+
- At an `ask` branch gate, confirm the selected branch before passing `--confirm-branch` to claim.
|
|
106
|
+
- Set `--workspace-owner` explicitly to `user`, `mission`, `platform`, or `external`; Mission never
|
|
107
|
+
infers ownership from the checkout path.
|
|
108
|
+
- Edit the PR preview, remove placeholders/local paths, then record review with `--accept-preview`.
|
|
109
|
+
- Use `mission reopen --reason ...` for QA rejection; it invalidates stale validation and quality.
|
|
110
|
+
- Treat `mission clean` as preview-only unless the user explicitly supplies `--delete --yes`.
|
|
56
111
|
- Worktrees are optional. The default implementation path is the current checkout.
|
|
57
112
|
- If a worktree is used, record branch, target branch, changed files, conflicts, and merge-back status before closing.
|
|
58
113
|
- Do not close a mission while the only copy of the work is hidden in a worktree.
|
|
114
|
+
- Record `finish` explicitly. `handoff_required` is nonterminal; delivered work requires
|
|
115
|
+
`pr_created`, `merged`, or `branch_kept`, while `abandoned` requires an actor and reason.
|
|
116
|
+
- `mission close` has no force bypass.
|
|
59
117
|
- Do not invent local `status.json`, `feature_list.json`, `thoughts/`, or duplicate task-state folders.
|
|
60
118
|
|
|
61
119
|
## Worktree Merge-Back Contract
|
|
@@ -12,10 +12,20 @@ order: 90
|
|
|
12
12
|
Use blockers and handoffs instead of ambiguous partial state:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
sumr mission block
|
|
16
|
-
sumr mission report
|
|
17
|
-
sumr mission
|
|
18
|
-
sumr mission
|
|
15
|
+
sumr mission block {{MISSION_ISSUE_KEY_EXAMPLE}} --reason "Waiting for API contract approval"
|
|
16
|
+
sumr mission report {{MISSION_ISSUE_KEY_EXAMPLE}} --type handoff --from handoff.md --accept
|
|
17
|
+
sumr mission verify record {{MISSION_ISSUE_KEY_EXAMPLE}} --from mission-receipt.json
|
|
18
|
+
sumr mission finish {{MISSION_ISSUE_KEY_EXAMPLE}} --from disposition.json
|
|
19
|
+
sumr mission close {{MISSION_ISSUE_KEY_EXAMPLE}}
|
|
20
|
+
sumr mission clean
|
|
21
|
+
sumr mission clean --older-than 30 --delete --yes
|
|
19
22
|
```
|
|
20
23
|
|
|
21
|
-
Close only after
|
|
24
|
+
Close delivered work only after every accepted-plan task is done with current gates, substantive
|
|
25
|
+
validation is accepted, quality is accepted as `Clean`, exact-HEAD Mission verification passes, and
|
|
26
|
+
a terminal finish disposition is recorded. Abandonment is the explicit exception; handoff remains
|
|
27
|
+
nonterminal. `pr_created`, `merged`, and `branch_kept` are delivered terminal dispositions.
|
|
28
|
+
`abandoned` is terminal only with an actor and reason. Recording any disposition is local evidence;
|
|
29
|
+
it does not create a PR, merge, push, change branches, or remove a workspace. Close has no force
|
|
30
|
+
bypass.
|
|
31
|
+
Cleanup previews eligible closed missions by default and deletes only with `--delete --yes`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: stage-delivery
|
|
3
3
|
title: Mission Delivery Stage
|
|
4
|
-
description: "Branch checks, work claiming,
|
|
4
|
+
description: "Branch checks, work claiming, task execution facts, worktree discipline, and merge-back evidence."
|
|
5
5
|
label: Delivery
|
|
6
6
|
when: Claiming work, implementing approved plans, using worktrees, or recording implementation evidence
|
|
7
7
|
order: 60
|
|
@@ -12,21 +12,34 @@ order: 60
|
|
|
12
12
|
Before editing:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
sumr mission status
|
|
16
|
-
sumr mission claim
|
|
15
|
+
sumr mission status {{MISSION_ISSUE_KEY_EXAMPLE}}
|
|
16
|
+
sumr mission claim {{MISSION_ISSUE_KEY_EXAMPLE}} --agent <actor> --workspace-owner <owner> --confirm-branch
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
`sumr mission status` is the branch authority for an existing Mission. If it already records a Mission branch or claim branch, switch to that branch before editing or explicitly ask whether to reclaim the Mission on a different branch. Do not create a second issue branch silently. If the recorded branch contains unrelated work, stop and propose cleanup, splitting, or intentional reclaiming before implementation.
|
|
20
20
|
|
|
21
|
+
Pass `--confirm-branch` only after the configured `ask` or `human` branch gate is explicitly resolved.
|
|
22
|
+
Set `--workspace-owner` explicitly to `user`, `mission`, `platform`, or `external`; a path or Git
|
|
23
|
+
worktree shape never proves ownership.
|
|
24
|
+
|
|
21
25
|
Use the current checkout by default for small single-agent work. Ask before creating a worktree for parallel, risky, or long-running work.
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
Work through the accepted-plan ledger one task at a time:
|
|
24
28
|
|
|
25
29
|
```bash
|
|
26
|
-
sumr mission
|
|
30
|
+
sumr mission task list {{MISSION_ISSUE_KEY_EXAMPLE}}
|
|
31
|
+
sumr mission task start {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --actor <actor>
|
|
32
|
+
sumr mission task submit {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --from task-1.md --actor <actor>
|
|
27
33
|
```
|
|
28
34
|
|
|
29
|
-
|
|
35
|
+
Only one task may be active. `task block` records a classified reason and `task unblock` resumes the
|
|
36
|
+
recorded phase. Submission requires the recorded workspace, clean Git state, current full SHA, and
|
|
37
|
+
a bounded implementation artifact; it moves the task to review. Task completion happens only after
|
|
38
|
+
the review and verification gates described in the quality stage.
|
|
39
|
+
|
|
40
|
+
If a worktree was used, record path, branch, target branch, changed files, conflicts, and merge-back
|
|
41
|
+
status. Workspace provenance is protective evidence, not permission for Mission to switch branches,
|
|
42
|
+
delete files, remove a worktree, merge, or push.
|
|
30
43
|
|
|
31
44
|
## Worktree Merge-Back Contract
|
|
32
45
|
|
|
@@ -3,7 +3,7 @@ name: stage-intake
|
|
|
3
3
|
title: Mission Intake Stage
|
|
4
4
|
description: "Issue normalization, tracker source detection, and initial Mission state creation."
|
|
5
5
|
label: Intake
|
|
6
|
-
when: Starting a mission from a
|
|
6
|
+
when: Starting a mission from a configured work provider or a manually supplied work item
|
|
7
7
|
order: 40
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -11,9 +11,10 @@ order: 40
|
|
|
11
11
|
|
|
12
12
|
Normalize user language into a Mission key before planning:
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
- `
|
|
16
|
-
-
|
|
14
|
+
- Configured work provider: `{{MISSION_TRACKER_PROVIDER_LABEL}}` (`{{MISSION_TRACKER_PROVIDER}}`).
|
|
15
|
+
- `issue 4501` uses the configured work provider when one exists.
|
|
16
|
+
- `{{MISSION_ISSUE_KEY_EXAMPLE}}` shows the configured issue-key format.
|
|
17
|
+
- When no work provider is configured, ask which system owns the work rather than guessing.
|
|
17
18
|
|
|
18
19
|
Create or resume state with `sumr mission start`, then check `sumr mission status`.
|
|
19
20
|
|
|
@@ -22,18 +23,67 @@ Create or resume state with `sumr mission start`, then check `sumr mission statu
|
|
|
22
23
|
For tracker-backed work, `issue.sync` means reading the complete work item before
|
|
23
24
|
planning or delivery:
|
|
24
25
|
|
|
25
|
-
- Title,
|
|
26
|
+
- Title, description, workflow status, and available project/cycle/team context.
|
|
26
27
|
- Full description/body, acceptance criteria, checklists, todos, and linked docs.
|
|
27
28
|
- All available comments or discussion threads, especially recent decisions,
|
|
28
29
|
reported errors, blockers, reproduction notes, and scope changes.
|
|
29
30
|
- Attachments and embedded media, including screenshots, diagrams, and images in
|
|
30
31
|
the description or comments.
|
|
31
32
|
|
|
33
|
+
Run `sumr mission providers --json` before choosing the synchronization path. When the configured
|
|
34
|
+
work provider reports `issueContext: true`, use its validated context. When that capability is
|
|
35
|
+
false, gather the complete work item and record it with
|
|
36
|
+
`sumr mission sync <issue-key> --from <file>`. Check the `comments`, `attachments`,
|
|
37
|
+
`workflowState`, and `projectContext` capability flags separately and record unavailable evidence
|
|
38
|
+
as a context gap rather than implying that synchronization was complete.
|
|
39
|
+
|
|
32
40
|
When images or screenshots may affect implementation, inspect the actual image,
|
|
33
|
-
not just the filename or alt text.
|
|
34
|
-
|
|
35
|
-
available.
|
|
41
|
+
not just the filename or alt text. Extract — do not summarize — the visual
|
|
42
|
+
evidence, and keep the source URL, attachment name, or comment reference.
|
|
36
43
|
|
|
37
44
|
If permissions, tooling, or network access prevent reading comments or images,
|
|
38
45
|
record that as a context gap in the plan or handoff instead of silently assuming
|
|
39
46
|
the issue body is complete.
|
|
47
|
+
|
|
48
|
+
## Decompose Criteria, Do Not Summarize
|
|
49
|
+
|
|
50
|
+
Summarizing loses the requirement. For every work item — and especially for
|
|
51
|
+
visual, journey, or "presentation/consistency" issues — turn what you read into
|
|
52
|
+
a discrete, verifiable acceptance matrix, one row per surface or attachment. A
|
|
53
|
+
surface is any place a user perceives output: a screen, page, dialog, or step;
|
|
54
|
+
a CLI output; an API response; a document, export, or notification.
|
|
55
|
+
|
|
56
|
+
| Surface / attachment | Current (verbatim) | Expected (verbatim) | Type | Source | Check |
|
|
57
|
+
|
|
58
|
+
Rules:
|
|
59
|
+
|
|
60
|
+
- Quote the issue's "Current" and "Expected" verbatim. Never collapse a
|
|
61
|
+
multi-part expected block into a single value: if the expected outcome lists
|
|
62
|
+
several elements — for example multiple rows in a table, several fields in a
|
|
63
|
+
response, or a set of labels and their values — that is several criteria, not
|
|
64
|
+
one.
|
|
65
|
+
- Classify every criterion as **VALUE** (a number, amount, or computed result is
|
|
66
|
+
correct), **DISPLAY** (a specific element — a line, label, field, column, row,
|
|
67
|
+
state, icon, or region — is present on that surface), or **COPY** (specific
|
|
68
|
+
wording or status is shown). A correct value does not satisfy a DISPLAY
|
|
69
|
+
criterion.
|
|
70
|
+
- Trace to source: cite the exact attachment, comment, or line that justifies
|
|
71
|
+
each criterion. Never invent a criterion; if something is unspecified, record
|
|
72
|
+
it as an open question, not an assumption.
|
|
73
|
+
|
|
74
|
+
## Reading UI Screenshots and Mockups
|
|
75
|
+
|
|
76
|
+
Treat each UI screenshot as a spec, not an illustration. For every relevant
|
|
77
|
+
image, extract structurally:
|
|
78
|
+
|
|
79
|
+
- the surface it shows (which screen, dialog, or step);
|
|
80
|
+
- every visible `label -> value` line, read literally, without paraphrasing;
|
|
81
|
+
- the specific delta the issue is calling out on that surface;
|
|
82
|
+
- the target state — a referenced prototype or mockup image is the expected
|
|
83
|
+
spec; decompose it into an element checklist and diff it against the current
|
|
84
|
+
screenshot rather than describing it in prose.
|
|
85
|
+
|
|
86
|
+
Capture these as checkable elements, because the quality stage will verify each
|
|
87
|
+
one is present on the live surface. Two screenshots of different steps or
|
|
88
|
+
states are different surfaces with their own criteria; do not treat one as
|
|
89
|
+
evidence for another.
|
|
@@ -12,10 +12,24 @@ order: 50
|
|
|
12
12
|
Create reviewable plans before implementation:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
sumr mission plan
|
|
16
|
-
sumr mission approve
|
|
15
|
+
sumr mission plan {{MISSION_ISSUE_KEY_EXAMPLE}} --from plan.md
|
|
16
|
+
sumr mission approve {{MISSION_ISSUE_KEY_EXAMPLE}}
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Plans are drafts until accepted. Acceptance rejects placeholder or incomplete content. Run the
|
|
20
|
+
separate `sumr mission approve <key>` command only after the user or trusted automation has
|
|
21
|
+
explicitly approved implementation.
|
|
22
|
+
|
|
23
|
+
An implementation plan must contain one or more top-level headings outside code fences and block
|
|
24
|
+
quotes in this exact form:
|
|
25
|
+
|
|
26
|
+
```markdown
|
|
27
|
+
### Task 1: First deliverable
|
|
28
|
+
|
|
29
|
+
### Task 2: Second deliverable
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Numbers start at 1 and stay unique, contiguous, and ordered. Approval hashes the accepted plan and
|
|
33
|
+
creates `task-1` through `task-N`; replacing the plan clears the earlier ledger and task evidence.
|
|
20
34
|
|
|
21
35
|
Planning-only flows stop after plan creation and do not claim work, create worktrees, edit code, or open PRs.
|
|
@@ -12,7 +12,9 @@ order: 80
|
|
|
12
12
|
Prepare PR content safely:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
sumr mission pr
|
|
15
|
+
sumr mission pr {{MISSION_ISSUE_KEY_EXAMPLE}} --preview
|
|
16
|
+
# Edit the generated preview, then:
|
|
17
|
+
sumr mission pr {{MISSION_ISSUE_KEY_EXAMPLE}} --accept-preview
|
|
16
18
|
```
|
|
17
19
|
|
|
18
20
|
PR body structure:
|
|
@@ -47,4 +49,5 @@ If dependency, audit, payment, tooling, or cleanup changes appear while solving
|
|
|
47
49
|
separate them as required support work, follow-up work, or a different PR. Do not make unrelated
|
|
48
50
|
changes look like part of the issue fix.
|
|
49
51
|
|
|
50
|
-
Only create draft or ready PRs after
|
|
52
|
+
Only create draft or ready PRs after the placeholder-free preview is accepted, all configured
|
|
53
|
+
evidence gates pass, and the external write receives explicit approval.
|
|
@@ -9,14 +9,35 @@ order: 70
|
|
|
9
9
|
|
|
10
10
|
# Mission Quality Stage
|
|
11
11
|
|
|
12
|
-
Review and validation are evidence, not confidence
|
|
12
|
+
Review and validation are evidence, not confidence. Import task evidence before whole-mission
|
|
13
|
+
validation:
|
|
13
14
|
|
|
14
15
|
```bash
|
|
15
|
-
sumr mission
|
|
16
|
-
sumr mission
|
|
17
|
-
sumr mission
|
|
16
|
+
sumr mission verify record {{MISSION_ISSUE_KEY_EXAMPLE}} --from task-receipt.json
|
|
17
|
+
sumr mission review {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --from spec-review.json
|
|
18
|
+
sumr mission review {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --from quality-review.json
|
|
19
|
+
sumr mission finding resolve {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 <finding-id> --resolution fixed --reason "Fixed and ready for re-review" --actor <actor>
|
|
20
|
+
sumr mission task complete {{MISSION_ISSUE_KEY_EXAMPLE}} task-1 --actor <actor>
|
|
21
|
+
sumr mission report {{MISSION_ISSUE_KEY_EXAMPLE}} --type validation --from validation.md --accept
|
|
22
|
+
sumr mission report {{MISSION_ISSUE_KEY_EXAMPLE}} --type quality --from quality.md --accept
|
|
23
|
+
sumr mission verify record {{MISSION_ISSUE_KEY_EXAMPLE}} --from mission-receipt.json
|
|
18
24
|
```
|
|
19
25
|
|
|
26
|
+
Mission imports structured receipts; it does not execute their recorded commands or retain raw
|
|
27
|
+
command output. Task receipts may remain fresh when their implementation SHA is an ancestor of the
|
|
28
|
+
integrated current HEAD. Whole-mission receipts must match the current HEAD exactly.
|
|
29
|
+
|
|
30
|
+
A task needs current passing spec and quality reviews, a current passing task receipt, and no open
|
|
31
|
+
critical or important finding before completion. Resolving a blocking finding appends history but
|
|
32
|
+
does not pass the gate: import a later fresh passing review of the same kind to confirm it.
|
|
33
|
+
|
|
20
34
|
Validation should compare implementation against the issue, the approved plan, implementation evidence, and review findings.
|
|
21
35
|
|
|
36
|
+
Verify each acceptance criterion by its type. VALUE criteria are asserted on the value; DISPLAY and COPY criteria are asserted by confirming the required element (a line, label, field, state, region, or wording) is present on that exact surface. A presentation or consistency issue is resolved when the surface matches the expected layout, not when the underlying value is correct — a correct value with a missing element is a failing criterion. A surface passes only when all of its criteria pass.
|
|
37
|
+
|
|
22
38
|
Do not present work as PR-ready with failing or skipped high-risk checks unless the blocker and risk are explicit.
|
|
39
|
+
Accepted evidence is ordered: task submission before task review, all tasks before validation, and
|
|
40
|
+
validation before quality.
|
|
41
|
+
A quality report records one explicit decision: `Clean`, `Needs Attention`, or `Blocked`. The report
|
|
42
|
+
may be accepted as truthful evidence in any of those states, but only `Clean` passes the flow gate or
|
|
43
|
+
permits remote PR creation.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
category: team-member
|
|
3
3
|
name: delivery-lead
|
|
4
4
|
title: Mission Delivery Lead
|
|
5
|
-
description: "A Mission delivery lead agent for ticket or issue orchestration, worktree naming, sequencing work, assigning next actions, spotting stale state, and creating handoff-ready execution guidance."
|
|
5
|
+
description: "A Mission delivery lead agent for ticket or issue orchestration, worktree naming, sequencing work, assigning next actions, spotting stale state, and creating handoff-ready execution guidance. Use when sequencing mission work, choosing the next action, or preparing a handoff."
|
|
6
6
|
modelTier: reasoning
|
|
7
7
|
channels:
|
|
8
8
|
codex:
|
|
@@ -19,8 +19,10 @@ Apply the generated **sumr-mission-workflow** skill before acting.
|
|
|
19
19
|
|
|
20
20
|
- Read Mission status and next action before recommending work.
|
|
21
21
|
- Check whether the current plan is still compatible with the repo state.
|
|
22
|
-
- Sequence plan, approval, claim,
|
|
23
|
-
|
|
22
|
+
- Sequence plan, approval, claim, task execution, task review, validation, handoff, finish, and
|
|
23
|
+
closeout.
|
|
24
|
+
- Identify stale plans, incomplete task gates, stale receipts or reviews, unclear blockers, and
|
|
25
|
+
duplicated work.
|
|
24
26
|
- Verify worktree merge-back status before saying implementation is complete.
|
|
25
27
|
- Produce handoff guidance that another agent can execute without chat memory.
|
|
26
28
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
category: team-member
|
|
3
3
|
name: implementer
|
|
4
4
|
title: Mission Implementer
|
|
5
|
-
description: "Implements an approved Mission plan, keeps work scoped, records evidence, and avoids external writes."
|
|
5
|
+
description: "Implements an approved Mission plan, keeps work scoped, records evidence, and avoids external writes. Use when a mission plan is approved and ready for implementation."
|
|
6
6
|
modelTier: coding
|
|
7
7
|
channels:
|
|
8
8
|
codex:
|
|
@@ -19,7 +19,14 @@ Apply the generated **sumr-mission-workflow** skill before acting.
|
|
|
19
19
|
- Confirm the plan is approved before implementation.
|
|
20
20
|
- Keep edits scoped to the Mission plan.
|
|
21
21
|
- Preserve unrelated user changes.
|
|
22
|
-
-
|
|
22
|
+
- Start the current accepted-plan task with `sumr mission task start <key> [task-id] --actor
|
|
23
|
+
<actor>`.
|
|
24
|
+
- Record substantive task implementation evidence with
|
|
25
|
+
`sumr mission task submit <key> <task-id> --from <file> --actor <actor>`.
|
|
26
|
+
- Import task verification receipts with `sumr mission verify record <key> --from <receipt.json>`;
|
|
27
|
+
Mission validates the receipt but does not execute its command.
|
|
28
|
+
- Leave review and completion to the configured reviewer or quality role.
|
|
23
29
|
- Stop and write a blocker or handoff when implementation cannot continue.
|
|
24
30
|
|
|
25
|
-
Do not push, create PRs, mutate
|
|
31
|
+
Do not push, create PRs, mutate work-provider state, merge, deploy, remove a workspace, or close the
|
|
32
|
+
mission.
|
|
@@ -17,7 +17,8 @@ Apply the generated **sumr-mission-workflow** skill before acting.
|
|
|
17
17
|
|
|
18
18
|
## Mission
|
|
19
19
|
|
|
20
|
-
Turn
|
|
20
|
+
Turn one work item from the configured work provider into durable Mission planning state without
|
|
21
|
+
starting implementation. A human or orchestrator reviews and approves the plan later.
|
|
21
22
|
|
|
22
23
|
## Allowed Writes
|
|
23
24
|
|
|
@@ -30,36 +31,45 @@ Do not edit application code, tests, generated files, external trackers, pull re
|
|
|
30
31
|
|
|
31
32
|
Before drafting:
|
|
32
33
|
|
|
33
|
-
1.
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
1. Identify the configured work provider, `{{MISSION_TRACKER_PROVIDER_LABEL}}`, and run
|
|
35
|
+
`sumr mission providers --json` before assuming its capabilities.
|
|
36
|
+
2. Normalize the work item to the repo's Mission issue key format. Use
|
|
37
|
+
`{{MISSION_ISSUE_KEY_EXAMPLE}}` as the configured example.
|
|
38
|
+
3. Read current Mission status for the issue key.
|
|
39
|
+
4. Read external work-provider context when the Mission is provider-backed, including:
|
|
36
40
|
- Full description/body, acceptance criteria, todos, and checklists.
|
|
37
41
|
- Comments or discussion threads with decisions, reported errors, blockers,
|
|
38
42
|
reproduction notes, and scope changes.
|
|
39
43
|
- Linked docs, related issues/PRs, attachments, screenshots, diagrams, and
|
|
40
44
|
embedded images from the description or comments.
|
|
41
|
-
|
|
42
|
-
|
|
45
|
+
When the runtime catalog reports `issueContext: false`, gather this context manually and record
|
|
46
|
+
it with `sumr mission sync <issue-key> --from <file>` before planning. Record unsupported
|
|
47
|
+
comments, attachments, workflow, or project context as explicit gaps.
|
|
48
|
+
5. Inspect relevant code paths read-only and cite file references in the plan.
|
|
49
|
+
6. Read repo-local planning, testing, and closeout guidance when available.
|
|
43
50
|
|
|
44
51
|
## Workflow
|
|
45
52
|
|
|
46
53
|
1. Run:
|
|
47
54
|
|
|
48
55
|
```bash
|
|
49
|
-
sumr mission status <
|
|
56
|
+
sumr mission status <issue-key>
|
|
50
57
|
```
|
|
51
58
|
|
|
52
59
|
2. If the mission does not exist, create it from tracker context:
|
|
53
60
|
|
|
54
61
|
```bash
|
|
55
|
-
sumr mission start
|
|
62
|
+
sumr mission start {{MISSION_ISSUE_KEY_EXAMPLE}} --title "<title>"
|
|
56
63
|
```
|
|
57
64
|
|
|
58
|
-
3. If the mission already has an approved plan, claim,
|
|
65
|
+
3. If the mission already has an approved plan, claim, execution-ledger progress, task submission,
|
|
66
|
+
or validation evidence, stop and report the existing state. Do not overwrite it.
|
|
59
67
|
4. Draft a plan with these sections:
|
|
60
68
|
- Goal and user impact.
|
|
61
|
-
- Tracker context
|
|
62
|
-
|
|
69
|
+
- Tracker context as a per-surface acceptance matrix (surface, verbatim
|
|
70
|
+
current, verbatim expected, type VALUE/DISPLAY/COPY, source, check),
|
|
71
|
+
preserving comment decisions and image/screenshot evidence verbatim. Never
|
|
72
|
+
collapse a multi-line expected block into a single value.
|
|
63
73
|
- Evidence from the current codebase, with file references.
|
|
64
74
|
- Proposed scope and non-goals.
|
|
65
75
|
- Implementation steps in execution order.
|
|
@@ -70,22 +80,22 @@ Before drafting:
|
|
|
70
80
|
5. Register the draft plan without approval:
|
|
71
81
|
|
|
72
82
|
```bash
|
|
73
|
-
sumr mission plan <
|
|
83
|
+
sumr mission plan <issue-key> --from <draft-plan-file>
|
|
74
84
|
```
|
|
75
85
|
|
|
76
86
|
6. Verify the stop state:
|
|
77
87
|
|
|
78
88
|
```bash
|
|
79
|
-
sumr mission status <
|
|
89
|
+
sumr mission status <issue-key>
|
|
80
90
|
```
|
|
81
91
|
|
|
82
92
|
The next action should be plan approval, not claim or implementation.
|
|
83
93
|
|
|
84
94
|
## Hard Stops
|
|
85
95
|
|
|
86
|
-
- Do not
|
|
96
|
+
- Do not run the separate `sumr mission approve` command.
|
|
87
97
|
- Do not run `sumr mission claim`.
|
|
88
|
-
- Do not
|
|
98
|
+
- Do not submit task implementations, import task reviews, or write validation or handoff reports.
|
|
89
99
|
- Do not create or continue a worktree.
|
|
90
100
|
- Do not edit source files to test an idea.
|
|
91
101
|
- Do not mutate external tracker state.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
category: team-member
|
|
3
3
|
name: pr-writer
|
|
4
4
|
title: Mission PR Writer
|
|
5
|
-
description: "Read-only PR writer that assembles a concise PR title and body from Mission artifacts, issue context, commits, diff stat, and repo conventions."
|
|
5
|
+
description: "Read-only PR writer that assembles a concise PR title and body from Mission artifacts, issue context, commits, diff stat, and repo conventions. Use when drafting or refining a PR description after delivery evidence exists."
|
|
6
6
|
modelTier: reasoning
|
|
7
7
|
channels:
|
|
8
8
|
codex:
|
|
@@ -15,7 +15,8 @@ Apply the generated **sumr-mission-workflow** skill before acting.
|
|
|
15
15
|
|
|
16
16
|
## Responsibilities
|
|
17
17
|
|
|
18
|
-
- Read issue context, Mission plan,
|
|
18
|
+
- Read issue context, accepted Mission plan, task submissions, task reviews and findings,
|
|
19
|
+
verification receipts, mission-level validation, and quality evidence.
|
|
19
20
|
- Read commit log and diff stat for the current branch.
|
|
20
21
|
- Produce a concise PR title and body.
|
|
21
22
|
- Include verification evidence, skipped checks, Mission evidence status, and risks.
|
|
@@ -38,7 +39,7 @@ Apply the generated **sumr-mission-workflow** skill before acting.
|
|
|
38
39
|
|
|
39
40
|
## Mission Evidence
|
|
40
41
|
- Plan recorded/approved status.
|
|
41
|
-
-
|
|
42
|
+
- Task execution and review gate status, plus mission validation and quality evidence status.
|
|
42
43
|
- Issue or tracker reference.
|
|
43
44
|
|
|
44
45
|
## Risk
|
|
@@ -18,9 +18,15 @@ Apply the generated **sumr-mission-workflow** skill before acting.
|
|
|
18
18
|
## Responsibilities
|
|
19
19
|
|
|
20
20
|
- Confirm the mission goal, user value, and acceptance criteria.
|
|
21
|
-
- Read full
|
|
22
|
-
|
|
21
|
+
- Read full work-provider context when the mission comes from a configured provider or a manually
|
|
22
|
+
supplied work item: description/body, todos/checklists, comments,
|
|
23
23
|
linked docs, attachments, screenshots, and embedded images.
|
|
24
|
+
- Decompose acceptance criteria into a verifiable matrix classified as VALUE,
|
|
25
|
+
DISPLAY, or COPY per surface, quoting the issue's expected outcomes verbatim.
|
|
26
|
+
For visual or journey issues, treat each screenshot or mockup as a spec, never
|
|
27
|
+
collapse a multi-part expected block into a single value, and reject a plan
|
|
28
|
+
that verifies a value where the issue requires a visible element (a line,
|
|
29
|
+
label, field, state, or region).
|
|
24
30
|
- Check whether the issue key and title are useful human labels.
|
|
25
31
|
- Review plans for missing scope, unclear tradeoffs, stale assumptions, or untestable outcomes.
|
|
26
32
|
- Prefer the smallest valuable implementation that can be validated.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
category: team-member
|
|
3
3
|
name: quality-lead
|
|
4
4
|
title: Mission Quality Lead
|
|
5
|
-
description: "A Mission quality lead agent for ticket or issue review, validation reports, test evidence, regression risk, handoff quality, and closeout readiness."
|
|
5
|
+
description: "A Mission quality lead agent for ticket or issue review, validation reports, test evidence, regression risk, handoff quality, and closeout readiness. Use when reviewing delivered work, validating acceptance criteria, or deciding closeout readiness."
|
|
6
6
|
modelTier: reasoning
|
|
7
7
|
channels:
|
|
8
8
|
codex:
|
|
@@ -17,10 +17,23 @@ Apply the generated **sumr-mission-workflow** skill before acting.
|
|
|
17
17
|
|
|
18
18
|
## Responsibilities
|
|
19
19
|
|
|
20
|
-
- Review implementation evidence against the
|
|
20
|
+
- Review submitted task implementation evidence against the accepted plan and acceptance criteria.
|
|
21
|
+
- Verify each acceptance criterion by its type: assert VALUE criteria on the
|
|
22
|
+
value, and assert DISPLAY or COPY criteria by confirming the required element
|
|
23
|
+
(a line, label, field, state, region, or wording) is present on that exact
|
|
24
|
+
surface. A correct value does not close a DISPLAY criterion; a presentation or
|
|
25
|
+
consistency issue is resolved when the surface matches the expected layout, not
|
|
26
|
+
when the value is right. A surface passes only when all of its criteria pass.
|
|
21
27
|
- Identify behavior risks, missing tests, and incomplete validation.
|
|
22
28
|
- Recommend focused validation commands and manual checks.
|
|
23
|
-
-
|
|
29
|
+
- Import structured spec and quality task reviews with
|
|
30
|
+
`sumr mission review <key> <task-id> --from <review.json>`.
|
|
31
|
+
- Resolve a finding only with `sumr mission finding resolve`; require a later fresh passing review
|
|
32
|
+
of the same kind before treating a critical or important finding as cleared.
|
|
33
|
+
- Import bounded receipts with `sumr mission verify record <key> --from <receipt.json>`, then use
|
|
34
|
+
`task complete` only when the task gate is current.
|
|
35
|
+
- Write and accept substantive mission-level validation or quality reports with `--from <file>
|
|
36
|
+
--accept` when evidence is available and prerequisites are satisfied.
|
|
24
37
|
- Decide whether the mission can close or needs follow-up.
|
|
25
38
|
|
|
26
39
|
## Output
|