@sumrco/cli 0.4.9 → 0.5.0
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 +4 -4
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/ai/modules/mission/resources/flow-safety-boundaries.rf.md +5 -1
- package/ai/modules/mission/resources/lifecycle/intake-pre-edit.lc.md +1 -1
- package/ai/modules/mission/resources/overview.md +4 -2
- package/ai/modules/mission/resources/stage-delivery.rf.md +1 -1
- package/ai/modules/mission/resources/stage-planning.rf.md +8 -0
- package/ai/modules/mission/resources/stage-pull-request.rf.md +1 -1
- package/ai/modules/mission/resources/workflows/pr-assist.cmd.md +3 -1
- package/ai/modules/mission/sumr.module.yaml +0 -1
- package/ai/modules/playbook/resources/authoring/frontmatter.rf.md +7 -5
- package/ai/modules/playbook/resources/authoring/overview.md +4 -3
- package/ai/registry.json +0 -4
- package/index.js +1127 -1127
- package/index.js.jsc +0 -0
- package/package.json +1 -5
- package/sbom.cdx.json +22 -22
- /package/ai/modules/mission/{docs/operations → resources}/task-transfer-authorization/overview.md +0 -0
package/ARTIFACT-MANIFEST.json
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
"files": [
|
|
4
4
|
{
|
|
5
5
|
"file": "index.js",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "428718dbfaabbd76072438666dcbfc6a6a9eec7b5989695fc4c39f2c403ff1cb"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"file": "index.js.jsc",
|
|
10
|
-
"sha256": "
|
|
10
|
+
"sha256": "87e1093cae8aa4b0d237385b98a9b1f9dcb685d1acbd3eb9c9126469d2d7f7c9"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"file": "THIRD_PARTY_NOTICES.md",
|
|
14
|
-
"sha256": "
|
|
14
|
+
"sha256": "22f32c874c10f702e0546447e4b6b61430a06a3519660f39f6907dca6b9bc768"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"file": "sbom.cdx.json",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "6f7eea44480715234427af385bf1d4e4f7914817a7f43f13a97db3fd0453bfbe"
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"schemaVersion": 1
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -51,7 +51,7 @@ Evidence: Bun metafile input
|
|
|
51
51
|
License: Apache-2.0
|
|
52
52
|
Source: git+https://github.com/asyncapi/spec-json-schemas.git
|
|
53
53
|
|
|
54
|
-
## @babel/runtime 7.29.
|
|
54
|
+
## @babel/runtime 7.29.14
|
|
55
55
|
|
|
56
56
|
Evidence: Declared required dependency closure
|
|
57
57
|
License: MIT
|
|
@@ -157,7 +157,7 @@ Evidence: Bun metafile input
|
|
|
157
157
|
License: Apache-2.0
|
|
158
158
|
Source: https://github.com/stoplightio/path
|
|
159
159
|
|
|
160
|
-
## @stoplight/spectral-core 1.24.
|
|
160
|
+
## @stoplight/spectral-core 1.24.1
|
|
161
161
|
|
|
162
162
|
Evidence: Bun metafile input
|
|
163
163
|
License: Apache-2.0
|
|
@@ -169,7 +169,7 @@ Evidence: Bun metafile input
|
|
|
169
169
|
License: Apache-2.0
|
|
170
170
|
Source: https://github.com/stoplightio/spectral
|
|
171
171
|
|
|
172
|
-
## @stoplight/spectral-functions 1.11.
|
|
172
|
+
## @stoplight/spectral-functions 1.11.1
|
|
173
173
|
|
|
174
174
|
Evidence: Bun metafile input
|
|
175
175
|
License: Apache-2.0
|
|
@@ -35,7 +35,11 @@ change. The only force-family flag is branch cleanup's `--force-with-lease`, pin
|
|
|
35
35
|
verified commit, which makes the remote delete conditional.
|
|
36
36
|
|
|
37
37
|
1. **`pr --create-draft` and `pr --create`** push the Mission branch and create a pull request after
|
|
38
|
-
every PR gate passes.
|
|
38
|
+
every PR gate passes. In a terminal they ask first. Anywhere else they only print the creation
|
|
39
|
+
preview and its fingerprint; show that preview to the person, and after they approve it run the same
|
|
40
|
+
command with `--yes --fingerprint <fingerprint>`. It creates exactly the previewed pull request and
|
|
41
|
+
refuses when the repository, head, base, title, body, or mode changed. Never pass a fingerprint the
|
|
42
|
+
person did not approve.
|
|
39
43
|
2. **`cleanup <key> --yes`** deletes a merged and deployed branch. Without `--yes` the command only
|
|
40
44
|
previews. It runs only when every check passes:
|
|
41
45
|
- for a flow with the `pr.ready` step, the latest `pr status` reading is `ready` at the pull request's
|
|
@@ -5,7 +5,7 @@ title: Mission Intake Pre-Edit Check
|
|
|
5
5
|
description: "Stops the first file edit of an agent session that is not linked to a Mission until the user links an issue, starts a local Mission, or opts out, as the repository's mission.intake policy requires."
|
|
6
6
|
event: PreToolUse
|
|
7
7
|
matcher: "Edit|Write|MultiEdit|NotebookEdit|apply_patch"
|
|
8
|
-
target: sumr-mission-intake-pre-edit
|
|
8
|
+
target: sumr-mission-intake-pre-edit.sh
|
|
9
9
|
timeout: 15
|
|
10
10
|
statusMessage: "Checking Mission intake"
|
|
11
11
|
tags: [lifecycle, mission, intake]
|
|
@@ -105,8 +105,10 @@ dispatch, and whether to use TDD, debugging protocols, or worktrees.
|
|
|
105
105
|
|
|
106
106
|
Mission ledger, evidence-import, and finish commands never push, create or remove worktrees, delete
|
|
107
107
|
branches, merge, or mutate a work provider. There are two explicit bounded external exceptions. The
|
|
108
|
-
first is `pr --create-draft` and `pr --create`: after every PR safety gate passes, these commands
|
|
109
|
-
|
|
108
|
+
first is `pr --create-draft` and `pr --create`: after every PR safety gate passes, these commands need
|
|
109
|
+
a person's approval before pushing and creating the remote PR: a prompt in a terminal, or elsewhere a
|
|
110
|
+
creation preview whose fingerprint the person approves and the command then receives as
|
|
111
|
+
`--yes --fingerprint <fingerprint>`. If the provider already merged a pull
|
|
110
112
|
request from the Mission branch at the current HEAD, they record it instead, without asking or pushing.
|
|
111
113
|
The second is `cleanup --yes`: after the pull request is merged, its deployment runs succeeded, and
|
|
112
114
|
every other check passes, it removes the branch (and a recorded linked worktree) with git commands that never
|
|
@@ -72,7 +72,7 @@ the transfer. It does not transfer a pending, in-progress or blocked task, recla
|
|
|
72
72
|
or grant control of a run, and a process that carries a worker's lease is refused it. Do not impersonate an old actor or edit the ledger to evade those controls.
|
|
73
73
|
|
|
74
74
|
The authenticated identity must satisfy the
|
|
75
|
-
[task-transfer authorization policy](
|
|
75
|
+
[task-transfer authorization policy](task-transfer-authorization/overview.md) at preview and again during apply.
|
|
76
76
|
A task actor label is attribution, not authorization. Missing authentication, unavailable permission
|
|
77
77
|
lookups, or insufficient permission refuse the operation without changing ownership.
|
|
78
78
|
|
|
@@ -24,6 +24,14 @@ separate bound approval command only after the user or trusted automation has ex
|
|
|
24
24
|
the exact presented revision and fingerprint. Never ask for approval from a status summary or plan
|
|
25
25
|
path alone.
|
|
26
26
|
|
|
27
|
+
`approve` records who approved as the verified login of the authenticated `gh` session
|
|
28
|
+
(`plan.acceptedBy`, with `plan.approver.source: github`). When `gh` reports no login the approval is
|
|
29
|
+
refused and nothing is written: ask the person to run `gh auth login`. Pass
|
|
30
|
+
`--unverified-approver <name>` only when the person tells you to record the approval without a
|
|
31
|
+
verified identity; it is stored as `approver.source: unverified`. The login names the account whose
|
|
32
|
+
session ran the command, so an agent using the owner's session records the owner's login: wait for the
|
|
33
|
+
person's approval before you run it.
|
|
34
|
+
|
|
27
35
|
Before asking the user to approve, run `plan show --json` and render all of these fields in the
|
|
28
36
|
conversation or native approval surface:
|
|
29
37
|
|
|
@@ -105,7 +105,7 @@ as the branch moves on. Mission records evidence and gates, it does not edit cod
|
|
|
105
105
|
`sumr mission reopen` is for a QA rejection: it drops the validation and quality reports. What clears the
|
|
106
106
|
recorded pull request is a new validation or quality report, a changed plan, or `sumr mission task reopen`
|
|
107
107
|
(which also clears the finish disposition), and `pr status` then says Mission records no pull request.
|
|
108
|
-
Walk the delivery again to `pr --create`, which
|
|
108
|
+
Walk the delivery again to `pr --create`, which needs approval (a prompt, or its previewed fingerprint): the reports, the preview,
|
|
109
109
|
`--accept-preview`. The findings Mission imported, their resolutions, and the last reading stay, and the
|
|
110
110
|
next `pr status` judges them at the new head. If the provider already has a pull request open for the
|
|
111
111
|
branch, tell the person instead of working around it.
|
|
@@ -15,7 +15,9 @@ Use this workflow after implementation and validation evidence exists.
|
|
|
15
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
17
|
6. Record the reviewed body with `sumr mission pr <key> --accept-preview`.
|
|
18
|
-
7. Ask before `--create-draft` or `--create`.
|
|
18
|
+
7. Ask before `--create-draft` or `--create`. Without a terminal, run the command once to print the
|
|
19
|
+
creation preview and its fingerprint, show the person that preview, and only after they approve it run
|
|
20
|
+
the command again with `--yes --fingerprint <fingerprint>`. If the pull request was already merged from this branch at
|
|
19
21
|
HEAD, either command records it without pushing or creating anything.
|
|
20
22
|
|
|
21
23
|
After the pull request exists, keep it ready before finishing: run `sumr mission pr status <key>`, fix
|
|
@@ -81,13 +81,15 @@ intent once at the top level.
|
|
|
81
81
|
| Assistant | Manual control | Model control |
|
|
82
82
|
| --- | --- | --- |
|
|
83
83
|
| Claude, Copilot, Cursor | `user-invocable` | `disable-model-invocation`, inverse of `model-invocable` |
|
|
84
|
-
| Codex | Native manual access unchanged;
|
|
85
|
-
| OpenCode V2 | Native manual access unchanged;
|
|
86
|
-
| Gemini CLI | Native manual access unchanged;
|
|
84
|
+
| Codex | Native manual access unchanged; explicit `user-invocable` warns | `policy.allow_implicit_invocation` in `agents/openai.yaml` |
|
|
85
|
+
| OpenCode V2 | Native manual access unchanged; explicit `user-invocable` warns | `metadata.opencode/autoinvoke` |
|
|
86
|
+
| Gemini CLI | Native manual access unchanged; explicit `user-invocable` warns | No verified equivalent; false blocks validation and sync |
|
|
87
87
|
|
|
88
88
|
Cursor manual policy is documented for CLI; IDE enforcement is unverified.
|
|
89
|
-
Unsupported manual controls warn
|
|
90
|
-
|
|
89
|
+
Unsupported or unverified manual controls warn only for skills that set
|
|
90
|
+
`user-invocable`; an omitted field is the silent default. Unsupported model
|
|
91
|
+
restrictions fail before rendering or pruning. Never substitute one axis for
|
|
92
|
+
the other.
|
|
91
93
|
|
|
92
94
|
Codex sidecars are generated only for an explicit model policy or an existing
|
|
93
95
|
managed sidecar. Removing the source field resets a managed sidecar to true.
|
|
@@ -147,9 +147,10 @@ Skill Topics are model-discoverable but opt out of direct user invocation by
|
|
|
147
147
|
default. Omit `user-invocable` for normal guidance; add `user-invocable: true`
|
|
148
148
|
only for a deliberate direct entry point. Add `model-invocable: false` to make
|
|
149
149
|
that entry point manual-only; model invocation otherwise defaults to true.
|
|
150
|
-
The controls are independent.
|
|
151
|
-
access;
|
|
152
|
-
|
|
150
|
+
The controls are independent. Explicit manual controls warn where unsupported
|
|
151
|
+
or unverified and keep native access; omitted fields never warn. Unsupported
|
|
152
|
+
model restrictions block generation. Commands retain their separate
|
|
153
|
+
user-invoked behavior.
|
|
153
154
|
|
|
154
155
|
## Reference Files
|
|
155
156
|
|
package/ai/registry.json
CHANGED