@sumrco/cli 0.3.4 → 0.3.7

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.
Files changed (42) hide show
  1. package/ai/modules/kontract/resources/api-generation-standards.rf.md +2 -0
  2. package/ai/modules/kontract/resources/authoring/configuration.rf.md +13 -0
  3. package/ai/modules/kontract/resources/authoring/design-profile/api-styles.rf.md +11 -0
  4. package/ai/modules/kontract/resources/authoring/design-profile/async-styles.rf.md +53 -0
  5. package/ai/modules/kontract/resources/authoring/overview.md +3 -0
  6. package/ai/modules/kontract/resources/authoring/schema-reuse.rf.md +3 -0
  7. package/ai/modules/kontract/resources/authoring/spec-layout.rf.md +12 -4
  8. package/ai/modules/kontract/resources/authoring/team-members/spec-author.tm.md +3 -0
  9. package/ai/modules/kontract/resources/authoring/workflows/{spec-change.wf.md → spec-change.cmd.md} +5 -3
  10. package/ai/modules/kontract/resources/generated-output.rf.md +99 -4
  11. package/ai/modules/kontract/resources/overview.md +3 -0
  12. package/ai/modules/mission/resources/flow-actions.rf.md +28 -3
  13. package/ai/modules/mission/resources/flow-config.rf.md +2 -2
  14. package/ai/modules/mission/resources/flow-safety-boundaries.rf.md +7 -0
  15. package/ai/modules/mission/resources/overview.md +69 -11
  16. package/ai/modules/mission/resources/stage-closeout.rf.md +15 -5
  17. package/ai/modules/mission/resources/stage-delivery.rf.md +19 -6
  18. package/ai/modules/mission/resources/stage-intake.rf.md +58 -8
  19. package/ai/modules/mission/resources/stage-planning.rf.md +17 -3
  20. package/ai/modules/mission/resources/stage-pull-request.rf.md +5 -2
  21. package/ai/modules/mission/resources/stage-quality.rf.md +25 -4
  22. package/ai/modules/mission/resources/team-members/delivery-lead.tm.md +5 -3
  23. package/ai/modules/mission/resources/team-members/implementer.tm.md +10 -3
  24. package/ai/modules/mission/resources/team-members/planner.tm.md +25 -15
  25. package/ai/modules/mission/resources/team-members/pr-writer.tm.md +4 -3
  26. package/ai/modules/mission/resources/team-members/product-owner.tm.md +8 -2
  27. package/ai/modules/mission/resources/team-members/quality-lead.tm.md +16 -3
  28. package/ai/modules/mission/resources/workflows/{daily-triage.wf.md → daily-triage.cmd.md} +5 -4
  29. package/ai/modules/mission/resources/workflows/{full-delivery.wf.md → full-delivery.cmd.md} +3 -3
  30. package/ai/modules/mission/resources/workflows/{mission-cycle.wf.md → mission-cycle.cmd.md} +9 -5
  31. package/ai/modules/mission/resources/workflows/{planning-only.wf.md → planning-only.cmd.md} +5 -4
  32. package/ai/modules/mission/resources/workflows/{pr-assist.wf.md → pr-assist.cmd.md} +5 -4
  33. package/ai/modules/mission/resources/workflows/{standard-delivery.wf.md → standard-delivery.cmd.md} +3 -3
  34. package/ai/modules/mission/sumr.module.yaml +20 -2
  35. package/ai/modules/playbook/resources/authoring/content-structure.rf.md +16 -1
  36. package/ai/modules/playbook/resources/authoring/extraction.rf.md +4 -2
  37. package/ai/modules/playbook/resources/authoring/markdown.rf.md +20 -0
  38. package/ai/modules/playbook/resources/authoring/overview.md +9 -1
  39. package/ai/modules/playbook/resources/authoring/patterns.rf.md +99 -0
  40. package/ai/modules/playbook/sumr.module.yaml +3 -0
  41. package/index.js +475 -319
  42. package/package.json +8 -8
