vibe-coding-master 0.0.5 → 0.0.7
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/README.md +168 -63
- package/dist/backend/adapters/translation-provider.js +145 -0
- package/dist/backend/api/artifact-routes.js +3 -0
- package/dist/backend/api/harness-routes.js +22 -0
- package/dist/backend/api/project-routes.js +3 -8
- package/dist/backend/api/translation-routes.js +70 -0
- package/dist/backend/runtime/node-pty-runtime.js +20 -18
- package/dist/backend/server.js +31 -1
- package/dist/backend/services/app-settings-service.js +128 -0
- package/dist/backend/services/artifact-service.js +7 -4
- package/dist/backend/services/claude-transcript-service.js +509 -0
- package/dist/backend/services/harness-service.js +178 -0
- package/dist/backend/services/project-service.js +4 -0
- package/dist/backend/services/session-service.js +7 -5
- package/dist/backend/services/status-service.js +76 -0
- package/dist/backend/services/translation-prompts.js +173 -0
- package/dist/backend/services/translation-queue.js +39 -0
- package/dist/backend/services/translation-service.js +546 -0
- package/dist/backend/templates/handoff.js +32 -0
- package/dist/backend/templates/harness/architect-agent.js +12 -0
- package/dist/backend/templates/harness/claude-root.js +14 -0
- package/dist/backend/templates/harness/coder-agent.js +11 -0
- package/dist/backend/templates/harness/project-manager-agent.js +14 -0
- package/dist/backend/templates/harness/reviewer-agent.js +13 -0
- package/dist/backend/ws/translation-ws.js +35 -0
- package/dist/shared/types/harness.js +1 -0
- package/dist/shared/types/translation.js +5 -0
- package/dist/shared/validation/artifact-check.js +15 -1
- package/dist/shared/validation/language-detect.js +46 -0
- package/dist-frontend/assets/index-BNASqKEK.css +32 -0
- package/dist-frontend/assets/index-Bp49_End.js +58 -0
- package/dist-frontend/index.html +2 -2
- package/docs/cc-best-practices.md +93 -36
- package/docs/product-design.md +313 -1408
- package/docs/v1-architecture-design.md +500 -1153
- package/docs/v1-implementation-plan.md +783 -1604
- package/package.json +3 -1
- package/scripts/verify-package.mjs +121 -0
- package/dist/backend/templates/role-messaging-context.js +0 -44
- package/dist-frontend/assets/index-Bah6k-Ix.css +0 -32
- package/dist-frontend/assets/index-EMaQuIB6.js +0 -58
- package/docs/v1-message-bus-orchestration-design.md +0 -534
package/dist-frontend/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>VibeCodingMaster</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-Bp49_End.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BNASqKEK.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
|
@@ -137,7 +137,7 @@ Minimum baseline for non-trivial AI coding:
|
|
|
137
137
|
- root `CLAUDE.md`
|
|
138
138
|
- module-local `CLAUDE.md` for edited modules
|
|
139
139
|
- architecture, module map, testing, security, and dependency docs
|
|
140
|
-
- role agents for project management/user communication
|
|
140
|
+
- role agents for project management/user communication, architecture/planning, coding, and independent review/testing
|
|
141
141
|
- task specs, handoff artifacts, progress state, decisions, validation logs, known issues, and generated context artifacts
|
|
142
142
|
- fast, changed-file, module, boundary, public-surface, contract-test, generated-artifact, docs-freshness, and agent-rule checks
|
|
143
143
|
- hooks or CI gates for protected files, validation, docs sync, public contracts, and test quality
|
|
@@ -198,10 +198,10 @@ Root template:
|
|
|
198
198
|
|
|
199
199
|
Role-specific behavior lives in `.claude/agents/`.
|
|
200
200
|
|
|
201
|
-
- Use `claude --agent project-manager` for user communication,
|
|
202
|
-
- Use `claude --agent architect` for architecture plans, module boundaries, file responsibilities, public contracts, test contracts, and
|
|
201
|
+
- Use `claude --agent project-manager` for user communication, task clarification, task specs, role routing, role commands, status summaries, and final acceptance.
|
|
202
|
+
- Use `claude --agent architect` for architecture plans, module boundaries, file responsibilities, public contracts, test contracts, phase plans, and post-review docs sync / architecture drift checks.
|
|
203
203
|
- Use `claude --agent coder` for implementation and direct tests within an approved plan.
|
|
204
|
-
- Use `claude --agent reviewer` for independent review, test adequacy, validation evidence, docs
|
|
204
|
+
- Use `claude --agent reviewer` for independent review, test adequacy, validation evidence, docs gap detection, and acceptance findings.
|
|
205
205
|
- Do not use an untagged session as an implicit project manager for non-trivial work.
|
|
206
206
|
- Do not simulate another role inside the wrong session.
|
|
207
207
|
|
|
@@ -209,13 +209,33 @@ Role-specific behavior lives in `.claude/agents/`.
|
|
|
209
209
|
|
|
210
210
|
- For complex features, cross-module changes, refactors, public API changes, schema changes, auth, payment, permission, or security-sensitive work, start Claude Code with an explicit role: `claude --agent <role>`.
|
|
211
211
|
- Default core roles are `project-manager`, `architect`, `coder`, and `reviewer`.
|
|
212
|
-
- The `project-manager` role owns user communication,
|
|
212
|
+
- The `project-manager` role owns user communication, task routing, role commands, handoff verification, final status reporting, and PR preparation after required gates pass.
|
|
213
213
|
- Do not let one coding session own architecture/plan decisions, implementation, final testing responsibility, and review.
|
|
214
214
|
- Role outputs are exchanged through `.ai/handoffs/<task-slug>/`, not through chat history.
|
|
215
215
|
- When the required role route includes `architect`, coding must not start until the architecture and plan artifact exists.
|
|
216
216
|
- If the current session was not started with the required role, stop and ask the user to restart with `claude --agent <role>`; do not pretend to be that role inside the wrong session.
|
|
217
217
|
- Critical global rules may be repeated in role agent files for defense in depth, but repeated rules must use stable rule IDs and be checked by `tools/check-agent-rules`. Do not maintain untracked manual copies.
|
|
218
218
|
|
|
219
|
+
## VCM Managed Harness Blocks
|
|
220
|
+
|
|
221
|
+
If VibeCodingMaster or another harness manager maintains project rules, those rules must live in repo-local files and be reviewable in Git. Do not inject long-lived collaboration rules into a Claude Code terminal as ordinary input.
|
|
222
|
+
|
|
223
|
+
Allowed managed block format:
|
|
224
|
+
|
|
225
|
+
```md
|
|
226
|
+
<!-- VCM:BEGIN version=1 -->
|
|
227
|
+
VCM-managed rules.
|
|
228
|
+
<!-- VCM:END -->
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Rules:
|
|
232
|
+
|
|
233
|
+
- VCM may create missing `CLAUDE.md` and `.claude/agents/{project-manager,architect,coder,reviewer}.md` from recommended defaults.
|
|
234
|
+
- If a file already exists, VCM may only insert or replace the VCM managed block.
|
|
235
|
+
- VCM must not overwrite user-authored content outside managed blocks.
|
|
236
|
+
- After applying harness changes, VCM must report changed files and recommend a user review/commit.
|
|
237
|
+
- Session startup should pass environment variables and start the role agent; it should not paste a long VCM context into the terminal.
|
|
238
|
+
|
|
219
239
|
## Default Behavior
|
|
220
240
|
|
|
221
241
|
- State assumptions before coding; ask when requirements, boundaries, or acceptance criteria are unclear.
|
|
@@ -241,7 +261,7 @@ Role-specific behavior lives in `.claude/agents/`.
|
|
|
241
261
|
- Required validation passes.
|
|
242
262
|
- New or modified public functions have contract tests.
|
|
243
263
|
- Behavior changes have regression tests unless impractical.
|
|
244
|
-
- Plan, architecture, public contract, test strategy, and module responsibility changes are reflected in docs.
|
|
264
|
+
- Plan, architecture, public contract, test strategy, and module responsibility changes are reflected in docs after post-review architect docs sync.
|
|
245
265
|
- Follow-ups are recorded in `.ai/state/known-issues.md` or the execution plan.
|
|
246
266
|
```
|
|
247
267
|
|
|
@@ -418,6 +438,7 @@ Explore
|
|
|
418
438
|
-> implement phase 1
|
|
419
439
|
-> validate
|
|
420
440
|
-> review
|
|
441
|
+
-> architect docs sync / architecture drift check
|
|
421
442
|
-> commit
|
|
422
443
|
-> implement next phase
|
|
423
444
|
```
|
|
@@ -537,7 +558,7 @@ Do not include:
|
|
|
537
558
|
|
|
538
559
|
For large projects, the default execution model should be explicit role-based sessions, not dynamic role routing inside one generic Claude conversation.
|
|
539
560
|
|
|
540
|
-
The user-facing task should start with a `project-manager` role session. The project manager owns user communication,
|
|
561
|
+
The user-facing task should start with a `project-manager` role session. The project manager owns user communication, role command dispatch, severity classification, role routing, progress tracking, and process verification. It does not own architecture, coding, and independent review for the same non-trivial task.
|
|
541
562
|
|
|
542
563
|
Do not make one generic Claude session own architecture, planning, coding, final testing, and review for non-trivial work. That blurs responsibility and makes acceptance weak.
|
|
543
564
|
|
|
@@ -554,7 +575,7 @@ Project manager responsibilities:
|
|
|
554
575
|
```text
|
|
555
576
|
communicate with user
|
|
556
577
|
-> clarify task
|
|
557
|
-
->
|
|
578
|
+
-> turn user intent into a task brief / task spec
|
|
558
579
|
-> classify severity
|
|
559
580
|
-> choose required role route
|
|
560
581
|
-> prepare the next role command
|
|
@@ -562,12 +583,14 @@ communicate with user
|
|
|
562
583
|
-> start or ask the user to start architect/coder/reviewer/specialist sessions when needed
|
|
563
584
|
-> track progress, blockers, validation, docs sync, and Replan
|
|
564
585
|
-> verify role outputs and handoff artifacts
|
|
586
|
+
-> request post-review architect docs sync when required
|
|
587
|
+
-> prepare commit and submit the PR only after review and docs sync gates pass
|
|
565
588
|
-> summarize final status and risks to the user
|
|
566
589
|
```
|
|
567
590
|
|
|
568
591
|
The project manager is a process owner, not an execution owner.
|
|
569
592
|
|
|
570
|
-
It is also the communication bridge between the user and the role agents. The user should not need to know how to write a perfect Claude Code prompt. The project manager owns the
|
|
593
|
+
It is also the communication bridge between the user and the role agents. The user should not need to know how to write a perfect Claude Code prompt. The project manager owns the conversion from user intent to precise agent instructions.
|
|
571
594
|
|
|
572
595
|
It may route T0/T1 work to a lightweight coder flow when the task is small, scoped, and low risk. For non-trivial work, it coordinates role sessions and verifies the process.
|
|
573
596
|
|
|
@@ -616,9 +639,16 @@ coder command:
|
|
|
616
639
|
|
|
617
640
|
reviewer command:
|
|
618
641
|
read task spec, architecture-plan.md, implementation-log.md, validation-log.md, and git diff
|
|
619
|
-
verify scope, architecture, public contract, tests, validation, and docs
|
|
642
|
+
verify scope, architecture, public contract, tests, validation, and docs gaps
|
|
620
643
|
write review-report.md
|
|
621
644
|
only apply small, local, low-risk review-scoped fixes
|
|
645
|
+
|
|
646
|
+
architect docs-sync command:
|
|
647
|
+
read task spec, architecture-plan.md, implementation-log.md, validation-log.md, review-report.md, and git diff
|
|
648
|
+
verify whether the final code still matches the approved architecture and public contracts
|
|
649
|
+
update architecture/module/testing/security docs when the code change made them stale
|
|
650
|
+
write docs-sync-report.md with docs changed, docs intentionally unchanged, and remaining doc risks
|
|
651
|
+
stop and request Replan if implementation drift changes architecture, public contracts, dependency direction, schema, auth, permission, payment, or design assumptions
|
|
622
652
|
```
|
|
623
653
|
|
|
624
654
|
The project manager may use a prompt compiler or template system to build role commands, but the responsibility stays with the project manager. A role command is an auditable artifact: if a role agent fails because the command was vague, the harness should improve the command template rather than blaming the role agent alone.
|
|
@@ -648,16 +678,16 @@ If the current session was not started with the required role, stop and ask the
|
|
|
648
678
|
|
|
649
679
|
This is not progressive adoption. The full harness exists by default; the role chain depends on task risk.
|
|
650
680
|
|
|
651
|
-
All user-facing routes begin with `project-manager`. The project manager may hand off T0/T1 work to `coder` quickly, but it still owns
|
|
681
|
+
All user-facing routes begin with `project-manager`. The project manager may hand off T0/T1 work to `coder` quickly, but it still owns status reporting and acceptance communication.
|
|
652
682
|
|
|
653
683
|
| Task class | Examples | Required role route |
|
|
654
684
|
| --- | --- | --- |
|
|
655
|
-
| T0 trivial | copy, comments, docs typo, tiny config with no behavior change | `project-manager` -> `coder`; optional reviewer checklist |
|
|
656
|
-
| T1 small scoped change | single-file bug, focused test addition, known-pattern fix | `project-manager` -> `coder` -> fresh review context or `reviewer` |
|
|
657
|
-
| T2 ordinary feature | bounded behavior, normal multi-file feature, ordinary PR | `project-manager` -> `architect` -> `coder` -> `reviewer` |
|
|
658
|
-
| T3 cross-module / architectural | cross-module change, module boundary change, refactor, new public surface | `project-manager` -> `architect` -> `coder` -> `reviewer` |
|
|
659
|
-
| T4 high-risk | auth, permission, payment, billing, schema, data deletion, public API/SDK, security-sensitive infrastructure | `project-manager` -> `architect` -> relevant specialist if needed -> `coder` -> `reviewer` -> human approval |
|
|
660
|
-
| T5 large rewrite / greenfield | new subsystem, major rewrite, migration across many modules | `project-manager` -> `architect`; then repeat `coder` -> `reviewer` per phase
|
|
685
|
+
| T0 trivial | copy, comments, docs typo, tiny config with no behavior change | `project-manager` -> `coder`; optional reviewer checklist; PM commit/PR |
|
|
686
|
+
| T1 small scoped change | single-file bug, focused test addition, known-pattern fix | `project-manager` -> `coder` -> fresh review context or `reviewer` -> docs checklist; PM commit/PR |
|
|
687
|
+
| T2 ordinary feature | bounded behavior, normal multi-file feature, ordinary PR | `project-manager` -> `architect` -> `coder` -> `reviewer` -> `architect` docs sync -> PM commit/PR |
|
|
688
|
+
| T3 cross-module / architectural | cross-module change, module boundary change, refactor, new public surface | `project-manager` -> `architect` -> `coder` -> `reviewer` -> `architect` docs sync -> PM commit/PR |
|
|
689
|
+
| T4 high-risk | auth, permission, payment, billing, schema, data deletion, public API/SDK, security-sensitive infrastructure | `project-manager` -> `architect` -> relevant specialist if needed -> `coder` -> `reviewer` -> `architect` docs sync -> human approval -> PM commit/PR |
|
|
690
|
+
| T5 large rewrite / greenfield | new subsystem, major rewrite, migration across many modules | `project-manager` -> `architect`; then repeat `coder` -> `reviewer` -> `architect` docs sync per phase; PM commit/PR at phase or task boundary |
|
|
661
691
|
|
|
662
692
|
If classification is unclear, use the stricter route.
|
|
663
693
|
|
|
@@ -682,9 +712,9 @@ Role responsibilities:
|
|
|
682
712
|
|
|
683
713
|
```text
|
|
684
714
|
project-manager
|
|
685
|
-
owns user communication,
|
|
686
|
-
|
|
687
|
-
|
|
715
|
+
owns user communication, task clarification, task specs, role routing, and role command dispatch
|
|
716
|
+
turns user input into an engineering task when needed
|
|
717
|
+
summarizes role outputs back to the user
|
|
688
718
|
creates and verifies handoff artifacts
|
|
689
719
|
tracks progress, blockers, validation, docs sync, and Replan
|
|
690
720
|
outputs task specs, role commands, status summaries, and final acceptance reports
|
|
@@ -693,7 +723,9 @@ project-manager
|
|
|
693
723
|
architect
|
|
694
724
|
owns architecture and plan
|
|
695
725
|
defines module boundaries, file responsibilities, public contracts, dependency direction, risk, and phases
|
|
726
|
+
owns post-review docs sync and architecture drift checks before PM final acceptance
|
|
696
727
|
outputs .ai/handoffs/<task-slug>/architecture-plan.md
|
|
728
|
+
outputs .ai/handoffs/<task-slug>/docs-sync-report.md when a post-review docs sync gate is required
|
|
697
729
|
must not implement production code
|
|
698
730
|
|
|
699
731
|
coder
|
|
@@ -705,13 +737,13 @@ coder
|
|
|
705
737
|
|
|
706
738
|
reviewer
|
|
707
739
|
owns independent acceptance and final test responsibility
|
|
708
|
-
checks scope, role compliance, architecture compliance, public contract compliance, docs
|
|
740
|
+
checks scope, role compliance, architecture compliance, public contract compliance, docs gaps, validation evidence, and risk
|
|
709
741
|
checks, designs, and adds missing tests when needed
|
|
710
742
|
may directly apply small, local, low-risk review fixes
|
|
711
743
|
owns complex tests, E2E coverage, regression matrix, and release-level validation recommendations
|
|
712
744
|
outputs .ai/handoffs/<task-slug>/review-report.md
|
|
713
745
|
must escalate larger implementation issues to coder
|
|
714
|
-
must escalate architecture, public contract, or
|
|
746
|
+
must escalate architecture, public contract, design, or documentation drift issues to architect
|
|
715
747
|
```
|
|
716
748
|
|
|
717
749
|
### 7.5 Role Permission Matrix
|
|
@@ -720,8 +752,8 @@ Prompt rules are not enough. Role separation must be backed by tool scope, permi
|
|
|
720
752
|
|
|
721
753
|
| Role | Suggested tools | Write scope | Must not |
|
|
722
754
|
| --- | --- | --- | --- |
|
|
723
|
-
| `project-manager` | `Read`, `Grep`, `Glob`, `Bash`, `Edit`, `Write` | task specs, role commands, handoff metadata, status/progress/known-issues, final reports | implement non-trivial production code, approve without reviewer evidence, replace architect/coder/reviewer roles |
|
|
724
|
-
| `architect` | `Read`, `Grep`, `Glob`, `Bash`, `Edit`, `Write` | architecture plan, task spec, architecture docs
|
|
755
|
+
| `project-manager` | `Read`, `Grep`, `Glob`, `Bash`, `Edit`, `Write` | task specs, role commands, handoff metadata, status/progress/known-issues, final reports, PR description | implement non-trivial production code, approve without reviewer/docs-sync evidence, replace architect/coder/reviewer roles |
|
|
756
|
+
| `architect` | `Read`, `Grep`, `Glob`, `Bash`, `Edit`, `Write` | architecture plan, docs sync report, task spec, approved architecture/module/testing/security docs | edit production code, rewrite tests, expand task scope |
|
|
725
757
|
| `coder` | `Read`, `Grep`, `Glob`, `Bash`, `Edit`, `Write` | approved source files, baseline tests, validation log, implementation log | change scope, public contracts, module boundaries, or test strategy without Replan |
|
|
726
758
|
| `reviewer` | `Read`, `Grep`, `Glob`, `Bash`, `Edit`, `Write` | review report, missing tests/fixtures, validation log, small review-scoped fixes | take over implementation, change architecture/public contracts, approve own implementation, weaken tests |
|
|
727
759
|
| `security-specialist` | `Read`, `Grep`, `Glob`, `Bash`, `Edit`, `Write` | security review report and approved security tests | bypass approvals, edit production code without explicit scope |
|
|
@@ -731,8 +763,8 @@ Prompt rules are not enough. Role separation must be backed by tool scope, permi
|
|
|
731
763
|
Recommended permission modes:
|
|
732
764
|
|
|
733
765
|
```text
|
|
734
|
-
project-manager: default with write hooks limited to task specs, role commands, handoff metadata, state files, and
|
|
735
|
-
architect: default with write hooks limited to architecture-plan.md, task specs, and approved docs
|
|
766
|
+
project-manager: default with write hooks limited to task specs, role commands, handoff metadata, state files, final reports, and PR description
|
|
767
|
+
architect: default with write hooks limited to architecture-plan.md, docs-sync-report.md, task specs, and approved docs
|
|
736
768
|
coder: default or acceptEdits, but only inside approved scope
|
|
737
769
|
reviewer: default with production-code writes blocked except explicitly review-scoped small fixes; test writes allowed
|
|
738
770
|
specialist: default with write hooks limited to specialist reports, tests, and approved files
|
|
@@ -749,13 +781,14 @@ Required handoff directory:
|
|
|
749
781
|
```text
|
|
750
782
|
.ai/handoffs/<task-slug>/
|
|
751
783
|
role-commands/
|
|
752
|
-
architect
|
|
753
|
-
coder
|
|
754
|
-
reviewer
|
|
784
|
+
architect.md
|
|
785
|
+
coder.md
|
|
786
|
+
reviewer.md
|
|
755
787
|
architecture-plan.md
|
|
756
788
|
implementation-log.md
|
|
757
789
|
validation-log.md
|
|
758
790
|
review-report.md
|
|
791
|
+
docs-sync-report.md
|
|
759
792
|
```
|
|
760
793
|
|
|
761
794
|
Each role session must start by reading the artifacts it depends on:
|
|
@@ -769,6 +802,10 @@ architect
|
|
|
769
802
|
reads: task request, task spec, ARCHITECTURE.md, MODULE_MAP.md, module-local CLAUDE.md, relevant source/tests
|
|
770
803
|
writes: architecture-plan.md
|
|
771
804
|
|
|
805
|
+
architect docs sync
|
|
806
|
+
reads: task spec, architecture-plan.md, implementation-log.md, validation-log.md, review-report.md, git diff, relevant docs
|
|
807
|
+
writes: docs updates when needed, docs-sync-report.md
|
|
808
|
+
|
|
772
809
|
coder
|
|
773
810
|
reads: task spec, architecture-plan.md, relevant module docs
|
|
774
811
|
writes: code, baseline tests, implementation-log.md, validation-log.md
|
|
@@ -795,7 +832,7 @@ reviewer:
|
|
|
795
832
|
owns complex test strategy, E2E smoke/release coverage, and regression matrix
|
|
796
833
|
may directly apply small, local, low-risk review fixes
|
|
797
834
|
must request coder fixes for larger implementation issues
|
|
798
|
-
must request architect review for architecture, public contract, dependency, schema, auth, permission, payment, or
|
|
835
|
+
must request architect review for architecture, public contract, dependency, schema, auth, permission, payment, design, or docs drift issues
|
|
799
836
|
must not weaken tests to pass validation
|
|
800
837
|
```
|
|
801
838
|
|
|
@@ -832,6 +869,7 @@ escalate to architect:
|
|
|
832
869
|
public contract is wrong
|
|
833
870
|
dependency direction is wrong
|
|
834
871
|
schema, auth, permission, payment, public API, or security design is wrong
|
|
872
|
+
architecture, module, testing, security, or dependency docs are stale after implementation
|
|
835
873
|
the implementation reveals that the architecture plan is invalid
|
|
836
874
|
```
|
|
837
875
|
|
|
@@ -896,9 +934,19 @@ Handoff artifact schemas:
|
|
|
896
934
|
## Escalations To Coder / Architect
|
|
897
935
|
## E2E / Regression Recommendation
|
|
898
936
|
## Validation Evidence
|
|
899
|
-
## Docs
|
|
937
|
+
## Docs Gap Review
|
|
900
938
|
## Findings
|
|
901
939
|
## Decision
|
|
940
|
+
|
|
941
|
+
# docs-sync-report.md
|
|
942
|
+
|
|
943
|
+
## Summary
|
|
944
|
+
## Architecture Drift Check
|
|
945
|
+
## Docs Updated
|
|
946
|
+
## Docs Reviewed And Left Unchanged
|
|
947
|
+
## Public Contract / Module Boundary Notes
|
|
948
|
+
## Remaining Documentation Risks
|
|
949
|
+
## Decision
|
|
902
950
|
```
|
|
903
951
|
|
|
904
952
|
### 7.7 Role Session vs Subagent
|
|
@@ -1068,7 +1116,7 @@ For large features:
|
|
|
1068
1116
|
|
|
1069
1117
|
```text
|
|
1070
1118
|
project-manager session
|
|
1071
|
-
-> communicate with user +
|
|
1119
|
+
-> communicate with user + clarify intent + classify task + route roles + track process
|
|
1072
1120
|
|
|
1073
1121
|
architect session
|
|
1074
1122
|
-> architecture-plan.md
|
|
@@ -1079,7 +1127,13 @@ coder session
|
|
|
1079
1127
|
reviewer session
|
|
1080
1128
|
-> review-report.md + missing tests/fixtures if needed + validation-log.md
|
|
1081
1129
|
|
|
1082
|
-
|
|
1130
|
+
architect docs-sync session
|
|
1131
|
+
-> docs updates if needed + docs-sync-report.md
|
|
1132
|
+
|
|
1133
|
+
human approval when required
|
|
1134
|
+
|
|
1135
|
+
project-manager session
|
|
1136
|
+
-> final acceptance + commit + PR submission
|
|
1083
1137
|
```
|
|
1084
1138
|
|
|
1085
1139
|
For small bug fixes or ordinary PRs, one coder session is acceptable if the task spec is clear, file responsibilities are explicit, public contracts are defined when needed, and validation is cheap.
|
|
@@ -1787,7 +1841,7 @@ behavior is correct
|
|
|
1787
1841
|
|
|
1788
1842
|
## Role / Handoff
|
|
1789
1843
|
|
|
1790
|
-
- [ ] The task used an explicit `project-manager` role session for user communication,
|
|
1844
|
+
- [ ] The task used an explicit `project-manager` role session for user communication, routing, and status reporting.
|
|
1791
1845
|
- [ ] Task severity was classified.
|
|
1792
1846
|
- [ ] Required role route was followed or an exception was approved.
|
|
1793
1847
|
- [ ] The project manager verified required handoff artifacts, validation evidence, docs sync, and remaining risks.
|
|
@@ -1799,6 +1853,9 @@ behavior is correct
|
|
|
1799
1853
|
- [ ] Any reviewer direct fixes were small, local, low-risk, and review-scoped.
|
|
1800
1854
|
- [ ] Larger implementation issues were returned to coder.
|
|
1801
1855
|
- [ ] Architecture, public contract, dependency, schema, auth, permission, payment, or design issues were returned to architect.
|
|
1856
|
+
- [ ] For T2+ work, architect performed post-review docs sync / architecture drift check before final PM acceptance.
|
|
1857
|
+
- [ ] Docs updates or a docs-sync-report explain why affected architecture/module/testing/security/dependency docs are current.
|
|
1858
|
+
- [ ] The project manager prepared final acceptance, commit, and PR only after reviewer and docs-sync gates passed or an exception was approved.
|
|
1802
1859
|
- [ ] Task-level validation evidence is recorded in `.ai/handoffs/<task-slug>/validation-log.md` when a handoff directory exists.
|
|
1803
1860
|
|
|
1804
1861
|
## Architecture
|
|
@@ -2079,7 +2136,7 @@ Monthly review:
|
|
|
2079
2136
|
If you can only enforce 16 rules, enforce these:
|
|
2080
2137
|
|
|
2081
2138
|
1. User-facing tasks start with `claude --agent project-manager`; untagged sessions are not implicit project managers.
|
|
2082
|
-
2. The `project-manager` agent owns user communication,
|
|
2139
|
+
2. The `project-manager` agent owns user communication, task clarification, and precise role command dispatch.
|
|
2083
2140
|
3. Complex tasks use explicit role sessions, handoff artifacts, and plan first; do not edit directly.
|
|
2084
2141
|
4. One task uses one branch, one worktree, one handoff directory, and one PR by default.
|
|
2085
2142
|
5. Role sessions for the same task work in the same task worktree sequentially; parallel write work uses separate task or sub-task worktrees.
|
|
@@ -2123,7 +2180,7 @@ Project manager becomes coder/reviewer
|
|
|
2123
2180
|
-> project manager coordinates and verifies; role sessions execute
|
|
2124
2181
|
|
|
2125
2182
|
Project manager only tracks status but sends vague role prompts
|
|
2126
|
-
-> project manager
|
|
2183
|
+
-> project manager turns user intent into precise role commands with scope, contracts, validation, outputs, and stop conditions
|
|
2127
2184
|
|
|
2128
2185
|
Role-based worktree fragmentation
|
|
2129
2186
|
-> one task worktree; architect -> coder -> reviewer hand off sequentially inside it
|