vibe-coding-master 0.3.32 → 0.4.1

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.
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>VibeCodingMaster</title>
7
- <script type="module" crossorigin src="/assets/index-BaIbh99h.js"></script>
8
- <link rel="stylesheet" crossorigin href="/assets/index-BvUHLq4X.css">
7
+ <script type="module" crossorigin src="/assets/index-uYhgIwNK.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-kJDZAzjD.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
@@ -130,9 +130,9 @@ Project-scoped runtime state lives in the base repository:
130
130
 
131
131
  ```text
132
132
  <baseRepoRoot>/.ai/vcm/gate-reviewer/session.json
133
+ <baseRepoRoot>/.ai/vcm/harness-engineer/session.json
133
134
  <baseRepoRoot>/.ai/vcm/translations/
134
135
  <baseRepoRoot>/.ai/vcm/bootstrap/session.json
135
- <baseRepoRoot>/.ai/vcm/bootstrap/bootstrap.log
136
136
  ```
137
137
 
138
138
  App-local state lives under `vcmDataDir`:
@@ -825,9 +825,9 @@ Project-scoped local files:
825
825
 
826
826
  ```text
827
827
  .ai/vcm/gate-reviewer/session.json
828
+ .ai/vcm/harness-engineer/session.json
828
829
  .ai/vcm/translations/
829
830
  .ai/vcm/bootstrap/session.json
830
- .ai/vcm/bootstrap/bootstrap.log
831
831
  ```
832
832
 
833
833
  External Claude transcripts:
