solmate-skills 2.0.12 → 2.0.14

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.
Files changed (36) hide show
  1. package/AGENTS.md +11 -2
  2. package/CLAUDE.md +13 -3
  3. package/README.md +104 -6
  4. package/USAGE.md +137 -14
  5. package/bin/cli.js +169 -1
  6. package/bin/harness-artifact.js +621 -0
  7. package/bin/harness-artifact.test.js +520 -0
  8. package/bin/harness-check.js +373 -0
  9. package/bin/harness-check.test.js +168 -0
  10. package/bin/test.js +2 -0
  11. package/docs/01_Concept_Design/01_AGENT_HARNESS_REQUIREMENTS_ANALYSIS.md +164 -0
  12. package/docs/03_Technical_Specs/01_AGENT_HARNESS_ARCHITECTURE.md +378 -0
  13. package/docs/03_Technical_Specs/assets/01_agent_harness_data_flow.svg +94 -0
  14. package/docs/04_Logic_Progress/00_BACKLOG.md +339 -0
  15. package/docs/04_Logic_Progress/01_EXECUTION_PLAN.md +160 -0
  16. package/docs/04_Logic_Progress/03_DECISION_LOG.md +98 -0
  17. package/docs/05_QA_Validation/01_TEST_SCENARIOS.md +322 -0
  18. package/docs/05_QA_Validation/02_AGENT_HARNESS_DESIGN_REVIEW.md +100 -0
  19. package/docs/05_QA_Validation/03_AGENT_HARNESS_CONTRACT_QA.md +96 -0
  20. package/manage-collaboration/SKILL.md +2 -0
  21. package/package.json +6 -4
  22. package/rules-docs/SKILL.md +15 -1
  23. package/rules-product/SKILL.md +32 -8
  24. package/rules-product/agents/openai.yaml +2 -2
  25. package/rules-workflow/SKILL.md +34 -8
  26. package/rules-workflow/adapters/claude/solmate-context-reader.md +20 -0
  27. package/rules-workflow/adapters/claude/solmate-implementer.md +20 -0
  28. package/rules-workflow/adapters/claude/solmate-verifier.md +21 -0
  29. package/rules-workflow/agents/openai.yaml +2 -2
  30. package/rules-workflow/resources/agent-harness-contract.md +191 -0
  31. package/rules-workflow/resources/agent-harness-v1.schema.json +432 -0
  32. package/verify-docs/SKILL.md +33 -6
  33. package/verify-docs/agents/openai.yaml +2 -2
  34. package/verify-implementation/SKILL.md +17 -5
  35. package/verify-implementation/agents/openai.yaml +2 -2
  36. package/verify-skills/SKILL.md +29 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rules-product
3
- description: Orchestrates the full product development pipeline from planning to development docs. Diagnoses current project phase, checks gate conditions including HTML UI Preview Gate, UI-First Gate, and Component & Library Planning Gate, and delegates to the correct sub-skill at each step. Use this as the entry point for new projects or when resuming work mid-flow.
3
+ description: Orchestrates the full product development pipeline from planning to development docs. Diagnoses current project phase, checks UI, component, Context Receipt, and verification gates, and delegates to the correct sub-skill at each step. Use this as the entry point for new projects or when resuming work mid-flow.
4
4
  ---
5
5
 
6
6
  # Product Workflow Orchestrator
@@ -12,7 +12,7 @@ description: Orchestrates the full product development pipeline from planning to
12
12
  > - **Next**: `docs-plan`, `docs-dev`, `rules-react`, `rules-workflow`, or `verify-implementation` by phase
13
13
  > - **Guide**: project root `USAGE.md` (English default, Korean below; copied on install)
14
14
 
15
- You are a **workflow lead** who guides the user through the full product development pipeline. You do not do the work yourself — you diagnose the current phase, verify gate conditions, and direct the user to the right sub-skill at each step.
15
+ You are a **workflow lead** who guides the user through the full product development pipeline. Diagnose the current phase, verify gate conditions, and invoke the required sub-skill or internal check yourself. Do not make users run harness CLI commands or translate an internal gate into a manual task.
16
16
 
17
17
  ## Pipeline Overview
18
18
 
@@ -23,9 +23,10 @@ HTML UI Preview Gate: 브라우저 확인용 화면 제작·링크·피드백
23
23
  UI-First Gate: 화면·동선·데이터 흐름 확인
24
24
  Pre-Code Technical Brief: 데이터·API·상태 최소 합의
25
25
  Component & Library Planning Gate: 컴포넌트·라이브러리·shadcn 적용 계획
26
+ Context Receipt Gate: 읽기 전용 에이전트의 관련 문서 확인
26
27
  Phase 3: React 변환 → rules-react
27
28
  Phase 4: 개발문서 → docs-dev
28
- Phase 5: 품질 검증 verify-implementation (verify-docs / verify-code / verify-security / verify-performance)
29
+ Phase 5: 독립 품질 검증 Verification Receipt + verify-implementation
29
30
  Phase 6: 최종 전달물 → docs-pitch / docs-business (선택)
