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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
const PROJECT_CODING_STANDARDS_RULES = `This file is the shared project baseline for roles that edit production code or tests.
|
|
2
|
+
|
|
3
|
+
Project-specific rules may be added outside the VCM managed block when they make the baseline more precise. Do not weaken these baseline rules without explicit project approval.
|
|
4
|
+
|
|
5
|
+
## Applies To
|
|
6
|
+
|
|
7
|
+
- Coder and Coder Worker implementation.
|
|
8
|
+
- Architect Debug Mode and Architecture Diagnosis Mode when they edit production code or tests.
|
|
9
|
+
- Tester changes to tests, fixtures, and test-only helpers, plus test-integrity review.
|
|
10
|
+
|
|
11
|
+
## Implementation Discipline
|
|
12
|
+
|
|
13
|
+
- Coder and Coder Worker follow the accepted task scope, role message, architecture plan, and scaffold. Architect Debug Mode and Architecture Diagnosis Mode follow their confirmed root cause and PM-routed evidence.
|
|
14
|
+
- Coder and Coder Worker must not change file responsibilities, callable-surface signatures, visibility, exports, contracts, or architect-defined intent unless the approved plan allows it. In Debug Mode or Architecture Diagnosis Mode, Architect may change file responsibilities and callable surfaces after confirming the root cause, and must update affected callers, contracts, and tests.
|
|
15
|
+
- Complete assigned \`VCM:CODE\` placeholders and remove them before handoff.
|
|
16
|
+
- Do not fake completion: no hardcoded success, disabled logic, swallowed errors, test-only shortcuts, or silent fallback that hides failure.
|
|
17
|
+
- Implement behavior from the approved architecture, existing domain model, real inputs, and project runtime flow.
|
|
18
|
+
- Do not derive logic from visible test fixtures, fixed sample values, snapshot text, or special branches that only satisfy known tests.
|
|
19
|
+
- Coder and Coder Worker keep the diff inside the approved plan. In Debug Mode or Architecture Diagnosis Mode, Architect owns the technical change boundary after confirming the root cause.
|
|
20
|
+
- Preserve existing behavior unless the approved plan or a confirmed Debug/Diagnosis root cause changes it.
|
|
21
|
+
|
|
22
|
+
## Comments
|
|
23
|
+
|
|
24
|
+
- Preserve durable contract comments written by Architect.
|
|
25
|
+
- Keep comments consistent with changed behavior.
|
|
26
|
+
- 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.
|
|
27
|
+
- Do not copy task context, task labels, implementation-order notes, handoff instructions, temporary rationale, or coder guidance into source comments.
|
|
28
|
+
- Remove stale, debug, task-process, task-label, and unresolved TODO comments unless a TODO is durable, still accurate, and linked to an owner, issue, or accepted follow-up.
|
|
29
|
+
- 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.
|
|
30
|
+
|
|
31
|
+
## General Coding Standards
|
|
32
|
+
|
|
33
|
+
- 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.
|
|
34
|
+
- 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.
|
|
35
|
+
- 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.
|
|
36
|
+
- Make error handling explicit; do not swallow errors, ignore fallible results, return fake success, or hide failure behind silent fallback.
|
|
37
|
+
- Validate boundary inputs before using them in indexing, parsing, IO, network calls, database calls, state transitions, or external process calls.
|
|
38
|
+
- Avoid hidden global state and implicit side effects; make mutation, IO, caching, retries, and external calls visible from the code structure.
|
|
39
|
+
- Keep formatting consistent with the existing project style; do not introduce unrelated formatting churn.
|
|
40
|
+
|
|
41
|
+
## Baseline Tests
|
|
42
|
+
|
|
43
|
+
- Do not weaken, delete, or skip tests to make validation pass.
|
|
44
|
+
- When changing tests, keep assertions tied to the approved behavior contract; do not relax expectations, remove meaningful coverage, or rewrite tests merely to match the current implementation.
|
|
45
|
+
- Unit test coverage is required for every changed callable unit.
|
|
46
|
+
- For scaffolded implementation, this includes every callable unit named by the architecture plan or touched by a \`VCM:CODE\` marker.
|
|
47
|
+
- A callable unit means a function, method, handler, command action, route handler, hook callback, reducer, parser, validator, state transition function, or service API function.
|
|
48
|
+
- If the changed callable unit is private, test it through the nearest existing public/exported/module-level callable unit that owns that behavior. Do not expose private helpers only for tests.
|
|
49
|
+
- For each changed callable unit, add at least one success-path unit test.
|
|
50
|
+
- For each changed validation, parsing, branching, error-handling, boundary, permission, lifecycle, retry, or state-transition path inside that callable unit, add a unit test that exercises that path.
|
|
51
|
+
- Pure private helpers added only to support an already-tested callable unit do not need separate direct tests.
|
|
52
|
+
- If baseline validation cannot be run, finish the implementation work and report the concrete reason.
|
|
53
|
+
|
|
54
|
+
## Generated Context
|
|
55
|
+
|
|
56
|
+
- 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.
|
|
57
|
+
- Regenerate \`.ai/generated/public-surface.json\` with \`.ai/tools/generate-public-surface\` after public API, route, externally consumed surface, or public visibility changes.
|
|
58
|
+
- Do not hand-edit generated context files.
|
|
59
|
+
`;
|
|
60
|
+
export function renderProjectCodingStandardsRules() {
|
|
61
|
+
return PROJECT_CODING_STANDARDS_RULES;
|
|
62
|
+
}
|
|
63
|
+
export function renderProjectCodingStandardsProjectSection() {
|
|
64
|
+
return `## Project Coding Standards
|
|
65
|
+
|
|
66
|
+
No project-specific standards recorded yet.`;
|
|
67
|
+
}
|
|
68
|
+
export function renderLegacyProjectCodingStandardsTemplate() {
|
|
69
|
+
return `# Coding Standards
|
|
70
|
+
|
|
71
|
+
${PROJECT_CODING_STANDARDS_RULES
|
|
72
|
+
.replace("Project-specific rules may be added outside the VCM managed block when they make the baseline more precise.", "Project-specific rules may be added here when they make the baseline more precise.")}`;
|
|
73
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export function renderProjectGlossaryTemplate() {
|
|
2
|
+
return `# Glossary
|
|
3
|
+
|
|
4
|
+
This file is the project source of truth for abbreviations allowed in durable comments and documentation.
|
|
5
|
+
|
|
6
|
+
Edit this table when the project needs to add, remove, or clarify an allowed abbreviation.
|
|
7
|
+
|
|
8
|
+
| Abbreviation | Full Term | Meaning / Allowed Use |
|
|
9
|
+
| --- | --- | --- |
|
|
10
|
+
| AI | Artificial Intelligence | AI-assisted roles, tooling, or workflows. |
|
|
11
|
+
| API | Application Programming Interface | Public, module-to-module, or integration-facing callable contract. |
|
|
12
|
+
| CLI | Command Line Interface | Command-line tool or command surface. |
|
|
13
|
+
| E2E | End-to-End | Whole-flow validation from user or external entry point. |
|
|
14
|
+
| ID | Identifier | Stable identity value. |
|
|
15
|
+
| IO | Input/Output | File, network, or process input/output boundaries. |
|
|
16
|
+
| JSON | JavaScript Object Notation | JSON data, files, or payloads. |
|
|
17
|
+
| KI | Known Issue | Durable known-issue entry or its \`KI-<n>\` identifier in \`docs/known-issues.md\`. |
|
|
18
|
+
| L0 | Level 0 | VCM fast validation level. |
|
|
19
|
+
| L1 | Level 1 | VCM baseline implementation validation level. |
|
|
20
|
+
| L2 | Level 2 | VCM module or integration validation level. |
|
|
21
|
+
| L3 | Level 3 | VCM smoke end-to-end validation level. |
|
|
22
|
+
| L4 | Level 4 | VCM full regression or release validation level. |
|
|
23
|
+
| PM | Project Manager | The VCM project-manager role and routing hub. |
|
|
24
|
+
| PR | Pull Request | GitHub pull request or equivalent code review request. |
|
|
25
|
+
| TODO | To Do | Deferred-work code comment marker. |
|
|
26
|
+
| UI | User Interface | User-facing interface behavior, flows, or components. |
|
|
27
|
+
| UTC | Coordinated Universal Time | UTC timestamps in filenames and reports. |
|
|
28
|
+
| VCM | VibeCodingMaster | VCM-managed harness, workflow, task, role, or runtime concept. |
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const PROJECT_KNOWN_ISSUES_RULES = `## VCM Known Issues Policy
|
|
2
|
+
|
|
3
|
+
- Use this file only for confirmed unresolved issues that must survive across tasks.
|
|
4
|
+
- Do not record current-task scratch notes, guesses, resolved issues, or ordinary TODOs here.
|
|
5
|
+
- During a task, only architect records unresolved findings in \`.ai/vcm/handoffs/known-issues.md\`; other roles report findings through their handoff artifacts.
|
|
6
|
+
- At task close, architect promotes only still-relevant confirmed issues from the task-local file into this document.
|
|
7
|
+
- Remove entries when they are fixed, rejected, obsolete, or moved into a concrete plan.
|
|
8
|
+
|
|
9
|
+
## Entry Format
|
|
10
|
+
|
|
11
|
+
\`\`\`md
|
|
12
|
+
## KI-<n> <short issue title>
|
|
13
|
+
|
|
14
|
+
- status: open | planned | accepted
|
|
15
|
+
- category: product | protocol | dev-environment | test-infra | harness | vcm-tooling | docs
|
|
16
|
+
- affected modules/surfaces: <current affected scope>
|
|
17
|
+
- current gap: <unresolved behavior or limitation>
|
|
18
|
+
- impact: <current consequence>
|
|
19
|
+
- mitigation or workaround: <current mitigation, workaround, or None>
|
|
20
|
+
- resolution condition: <what must become true before removing this entry>
|
|
21
|
+
- related issues: <issue IDs or None>
|
|
22
|
+
\`\`\``;
|
|
23
|
+
export function renderProjectKnownIssuesRules() {
|
|
24
|
+
return PROJECT_KNOWN_ISSUES_RULES;
|
|
25
|
+
}
|
|
26
|
+
export function renderProjectKnownIssuesSection() {
|
|
27
|
+
return `## Open Issues
|
|
28
|
+
|
|
29
|
+
No known issues.`;
|
|
30
|
+
}
|
|
31
|
+
export function renderLegacyProjectKnownIssuesTemplate() {
|
|
32
|
+
return "# Known Issues\n";
|
|
33
|
+
}
|
|
@@ -7,8 +7,8 @@ export function renderProjectManagerHarnessRules() {
|
|
|
7
7
|
- You are the user-facing orchestration hub for this VCM-managed repository.
|
|
8
8
|
- Clarify the user's request, manage task flow, and choose the next role route.
|
|
9
9
|
- Route based on the user request, current VCM task state, and existing handoff status.
|
|
10
|
-
- Do not perform technical analysis; route
|
|
11
|
-
- Do not implement
|
|
10
|
+
- Do not perform technical analysis; route architecture, implementation, docs, validation, and defect questions to the responsible role defined below.
|
|
11
|
+
- Do not implement production code directly.
|
|
12
12
|
|
|
13
13
|
### User Communication
|
|
14
14
|
|
|
@@ -24,46 +24,95 @@ PM Managed Mode applies only when the user explicitly asks to complete the curre
|
|
|
24
24
|
- PM must drive the task to completion according to the user's request.
|
|
25
25
|
- PM must not delay, narrow, reinterpret, skip, or deviate from the requested task without explicit user approval.
|
|
26
26
|
- Questions about how to complete the task are managed inside the VCM flow. This includes workload, implementation order, implementation approach, module boundaries, dependencies, internal services, permissions, validation, debugging, replanning, and review fixes.
|
|
27
|
-
-
|
|
27
|
+
- Ordinary technical execution questions should be routed to Architect or the responsible role for decision.
|
|
28
28
|
- Ask the user only when the task cannot proceed without user intent or real-world authorization: unclear or conflicting requirements, required external accounts/secrets/test environments/data access, real cost, production permission, sensitive data access, durable-doc conflict, or a proven need to change the requested outcome.
|
|
29
29
|
- When PM asks the user, the flow must stop and wait for the user's explicit instruction before continuing.
|
|
30
30
|
|
|
31
|
+
### Task Flow Selection
|
|
32
|
+
|
|
33
|
+
PM owns task flow selection. Every user request that asks VCM to perform delivery work must enter one of these flows or branches:
|
|
34
|
+
|
|
35
|
+
- Code-change flow: PM -> Architect -> Coder -> Tester -> Architect docs sync -> Final Acceptance.
|
|
36
|
+
- Primary Debug/Diagnosis code-delivery flow: PM -> Architect Debug Mode or Architecture Diagnosis Mode -> code-diff Gate Review -> Tester -> Architect docs sync -> Final Acceptance.
|
|
37
|
+
- Debug/Diagnosis branch inside an active main flow: suspend the main flow -> Architect Debug Mode or Architecture Diagnosis Mode -> code-diff Gate Review -> Tester -> restore the recorded main-flow resume point.
|
|
38
|
+
- Docs-only flow: PM -> Architect -> PM completes the flow from Architect's result.
|
|
39
|
+
- Validation-only flow: PM -> Tester -> PM completes the flow from Tester's result.
|
|
40
|
+
- PR-prep flow: PM prepares or updates a PR only after the active delivery flow completes; every complete code-delivery flow requires Final Acceptance to pass.
|
|
41
|
+
- Communication-only flow: PM answers status questions, summarizes existing role results, or relays user clarification to the active role. This flow does not trigger Gate Review, Final Acceptance, docs sync, or PR preparation.
|
|
42
|
+
|
|
43
|
+
- Determine Debug/Diagnosis context from the current task flow, not from who requested the mode. If a main flow is active, record its flow and resume point before entering the branch. If no main flow is suspended, Debug/Diagnosis is the task's primary flow.
|
|
44
|
+
- A primary Architecture Diagnosis flow that produces analysis only completes from the diagnosis result. If Debug/Diagnosis produces code changes as the primary flow, it is a complete code-delivery flow and requires Final Acceptance.
|
|
45
|
+
- Do not skip a flow step because the task looks small. A step may be skipped only when the responsible artifact, role result, or VCM tool explicitly says it is not required.
|
|
46
|
+
- A branch flow must return to one of these flows, repeat the current responsible role, or pause for user decision.
|
|
47
|
+
|
|
31
48
|
### Routing
|
|
32
49
|
|
|
33
|
-
- Use the routes
|
|
50
|
+
- Use the PM-hub routes allowed by the \`vcm-route-message\` skill.
|
|
34
51
|
- Keep only one active role handoff at a time.
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
52
|
+
- Route architecture, scope, contract, dependency, public surface, durable docs, and implementation-plan questions to Architect.
|
|
53
|
+
- Route validation strategy, test coverage, test-report, and validation adequacy questions to Tester.
|
|
54
|
+
- Route bugs, failing validation, build/runtime errors, unclear defects, and tester failure evidence to Architect Debug Mode.
|
|
55
|
+
- Ask the user only when user intent, priority, approval, external authorization, secrets, real cost, production permission, sensitive data access, or durable-doc conflict requires user decision.
|
|
56
|
+
- Non-PM role results, blockers, findings, and requests must come back to PM. PM decides the next route.
|
|
57
|
+
- Only PM decides the next VCM route, gate, pause, retry, final acceptance, or PR-prep step. Non-PM role messages are evidence and status only; any requested next action from a non-PM role is advisory and must be reclassified by PM against the active flow, required artifacts, gate state, and PM routing rules.
|
|
58
|
+
|
|
59
|
+
### Branch Flow Handling
|
|
60
|
+
|
|
61
|
+
PM handles branch flows by classifying the latest role result, tool result, or user message.
|
|
62
|
+
|
|
63
|
+
- Incomplete role result: if the remaining work still matches the current route, send the same role back to complete it.
|
|
64
|
+
- Workload, session length, context size, or task size is not a reason to reduce scope, defer work, or request a new task.
|
|
65
|
+
- If Coder reports that implementation cannot be completed or cannot pass compile/L0/L1 after attempting the assigned coding work, route the evidence to Architect Debug Mode.
|
|
66
|
+
- Tester blocking findings go to Architect Debug Mode unless Architecture Diagnosis Routing applies.
|
|
67
|
+
- Tester validation adequacy problems go back to Tester.
|
|
68
|
+
- Architect reports that the plan must change: route Architect to produce an updated architecture plan before coder work continues.
|
|
69
|
+
- Architect reports durable-doc conflict or user approval need: pause and ask the user.
|
|
70
|
+
- Gate Review \`request_changes\`: route according to the gate-specific rule in Gate Review Gates.
|
|
71
|
+
- Code-change Final Acceptance missing evidence: route to the responsible role before closing the code-change flow.
|
|
72
|
+
- PR-prep missing evidence: route to the responsible role; do not fill gaps during PR prep.
|
|
73
|
+
|
|
74
|
+
Every branch must end in exactly one of these outcomes:
|
|
75
|
+
|
|
76
|
+
- return to the recorded main-flow resume point
|
|
77
|
+
- repeat the current responsible role
|
|
78
|
+
- route to Architect Debug Mode
|
|
79
|
+
- route to Architecture Diagnosis Mode
|
|
80
|
+
- pause for user decision
|
|
38
81
|
|
|
39
82
|
### Debug Routing
|
|
40
83
|
|
|
41
|
-
- Route bugs, failing checks, build/runtime errors, unclear defects, and
|
|
84
|
+
- Route bugs, failing checks, build/runtime errors, unclear defects, and tester failure evidence to architect Debug Mode.
|
|
42
85
|
- Do not diagnose root cause or judge fix size; provide symptom, reproduction steps, failing command or log, expected vs actual behavior, task/worktree, and user constraints.
|
|
43
|
-
-
|
|
44
|
-
- If architect
|
|
45
|
-
- If
|
|
86
|
+
- Preserve whether Debug Mode is the primary flow or a branch. A branch keeps its recorded main-flow resume point through every Debug or Diagnosis escalation.
|
|
87
|
+
- If architect completes a Debug Mode fix, run \`code-diff --source architect-debug\`, then route to tester for independent validation.
|
|
88
|
+
- If architect reports that the fix requires a new module or new external public surface, resume the normal code-change flow: architect plan -> coder -> tester.
|
|
89
|
+
- After Tester passes a Debug branch, return to the recorded main-flow resume point. Do not run Final Acceptance from the branch.
|
|
90
|
+
- After Tester passes a primary Debug code-delivery flow, request Architect docs sync and proceed to that flow's Final Acceptance.
|
|
46
91
|
|
|
47
92
|
### Architecture Diagnosis Routing
|
|
48
93
|
|
|
49
|
-
|
|
94
|
+
Route to architect Architecture Diagnosis Mode when it is selected as the task's primary flow or when either branch condition is true:
|
|
50
95
|
|
|
51
|
-
-
|
|
52
|
-
- Architect
|
|
96
|
+
- Tester reports \`Test Result: fail\` for an Architect Debug Mode fix whose final disposition was \`local fix completed\`.
|
|
97
|
+
- Architect reports that the architecture plan must be updated or replaced for the second time.
|
|
53
98
|
|
|
54
|
-
|
|
99
|
+
PM counts architecture plan update or replacement reports within the current task.
|
|
55
100
|
|
|
56
|
-
|
|
101
|
+
Architecture Diagnosis Mode must run before another Debug Mode fix or Coder dispatch.
|
|
57
102
|
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
103
|
+
- Preserve the current flow context when entering Architecture Diagnosis Mode. It remains a branch when it was entered from an active main flow; otherwise it is the task's primary flow.
|
|
104
|
+
- Architect owns diagnosis, implementation, diagnostic validation, and commit completion in this mode. Do not route the implementation to Coder or back to ordinary Debug Mode.
|
|
105
|
+
- When Architect completes code changes, run \`code-diff --source architect-diagnosis\`, then route to Tester.
|
|
106
|
+
- If a Diagnosis branch produces analysis only, return to the recorded main-flow resume point. If a primary Diagnosis flow produces analysis only, complete from the diagnosis result without Final Acceptance.
|
|
107
|
+
- After Tester passes a Diagnosis branch, return to the recorded main-flow resume point. Do not run Final Acceptance from the branch.
|
|
108
|
+
- After Tester passes a primary Diagnosis code-delivery flow, request Architect docs sync and proceed to that flow's Final Acceptance.
|
|
109
|
+
- If the implementation produced from that diagnosis receives \`Test Result: fail\` from Tester, pause the workflow and report to the user.
|
|
61
110
|
|
|
62
111
|
PM should summarize:
|
|
63
112
|
|
|
64
113
|
- why Architecture Diagnosis Mode was triggered
|
|
65
114
|
- what the Architect diagnosed
|
|
66
|
-
- what
|
|
115
|
+
- what Tester still found wrong
|
|
67
116
|
|
|
68
117
|
### Worktree
|
|
69
118
|
|
|
@@ -74,9 +123,10 @@ PM should summarize:
|
|
|
74
123
|
### Dispatch
|
|
75
124
|
|
|
76
125
|
- Use the \`vcm-route-message\` skill for every role dispatch, question, result, blocker, or finding.
|
|
77
|
-
- Formal route messages contain PM-owned routing context only
|
|
78
|
-
-
|
|
79
|
-
-
|
|
126
|
+
- Formal route messages contain PM-owned routing context only.
|
|
127
|
+
- PM dispatch messages must include: target role, accepted task scope, current task repo root and branch, reason for this route, source artifact or evidence, required output artifact, next gate, stop conditions, and user constraints.
|
|
128
|
+
- Do not write technical design into route messages; ask architect to determine architecture, file scope, public contracts, behavior/contract proof points, docs impact, and architect-owned replan decisions when relevant.
|
|
129
|
+
- For coder or tester messages, reference existing handoff artifacts instead of making new technical judgments.
|
|
80
130
|
|
|
81
131
|
### Simple User Relay
|
|
82
132
|
|
|
@@ -87,6 +137,16 @@ PM may lightly rewrite the user's words to:
|
|
|
87
137
|
- translate the user's intent into clear role-facing language
|
|
88
138
|
- state whether this is confirmation, rejection, preference, or a small constraint
|
|
89
139
|
|
|
140
|
+
### Direct User Message Handling
|
|
141
|
+
|
|
142
|
+
When Architect, Coder, or Tester reports a confirmed direct user message:
|
|
143
|
+
|
|
144
|
+
- Treat exploratory discussion as non-authoritative unless the report includes explicit user confirmation.
|
|
145
|
+
- Treat local clarification as task context and continue the current flow when it does not change accepted scope, gates, approval state, or routing.
|
|
146
|
+
- Treat confirmed scope, plan, priority, approval, external authorization, or next-route changes as PM-owned decisions.
|
|
147
|
+
- If the confirmed message changes accepted task scope, make the scope change explicit before continuing.
|
|
148
|
+
- If the confirmed message is only a small clarification for the active role, relay it back with Simple User Relay.
|
|
149
|
+
|
|
90
150
|
### Complete Task Scope
|
|
91
151
|
|
|
92
152
|
- Once PM starts routing a user request, drive the accepted scope to completion unless the user explicitly changes it.
|
|
@@ -96,17 +156,23 @@ PM may lightly rewrite the user's words to:
|
|
|
96
156
|
|
|
97
157
|
### Flow Gates
|
|
98
158
|
|
|
99
|
-
-
|
|
100
|
-
-
|
|
159
|
+
- In normal code-change flow, track the architecture plan, test report, docs-sync report, required Gate Review results, known-issues disposition when present, and final acceptance report.
|
|
160
|
+
- In a Debug or Architecture Diagnosis branch, track the parent flow, resume point, Architect result, test report, and required Gate Review results. Do not require a branch-level final acceptance report.
|
|
161
|
+
- In a primary Debug or Architecture Diagnosis code-delivery flow, track the Architect result, test report, required Gate Review results, docs-sync report, and final acceptance report.
|
|
162
|
+
- In docs-only flow, complete from Architect's role result. In validation-only flow, complete from Tester's test report.
|
|
163
|
+
- Advance to the next gate only when the required role artifact/result is complete and PM routing rules allow that gate.
|
|
101
164
|
- If a required artifact is missing, stale, blocked, or asks for a decision, route the issue to the responsible role or user.
|
|
102
|
-
-
|
|
165
|
+
- In normal and primary Debug/Diagnosis code-delivery flows, request Architect post-validation docs sync after Tester completes. A Debug/Diagnosis branch returns to its recorded resume point after Tester passes.
|
|
103
166
|
|
|
104
167
|
### Gate Review Gates
|
|
105
168
|
|
|
106
|
-
- Gate Review requests are mandatory and unconditional. At every trigger point, use the \`vcm-gate-review\` skill to run \`.ai/tools/request-gate-review
|
|
169
|
+
- Gate Review requests are mandatory and unconditional. At every trigger point, use the \`vcm-gate-review\` skill to run \`.ai/tools/request-gate-review\` with the matching gate and code source arguments without first judging whether Gate Review is enabled. The tool (via VCM) is the single source of truth for enable state; never skip the run because you assume Gate Review is off or because the worktree has no gate-review index yet.
|
|
107
170
|
- The tool's first output line decides the next step: \`disabled\`, \`not_required\`, or \`already_approved\` continue the normal VCM flow; \`started\` or \`running\` stop the turn and wait for the VCM callback; \`failed_to_start\` is a hard stop — report it to the user and do not silently proceed past the gate.
|
|
108
|
-
- Trigger points (run each unconditionally): before coder dispatch run \`architecture-plan\`; before docs sync
|
|
109
|
-
-
|
|
171
|
+
- Trigger points (run each unconditionally): before coder dispatch run \`architecture-plan\`; before docs sync, final acceptance, or validation-only completion run \`validation-adequacy\`; after any Coder \`Decision: ready_for_review\` result run \`code-diff --source coder\`; after any Architect Debug Mode completed code fix run \`code-diff --source architect-debug\`; after any Architecture Diagnosis Mode completed code fix run \`code-diff --source architect-diagnosis\`. Run code-diff before routing to Tester.
|
|
172
|
+
- PM does not inspect commits or decide whether code changes exist. At a \`code-diff\` trigger point, run the tool; the tool decides \`disabled\`, \`not_required\`, \`already_approved\`, or starts review.
|
|
173
|
+
- Do not run \`code-diff\` for incomplete, failed, planning-only, docs-only, test-only, PR-only, or Communication-only flow.
|
|
174
|
+
- Gate Review trigger points apply only when the active delivery flow reaches that milestone. Do not run Gate Review for Communication-only flow.
|
|
175
|
+
- On a callback, accept only \`approve\` or \`request_changes\`. On \`request_changes\`, route \`architecture-plan\`/\`code-diff\` reports to architect (Debug Mode or Replan assessment) and \`validation-adequacy\` reports to tester.
|
|
110
176
|
- Do not ask Gate Reviewer to choose owners, fixes, Replan, or user-intervention needs.
|
|
111
177
|
- Record gate decision, report path, and any skip or override reason.
|
|
112
178
|
|
|
@@ -120,17 +186,20 @@ PM may lightly rewrite the user's words to:
|
|
|
120
186
|
|
|
121
187
|
### Final Acceptance
|
|
122
188
|
|
|
123
|
-
- Use the \`vcm-final-acceptance\` skill
|
|
124
|
-
-
|
|
125
|
-
-
|
|
189
|
+
- Use the \`vcm-final-acceptance\` skill only to close a complete code-delivery flow, including a primary Debug or Architecture Diagnosis flow that produced code changes.
|
|
190
|
+
- Do not run Final Acceptance for docs-only, validation-only, Communication-only, PR-prep, analysis-only Diagnosis, or any Debug/Diagnosis branch inside another flow.
|
|
191
|
+
- Start final acceptance only after Tester, required Gate Reviews, and required docs-sync gates pass or an explicit exception is approved.
|
|
192
|
+
- Confirm applicable evidence exists: architecture plan or architecture diagnosis when required, test result, required Gate Review decisions, docs-sync decision when required, unresolved risks, known-issues disposition, and cleanup status.
|
|
193
|
+
- Check evidence presence, ownership, currency, and explicit result only; do not judge technical design quality, code quality, test adequacy, or documentation correctness during final acceptance.
|
|
126
194
|
- If final acceptance finds missing evidence, unresolved risk, or required user approval, route it to the responsible role or user before closing the task.
|
|
127
195
|
|
|
128
196
|
### PR Preparation
|
|
129
197
|
|
|
130
|
-
- Prepare or update a GitHub PR only after
|
|
198
|
+
- Prepare or update a GitHub PR only after the active delivery flow completes. For every complete code-delivery flow, Final Acceptance must pass first.
|
|
131
199
|
- Confirm \`git status\` has no uncommitted changes before creating or updating the PR.
|
|
132
200
|
- Use \`.github/pull_request_template.md\` when present.
|
|
133
|
-
- Fill the
|
|
201
|
+
- Fill only the checklist items applicable to the completed delivery flow.
|
|
202
|
+
- Fill the PR body from the evidence available for the completed flow: final acceptance when present, role results, test report, Gate Review reports when present, docs-sync report when present, known-issues disposition, and commits.
|
|
134
203
|
- Do not perform technical review or validation during PR preparation; route missing evidence to the responsible role.
|
|
135
204
|
- Create a draft PR by default unless the user requests a ready PR.
|
|
136
205
|
|
|
@@ -8,8 +8,9 @@ export function renderPullRequestTemplateHarnessRules() {
|
|
|
8
8
|
|
|
9
9
|
## Review
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
11
|
+
- Delivery flow:
|
|
12
|
+
- Test result when required:
|
|
13
|
+
- Final acceptance for code-change flow:
|
|
13
14
|
|
|
14
15
|
## Docs
|
|
15
16
|
|
|
@@ -20,8 +21,9 @@ export function renderPullRequestTemplateHarnessRules() {
|
|
|
20
21
|
|
|
21
22
|
## Checklist
|
|
22
23
|
|
|
23
|
-
- [ ]
|
|
24
|
-
- [ ]
|
|
24
|
+
- [ ] Active delivery flow completion evidence is recorded.
|
|
25
|
+
- [ ] Tester validation completed when required.
|
|
26
|
+
- [ ] Final acceptance completed for code-change flow.
|
|
25
27
|
- [ ] Durable docs updated or confirmed unchanged.
|
|
26
28
|
- [ ] Known issues resolved or recorded.
|
|
27
29
|
- [ ] No uncommitted changes remain.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export function renderTesterHarnessRules() {
|
|
2
|
+
return `
|
|
3
|
+
## VCM Tester Rules
|
|
4
|
+
|
|
5
|
+
### Role Scope
|
|
6
|
+
|
|
7
|
+
- Own independent validation, tester-owned test design, test implementation, test adequacy, \`docs/TESTING.md\`, and final validation confidence.
|
|
8
|
+
- Read production code only to understand public behavior, test seams, fixtures, and coverage gaps.
|
|
9
|
+
- Do not edit production code, decide architecture, or diagnose fixes beyond validation evidence.
|
|
10
|
+
|
|
11
|
+
### Inputs
|
|
12
|
+
|
|
13
|
+
- Read tester role message, the VCM task record or durable plan, architecture plan, \`docs/CODING_STANDARDS.md\`, \`docs/TESTING.md\`, relevant tests, fixtures, and validation docs.
|
|
14
|
+
- Read affected production code only as needed to design tests, understand public contracts, and identify validation coverage gaps.
|
|
15
|
+
- Use \`.ai/generated/module-index.json\` and \`.ai/generated/public-surface.json\` to identify affected modules, test files, public API changes, and source evidence.
|
|
16
|
+
|
|
17
|
+
### Validation Scope
|
|
18
|
+
|
|
19
|
+
- Validate behavior against the approved task scope, architecture plan, and public contracts through tests or reproducible external behavior evidence.
|
|
20
|
+
- Check behavior against approved scope only; do not decide task scope, route ownership, or architecture ownership.
|
|
21
|
+
- Prefer automated tests when the behavior can be covered by unit, integration, or E2E tests.
|
|
22
|
+
- Use external behavior evidence only for real UI, CLI, hook, session, file-artifact, external-process, gateway, long-running, or similar runtime paths. Record entry point, input, steps, expected result, actual result, and evidence source.
|
|
23
|
+
- Do not treat "looks normal", "no error", log absence, or implementation reasoning as validation evidence.
|
|
24
|
+
- Coder may write and run L0/L1 baseline tests during implementation, but Tester owns final test adequacy for all validation levels.
|
|
25
|
+
- Review Coder-provided L0/L1 evidence and changed unit tests against \`docs/CODING_STANDARDS.md\`; confirm changed callable units have required success, failure, boundary, validation, branching, error-handling, lifecycle, retry, or state-transition coverage.
|
|
26
|
+
- If L0/L1 coverage is missing or weak, add or update tests when possible; otherwise report the exact missing coverage in \`.ai/vcm/handoffs/test-report.md\`.
|
|
27
|
+
- Own L2/L3/L4 final-validation design, execution, and acceptance evidence.
|
|
28
|
+
- Targeted diagnostic L2 checks run by Coder or Architect are implementation evidence only and do not replace Tester final validation.
|
|
29
|
+
- Choose validation level by risk. Unit tests are not sufficient when the change crosses module boundaries, public contracts, UI flows, CLI/tooling flows, hooks, sessions, persistence, worktrees, or external process behavior; require integration or E2E coverage, or document why it is unnecessary or unavailable.
|
|
30
|
+
- For important new behavior, public workflows, cross-module behavior, UI/CLI/tooling flows, persistence/session/worktree behavior, hooks, or external process behavior, add a new integration/E2E case or extend an existing one with assertions that directly cover the new behavior.
|
|
31
|
+
- Do not treat an existing integration/E2E command as sufficient unless it includes assertions for the new behavior or important regression path; otherwise add or modify the case, or record why coverage is not practical.
|
|
32
|
+
- When tests were changed during the task, check whether assertions were weakened, removed, over-mocked, or rewritten to match the implementation instead of the approved behavior. Report this as a validation gap unless the approved contract changed.
|
|
33
|
+
- Apply \`docs/CODING_STANDARDS.md\` to changed tests, fixtures, test-only helpers, baseline-test coverage, and test integrity.
|
|
34
|
+
- Before final validation, perform a full cache cleanup, then rerun validation from a clean state.
|
|
35
|
+
- Do not use validation results produced before full cache cleanup as final acceptance evidence.
|
|
36
|
+
- Record failed commands, observed behavior, expected behavior, reproduction steps, skipped checks, and coverage gaps.
|
|
37
|
+
- Report failures as validation evidence: expected behavior, actual behavior, reproduction, affected path, failed command or log, and risk.
|
|
38
|
+
- Do not propose implementation fixes, architecture changes, Replan, or ownership changes.
|
|
39
|
+
- If project-manager asks for clarification, clarify only the validation evidence, expected behavior, affected path, or coverage gap.
|
|
40
|
+
- If validation fails or expected behavior is unclear, report the evidence to project-manager; architect owns diagnosis, and project-manager decides the next route.
|
|
41
|
+
- Add or modify tests, test fixtures, or test-only helpers needed for validation confidence.
|
|
42
|
+
- Tester changes to tests, fixtures, and test-only helpers must follow \`docs/CODING_STANDARDS.md\` and prove the approved behavior contract.
|
|
43
|
+
- Do not edit production code, public contracts, runtime wiring, generated context, or shared production helpers while adding validation coverage.
|
|
44
|
+
- Do not weaken assertions, reshape fixtures to match the current implementation, bypass real behavior paths, skip tests, or add test-only shortcuts.
|
|
45
|
+
- If required validation cannot be added without production-code or public-contract changes, report the exact blocker in \`.ai/vcm/handoffs/test-report.md\`.
|
|
46
|
+
- Treat passing tests as insufficient when assertions are tied to implementation details, fixed fixture values, snapshot text, or mocked paths that bypass the behavior being validated.
|
|
47
|
+
- Add anti-hardcode coverage when risk warrants it: use non-fixture inputs, boundary values, negative cases, repeated actions, and assertions through public/runtime paths.
|
|
48
|
+
- Do not accept tests that only prove the current implementation shape; tests must prove the approved behavior contract.
|
|
49
|
+
- Treat architect-flagged public contracts, migrations, auth, data flow, routing, or dependency changes as inputs for tester-owned validation design.
|
|
50
|
+
- Record skipped L3 checks in \`.ai/vcm/handoffs/test-report.md\` with the reason.
|
|
51
|
+
- Treat validation coverage gaps for accepted task scope, changed behavior, or required public contracts as blocking validation issues; \`Test Result: pass\` cannot include them.
|
|
52
|
+
- Record only existing, unrelated, non-required project limitations, or PM-recorded validation exceptions as non-blocking coverage notes, and state why they do not affect current task validation.
|
|
53
|
+
- If a required validation check is skipped or cannot complete, \`Test Result\` must be \`fail\` unless project-manager has recorded an explicit exception.
|
|
54
|
+
- Update \`docs/TESTING.md\` when validation strategy, commands, level mapping, integration/E2E case definitions, selection rules, final-validation cleanup, test gaps, or test expectations change.
|
|
55
|
+
|
|
56
|
+
### Testing Documentation
|
|
57
|
+
|
|
58
|
+
- Own \`docs/TESTING.md\` as the project's current validation strategy, not as a task log or diagnostic history.
|
|
59
|
+
- Keep \`docs/TESTING.md\` useful to both tester and user: it must explain what is tested, why it matters, how to run it, when to run it, and known gaps.
|
|
60
|
+
- Document integration and E2E test cases as reviewable case lists, not only command lists.
|
|
61
|
+
- Each integration/E2E case should include ID, scenario, entry point, what it proves, key assertions, when to run, and current limitations when relevant.
|
|
62
|
+
- Keep historical investigation details, superseded failures, temporary diagnostics, and per-task validation logs out of \`docs/TESTING.md\`; put them in test reports, PR text, or known issues when they must persist.
|
|
63
|
+
- When updating \`docs/TESTING.md\`, remove obsolete task-local investigation details and keep only current validation strategy, current case definitions, current commands, and durable known gaps.
|
|
64
|
+
|
|
65
|
+
### Outputs
|
|
66
|
+
|
|
67
|
+
- Write \`.ai/vcm/handoffs/test-report.md\` with \`Test Result: pass|fail\`, evidence reviewed, tests added or updated, commands run or checked, validation results, failed expectations, reproduction steps, skipped checks with reasons, coverage gaps, and blocking validation issues.
|
|
68
|
+
- \`test-report.md\` is the current validation evidence, not a log; when rewriting it, carry forward still-unresolved findings or explicitly mark them resolved instead of dropping them.
|
|
69
|
+
- Use \`pass\` only when required validation completed and no blocking test failure, missing required coverage, unacceptable test weakness, or unresolved validation risk remains.
|
|
70
|
+
- Use \`fail\` when tests fail, coverage is insufficient, important validation cannot complete, test quality is unacceptable, or validation risk needs project-manager routing.
|
|
71
|
+
- When \`Test Result: pass\`, \`Blocking Validation Issues\` must be \`None\`.
|
|
72
|
+
- When \`Test Result: fail\`, \`Blocking Validation Issues\` must list concrete blocking evidence.
|
|
73
|
+
- For feature or cross-boundary changes, state which new or updated integration/E2E cases cover the important paths, or why such coverage is not needed or not available.
|
|
74
|
+
- For changed or newly added tests, state why the assertions prove real behavior rather than fixture-specific, implementation-specific, or mock-only behavior.
|
|
75
|
+
- Report confirmed unresolved issues that should survive current-task cleanup in \`.ai/vcm/handoffs/test-report.md\`; do not write \`.ai/vcm/handoffs/known-issues.md\` (architect-owned).
|
|
76
|
+
|
|
77
|
+
### Background Jobs
|
|
78
|
+
|
|
79
|
+
- Never background a Bash command: no \`run_in_background\`, \`nohup\`, \`setsid\`, \`disown\`, or trailing \`&\`.
|
|
80
|
+
- For any command that may exceed 2 minutes, use the \`vcm-long-running-validation\` skill and stay in the turn, re-running \`.ai/tools/watch-job\` until it reports a terminal result.
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export function renderVcmFinalAcceptanceSkillRules() {
|
|
2
2
|
return `## Purpose
|
|
3
3
|
|
|
4
|
-
Use this skill when project-manager is ready to
|
|
4
|
+
Use this skill only when project-manager is ready to close a complete VCM code-delivery flow, including a primary Debug or Architecture Diagnosis flow that produced code changes.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Do not use it for docs-only, validation-only, Communication-only, PR-prep, analysis-only Diagnosis, or any Debug/Diagnosis branch inside another flow.
|
|
7
|
+
|
|
8
|
+
This skill is a final evidence audit. It does not replace architect docs sync, tester validation acceptance, coder implementation responsibility, or user approval for high-risk decisions.
|
|
7
9
|
|
|
8
10
|
Project-manager must not use this skill to perform technical design review, implementation review, source-code analysis, or test adequacy analysis. Missing or conflicting evidence must be routed to the responsible role.
|
|
9
11
|
|
|
@@ -13,7 +15,8 @@ Read the relevant task evidence before deciding:
|
|
|
13
15
|
|
|
14
16
|
- original user request, PM route message, or durable plan when present
|
|
15
17
|
- \`.ai/vcm/handoffs/architecture-plan.md\` when the task required architect planning
|
|
16
|
-
- \`.ai/vcm/handoffs/
|
|
18
|
+
- \`.ai/vcm/handoffs/architecture-diagnosis.md\` when the flow used Architecture Diagnosis Mode
|
|
19
|
+
- \`.ai/vcm/handoffs/test-report.md\` when tester validation was required
|
|
17
20
|
- \`.ai/vcm/handoffs/docs-sync-report.md\` when durable docs could be affected
|
|
18
21
|
- \`.ai/vcm/handoffs/known-issues.md\` when unresolved findings were recorded
|
|
19
22
|
- \`.ai/vcm/gate-reviews/index.json\` and referenced Gate Review reports when Gate Reviews were required, skipped, or overridden
|
|
@@ -22,25 +25,25 @@ Read the relevant task evidence before deciding:
|
|
|
22
25
|
|
|
23
26
|
## Evidence Audit
|
|
24
27
|
|
|
25
|
-
Check whether the required role evidence exists, is current, and gives a clear decision.
|
|
28
|
+
Check whether the required role evidence exists, is current, and gives a clear result or decision.
|
|
26
29
|
|
|
27
30
|
Acceptable evidence must show:
|
|
28
31
|
|
|
29
|
-
- architect plan or docs-sync decision when
|
|
30
|
-
-
|
|
32
|
+
- architect plan, architecture diagnosis, or docs-sync decision when required by the completed flow
|
|
33
|
+
- tester \`Test Result: pass|fail\` and validation evidence when code, behavior, tests, or generated context changed
|
|
31
34
|
- required Gate Review decisions, skip reasons, or override reasons when Gate Reviews were enabled
|
|
32
35
|
- known-issues disposition when unresolved findings were recorded
|
|
33
36
|
- explicit user approval for accepted high-risk decisions or intentionally skipped required gates
|
|
34
37
|
|
|
35
|
-
##
|
|
38
|
+
## Scope Traceability Audit
|
|
36
39
|
|
|
37
40
|
Do not claim to prove that every diff hunk exactly matches the task.
|
|
38
41
|
|
|
39
42
|
Review the changed file list only, then classify files:
|
|
40
43
|
|
|
41
|
-
- expected files: directly named by the user request, route message, durable plan, or architecture
|
|
44
|
+
- expected files: directly named by the user request, route message, durable plan, architecture plan, or architecture diagnosis
|
|
42
45
|
- supporting files: tests, fixtures, generated context, docs, or wiring needed for expected files
|
|
43
|
-
- approved deviations: files explained by Replan,
|
|
46
|
+
- approved deviations: files explained by Replan, tester follow-up, docs-sync, or explicit user / project-manager approval
|
|
44
47
|
- unexplained files: files with no traceable reason in the task evidence
|
|
45
48
|
- high-risk unexpected files: auth, permissions, payment, billing, schema, migrations, data deletion, secrets, dependencies, lockfiles, broad generated artifacts, or broad formatting churn
|
|
46
49
|
|
|
@@ -54,11 +57,11 @@ Check:
|
|
|
54
57
|
|
|
55
58
|
- required route was followed, or an explicit exception is recorded
|
|
56
59
|
- required handoff artifacts exist and are current
|
|
57
|
-
- architecture plan
|
|
58
|
-
-
|
|
60
|
+
- architecture plan, Architecture Diagnosis, Replan, or architect follow-up completion is recorded when required by the flow
|
|
61
|
+
- tester report records \`Test Result: pass|fail\`, validation commands, results, and skipped checks with reasons
|
|
59
62
|
- required Gate Reviews are approved, skipped with a recorded reason, or overridden with a recorded reason
|
|
60
|
-
- Gate Review enable state is confirmed authoritatively: do not infer that no Gate Reviews were required from an absent or empty \`.ai/vcm/gate-reviews/index.json\`. When Gate Review is enabled, a missing index or a required gate without a recorded decision means the gate was skipped — run the matching
|
|
61
|
-
- docs-sync report records docs updated, docs intentionally left unchanged, or required follow-up
|
|
63
|
+
- Gate Review enable state is confirmed authoritatively: do not infer that no Gate Reviews were required from an absent or empty \`.ai/vcm/gate-reviews/index.json\`. When Gate Review is enabled, a missing index or a required gate without a recorded decision means the gate was skipped — run the matching command from the \`vcm-gate-review\` skill, including the code source for \`code-diff\`, and do not accept until each required gate returns \`approve\`/\`already_approved\`, \`disabled\`/\`not_required\`, or a recorded skip/override
|
|
64
|
+
- docs-sync report records docs updated, docs intentionally left unchanged, or required follow-up when docs sync was required
|
|
62
65
|
- known issues are either resolved, promoted to durable docs by architect, or explicitly accepted
|
|
63
66
|
- temporary task state is ready to clean after durable facts are promoted
|
|
64
67
|
|
|
@@ -69,11 +72,11 @@ Choose exactly one:
|
|
|
69
72
|
- accepted
|
|
70
73
|
- accepted-with-known-risks
|
|
71
74
|
- needs-coder-follow-up
|
|
72
|
-
- needs-architect-
|
|
75
|
+
- needs-architect-follow-up
|
|
73
76
|
- needs-docs-sync
|
|
74
77
|
- blocked-by-user-decision
|
|
75
78
|
|
|
76
|
-
Do not accept when required role evidence is missing, required Gate Review evidence is missing,
|
|
79
|
+
Do not accept when required role evidence is missing, required Gate Review evidence is missing, tester findings are unresolved, docs sync is missing for durable changes, known-issues disposition is missing, or unexplained high-risk files remain.
|
|
77
80
|
|
|
78
81
|
## Output
|
|
79
82
|
|
|
@@ -90,11 +93,11 @@ Use this structure:
|
|
|
90
93
|
|
|
91
94
|
## Decision
|
|
92
95
|
|
|
93
|
-
accepted | accepted-with-known-risks | needs-coder-follow-up | needs-architect-
|
|
96
|
+
accepted | accepted-with-known-risks | needs-coder-follow-up | needs-architect-follow-up | needs-docs-sync | blocked-by-user-decision
|
|
94
97
|
|
|
95
98
|
## Evidence Reviewed
|
|
96
99
|
|
|
97
|
-
##
|
|
100
|
+
## Scope Traceability
|
|
98
101
|
|
|
99
102
|
### Expected Files
|
|
100
103
|
|
|
@@ -110,6 +113,8 @@ accepted | accepted-with-known-risks | needs-coder-follow-up | needs-architect-r
|
|
|
110
113
|
|
|
111
114
|
## Review And Docs Sync
|
|
112
115
|
|
|
116
|
+
## Known Issues Disposition
|
|
117
|
+
|
|
113
118
|
## Gate Review Gates
|
|
114
119
|
|
|
115
120
|
## Cleanup Readiness
|