@1aboveio/skills 1.0.21 → 1.0.22
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/.codex-plugin/plugin.json +1 -1
- package/.codex-plugin/resources.json +150 -147
- package/package.json +4 -4
- package/skills/app-dev/airflow/SKILL.md +1 -1
- package/skills/app-dev/android-development/SKILL.md +1 -1
- package/skills/app-dev/app-debug/SKILL.md +1 -1
- package/skills/app-dev/better-auth/SKILL.md +1 -1
- package/skills/app-dev/data-catalog/SKILL.md +1 -1
- package/skills/app-dev/data-quality/SKILL.md +1 -1
- package/skills/app-dev/ios-foundation/SKILL.md +1 -1
- package/skills/app-dev/maestro/SKILL.md +1 -1
- package/skills/app-dev/monorepo/SKILL.md +1 -1
- package/skills/app-dev/nextjs-fullstack/SKILL.md +1 -1
- package/skills/app-dev/prisma-setup/SKILL.md +1 -1
- package/skills/app-dev/pyspark/SKILL.md +1 -1
- package/skills/app-dev/python-backend/SKILL.md +1 -1
- package/skills/app-dev/shadcn/SKILL.md +1 -1
- package/skills/app-dev/zod-v4/SKILL.md +1 -1
- package/skills/cicd/cloud-build/SKILL.md +1 -1
- package/skills/cicd/cloud-debug/SKILL.md +1 -1
- package/skills/cicd/cloud-deploy/SKILL.md +1 -1
- package/skills/cicd/docker/SKILL.md +1 -1
- package/skills/cicd/github-actions/SKILL.md +4 -2
- package/skills/cicd/github-actions/references/debugging.md +21 -0
- package/skills/cicd/github-actions/references/post-deploy-and-publishing.md +7 -0
- package/skills/cicd/github-actions/scripts/watch-run.mjs +511 -0
- package/skills/cicd/github-flow/SKILL.md +35 -9
- package/skills/cicd/github-flow/scripts/watch-checks.mjs +561 -0
- package/skills/cicd/google-cloud/SKILL.md +1 -1
- package/skills/cicd/mergify/SKILL.md +2 -2
- package/skills/cicd/mergify/references/diagnosis.md +6 -1
- package/skills/cicd/mergify/references/watch-contract.md +10 -7
- package/skills/cicd/mergify/scripts/watch-pr-delivery-core.mjs +15 -30
- package/skills/cicd/podman/SKILL.md +1 -1
- package/skills/content/article-review/SKILL.md +1 -1
- package/skills/content/article-to-image/SKILL.md +1 -1
- package/skills/content/flowchart-svg/SKILL.md +1 -1
- package/skills/content/image-gen/SKILL.md +1 -1
- package/skills/content/mermaid/SKILL.md +1 -1
- package/skills/content/wechat-article-writer/SKILL.md +1 -1
- package/skills/content/wechat-publisher/SKILL.md +1 -1
- package/skills/content/wechat-search/SKILL.md +1 -1
- package/skills/content/xai-search/SKILL.md +1 -1
- package/skills/core/distill-writing/SKILL.md +1 -1
- package/skills/core/doc-to-md/SKILL.md +1 -1
- package/skills/core/editorial-review/SKILL.md +1 -1
- package/skills/core/house-style/SKILL.md +1 -1
- package/skills/core/plain-language/SKILL.md +1 -1
- package/skills/core/polish-cn/SKILL.md +1 -1
- package/skills/core/reg-parser/SKILL.md +1 -1
- package/skills/core/terminology/SKILL.md +1 -1
- package/skills/core/write-doc/SKILL.md +1 -1
- package/skills/core/write-report/SKILL.md +1 -1
- package/skills/engineering/better-review/SKILL.md +1 -1
- package/skills/engineering/e2e-test/SKILL.md +1 -1
- package/skills/engineering/engineering/SKILL.md +1 -1
- package/skills/engineering/engineering-runtime/SKILL.md +1 -1
- package/skills/engineering/engineering-runtime/coherence/workflow.json +13 -13
- package/skills/engineering/ensure-coverage/SKILL.md +1 -1
- package/skills/engineering/golden-path/SKILL.md +1 -1
- package/skills/engineering/harness-runtime/SKILL.md +2 -1
- package/skills/engineering/harness-runtime/contracts.md +2 -0
- package/skills/engineering/harness-runtime/references/subagent-sessions.md +75 -0
- package/skills/engineering/resolve-issues/SKILL.md +2 -2
- package/skills/engineering/resolve-issues/references/ci.md +2 -4
- package/skills/engineering/resolve-issues/references/delivery-progress.md +1 -1
- package/skills/engineering/resolve-issues/references/done.md +3 -6
- package/skills/engineering/resolve-issues/references/expire.md +2 -2
- package/skills/engineering/resolve-issues/references/implementation.md +52 -41
- package/skills/engineering/resolve-issues/references/review.md +18 -19
- package/skills/engineering/resolve-issues/references/shared-modules.md +7 -1
- package/skills/engineering/resolve-issues/references/task-plan.md +18 -10
- package/skills/engineering/resolve-issues/scripts/next-actions.mjs +42 -32
- package/skills/engineering/resolve-release/SKILL.md +1 -1
- package/skills/engineering/resolve-release/references/publish.md +12 -4
- package/skills/engineering/resolve-release/references/workspace-npm.md +6 -4
- package/skills/engineering/rush-issues/SKILL.md +1 -1
- package/skills/engineering/rush-release/SKILL.md +1 -1
- package/skills/engineering/test-quality/SKILL.md +1 -1
- package/skills/risk-compliance/compliance-audit/SKILL.md +1 -1
- package/skills/risk-compliance/contract-compare/SKILL.md +1 -1
- package/skills/risk-compliance/contract-review/SKILL.md +1 -1
- package/skills/risk-compliance/doc-authenticity/SKILL.md +1 -1
- package/skills/risk-compliance/fraud-detection/SKILL.md +1 -1
- package/skills/risk-compliance/payment-analysis/SKILL.md +1 -1
- package/skills/risk-compliance/portfolio-payment-analysis/SKILL.md +1 -1
- package/skills/risk-compliance/similar-domain/SKILL.md +1 -1
- package/skills/risk-compliance/tld-detection/SKILL.md +1 -1
|
@@ -45,7 +45,7 @@ issue or automatic scheduler gate. They do not waive required validation.
|
|
|
45
45
|
|
|
46
46
|
## Every brief contains
|
|
47
47
|
|
|
48
|
-
Use the full checklist for a fresh or replacement worker. For a
|
|
48
|
+
Use the full checklist for a fresh or replacement worker. For a continued conversation,
|
|
49
49
|
send the new feedback, current checkpoint, latest failure/fix brief and local evidence,
|
|
50
50
|
current standing orders and changed decisions, affected skill/proof pointers, and new
|
|
51
51
|
result path. Re-read the saved source/criteria after context loss; do not resend the original
|
|
@@ -15,12 +15,9 @@ nothing is left to settle.
|
|
|
15
15
|
|
|
16
16
|
## Clean before handoff
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
recorded only where protection was actually held. Record any
|
|
22
|
-
resource intentionally kept under the existing lifecycle; never claim it was cleaned
|
|
23
|
-
because its worker exited.
|
|
18
|
+
Clean each delivered unit's workspace and resources at its settlement; this also applies at
|
|
19
|
+
each merge while other units continue. Record any resource intentionally kept under the
|
|
20
|
+
existing lifecycle; never claim it was cleaned because its worker exited.
|
|
24
21
|
|
|
25
22
|
Clean every delivered unit's workspace and resources before the report, in every
|
|
26
23
|
scheduler mode ([workspaces.md](workspaces.md#cleanup-after-delivery-before-finish)).
|
|
@@ -242,10 +242,10 @@ missing, or names a step without a reason.
|
|
|
242
242
|
| A capability the unit needs is missing and no unit builds it (a shared driver, fixture, or hook) | Build it inside the first unit that needs it; units that need it later get `dependsOn` on that unit. Only when that puts the unit past the size check's line limit, file it as its own issue beside them, with `blocked_by` on the units that use it, never on their parent issue. Example: three proof units each need a device-state reader: the first builds it, the other two depend on the first. |
|
|
243
243
|
| [Human-only](#human-only) blocker | Take its automatic answer ([preflight.md](preflight.md#never-block-on-the-human)); when that defers it, mark `blocked` (`blockedReason: human-decision`, its `humanItem` and `humanNeed`), keep the work, and record what is needed on its owning issue; never ship part of the unit. |
|
|
244
244
|
|
|
245
|
-
Continue the
|
|
245
|
+
Continue the saved owner in the kept workspace with the current checkpoint, findings
|
|
246
246
|
and failure evidence. If its process state or required selection prevents continuation,
|
|
247
247
|
use an explicit replacement under the [owner contract](implementation.md#implementation-owner),
|
|
248
|
-
keeping
|
|
248
|
+
keeping the replaced reference as evidence; replacement briefs use those local facts
|
|
249
249
|
rather than an old transcript. Keep the response limits and history above. Record a queue stall with the
|
|
250
250
|
provider pending as a wait and watch again. End the run only when
|
|
251
251
|
`next-actions.mjs`, invoked with [live capacity](implementation.md#live-capacity), prints `finish`, and never claim the spec complete.
|
|
@@ -56,51 +56,62 @@ accepts unrestricted writes.
|
|
|
56
56
|
|
|
57
57
|
## Implementation owner
|
|
58
58
|
|
|
59
|
+
On Pi, read the shared [saved conversation contract](../../harness-runtime/references/subagent-sessions.md)
|
|
60
|
+
for the active schema check, discovery scope, and conversation lifecycle. The rules below
|
|
61
|
+
bind that contract to unit ownership and review repairs.
|
|
62
|
+
|
|
59
63
|
Keep one implementation conversation per unit through local proof, independent review,
|
|
60
64
|
review fixes and CI repairs. Its saved conversation outlives the active worker slot: launch
|
|
61
65
|
each worker normally, single or batch as the assignment needs, and record the receipt as
|
|
62
|
-
`implementationOwner` ([task-plan.md](task-plan.md#shape))
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
66
|
+
`implementationOwner` ([task-plan.md](task-plan.md#shape)): the native `sessionId` and that
|
|
67
|
+
attempt's `runId`, kept as separate fields. A parked owner has no live process and reserves
|
|
68
|
+
no slot. The coordinator still owns scheduling, plan writes, external CI, readiness and
|
|
69
|
+
delivery; reviewers use separate conversations.
|
|
70
|
+
|
|
71
|
+
Continuation is a spawn into the saved session, not a resume call:
|
|
72
|
+
`subagent_spawn({session_id: owner.sessionId, prompt: <current brief>})` continues that exact
|
|
73
|
+
native session and returns a new attempt `runId` with the same `sessionId`. Record the new
|
|
74
|
+
`runId` as `implementationOwner.runId` and keep the `sessionId`. Never pass an attempt `runId`
|
|
75
|
+
as `session_id`, and never invent a session id a receipt does not hold: a first launch can show
|
|
76
|
+
similar-looking ids, which is not evidence they are interchangeable. Continue from a completed
|
|
77
|
+
attempt: a running or orphaned writer settles first. A conversation started
|
|
78
|
+
from another foreground session still continues: the launch origin does not restrict
|
|
79
|
+
continuation. `subagent_list()` covers the caller's folder and descendants across foreground
|
|
80
|
+
sessions; `all: true` searches globally.
|
|
81
|
+
In a batch, the job's own selector continues that job's session.
|
|
82
|
+
|
|
83
|
+
`next-actions.mjs` supplies `continuation`, `workerKind`, and, for `owner-resume` or
|
|
84
|
+
`owner-recovery`, `owner`.
|
|
85
|
+
Selection follows [continuation versus new launch](task-plan.md#worker-selection-on-resume):
|
|
86
|
+
omit model/effort for ordinary continuation. Use only authorized, supported explicit
|
|
87
|
+
overrides; when a required role-only fill cannot be expressed by the continuation call,
|
|
88
|
+
replace from that fill with the retained evidence instead of creating a pin from its resolved
|
|
89
|
+
model ID. `session_name` selects an existing conversation by an exact, unambiguous name
|
|
90
|
+
within the caller's folder and descendants; it does not name a new conversation. Fresh
|
|
91
|
+
launches omit both session selectors and may use an advertised fresh-launch naming control.
|
|
92
|
+
A workflow that records ids continues
|
|
93
|
+
`implementationOwner.sessionId` rather than looking a session up by name. Clear `worker` when
|
|
94
|
+
an attempt ends, but keep `implementationOwner` while review or CI is pending. Keep all
|
|
95
|
+
counters and earlier results across attempts. `one-by-one` fixes findings sequentially in this
|
|
96
|
+
owner.
|
|
80
97
|
|
|
81
98
|
A missing history/workspace, an unusable saved owner, or an owner that cannot continue
|
|
82
99
|
requires an explicit replacement reason and the retained checkpoint, failures and reproducer
|
|
83
|
-
references in the replacement brief.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
recorded as done.
|
|
99
|
-
|
|
100
|
-
Reopening is the ordinary case: resume the saved conversation even when its protection was
|
|
101
|
-
released, because release stops protection and leaves the history in place. Start a fresh
|
|
102
|
-
replacement only when continuation is genuinely unavailable, and carry the original
|
|
103
|
-
checkpoint/findings/counters into it. The same rule covers a released unfinished review,
|
|
100
|
+
references in the replacement brief. Report lost continuity; never label a new conversation a
|
|
101
|
+
resume. Existing recovery/stop rules still apply, and old plans without an owner use the
|
|
102
|
+
fresh-worker path. Do not install or update the harness during a run merely to obtain
|
|
103
|
+
continuation.
|
|
104
|
+
|
|
105
|
+
A plan written before this contract may hold `implementationOwner {runId}` and no `sessionId`.
|
|
106
|
+
`next-actions.mjs` prints `continuation: "owner-recovery"` for it: first match that exact
|
|
107
|
+
`runId` in `subagent_list({all: true})` or in the verified spawn receipt. A match that names
|
|
108
|
+
its session continues that session and records both ids; with no match, launch an explicit
|
|
109
|
+
replacement with the retained evidence and say why. A `retentionReleased` field left on an old
|
|
110
|
+
plan is inert history: no step reads it, reverses it, or owes a release for it.
|
|
111
|
+
|
|
112
|
+
Reopening is the ordinary case: continue the saved session; there is no release step in the way.
|
|
113
|
+
Start a fresh replacement only when continuation is genuinely unavailable, and carry the
|
|
114
|
+
original checkpoint/findings/counters into it. The same rule covers an unfinished review,
|
|
104
115
|
keeping its round and existing full-review fallback.
|
|
105
116
|
|
|
106
117
|
## Brief
|
|
@@ -171,10 +182,10 @@ On `resume` (in flight, no worker, code not done), continue the unit's
|
|
|
171
182
|
not prohibit long local tests or builds needed for the assigned validation.
|
|
172
183
|
|
|
173
184
|
After 2 fix cycles without progress, or a stuck or late worker, follow
|
|
174
|
-
[expire.md](expire.md). Apply the next response through the
|
|
185
|
+
[expire.md](expire.md). Apply the next response through the saved owner where its
|
|
175
186
|
completed conversation and required launch controls permit continuation. A replacement
|
|
176
187
|
uses the same workspace and the findings entry, failing command/output and `git diff <base>`;
|
|
177
|
-
record why it replaces the owner and
|
|
188
|
+
record why it replaces the owner and keep the replaced reference as evidence. Give replacement
|
|
178
189
|
workers those local facts rather than copying the old transcript. Keep all progress counters.
|
|
179
190
|
|
|
180
191
|
## Proof
|
|
@@ -11,10 +11,10 @@ restate its rules in the brief beyond the two below.
|
|
|
11
11
|
- Start a fresh reviewer conversation after each completed review round; the existing
|
|
12
12
|
scope script still chooses delta/full/skip, so freshness adds no review round or test
|
|
13
13
|
campaign. Give it retained records and code evidence as claims to verify, not an
|
|
14
|
-
implementer transcript. Launch it normally and keep its
|
|
15
|
-
`reviewSession`, separate from `implementationOwner`, so an unfinished
|
|
16
|
-
can continue in that saved
|
|
17
|
-
|
|
14
|
+
implementer transcript. Launch it normally and keep its `sessionId` and latest attempt
|
|
15
|
+
`runId` as `reviewSession`, separate from `implementationOwner`, so an unfinished
|
|
16
|
+
same-HEAD round can continue in that saved session; a round after a completed review is a
|
|
17
|
+
fresh conversation.
|
|
18
18
|
- Reviewer model: a different id from the implementer's
|
|
19
19
|
([preflight.md](preflight.md#1-model-slots)). Launch the reviewer with the
|
|
20
20
|
plan's recorded reviewer fill — its `launch`, `instructions`, `selection` and
|
|
@@ -126,23 +126,22 @@ the unfinished work rather than repeating the whole assignment; preserve complet
|
|
|
126
126
|
valid passes. A wrong HEAD or invalid scope must be corrected, not carried as
|
|
127
127
|
completed proof.
|
|
128
128
|
|
|
129
|
-
On Pi, use `
|
|
130
|
-
when that attempt completed as a process and its saved
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
On Pi, use `subagent_spawn({session_id: reviewSession.sessionId, prompt: <unfinished work>})`
|
|
130
|
+
when that attempt completed as a process and its saved session is available; it returns a new
|
|
131
|
+
attempt `runId` on the same session, so record that `runId` and keep the `sessionId`, preserving
|
|
132
|
+
this review's round, HEAD and counter. A saved record holding only `runId` needs recovery first:
|
|
133
|
+
match that exact attempt in `subagent_list({all: true})` or the verified spawn receipt, continue
|
|
134
|
+
the session it names, and replace it with retained evidence if nothing matches; never pass the
|
|
135
|
+
attempt id as `session_id`. A killed/lost attempt or an unavailable continuation follows
|
|
136
|
+
replacement below. Once the review record is complete, the next required review is a fresh
|
|
137
|
+
conversation. Clear `reviewSession` when the round completes; keep a replaced reviewer's
|
|
138
|
+
reference in `retiredSessions` as evidence, with no release operation owed. Never use a
|
|
139
|
+
reviewer as the implementation owner.
|
|
138
140
|
|
|
139
141
|
If that reviewer cannot continue, state why replacement is necessary, which
|
|
140
|
-
retained evidence the replacement reads, and what it redoes before launching it.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
While an old reference is still worth resuming or still needs release, keep it as an entry
|
|
144
|
-
in `retiredSessions` ([task-plan.md](task-plan.md#shape)) rather than dropping it; a later
|
|
145
|
-
release of the new session does not release the old conversation. The replacement reviews every pass with `tier: "full"`. Keep the round number,
|
|
142
|
+
retained evidence the replacement reads, and what it redoes before launching it. A
|
|
143
|
+
`retentionReleased` field on an old reference is inert history, not a replacement reason.
|
|
144
|
+
The replacement reviews every pass with `tier: "full"`. Keep the round number,
|
|
146
145
|
`fixRound`, unit `attempt` and earlier round files; incompleteness neither resets
|
|
147
146
|
history nor counts as progress. Launch the replacement from the same recorded
|
|
148
147
|
reviewer fill, in the same structured launch arguments as [the brief](#brief)
|
|
@@ -157,7 +157,13 @@ and substitute nothing.
|
|
|
157
157
|
|
|
158
158
|
**A blocked result ends the run.** `ok: false` — no resolver, no capabilities,
|
|
159
159
|
a declined request, an unadvertised launch control, a missing native selection —
|
|
160
|
-
means report its `code` and `reason` and start nothing.
|
|
160
|
+
means report its `code` and `reason` and start nothing. An unsupported control
|
|
161
|
+
required by the fresh-launch fill is the same block. A missing continuation selector
|
|
162
|
+
alone makes the saved conversation unavailable: report the active schema and use the
|
|
163
|
+
[explicit evidenced replacement](implementation.md#implementation-owner) from the
|
|
164
|
+
authorized fresh-launch fill. It does not block other runnable units. Refreshing a stale
|
|
165
|
+
runtime (`/reload`) is the user's action; never fabricate a call or install/update the
|
|
166
|
+
harness mid-run. Never reuse an earlier
|
|
161
167
|
pick, never fall back to the skill-owned catalog, and never let the reviewer share
|
|
162
168
|
the implementer's model id: the catalog enforces independence, and re-picking a
|
|
163
169
|
replacement here would silently break it.
|
|
@@ -92,9 +92,9 @@ Fleet `status`: `pending`, `in-flight`, `succeeded`, `failed`,
|
|
|
92
92
|
| `attempt`, `retries`, `escalations` | Attempt number; cycle counts; escalation-model attempts |
|
|
93
93
|
| `worker`, `workerSince`, `clock` | Slot identifier of any worker running for the unit (implementer, reviewer, fix), `null` when none; when that worker started (ISO time, for [stuck-worker checks](expire.md#waits)); attempt and cumulative wall time |
|
|
94
94
|
| `workerKind` | `implement`, `fix`, or `review`, set with `worker`; the [live-capacity scheduler](implementation.md#live-capacity) (`next-actions.mjs`) prints `worker-kind` for any other kind or none. An infrastructure diagnosis or a test-first worker is a `fix` worker. The explorer is the `explore` fleet row's worker, never a unit's; a merge-queue watcher is not a worker |
|
|
95
|
-
| `implementationOwner` |
|
|
96
|
-
| `reviewSession` | Optional `{
|
|
97
|
-
| `retiredSessions` | Optional references kept beside a replaced implementation owner or unfinished reviewer: `{
|
|
95
|
+
| `implementationOwner` | Saved implementation conversation: `{sessionId, runId?, cwd?, kind?}`. `sessionId` is the native session to continue and is what `subagent_spawn({session_id})` takes; `runId` is that session's latest attempt, never a `session_id`. `kind` is `implement` (default) or `fix`, never `review`; `cwd`, when recorded, matches `workspace`. Save the spawn receipt here, independently of `worker`; a parked owner occupies no slot. The scheduler emits `owner-resume` for a usable owner, `owner-recovery` for a legacy record that holds only an attempt id, or an explicit `ownerUnavailable` reason for replacement. `retentionReleased` on an old plan is inert history: nothing reads or releases it. Old plans remain readable. See [ownership](implementation.md#implementation-owner). |
|
|
96
|
+
| `reviewSession` | Optional `{sessionId, runId?, head, round}` for the current unfinished review: the same session/attempt split, continued only for the same HEAD and scope. Clear it when that round completes, so the next completed-review round starts fresh. It is never an implementation owner or a slot reservation. |
|
|
97
|
+
| `retiredSessions` | Optional references kept beside a replaced implementation owner or unfinished reviewer: `{sessionId?, runId?, kind, reason?}`. Only as evidence for the replacement brief and for the record; no release operation is owed. |
|
|
98
98
|
| `estimatedLines` | Preflight assessment estimate |
|
|
99
99
|
| `sizeCheck` | Measures, `verdict` (the size check's per-unit verdict; `stop` means held), scope and proof verdicts, split or verification path; `runWhole: true` once a recommendation to run a held unit whole is accepted |
|
|
100
100
|
| `note` | SHA, expiry reason code, failure and response, or blocker; for active debugging, the immediate acceptance checkpoint, baseline/result link and next distinguishing test ([delivery progress](../SKILL.md#delivery-progress)) |
|
|
@@ -160,13 +160,21 @@ recommendation's reason; its human's words are the invocation.
|
|
|
160
160
|
### Worker selection on resume
|
|
161
161
|
|
|
162
162
|
Distinguish resuming the workflow from continuing one saved conversation. For an ordinary
|
|
163
|
-
same-conversation
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
163
|
+
same-conversation continuation call `subagent_spawn({session_id: <saved sessionId>, prompt:
|
|
164
|
+
<new feedback>})`: it continues that exact native session and returns a new attempt id, so omit
|
|
165
|
+
role, model and effort and let the harness preserve its recorded recipe. An attempt `runId` is
|
|
166
|
+
never a `session_id`, and no session id is invented for a record that lacks one. A batch carries
|
|
167
|
+
its selector per job: each job in `subagent_spawn_batch({shared, jobs})` names its own session;
|
|
168
|
+
the shared part does not. There is no public resume, release or retain-session call in this
|
|
169
|
+
contract, so never invoke one. If only the continuation selector is missing, report the
|
|
170
|
+
actual schema and lost continuity, then use the explicit evidenced replacement from the
|
|
171
|
+
authorized fresh-launch fill. If that fresh fill requires an unsupported control, the
|
|
172
|
+
catalog's blocked-result rule applies. `/reload` is the user's action; never install or
|
|
173
|
+
update the harness mid-run to gain a capability. A required changed selection can continue only through controls both explicitly
|
|
174
|
+
authorized and advertised by that call; otherwise record why replacement is needed and launch
|
|
175
|
+
fresh from the required fill with its retained evidence. A resolved role default alone never
|
|
176
|
+
authorizes a model pin. Keep the original model/effort as run evidence and preserve all
|
|
177
|
+
review/progress counters.
|
|
170
178
|
|
|
171
179
|
**A fresh or replacement launch repeats the saved fill, never a reconstruction of it.** On Pi the
|
|
172
180
|
launch authority stays the live role resolver ([shared-modules.md](shared-modules.md#model-slots)):
|
|
@@ -75,27 +75,29 @@
|
|
|
75
75
|
// fetch failed, it prints `sync` instead. A run never finishes on a tree it
|
|
76
76
|
// could not read
|
|
77
77
|
//
|
|
78
|
-
// A unit's optional `implementationOwner` is the
|
|
79
|
-
//
|
|
80
|
-
//
|
|
81
|
-
//
|
|
82
|
-
// independent of `worker`, which records whichever worker is active now, so the owner survives
|
|
83
|
-
// review phase and a later fix continues the same
|
|
78
|
+
// A unit's optional `implementationOwner` is the implement-or-fix conversation that outlives the
|
|
79
|
+
// worker slot, recorded from the harness as { sessionId, runId?, cwd?, kind }: `sessionId` is the
|
|
80
|
+
// native conversation to continue, `runId` is its latest attempt, `kind` ("implement" or "fix",
|
|
81
|
+
// default "implement") says which worker owned it, and `cwd` (the unit's workspace) is its tree. It
|
|
82
|
+
// is independent of `worker`, which records whichever worker is active now, so the owner survives
|
|
83
|
+
// the review phase and a later fix continues the same session instead of starting over.
|
|
84
84
|
//
|
|
85
85
|
// Every action that spawns a worker therefore carries the structured continuation the coordinator
|
|
86
|
-
// launches, beside its name
|
|
87
|
-
// normally
|
|
88
|
-
// `
|
|
89
|
-
//
|
|
90
|
-
//
|
|
91
|
-
//
|
|
92
|
-
//
|
|
93
|
-
//
|
|
94
|
-
//
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
//
|
|
86
|
+
// launches, beside its name. `continuation: "fresh"` is a first start or a new worker, launched
|
|
87
|
+
// normally with no session argument. Implement and fix sessions become the unit's owner;
|
|
88
|
+
// `continuation: "owner-resume"` with `owner: { sessionId, runId?, kind, cwd? }` for a fix, a
|
|
89
|
+
// restack, or an unfinished implementation continues that exact session with
|
|
90
|
+
// subagent_spawn({ session_id: owner.sessionId, prompt }), which returns a new attempt id and keeps
|
|
91
|
+
// the session. An attempt `runId` is never passed as `session_id`. A plan written before that
|
|
92
|
+
// contract may hold only `runId`; it prints `continuation: "owner-recovery"` so the coordinator
|
|
93
|
+
// matches that exact attempt in subagent_list({ all: true }) or a verified receipt, and otherwise
|
|
94
|
+
// replaces it with the retained evidence. `workerKind` names the slot the action launches. A review
|
|
95
|
+
// round is always a fresh reviewer: a finished review is never resumed, and a review recorded as
|
|
96
|
+
// an owner is not usable. An owner with neither a `sessionId` nor a `runId`, with a `kind` outside
|
|
97
|
+
// implement and fix, or whose `cwd` is not the unit's workspace is not usable, so a fresh action
|
|
98
|
+
// reports ownerUnavailable rather than claiming continuity. A `retentionReleased` field on an old
|
|
99
|
+
// plan is inert history: no action reads or reverses it. A completed worker holds no slot: the
|
|
100
|
+
// owner is a reference, never an occupancy.
|
|
99
101
|
//
|
|
100
102
|
// Text output ends with one short line pointing to the skill path. With --resume or --rules it
|
|
101
103
|
// ends with RULES instead, the rules a compaction summary most often drops (in narrow and off
|
|
@@ -205,23 +207,27 @@ export function normalizeCapacity(input) {
|
|
|
205
207
|
const hasWorker = (u) => u.worker !== undefined && u.worker !== null && u.worker !== ''
|
|
206
208
|
const codeDone = (u) => u.stage === 'done'
|
|
207
209
|
|
|
208
|
-
// A unit's
|
|
209
|
-
//
|
|
210
|
-
//
|
|
211
|
-
//
|
|
212
|
-
//
|
|
210
|
+
// A unit's saved implementation owner, normalized to { runId?, kind, sessionId?, cwd? }, or null.
|
|
211
|
+
// `sessionId` is the native conversation to continue and `runId` its latest attempt; an owner with
|
|
212
|
+
// a session (and optionally its attempt) is usable, while a legacy owner with only an attempt is
|
|
213
|
+
// recoverable, not usable: the coordinator matches that exact attempt to its session first. Its
|
|
214
|
+
// `kind` must be an implement or fix worker (never a reviewer: a finished review is never resumed
|
|
215
|
+
// for the next round), and, when both are recorded, its `cwd` is the unit's workspace (a
|
|
216
|
+
// conversation cannot be continued in another tree). A plan that records nothing here keeps
|
|
217
|
+
// today's behavior: a fresh worker.
|
|
213
218
|
export function implementationOwnerOf(unit) {
|
|
214
219
|
const saved = unit?.implementationOwner
|
|
215
220
|
if (!saved || typeof saved !== 'object' || Array.isArray(saved)) return null
|
|
216
221
|
if (saved.cwd !== undefined && saved.cwd !== null && typeof saved.cwd !== 'string') return null
|
|
217
222
|
const runId = typeof saved.runId === 'string' ? saved.runId.trim() : ''
|
|
218
223
|
const kind = saved.kind === undefined ? 'implement' : saved.kind
|
|
219
|
-
if (!
|
|
224
|
+
if (!IMPLEMENTATION_OWNER_KINDS.includes(kind)) return null
|
|
225
|
+
const sessionId = typeof saved.sessionId === 'string' ? saved.sessionId.trim() : ''
|
|
226
|
+
if (!runId && !sessionId) return null
|
|
220
227
|
const cwd = typeof saved.cwd === 'string' ? saved.cwd.trim() : ''
|
|
221
228
|
const workspace = typeof unit.workspace === 'string' ? unit.workspace.trim() : ''
|
|
222
229
|
if (cwd && workspace && cwd !== workspace) return null
|
|
223
|
-
|
|
224
|
-
return { runId, kind, ...(sessionId ? { sessionId } : {}), ...(cwd ? { cwd } : {}) }
|
|
230
|
+
return { ...(runId ? { runId } : {}), kind, ...(sessionId ? { sessionId } : {}), ...(cwd ? { cwd } : {}) }
|
|
225
231
|
}
|
|
226
232
|
|
|
227
233
|
export function workspaceCleanupSettled(unit) {
|
|
@@ -390,14 +396,17 @@ export function nextActions(plan, reviews = {}, capacity, { resume = false, now,
|
|
|
390
396
|
// A new review round starts fresh even when the preceding session remains available.
|
|
391
397
|
const continuationFor = (u, workerKind) => {
|
|
392
398
|
const owner = workerKind === 'review' ? null : implementationOwnerOf(u)
|
|
393
|
-
if (owner) return { continuation: 'owner-resume', workerKind, owner }
|
|
399
|
+
if (owner?.sessionId) return { continuation: 'owner-resume', workerKind, owner }
|
|
400
|
+
if (owner) return { continuation: 'owner-recovery', workerKind, owner }
|
|
394
401
|
const ownerUnavailable = workerKind !== 'review' && u.implementationOwner != null
|
|
395
402
|
? 'Saved implementationOwner is malformed, names another role, or does not match the unit workspace; record replacement and retain its evidence.' : undefined
|
|
396
403
|
return { continuation: 'fresh', workerKind, ...(ownerUnavailable ? { ownerUnavailable } : {}) }
|
|
397
404
|
}
|
|
398
405
|
// Appended to an owner-resumed action: the work is the same, so the action keeps its name; only
|
|
399
|
-
// the launch changes, and it
|
|
400
|
-
const ownerNote = (id, owner) => `; launch it as a
|
|
406
|
+
// the launch changes, and it continues one saved session rather than starting a second one.
|
|
407
|
+
const ownerNote = (id, owner) => `; launch it as a continuation of unit ${id}'s implementation owner: subagent_spawn({ session_id: ${JSON.stringify(owner.sessionId)}, prompt: <that brief or task> }) continues that exact session and returns a new attempt id${owner.cwd ? ` in ${owner.cwd}` : ''}; record the returned id as implementationOwner.runId, confirm the receipt's session id is still that conversation, and keep sessionId ${JSON.stringify(owner.sessionId)} (an attempt id is never a session_id), keeping the owner through review`
|
|
408
|
+
// Appended when a legacy owner saved only its attempt: recover its session before replacing it.
|
|
409
|
+
const recoveryNote = (id, owner) => `; before replacing unit ${id}'s implementation owner, match its recorded attempt id ${JSON.stringify(owner.runId)} exactly in subagent_list({ all: true }) (the default list covers only this folder) or in the verified spawn receipt; a match that names its session continues with subagent_spawn({ session_id: <that session id>, prompt: <that brief or task> }) and records the returned run id and that sessionId; with no match, launch a fresh replacement from the saved fill with the retained evidence and say why continuity was lost. Never pass ${JSON.stringify(owner.runId)} as session_id`
|
|
401
410
|
const managed = (u) => plan.workspaceLifecycle === 1 || u.lifecycle?.version === 1
|
|
402
411
|
for (const u of units) {
|
|
403
412
|
if (TERMINAL.has(u.status) && hasWorker(u) && (u.status !== 'blocked' || reasonOk(u))) {
|
|
@@ -406,7 +415,7 @@ export function nextActions(plan, reviews = {}, capacity, { resume = false, now,
|
|
|
406
415
|
}
|
|
407
416
|
if (!managed(u) || u.status !== 'succeeded' || !u.workspace) continue
|
|
408
417
|
if (!hasWorker(u) && !workspaceCleanupSettled(u)) {
|
|
409
|
-
add('cleanup-workspace', u, `unit ${u.id} landed:
|
|
418
|
+
add('cleanup-workspace', u, `unit ${u.id} landed: record lifecycle.cleanup with state applying and headSha ${u.headSha ?? '(record the delivered HEAD first)'}, then run cleanup-runs.mjs cleanup --run <run> --unit ${u.id} --revision <saved planRevision> --apply --json; inspect and persist the returned lifecycle. A refusal is retained with its reason, never complete; do this before finish and alongside independent units`)
|
|
410
419
|
}
|
|
411
420
|
}
|
|
412
421
|
const chainReady = []
|
|
@@ -704,7 +713,8 @@ export function nextActions(plan, reviews = {}, capacity, { resume = false, now,
|
|
|
704
713
|
if (!workerKind) continue
|
|
705
714
|
const continuation = continuationFor(byId.get(a.unit), workerKind)
|
|
706
715
|
Object.assign(a, continuation)
|
|
707
|
-
if (continuation.owner) a.detail += ownerNote(a.unit, continuation.owner)
|
|
716
|
+
if (continuation.continuation === 'owner-resume') a.detail += ownerNote(a.unit, continuation.owner)
|
|
717
|
+
if (continuation.continuation === 'owner-recovery') a.detail += recoveryNote(a.unit, continuation.owner)
|
|
708
718
|
if (continuation.ownerUnavailable) a.detail += `; ${continuation.ownerUnavailable}`
|
|
709
719
|
}
|
|
710
720
|
const busy = units.filter(hasWorker).length
|
|
@@ -4,7 +4,7 @@ description: "Slash/explicit-only (/resolve-release). Full GitHub Flow release f
|
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
metadata:
|
|
6
6
|
workflow-role: coordinator
|
|
7
|
-
release-version: 0.50.
|
|
7
|
+
release-version: 0.50.2
|
|
8
8
|
---
|
|
9
9
|
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
10
10
|
# Resolve release
|
|
@@ -208,10 +208,18 @@ Success is stdout equal to `<nextVersion>`. An `E404` means "not published
|
|
|
208
208
|
yet" and the watcher continues. Any other npm error is inconclusive — stop
|
|
209
209
|
rather than treating it as unpublished or published.
|
|
210
210
|
|
|
211
|
-
When a GitHub Actions workflow is the npm publisher,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
When a GitHub Actions workflow is the npm publisher, the run is not the wait and a green run is
|
|
212
|
+
not a publish: `npm view` remains the only proof the artifact exists. If you need the run for
|
|
213
|
+
diagnosis, find it once by commit (`gh run list --commit <mergedSha> --limit 5 --json
|
|
214
|
+
databaseId,headSha,status,conclusion`, and refuse a run whose `headSha` is not `<mergedSha>`),
|
|
215
|
+
then read it with bounded `gh run view <id> --json status,conclusion,jobs` polls and treat a
|
|
216
|
+
**job or step transition** as the signal. `gh run watch` repaints a status line and an elapsed
|
|
217
|
+
clock every 30 seconds, so a step that stopped moving looks exactly like one that is working and
|
|
218
|
+
the step names scroll out of view; a log that grows on every tick is not evidence a publish is
|
|
219
|
+
progressing. Report the slow or stuck step by name, with its URL. (The `github-actions` skill's
|
|
220
|
+
`scripts/watch-run.mjs` does this polling when that skill is installed.) A release flow's
|
|
221
|
+
`registry` is passed as `--registry` to every npm command, and its `after-publish` steps run once
|
|
222
|
+
the artifact is proven.
|
|
215
223
|
|
|
216
224
|
## Release flow steps
|
|
217
225
|
|
|
@@ -84,10 +84,12 @@ Before each dispatch, check that the workflow's `main` ref still resolves to
|
|
|
84
84
|
the verified merged SHA and that the version is not already published with a
|
|
85
85
|
different provenance. Dispatch the discovered workflow with its documented
|
|
86
86
|
package input. Record the returned run ID; verify that run's head SHA and input
|
|
87
|
-
identify the approved merge and package. Watch the run
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
identify the approved merge and package. Watch the run's job/step transitions in
|
|
88
|
+
the background (bounded `gh run view --json status,conclusion,jobs` reads: a step
|
|
89
|
+
transition is the signal, a repainted status line is not), then independently
|
|
90
|
+
verify the exact version in the public registry, its attestation resolves to the
|
|
91
|
+
merged SHA, and its package-scoped tag peels to that SHA. The workflow, not the
|
|
92
|
+
agent, creates package tags/releases. A successful workflow
|
|
91
93
|
without registry/provenance/tag proof is not a completed publish. Only then
|
|
92
94
|
dispatch a dependent bundle. If a dispatch fails or an already-published
|
|
93
95
|
version has different provenance, stop; do not overwrite a version or tag.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: test-quality
|
|
3
3
|
description: "Seven principles for tests that catch real bugs, and an audit that reports weak, redundant, and not-coverage tests without fixing them. Use when writing, changing, or reviewing tests, or when asked whether tests are useful, redundant, over-mocked, flaky, only assert static text, or test config files, or asked to make a slow test suite faster without losing coverage, or when the user asks to write the testing conventions into a repo's CONTRIBUTING.md. NOT defining what a spec must prove (ensure-coverage) or authoring browser tests (e2e-test)."
|
|
4
|
-
release-version: 0.50.
|
|
4
|
+
release-version: 0.50.2
|
|
5
5
|
---
|
|
6
6
|
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
7
7
|
# Test Quality
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: compliance-audit
|
|
3
3
|
version: 2.9.0
|
|
4
4
|
description: "Audit operations against financial-compliance checklists (AML/KYC, VARS, PCI-DSS, TPA oversight, onboarding, transaction monitoring). Produces tracker.md (with a tracker.xlsx export) and phase-trail.md with layered validation; cites evidence by original filename. Input: reg-parser or the built-in VARS checklist."
|
|
5
|
-
release-version: 0.50.
|
|
5
|
+
release-version: 0.50.2
|
|
6
6
|
---
|
|
7
7
|
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
8
8
|
# Compliance Audit
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: contract-compare
|
|
3
3
|
description: "Compare two or more contracts side-by-side for structured diff, gap analysis, and benchmarking. Use when: comparing contracts or agreements, contract diff, compare terms, vendor-vs-vendor, compare our template vs theirs, compliance gap between contracts. NOT for single-contract risk review — use contract-review for that."
|
|
4
|
-
release-version: 0.50.
|
|
4
|
+
release-version: 0.50.2
|
|
5
5
|
---
|
|
6
6
|
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
7
7
|
# Contract Compare
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: contract-review
|
|
3
3
|
description: "Review contracts for legal, commercial, and compliance risks via convert → chunk review → merge → validate (+ optional mandate preprocessing). Use for reviewing, auditing, or checking any contract, agreement, NDA, MSA, or SLA; input a file path (PDF/DOCX/TXT) or pasted text."
|
|
4
|
-
release-version: 0.50.
|
|
4
|
+
release-version: 0.50.2
|
|
5
5
|
---
|
|
6
6
|
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
7
7
|
# Contract Review
|
|
@@ -3,7 +3,7 @@ name: doc-authenticity
|
|
|
3
3
|
version: 0.4.1
|
|
4
4
|
description: "Screen PDF documents and raster images for fabrication, tampering, Photoshop or other image-editor use, and content validity. Detects file type, runs format-specific authenticity forensics, classifies bank statements, conversation logs, invoices, agreements, and other documents, then applies type-specific validity checks. Produces separate authenticity (NO_EVIDENCE_OF_MODIFICATION / SUSPICIOUS / LIKELY_MODIFIED / INCONCLUSIVE) and validity (VALID / INVALID / INCONCLUSIVE) verdicts. Use whenever a user asks whether a document, screenshot, scan, statement, invoice, contract, chat log, receipt, or payment evidence is genuine, original, edited, Photoshopped, manipulated, fake, or valid."
|
|
5
5
|
disable-model-invocation: true
|
|
6
|
-
release-version: 0.50.
|
|
6
|
+
release-version: 0.50.2
|
|
7
7
|
---
|
|
8
8
|
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
9
9
|
# Document and Image Authenticity
|
|
@@ -12,7 +12,7 @@ description: >
|
|
|
12
12
|
impact, and a business report. Use for fraud, scam, mule, account-takeover,
|
|
13
13
|
chargeback, dispute, transfer, collection, or payout risk analysis even when the
|
|
14
14
|
user does not name this skill.
|
|
15
|
-
release-version: 0.50.
|
|
15
|
+
release-version: 0.50.2
|
|
16
16
|
---
|
|
17
17
|
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
18
18
|
# Fraud Detection
|
|
@@ -14,7 +14,7 @@ description: >
|
|
|
14
14
|
transactions" — even if they do not say payment-analysis. Do NOT use for
|
|
15
15
|
fraud rule discovery (fraud-detection) or TLD / MCC-miscoding
|
|
16
16
|
clusters (tld-detection).
|
|
17
|
-
release-version: 0.50.
|
|
17
|
+
release-version: 0.50.2
|
|
18
18
|
---
|
|
19
19
|
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
20
20
|
# Payment Analysis
|
|
@@ -5,7 +5,7 @@ description: >
|
|
|
5
5
|
and investigate selected merchants' authorization, settlement and disputes,
|
|
6
6
|
including descriptor mapping and overlapping exports. Portfolio-level payment
|
|
7
7
|
overviews belong to payment-analysis; fraud rule discovery belongs to fraud-detection.
|
|
8
|
-
release-version: 0.50.
|
|
8
|
+
release-version: 0.50.2
|
|
9
9
|
---
|
|
10
10
|
**Updates:** Once/session run `node <skill-base-dir>/release-check.mjs`.
|
|
11
11
|
# Portfolio payment analysis
|