@pazmo/ai-workflow-kit 5.0.2 → 5.2.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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.ko.md +16 -4
- package/README.md +16 -4
- package/examples/verification/app.mjs +1 -1
- package/package.json +1 -1
- package/skills/workflow/assets/TASK.md +1 -1
- package/skills/workflow/references/domain-risks.md +1 -1
- package/skills/workflow/references/execution.md +4 -4
- package/skills/workflow/references/intake.md +2 -1
- package/skills/workflow/references/pstack/provenance.json +6 -3
- package/skills/workflow/references/skill-integration.md +12 -8
- package/src/graph/roles.mjs +2 -2
- package/src/managed-block.mjs +1 -1
package/README.ko.md
CHANGED
|
@@ -8,7 +8,18 @@ AI Workflow Kit은 Codex와 Claude Code에 작업 절차를 추가합니다. 무
|
|
|
8
8
|
|
|
9
9
|
그래프 실행기가 작업 목록과 실행 순서를 관리합니다.
|
|
10
10
|
|
|
11
|
-
## 5.0
|
|
11
|
+
## 5.2.0 업데이트
|
|
12
|
+
|
|
13
|
+
- **요구 정리 단계에서 대안을 직접 보여 줍니다.** 요청한 변경이 아직 크게 다르게 동작할 수 있으면, intake가 선택지 2~3개를 장단점과 추천 기본값과 함께 보여 줍니다. CE `ce-brainstorm`은 만들 기능 없이 목표만 있는 열린 요청이거나, 무엇을 만들지 모르겠다고 하거나, 직접 고를 때만 씁니다. 쓸 때는 에이전트가 먼저 알리고, 결과는 kit의 Story와 G1로 돌아옵니다.
|
|
14
|
+
- **결제 렌즈가 되돌릴 기준을 묻습니다.** 가격이나 청구 규칙을 바꾸는 Story는 무엇이 되돌림(rollback)의 기준인지, 이미 발행된 청구는 어떻게 되는지 묻습니다.
|
|
15
|
+
- **5.0.x에서 올리나요?** 5.1.0은 npm에 배포하지 않았기 때문에 5.2.0에는 아래 5.1.0 변경도 들어 있습니다. 업데이트 전에 시작한 역할 실행은 `Role assignment or graph changed`로 멈춥니다. 새 역할 실행을 시작하세요.
|
|
16
|
+
|
|
17
|
+
5.1.0에서 추가된 것:
|
|
18
|
+
|
|
19
|
+
- **계획과 리뷰에 Superpowers의 단계별 스킬을 씁니다.** 계획은 Superpowers `writing-plans`로 세우고, 결과는 kit에 돌려줍니다. 실행과 사람 확인 단계는 kit이 계속 맡습니다. 리뷰는 Superpowers `requesting-code-review` 또는 같은 예산 안의 직접 검토로 합니다. CE `ce-plan`과 `ce-code-review`는 직접 고를 때 계속 쓸 수 있고, 검증된 교훈은 여전히 CE `ce-compound`로 기록합니다. 작은 프로젝트로 비교했을 때 이 경로는 CE와 같은 계획·리뷰 품질을 훨씬 적은 토큰으로 냈습니다.
|
|
20
|
+
- **Pstack 출처를 공식 저장소로 고쳤습니다.** 포함된 검증 파일은 그대로이고, 출처 기록만 `cursor/plugins`를 가리킵니다.
|
|
21
|
+
|
|
22
|
+
5.0.2에서 추가된 것:
|
|
12
23
|
|
|
13
24
|
- **위험한 선택을 G1 전에 드러냅니다.** 이제 승인 뒤뿐 아니라 G1 전 질문 단계에서도 도메인 위험 렌즈를 읽습니다. 결제나 데이터·시스템 이관 Story에서 요구사항이나 사람이 정하지 않은 렌즈 항목은 `ASSUMED`로 넘기지 않고 `OPEN BLOCKING`으로 남깁니다. 예를 들면 옛 경로와 새 경로를 얼마나 함께 둘지, 롤백 기준, 실패하면 열어 둘지 닫을지, 두 데이터가 다르면 어느 쪽이 기준인지, 팀 간 배포 순서입니다.
|
|
14
25
|
|
|
@@ -121,15 +132,16 @@ kit이 전체 절차를 정합니다. 설치된 스킬은 각 단계를 맡습
|
|
|
121
132
|
|
|
122
133
|
| 단계 | 우선 사용하는 스킬 |
|
|
123
134
|
|---|---|
|
|
124
|
-
|
|
|
135
|
+
| 요구 정리 | kit 자체 intake. 만들 기능 없이 목표만 있는 열린 요청이거나 사용자가 고를 때만 CE `ce-brainstorm` |
|
|
136
|
+
| 계획 | Superpowers `writing-plans`, 결과는 kit에 돌려줌(호출자가 실행 담당) |
|
|
125
137
|
| 테스트를 쓰며 구현 | Superpowers `test-driven-development` |
|
|
126
138
|
| 실패 원인 분석 | Superpowers `systematic-debugging` |
|
|
127
139
|
| 테스트 통과 후 단순화 | 메인이 수행하고, 같은 리뷰 예산 안에서 CE `ce-simplify-code`를 선택 사용 |
|
|
128
|
-
| 리뷰 | 같은 예산 안에서
|
|
140
|
+
| 리뷰 | 같은 예산 안에서 Superpowers `requesting-code-review` 또는 직접 검토 |
|
|
129
141
|
| 최신 코드 검증 | Superpowers `verification-before-completion` |
|
|
130
142
|
| 검증된 교훈 기록 | CE `ce-compound` |
|
|
131
143
|
|
|
132
|
-
Developer는 배정받은 작업만 합니다. Superpowers나 CE의 전체 절차를 다시 시작하지 않습니다. CE `ce-work mode:return-to-caller`는 명시적으로 선택할 때 쓰는 대안입니다. 구현을 두 번 수행하지 않습니다.
|
|
144
|
+
Developer는 배정받은 작업만 합니다. Superpowers나 CE의 전체 절차를 다시 시작하지 않습니다. CE `ce-work mode:return-to-caller`는 명시적으로 선택할 때 쓰는 대안입니다. 구현을 두 번 수행하지 않습니다. CE `ce-plan`과 예산 안의 `ce-code-review mode:agent`도 명시적으로 선택할 때 쓰는 대안입니다.
|
|
133
145
|
|
|
134
146
|
**이 플러그인들은 kit에 포함되지 않습니다.** 에이전트는 사용할 수 있는 스킬을 확인합니다. 스킬이 없으면 kit의 직접 수행 절차를 쓰고 그 사실을 알립니다.
|
|
135
147
|
|
package/README.md
CHANGED
|
@@ -8,7 +8,18 @@ AI Workflow Kit adds a work process to Codex and Claude Code. It defines what to
|
|
|
8
8
|
|
|
9
9
|
A graph runner tracks the task list and the rules for which task runs next.
|
|
10
10
|
|
|
11
|
-
## What's new in 5.0
|
|
11
|
+
## What's new in 5.2.0
|
|
12
|
+
|
|
13
|
+
- **Intake explores alternatives itself.** When a requested change can still behave in materially different ways, intake shows two or three options with trade-offs and a recommended default. CE `ce-brainstorm` runs only for an open idea (a goal with no concrete change yet), when you say you do not know what to build, or when you select it. The agent tells you when it uses it, and the results come back to the kit's Story and G1.
|
|
14
|
+
- **The payment lens asks about rollback.** A Story that changes a price or charge rule now asks what triggers a rollback and what happens to charges already issued.
|
|
15
|
+
- **Upgrading from 5.0.x?** 5.1.0 was not published to npm, so 5.2.0 also includes the 5.1.0 changes below. A role run started before the upgrade stops with `Role assignment or graph changed`. Start a new role run.
|
|
16
|
+
|
|
17
|
+
5.1.0 added:
|
|
18
|
+
|
|
19
|
+
- **Plan and review with focused Superpowers skills.** Planning uses Superpowers `writing-plans`; the plan comes back to the kit, which keeps execution and the human gates. Review uses Superpowers `requesting-code-review` or a direct review within the same budget. CE `ce-plan` and `ce-code-review` remain available when you select them, and CE `ce-compound` still saves proven lessons. In a local comparison on a small project, these routes matched CE plan and review quality at much lower token cost.
|
|
20
|
+
- **Pstack provenance points at the official source.** The bundled verification files are unchanged; their record now names `cursor/plugins`.
|
|
21
|
+
|
|
22
|
+
5.0.2 added:
|
|
12
23
|
|
|
13
24
|
- **Surface risky choices before G1.** Intake now reads the domain risk lenses before G1, not only after approval. In payment and data or system migration Stories, a lens item that the requirement or a human has not settled stays `OPEN BLOCKING` instead of being labeled `ASSUMED`. Examples: how long old and new paths coexist, the rollback trigger, whether a failure fails open or closed, which data wins when two sources disagree, and deploy order across teams.
|
|
14
25
|
|
|
@@ -122,15 +133,16 @@ The kit controls the overall process. Available skills handle individual steps.
|
|
|
122
133
|
|
|
123
134
|
| Step | Preferred skill |
|
|
124
135
|
|---|---|
|
|
125
|
-
|
|
|
136
|
+
| Clarify the request | The kit's own intake; CE `ce-brainstorm` only for an open idea (a goal with no concrete change yet) or when selected |
|
|
137
|
+
| Plan | Superpowers `writing-plans`, returned to the kit (caller-owned) |
|
|
126
138
|
| Implement with tests | Superpowers `test-driven-development` |
|
|
127
139
|
| Diagnose a failure | Superpowers `systematic-debugging` |
|
|
128
140
|
| Simplify after tests pass | Main performs the pass; optional CE `ce-simplify-code` within the shared review budget |
|
|
129
|
-
| Review |
|
|
141
|
+
| Review | Superpowers `requesting-code-review` or direct review within the same budget |
|
|
130
142
|
| Run fresh final checks | Superpowers `verification-before-completion` |
|
|
131
143
|
| Save a proven lesson | CE `ce-compound` |
|
|
132
144
|
|
|
133
|
-
A Developer performs its assigned task. It does not restart the full Superpowers or CE process. CE `ce-work mode:return-to-caller` is an alternative when explicitly selected, not a second implementation pass.
|
|
145
|
+
A Developer performs its assigned task. It does not restart the full Superpowers or CE process. CE `ce-work mode:return-to-caller` is an alternative when explicitly selected, not a second implementation pass. CE `ce-plan` and bounded `ce-code-review mode:agent` are also explicit alternatives.
|
|
134
146
|
|
|
135
147
|
**These plugins are not bundled.** The agent checks which skills are installed. If a skill is missing, it follows the kit's direct procedure and reports that choice.
|
|
136
148
|
|
|
@@ -3,4 +3,4 @@ const values = process.argv.slice(2);
|
|
|
3
3
|
if (values.length !== 2 || values.some(value => !value.trim() || !Number.isFinite(Number(value)))) {
|
|
4
4
|
console.error('Usage: app.mjs <number> <number>');
|
|
5
5
|
process.exitCode = 2;
|
|
6
|
-
} else console.log(Number(values[0]) + Number(values[1]));
|
|
6
|
+
} else console.log(String(Number(values[0]) + Number(values[1])));
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ Use only the matching lens. These are missing-behavior prompts, not architecture
|
|
|
4
4
|
|
|
5
5
|
## Payment / money
|
|
6
6
|
|
|
7
|
-
Check: charge timing; authorization vs capture; duplicate request/idempotency; timeout with unknown external result; cancellation/refund boundary; amount/currency ownership; reconciliation and operator recovery. Do not infer Redis, Kafka, Outbox, or locks.
|
|
7
|
+
Check: charge timing; authorization vs capture; duplicate request/idempotency; timeout with unknown external result; cancellation/refund boundary; amount/currency ownership; reconciliation and operator recovery; rollback trigger for a changed price or charge rule, and what happens to charges already issued. Do not infer Redis, Kafka, Outbox, or locks.
|
|
8
8
|
|
|
9
9
|
## Inventory / concurrency
|
|
10
10
|
|
|
@@ -6,12 +6,12 @@ If a host such as Agent Office delegates a started kit node, use its run/token a
|
|
|
6
6
|
|
|
7
7
|
## Stage integration
|
|
8
8
|
|
|
9
|
-
Read `skill-integration.md` before selecting skills. Prefer Superpowers focused implementation/verification skills and CE planning
|
|
9
|
+
Read `skill-integration.md` before selecting skills. Prefer Superpowers focused planning/implementation/review/verification skills and CE learning capture; CE planning, simplify and review modes are explicit alternatives. Keep one workflow owner. Existing approvals and the assigned role/task bound each invocation. Use the same evidence requirements with a disclosed direct fallback when a compatible skill is unavailable.
|
|
10
10
|
|
|
11
11
|
## Size first
|
|
12
12
|
|
|
13
13
|
- **Small/reversible:** one reviewable outcome, local effect. Record `Plan source: N/A — small and reversible`; use test-first implementation and review.
|
|
14
|
-
- **Normal:** use `
|
|
14
|
+
- **Normal:** use `superpowers:writing-plans` under the caller-owned contract → Superpowers focused TDD/diagnosis → inline simplification → bounded review with `superpowers:requesting-code-review` or direct review when compatible skills are available; simplify only after related tests pass. Apply the shared review allocation in `skill-integration.md` (default 3, adaptive 0–5). Otherwise perform equivalent repository-grounded stages directly.
|
|
15
15
|
- **High-risk/hard to reverse:** add G3. Present the key design decision, alternatives, invariant, rollback/recovery path, and evidence plan; end the turn for human approval before work. Save that decision to `docs/understanding/<slug>-plan.md` and record `Understanding gate (G3): <artifact> · <YYYY-MM-DD> · Check-in: accepted`.
|
|
16
16
|
|
|
17
17
|
High-risk signals: money/payment, authentication/authorization, concurrency, destructive migration, sensitive data, data loss, and irreversible external side effects.
|
|
@@ -37,7 +37,7 @@ For user-authorized optional Jira publication after G1, follow `jira.md`. Withou
|
|
|
37
37
|
Automatically initialize/resume the installed graph as described in `graph-engineering.md`. Use `-` for small work; otherwise supply the reviewed task DAG. The CLI adds final review and fresh verification. Complete any required G3 before implementation nodes run.
|
|
38
38
|
3. Use compatible `superpowers:test-driven-development` for implementation and `superpowers:systematic-debugging` for unexplained failures. For new behavior or a bug fix, demonstrate RED before production code, then GREEN after the minimum change. Proceed when related tests pass.
|
|
39
39
|
4. Refactor while green: main performs the simplification pass below. Use `ce-simplify-code` only when its actual dispatch fits the same round's allocation; otherwise apply the criteria directly.
|
|
40
|
-
5. Review the final diff against the Story, failure paths and testing limits. Allocate reviewers before dispatch using `skill-integration.md`; use compatible bounded `ce-code-review mode:agent` or
|
|
40
|
+
5. Review the final diff against the Story, failure paths and testing limits. Allocate reviewers before dispatch using `skill-integration.md`; use compatible `superpowers:requesting-code-review` or direct review, and bounded `ce-code-review mode:agent` only when the user or host selects it. Resolve material findings and state independence/coverage limits. Do not apply fixes from a read-only review assignment.
|
|
41
41
|
6. Apply compatible `superpowers:verification-before-completion`, using Graph `verify` on the current started token to execute the configured checks. Pstack recipe material defines the user journeys; SP governs fresh execution and evidence inspection. Read receipts and raw logs from that same execution; do not run a second verification pass solely to satisfy both names. Revalidate affected behavior after simplify/review edits before G4. If review edits affect previously simplified code, recheck only the affected scope; do not restart the whole pipeline automatically. Broaden tests when impact warrants it; never claim old results cover new edits.
|
|
42
42
|
7. Record the verified evidence in the graph, run its `status` command, and require `action: g4` before continuing to `understanding-gate.md`; passing tests alone are not completion.
|
|
43
43
|
|
|
@@ -55,7 +55,7 @@ For user-authorized optional Jira publication after G1, follow `jira.md`. Withou
|
|
|
55
55
|
|
|
56
56
|
Graph execution is installed and used automatically after G1. Small changes use the built-in minimal plan without a separate plan document; split larger work only where dependency tracking or independent verification helps. Keep the size-based route above: no planning ceremony for a small/reversible change.
|
|
57
57
|
|
|
58
|
-
Planning is repository-grounded planning → review → deterministic validation. Research code, tests and risks as needed; do not require separate analyzer, advocate or mediator agents. Reuse an existing
|
|
58
|
+
Planning is repository-grounded planning → review → deterministic validation. Research code, tests and risks as needed; do not require separate analyzer, advocate or mediator agents. Reuse an existing plan, whichever skill produced it. The host performs agent/tool work and the installed CLI owns readiness, evidence records and recovery; never create a second nested orchestration pipeline for the same task.
|
|
59
59
|
|
|
60
60
|
The execution graph does not replace human gates. G1 still approves scope before planning/implementation, G3 still protects high-risk choices, and G4 still requires prediction-before-reveal. Superpowers focused skills and CE stage skills provide node behavior as mapped in `skill-integration.md`; the graph owns dependency and retry structure rather than copying those skills.
|
|
61
61
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Intake and Contract
|
|
2
2
|
|
|
3
|
-
For a PM assignment, perform only intake and return the Story proposal or question to the host.
|
|
3
|
+
For a PM assignment, perform only intake and return the Story proposal or question to the host. Explore alternatives here; `skill-integration.md` says when an open idea calls for CE exploration. Do not start another design approval workflow over an already settled scope. G1 still requires the actual user's decision.
|
|
4
4
|
|
|
5
5
|
## Internal Domain Frame
|
|
6
6
|
|
|
@@ -14,6 +14,7 @@ Derive before asking: actor, desired outcome, terms/entities, state change, inva
|
|
|
14
14
|
- Apply the matching lenses in `domain-risks.md` before drafting. In a Payment/money or Data or system migration Story, a lens item that changes behavior and that neither the requirement nor a human settled is `OPEN BLOCKING`, never `ASSUMED`; reasonable people could pick either side.
|
|
15
15
|
- Never ask implementation or **HOW** questions before the contract is clear. Database, queue, lock, and file choices belong to planning.
|
|
16
16
|
- Offer a concrete default rather than an open questionnaire when a conventional safe choice exists.
|
|
17
|
+
- When the request names the change but materially different behaviors remain, show two or three options as one question: what each does, its trade-off and your recommended default.
|
|
17
18
|
|
|
18
19
|
## Explain the direction first
|
|
19
20
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"repository": "https://github.com/
|
|
3
|
-
"
|
|
2
|
+
"repository": "https://github.com/cursor/plugins",
|
|
3
|
+
"path": "pstack",
|
|
4
|
+
"commit": "180939f9e59cc9512e9330649175763e81fad16f",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"files": [
|
|
6
7
|
{
|
|
@@ -11,7 +12,9 @@
|
|
|
11
12
|
{
|
|
12
13
|
"source": "skills/create-verification-skill/SKILL.md",
|
|
13
14
|
"file": "create-verification-skill.md",
|
|
14
|
-
"sha256": "bba612e8b81a02df0f49e6f6911f3b543c8c7d9f1f3c13ae6c0e2d58cc8c3ad3"
|
|
15
|
+
"sha256": "bba612e8b81a02df0f49e6f6911f3b543c8c7d9f1f3c13ae6c0e2d58cc8c3ad3",
|
|
16
|
+
"upstreamSha256": "d353973547bf8ad8977eca645f4cd4feaed0d32f4b43d1448f906b0a76c4d694",
|
|
17
|
+
"modified": "Three `.cursor/skills/verify-<app>/` paths read `<skills>/verify-<app>/`, with one sentence mapping `<skills>` to each harness's project skill folder, because the kit installs into Claude Code and Codex without upstream's docs/harness mapping. Wording taken from https://github.com/backnotprop/pstack at 0c3333f09655d7933919795fbf4f9946d62b6f77."
|
|
15
18
|
},
|
|
16
19
|
{
|
|
17
20
|
"source": "skills/create-verification-skill/references/feature-map-example/README.md",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Stage skills and role boundaries
|
|
2
2
|
|
|
3
|
-
The kit owns work-graph rules and human gates. Prefer compatible Superpowers focused skills for implementation discipline and verification, and Compound Engineering (CE) for planning, simplification
|
|
3
|
+
The kit owns work-graph rules and human gates. Prefer compatible Superpowers focused skills for planning, implementation discipline, review and verification, and Compound Engineering (CE) for verified learning. CE planning, simplification and review skills are explicit alternatives. The host runs agents and persists the authoritative state using the selected integration contract. Do not start a second end-to-end workflow inside a kit node.
|
|
4
4
|
|
|
5
5
|
## Select once for the assigned stage
|
|
6
6
|
|
|
@@ -18,15 +18,19 @@ These are skill invocation arguments, not Graph CLI flags. Invocation uses the h
|
|
|
18
18
|
|
|
19
19
|
| Assigned work | Preferred skill and call contract | Return to the kit/host |
|
|
20
20
|
|---|---|---|
|
|
21
|
-
| PM: clarify behavior and propose scope | `intake.md`;
|
|
22
|
-
| Team lead: plan approved work | `
|
|
21
|
+
| PM: clarify behavior and propose scope | `intake.md`; `ce-brainstorm` only under the open-idea rule below | Canonical Story proposal or a specific question; no implementation or self-issued G1 |
|
|
22
|
+
| Team lead: plan approved work | `superpowers:writing-plans` with the caller-owned instruction below and the approved Story | Plan path, requirement links, self-review result and unresolved blockers |
|
|
23
23
|
| Developer: implement the assigned approved task | `superpowers:test-driven-development`; `superpowers:systematic-debugging` for unexplained failures | Changed files, applicable RED/GREEN evidence, diagnosis and blockers; return to the assigned graph |
|
|
24
24
|
| Verification owner: verify the submitted revision | `superpowers:verification-before-completion` | Fresh relevant commands, results, revision and limits |
|
|
25
25
|
| Developer: simplify after related GREEN checks | Inline simplification criteria in `execution.md`; compatible `ce-simplify-code` only within the shared budget below | Behavior-preserving changes or a justified no-change result, then affected checks |
|
|
26
|
-
| Reviewer: assess the submitted change |
|
|
26
|
+
| Reviewer: assess the submitted change | `superpowers:requesting-code-review`, one filled reviewer template per assignment in the allocation below; otherwise direct bounded review | Findings and evidence, including scope, verdict and coverage limits |
|
|
27
27
|
| Delivery owner: capture proven learning | Namespaced CE `ce-compound mode:non-interactive <verified-context>` when supported | One useful learning or an explicit no-lesson outcome |
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
Intake explores alternatives itself. Use `ce-brainstorm` only when the request names a goal or problem but no concrete change to make, when the user says they do not know what to build, or when the user selects it. Decide from the request before loading the skill. Announce the choice in one line; the user can switch to direct scoping or ask for broader exploration at any time. State: "Caller-owned exploration: return the decisions, alternatives considered and open questions to the kit intake. Do not write or commit a separate spec or requirements document, do not invoke a planning or implementation skill, and do not show a next-step handoff menu. The kit's Story and G1 are the only requirements source and approval."
|
|
30
|
+
|
|
31
|
+
For `writing-plans`, state: "Caller-owned plan: save the plan and return its path and self-review result to this workflow. Skip the Execution Handoff; the caller owns execution, human gates and the next action. In the plan header, name this workflow's graph as the executor instead of an execution sub-skill. Return unresolved decisions as blockers." Reuse an existing plan; a small reversible task can use the kit's minimal plan and direct implementation without creating a plan artifact.
|
|
32
|
+
|
|
33
|
+
If the user or host explicitly selects CE planning, use `ce-plan` and state: "Pipeline context: return the plan and review result to this workflow; the caller owns execution, human gates and the next action. Return unresolved decisions as blockers." Do not invent a `mode:pipeline` argument for a version that does not document it. If they explicitly select CE review, use `ce-code-review mode:agent base:<base-ref> plan:<plan-path>` only when its internal fan-out fits the round's allocation.
|
|
30
34
|
|
|
31
35
|
If the user or host explicitly selects CE implementation instead, use `ce-work mode:return-to-caller <plan-path>` as an alternative executor, not an additional implementation pass. Give it an executable plan bounded to the assigned unit. Do not pass the whole project plan to a Developer assigned only one task: its completion contract covers the supplied plan. A bounded HOW artifact may reference the canonical plan and Story IDs; do not copy requirements into it. If the work is small enough to do directly, use the direct path instead of manufacturing plan files.
|
|
32
36
|
|
|
@@ -53,7 +57,7 @@ Before dispatch, the caller chooses the round's allocation and records the reaso
|
|
|
53
57
|
- Normal round: combine correctness/security, tests/spec/runtime evidence, and maintainability/performance into three bounded assignments. Give each only the relevant diff, requirements and evidence references.
|
|
54
58
|
- Docs/mechanical changes: 0–1; a small behavioral change: 1–2. Add a specialist only for a named uncovered risk such as authorization or migration recovery; state why 4–5 is needed.
|
|
55
59
|
- Count **all** simplify/review/validation/report workers in the same round. Main performs simplification and aggregation by default. Reviewers return findings directly and do not re-delegate. New rounds need changed code or a named unresolved concern; unchanged work does not earn another full panel.
|
|
56
|
-
- Check the installed skill before invoking it. `mode:agent` selects output, not a worker cap. If its internal fan-out cannot fit the allocation, use the direct bounded review instead of launching it and hoping. Do not invent `max_reviewers` flags. Preserve any required independent-review coverage; report a gap if host limits prevent it.
|
|
60
|
+
- Check the installed skill before invoking it. `requesting-code-review` dispatches one reviewer per filled template, so each assignment counts as one worker. For a selected `ce-code-review`, `mode:agent` selects output, not a worker cap. If its internal fan-out cannot fit the allocation, use the direct bounded review instead of launching it and hoping. Do not invent `max_reviewers` flags. Preserve any required independent-review coverage; report a gap if host limits prevent it.
|
|
57
61
|
|
|
58
62
|
The host enforces actual dispatch counts. Graph's ready-node width is a separate DAG limit and does not cap nested skill workers. Model choice follows `model-selection.md`; extra personas on one model are not the multi-model evidence of Pstack `interrogate`. Do not automatically append interrogate to CE review.
|
|
59
63
|
|
|
@@ -61,9 +65,9 @@ The Reviewer reports fixes to the Developer; do not use `apply:local` on a read-
|
|
|
61
65
|
|
|
62
66
|
## Superpowers coexistence
|
|
63
67
|
|
|
64
|
-
Do not automatically invoke `brainstorming → writing-plans → executing-plans/subagent-driven-development → finishing-a-development-branch` inside this workflow. That adds another owner for design approval, task dispatch, review and delivery.
|
|
68
|
+
Do not automatically invoke the full `brainstorming → writing-plans → executing-plans/subagent-driven-development → finishing-a-development-branch` chain inside this workflow. That adds another owner for design approval, task dispatch, review and delivery. A focused `writing-plans` or `requesting-code-review` call under the contracts above is a stage skill, not that chain.
|
|
65
69
|
|
|
66
|
-
Use Superpowers' focused TDD, systematic-debugging and verification skills by default where available and applicable to the assigned stage. Read their actual instructions; a skill name in evidence is not proof of execution. No artificial RED test is needed for a prose-only change. Preserve existing approvals and plans, and respect higher-priority host instructions. Do not rerun a procedure already completed with sufficient evidence. Missing focused skills use the kit's direct procedure, with the fallback disclosed. This is a deliberate composition of focused skills, not a claim that the full Superpowers workflow ran. Capture reusable knowledge through CE after resolved review and fresh verification.
|
|
70
|
+
Use Superpowers' focused planning, TDD, systematic-debugging, review and verification skills by default where available and applicable to the assigned stage. Read their actual instructions; a skill name in evidence is not proof of execution. No artificial RED test is needed for a prose-only change. Preserve existing approvals and plans, and respect higher-priority host instructions. Do not rerun a procedure already completed with sufficient evidence. Missing focused skills use the kit's direct procedure, with the fallback disclosed. This is a deliberate composition of focused skills, not a claim that the full Superpowers workflow ran. Capture reusable knowledge through CE after resolved review and fresh verification.
|
|
67
71
|
|
|
68
72
|
This reference is host instruction policy, not an SDK bridge or a code-enforced Office adapter. The kit installs this policy, not CE or Superpowers. Confirm capabilities in each actual agent environment; neither plugin's presence in the current developer session proves it is available in Office workers.
|
|
69
73
|
|
package/src/graph/roles.mjs
CHANGED
|
@@ -8,14 +8,14 @@ const flows = {
|
|
|
8
8
|
],
|
|
9
9
|
'team-lead': [
|
|
10
10
|
['investigate', 'read', 'Inspect the repository, dependencies and related lessons.', 'Ground the plan in source and approved requirements.'],
|
|
11
|
-
['plan', 'write', 'Plan the assigned scope and propose ownership and dependencies.', 'Use caller-owned
|
|
11
|
+
['plan', 'write', 'Plan the assigned scope and propose ownership and dependencies.', 'Use the caller-owned planning contract in skill-integration; return the plan without dispatching another full workflow.'],
|
|
12
12
|
],
|
|
13
13
|
developer: [
|
|
14
14
|
['implement', 'write', 'Implement the assigned scope using focused TDD and diagnosis.', 'Record applicable RED/GREEN evidence; simplify while green.'],
|
|
15
15
|
['self-check', 'read', 'Verify the produced revision against assigned requirements.', 'Record fresh checks, producedRevision and limitations; independent review remains separate.'],
|
|
16
16
|
],
|
|
17
17
|
reviewer: [
|
|
18
|
-
['review', 'read', 'Review the assigned revision
|
|
18
|
+
['review', 'read', 'Review the assigned revision with the bounded review in skill-integration.', 'Return pass or needs_changes, reviewedRevision and evidence; do not edit product code.'],
|
|
19
19
|
],
|
|
20
20
|
};
|
|
21
21
|
|
package/src/managed-block.mjs
CHANGED
|
@@ -10,7 +10,7 @@ export const MANAGED_BLOCK = `${START_MARKER}
|
|
|
10
10
|
- Keep Tasks at most 30 non-empty lines and reference Story M/V IDs; HOW belongs to the repository-grounded plan.
|
|
11
11
|
- After G1, automatically initialize/resume the installed graph with \`node .ai-workflow/bin/graph.mjs\`. Follow the workflow graph reference; record node evidence, route failures and require graph readiness before G4. No separate npm dependency or Graph opt-in is needed.
|
|
12
12
|
- Within an assigned kit graph node, apply only its role/task procedure and return evidence to that run. Office assigns roles and launches agents; the kit graph still controls readiness, joins and failure routing. Do not recursively start full delivery workflows.
|
|
13
|
-
- Use compatible Superpowers focused TDD, diagnosis and fresh-verification skills with CE
|
|
13
|
+
- Use compatible Superpowers focused caller-owned planning, TDD, diagnosis, bounded review and fresh-verification skills with CE verified learning capture; CE planning and review are explicit alternatives. Simplify inline by default; optional \`ce-simplify-code\` workers share the review allocation. Read skill-integration for exact modes, fallback and host limits. Do not nest end-to-end workflows or repeat approved plans. High-risk work retains G3.
|
|
14
14
|
- Do not merge non-trivial changes until the workflow's G4 question gate records that a human understands behavior, an invariant/failure path, and the evidence boundary.
|
|
15
15
|
- Configure the project verification profile using the workflow verification reference. Run required checks through Graph \`verify\`; inspect actual exit results/logs. Code changes make review/checks stale. Host model selection follows the workflow model policy; unknown actual model/cost stay unknown.
|
|
16
16
|
- \`node .ai-workflow/bin/check.mjs story <story-file>\` checks document shape/gate presence only. Report its exit code, and require \`node .ai-workflow/bin/graph.mjs delivery <run.json>\` after real G4 for bound execution/approval validation.
|