@pazmo/ai-workflow-kit 5.0.1 → 5.0.3

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.
@@ -6,7 +6,7 @@
6
6
  "plugins": [
7
7
  {
8
8
  "name": "ai-workflow-kit",
9
- "version": "5.0.1",
9
+ "version": "5.0.3",
10
10
  "source": ".",
11
11
  "description": "Concise requirements-to-delivery workflow with human approval and understanding gates.",
12
12
  "category": "development",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-workflow-kit",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "Concise requirements-to-delivery workflow with human approval and understanding gates.",
5
5
  "author": {
6
6
  "name": "JongKun Kim"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-workflow-kit",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "Concise requirements-to-delivery workflow with human approval and understanding gates.",
5
5
  "skills": "./skills/"
6
6
  }
package/README.ko.md CHANGED
@@ -1,16 +1,27 @@
1
1
  # AI Workflow Kit
2
2
 
3
- 프로젝트 검증 스킬·가이드를 profile의 `recipe`로 연결합니다. 작업 입력과 실행 기록에 경로·해시가 남고, 내용이 바뀌면 이전 증거는 stale이 됩니다. 일반 리뷰는 기본 3명이며 규모·위험에 따라 조정합니다. 전체 라운드의 실제 인원 제한은 호스트가 적용합니다. [단계별 연동 규칙](skills/workflow/references/skill-integration.md)을 참고하세요.
4
-
5
- 5.0 버전의 새 실행은 실제 검증 실행 기록을 요구하는 v3 형식을 사용합니다. Pstack의 MIT 검증 원칙과 레시피 작성 자료만 고정 커밋으로 포함하며, 워크플로우 소유자는 이 킷입니다. [검증 가이드](skills/workflow/references/verification.md)에 따라 `.ai-workflow/verification.json`과 Story에 연결된 G1/G3 기록을 준비합니다. `graph verify`가 검사 ID에 해당하는 명령을 직접 실행하고, 코드가 바뀌면 리뷰·검증은 stale이 됩니다. `graph delivery`는 최종 스냅샷에 연결된 실제 G4까지 확인합니다. 문서 형식 검사만으로 전달 완료를 판정하지 않습니다. 기존 v1/v2는 조회 전용(`upgrade-required`)입니다. 기존 worker를 중지하고 증거를 보존한 뒤, 시도 한도를 우회하지 않고 새 v3에서 리뷰·검증해야 합니다. 4.x에서 호환성이 변경되는 major 릴리스입니다. [실행 예제](examples/verification/README.md)를 참고하세요.
6
-
7
3
  한국어 · [English](https://github.com/syjkim0125/ai-workflow-kit/blob/main/README.md)
8
4
 
9
5
  **AI에게 일을 맡기고, 작업 순서와 결과를 확인하세요. 최종 판단은 사람이 합니다.**
10
6
 
11
7
  AI Workflow Kit은 Codex와 Claude Code에 작업 절차를 추가합니다. 무엇을 만들지 정하고, 작업 상태를 저장하고, 결과를 검사합니다. 다음 작업에 쓸 교훈도 남깁니다.
12
8
 
13
- 4버전에는 그래프 실행기가 들어 있습니다. **그래프는 작업 목록과 실행 순서를 정한 규칙입니다.**
9
+ 그래프 실행기가 작업 목록과 실행 순서를 관리합니다.
10
+
11
+ ## 5.0.2 업데이트
12
+
13
+ - **위험한 선택을 G1 전에 드러냅니다.** 이제 승인 뒤뿐 아니라 G1 전 질문 단계에서도 도메인 위험 렌즈를 읽습니다. 결제나 데이터·시스템 이관 Story에서 요구사항이나 사람이 정하지 않은 렌즈 항목은 `ASSUMED`로 넘기지 않고 `OPEN BLOCKING`으로 남깁니다. 예를 들면 옛 경로와 새 경로를 얼마나 함께 둘지, 롤백 기준, 실패하면 열어 둘지 닫을지, 두 데이터가 다르면 어느 쪽이 기준인지, 팀 간 배포 순서입니다.
14
+
15
+ 5.0.1에서 추가된 것:
16
+
17
+ - **검증 스킬을 Story마다 새로 만들지 않고 재사용합니다.** 기존 프로젝트 스킬·가이드를 profile의 `recipe`로 연결합니다. 작업 입력과 실행 기록에 경로·해시가 남고, 레시피나 입력으로 선언한 기능 문서가 바뀌면 이전 증거는 stale이 됩니다. 기존 검증으로 부족할 때만 절차를 보완하거나 만듭니다.
18
+ - **Pstack 검증 절차로 실제 제품을 실행합니다.** 예제는 Launch·Doctor·Drive·Evidence·Cleanup을 포함합니다. Superpowers가 같은 Graph 실행의 최신 증거를 확인하고, 전체 흐름은 kit이 관리합니다. [실행 예제](examples/verification/README.md)를 참고하세요.
19
+ - **리뷰는 기본 3명으로 조정합니다.** 작은 변경은 0~2명, 명확한 전문 위험이 있으면 4~5명으로 조정합니다. 메인이 단순화와 결과 통합을 맡고, 내부 위임도 같은 예산에 포함합니다. 실제 인원 제한은 호스트가 적용합니다.
20
+ - **검증 실행의 예외를 수정했습니다.** 분리된 자식이 출력 파이프를 유지해도 정해진 정리 시간 뒤 불완전한 수집을 실패로 기록합니다. `toString`, `hasOwnProperty` 같은 유효한 검사 ID도 실행 순서와 관계없이 사용할 수 있습니다.
21
+
22
+ 기존 프로젝트는 `npx @pazmo/ai-workflow-kit@latest init`과 `npx @pazmo/ai-workflow-kit@latest doctor`로 업데이트한 뒤 새 Codex 작업 또는 Claude Code 세션을 여세요. 사용자가 수정한 관리 파일은 보존하고 알려주므로, 새 지침을 수동 반영해야 하는지 확인하세요.
23
+
24
+ **4.x에서 업데이트할 때:** 5.x는 실제 실행 기록을 요구하는 v3 형식을 사용합니다. [검증 가이드](skills/workflow/references/verification.md)에 따라 `.ai-workflow/verification.json`과 Story에 연결된 G1/G3 기록을 준비하세요. 기존 v1/v2는 조회 전용(`upgrade-required`)입니다. 기존 worker를 중지하고 증거·시도 기록을 보존한 뒤 v3에서 리뷰·검증해야 합니다. `graph delivery`는 최종 스냅샷에 연결된 실제 G4도 확인합니다. [전체 변경 이력](CHANGELOG.md)을 참고하세요.
14
25
 
15
26
  ## 시작하기
16
27
 
@@ -113,8 +124,8 @@ kit이 전체 절차를 정합니다. 설치된 스킬은 각 단계를 맡습
113
124
  | 계획 | CE `ce-plan` |
114
125
  | 테스트를 쓰며 구현 | Superpowers `test-driven-development` |
115
126
  | 실패 원인 분석 | Superpowers `systematic-debugging` |
116
- | 테스트 통과 후 단순화 | CE `ce-simplify-code` |
117
- | 리뷰 | CE `ce-code-review mode:agent` |
127
+ | 테스트 통과 후 단순화 | 메인이 수행하고, 같은 리뷰 예산 안에서 CE `ce-simplify-code`를 선택 사용 |
128
+ | 리뷰 | 같은 예산 안에서 CE `ce-code-review mode:agent` 또는 직접 검토 |
118
129
  | 최신 코드 검증 | Superpowers `verification-before-completion` |
119
130
  | 검증된 교훈 기록 | CE `ce-compound` |
120
131
 
@@ -213,6 +224,6 @@ node test/fixtures/verify-tarball.mjs ./pazmo-ai-workflow-kit-<version>.tgz
213
224
  - [그래프 검증 방법](https://github.com/syjkim0125/ai-workflow-kit/blob/main/docs/graph-verification.md)
214
225
  - [Office 인계 문서](https://github.com/syjkim0125/ai-workflow-kit/blob/main/docs/agent-office-handoff.md)
215
226
  - [스킬 연결 규칙](https://github.com/syjkim0125/ai-workflow-kit/blob/main/skills/workflow/references/skill-integration.md)
216
- - [4.0.0 변경 내용](https://github.com/syjkim0125/ai-workflow-kit/blob/main/CHANGELOG.md)
227
+ - [변경 이력](https://github.com/syjkim0125/ai-workflow-kit/blob/main/CHANGELOG.md)
217
228
 
218
229
  MIT · [JongKun Kim](https://github.com/syjkim0125)
package/README.md CHANGED
@@ -1,16 +1,27 @@
1
1
  # AI Workflow Kit
2
2
 
3
- Project verification skills/guides can be linked with profile `recipe`; tasks and receipts carry the file's path/hash, and edits invalidate old evidence. Reviews default to three workers, with smaller/larger allocations based on scope and risk; host dispatch enforces the shared round budget. See [stage integration](skills/workflow/references/skill-integration.md).
4
-
5
- Version 5.0 uses persisted run format v3 with runner-issued verification receipts. Pstack's MIT verification principles/recipe guide are selectively vendored at a fixed commit; the kit remains the workflow owner. Configure `.ai-workflow/verification.json` and bound G1/G3 records using [the verification guide](skills/workflow/references/verification.md). `graph verify` executes real checks by ID, and code changes invalidate review/verification. `graph delivery` additionally requires a real G4 bound to the final snapshot. Document checks alone cannot establish delivery. Legacy v1/v2 runs are read-only (`upgrade-required`); stop old workers, retain evidence, then rerun review/checks in v3 without evading retry limits. This is a breaking change from 4.x. See [the runnable CLI example](examples/verification/README.md).
6
-
7
3
  [한국어](https://github.com/syjkim0125/ai-workflow-kit/blob/main/README.ko.md) · English
8
4
 
9
5
  **Give AI a task. Keep the work ordered, checked, and approved by a person.**
10
6
 
11
7
  AI Workflow Kit adds a work process to Codex and Claude Code. It defines what to build, tracks each task, checks results, and records useful lessons.
12
8
 
13
- Version 4 includes a graph runner. A graph is a list of tasks and the rules for which task runs next.
9
+ A graph runner tracks the task list and the rules for which task runs next.
10
+
11
+ ## What's new in 5.0.2
12
+
13
+ - **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
+
15
+ 5.0.1 added:
16
+
17
+ - **Reuse project verification skills across Stories.** Link an existing skill or guide with profile `recipe`. Task inputs and execution receipts retain its path/hash; recipe and declared feature-map edits invalidate old evidence. Create a procedure only when existing coverage is insufficient.
18
+ - **Drive the real product with Pstack's verification procedure.** The example covers Launch, Doctor, Drive, Evidence and Cleanup. Superpowers inspects that same Graph execution's fresh results; the kit keeps workflow ownership. See the [runnable example](examples/verification/README.md).
19
+ - **Keep review work bounded.** Default to three workers, reduce to 0–2 for small changes, and expand to 4–5 for named risks. Main simplifies and aggregates; nested workers share the same budget. The host enforces actual dispatch limits.
20
+ - **Fix verification edge cases.** Incomplete output collection fails after bounded cleanup when an escaped child keeps pipes open. Valid check IDs such as `toString` and `hasOwnProperty` work regardless of execution order.
21
+
22
+ To update an existing project, run `npx @pazmo/ai-workflow-kit@latest init`, then `npx @pazmo/ai-workflow-kit@latest doctor`. Open a new Codex task or Claude Code session. User-edited managed files are preserved and reported; inspect them for changes that need applying manually.
23
+
24
+ **Upgrading from 4.x:** 5.x uses persisted run format v3 and runner-issued receipts. Configure `.ai-workflow/verification.json` and Story-bound G1/G3 records using the [verification guide](skills/workflow/references/verification.md). Legacy v1/v2 runs are read-only (`upgrade-required`): stop old workers, preserve evidence/attempt history, and rerun review/checks in v3. `graph delivery` also requires a real G4 bound to the final snapshot. See [all changes](CHANGELOG.md).
14
25
 
15
26
  ## Start
16
27
 
@@ -114,8 +125,8 @@ The kit controls the overall process. Available skills handle individual steps.
114
125
  | Plan | CE `ce-plan` |
115
126
  | Implement with tests | Superpowers `test-driven-development` |
116
127
  | Diagnose a failure | Superpowers `systematic-debugging` |
117
- | Simplify after tests pass | CE `ce-simplify-code` |
118
- | Review | CE `ce-code-review mode:agent` |
128
+ | Simplify after tests pass | Main performs the pass; optional CE `ce-simplify-code` within the shared review budget |
129
+ | Review | Bounded CE `ce-code-review mode:agent` or direct review within the same budget |
119
130
  | Run fresh final checks | Superpowers `verification-before-completion` |
120
131
  | Save a proven lesson | CE `ce-compound` |
121
132
 
@@ -214,6 +225,6 @@ These checks do not prove that a live agent follows every step. Also run a small
214
225
  - [Graph verification](https://github.com/syjkim0125/ai-workflow-kit/blob/main/docs/graph-verification.md)
215
226
  - [Office handoff](https://github.com/syjkim0125/ai-workflow-kit/blob/main/docs/agent-office-handoff.md)
216
227
  - [Skill integration](https://github.com/syjkim0125/ai-workflow-kit/blob/main/skills/workflow/references/skill-integration.md)
217
- - [Changes in 4.0.0](https://github.com/syjkim0125/ai-workflow-kit/blob/main/CHANGELOG.md)
228
+ - [Changelog](https://github.com/syjkim0125/ai-workflow-kit/blob/main/CHANGELOG.md)
218
229
 
219
230
  MIT · [JongKun Kim](https://github.com/syjkim0125)
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pazmo/ai-workflow-kit",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/syjkim0125/ai-workflow-kit.git"
@@ -24,7 +24,7 @@ Before G1/G3, explain the problem, change, safety rule and verification plainly.
24
24
 
25
25
  ## Route by current state
26
26
 
27
- 1. **No approved Story:** read `references/intake.md`. Use `assets/STORY.md`; ask only missing behavior questions and obtain G1.
27
+ 1. **No approved Story:** read `references/intake.md` and `references/domain-risks.md`. Use `assets/STORY.md`; ask only missing behavior questions and obtain G1.
28
28
  2. **Approved, not implemented:** read `references/execution.md` and `references/graph-engineering.md`. Automatically initialize/resume the installed Graph CLI; use the minimal plan for small work. Read `references/domain-risks.md` for relevant risks. Create a Task only when one PR is not reviewable.
29
29
  3. **Implemented or `finish`:** complete pending checks in `references/execution.md`, then follow `references/understanding-gate.md` for G4.
30
30
  4. **`status`:** run the existing graph's `status` command; report stage, blocking decision, evidence and next action. Without a run, report the Story stage.
@@ -18,9 +18,9 @@ Check: identity source; protected action; permission owner; token/session expiry
18
18
 
19
19
  Check: source of truth; timeout; retry/backoff; duplicate side effects; callback ordering; partial success; reconciliation; manual recovery.
20
20
 
21
- ## Data migration / deletion
21
+ ## Data or system migration / deletion
22
22
 
23
- Check: compatibility window; backfill owner; rollback; partial progress; irreversible loss; verification before cleanup; observability and stop conditions.
23
+ Check: compatibility window; backfill owner; rollback; partial progress; irreversible loss; verification before cleanup; observability and stop conditions. For a system, vendor or provider switch also check: how long old and new paths coexist and who switches them; cutover and rollback trigger; whether an unavailable new path fails open (old behavior stays) or closed (the feature disappears); which side wins when old and new data disagree; deploy order across owning teams.
24
24
 
25
25
  ## Sensitive data
26
26
 
@@ -11,6 +11,7 @@ Derive before asking: actor, desired outcome, terms/entities, state change, inva
11
11
  - Ask **only blocking** unknowns that change behavior, ownership, or failure semantics.
12
12
  - Ask one decision per turn by default; **at most three** independent, closely related questions.
13
13
  - Stop after **two question rounds**. Draft with safe defaults labeled `ASSUMED`; keep unsafe gaps as `OPEN BLOCKING`.
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.
14
15
  - Never ask implementation or **HOW** questions before the contract is clear. Database, queue, lock, and file choices belong to planning.
15
16
  - Offer a concrete default rather than an open questionnaire when a conventional safe choice exists.
16
17