30
31
  ```
31
32
 
@@ -45,6 +46,7 @@ Run these checks in order:
45
46
  | UI-First Gate 확인 여부 | 없으면 Phase 3 진입 보류 | 화면·동선·데이터 흐름 확인 필요 |
46
47
  | Pre-Code Technical Brief 여부 | 없으면 Phase 3 진입 보류 | 최소 기술 합의 필요 |
47
48
  | Component & Library Plan 여부 | 없으면 Phase 3 진입 보류 | 컴포넌트·라이브러리 선택 필요 |
49
+ | Context Receipt 여부 | code/deploy 작업에서 없으면 구현 보류 | 관련 문서 확인 근거 필요 |
48
50
  | `src/components/` 또는 React 코드 존재 여부 | 없으면 Phase 3 미완 | React 개발 필요 |
49
51
  | `docs/03_Technical_Specs/` 존재 여부 | 없으면 Phase 4 미완 | 개발문서 필요 |
50
52
  | verify-* 스킬 실행 이력 또는 사용자 확인 여부 | 없으면 Phase 5 미완 | 품질 검증 필요 |
@@ -250,7 +252,24 @@ Pre-Code Technical Brief 보고에는 `Flow Status Block`을 포함하고, 다
250
252
  출력: Component & Library Plan
251
253
  ```
252
254
 
253
- Component & Library Planning Gate 보고에는 `Flow Status Block`을 포함하고, 다음 위치가 `Phase 3 React 변환`임을 명시한다.
255
+ Component & Library Planning Gate 보고에는 `Flow Status Block`을 포함하고, 다음 위치가 `Context Receipt Gate`임을 명시한다.
256
+
257
+ ---
258
+
259
+ ## Context Receipt Gate: 관련 문서 확인
260
+
261
+ **목표**: `code`와 `deploy` 작업 전에 읽기 전용 Context Agent가 백로그의 모든 Related 문서를 실제로 읽었음을 증명한다.
262
+
263
+ **Gate Out**:
264
+ - [ ] 백로그에 `Work Type`이 기록됨
265
+ - [ ] Context Receipt의 상태가 PASS이거나 warning 발견 사항에 사용자 진행 승인이 있음
266
+ - [ ] `Required References Read`가 모든 실제 Related 링크를 포함함
267
+ - [ ] Constraints와 Conflicts가 기록됨
268
+ - [ ] Coordinator가 warning 기간의 preflight 발견 사항을 기록하고 사용자 진행 승인을 받음. blocking 전환 후에는 Coordinator가 내부 `preflight TASK-ID --strict`를 통과시킴
269
+
270
+ 상세 역할과 Receipt 형식은 `rules-workflow/resources/agent-harness-contract.md`를 정본으로 따른다. `docs`와 `prototype` 작업은 이 게이트를 기록성 체크로 적용한다.
271
+
272
+ Context Receipt Gate 보고에는 `Flow Status Block`을 포함하고, 다음 위치가 `Phase 3 — React 변환`임을 명시한다.
254
273
 
255
274
  ---
256
275
 
@@ -265,6 +284,7 @@ Component & Library Planning Gate 보고에는 `Flow Status Block`을 포함하
265
284
  - 화면·동선·데이터 흐름 확인 결과가 백로그 또는 UI 문서에 반영됨
266
285
  - Pre-Code Technical Brief 통과
267
286
  - Component & Library Planning Gate 통과
287
+ - code/deploy 작업의 Context Receipt Gate 통과
268
288
 
269
289
  **Gate Out** (다음 단계 진입 조건):
270
290
  - [ ] `src/components/` 에 주요 컴포넌트 존재
@@ -324,6 +344,9 @@ Phase 4 완료 보고에는 `Flow Status Block`을 포함한다.
324
344
  - React 코드 구현 완료 (Phase 3)
325
345
 
326
346
  **Gate Out** (다음 단계 진입 조건):
347
+ - [ ] `code`와 `deploy` 작업의 읽기 전용 Verification Agent 실행
348
+ - [ ] Verification Receipt PASS 또는 warning 발견 사항에 사용자 진행 승인 — 명령 결과, 미실행 사유, QA 문서 또는 PR 상세 근거
349
+ - [ ] Coordinator가 warning 기간의 verify 발견 사항을 기록하고 사용자 진행 승인을 받음. blocking 전환 후에는 Coordinator가 내부 `verify TASK-ID --strict`를 통과시킴
327
350
  - [ ] `verify-docs` PASS — 문서 구조·메타데이터 정합성
328
351
  - [ ] `verify-ui` PASS — 구현 UI와 화면 문서·사용자 동선·상태별 UI 정합성
329
352
  - [ ] `verify-code` PASS — 코드 품질 (로직, 타입, 중복, 사이드 이펙트)
@@ -336,7 +359,7 @@ Phase 4 완료 보고에는 `Flow Status Block`을 포함한다.
336
359
 
337
360
  ```
338
361
  사용할 스킬: verify-implementation
339
- 동작: 위 verify-* 스킬을 순차 실행하고 통합 보고서 생성
362
+ 동작: Change Receipt 직후 Coordinator가 이 스킬을 자동 실행해 위 verify-* 스킬과 내부 Receipt 검사를 수행하고 통합 보고서 생성
340
363
  FAIL 항목 발견 시: 해당 스킬로 돌아가 수정 후 재검증
341
364
  ```
342
365
 
@@ -374,7 +397,7 @@ Phase 5 검증 보고에는 `Flow Status Block`을 포함하고, Fail이 있으
374
397
  [Flow]
375
398
  현재: Phase 6 — 최종 전달물 또는 Handoff
376
399
  Gate: 완료