@@ -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 GH-123 --reason "Waiting for API contract approval"
16
- sumr mission report GH-123 --type handoff
17
- sumr mission close GH-123
18
- sumr mission clean --dry-run
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 validation evidence exists or the user explicitly accepts force close.
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, implementation reports, worktree discipline, and merge-back evidence."
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 GH-123
16
- sumr mission claim GH-123 --agent codex
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
- After implementation, write evidence:
27
+ Work through the accepted-plan ledger one task at a time:
24
28
 
25
29
  ```bash
26
- sumr mission report GH-123 --type implementation
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
- If a worktree was used, report path, branch, target branch, changed files, conflicts, and merge-back status.
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 GitHub, GitLab, Jira, Linear, Azure Boards, Shortcut, ClickUp, Asana, Trello, Notion, or custom work item
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
- - `issue 4501` uses the configured tracker when one exists.
15
- - `GH-4501`, `GL-4501`, or `PROJECT-123` can be used directly.
16
- - Unknown systems should use `--tracker custom` unless a native adapter exists.
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, status, labels, assignee, milestone/project/cycle, priority, and links.
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. Summarize the relevant visual evidence in the
34
- plan and keep the source URL, attachment name, or comment reference when
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 GH-123 --from /path/to/plan.md
16
- sumr mission approve GH-123
15
+ sumr mission plan {{MISSION_ISSUE_KEY_EXAMPLE}} --from plan.md
16
+ sumr mission approve {{MISSION_ISSUE_KEY_EXAMPLE}}
17
17
  ```
18
18
 
19
- Use `--approve` only when the user or trusted automation has explicitly approved implementation.
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 GH-123 --preview
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 explicit approval.
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 report GH-123 --type review
16
- sumr mission report GH-123 --type validation
17
- sumr mission report GH-123 --type quality
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, implementation, review, validation, handoff, and closeout.
23
- - Identify stale plans, missing reports, unclear blockers, and duplicated work.
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
- - Record implementation evidence with `sumr mission report <key> --type implementation`.
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 tracker state, merge, deploy, or close the mission.
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 a GitHub, GitLab, Jira, Linear, or custom work item into durable Mission planning state without starting implementation. A human or orchestrator reviews and approves the plan later.
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. Normalize the work item to the repo's Mission issue key format.
34
- 2. Read current Mission status for the issue key.
35
- 3. Read external tracker context when the Mission is tracker-backed, including:
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
- 4. Inspect relevant code paths read-only and cite file references in the plan.
42
- 5. Read repo-local planning, testing, and closeout guidance when available.
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 <issueKey>
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 --tracker <tracker> --issue <issue> --name "<title>"
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, implementation report, review report, or validation report, stop and report the existing state. Do not overwrite it.
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 and acceptance criteria, including comment decisions and
62
- image/screenshot evidence when relevant.
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 <issueKey> --from <draft-plan-file>
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 <issueKey>
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 use `sumr mission plan --approve`.
96
+ - Do not run the separate `sumr mission approve` command.
87
97
  - Do not run `sumr mission claim`.
88
- - Do not write implementation, review, validation, or handoff reports.
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, implementation report, review report, validation report, and quality evidence.
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
- - Implementation, review, validation, and quality evidence recorded status.
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 tracker context when the mission comes from GitHub, GitLab, Jira,
22
- Linear, or a custom work item: description/body, todos/checklists, comments,
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 approved plan and acceptance criteria.
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
- - Write review or validation reports when evidence is available.
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
@@ -1,5 +1,5 @@
1
1
  ---
2
- category: workflow
2
+ category: command
3
3
  name: daily-triage
4
4
  title: Daily Mission Triage
5
5
  description: "Builds a daily SUMR Mission triage queue from configured trackers, open Mission state, or provided work items, then stops before approval or implementation."
@@ -40,7 +40,7 @@ Run SUMR Mission planning only for {{issueOrWorkItem}}.
40
40
  Create or update the Mission, read full tracker context including description,
