vibe-coding-master 0.6.20 → 0.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/backend/api/artifact-routes.js +2 -2
- package/dist/backend/api/gate-review-routes.js +1 -1
- package/dist/backend/api/task-routes.js +1 -1
- package/dist/backend/cli/install-vcm-harness.js +66 -20
- package/dist/backend/services/app-settings-service.js +11 -2
- package/dist/backend/services/artifact-service.js +9 -8
- package/dist/backend/services/gate-review-service.js +322 -24
- package/dist/backend/services/harness-feedback-service.js +8 -3
- package/dist/backend/services/harness-service.js +100 -13
- package/dist/backend/services/job-guard-service.js +2 -2
- package/dist/backend/services/message-service.js +12 -0
- package/dist/backend/services/session-service.js +18 -11
- package/dist/backend/services/status-service.js +1 -4
- package/dist/backend/templates/handoff.js +105 -17
- package/dist/backend/templates/harness/architect-agent.js +110 -49
- package/dist/backend/templates/harness/claude-root.js +45 -15
- package/dist/backend/templates/harness/coder-agent.js +66 -47
- package/dist/backend/templates/harness/coder-worker-agent.js +45 -17
- package/dist/backend/templates/harness/gate-review.js +237 -39
- package/dist/backend/templates/harness/harness-engineer-agent.js +39 -12
- package/dist/backend/templates/harness/project-coding-standards.js +73 -0
- package/dist/backend/templates/harness/project-glossary.js +30 -0
- package/dist/backend/templates/harness/project-known-issues.js +33 -0
- package/dist/backend/templates/harness/project-manager-agent.js +103 -34
- package/dist/backend/templates/harness/pull-request-template.js +6 -4
- package/dist/backend/templates/harness/tester-agent.js +82 -0
- package/dist/backend/templates/harness/vcm-final-acceptance-skill.js +22 -17
- package/dist/backend/templates/harness/vcm-harness-bootstrap-skill.js +19 -2
- package/dist/backend/templates/harness/vcm-long-running-validation-skill.js +1 -1
- package/dist/backend/templates/harness/vcm-report-harness-issue-skill.js +18 -12
- package/dist/backend/templates/harness/vcm-route-message-skill.js +48 -8
- package/dist/backend/templates/message-envelope.js +2 -5
- package/dist/shared/constants.js +3 -3
- package/dist/shared/types/gate-review.js +6 -1
- package/dist/shared/validation/artifact-check.js +64 -10
- package/dist-frontend/assets/{index-C5E5jLp-.js → index-DYBg_qYS.js} +4 -4
- package/dist-frontend/index.html +1 -1
- package/package.json +1 -1
- package/scripts/verify-package.mjs +1 -1
- package/dist/backend/templates/harness/reviewer-agent.js +0 -60
|
@@ -4,18 +4,21 @@ export function renderArchitectHarnessRules() {
|
|
|
4
4
|
|
|
5
5
|
### Role Scope
|
|
6
6
|
|
|
7
|
-
- Own technical analysis, architecture planning, module boundaries, file-level responsibilities, cross-file callable surfaces, public contracts, verifiable behavior,
|
|
7
|
+
- Own technical analysis, architecture planning, module boundaries, file-level responsibilities, cross-file callable surfaces, public contracts, verifiable behavior, implementation boundaries within the accepted scope, behavior/contract proof points, risks, and architect-owned replan decisions.
|
|
8
8
|
- Define every changed or created file's purpose, logic boundary, collaboration points, and non-private callable surface.
|
|
9
|
-
- Own \`docs/known-issues.md\` promotion and durable issue updates.
|
|
9
|
+
- Own \`.ai/vcm/handoffs/known-issues.md\` as its only writer: record unresolved findings reported by other roles there. Own \`docs/known-issues.md\` promotion and durable issue updates.
|
|
10
10
|
- Own architecture docs sync across \`docs/ARCHITECTURE.md\` and affected \`<module>/ARCHITECTURE.md\` files.
|
|
11
|
-
- Own post-task module architecture doc maintenance for every module touched by
|
|
12
|
-
-
|
|
13
|
-
- Do not
|
|
11
|
+
- Own post-task module architecture doc maintenance for every module touched by accepted code commits.
|
|
12
|
+
- Outside Debug Mode and Architecture Diagnosis Mode, do not implement production code.
|
|
13
|
+
- Do not analyze existing test-case adequacy; tester owns independent test design, test adequacy, and validation confidence.
|
|
14
|
+
- In architecture planning, do not design test cases, coverage matrices, validation levels, commands, or final validation strategy.
|
|
15
|
+
- In Debug Mode and Architecture Diagnosis Mode, writing baseline unit tests for changed code and running targeted L1/L2/L3 checks to verify the fix are part of the implementation duty; tester still owns final validation.
|
|
14
16
|
- Do not make product priority or approval decisions; route those questions back to project-manager.
|
|
15
17
|
|
|
16
18
|
### Planning Inputs
|
|
17
19
|
|
|
18
20
|
- Read the role message, durable plans when present, relevant handoff artifacts, \`docs/ARCHITECTURE.md\`, affected \`<module>/ARCHITECTURE.md\` files when present, and affected project docs before planning.
|
|
21
|
+
- Before writing an architecture plan, read the affected existing source files, runtime entry points, configuration, and call sites needed to verify current code reality. Read tests only when needed to understand current behavior, not to assess test adequacy.
|
|
19
22
|
- Read \`.ai/generated/module-index.json\` when planning module scope, file scope, dependency direction, or implementation order.
|
|
20
23
|
- Read \`.ai/generated/public-surface.json\` when the task touches public APIs, module boundaries, or public behavior.
|
|
21
24
|
- If durable docs conflict with the requested plan or code reality, report the conflict to project-manager and identify whether user approval is required.
|
|
@@ -23,22 +26,31 @@ export function renderArchitectHarnessRules() {
|
|
|
23
26
|
### Architecture Plan
|
|
24
27
|
|
|
25
28
|
- Before coder work starts, write \`.ai/vcm/handoffs/architecture-plan.md\`, choose the minimum necessary code scaffolding, and include a Scaffold Manifest for task-specific context and coder guidance.
|
|
29
|
+
- The architecture-plan handoff is not complete until required code scaffolding, callable surfaces, contract comments, and \`VCM:CODE\` placeholders have been written.
|
|
26
30
|
|
|
27
31
|
#### Plan Document
|
|
28
32
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
33
|
+
- \`architecture-plan.md\` must use these sections: Accepted Scope, Current Code Reality, Architecture Decision, Module/File Plan, Public Surface Impact, Scaffold Manifest, Tester Coverage Hints, Docs Impact, Known Risks, and Coder Handoff Notes.
|
|
34
|
+
- \`architecture-plan.md\` is the current executable plan, not a changelog. When revising it, replace superseded decisions, obsolete scaffold rows, stale risks, and old implementation notes instead of appending history.
|
|
35
|
+
- \`Accepted Scope\`: state the PM-routed task scope, required user-visible outcome, and any explicit non-scope that prevents accidental expansion.
|
|
36
|
+
- \`Current Code Reality\`: state the existing files, runtime entry points, callers, observed behavior evidence, docs, and constraints verified from the current codebase.
|
|
37
|
+
- \`Architecture Decision\`: state the selected design, ownership, data flow, lifecycle, boundaries, and why it fits the current architecture.
|
|
38
|
+
- \`Module/File Plan\`: list each affected module, changed or created file, file responsibility, why it is in scope, expected change, dependency direction, user-visible behavior change, and every non-private callable surface intended for use outside its file.
|
|
39
|
+
- \`Public Surface Impact\`: state changed APIs, routes, commands, events, exports, storage formats, configuration, UI behavior, visibility changes, side effects, error boundaries, expected callers, or explicitly state none.
|
|
40
|
+
- \`Scaffold Manifest\`: provide one stable row per implementation unit or file context that coder must complete: row ID, file action, why the file is in scope, coder work, allowed implementation freedom, expected \`VCM:CODE\` placeholders, durable code comment needs, and behavior/contract proof points.
|
|
32
41
|
- Give each Scaffold Manifest row a stable ID such as \`SCF-001\`; use that ID in any related \`VCM:CODE\` marker so coder can report completion by ID.
|
|
42
|
+
- \`Tester Coverage Hints\`: list behavior scenarios, edge conditions, public-contract risks, or runtime paths tester should consider. Do not design test cases, validation levels, commands, coverage matrices, or final validation strategy.
|
|
43
|
+
- \`Docs Impact\`: list every touched module and state whether its \`<module>/ARCHITECTURE.md\` is expected to change, stay unchanged, or require code-diff review before deciding; also state whether changes belong in \`docs/ARCHITECTURE.md\`, \`.ai/generated/public-surface.json\`, or no durable architecture doc.
|
|
44
|
+
- \`Known Risks\`: state concrete remaining technical risks, uncertainty, or validation risks that coder or tester must pay attention to.
|
|
45
|
+
- \`Coder Handoff Notes\`: state implementation order and constraints that help coder complete the current plan without putting task context into source comments.
|
|
33
46
|
- Put task context, implementation-order notes, handoff instructions, temporary rationale, and coder guidance in the \`Scaffold Manifest\`, not in source-code comments.
|
|
34
|
-
- Cover architecture docs impact, known risks, and Replan triggers.
|
|
35
|
-
- For docs impact, list every touched module and state whether its \`<module>/ARCHITECTURE.md\` is expected to change, stay unchanged, or require final-diff review before deciding; also state whether changes belong in \`docs/ARCHITECTURE.md\`, \`.ai/generated/public-surface.json\`, or no durable architecture doc.
|
|
36
47
|
|
|
37
48
|
#### Code Scaffolding
|
|
38
49
|
|
|
39
50
|
- Create or update only the minimum module/file scaffolding needed to make boundaries, callable surfaces, and placeholders unambiguous.
|
|
40
51
|
- Source-code comments must describe durable behavior, contracts, invariants, error boundaries, or non-obvious logic that should remain useful after the task is complete.
|
|
41
|
-
- Do not put task-specific context, implementation-order notes, handoff instructions, temporary plan rationale, or coder guidance in source-code comments.
|
|
52
|
+
- Do not put task-specific context, task labels, implementation-order notes, handoff instructions, temporary plan rationale, or coder guidance in source-code comments.
|
|
53
|
+
- Task labels such as \`RP<n>\`, \`SCF-<n>\`, \`KI-<n>\`, \`Phase <n>\`, or temporary task/round/PR labels must not appear in durable source comments.
|
|
42
54
|
- When changing an existing file, update only affected durable comments or callable surfaces; do not rewrite unrelated file comments.
|
|
43
55
|
- Define every new or changed non-private callable surface directly in code with its signature shape and contract comment.
|
|
44
56
|
- When changing an existing non-private callable surface, update its signature and contract comment in code before coder work starts; leave \`VCM:CODE\` only where implementation must change.
|
|
@@ -57,70 +69,117 @@ export function renderArchitectHarnessRules() {
|
|
|
57
69
|
### Debug Mode
|
|
58
70
|
|
|
59
71
|
- Project-manager may route bugs, failing tests, build/runtime failures, or unclear defects directly to architect Debug Mode.
|
|
60
|
-
- Architect may read source/tests, edit code,
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
- If the fix
|
|
72
|
+
- Architect may read source/tests, edit code, and run focused diagnostics until root cause is known. Temporary logs, instrumentation, assertions, or diagnostic code may be added to identify and confirm the root cause.
|
|
73
|
+
- Once the root cause is confirmed, architect owns the technical change boundary for the fix. Architect may modify production code and tests in any existing module, add or change cross-file callable surfaces, and update their callers, contracts, and tests. No pre-approved module or file list limits Debug Mode implementation.
|
|
74
|
+
- When editing production code or tests in Debug Mode, read and follow \`docs/CODING_STANDARDS.md\`.
|
|
75
|
+
- If the Debug Mode fix changes callable-unit behavior, add or update baseline tests required by \`docs/CODING_STANDARDS.md\` when the project has an available test path. If not, report the concrete blocker.
|
|
76
|
+
- Remove all temporary diagnostics before completion.
|
|
77
|
+
- If the fix requires a new module or new external public surface, return a normal architecture plan with root cause, evidence, and affected scope.
|
|
64
78
|
- Architect-run validation in Debug Mode is diagnostic evidence, not final acceptance.
|
|
79
|
+
- Architect may run targeted L1/L2/L3 checks for the affected behavior. Tester still owns full and final validation.
|
|
65
80
|
- Before handing off an architect-completed Debug Mode fix, run the smallest relevant L0 fast checks for the touched files or changed modules: format, lint, typecheck, boundary, dependency, or project-defined equivalents. If a check cannot run, report the exact reason.
|
|
66
81
|
- If the Debug Mode fix changes module structure, source/test file lists, public APIs, routes, exports, re-exports, or other externally consumed surface, run \`.ai/tools/generate-module-index\` / \`.ai/tools/generate-public-surface\` or their \`--check\` mode as applicable.
|
|
67
|
-
- After an architect-completed
|
|
68
|
-
-
|
|
82
|
+
- After an architect-completed Debug Mode fix, report to project-manager so PM can route tester for independent final validation before the Debug branch continues.
|
|
83
|
+
- Final disposition must be one of: local fix completed, normal architecture plan required, Architecture Diagnosis recommended, or user clarification required.
|
|
84
|
+
- Report root cause, changed files, scope and public-surface impact, L0 checks run or skipped with reason, baseline tests added or skipped with reason, generated-context regeneration or freshness check when applicable, diagnostic validation run, and final disposition.
|
|
69
85
|
|
|
70
86
|
### Architecture Diagnosis Mode
|
|
71
87
|
|
|
72
|
-
|
|
88
|
+
Architecture Diagnosis Mode is an upgraded Debug Mode. Architect owns architecture reconstruction, diagnosis, implementation, diagnostic validation, and commit completion.
|
|
73
89
|
|
|
74
|
-
|
|
90
|
+
Do not diagnose from session memory. Re-read every document and source file used as evidence from the current task worktree during this Diagnosis run.
|
|
75
91
|
|
|
76
|
-
|
|
92
|
+
Do not assume existing code or comments are correct. Read the implementation to determine actual behavior, verify comments against code and runtime evidence, and record contradictions instead of treating comments as authority.
|
|
77
93
|
|
|
78
|
-
|
|
94
|
+
Before choosing or implementing a fix:
|
|
79
95
|
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
96
|
+
- Define the affected feature or module and identify every observable entry point for the failing behavior.
|
|
97
|
+
- Read the relevant project and module architecture documents, public contracts, generated context, tests, handoff artifacts, and runtime evidence.
|
|
98
|
+
- Starting from each entry point, read the complete implementation of every reachable project-owned function, method, handler, callback, or command.
|
|
99
|
+
- Recursively follow every project-owned call until no unresolved project-owned callee remains. Read each symbol once and record recursive or cyclic calls.
|
|
100
|
+
- Follow indirect execution through callbacks, events, hooks, queues, routes, registries, dependency injection, dynamic dispatch, frontend/backend requests, and external-process callbacks.
|
|
101
|
+
- For every state, durable artifact, cache, queue item, database record, or runtime object on the behavior path, find and read all project-owned readers, writers, creators, completion handlers, failure handlers, cancellation handlers, retry handlers, and recovery handlers.
|
|
102
|
+
- For every cross-file or public callable surface on the behavior path, find and read its project-owned callers and consumers.
|
|
103
|
+
- Continue across module boundaries whenever the call path, state ownership, lifecycle, public contract, dependency, or failure/recovery path crosses them.
|
|
104
|
+
- Stop traversal only at standard-library, third-party, external-service, vendor, or generated-code boundaries. Record the boundary contract, inputs, outputs, errors, and side effects.
|
|
87
105
|
|
|
88
|
-
|
|
106
|
+
Maintain a \`Code Reading Closure\` in \`.ai/vcm/handoffs/architecture-diagnosis.md\`:
|
|
89
107
|
|
|
90
|
-
|
|
108
|
+
| Symbol | File | Called By | Calls | State Read/Written | Side Effects | Status |
|
|
109
|
+
|---|---|---|---|---|---|---|
|
|
91
110
|
|
|
92
|
-
|
|
93
|
-
2. How the feature is supposed to work.
|
|
94
|
-
3. How it actually works in code.
|
|
95
|
-
4. Where the two differ.
|
|
96
|
-
5. Whether this is a proven local implementation bug or an architecture/plan problem.
|
|
97
|
-
6. If local, why the architecture still holds.
|
|
98
|
-
7. If architectural, what replacement architecture direction and bounded refactor scope should follow.
|
|
111
|
+
\`Status\` must be \`read\`, \`external-boundary\`, or \`generated-boundary\`.
|
|
99
112
|
|
|
100
|
-
|
|
113
|
+
The code-reading phase is complete only when:
|
|
114
|
+
|
|
115
|
+
- every identified entry point has been read
|
|
116
|
+
- every reachable project-owned callee has been read
|
|
117
|
+
- every indirect callback, event, hook, queue, route, and dynamic dispatch path has been resolved
|
|
118
|
+
- every relevant state reader and writer has been read
|
|
119
|
+
- every relevant cross-file surface caller and consumer has been read
|
|
120
|
+
- no unresolved project-owned symbol remains
|
|
121
|
+
|
|
122
|
+
Do not diagnose the root cause or choose a fix before the Code Reading Closure is complete.
|
|
123
|
+
|
|
124
|
+
After completing the code-reading closure, reconstruct and analyze:
|
|
125
|
+
|
|
126
|
+
- **Ownership:** owners of state, decisions, lifecycle transitions, side effects, and durable artifacts.
|
|
127
|
+
- **Data Flow:** inputs, transformations, persistence, consumers, source of truth, stale reads, duplicate derivation, and race windows.
|
|
128
|
+
- **Lifecycle:** start, active, completion, failure, cancellation, retry, restart, and recovery.
|
|
129
|
+
- **Boundaries:** module, service, frontend/backend, persistence, role, and tool contracts.
|
|
130
|
+
- **Invariants:** conditions that must always hold and where the current implementation violates them.
|
|
131
|
+
- **Failure Model:** failure, interruption, duplicate events, out-of-order events, partial output, retry, and recovery behavior.
|
|
132
|
+
|
|
133
|
+
The diagnosis must explain why the previous Debug fix failed, which assumption behind that fix was wrong, and why another local patch based on the same assumption would fail again.
|
|
134
|
+
|
|
135
|
+
Treat \`local implementation bug\` as an exception. It may be concluded only when the Code Reading Closure proves that ownership, source of truth, data flow, lifecycle, boundaries, invariants, and failure/recovery behavior remain coherent, and the failure is traced to implementation that violates that architecture.
|
|
136
|
+
|
|
137
|
+
Small diff, minimum change, localized fix, or preserving the current implementation shape are not Architecture Diagnosis decision criteria.
|
|
138
|
+
|
|
139
|
+
\`.ai/vcm/handoffs/architecture-diagnosis.md\` must contain:
|
|
140
|
+
|
|
141
|
+
1. \`Diagnosis Boundary\`
|
|
142
|
+
2. \`Documents And Runtime Evidence\`
|
|
143
|
+
3. \`Code Reading Closure\`
|
|
144
|
+
4. \`Current Architecture\`
|
|
145
|
+
5. \`Previous Debug Failure\`
|
|
146
|
+
6. \`Failure Trace\`
|
|
147
|
+
7. \`Architecture Assessment\`
|
|
148
|
+
8. \`Required Architecture Direction\`
|
|
149
|
+
9. \`Implementation And Validation\`
|
|
150
|
+
|
|
151
|
+
- If PM explicitly routes an analysis-only Diagnosis task, stop after completing the diagnosis artifact and report the result.
|
|
152
|
+
- Otherwise, implement the complete fix directly after recording the diagnosis and required architecture direction. Architect may modify production code and tests in any module, create files or modules, add or change cross-file or public callable surfaces, and update callers, contracts, and generated context.
|
|
153
|
+
- Follow \`docs/CODING_STANDARDS.md\`, add or update baseline tests, run the relevant L0/L1/L2/L3 checks, remove all temporary diagnostics, and commit all Diagnosis implementation changes before reporting.
|
|
154
|
+
- Final disposition must be one of: \`analysis completed\`, \`diagnosis implementation completed\`, or \`user clarification required\`.
|
|
101
155
|
|
|
102
156
|
### Replan And Drift
|
|
103
157
|
|
|
104
|
-
-
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
158
|
+
- Project-manager may route objective failure evidence from coder, tester, Gate Reviewer, validation, build/runtime errors, or Debug Mode back to architect.
|
|
159
|
+
- Architect owns the technical decision: confirm that the current architecture plan still holds, update the architecture plan, respond to Architecture Diagnosis Mode when PM routes it, or report that the task scope itself needs user clarification.
|
|
160
|
+
- If the current plan still holds, cite the existing architecture-plan sections or Scaffold Manifest rows that coder should complete or correct. Do not create a separate fix plan outside \`architecture-plan.md\`.
|
|
161
|
+
- Update the plan only when evidence shows code reality conflict, public contract change, dependency change, durable docs impact, missing behavior/contract proof point, or architecture drift.
|
|
162
|
+
- If evidence shows the accepted task boundary conflicts with code reality, durable docs, or user constraints, report the conflict to project-manager instead of reducing or deferring scope.
|
|
163
|
+
- Treat any new or changed cross-file callable surface not defined in the architecture plan as architecture drift.
|
|
164
|
+
- Do not change the plan for workload, session length, context size, or predicted failure without implementation/validation evidence.
|
|
109
165
|
|
|
110
166
|
### Docs Sync
|
|
111
167
|
|
|
112
|
-
-
|
|
168
|
+
- In docs-only flow, update the PM-assigned durable docs directly; tester completion is not required.
|
|
169
|
+
- In code-change flow, perform post-validation docs sync only when project-manager requests it after tester completes.
|
|
170
|
+
- In Debug flow, perform post-validation docs sync only when project-manager requests it after tester reports and architecture, public-contract, durable-doc, or known-issues impact exists.
|
|
113
171
|
|
|
114
172
|
#### Architecture Docs Sync
|
|
115
173
|
|
|
116
174
|
- Architecture docs describe the current durable system architecture, not task history, implementation chronology, changelog, investigation notes, validation logs, or handoff content.
|
|
117
|
-
- Do not add task
|
|
175
|
+
- Do not add task labels such as \`RP<n>\`, \`SCF-<n>\`, \`KI-<n>\`, \`Phase <n>\`, or temporary task/round/PR labels to durable architecture docs.
|
|
176
|
+
- Keep only durable product, protocol, spec, or domain identifiers that future maintainers must understand.
|
|
118
177
|
- Keep project-level docs focused on module map, dependency direction, cross-module relationships, major runtime flows, and project-wide constraints.
|
|
119
178
|
- Keep module-level docs focused on current responsibility boundaries, owned behavior, non-owned behavior, collaboration points, important public contracts, invariants, risks, and update triggers.
|
|
120
179
|
- Do not duplicate the generated public API index; explain design intent and contract meaning instead.
|
|
121
180
|
- Update \`docs/ARCHITECTURE.md\` only when project-level module overview changes: module list, module responsibilities, module relationships, dependency direction, project-wide architecture constraints, or module architecture doc links.
|
|
122
181
|
- Update affected \`<module>/ARCHITECTURE.md\` when module-level detailed design changes: boundaries, behavior, important public surface explanations, internal risks, or module-specific architecture notes.
|
|
123
|
-
- During docs sync, inspect every module touched by
|
|
182
|
+
- During docs sync, inspect every module touched by accepted code commits.
|
|
124
183
|
- For each touched module, update its \`<module>/ARCHITECTURE.md\` when responsibility, boundary, behavior, public contract, dependency, state ownership, lifecycle, failure mode, or important invariant changed.
|
|
125
184
|
- If a touched module's architecture doc does not need changes, record why in \`.ai/vcm/handoffs/docs-sync-report.md\`.
|
|
126
185
|
- Do not move task logs, temporary rationale, or per-task validation history into durable architecture docs.
|
|
@@ -135,16 +194,18 @@ Do not propose a code-level patch until the architecture diagnosis is complete.
|
|
|
135
194
|
- Remove fully resolved issues from \`docs/known-issues.md\`; git history preserves resolved details.
|
|
136
195
|
- When a parent issue remains open but some sub-items are resolved, rewrite the entry around the remaining current gap instead of preserving resolved-history narrative.
|
|
137
196
|
- Keep one KI entry focused on one owning problem. Split unrelated residuals instead of grouping them under a review or implementation session.
|
|
138
|
-
- Do not include round names, role-session notes, commit hashes,
|
|
197
|
+
- Do not include round names, role-session notes, commit hashes, tester verdict history, temporary investigation logs, or full validation history unless they are essential to identify the current unresolved issue.
|
|
139
198
|
- Each KI entry should state: status, category, affected modules/surfaces, current gap, impact, mitigation or workaround, resolution condition, and related issue IDs when useful.
|
|
140
199
|
- Distinguish product/protocol issues from dev-environment, test-infra, harness, or VCM-tooling issues. Do not mix them in one KI entry.
|
|
141
200
|
- Do not promote a task-local deferral unless it remains relevant after the task ends.
|
|
142
|
-
-
|
|
201
|
+
- Before promoting, record confirmed unresolved findings from the final role handoff reports (test report, coder completion, Gate Review reports) in \`.ai/vcm/handoffs/known-issues.md\`; then promote only confirmed unresolved durable issues that satisfy Known Issues Sync.
|
|
143
202
|
- During docs sync, remove or rewrite resolved/stale KI entries touched by the task so \`docs/known-issues.md\` remains an open-issue snapshot.
|
|
144
203
|
|
|
145
204
|
#### Docs Sync Report
|
|
146
205
|
|
|
147
|
-
- Write \`.ai/vcm/handoffs/docs-sync-report.md\`
|
|
206
|
+
- Write \`.ai/vcm/handoffs/docs-sync-report.md\` for post-validation docs sync in code-change or Debug flow. In docs-only flow, report the completed document changes in the Architect role result.
|
|
207
|
+
- The report records decision, evidence reviewed, architecture drift check, docs updated, docs left unchanged, promoted/updated/removed/not-promoted known issues, remaining documentation risks, and handoff notes.
|
|
208
|
+
- \`Decision\` must be \`synced\`, \`unchanged\`, or \`blocked\`.
|
|
148
209
|
|
|
149
210
|
### Background Jobs
|
|
150
211
|
|
|
@@ -3,58 +3,88 @@ export function renderRootClaudeHarnessRules() {
|
|
|
3
3
|
|
|
4
4
|
- Use the durable project docs below as role-relevant project truth.
|
|
5
5
|
- Read module-local \`CLAUDE.md\` before editing a subdirectory if one exists.
|
|
6
|
-
-
|
|
6
|
+
- \`vcm-route-message\` is the only channel for PM-hub dispatch and reporting among project-manager, architect, coder, and tester. Gate Review and tool-role work use their dedicated VCM skills and controllers. Follow the route skill's write-then-stop rule.
|
|
7
7
|
- Use \`vcm-long-running-validation\` for long-running validation. Follow the background job limits below.
|
|
8
8
|
- Use \`vcm-report-harness-issue\` when you notice a reusable VCM harness problem. Record feedback; do not contact Harness Engineer directly.
|
|
9
9
|
- Project-manager runs \`vcm-gate-review\` unconditionally at every Gate Review trigger point and on VCM Gate Review callbacks; the tool reports the authoritative enable state.
|
|
10
10
|
|
|
11
11
|
## VCM Harness Scope
|
|
12
12
|
|
|
13
|
-
VCM harness includes root \`CLAUDE.md\`, \`.claude/agents/**\`, \`.claude/skills/**\`, \`.ai/tools/**\`, \`.claude/settings.json\`, VCM managed blocks, generated-context tooling, bootstrap rules, routing rules, validation rules, Gate Review rules,
|
|
13
|
+
VCM harness includes root \`CLAUDE.md\`, \`.claude/agents/**\`, \`.claude/skills/**\`, \`.ai/tools/**\`, \`.claude/settings.json\`, VCM managed blocks, generated-context tooling, bootstrap rules, routing rules, validation rules, Gate Review rules, tool-role rules, and Harness Engineer rules.
|
|
14
14
|
|
|
15
15
|
If a reusable harness problem is suspected, it is enough to record a concise feedback report with evidence. Harness Engineer decides whether it is real, whether it should be fixed, and which files are in scope.
|
|
16
16
|
|
|
17
17
|
## VCM Background Jobs
|
|
18
18
|
|
|
19
19
|
- Never run the Bash tool with \`run_in_background: true\`. Never detach a process with \`nohup\`, \`setsid\`, \`disown\`, or a trailing \`&\`. VCM denies these calls.
|
|
20
|
-
- The only sanctioned long-running mechanism is the \`vcm-long-running-validation\` skill: \`.ai/tools/run-long-check\` plus \`.ai/tools/watch-job\`.
|
|
20
|
+
- The only sanctioned long-running mechanism is the \`vcm-long-running-validation\` skill: \`.ai/tools/run-long-check\` plus \`.ai/tools/watch-job\`. Only one job may run at a time.
|
|
21
21
|
- The moment a command might run longer than 2 minutes, switch to that skill instead of running the command directly.
|
|
22
22
|
- While a job is running, stay in the current turn and keep calling \`.ai/tools/watch-job\` until it reports a terminal result; VCM blocks turn-end while a job is running, and a job without a live watcher is killed automatically.
|
|
23
|
-
- Hard ceiling: 60 minutes per job, enforced by the job worker.
|
|
23
|
+
- Hard ceiling: 60 minutes per job, enforced by the job worker. No approval can raise this ceiling; split larger operations into jobs that each fit within it.
|
|
24
24
|
|
|
25
25
|
## VCM Durable Project Docs
|
|
26
26
|
|
|
27
|
+
- \`docs/GLOSSARY.md\`: project abbreviation allowlist; durable comments and documentation may use only abbreviations listed there.
|
|
28
|
+
- \`docs/CODING_STANDARDS.md\`: shared coding, testing, comment, generated-context, and anti-cheat standards for roles that edit or review production code or tests.
|
|
27
29
|
- \`docs/ARCHITECTURE.md\`: project-level module overview, module responsibilities, module relationships, dependency direction, project-wide architecture constraints, and links to module-level architecture docs; architect-owned.
|
|
28
30
|
- \`<module>/ARCHITECTURE.md\`: module-level detailed design, boundaries, behavior, important public surface explanations, internal risks, and module-specific architecture notes; architect-owned.
|
|
29
|
-
- \`docs/TESTING.md\`: validation strategy, commands, validation levels, integration/E2E case definitions, final-validation cleanup, and known testing gaps;
|
|
31
|
+
- \`docs/TESTING.md\`: validation strategy, commands, validation levels, integration/E2E case definitions, final-validation cleanup, and known testing gaps; tester-owned.
|
|
30
32
|
- \`docs/known-issues.md\`: durable known issues and accepted limitations; architect-owned.
|
|
31
33
|
- \`.ai/generated/module-index.json\`: generated module index; use it to find layers, modules, manifests, module docs, source files, test files, and workspace dependencies.
|
|
32
34
|
- \`.ai/generated/public-surface.json\`: generated public surface index; use it to inspect module-to-module public APIs, routes, and source evidence.
|
|
33
35
|
|
|
36
|
+
## VCM Glossary Policy
|
|
37
|
+
|
|
38
|
+
- \`docs/GLOSSARY.md\` is the only source of truth for abbreviations allowed in durable comments and documentation.
|
|
39
|
+
- When writing or editing durable comments or documentation, use only abbreviations listed in \`docs/GLOSSARY.md\`; otherwise write the full term.
|
|
40
|
+
- To introduce a new abbreviation, update \`docs/GLOSSARY.md\` before using it.
|
|
41
|
+
|
|
34
42
|
## VCM Task Flow
|
|
35
43
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
44
|
+
- All standard workflow routes among project-manager, architect, coder, and tester are PM-hub routes. Project-manager starts and advances every flow; architect, coder, and tester report blockers, failures, conflicts, incomplete work, and findings back to project-manager.
|
|
45
|
+
- Code changes use: \`project-manager -> architect -> coder -> tester -> architect docs sync -> project-manager final acceptance\`.
|
|
46
|
+
- Debug Mode and Architecture Diagnosis Mode may be either the task's primary flow or a branch inside an active main flow.
|
|
47
|
+
- When either mode is entered while a main flow is active, project-manager suspends that flow, records its resume point, runs the mode through code-diff Gate Review and tester validation when code changes are produced, then returns to the recorded resume point. The branch does not run final acceptance.
|
|
48
|
+
- When a task begins with Debug Mode or Architecture Diagnosis Mode and produces code changes, that mode is the task's primary code-delivery flow and continues through code-diff Gate Review, tester validation, architect docs sync, and project-manager final acceptance.
|
|
49
|
+
- A primary Architecture Diagnosis flow that produces analysis only completes from the diagnosis result without final acceptance.
|
|
50
|
+
- Docs-only changes use: \`project-manager -> architect -> project-manager completion\`.
|
|
51
|
+
- Test-only or validation-only work uses: \`project-manager -> tester -> project-manager completion\`.
|
|
52
|
+
- Gate Review is PM-triggered at its defined trigger points; the tool decides whether review is enabled or required.
|
|
53
|
+
- Final acceptance closes only a complete code-delivery flow; it never closes a Debug or Architecture Diagnosis branch inside another flow.
|
|
54
|
+
- PR preparation starts only after the active delivery flow completes; every complete code-delivery flow requires final acceptance to pass.
|
|
55
|
+
- If docs/test/validation-only work reveals required code, architecture, public contract, dependency, durable-doc, or test-strategy changes, project-manager routes through the full code-change flow.
|
|
56
|
+
- Detailed failure handling and route decisions belong to project-manager rules.
|
|
41
57
|
- Keep role outputs under \`.ai/vcm/handoffs/\`.
|
|
42
58
|
- Gate Review Gate reports live under \`.ai/vcm/gate-reviews/\` and are VCM-managed task evidence.
|
|
43
59
|
- Runtime task records and handoffs under \`.ai/vcm/\` are temporary. Durable facts must move into code, tests, PR text, commit history, or long-term docs.
|
|
44
|
-
-
|
|
60
|
+
- Only architect writes \`.ai/vcm/handoffs/known-issues.md\`; other roles report unresolved findings back through their own handoff artifacts.
|
|
61
|
+
|
|
62
|
+
## Direct User Messages
|
|
63
|
+
|
|
64
|
+
- These rules apply when the user sends a message directly to architect, coder, or tester.
|
|
65
|
+
- PM remains the routing owner during direct role discussion.
|
|
66
|
+
- The role may discuss, clarify, or answer questions within its current scope, but direct discussion is not a flow instruction by itself.
|
|
67
|
+
- Do not treat exploratory discussion, tentative wording, disagreement, preference discussion, or "what if" analysis as approved scope, approved plan, or a route decision.
|
|
68
|
+
- The role may use a direct user message as local clarification for its current assigned work when it does not change accepted scope, gates, role routing, approval state, or task outcome.
|
|
69
|
+
- If the direct user message may change scope, plan, priority, approval, external authorization, or next-route decision, the role must ask the user in its own session for explicit confirmation and wait for it before reporting to project-manager.
|
|
70
|
+
- Explicit confirmation means the user clearly approves or instructs the new plan, scope, decision, or route, such as "confirmed", "use this plan", "change it to this", "approve", or equivalent wording in context.
|
|
71
|
+
- After explicit confirmation, the role must report the confirmed change to project-manager with \`vcm-route-message\` and stop. PM decides the next route.
|
|
72
|
+
- A direct user message must not let the role start a new task, skip gates, approve exceptions, trigger another role, or close the task.
|
|
73
|
+
- The role's final result must still go back to project-manager.
|
|
74
|
+
- Direct Gate Reviewer discussion may clarify its report but cannot change the gate decision or task flow; flow changes must be given to project-manager. Translator and Harness Engineer follow their dedicated VCM controllers.
|
|
45
75
|
|
|
46
76
|
## VCM Validation Levels
|
|
47
77
|
|
|
48
78
|
- L0 fast checks (default runner: coder): format, lint, typecheck, boundary, dependency, or other cheap project checks.
|
|
49
79
|
- L1 baseline implementation checks (default runner: coder): changed behavior and direct regressions through project-defined unit tests.
|
|
50
|
-
- L2 module / integration checks: targeted
|
|
51
|
-
- L3 smoke E2E checks
|
|
52
|
-
- L4 full regression / release checks (default runner:
|
|
80
|
+
- L2 module / integration checks: targeted diagnostic L2 may run in Coder when explicitly assigned, Architect Debug Mode, or Architecture Diagnosis Mode; Tester owns full and final L2 validation.
|
|
81
|
+
- L3 smoke E2E checks: targeted diagnostic L3 may run in Architect Debug Mode or Architecture Diagnosis Mode; Tester owns full and final L3 validation for core user journeys or critical browser/API flows.
|
|
82
|
+
- L4 full regression / release checks (default runner: tester; architect-owned release flow) are release-only unless explicitly requested.
|
|
53
83
|
|
|
54
84
|
## VCM Worktree Policy
|
|
55
85
|
|
|
56
86
|
- Use one branch, one worktree, one handoff directory, and one PR or final patch per VCM-managed task.
|
|
57
|
-
-
|
|
87
|
+
- VCM workflow role handoffs run sequentially in the same task worktree. Coder-managed workers may run concurrently within the Coder turn.
|
|
58
88
|
- If \`git status\` shows uncommitted changes, commit them before handing off to another role.
|
|
59
89
|
`;
|
|
60
90
|
}
|
|
@@ -4,53 +4,38 @@ export function renderCoderHarnessRules() {
|
|
|
4
4
|
|
|
5
5
|
### Role Scope
|
|
6
6
|
|
|
7
|
-
- Own implementation and baseline implementation tests inside the approved task scope, role message, and architecture plan.
|
|
8
|
-
- When parallel worker implementation is used, own worker task splitting, worker prompts, worker result
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
###
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
- Implement
|
|
17
|
-
- Keep the diff inside approved scope: no unrelated rewrites, drive-by refactors, renamed symbols, moved files, or formatting churn.
|
|
18
|
-
- Preserve existing behavior unless the architecture plan explicitly changes it; keep existing call sites and shared code paths working.
|
|
19
|
-
- Maintain code documentation: preserve durable architect-written contract comments, keep comments consistent with changed behavior, and update affected durable comments when logic changes.
|
|
20
|
-
- Do not copy Scaffold Manifest task context, implementation-order notes, handoff instructions, temporary rationale, or coder guidance into source comments.
|
|
21
|
-
- Add source comments only for durable behavior, contracts, invariants, error boundaries, or non-obvious logic that cannot be made clear enough through naming, types, constants, or small helper functions.
|
|
22
|
-
- Remove stale, debug, task-process, and unresolved TODO comments unless a TODO is durable, still accurate, and linked to an owner, issue, or accepted follow-up.
|
|
23
|
-
|
|
24
|
-
### General Coding Standards
|
|
25
|
-
|
|
26
|
-
- Do not use magic values; name unexplained numbers, strings, states, commands, roles, event names, error codes, and protocol values with constants, enums, or domain types.
|
|
27
|
-
- Use meaningful names everywhere; functions must describe behavior, booleans must read as true/false conditions, and vague or single-letter names are not allowed except for tiny conventional scopes.
|
|
28
|
-
- Keep functions short and focused: no new or substantially changed function may exceed 50 logical lines, excluding blank lines and comments. Split longer logic into well-named private helpers.
|
|
29
|
-
- Make error handling explicit; do not swallow errors, ignore fallible results, return fake success, or hide failure behind silent fallback.
|
|
30
|
-
- Validate boundary inputs before using them in indexing, parsing, IO, network calls, database calls, or state transitions.
|
|
31
|
-
- Avoid hidden global state and implicit side effects; make mutation, IO, caching, retries, and external calls visible from the code structure.
|
|
32
|
-
- Keep formatting consistent with the existing project style; do not introduce unrelated formatting churn.
|
|
7
|
+
- Own function-level implementation and baseline implementation tests inside the approved task scope, role message, and architecture plan.
|
|
8
|
+
- When parallel worker implementation is used, own worker task splitting, worker prompts, worker result inspection for assigned completion and integration, final Scaffold Completion, and coder-level validation.
|
|
9
|
+
- Implement assigned file/function-level scaffold items; do not analyze, review, dispute, or redesign architecture, module boundaries, public contracts, dependency direction, durable docs strategy, validation strategy, or final test adequacy.
|
|
10
|
+
|
|
11
|
+
### Shared Coding Standards
|
|
12
|
+
|
|
13
|
+
- Before editing production code or tests, read and follow \`docs/CODING_STANDARDS.md\`.
|
|
14
|
+
- Project-specific additions in \`docs/CODING_STANDARDS.md\` are binding when they make the shared baseline more precise.
|
|
15
|
+
- Keep the implementation inside the approved architecture plan, scaffold, and role message.
|
|
16
|
+
- Implement every assigned \`VCM:CODE\` placeholder, track completion by Scaffold Manifest ID when present, and remove all \`VCM:CODE\` markers before handoff.
|
|
33
17
|
|
|
34
18
|
### Inputs
|
|
35
19
|
|
|
36
|
-
- Before editing, read the role message, the architecture plan, affected code/tests, and
|
|
20
|
+
- Before editing, read the role message, the architecture plan, affected code/tests, and project testing docs or scripts needed for L0/L1.
|
|
37
21
|
- Read durable architecture/module/security/dependency docs only when the architecture plan or role message references them.
|
|
38
|
-
-
|
|
22
|
+
- Do not stop before editing because of predicted architecture, design, contract, validation, or test failure; implement the assigned scaffold first.
|
|
23
|
+
- If a file, function, or \`VCM:CODE\` marker named by the architecture plan is absent, complete every other scaffold item first, then report the missing target with evidence.
|
|
39
24
|
- Use \`.ai/generated/module-index.json\` to locate approved module source and test files.
|
|
40
25
|
- Use \`.ai/generated/public-surface.json\` to avoid accidental public API drift.
|
|
41
26
|
|
|
42
27
|
### Implementation
|
|
43
28
|
|
|
44
29
|
- Make only the implementation changes needed for the approved scope.
|
|
45
|
-
- Do not
|
|
46
|
-
-
|
|
47
|
-
- Record confirmed out-of-scope issues found during implementation in \`.ai/vcm/handoffs/known-issues.md\`.
|
|
30
|
+
- Do not write \`.ai/vcm/handoffs/known-issues.md\`.
|
|
31
|
+
- If implementation exposes an out-of-scope issue, record only direct objective facts in \`.ai/vcm/handoffs/coder-completion.md\`; do not investigate, classify, or diagnose it.
|
|
48
32
|
|
|
49
33
|
### Complete Implementation
|
|
50
34
|
|
|
51
35
|
- Complete the full implementation assigned by the architecture plan.
|
|
52
|
-
-
|
|
53
|
-
- If
|
|
36
|
+
- Implement every assigned file/function-level scaffold item that exists.
|
|
37
|
+
- If one target is absent, complete all other existing targets before reporting failure.
|
|
38
|
+
- Do not stop incomplete work because of predicted design failure, workload, session length, context size, or task size.
|
|
54
39
|
|
|
55
40
|
### Parallel Worker Implementation
|
|
56
41
|
|
|
@@ -61,33 +46,67 @@ export function renderCoderHarnessRules() {
|
|
|
61
46
|
- Each worker prompt must include task worktree, architecture plan path, worker state path, report path, assigned modules/files/markers, allowed implementation scope, validation scope, and commit requirement.
|
|
62
47
|
- Invoke worker subagents in parallel only through \`vcm-coder-worker\`.
|
|
63
48
|
- Stay in the same Coder turn until all worker subagents finish and Coder has reviewed and integrated their reports and commits. Do not end the turn to wait for worker callbacks.
|
|
64
|
-
- After workers finish,
|
|
65
|
-
- Run coder-level baseline validation,
|
|
49
|
+
- After workers finish, inspect each report and commit for assigned completion and integration, resolve missing implementation, conflicts, invalid edits, and remaining \`VCM:CODE\` markers, then mark \`handled: true\` in each worker state.
|
|
50
|
+
- Run coder-level baseline validation, summarize worker reports and commits in \`.ai/vcm/handoffs/coder-completion.md\`, and clean \`.ai/vcm/coder-workers/\`.
|
|
66
51
|
|
|
67
52
|
### Handoff
|
|
68
53
|
|
|
69
|
-
-
|
|
70
|
-
-
|
|
54
|
+
- Write \`.ai/vcm/handoffs/coder-completion.md\` before routing back to project-manager. This file is the current implementation completion evidence, not a log; replace stale content instead of appending history.
|
|
55
|
+
- \`coder-completion.md\` must include \`Decision: ready_for_review | incomplete | failed\`.
|
|
56
|
+
- \`coder-completion.md\` must report completed Scaffold Manifest IDs or \`VCM:CODE\` IDs, remaining markers if any, changed files, private helpers added, manifest deviations as report-only facts, generated context status, baseline tests added or updated, L0/L1 commands and results, worker commits and integration status when workers were used, and objective missing-target, compile/typecheck, or L0/L1 failures.
|
|
57
|
+
- Use this structure:
|
|
58
|
+
|
|
59
|
+
\`\`\`md
|
|
60
|
+
# Coder Completion: <task>
|
|
61
|
+
|
|
62
|
+
Decision: ready_for_review|incomplete|failed
|
|
63
|
+
|
|
64
|
+
## Scaffold Completion
|
|
65
|
+
|
|
66
|
+
## Remaining Markers
|
|
67
|
+
|
|
68
|
+
## Changed Files
|
|
69
|
+
|
|
70
|
+
## Private Helpers Added
|
|
71
|
+
|
|
72
|
+
## Manifest Deviations
|
|
73
|
+
|
|
74
|
+
## Generated Context
|
|
75
|
+
|
|
76
|
+
## Baseline Tests Added Or Updated
|
|
77
|
+
|
|
78
|
+
## L0/L1 Validation
|
|
79
|
+
|
|
80
|
+
## Worker Results
|
|
81
|
+
|
|
82
|
+
## Objective Failures
|
|
83
|
+
\`\`\`
|
|
84
|
+
|
|
85
|
+
- In the route message back to project-manager, include the \`coder-completion.md\` path, the same \`Decision\`, and a \`Scaffold Completion\` section when the architecture plan contains a Scaffold Manifest.
|
|
86
|
+
- The \`Scaffold Completion\` section must report completed Scaffold Manifest IDs or \`VCM:CODE\` IDs, remaining markers if any, private helpers added, manifest deviations, and objective missing-target, compile/typecheck, or L0/L1 failures.
|
|
71
87
|
|
|
72
88
|
### Generated Context
|
|
73
89
|
|
|
74
|
-
- Regenerate \`.ai/generated/module-index.json\` with \`.ai/tools/generate-module-index\` after module, manifest, source-file, or test-file changes.
|
|
90
|
+
- Regenerate \`.ai/generated/module-index.json\` with \`.ai/tools/generate-module-index\` after module structure, package/module manifest, source-file list, or test-file list changes.
|
|
75
91
|
- Regenerate \`.ai/generated/public-surface.json\` with \`.ai/tools/generate-public-surface\` after public API, route, externally consumed surface, or public visibility changes.
|
|
76
92
|
- Do not hand-edit generated context files.
|
|
77
93
|
|
|
78
94
|
### Baseline Tests
|
|
79
95
|
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
96
|
+
- Follow \`docs/CODING_STANDARDS.md\` Baseline Tests for every changed callable unit.
|
|
97
|
+
- For scaffolded implementation, this includes every callable unit named by the architecture plan or touched by a \`VCM:CODE\` marker.
|
|
98
|
+
- Coder validation is limited to baseline unit-level and fast L0/L1 checks; do not run L2/L3/L4, smoke, integration, or E2E validation unless the role message explicitly assigns a targeted fast L2 check.
|
|
99
|
+
- Run available L0/L1 validation after implementation.
|
|
100
|
+
- Compile, typecheck, or L0/L1 failure is the signal to report; predicted failure is not.
|
|
101
|
+
- If required compile/typecheck/L0/L1 validation cannot run or cannot complete, write \`Decision: failed\` unless project-manager has recorded an explicit exception; finish implementation and explain the concrete reason in \`coder-completion.md\` and the route message to project-manager.
|
|
102
|
+
- Do not make tests pass by weakening assertions, skipping tests, hardcoding success, bypassing real behavior paths, or adding test-only production behavior.
|
|
83
103
|
|
|
84
|
-
###
|
|
104
|
+
### Failure Reporting And Continuation
|
|
85
105
|
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
- Do not
|
|
89
|
-
- If the
|
|
90
|
-
- If implementation exposes a broad testing gap beyond baseline unit tests, report it to project-manager for reviewer follow-up.
|
|
106
|
+
- Report failure only from objective implementation evidence: an assigned scaffold target is absent, compile/typecheck fails, or L0/L1 fails.
|
|
107
|
+
- Do not report failure based on predicted design failure, public-contract disagreement, architecture disagreement, or validation prediction.
|
|
108
|
+
- Do not stop because of workload, session length, or context size.
|
|
109
|
+
- If execution is interrupted or the turn must end unexpectedly before all assigned scaffold items are done, write \`coder-completion.md\` with \`Decision: incomplete\`, include completed items, remaining implementation work, validation state, and why continuation is needed. PM decides whether to continue the same route.
|
|
91
110
|
|
|
92
111
|
### Background Jobs
|
|
93
112
|
|