377
- 완료: Phase 1, Phase 2, HTML UI Preview Gate, UI-First Gate, Pre-Code Technical Brief, Component & Library Planning Gate, Phase 3, Phase 4, Phase 5
400
+ 완료: Phase 1, Phase 2, HTML UI Preview Gate, UI-First Gate, Pre-Code Technical Brief, Component & Library Planning Gate, Context Receipt Gate, Phase 3, Phase 4, Phase 5
378
401
  다음: 사용자 선택 후속 작업
379
402
  필요 확인: 남은 TODO 또는 없음
380
403
  권장 스킬: /docs-pitch 또는 /docs-business (선택)
@@ -382,7 +405,7 @@ Gate: 완료
382
405
  전체 워크플로우 완료
383
406
  - Phase 1: docs/01_Concept_Design/ 기획문서
384
407
  - Phase 2: docs/02_UI_Screens/ UI 설계 문서
385
- - Gates: HTML UI Preview, UI-First, Pre-Code Technical Brief, Component & Library Planning 완료
408
+ - Gates: HTML UI Preview, UI-First, Pre-Code Technical Brief, Component & Library Planning, Context Receipt 완료
386
409
  - Phase 3: src/components/ React 컴포넌트
387
410
  - Phase 4: docs/03~05_*/ 개발·진행·QA 문서
388
411
  - Phase 5: verify-implementation PASS 품질 검증 완료
@@ -395,7 +418,8 @@ Phase 6이 선택 사항이어도, 작업을 마무리할 때는 아래 항목
395
418
 
396
419
  - [ ] 현재 Phase와 완료된 Phase 목록
397
420
  - [ ] 구현 또는 문서 산출물 경로
398
- - [ ] HTML UI Preview, UI-First Gate, Pre-Code Technical Brief, Component & Library Planning Gate 충족 여부
421
+ - [ ] HTML UI Preview, UI-First Gate, Pre-Code Technical Brief, Component & Library Planning Gate, Context Receipt Gate 충족 여부
422
+ - [ ] code/deploy 작업의 독립 Verification Receipt 및 상세 근거 링크
399
423
  - [ ] 실행한 verify 스킬과 결과
400
424
  - [ ] 배포 URL 또는 로컬 실행 방법 (해당 시)
401
425
  - [ ] 남은 TODO, Known Issue, 문서-구현 불일치 여부
@@ -1,4 +1,4 @@
1
1
  interface:
2
2
  display_name: "Product Workflow"
3
- short_description: "Orchestrate planning, UI previews, docs, QA"
4
- default_prompt: "Use $rules-product to diagnose the current phase, gates, HTML previews, and next skill."
3
+ short_description: "Orchestrate product phases and agent gates"
4
+ default_prompt: "Use $rules-product to diagnose the current phase, UI and component gates, Context Receipt readiness, independent verification, and the next skill."
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rules-workflow
3
- description: Guides the full implementation lifecycle from planning through PR. Use when implementing a new feature, planning implementation, before committing or creating a PR, avoiding overengineering, or following the 18-step workflow. Requires product phase preflight, HTML UI Preview Gate, UI-First Gate, Component & Library Planning Gate, Backlog Context Lock, YAGNI/KISS/DRY minimal implementation checks, implementation quality checks, and deployment readiness.
3
+ description: Guides the full implementation lifecycle from planning through PR. Use when implementing a feature or preparing a PR. Requires product/UI gates, Backlog Context Lock, Agent Harness Context and Verification Receipts, minimal implementation checks, and deployment readiness.
4
4
  ---
5
5
 
6
6
  # Implementation & Execution Workflow (18 Steps)
@@ -8,12 +8,29 @@ description: Guides the full implementation lifecycle from planning through PR.
8
8
  > **Human Quick Reference**
9
9
  > - **When**: Feature implementation, commit/PR prep, 18-step workflow
10
10
  > - **Invoke**: `/rules-workflow` after gates and backlog links are ready
11
- > - **Prerequisites**: HTML UI Preview Gate, UI-First Gate, Backlog Context Lock, Component & Library Plan
12
- > - **Next**: `verify-implementation` before PR
11
+ > - **Prerequisites**: HTML UI Preview Gate, UI-First Gate, Backlog Context Lock, Component & Library Plan, Context Receipt
12
+ > - **Next**: After implementation, the Coordinator automatically invokes `verify-implementation` before any completion report or PR
13
13
  > - **Guide**: project root `USAGE.md` (English default, Korean below; copied on install)
14
14
 
15
15
  Follow this workflow for feature implementation and significant code changes. Complete each phase before advancing; use the checklists to avoid skipping steps.
16
16
 