@@ -0,0 +1,662 @@
1
+ # VCM 0.4 Harness Optimization Plan
2
+
3
+ Last updated: 2026-06-22
4
+
5
+ This document defines the VCM 0.4 product plan.
6
+
7
+ The original VCM 0.4 custom workflow engine plan has moved to
8
+ `docs/v0.5-custom-workflow-plan.md`. VCM 0.4 will focus on the current fixed
9
+ workflow, project harness quality, and visual harness configuration.
10
+
11
+ ## 1. Product Goal
12
+
13
+ VCM 0.4 should make the existing VCM workflow easier to understand, tune, and
14
+ improve without requiring a fully free custom workflow engine.
15
+
16
+ The current workflow remains the default product shape:
17
+
18
+ ```text
19
+ project-manager
20
+ -> architect
21
+ -> coder
22
+ -> reviewer
23
+ -> architect
24
+ -> project-manager
25
+ ```
26
+
27
+ Optional project-level tool roles, such as Gate Reviewer and Translator, stay
28
+ outside the core chain unless VCM explicitly routes work to them.
29
+
30
+ The target outcome:
31
+
32
+ - users can inspect all VCM harness content from the UI
33
+ - users can adjust role definitions, skills, and project harness settings safely
34
+ - users can ask a dedicated Harness Engineer to improve project harness quality
35
+ - every proposed harness change is shown as a diff before it is applied
36
+ - VCM fixed managed blocks remain protected
37
+ - VCM product or template problems can be reported upstream as GitHub issues
38
+ - the current workflow becomes more reliable without adding arbitrary workflow
39
+ graph editing in 0.4
40
+
41
+ ## 2. Scope Decision
42
+
43
+ VCM 0.4 is not the free custom workflow release.
44
+
45
+ The previous custom workflow plan is still valuable, but it is too large for the
46
+ next release because it requires a workflow engine, node model, branch
47
+ conditions, artifact contracts, graph editing, workflow run state, and migration
48
+ rules.
49
+
50
+ VCM 0.4 should instead be:
51
+
52
+ ```text
53
+ Harness Engineer + Harness Studio
54
+ ```
55
+
56
+ This gives users direct control over the system they already use every day:
57
+ roles, skills, managed blocks, project instructions, session defaults, and
58
+ harness update flow.
59
+
60
+ ## 3. Non-Goals
61
+
62
+ VCM 0.4 should not:
63
+
64
+ - build a general workflow graph editor
65
+ - replace the current fixed VCM role chain
66
+ - allow arbitrary user-defined workflow nodes
67
+ - allow AI to silently edit harness files
68
+ - let any role overwrite VCM fixed managed blocks
69
+ - make auxiliary roles part of the main task flow by default
70
+ - submit external GitHub issues without explicit user confirmation
71
+ - require users to understand Claude Code hook internals
72
+
73
+ ## 4. Core Concepts
74
+
75
+ ### 4.1 Fixed Harness
76
+
77
+ Fixed harness content is VCM-owned template content installed into a project.
78
+ It includes managed blocks in files such as:
79
+
80
+ - `CLAUDE.md`
81
+ - `.claude/agents/project-manager.md`
82
+ - `.claude/agents/architect.md`
83
+ - `.claude/agents/coder.md`
84
+ - `.claude/agents/reviewer.md`
85
+ - `.claude/agents/gate-reviewer.md`
86
+ - `.claude/agents/translator.md`
87
+ - `.claude/skills/*/SKILL.md`
88
+ - `.ai/tools/*`
89
+ - `.ai/vcm-harness-manifest.json`
90
+
91
+ VCM fixed content is updated by VCM releases and the harness installer. It must
92
+ remain deterministic and recoverable.
93
+
94
+ ### 4.2 Project Harness Customization
95
+
96
+ Project harness customization is repository-specific guidance layered around
97
+ VCM fixed content.
98
+
99
+ Examples:
100
+
101
+ - project coding rules
102
+ - domain terminology
103
+ - repository-specific testing commands
104
+ - module boundaries
105
+ - review preferences
106
+ - role behavior tweaks
107
+ - scaffold conventions
108
+ - project-specific validation expectations
109
+
110
+ Project harness customization is the primary editable surface for VCM 0.4.
111
+
112
+ ### 4.3 Harness Engineer
113
+
114
+ `harness-engineer` is a project-scoped Claude Code tool role.
115
+
116
+ It understands:
117
+
118
+ - VCM fixed harness rules
119
+ - project-specific harness content
120
+ - role definitions
121
+ - skills
122
+ - project docs
123
+ - harness manifest state
124
+ - the boundary between VCM product defects and project harness defects
125
+
126
+ It helps users improve the harness, but it is not part of the task workflow
127
+ round state.
128
+
129
+ ## 5. Harness Engineer Role
130
+
131
+ ### 5.1 Role Identity
132
+
133
+ Recommended role id:
134
+
135
+ ```text
136
+ harness-engineer
137
+ ```
138
+
139
+ Recommended display name:
140
+
141
+ ```text
142
+ Harness Engineer
143
+ ```
144
+
145
+ The role should be project-scoped, not task-scoped.
146
+
147
+ Session behavior:
148
+
149
+ - one long-lived session per project
150
+ - default action is resume existing session
151
+ - restart is available from the Harness Engineer session panel
152
+ - closing a task does not stop this role
153
+ - this role does not keep a VCM task round running
154
+ - this role can be opened from Harness Studio
155
+
156
+ ### 5.2 Responsibilities
157
+
158
+ Harness Engineer is responsible for:
159
+
160
+ - reading current project harness files
161
+ - understanding VCM fixed harness constraints
162
+ - accepting user feedback about role behavior or harness quality
163
+ - diagnosing whether a problem is project-specific or VCM-level
164
+ - proposing harness changes as reviewable diffs
165
+ - explaining the impact of proposed changes
166
+ - identifying which active sessions may need restart or a reminder
167
+ - helping the user keep harness content concise and consistent
168
+ - drafting VCM GitHub issues for product or template problems
169
+
170
+ ### 5.3 Boundaries
171
+
172
+ Harness Engineer must not:
173
+
174
+ - silently apply changes
175
+ - edit business source code as part of harness maintenance
176
+ - overwrite VCM fixed managed blocks
177
+ - submit GitHub issues without user confirmation
178
+ - include private project code, logs, or secrets in an upstream issue
179
+ - modify task workflow state
180
+ - act as PM, Architect, Coder, Reviewer, Gate Reviewer, or Translator
181
+
182
+ ### 5.4 Allowed Files
183
+
184
+ Harness Engineer may inspect:
185
+
186
+ - `CLAUDE.md`
187
+ - `.claude/agents/**`
188
+ - `.claude/skills/**`
189
+ - `.ai/tools/**`
190
+ - `.ai/vcm-harness-manifest.json`
191
+ - `.ai/generated/**`
192
+ - project docs such as `docs/ARCHITECTURE.md` and `docs/TESTING.md`
193
+ - VCM state relevant to harness status
194
+
195
+ Harness Engineer may propose edits to:
196
+
197
+ - project-editable harness sections
198
+ - role files outside protected fixed managed blocks
199
+ - project docs used by harness
200
+ - project-specific skill guidance when allowed
201
+
202
+ Harness Engineer may not directly edit VCM fixed managed blocks. If it finds a
203
+ fixed block problem, it should create a VCM issue draft instead.
204
+
205
+ ## 6. Harness Studio UI
206
+
207
+ VCM 0.4 should add a Harness Studio UI for inspecting and configuring harness
208
+ content.
209
+
210
+ ### 6.1 Entry Point
211
+
212
+ The existing VCM Harness sidebar group can become the entry point.
213
+
214
+ Recommended actions:
215
+
216
+ - Open Harness Studio
217
+ - Refresh harness status
218
+ - Apply fixed harness update
219
+ - Run bootstrap
220
+ - Commit & rebase task
221
+ - Open Harness Engineer session
222
+
223
+ ### 6.2 Main Views
224
+
225
+ Harness Studio should include:
226
+
227
+ - Overview
228
+ - Agents
229
+ - Skills
230
+ - Root Context
231
+ - Project Docs
232
+ - Tools
233
+ - Harness Status
234
+ - Proposed Changes
235
+ - VCM Feedback
236
+
237
+ ### 6.3 Overview
238
+
239
+ Overview should show:
240
+
241
+ - fixed harness status
242
+ - bootstrap status
243
+ - modified harness files
244
+ - outdated managed blocks
245
+ - missing expected files
246
+ - active task worktree sync status
247
+ - Harness Engineer session status
248
+ - recent harness actions
249
+
250
+ ### 6.4 Agents
251
+
252
+ Agents view should show:
253
+
254
+ - Project Manager
255
+ - Architect
256
+ - Coder
257
+ - Reviewer
258
+ - Gate Reviewer
259
+ - Translator
260
+ - Harness Engineer
261
+
262
+ For each agent:
263
+
264
+ - file path
265
+ - role type: core, optional flow role, or tool role
266
+ - session scope: task or project
267
+ - managed block status
268
+ - editable project section
269
+ - default model
270
+ - default effort
271
+ - permission mode
272
+ - restart requirement after changes
273
+
274
+ The UI should make role type visible:
275
+
276
+ - core workflow role: participates in task flow
277
+ - optional flow role: participates only when enabled
278
+ - tool role: project utility, not part of task flow
279
+
280
+ ### 6.5 Skills
281
+
282
+ Skills view should show installed VCM skills:
283
+
284
+ - `vcm-route-message`
285
+ - `vcm-final-acceptance`
286
+ - `vcm-harness-bootstrap`
287
+ - `vcm-long-running-validation`
288
+ - `vcm-gate-review`
289
+
290
+ For each skill:
291
+
292
+ - file path
293
+ - description
294
+ - managed block status
295
+ - whether it is current
296
+ - related roles
297
+ - editable project notes when supported
298
+
299
+ ### 6.6 Root Context
300
+
301
+ Root Context view should show:
302
+
303
+ - `CLAUDE.md`
304
+ - VCM fixed managed block status
305
+ - project-specific sections
306
+ - warnings for duplicated or conflicting rules
307
+ - active session refresh guidance
308
+
309
+ ### 6.7 Project Docs
310
+
311
+ Project Docs view should show durable harness-relevant docs:
312
+
313
+ - architecture docs
314
+ - module docs
315
+ - testing docs
316
+ - public surface docs
317
+ - module index
318
+ - generated docs
319
+
320
+ It should show whether docs are missing, stale, or incomplete.
321
+
322
+ ### 6.8 Tools
323
+
324
+ Tools view should show:
325
+
326
+ - `.ai/tools/run-long-check`
327
+ - `.ai/tools/watch-job`
328
+ - `.ai/tools/vcm-bash-guard`
329
+ - `.ai/tools/request-gate-review`
330
+ - generated doc tools
331
+
332
+ For each tool:
333
+
334
+ - path
335
+ - executable status
336
+ - managed status
337
+ - purpose
338
+ - related skill
339
+
340
+ ### 6.9 Proposed Changes
341
+
342
+ All Harness Engineer changes must flow through Proposed Changes.
343
+
344
+ The UI should show:
345
+
346
+ - changed files
347
+ - unified diff
348
+ - generated summary
349
+ - risk notes
350
+ - affected roles
351
+ - whether active sessions need restart or reminder
352
+ - apply, discard, or revise actions
353
+
354
+ No harness edit should be applied without user confirmation.
355
+
356
+ ### 6.10 VCM Feedback
357
+
358
+ VCM Feedback view handles upstream VCM issues.
359
+
360
+ When Harness Engineer finds a VCM-level product or fixed template issue, it
361
+ should create an issue draft for:
362
+
363
+ ```text
364
+ https://github.com/CodingForMoney/VibeCodingMaster
365
+ ```
366
+
367
+ The user must review and confirm before VCM submits the issue.
368
+
369
+ ## 7. Change Review Model
370
+
371
+ All modifications require reviewable diffs.
372
+
373
+ Required flow:
374
+
375
+ ```text
376
+ User feedback or harness diagnosis
377
+ -> Harness Engineer proposes changes
378
+ -> VCM stores a pending change set
379
+ -> UI shows diff and impact
380
+ -> User confirms
381
+ -> VCM applies the changes
382
+ -> VCM refreshes harness status
383
+ -> User may commit and rebase active task worktrees
384
+ ```
385
+
386
+ Harness Engineer can explain, revise, or discard pending changes, but it cannot
387
+ skip the review step.
388
+
389
+ ## 8. VCM Issue Feedback Flow
390
+
391
+ Harness Engineer must classify issues before acting:
392
+
393
+ ```text
394
+ Project harness issue
395
+ -> propose project harness diff
396
+
397
+ VCM product or fixed template issue
398
+ -> draft GitHub issue for CodingForMoney/VibeCodingMaster
399
+ ```
400
+
401
+ ### 8.1 Issue Draft Requirements
402
+
403
+ A VCM issue draft should include:
404
+
405
+ - title
406
+ - problem description
407
+ - reproduction steps
408
+ - expected behavior
409
+ - actual behavior
410
+ - VCM version
411
+ - affected harness files or UI areas
412
+ - impact
413
+ - suggested fix if known
414
+ - sanitized context only
415
+
416
+ ### 8.2 Privacy Rules
417
+
418
+ Issue drafts must not include:
419
+
420
+ - private source code
421
+ - secrets
422
+ - private file contents
423
+ - full terminal logs
424
+ - private repository names unless user confirms
425
+ - user identity or environment details unless necessary
426
+
427
+ Harness Engineer should summarize private context instead of copying it.
428
+
429
+ ### 8.3 Submission Rule
430
+
431
+ VCM may submit the issue only after explicit user confirmation.
432
+
433
+ Before submission, UI should show:
434
+
435
+ - target repository
436
+ - final issue title
437
+ - final issue body
438
+ - privacy warning
439
+ - submit or cancel action
440
+
441
+ ## 9. Managed Block Policy
442
+
443
+ VCM managed blocks remain protected.
444
+
445
+ Managed blocks use markers such as:
446
+
447
+ ```text
448
+ <!-- VCM:BEGIN version=1 -->
449
+ ...
450
+ <!-- VCM:END -->
451
+ ```
452
+
453
+ or:
454
+
455
+ ```text
456
+ # VCM:BEGIN version=1
457
+ ...
458
+ # VCM:END
459
+ ```
460
+
461
+ Rules:
462
+
463
+ - VCM installer owns fixed managed block content.
464
+ - Harness Engineer must not directly rewrite fixed managed block content.
465
+ - Project-specific customization should live outside fixed managed blocks.
466
+ - If a fixed managed block is wrong, create a VCM issue draft.
467
+ - If a managed block is stale, users should run fixed harness update.
468
+ - If a managed block is user-modified, VCM should warn before replacing it.
469
+
470
+ ## 10. Session Refresh Policy
471
+
472
+ Claude Code sessions do not automatically re-read every changed instruction file
473
+ in a reliable, user-visible way.
474
+
475
+ VCM tracks a project-level `harnessRevision`.
476
+
477
+ Revision behavior:
478
+
479
+ - fixed harness update increments the revision when it changes files
480
+ - Harness Studio file saves increment the revision when content changes
481
+ - each Claude Code role session records the revision it started or resumed with
482
+ - session views compare the recorded revision with the current project revision
483
+ - stale sessions are shown as `outdated`
484
+
485
+ VCM offers:
486
+
487
+ - `Notify role`: send a compact update message into the running session, asking
488
+ the role to re-read `CLAUDE.md`, its agent definition, and relevant skills
489
+ - `Restart`: start a fresh Claude Code process when role definition, hook, or
490
+ core harness changes are significant
491
+ - `Resume`: for stopped sessions, reload through the normal Claude Code startup
492
+ path
493
+
494
+ Harness Engineer should include session impact in every proposed change.
495
+
496
+ ## 11. Storage
497
+
498
+ Recommended storage:
499
+
500
+ ```text
501
+ <baseRepoRoot>/.ai/vcm/harness/
502
+ pending-changes/
503
+ applied-changes/
504
+ issue-drafts/
505
+ diagnostics/
506
+
507
+ <baseRepoRoot>/.ai/vcm/harness-engineer/
508
+ session.json
509
+ ```
510
+
511
+ Guidelines:
512
+
513
+ - pending changes are review artifacts
514
+ - applied change records are lightweight audit metadata
515
+ - issue drafts are user-reviewable
516
+ - no unnecessary terminal logs
517
+ - no hidden external submissions
518
+
519
+ ## 12. Backend Capabilities
520
+
521
+ VCM backend should provide APIs for:
522
+
523
+ - listing harness files
524
+ - reading harness file content
525
+ - validating managed blocks
526
+ - computing diffs
527
+ - storing pending change sets
528
+ - applying confirmed changes
529
+ - discarding pending changes
530
+ - refreshing harness status
531
+ - starting, resuming, restarting, and stopping Harness Engineer
532
+ - creating VCM issue drafts
533
+ - submitting confirmed GitHub issues
534
+
535
+ GitHub issue creation should be optional and graceful:
536
+
537
+ - if GitHub auth is unavailable, keep the issue draft and show manual copy
538
+ - if network fails, preserve the draft and allow retry
539
+
540
+ ## 13. Safety and Permissions
541
+
542
+ Default safety rules:
543
+
544
+ - Harness Engineer can read project harness files.
545
+ - Harness Engineer can write only through VCM pending change sets by default.
546
+ - Direct file writes should be reserved for confirmed apply operations.
547
+ - VCM should validate paths before applying changes.
548
+ - External issue submission always requires user confirmation.
549
+ - Fixed managed block edits are blocked unless performed by the VCM installer.
550
+
551
+ The safest default is:
552
+
553
+ ```text
554
+ AI proposes.
555
+ VCM diffs.
556
+ User approves.
557
+ VCM applies.
558
+ ```
559
+
560
+ ## 14. Relation to Current Workflow
561
+
562
+ VCM 0.4 should not change the task execution model by default.
563
+
564
+ Current behavior remains:
565
+
566
+ - PM coordinates the task.
567
+ - Architect plans and evaluates complex fixes.
568
+ - Coder implements.
569
+ - Reviewer validates.
570
+ - Gate Reviewer optionally performs gate reviews.
571
+ - Translator remains a project translation tool role.
572
+ - Harness Engineer maintains harness quality.
573
+
574
+ Harness Engineer is not included in:
575
+
576
+ - role tab bar for a task
577
+ - VCM round completion detection
578
+ - task close cleanup
579
+ - PM dispatch flow
580
+
581
+ It is opened from Harness Studio as a project tool session.
582
+
583
+ ## 15. Implementation Phases
584
+
585
+ ### Phase 1: Harness Engineer Role
586
+
587
+ - Add `harness-engineer` role definition.
588
+ - Install `.claude/agents/harness-engineer.md`.
589
+ - Add project-scoped session persistence.
590
+ - Add UI entry to open Harness Engineer session.
591
+ - Ensure it is not part of task round state.
592
+
593
+ Success condition: users can start or resume Harness Engineer for a project
594
+ without affecting active tasks.
595
+
596
+ ### Phase 2: Harness Inventory and Status UI
597
+
598
+ - Add Harness Studio shell.
599
+ - List agents, skills, root context, tools, and project docs.
600
+ - Show managed block status.
601
+ - Show stale, missing, and modified harness files.
602
+
603
+ Success condition: users can understand current harness state without opening
604
+ files manually.
605
+
606
+ ### Phase 3: Diff-Based Harness Changes
607
+
608
+ - Add pending change set model.
609
+ - Let Harness Engineer propose changes.
610
+ - Show diffs in UI.
611
+ - Require user confirmation before apply.
612
+ - Refresh harness status after apply.
613
+
614
+ Success condition: no harness change is applied invisibly.
615
+
616
+ ### Phase 4: Session Impact and Worktree Sync
617
+
618
+ - Track `harnessRevision` for project harness changes.
619
+ - Mark sessions with older revisions as `outdated`.
620
+ - Offer `Notify role` for running stale sessions.
621
+ - Keep restart available for stronger reload needs.
622
+ - Integrate with existing Commit & rebase task flow.
623
+
624
+ Success condition: harness updates do not leave active task worktrees or active
625
+ role sessions silently stale.
626
+
627
+ ### Phase 5: VCM Issue Feedback
628
+
629
+ - Add VCM issue draft model.
630
+ - Add issue draft UI.
631
+ - Add optional GitHub issue submission after confirmation.
632
+ - Add privacy checks and manual copy fallback.
633
+
634
+ Success condition: Harness Engineer can help users report VCM product or fixed
635
+ template problems upstream safely.
636
+
637
+ ## 16. Open Decisions
638
+
639
+ Before implementation, decide:
640
+
641
+ - final role name: `harness-engineer` or `harness-maintainer`
642
+ - exact editable sections in each harness file
643
+ - whether pending change sets store full file snapshots or patches
644
+ - GitHub integration method for issue submission
645
+ - whether Harness Engineer can run validation commands directly
646
+ - how to show session restart impact in the UI
647
+ - whether applied change audit records should be committed or ignored
648
+
649
+ ## 17. Design Summary
650
+
651
+ VCM 0.4 should optimize the workflow VCM already has.
652
+
653
+ The important product move is not free-form workflow editing. The important
654
+ move is making harness configuration visible, reviewable, and improvable.
655
+
656
+ Harness Engineer gives users an AI collaborator that understands both VCM's
657
+ fixed harness and the project's local harness. Harness Studio gives users a
658
+ safe place to inspect and apply changes. The GitHub issue feedback flow closes
659
+ the loop when a project-level harness problem is actually a VCM product or
660
+ template problem.
661
+
662
+ VCM 0.5 can then build on this foundation with the full custom workflow engine.