41
41
  comments, todos/checklists, linked docs, and images/screenshots, inspect relevant
42
42
  code paths read-only, write a draft implementation plan, register the plan
43
- without --approve, then stop.
43
+ without running the separate approval command, then stop.
44
44
 
45
45
  Do not approve the plan.
46
46
  Do not claim the mission.
@@ -62,7 +62,8 @@ Use the `sumr-mission-planner` agent when the channel supports custom agents.
62
62
 
63
63
  2. Collect candidate work items from the caller, the repo-specific tracker query, or the configured tracker.
64
64
  3. Normalize every candidate to a Mission issue key.
65
- 4. Skip candidates that already have an approved plan, claim, implementation report, review report, validation report, or close-ready state.
65
+ 4. Skip candidates that already have an approved plan, claim, execution-ledger progress, task
66
+ submissions, validation evidence, or close-ready state.
66
67
  5. For each selected candidate, check current state:
67
68
 
68
69
  ```bash
@@ -108,7 +109,7 @@ Return a concise daily triage queue:
108
109
 
109
110
  ## Rules
110
111
 
111
- - Do not pass `--approve` during daily triage.
112
+ - Do not run `sumr mission approve` during daily triage.
112
113
  - Do not run `sumr mission claim`.
113
114
  - Do not spawn implementation agents from this workflow.
114
115
  - Do not create worktrees during triage.
@@ -1,8 +1,8 @@
1
1
  ---
2
- category: workflow
2
+ category: command
3
3
  name: full-delivery
4
4
  title: Full Mission Delivery
5
- description: "Runs the richer Mission flow with issue sync, research, plan approval, branch check, delivery, quality, PR assist, and closeout."
5
+ description: "Runs the richer Mission flow with issue sync, research, plan approval, branch check, delivery, quality, PR assist, and closeout. Use when the task is broad, risky, or benefits from explicit research and quality gates."
6
6
  ---
7
7
 
8
8
  # Full Mission Delivery
@@ -10,7 +10,7 @@ description: "Runs the richer Mission flow with issue sync, research, plan appro
10
10
  Use this workflow when the task is broad, risky, or benefits from explicit research and quality gates.
11
11
 
12
12
  ```text