17
+ ## Agent Harness Gate (Code / Deploy)
18
+
19
+ `code`와 `deploy` 백로그 작업은 [Agent Harness Contract](./resources/agent-harness-contract.md)를 정본으로 사용한다. Coordinator는 메인 대화가 담당하며 Context, Implementation, Verification 역할을 순서대로 위임한다.
20
+
21
+ - Claude Code: `.claude/agents/solmate-*.md` 네이티브 프로젝트 에이전트를 사용한다.
22
+ - Codex: 사용 가능한 subagent 또는 별도 task에 정본의 역할 계약을 전달한다.
23
+ - Context Agent와 Verification Agent는 읽기 전용이다.
24
+ - `blocking` 모드에서 Context Receipt가 없으면 구현을 시작하지 않는다.
25
+ - `blocking` 모드에서 Verification Receipt가 없으면 Done, PR, merge, publish, deploy로 이동하지 않는다.
26
+ - 처음 5개 실제 작업은 `warning`, 이후에는 `blocking` 모드를 권장한다.
27
+ - 런타임이 독립 에이전트를 제공하지 않으면 `Degraded`로 보고하고 완료 전 사용자 승인을 받는다.
28
+ - Coordinator는 `preflight`, `verify`, `validate-harness`를 에이전트 내부 검사로 실행한다. 사용자에게 명령어·Task ID·Receipt 파일 작성을 요구하지 않고, 통과 결과 또는 막힌 이유만 설명한다.
29
+
30
+ 기계 검사는 Coordinator가 내부적으로 `npx solmate-skills preflight TASK-ID`와 `npx solmate-skills verify TASK-ID`를 사용한다. `--strict`는 누락 시 non-zero로 차단한다. 이 명령은 CI·런타임 어댑터용이며, 사람용 완료 절차가 아니다.
31
+
32
+ v1 구조화 산출물을 선택한 작업은 Coordinator가 `npx solmate-skills validate-harness manifest|message|events <path>`를 warning 모드로 실행한다. message와 events는 `--manifest <path>`가 필수이며, 파일럿 승인 전에는 `--strict`를 기본값으로 강제하지 않는다.
33
+
17
34
  ---
18
35
 
19
36
  ## Step 0: Product Phase Preflight
@@ -30,14 +47,16 @@ Follow this workflow for feature implementation and significant code changes. Co
30
47
 
31
48
  ### Step 1. 계획 수립
32
49
  - 요구사항·목적을 문서 또는 이슈 기준으로 정리한다.
33
- - 백로그 항목이 있으면 `Related Concept Docs`, `Related UI Docs`, `Related Technical Docs`, `Related QA Docs`를 먼저 읽고 구현 입력값으로 요약한다.
50
+ - 백로그 항목에 `Work Type`을 `code`, `deploy`, `docs`, `prototype` 하나로 기록한다.
51
+ - `code`와 `deploy` 작업은 Context Agent가 `Related Concept Docs`, `Related UI Docs`, `Related HTML Preview`, `Related Technical Docs`, `Related QA Docs`를 모두 읽고 Context Receipt를 백로그에 기록한다.
52
+ - Coordinator는 Context Receipt의 `Required References Read`가 모든 링크 문서를 포함하는지 확인하고 내부적으로 `preflight TASK-ID`를 실행한다. 누락이 있으면 사용자에게 명령을 요청하지 않고 누락 문서와 보류 사유를 설명한다.
34
53
  - 코드 작성보다 먼저 HTML UI Preview Gate를 확인한다. `docs/02_UI_Screens/previews/`의 HTML Preview가 없거나 UI 문서에 링크되지 않았거나 사용자 확인 기록이 없으면 구현 계획을 보류하고 `docs-plan` 문서/HTML 보완을 제안한다.
35
54
  - 그 다음 UI-First Gate를 확인한다. 화면 구조, 사용자 동선, 데이터 흐름, 로딩·빈 상태·오류 상태가 문서화되지 않았으면 구현 계획을 보류하고 `docs-plan` 또는 `docs-dev` 문서 보완을 제안한다.
36
55
  - Pre-Code Technical Brief를 확인한다. 데이터 소스, 최소 필드, mutation, 상태 관리 방식, acceptance criteria가 불명확하면 구현 전에 사용자와 합의한다.
37
56
  - Component & Library Planning Gate를 확인한다. 사용할 shadcn/ui 컴포넌트, 커스텀 컴포넌트, 기존 재사용 컴포넌트, 새 라이브러리, 설치하지 않을 라이브러리, shadcn `init`/`apply` 적용 여부가 불명확하면 구현 전에 `tools-shadcn`, `rules-react`, `docs-dev` 보완을 제안한다.
38
57
  - Step 4에서 `rules-dev`의 Minimal Implementation Gate 정본을 기준으로 과잉 구현 후보를 확인한다.
39
58
  - 변경할 파일·추가할 컴포넌트·API·DB 영향 범위를 나열한다.
40
- - 체크: [ ] 목적이 명확한가? [ ] 관련 문서를 읽었는가? [ ] HTML UI Preview를 확인했는가? [ ] UI-First Gate가 확인되었는가? [ ] 최소 기술 계약이 확인되었는가? [ ] Component & Library Plan이 확인되었는가? [ ] 영향 범위가 정리되었는가?
59
+ - 체크: [ ] 목적이 명확한가? [ ] Work Type이 기록되었는가? [ ] Context Receipt가 PASS인가? [ ] 관련 문서를 읽었는가? [ ] HTML UI Preview를 확인했는가? [ ] UI-First Gate가 확인되었는가? [ ] 최소 기술 계약이 확인되었는가? [ ] Component & Library Plan이 확인되었는가? [ ] 영향 범위가 정리되었는가?
41
60
 
42
61
  ### Step 2. 계획 검토
43
62
  - 계획이 요구사항과 일치하는지, 누락된 시나리오는 없는지 검토한다.
@@ -59,18 +78,22 @@ Follow this workflow for feature implementation and significant code changes. Co
59
78
 
60
79
  ### Step 5. 구현
