@sumrco/cli 0.4.8 → 0.4.9
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/ARTIFACT-MANIFEST.json +7 -3
- package/THIRD_PARTY_NOTICES.md +12 -7
- package/ai/modules/kontract/resources/overview.md +11 -3
- package/ai/modules/kontract/sumr.module.yaml +3 -0
- package/ai/modules/mission/docs/operations/task-transfer-authorization/overview.md +18 -0
- package/ai/modules/mission/resources/flow-actions.rf.md +54 -3
- package/ai/modules/mission/resources/flow-config.rf.md +229 -1
- package/ai/modules/mission/resources/flow-safety-boundaries.rf.md +148 -2
- package/ai/modules/mission/resources/lifecycle/intake-pre-edit.lc.md +85 -0
- package/ai/modules/mission/resources/overview.md +58 -11
- package/ai/modules/mission/resources/stage-closeout.rf.md +56 -1
- package/ai/modules/mission/resources/stage-delivery.rf.md +102 -0
- package/ai/modules/mission/resources/stage-intake.rf.md +46 -2
- package/ai/modules/mission/resources/stage-orchestration.rf.md +153 -0
- package/ai/modules/mission/resources/stage-planning.rf.md +96 -3
- package/ai/modules/mission/resources/stage-pull-request.rf.md +85 -0
- package/ai/modules/mission/resources/stage-quality.rf.md +37 -3
- package/ai/modules/mission/resources/team-members/implementer.tm.md +10 -1
- package/ai/modules/mission/resources/team-members/planner.tm.md +15 -3
- package/ai/modules/mission/resources/team-members/product-owner.tm.md +8 -1
- package/ai/modules/mission/resources/team-members/quality-lead.tm.md +15 -8
- package/ai/modules/mission/resources/team-members/visual-planner.tm.md +58 -0
- package/ai/modules/mission/resources/visual-plan.rf.md +150 -0
- package/ai/modules/mission/resources/workflows/daily-triage.cmd.md +4 -2
- package/ai/modules/mission/resources/workflows/full-delivery.cmd.md +24 -2
- package/ai/modules/mission/resources/workflows/mission-cycle.cmd.md +24 -2
- package/ai/modules/mission/resources/workflows/planning-only.cmd.md +22 -2
- package/ai/modules/mission/resources/workflows/pr-assist.cmd.md +6 -0
- package/ai/modules/mission/resources/workflows/standard-delivery.cmd.md +24 -2
- package/ai/modules/mission/sumr.module.yaml +43 -1
- package/ai/modules/playbook/resources/authoring/channel-blocks.rf.md +130 -0
- package/ai/modules/playbook/resources/authoring/frontmatter.rf.md +77 -18
- package/ai/modules/playbook/resources/authoring/job-profiles.rf.md +142 -0
- package/ai/modules/playbook/resources/authoring/markdown.rf.md +6 -0
- package/ai/modules/playbook/resources/authoring/overview.md +30 -1
- package/ai/modules/playbook/resources/team-members/technical-writer.tm.md +1 -1
- package/ai/modules/playbook/sumr.module.yaml +3 -0
- package/ai/registry.json +4 -0
- package/index.js +1306 -1205
- package/index.js.jsc +0 -0
- package/package.json +5 -1
- package/sbom.cdx.json +60 -36
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: reference
|
|
3
|
+
name: authoring-job-profiles
|
|
4
|
+
title: Job Profiles
|
|
5
|
+
description: "The 21 job profiles, which Topics accept one, the model and effort each AI Channel receives, escalation, and how Projects override candidate mappings. Use when choosing a profile, migrating modelTier or effort, or configuring model routing."
|
|
6
|
+
label: Job profiles
|
|
7
|
+
when: Choosing a profile for a team-member, command, or workflow, migrating from modelTier and effort, overriding model routing for a Project
|
|
8
|
+
order: 12
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Job Profiles
|
|
12
|
+
|
|
13
|
+
A `profile` names the job a Topic owns. The author states the job once; Playbook resolves the native model and reasoning effort for each AI Channel, and only where that channel documents the control for that artifact. It never widens what a Topic is allowed to do. Choose the profile for the work the Topic performs, not for the cheapest or strongest model.
|
|
14
|
+
|
|
15
|
+
## Choosing a Profile
|
|
16
|
+
|
|
17
|
+
A `-system` profile owns interactions across boundaries (contracts, timing, data flow), not a larger number of repositories. A bounded profile owns one component or one change.
|
|
18
|
+
|
|
19
|
+
| Profile | The Topic owns |
|
|
20
|
+
|---------|----------------|
|
|
21
|
+
| `locate` | Finding files, symbols, usages, or patterns. Explaining how they interact is analysis. |
|
|
22
|
+
| `read` | Extracting and summarizing facts from material already identified. |
|
|
23
|
+
| `analyze` | Explaining how one component or repository works. |
|
|
24
|
+
| `analyze-system` | Reconstructing interactions, contracts, and data flows across boundaries. |
|
|
25
|
+
| `research` | Gathering external evidence and comparing options. The decision belongs to `architect`. |
|
|
26
|
+
| `plan` | Turning a bounded requirement into an ordered plan. Unresolved design goes to `architect`. |
|
|
27
|
+
| `architect` | Resolving system boundaries, contracts, and approaches. |
|
|
28
|
+
| `implement` | Building within an established component. |
|
|
29
|
+
| `implement-system` | Coordinated changes across interacting boundaries. |
|
|
30
|
+
| `debug` | Finding the cause of, and fixing, a bounded failure. |
|
|
31
|
+
| `debug-system` | Finding the cause of, and fixing, a failure that crosses boundaries. |
|
|
32
|
+
| `refactor` | Restructuring one component while preserving behavior. |
|
|
33
|
+
| `refactor-system` | Restructuring shared contracts or architecture with a compatible transition. |
|
|
34
|
+
| `review` | Assessing a **bounded change** against explicit requirements; actionable findings and a justified verdict. |
|
|
35
|
+
| `review-system` | Assessing **interactions, compatibility, and architectural effects beyond the changed component**. |
|
|
36
|
+
| `test` | Designing and writing tests for bounded behavior. Running existing checks is `execute`. |
|
|
37
|
+
| `test-system` | Integration and end-to-end interaction tests. |
|
|
38
|
+
| `design` | The visual outcome of a user-facing surface (page, artifact, screen): layout, hierarchy, type, color, and polish. Building the logic behind it is `implement`. |
|
|
39
|
+
| `document` | Writing documentation from established facts. |
|
|
40
|
+
| `execute` | Running a prescribed procedure and reporting evidence, with no independent diagnosis or verdict. |
|
|
41
|
+
| `coordinate` | Dispatching and tracking work under an established plan. Making the plan is `plan`. |
|
|
42
|
+
|
|
43
|
+
There is no `quick-review`. "Quick" names a cost or latency goal, not a different owned output; use `review`.
|
|
44
|
+
|
|
45
|
+
## Which Topics Accept a Profile
|
|
46
|
+
|
|
47
|
+
| Category | Profile |
|
|
48
|
+
|----------|---------|
|
|
49
|
+
| `team-member`, `command`, `workflow` | Accepted |
|
|
50
|
+
| `topic`, `how-to`, `how-to:concept` (rendered as skills) | Accepted; no channel routes a skill model yet, so nothing is emitted |
|
|
51
|
+
| `hook`, `lifecycle`, `reference`, `role`, `index` | Rejected |
|
|
52
|
+
|
|
53
|
+
A Topic cannot set `profile` together with `modelTier` or `effort`, and cannot set `model` or an effort key in a native channel block. Playbook reads the model and effort from adapter policy and Project configuration only.
|
|
54
|
+
|
|
55
|
+
## Where Each Channel Emits
|
|
56
|
+
|
|
57
|
+
Playbook emits a field only on a surface the AI Channel feature matrix verifies (see its model and effort controls page). Everywhere else the host or session setting is preserved.
|
|
58
|
+
|
|
59
|
+
| AI Channel | Agent file | Model | Effort |
|
|
60
|
+
|------------|-----------|-------|--------|
|
|
61
|
+
| Claude Code | `.claude/agents` | `model` alias | `effort` |
|
|
62
|
+
| Claude Code | `.claude/commands` | `model` alias | `effort`, only together with a model |
|
|
63
|
+
| Codex CLI | `.codex/agents` | `model` | `model_reasoning_effort` |
|
|
64
|
+
| GitHub Copilot | `.github/agents` | `models` priority list with `modelPolicy: preferred` | `reasoning-effort` (hyphenated; the camelCase key has an open bug) |
|
|
65
|
+
| Cursor | `.cursor/agents` | `model`, with the effort inside the value as `model[effort=x]` | same value |
|
|
66
|
+
| Gemini CLI | `.gemini/agents` | `model` | thinking level, merged into `.gemini/settings.json` under `modelConfigs.customOverrides` and matched by agent name |
|
|
67
|
+
| OpenCode | `.opencode/agents` | `model` as `provider/model-id`, only when `opencode.family` is set | `variant`, only when that provider documents the level |
|
|
68
|
+
| Any channel | skills, workflows, hooks, rules, root instructions | not emitted | not emitted |
|
|
69
|
+
|
|
70
|
+
Cursor receives native subagent files in `.cursor/agents` for every team-member Topic, including Topics without a `profile` (those carry no model, so the Cursor session model applies). Cursor resolves the bracketed effort form only when it is written unquoted, so Playbook never quotes it.
|
|
71
|
+
|
|
72
|
+
Copilot model names are the display names GitHub's supported-models page uses. Cloud agent keys are advisory, and the Copilot mapping could not be tested without a subscription.
|
|
73
|
+
|
|
74
|
+
## Candidate Mappings
|
|
75
|
+
|
|
76
|
+
Every mapping is a **candidate** checked on 2026-10-25 against vendor documentation. Run `sumr playbook profiles` to print the exact model and effort every profile resolves to on every channel, including the step-up and whether a Project or environment override applies. `--channel` and `--job` narrow the output and `--json` makes it machine-readable.
|
|
77
|
+
|
|
78
|
+
| Profile class | Claude Code | Codex CLI | Cursor |
|
|
79
|
+
|---------------|-------------|-----------|--------|
|
|
80
|
+
| Lookup (`locate`, `read`, `execute`) | `haiku`, medium | `gpt-6-luna`, low | `grok-4.7`, low |
|
|
81
|
+
| Production (`implement`, `refactor`, `test`, `document`, `analyze`) | `sonnet`, medium | `gpt-6.1-sol` or `gpt-6-luna`, medium | `grok-4.7`, medium |
|
|
82
|
+
| Judgment (`plan`, `review`, `debug`, `research`, `coordinate`) | `opus`, medium or high | `gpt-6.1-sol`, high | `grok-4.7`, high |
|
|
83
|
+
| System (`*-system`, `architect`) | `opus`, high or xhigh | `gpt-6.1-sol` high; `gpt-6-astra` high for `architect` and `review-system` | `grok-4.7`, high or xhigh |
|
|
84
|
+
| `design` | `sonnet`, high | `gpt-6.1-sol`, high | `claude-sonnet-5-5`, no effort (its effort levels in Cursor are unverified) |
|
|
85
|
+
|
|
86
|
+
Rules the mappings keep: latest generation only, with identifiers taken from vendor documentation; `gpt-6.1-sol` is never above `high`; Claude Fable 5.1 is not used (the watch list reviews it when a new Fable ships); Copilot and Gemini carry at most `high`; OpenCode seeds nothing until a provider family is chosen.
|
|
87
|
+
|
|
88
|
+
## Escalation
|
|
89
|
+
|
|
90
|
+
Each profile has a **step-up** pair for the case where the default failed. It is never applied automatically. Choose one of:
|
|
91
|
+
|
|
92
|
+
| Mechanism | Effect |
|
|
93
|
+
|-----------|--------|
|
|
94
|
+
| `playbook.escalate: [debug, review]` | Those profiles resolve to the step-up pair on every channel that has one. |
|
|
95
|
+
| `playbook.escalationAgents: true` | Playbook also writes a sibling `NAME-escalated` agent beside each profile agent that has a step-up, so a person or an orchestrator can choose the heavier agent for one task. |
|
|
96
|
+
|
|
97
|
+
A profile whose default is already the strongest verified pair (for example `architect` on Codex) keeps it. The step-up for the hardest Claude class is `opus` at `max`; Codex steps up to `gpt-6-astra` at `high`.
|
|
98
|
+
|
|
99
|
+
## Project Overrides
|
|
100
|
+
|
|
101
|
+
An override is always a complete pair: both `model` and `effort`, with `null` meaning "set nothing". An effort with a `null` model is written on Claude Code and Codex agents (where the effort key works alone) and on Gemini as a thinking level; elsewhere it writes nothing. Cursor model ids may use only letters, digits, `.`, `-`, `_` and `/`, because Cursor does not resolve a quoted model value. Effort must be a level the channel can carry (Copilot and Gemini: low to high; Cursor: low to xhigh; Claude, Codex, OpenCode: low to max).
|
|
102
|
+
|
|
103
|
+
```yaml
|
|
104
|
+
playbook:
|
|
105
|
+
profiles:
|
|
106
|
+
claude:
|
|
107
|
+
review:
|
|
108
|
+
model: opus
|
|
109
|
+
effort: xhigh
|
|
110
|
+
gemini:
|
|
111
|
+
implement:
|
|
112
|
+
model: gemini-example-model
|
|
113
|
+
effort: null
|
|
114
|
+
opencode:
|
|
115
|
+
family: openai # anthropic | google | openai
|
|
116
|
+
cursor:
|
|
117
|
+
effort: bracket # or omit, to write the model without the effort
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
`sumr playbook config --job-profile claude.review=opus:xhigh` writes the same pair (use `null` for no model or no effort). `--escalate debug,review`, `--escalation-agents true`, and `--opencode-family openai` write the other settings.
|
|
121
|
+
|
|
122
|
+
The environment can override one run with both variables set, using `null` for no effort:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
SUMR_PROFILE_MODEL_CLAUDE_REVIEW_SYSTEM=opus SUMR_PROFILE_EFFORT_CLAUDE_REVIEW_SYSTEM=max sumr playbook sync
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Resolution order, highest first: escalation step-up, environment pair, Project pair, adapter policy. A half-set environment pair, an empty value, a multi-line model id, and a misspelled `SUMR_PROFILE_*` name are errors.
|
|
129
|
+
|
|
130
|
+
## Evidence Freshness
|
|
131
|
+
|
|
132
|
+
`sumr playbook validate` warns with `PROFILE_EVIDENCE_STALE` when the routing evidence is more than 90 days old and the Project uses a profile, and with `PROFILE_MODEL_RETIRED` when a Project pair names a model the adapter marks retired. Re-check the vendor pages and update the mappings together; do not edit one channel in isolation.
|
|
133
|
+
|
|
134
|
+
## Migrating from modelTier and effort
|
|
135
|
+
|
|
136
|
+
Replace `modelTier` and `effort` with one profile. Existing Topics keep working and validate with a deprecation warning until a separately approved release removes the legacy fields. Playbook does not rewrite Topics you own.
|
|
137
|
+
|
|
138
|
+
| Legacy intent | Starting profile |
|
|
139
|
+
|---------------|------------------|
|
|
140
|
+
| `modelTier: fast` | `locate`, `read`, or `execute` |
|
|
141
|
+
| `modelTier: coding` | `implement`, `debug`, `test`, or `document` |
|
|
142
|
+
| `modelTier: reasoning` | `plan`, `review`, or `architect` |
|
|
@@ -98,6 +98,12 @@ A checklist is more reliable than the same steps buried in a paragraph.
|
|
|
98
98
|
- Every row must have the same number of columns
|
|
99
99
|
- Blank lines surrounding the table
|
|
100
100
|
|
|
101
|
+
## AI Channel Blocks
|
|
102
|
+
|
|
103
|
+
Content for some assistants only goes between channel markers, each alone on its own line, with a blank
|
|
104
|
+
line before and after. Keep emphasis and link markers inside an inline pair. See **AI Channel Blocks**
|
|
105
|
+
for the syntax.
|
|
106
|
+
|
|
101
107
|
## Whitespace
|
|
102
108
|
|
|
103
109
|
- End files with a single newline
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
category: how-to:concept
|
|
3
3
|
name: authoring
|
|
4
4
|
title: Playbook Authoring
|
|
5
|
-
description: "How to write canonical SUMR Playbook docs: frontmatter schema, references, extraction markers, and authoring checklist. Use when creating or editing Markdown docs, technical docs, AI docs, agent skills, specs, runbooks, or Playbook sources."
|
|
5
|
+
description: "How to write canonical SUMR Playbook docs: frontmatter schema, references, extraction markers, AI Channel blocks, and authoring checklist. Use when creating or editing Markdown docs, technical docs, AI docs, agent skills, specs, runbooks, or Playbook sources."
|
|
6
6
|
tags: [authoring, docs, markdown, ai-docs, technical-docs, specs, skills]
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -143,6 +143,14 @@ description: "What this doc covers. Use when doing X."
|
|
|
143
143
|
|
|
144
144
|
See **Frontmatter** for the full schema, categories, and required fields per category.
|
|
145
145
|
|
|
146
|
+
Skill Topics are model-discoverable but opt out of direct user invocation by
|
|
147
|
+
default. Omit `user-invocable` for normal guidance; add `user-invocable: true`
|
|
148
|
+
only for a deliberate direct entry point. Add `model-invocable: false` to make
|
|
149
|
+
that entry point manual-only; model invocation otherwise defaults to true.
|
|
150
|
+
The controls are independent. Unsupported manual controls warn and keep native
|
|
151
|
+
access; unsupported model restrictions block generation. Commands retain their
|
|
152
|
+
separate user-invoked behavior.
|
|
153
|
+
|
|
146
154
|
## Reference Files
|
|
147
155
|
|
|
148
156
|
To make a file a reference (supporting detail for a main doc):
|
|
@@ -214,6 +222,26 @@ samples/templates, long boilerplate, and every ✅ Good / ❌ Bad comparison. If
|
|
|
214
222
|
|
|
215
223
|
See **Extraction** for the full code-block classification table.
|
|
216
224
|
|
|
225
|
+
## AI Channel Blocks
|
|
226
|
+
|
|
227
|
+
When an instruction only makes sense for some assistants, such as Artifacts for Claude Code or Sites
|
|
228
|
+
for Codex, scope it. Wrap the content in a channel block, or limit a whole Topic or reference with
|
|
229
|
+
the optional `availableIn` field.
|
|
230
|
+
|
|
231
|
+
```markdown
|
|
232
|
+
<!-- channel:claude -->
|
|
233
|
+
Ask the user whether to draw this plan as an Artifact.
|
|
234
|
+
<!-- /channel:claude -->
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
```yaml
|
|
238
|
+
availableIn: [claude]
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
The two are independent, and omitting both renders the Document for every enabled AI Channel. Put
|
|
242
|
+
block markers alone on their own lines, and never wrap a block around text that must stay for every
|
|
243
|
+
AI Channel. See **AI Channel Blocks** for inline markers, `AGENTS.md` labels, and the full rules.
|
|
244
|
+
|
|
217
245
|
## Good/Bad Patterns and Non-Negotiables
|
|
218
246
|
|
|
219
247
|
Teach AI channels with contrast, not prose. Whenever a fenced block demonstrates a non-obvious
|
|
@@ -278,6 +306,7 @@ Before committing a renderable Topic under `{{PLAYBOOK_PATH}}/`:
|
|
|
278
306
|
- [ ] Every ✅ Good / ❌ Bad comparison is self-contained under a heading and wrapped with `<!-- extract:examples -->`
|
|
279
307
|
- [ ] Every non-obvious code, configuration, naming, folder, or structure block was checked for a useful ✅ Good / ❌ Bad pair with a one-line why
|
|
280
308
|
- [ ] Absolute rules sit in a `## Non-Negotiables` section using `MUST`/`NEVER`; soft defaults use `SHOULD`/`PREFER`
|
|
309
|
+
- [ ] Content for only some AI Channels sits in a channel block or behind `availableIn`; block markers are alone on their own lines, and emphasis stays inside inline pairs
|
|
281
310
|
- [ ] Workflow and lifecycle docs use a compact arrow flow or Mermaid diagram when state transitions matter
|
|
282
311
|
- [ ] No `references:` frontmatter field
|
|
283
312
|
- [ ] No `## References` or `## Related` sections added manually
|
|
@@ -3,7 +3,7 @@ category: team-member
|
|
|
3
3
|
name: technical-writer
|
|
4
4
|
title: Playbook Technical Writer
|
|
5
5
|
description: "A SUMR Playbook authoring specialist. Use when drafting, reviewing, or restructuring canonical Playbook Markdown and AI resource docs."
|
|
6
|
-
|
|
6
|
+
profile: document
|
|
7
7
|
access: read-only
|
|
8
8
|
nicknames: [Quill, Scribe, Editor]
|
|
9
9
|
---
|
|
@@ -34,6 +34,9 @@ spec:
|
|
|
34
34
|
- name: authoring
|
|
35
35
|
summary: Print the canonical Playbook Markdown authoring contract
|
|
36
36
|
visibility: public
|
|
37
|
+
- name: profiles
|
|
38
|
+
summary: Show the model and effort each job profile resolves to per AI Channel
|
|
39
|
+
visibility: public
|
|
37
40
|
exports:
|
|
38
41
|
aiResources:
|
|
39
42
|
activation:
|
package/ai/registry.json
CHANGED