13
- issue.sync -> context.research -> plan.create -> plan.approve(human) -> branch.check(ask) -> work.claim -> implementation.report -> review.report -> validation.report -> quality.gate -> pr.prepare(ask) -> pr.create(human) -> mission.close
13
+ issue.sync -> context.research -> plan.create -> plan.approve(human) -> branch.check(ask) -> work.claim -> tasks.execute -> tasks.review -> validation.report -> quality.gate -> pr.prepare(ask) -> pr.create(human) -> mission.close
14
14
  ```
15
15
 
16
16
  Do not collapse research, plan approval, PR creation, or closeout unless the user explicitly approves.
@@ -1,8 +1,8 @@
1
1
  ---
2
- category: workflow
2
+ category: command
3
3
  name: cycle
4
4
  title: Mission Cycle
5
- description: "Guides an AI agent through the configured Mission flow, next action, planning, implementation, validation, PR assist, handoff, and closeout."
5
+ description: "Guides an AI agent through the configured Mission flow, next action, planning, implementation, validation, PR assist, handoff, and closeout. Use when a user gives an issue key, tracker ID, or mission ID, or asks to resume AI-assisted work."
6
6
  ---
7
7
 
8
8
  # Mission Cycle
@@ -23,8 +23,12 @@ This repo uses `{{MISSION_FLOW_PRESET}}`.
23
23
  2. Identify or create the mission with `sumr mission start`.
24
24
  3. Run `sumr mission status <key>` or `sumr mission next`.
25
25
  4. Follow the returned next action and stop at `human` or `ask` gates.
26
- 5. Use Mission reports for implementation, review, validation, quality, and handoff evidence.
27
- 6. Use `sumr mission pr <key> --preview` before asking to create a PR.
28
- 7. Never push, create PRs, mutate trackers, merge, or deploy without explicit approval.
26
+ 5. For each accepted-plan task, use `task start`, `task submit`, `verify record`, structured
27
+ `review` imports, `finding resolve` plus re-review when needed, then `task complete`.
28
+ 6. Use Mission reports only for remaining mission-level research, handoff, validation, and quality
29
+ evidence.
30
+ 7. Use `sumr mission pr <key> --preview` before asking to create a PR.
31
+ 8. Record `finish` before close. Never push, create PRs, mutate work providers, merge, deploy, or
32
+ remove a workspace without the separate authority that owns that action.
29
33
 
30
34
  ARGUMENTS: $ARGUMENTS
@@ -1,5 +1,5 @@
1
1
  ---
2
- category: workflow
2
+ category: command
3
3
  name: planning-only
4
4
  title: Mission Planning Only
5
5
  description: "Creates SUMR Mission draft plans for one or more work items, then stops before approval, claim, worktree creation, or implementation."
@@ -23,7 +23,7 @@ Run SUMR Mission planning only for {{issueOrWorkItem}}.
23
23
  Create or update the Mission, read full tracker context including description,
24
24
  comments, todos/checklists, linked docs, and images/screenshots, inspect relevant
25
25
  code paths read-only, write a draft implementation plan, register the plan
26
- without --approve, then stop.
26
+ without running the separate approval command, then stop.
27
27
 
28
28
  Do not approve the plan.
29
29
  Do not claim the mission.
@@ -59,10 +59,11 @@ Use the `sumr-mission-planner` agent when the channel supports custom agents.
59
59
 
60
60
  ## Rules
61
61
 
62
- - Do not pass `--approve` during planning-only runs.
62
+ - Do not run `sumr mission approve` during planning-only runs.
63
63
  - Do not run `sumr mission claim`.
64
64
  - Do not spawn implementation agents from this workflow.
65
65
  - Do not create worktrees during planning.
66
66
  - Do not mutate external trackers, labels, assignees, project status, PRs, deployments, or external systems without explicit approval.
67
- - If a mission already has an approved plan, claim, implementation report, or validation report, skip planning and report the existing state instead of overwriting it.
67
+ - If a mission already has an approved plan, claim, execution-ledger progress, task submission, or
68
+ validation evidence, skip planning and report the existing state instead of overwriting it.
68
69
  - If the issue is ambiguous or blocked by missing product context, create the draft plan with open questions and leave the Mission waiting for approval.
@@ -1,8 +1,8 @@
1
1
  ---
2
- category: workflow
2
+ category: command
3
3
  name: pr-assist
4
4
  title: Mission PR Assist
5
- description: "Prepares a scoped PR preview from Mission artifacts, issue context, verification evidence, and repo PR conventions."
5
+ description: "Prepares a scoped PR preview from Mission artifacts, issue context, verification evidence, and repo PR conventions. Use when implementation and validation evidence exists and a PR is ready to prepare."
6
6
  ---
7
7
 
8
8
  # Mission PR Assist
@@ -12,9 +12,10 @@ Use this workflow after implementation and validation evidence exists.
12
12
  1. Run `sumr mission status <key>`.
13
13
  2. Confirm the current branch is not protected.
14
14
  3. Run `sumr mission pr <key> --preview`.
15
- 4. Review the generated PR body for scope drift, local-only paths, raw commit logs, and raw diff stats.
15
+ 4. Review and edit the generated PR body for scope drift, local-only paths, raw commit logs, and raw diff stats.
16
16
  5. Remove or split unrelated dependency, audit, tooling, infrastructure, or cleanup changes unless they are required for the issue.
17
- 6. Ask before `--create-draft` or `--create`.
17
+ 6. Record the reviewed body with `sumr mission pr <key> --accept-preview`.
18
+ 7. Ask before `--create-draft` or `--create`.
18
19
 
19
20
  Never merge or mutate issue/project state.
20
21