61
80
  - 승인된 계획대로 구현한다. AGENTS.md·프로젝트 컨벤션(커밋, Zod, Luxon 등)을 따른다.
81
+ - `code`와 `deploy` 작업은 Context Receipt를 먼저 확인한다. 첫 5개 warning 작업은 발견 사항을 기록하고 사용자 확인을 받으며, blocking 전환 후에는 PASS Receipt 없이는 시작하지 않는다. 내부 preflight가 차단되면 Coordinator가 문서·Receipt를 보완한 뒤 재실행하며, 사용자에게는 보류 사유와 필요한 결정만 설명한다.
82
+ - Implementation Agent는 승인 범위만 수정하고 Change Receipt를 남긴다. Change Receipt는 독립 검증을 대체하지 않는다.
62
83
  - 코드 작성 전 백로그 항목의 `Implementation Preconditions`와 `Acceptance Criteria`를 확인한다. 관련 문서 링크가 비어 있거나 `N/A - 사유`가 부실하면 구현을 보류하고 문서 보완 필요 여부를 사용자에게 확인한다.
63
84
  - HTML UI Preview Gate가 통과되지 않았거나 사용자가 HTML Preview를 확인하지 않았다면 구현을 시작하지 않는다.
64
85
  - UI-First Gate가 통과되지 않았거나 사용자가 화면/UI를 먼저 확인하지 않았다면 구현을 시작하지 않는다.
65
86
  - Component & Library Planning Gate가 통과되지 않았다면 구현을 시작하지 않는다. 새 컴포넌트·새 라이브러리·shadcn preset 적용이 필요하면 현재 화면과 acceptance criteria 기준의 근거를 먼저 설명한다.
66
87
  - 비프로토타입 작업에서 `rules-dev`의 Minimal Implementation Gate를 통과하지 못했다면 구현을 시작하지 않는다. 새 추상화·새 의존성·새 설정이 필요하면 현재 요구사항 근거를 먼저 설명한다.
67
88
  - 구현을 시작하기 직전에 `Flow Status Block`을 출력하고, 현재 위치가 `Phase 3 — React 변환` 또는 해당 기능 구현 단계인지 명시한다.
68
- - 체크: [ ] 계획 대비 변경 사항이 일치하는가? [ ] 백로그의 관련 문서 기준을 반영했는가? [ ] HTML Preview 확인 후 구현했는가? [ ] 화면·동선·데이터 흐름 확인 후 구현했는가? [ ] Component & Library Plan을 반영했는가? [ ] 최소 구현 원칙을 지켰는가?
89
+ - 체크: [ ] Context Receipt가 PASS인가? [ ] 계획 대비 변경 사항이 일치하는가? [ ] 백로그의 관련 문서 기준을 반영했는가? [ ] HTML Preview 확인 후 구현했는가? [ ] 화면·동선·데이터 흐름 확인 후 구현했는가? [ ] Component & Library Plan을 반영했는가? [ ] 최소 구현 원칙을 지켰는가? [ ] Change Receipt를 남겼는가?
69
90
 
70
91
  ---
71
92
 
72
93
  ## Phase 3: Verify Implementation (Steps 6–10)
73
94
 
95
+ `code`와 `deploy` 작업은 Implementation Agent와 분리된 Verification Agent가 이 단계를 수행한다. Change Receipt가 반환되면 Coordinator는 사용자에게 검증 명령을 요청하거나 구현 완료를 선언하지 않고 즉시 `verify-implementation`과 필요한 내부 Receipt 검사를 시작한다. 검증자는 발견 사항을 직접 수정하지 않고 Verification Receipt로 Coordinator에 반환한다. 수정이 필요하면 Implementation Agent가 처리한 뒤 새 검증을 실행한다.
96
+
74
97
  ### Step 6. 목적 부합 검토
75
98
  - 구현이 원래 목적과 요구사항에 맞게 동작하는지 확인한다.
76
99
  - 체크: [ ] 핵심 시나리오 동작 [ ] 요구사항 미충족 구간 없음
@@ -127,8 +150,10 @@ Follow this workflow for feature implementation and significant code changes. Co
127
150
 
128
151
  ### Step 17. 배포 가능 퀄리티 최종 검토
129
152
  - "이대로 배포해도 될 수준인가?"를 한 번 더 검토한다. 1–16단계에서 누락된 항목이 없는지 확인한다.
153
+ - `code`와 `deploy` 작업은 Verification Receipt에 `Status: PASS`, 실행 명령 결과, 미실행 항목의 사유, QA 문서 또는 PR 상세 근거 링크가 있어야 한다.
154
+ - 첫 5개 warning 작업은 Coordinator가 검증 발견 사항을 기록하고 사용자 진행 승인을 받는다. blocking 전환 후 내부 `verify TASK-ID --strict`가 통과하지 않으면 Done, PR, merge, publish, deploy를 차단한다. 어느 경우에도 사용자에게 이 명령 실행을 요구하지 않는다.
130
155
  - 최종 검토 시 `Flow Status Block`을 출력하고, 다음 위치가 `Phase 6 — Ship/Handoff`인지 명시한다.
131
- - 체크: [ ] 배포 전 필수 조건 충족 [ ] 롤백·모니터링 고려 여부
156
+ - 체크: [ ] 독립 Verification Receipt PASS [ ] 검증 근거 링크 존재 [ ] strict verify 통과 [ ] 배포 전 필수 조건 충족 [ ] 롤백·모니터링 고려 여부
132
157
 
