@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.
@@ -3,19 +3,19 @@
3
3
  "files": [
4
4
  {
5
5
  "file": "index.js",
6
- "sha256": "7355d2becb72bf16d4983664ab4b505ad6ad868f212df87da9268de4cb3e7e2a"
6
+ "sha256": "428718dbfaabbd76072438666dcbfc6a6a9eec7b5989695fc4c39f2c403ff1cb"
7
7
  },
8
8
  {
9
9
  "file": "index.js.jsc",
10
- "sha256": "7bad101916a667a0fc3ed2ded5d5b1e91b5c0d03e739d2e8394b5fb6ba24c591"
10
+ "sha256": "87e1093cae8aa4b0d237385b98a9b1f9dcb685d1acbd3eb9c9126469d2d7f7c9"
11
11
  },
12
12
  {
13
13
  "file": "THIRD_PARTY_NOTICES.md",
14
- "sha256": "ae38086c8d3243d02011480a313cf2282874fdcc13b08279ad709afed030f0dd"
14
+ "sha256": "22f32c874c10f702e0546447e4b6b61430a06a3519660f39f6907dca6b9bc768"
15
15
  },
16
16
  {
17
17
  "file": "sbom.cdx.json",
18
- "sha256": "765417add061882fe0c7acf5981169989a551d2f3b557c4c5c4b5bc0f18e2d20"
18
+ "sha256": "6f7eea44480715234427af385bf1d4e4f7914817a7f43f13a97db3fd0453bfbe"
19
19
  }
20
20
  ],
21
21
  "schemaVersion": 1
@@ -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.13
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.0
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.0
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 ask
109
- for human approval before pushing and creating the remote PR. If the provider already merged a pull
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](../docs/operations/task-transfer-authorization/overview.md) at preview and again during apply.
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 asks for approval: the reports, the preview,
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`. If the pull request was already merged from this branch at
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
@@ -135,7 +135,6 @@ spec:
135
135
  module: mission
136
136
  roots:
137
137
  - ./resources
138
- - ./docs/operations/task-transfer-authorization
139
138
  binaries: []
140
139
  resources: []
141
140
  flags:
@@ -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; warning | `policy.allow_implicit_invocation` in `agents/openai.yaml` |
85
- | OpenCode V2 | Native manual access unchanged; warning | `metadata.opencode/autoinvoke` |
86
- | Gemini CLI | Native manual access unchanged; warning | No verified equivalent; false blocks validation and sync |
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, but unsupported model restrictions fail
90
- before rendering or pruning. Never substitute one axis for the other.
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. Unsupported manual controls warn and keep native
151
- access; unsupported model restrictions block generation. Commands retain their
152
- separate user-invoked behavior.
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
@@ -8,10 +8,6 @@
8
8
  "label": "mission",
9
9
  "path": "./ai/modules/mission/resources"
10
10
  },
11
- {
12
- "label": "mission",
13
- "path": "./ai/modules/mission/docs/operations/task-transfer-authorization"
14
- },
15
11
  {
16
12
  "label": "playbook",
17
13
  "path": "./ai/modules/playbook/resources"