133
158
  ---
134
159
 
@@ -137,7 +162,8 @@ Follow this workflow for feature implementation and significant code changes. Co
137
162
  ### Step 18. 커밋 및 PR 작성
138
163
  - 프로젝트 커밋 컨벤션(`type(scope): subject`, 한글, 상세 3줄 이상)에 맞춰 커밋한다.
139
164
  - PR에는 변경 목적, 영향 범위, 테스트/검증 방법을 요약해 적는다.
140
- - 체크: [ ] 커밋 메시지 규칙 준수 [ ] PR 설명으로 리뷰어가 맥락 파악 가능
165
+ - warning 기간에는 Verification Receipt 발견 사항과 사용자 진행 승인을 PR 기록한다. blocking 전환 후에는 Verification Receipt가 PASS가 아니거나 상세 검증 근거가 없으면 PR을 생성하지 않는다.
166
+ - 체크: [ ] Verification Receipt PASS 또는 warning 사용자 승인 [ ] 커밋 메시지 규칙 준수 [ ] PR 설명으로 리뷰어가 맥락 파악 가능
141
167
 
142
168
  ---
143
169
 
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: solmate-context-reader
3
+ description: Use proactively before code or deployment work to read every backlog reference and return a Context Receipt without editing files.
4
+ tools:
5
+ - Read
6
+ - Glob
7
+ - Grep
8
+ - Bash
9
+ permissionMode: plan
10
+ ---
11
+
12
+ You are the read-only Context Agent in the Solmate agent harness.
13
+
14
+ Locate and follow `.agent/skills/rules-workflow/resources/agent-harness-contract.md`, especially the Context Agent and Context Receipt sections. If the skill is being developed from its source repository, use `rules-workflow/resources/agent-harness-contract.md`.
15
+
16
+ Read the target backlog item and every linked Concept, UI, HTML Preview, Technical, and QA reference. Verify that each relative path exists. Extract constraints, decisions, acceptance criteria, and conflicts.
17
+
18
+ After preparing the receipt, run the available read-only preflight check for the target task. This is an internal agent action: do not ask the user to provide a command, task ID, or receipt content. If the check is blocked, return the missing references and the plain-language reason to the Coordinator.
19
+
20
+ Do not edit files or implement the task. Return only a complete Context Receipt plus blocking findings. Missing references or an incomplete receipt must be reported as `BLOCKED`.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: solmate-implementer
3
+ description: Implement an approved code or deployment task only after a passing Context Receipt and return a Change Receipt.
4
+ tools:
5
+ - Read
6
+ - Glob
7
+ - Grep
8
+ - Edit
9
+ - Write
10
+ - Bash
11
+ permissionMode: default
12
+ ---
13
+
14
+ You are the Implementation Agent in the Solmate agent harness.
15
+
16
+ Locate and follow `.agent/skills/rules-workflow/resources/agent-harness-contract.md`, especially the Implementation Agent and Change Receipt sections. If the skill is being developed from its source repository, use `rules-workflow/resources/agent-harness-contract.md`.
17
+
18
+ Do not start without a passing Context Receipt and explicit user approval. Implement only the approved backlog scope and acceptance criteria. Follow project instructions, existing patterns, and the Minimal Implementation Gate.
19
+
20
+ If a new requirement, document conflict, or unsafe assumption appears, stop and return it to the Coordinator. After implementation, run only the basic checks appropriate to the change and return a complete Change Receipt. Do not claim independent verification or tell the user that they must run a verification command; the Coordinator starts the independent verification handoff automatically.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: solmate-verifier
3
+ description: Use proactively after code or deployment changes to independently verify the diff and return evidence without modifying files.
4
+ tools:
5
+ - Read
6
+ - Glob
7
+ - Grep
8
+ - Bash
9
+ disallowedTools:
10
+ - Edit
11
+ - Write
12
+ permissionMode: dontAsk
13
+ ---
14
+
15
+ You are the read-only Verification Agent in the Solmate agent harness.
16
+
17
+ Locate and follow `.agent/skills/rules-workflow/resources/agent-harness-contract.md`, especially the Verification Agent and Verification Receipt sections. If the skill is being developed from its source repository, use `rules-workflow/resources/agent-harness-contract.md`.
18
+
19
+ Independently inspect the target backlog item, accepted Context Receipt, current diff, acceptance criteria, and relevant verify skills. Run the checks that are available without changing project files, including the internal completion Receipt check when the runtime provides it. The Coordinator invokes this role immediately after a Change Receipt; do not ask the user to run `verify`, `verify-implementation`, or any other command.
20
+
21
+ Do not fix findings, modify source files, or accept the Implementation Agent's claims without evidence. Return a complete Verification Receipt. Any failing command, missing evidence, or unrun required check makes the receipt `FAIL` and returns the task to the Coordinator.
@@ -1,4 +1,4 @@
1
1
  interface:
2
2
  display_name: "Implementation Workflow"
3
- short_description: "Follow implementation with minimal gates"
4
- default_prompt: "Use $rules-workflow to plan, apply YAGNI/KISS/DRY gates, implement, verify, and prepare this feature for shipping."
3
+ short_description: "Run context-aware implementation and verification"
4
+ default_prompt: "Use $rules-workflow to require a Context Receipt before code, apply minimal implementation gates, delegate independent verification, and require a Verification Receipt before shipping."
@@ -0,0 +1,191 @@
1
+ # Agent Harness Contract
2
+ > Created: 2026-07-17 00:33
3
+ > Last Updated: 2026-07-17 01:53
4
+
5
+ This file is the canonical contract for the Solmate implementation harness. Runtime-specific adapters must reference this file instead of copying the full policy.
6
+
7
+ ## 1. Scope
8
+
9
+ The harness is mandatory for `code` and `deploy` backlog tasks.
10
+
11
+ - `docs`: agent delegation is optional; document verification still follows the relevant verify skill.
12
+ - `prototype`: receipts are advisory unless safety, security, data preservation, or user approval is involved.
13
+ - If a runtime cannot provide an independent worker, report `Degraded - independent agent unavailable` and obtain user approval before treating verification as complete.
14
+
15
+ ## 2. Roles
16
+
17
+ ### Coordinator
18
+
19
+ The main conversation owns phase diagnosis, user approval, handoffs, and final status. In `blocking` mode it must not allow a code or deploy task to move:
20
+
21
+ - to implementation without a passing Context Receipt;
22
+ - to Done, PR, merge, publish, or deploy without a passing Verification Receipt;
23
+ - past a failed receipt without returning the task to the responsible role.
24
+
25
+ The Coordinator owns internal harness operation. It resolves the backlog task, runs `preflight`, `verify`, and any opted-in structured validation, then reports results in plain language. It must never tell the user to type an internal CLI command, supply a task ID, or create a Receipt merely to advance a normal feature request.
26
+
27
+ ### Context Agent
28
+
29
+ Read-only. Read every linked backlog reference and return a Context Receipt. Do not edit files, run destructive commands, or implement the task.
30
+
31
+ ### Implementation Agent
32
+
33
+ Write-capable. Start only after the Coordinator accepts the Context Receipt. Implement only the approved scope and return a Change Receipt. New requirements go back to the Coordinator.
34
+
35
+ ### Verification Agent
36
+
37
+ Read-only except for a user-approved verification report. Independently inspect the diff and run relevant checks. Do not fix findings. Return failures to the Implementation Agent through the Coordinator.
38
+
39
+ ## 3. Handoff Sequence
40
+
41
+ ```text
42
+ User approval
43
+ -> Coordinator
44
+ -> Context Agent
45
+ -> Context Receipt
46
+ -> Implementation Agent
47
+ -> Change Receipt
48
+ -> Verification Agent
49
+ -> Verification Receipt
50
+ -> Coordinator completion decision
51
+ ```
52
+
53
+ Context gathering and verification are sequential gates. Independent document searches or test groups may run in parallel inside their own role when they do not write the same files.
54
+
55
+ ## 4. Enforcement Modes
56
+
57
+ - `warning`: report missing or invalid receipt fields but return a successful process exit. Use for the first five real tasks to calibrate false positives.
58
+ - `blocking`: return a non-zero process exit for missing or invalid mandatory evidence. Use after calibration.
59
+
60
+ In warning mode the Coordinator records findings and asks the user before proceeding. Warning mode must never be reported as a PASS.
61
+
62
+ The two mandatory failures are always visible in both modes:
63
+
64
+ 1. a linked required document was not recorded as read;
65
+ 2. a code or deploy task has no passing verification evidence.
66
+
67
+ The Coordinator or CI runs the machine checks internally:
68
+
69
+ ```bash
70
+ npx solmate-skills preflight TASK-000
71
+ npx solmate-skills verify TASK-000
72
+ npx solmate-skills preflight TASK-000 --strict
73
+ npx solmate-skills verify TASK-000 --strict
74
+ ```
75
+
76
+ `--strict` is an alias for `--mode blocking`. The default backlog path is `docs/04_Logic_Progress/00_BACKLOG.md`; override it with `--backlog <path>`.
77
+
78
+ These commands are runtime and CI interfaces, not the normal human workflow. When a check blocks progress, explain the missing document, evidence, or failed verification and the decision needed from the user.
79
+
80
+ ## 5. Receipt Contracts
81
+
82
+ Keep receipt summaries inside the backlog item. Verification details must link to a QA document or PR.
83
+
84
+ ### Context Receipt
85
+
86
+ ```markdown
87
+ - Context Receipt:
88
+ - Status: PASS
89
+ - Required References Read:
90
+ - [Product Specs](../01_Concept_Design/03_PRODUCT_SPECS.md) - constraints extracted
91
+ - [API Specs](../03_Technical_Specs/02_API_SPECS.md) - contract extracted
92
+ - Constraints:
93
+ - Approved scope and behavior constraints
94
+ - Conflicts: None
95
+ ```
96
+
97
+ Rules:
98
+
99
+ - Every relative link in the five `Related ...` fields must exist or use `N/A - reason`.
100
+ - Every linked path must appear in `Required References Read`.
101
+ - `Status: PASS`, `Constraints`, and `Conflicts` are mandatory.
102
+
103
+ ### Change Receipt
104
+
105
+ ```markdown
106
+ - Change Receipt:
107
+ - Files Changed:
108
+ - `path/to/file`
109
+ - Requirements Covered:
110
+ - Acceptance criterion covered by the change
111
+ - Excluded Scope: N/A - no additional scope
112
+ - Basic Checks:
113
+ - `command` - PASS - concise result
114
+ - Remaining Risks: None
115
+ ```
116
+
117
+ The Change Receipt is a handoff summary. It is not independent verification and cannot replace the Verification Receipt.
118
+
119
+ ### Verification Receipt
120
+
121
+ ```markdown
122
+ - Verification Receipt:
123
+ - Status: PASS
124
+ - Commands and Results:
125
+ - `npm test` - PASS - 42 tests
126
+ - Unrun Checks:
127
+ - N/A - all planned checks ran
128
+ - Detailed Evidence:
129
+ - [QA Report](../05_QA_Validation/10_FEATURE_QA.md) - commands, scope, and results
130
+ ```
131
+
132
+ Rules:
133
+
134
+ - `Status: PASS` is mandatory and the receipt must not contain `FAIL`.
135
+ - At least one command result must contain `PASS`.
136
+ - `Unrun Checks` must explain skipped checks or explicitly state that all planned checks ran.
137
+ - `Detailed Evidence` must link to a QA document or PR.
138
+
139
+ ## 6. Versioned Structured Artifacts
140
+
141
+ The existing backlog Receipts remain valid. Projects may additionally opt into the v1 manifest, message, and event contracts defined by `agent-harness-v1.schema.json` in this directory. The Coordinator or CI manages these artifacts; a normal feature requester does not create or validate them manually.
142
+
143
+ ```bash
144
+ npx solmate-skills validate-harness manifest _workspace/harness/TASK-000/manifest.json
145
+ npx solmate-skills validate-harness message _workspace/harness/TASK-000/attempt-01/messages/msg-001.json --manifest _workspace/harness/TASK-000/manifest.json
146
+ npx solmate-skills validate-harness events _workspace/harness/TASK-000/events.jsonl --manifest _workspace/harness/TASK-000/manifest.json
147
+ ```
148
+
149
+ Rules:
150
+
151
+ - Structured validation defaults to `warning`; add `--strict` or `--mode blocking` for non-zero contract failures.
152
+ - Message and event validation requires `--manifest` so active roles, task identity, attempt, receipts, and current state can be checked together.
153
+ - Exit `0` means pass or warning-mode findings, exit `1` means a blocking contract failure, and exit `2` means an operational error such as a missing file or malformed JSON.
154
+ - Only the Coordinator may record state transitions.
155
+ - `COMPLETE` requires passing Requirements or an approved skip, Context, Design or an approved skip, Change, and Verification Receipt evidence in the manifest.
156
+ - Core code/deploy roles must be active, read-only roles cannot own write paths, and overlapping exclusive ownership across roles is rejected.
157
+ - Write scopes must use canonical project-relative paths; aliases such as `./`, duplicate separators, and embedded `.` segments are rejected. Recursive ownership uses only `directory/**` or `**`.
158
+ - Event logs begin at `INTAKE`, use contiguous sequence numbers, preserve state continuity, and require evidence for gated transitions.
159
+ - In v1, `attempt` increments only when `REWORK` returns to `IMPLEMENTING`; cancellation and ordinary state progress retain the current attempt. Operational retry events belong to the later orchestration/recovery phase.
160
+ - Direct peer `STATUS` and `QUESTION` messages may use only `INFO` or `PENDING`; PASS, FAIL, BLOCKED, decisions, rework, and completion claims route through Coordinator.
161
+ - The top-level schema uses `oneOf` so a standard Draft 2020-12 validator can validate one manifest, message, or event object. Each non-empty JSONL line is an event object.
162
+ - Timestamps use the Solmate canonical RFC 3339 profile: uppercase `T`/`Z`, years `0001` through `9999`, seconds `00` through `59`, and a required UTC marker or numeric offset. Leap-second and lowercase variants are intentionally excluded for deterministic interoperability.
163
+
164
+ ### 6.1 Compatibility Migration
165
+
166
+ 1. Existing projects may continue using backlog Receipts and the current `preflight` / `verify` commands without creating structured artifacts.
167
+ 2. An opting-in project creates `manifest.json` and `events.jsonl`, then runs `validate-harness` in the default warning mode.
168
+ 3. Message and event artifacts use `schema_version: 1`; unsupported versions are reported without rewriting the files.
169
+ 4. Projects record warning findings during the five-task pilot before enabling `--strict` in automation.
170
+ 5. Blocking rollout, migration of existing tasks, and removal of compatibility behavior require separate user approval.
171
+
172
+ ## 7. Runtime Adapters
173
+
174
+ ### Claude Code
175
+
176
+ Project agents are installed under `.claude/agents/`:
177
+
178
+ - `solmate-context-reader.md`
179
+ - `solmate-implementer.md`
180
+ - `solmate-verifier.md`
181
+
182
+ The main Claude session remains the Coordinator.
183
+
184
+ ### Codex
185
+
186
+ The main Codex task remains the Coordinator. Use available subagents or separate tasks for Context and Verification, passing the relevant role section and receipt contract from this file. `rules-workflow/SKILL.md` is the required Codex adapter, and a linked project `AGENTS.md` reinforces it when present. No unsupported `.codex/agents/` format is assumed.
187
+
188
+ ## 8. Related Documents
189
+
190
+ - [Implementation Workflow](../SKILL.md) - invokes this contract at implementation and verification gates
191
+ - Project root `USAGE.md` - human-facing installation and command reference