@sandrinio/vbounce 1.6.0 → 1.8.0
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 +108 -18
- package/bin/vbounce.mjs +306 -145
- package/brains/AGENTS.md +5 -5
- package/brains/CHANGELOG.md +88 -1
- package/brains/CLAUDE.md +22 -17
- package/brains/GEMINI.md +40 -4
- package/brains/SETUP.md +11 -5
- package/brains/claude-agents/architect.md +13 -6
- package/brains/claude-agents/developer.md +2 -2
- package/brains/claude-agents/qa.md +17 -7
- package/brains/copilot/copilot-instructions.md +49 -0
- package/brains/cursor-rules/vbounce-process.mdc +2 -2
- package/brains/windsurf/.windsurfrules +30 -0
- package/package.json +2 -4
- package/scripts/close_sprint.mjs +94 -0
- package/scripts/complete_story.mjs +113 -0
- package/scripts/doctor.mjs +144 -0
- package/scripts/init_sprint.mjs +121 -0
- package/scripts/prep_arch_context.mjs +178 -0
- package/scripts/prep_qa_context.mjs +152 -0
- package/scripts/prep_sprint_context.mjs +141 -0
- package/scripts/prep_sprint_summary.mjs +154 -0
- package/scripts/sprint_trends.mjs +160 -0
- package/scripts/suggest_improvements.mjs +200 -0
- package/scripts/update_state.mjs +132 -0
- package/scripts/validate_bounce_readiness.mjs +152 -0
- package/scripts/validate_report.mjs +39 -2
- package/scripts/validate_sprint_plan.mjs +117 -0
- package/scripts/validate_state.mjs +99 -0
- package/scripts/vdoc_match.mjs +269 -0
- package/scripts/vdoc_staleness.mjs +199 -0
- package/skills/agent-team/SKILL.md +53 -28
- package/skills/agent-team/references/cleanup.md +42 -0
- package/skills/agent-team/references/delivery-sync.md +43 -0
- package/skills/agent-team/references/git-strategy.md +52 -0
- package/skills/agent-team/references/mid-sprint-triage.md +71 -0
- package/skills/agent-team/references/report-naming.md +34 -0
- package/skills/doc-manager/SKILL.md +5 -4
- package/skills/improve/SKILL.md +1 -1
- package/skills/lesson/SKILL.md +23 -0
- package/templates/delivery_plan.md +1 -1
- package/templates/hotfix.md +1 -1
- package/templates/sprint.md +65 -13
- package/templates/sprint_report.md +14 -3
- package/templates/story.md +1 -1
- package/scripts/pre_bounce_sync.sh +0 -37
- package/scripts/vbounce_ask.mjs +0 -98
- package/scripts/vbounce_index.mjs +0 -184
package/brains/AGENTS.md
CHANGED
|
@@ -42,9 +42,9 @@ Before starting any sprint, the Team Lead MUST:
|
|
|
42
42
|
|
|
43
43
|
### Phase 2: The Bounce (Implementation)
|
|
44
44
|
**Standard Path (L2-L4 Stories):**
|
|
45
|
-
0.
|
|
45
|
+
0. **Orient via state**: Read `.bounce/state.json` (`vbounce state show`) for instant context. Run `vbounce prep sprint S-{XX}` to generate a fresh context pack.
|
|
46
46
|
1. Team Lead sends Story context pack to Developer.
|
|
47
|
-
2. Developer
|
|
47
|
+
2. Developer reads LESSONS.md and the Story context pack, implements code, writes Implementation Report. CLI Orchestrator must run `./scripts/validate_report.mjs` on the report to enforce YAML strictness.
|
|
48
48
|
3. **Pre-QA Gate Scan:** Team Lead runs `./scripts/pre_gate_runner.sh qa` to catch mechanical failures before spawning QA. If trivial issues → return to Dev.
|
|
49
49
|
4. QA runs Quick Scan + PR Review (skipping pre-scanned checks), validates against Story §2 The Truth. If fail → Bug Report to Dev. CLI Orchestrator must run `./scripts/validate_report.mjs` on the QA report.
|
|
50
50
|
5. Dev fixes and resubmits. 3+ failures → Escalated.
|
|
@@ -101,7 +101,7 @@ Bouncing → Escalated (3+ failures)
|
|
|
101
101
|
10. One source of truth. Reference upstream documents, don't duplicate.
|
|
102
102
|
11. Change Logs are mandatory on every document modification.
|
|
103
103
|
12. Agent Reports MUST use YAML Frontmatter. Every `.bounce/report/` generated must start with a strict `---` YAML block containing the core status and metrics before the Markdown body.
|
|
104
|
-
13. Framework Integrity. Any modification to a `brains/` or `skills/` file MUST be recorded in `brains/CHANGELOG.md
|
|
104
|
+
13. Framework Integrity. Any modification to a `brains/` or `skills/` file MUST be recorded in `brains/CHANGELOG.md`.
|
|
105
105
|
|
|
106
106
|
## Framework Structure
|
|
107
107
|
|
|
@@ -123,11 +123,11 @@ Planning docs live in `product_plans/`. It uses a state-based architecture (`str
|
|
|
123
123
|
| Charter | `product_plans/strategy/{project}_charter.md` |
|
|
124
124
|
| Roadmap | `product_plans/strategy/{project}_roadmap.md` |
|
|
125
125
|
| Risk Registry | `product_plans/strategy/RISK_REGISTRY.md` |
|
|
126
|
-
| Delivery Plan | `product_plans/
|
|
126
|
+
| Delivery Plan | `product_plans/D-{NN}_{release_name}/D-{NN}_DELIVERY_PLAN.md` |
|
|
127
127
|
| Sprint Plan | `product_plans/sprints/sprint-{XX}/sprint-{XX}.md` |
|
|
128
128
|
| Epic | `product_plans/backlog/EPIC-{NNN}_{name}/EPIC-{NNN}.md` |
|
|
129
129
|
| Story | `product_plans/backlog/EPIC-{NNN}_{name}/STORY-{EpicID}-{StoryID}-{StoryName}.md` |
|
|
130
|
-
| Sprint Report |
|
|
130
|
+
| Sprint Report | `.bounce/sprint-report-S-{XX}.md` |
|
|
131
131
|
| Product Docs | `vdocs/*.md` + `_manifest.json` |
|
|
132
132
|
|
|
133
133
|
## Report Formats
|
package/brains/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,94 @@
|
|
|
1
1
|
# V-Bounce OS Brains & Skills Changelog
|
|
2
2
|
|
|
3
3
|
This log tracks modifications to the core agentic framework (e.g., `brains/`, `skills/`).
|
|
4
|
-
Per **Rule 13: Framework Integrity**, anytime an entry is made here,
|
|
4
|
+
Per **Rule 13: Framework Integrity**, anytime an entry is made here, all tool-specific brain files must be reviewed for consistency.
|
|
5
|
+
|
|
6
|
+
## [2026-03-12] — LanceDB Removal
|
|
7
|
+
|
|
8
|
+
- **Removed**: `scripts/vbounce_ask.mjs` — LanceDB semantic query tool. Replaced by direct `LESSONS.md` reads.
|
|
9
|
+
- **Removed**: `scripts/vbounce_index.mjs` — LanceDB indexer. No longer needed.
|
|
10
|
+
- **Removed**: `scripts/pre_bounce_sync.sh` — RAG sync script. No longer needed.
|
|
11
|
+
- **Modified**: `package.json` — Removed `@lancedb/lancedb` and `@xenova/transformers` dependencies. Only `js-yaml`, `marked`, `commander` remain.
|
|
12
|
+
- **Modified**: `bin/vbounce.mjs` — Removed `vbounce sync` command; simplified `install` to not run RAG init or install embedding deps.
|
|
13
|
+
- **Modified**: `brains/CLAUDE.md`, `brains/AGENTS.md`, `brains/GEMINI.md`, `brains/cursor-rules/vbounce-process.mdc` — Phase 2 Step 0 now reads state.json + runs `vbounce prep sprint` instead of `pre_bounce_sync.sh`; Step 2 now says "read LESSONS.md" instead of "query LanceDB".
|
|
14
|
+
- **Modified**: `brains/claude-agents/developer.md`, `qa.md`, `architect.md` — "Before" steps now read LESSONS.md directly instead of calling `vbounce_ask.mjs`.
|
|
15
|
+
- **Modified**: `brains/SETUP.md` — Step 7 rewritten as "Initialize Your First Sprint" (`vbounce sprint init`, `vbounce doctor`, `vbounce prep sprint`).
|
|
16
|
+
- **Modified**: `brains/CHANGELOG.md` Rule 13 — Removed `pre_bounce_sync.sh` trigger; only CHANGELOG.md update required.
|
|
17
|
+
- **Modified**: `templates/story.md`, `templates/hotfix.md` — Framework Integrity checklist item no longer mentions `pre_bounce_sync.sh`.
|
|
18
|
+
- **Modified**: `scripts/doctor.mjs` — Removed `pre_bounce_sync.sh` from required scripts list (now 15 scripts).
|
|
19
|
+
- **Modified**: `skills/improve/SKILL.md` — "RAG Pipeline" area renamed to "Context Prep" pointing to prep scripts.
|
|
20
|
+
- **Modified**: `README.md` — Removed "Semantic Context (Local RAG)" section; updated Tech Stack to reflect file-based context model; updated CLI reference.
|
|
21
|
+
- **Modified**: `.gitignore` — Removed `.bounce/.lancedb/` entry.
|
|
22
|
+
- **Rationale**: Modern LLMs have 200K+ token context windows. The prep scripts (`vbounce prep sprint/qa/arch`) + LESSONS.md graduation provide targeted, deterministic context without embedding models, sync steps, or heavy dependencies. Removes ~50MB of node_modules and eliminates the most common setup failure point.
|
|
23
|
+
|
|
24
|
+
## [2026-03-12] — V-Bounce OS Optimization Plan (12-Change Batch)
|
|
25
|
+
|
|
26
|
+
### State Management (Change #1)
|
|
27
|
+
- **Added**: `.bounce/state.json` — machine-readable sprint state snapshot for crash recovery. Tracks sprint_id, delivery_id, current_phase, last_action, and per-story state (V-Bounce state, bounce counts, worktree path, updated_at).
|
|
28
|
+
- **Added**: `scripts/validate_state.mjs` — schema validator for state.json; exports `validateState(obj)` function with strict checks on format, enum values, and cross-field consistency.
|
|
29
|
+
- **Added**: `scripts/update_state.mjs` — atomic state.json updater; supports `--qa-bounce`, `--arch-bounce`, `--set-phase`, `--set-action`, `--show` flags; calls validateState after every write.
|
|
30
|
+
- **Modified**: `brains/CLAUDE.md` Phase 2 Step 0 — updated to "Orient via state: Read `.bounce/state.json`" for instant context recovery.
|
|
31
|
+
- **Modified**: `brains/GEMINI.md` Phase 2 Step 0 — same state.json orientation update.
|
|
32
|
+
|
|
33
|
+
### Sprint Scripts (Change #2)
|
|
34
|
+
- **Added**: `scripts/init_sprint.mjs` — creates `.bounce/` dir, state.json (stories in Draft), sprint plan dir, copies template; prints git commands.
|
|
35
|
+
- **Added**: `scripts/close_sprint.mjs` — validates terminal states, archives sprint report, updates state.json, prints manual steps.
|
|
36
|
+
- **Added**: `scripts/complete_story.mjs` — updates state.json to Done, updates sprint plan §1 V-Bounce State, appends row to §4 Execution Log via `<!-- EXECUTION_LOG_START -->` anchor.
|
|
37
|
+
|
|
38
|
+
### Sprint Plan as Accumulator (Change #3)
|
|
39
|
+
- **Modified**: `templates/sprint.md` — added `delivery` frontmatter field; new §2 Execution Strategy with phase plan and risk flags; Context Pack Readiness checklists in §1; §4 Execution Log with `<!-- EXECUTION_LOG_START -->` / `<!-- EXECUTION_LOG_END -->` anchors.
|
|
40
|
+
- **Added**: `scripts/validate_sprint_plan.mjs` — validates sprint plan YAML frontmatter, §1 table structure, cross-checks story IDs with state.json, checks §4 on Completed sprints.
|
|
41
|
+
|
|
42
|
+
### Richer YAML in Agent Reports (Change #4)
|
|
43
|
+
- **Modified**: `brains/claude-agents/qa.md` — FAIL report template now includes `bugs:` array (scenario/expected/actual/files/severity) and `gold_plating:` array in YAML frontmatter; added `template_version: "2.0"` to both PASS and FAIL templates. Markdown body is now narrative-only expansion.
|
|
44
|
+
- **Modified**: `brains/claude-agents/architect.md` — FAIL report template now includes `failures:` array (dimension/severity/what_wrong/fix_required) in YAML frontmatter; added `template_version: "2.0"` to both PASS and FAIL templates.
|
|
45
|
+
- **Modified**: `scripts/validate_report.mjs` — added `validateBugsArray()` and `validateFailuresArray()` helpers; QA FAIL validates `bugs[]` structure when present; Arch FAIL validates `failures[]` structure when present; added `ROOT_CAUSE_ENUM` validation for both QA and Arch FAIL reports.
|
|
46
|
+
|
|
47
|
+
### Validation Layer (Change #9)
|
|
48
|
+
- **Added**: `scripts/validate_bounce_readiness.mjs` — pre-bounce gate; checks story state, sprint plan, story spec, required sections, worktree existence; exits 1 on any failure.
|
|
49
|
+
- **Added**: `scripts/validate_sprint_plan.mjs` — validates sprint plan structure and cross-references.
|
|
50
|
+
|
|
51
|
+
### Context Management (Change #12)
|
|
52
|
+
- **Added**: `scripts/prep_sprint_context.mjs` — generates `.bounce/sprint-context-S-XX.md`; reads state.json (required), sprint plan, LESSONS.md (first 50 lines), RISK_REGISTRY; MAX_CONTEXT_LINES=200.
|
|
53
|
+
- **Added**: `scripts/prep_qa_context.mjs` — generates `.bounce/qa-context-STORY-ID.md`; exits 1 if dev report or story spec missing; MAX_CONTEXT_LINES=300.
|
|
54
|
+
- **Added**: `scripts/prep_arch_context.mjs` — generates `.bounce/arch-context-STORY-ID.md`; exits 1 if dev report/story spec missing; git diff truncated at MAX_DIFF_LINES=500.
|
|
55
|
+
- **Added**: `scripts/prep_sprint_summary.mjs` — generates `.bounce/sprint-summary-S-XX.md` from archived reports.
|
|
56
|
+
- **Added**: `vbounce.config.json` — `{ maxDiffLines: 500, maxContextLines: 200, maxQaContextLines: 300, contextBudgetWarningTokens: 12000, lessonStaleDays: 90, tool: "claude" }`.
|
|
57
|
+
- **Modified**: `brains/CLAUDE.md` Skills section — agent-team + lesson always-loaded; other skills moved to on-demand; context budget note added.
|
|
58
|
+
|
|
59
|
+
### Self-Improvement Loop (Change #10)
|
|
60
|
+
- **Added**: `scripts/sprint_trends.mjs` — scans `.bounce/archive/` dirs; computes per-sprint first-pass rate, avg bounces, correction tax, root_cause breakdown; generates `.bounce/trends.md`.
|
|
61
|
+
- **Added**: `scripts/suggest_improvements.mjs` — reads trends.md, LESSONS.md, improvement-log.md; flags stale lessons (>90 days), low first-pass rate, high correction tax; generates `.bounce/improvement-suggestions.md`.
|
|
62
|
+
- **Added**: `.bounce/improvement-log.md` — Applied/Rejected/Deferred tracking table.
|
|
63
|
+
- **Modified**: `brains/CLAUDE.md` Phase 3 — added `vbounce trends` + `vbounce suggest S-{XX}` to end-of-sprint workflow.
|
|
64
|
+
|
|
65
|
+
### Root Cause Tagging (Change #11)
|
|
66
|
+
- **Modified**: `brains/claude-agents/qa.md` — added `root_cause:` enum field to FAIL report YAML template.
|
|
67
|
+
- **Modified**: `brains/claude-agents/architect.md` — added `root_cause:` enum field to FAIL report YAML template.
|
|
68
|
+
- **Modified**: `scripts/validate_report.mjs` — `root_cause` validated against 12-value enum for QA and Arch FAIL reports.
|
|
69
|
+
|
|
70
|
+
### Document Separation of Concerns (Change #7)
|
|
71
|
+
- **Modified**: `skills/agent-team/SKILL.md` — Sprint Plan Sync table updated to 3-column format; Delivery Plan updated ONLY at sprint close.
|
|
72
|
+
- **Added**: `skills/agent-team/references/delivery-sync.md` — core rule table, what each document owns, "Never Do This" list.
|
|
73
|
+
- **Added**: `skills/agent-team/references/report-naming.md` — canonical naming conventions for all report files.
|
|
74
|
+
- **Added**: `skills/agent-team/references/cleanup.md` — after-story and after-sprint cleanup procedures, retention policy table.
|
|
75
|
+
- **Added**: `skills/agent-team/references/git-strategy.md` — branch model, all git commands for sprint/worktree/merge/cleanup.
|
|
76
|
+
|
|
77
|
+
### Lesson Graduation (Change #6)
|
|
78
|
+
- **Modified**: `skills/lesson/SKILL.md` — added Lesson Graduation section: criteria (3+ sprints, triggered once, no recent recurrence), process (suggest→approve→add to config→remove→log), rationale ("LESSONS.md is a staging area, not a permanent rule store").
|
|
79
|
+
|
|
80
|
+
### Automation CLI (Change #8)
|
|
81
|
+
- **Modified**: `bin/vbounce.mjs` — all new commands wired: `state show/update`, `sprint init/close`, `story complete`, `validate report/state/sprint/ready`, `prep qa/arch/sprint/summary`, `sync`, `trends`, `suggest`, `doctor`.
|
|
82
|
+
|
|
83
|
+
### Framework Health (Change #8)
|
|
84
|
+
- **Added**: `scripts/doctor.mjs` — health check; verifies LESSONS.md, templates, .bounce/, state.json, brain files, skills, scripts; exits 1 on hard failures.
|
|
85
|
+
|
|
86
|
+
### Tier 4 Brain Files (Change #12)
|
|
87
|
+
- **Added**: `brains/copilot/copilot-instructions.md` — Tier 4 (Copilot/VS Code) brain file: key behaviors, CLI commands, document hierarchy, report format, critical rules.
|
|
88
|
+
- **Added**: `brains/windsurf/.windsurfrules` — Tier 4 (Windsurf) brain file: before-coding checklist, document rules, state management commands, critical rules.
|
|
89
|
+
- **Modified**: `brains/GEMINI.md` — added full `## CLI Commands` section with all 15+ vbounce commands.
|
|
90
|
+
|
|
91
|
+
---
|
|
5
92
|
|
|
6
93
|
## [2026-03-02]
|
|
7
94
|
- **Initialized**: Created strict Framework Integrity tracking, YAML context handoffs, and RAG validation pipeline.
|
package/brains/CLAUDE.md
CHANGED
|
@@ -11,24 +11,29 @@ You MUST follow the V-Bounce process. Deviating from it — skipping validation,
|
|
|
11
11
|
## Skills
|
|
12
12
|
|
|
13
13
|
@skills/agent-team/SKILL.md
|
|
14
|
-
@skills/doc-manager/SKILL.md
|
|
15
14
|
@skills/lesson/SKILL.md
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
|
|
16
|
+
> **On-demand skills** — invoke these when needed (lower context overhead):
|
|
17
|
+
> - `/doc` → `@skills/doc-manager/SKILL.md` — document creation/editing
|
|
18
|
+
> - `/review` → `@skills/vibe-code-review/SKILL.md` — code review passes
|
|
19
|
+
> - `/write-skill` → `@skills/write-skill/SKILL.md` — skill authoring
|
|
20
|
+
> - `/improve` → `@skills/improve/SKILL.md` — framework improvement
|
|
21
|
+
> - `/react` → `@skills/react-best-practices/SKILL.md` — frontend patterns
|
|
22
|
+
|
|
23
|
+
> **Context budget**: Always-loaded skills (agent-team + lesson) use ~9,000 tokens.
|
|
24
|
+
> On-demand skills are read by subagents directly from `skills/` when needed.
|
|
20
25
|
|
|
21
26
|
## Subagents
|
|
22
27
|
|
|
23
|
-
Specialized agents are defined in `.claude/agents/` and spawned via the Task tool:
|
|
28
|
+
Specialized agents are defined in `brains/claude-agents/` (deploy to `.claude/agents/` via `vbounce init --tool claude`) and spawned via the Task tool:
|
|
24
29
|
|
|
25
30
|
| Agent | Config | Role |
|
|
26
31
|
|-------|--------|------|
|
|
27
|
-
| Developer |
|
|
28
|
-
| QA |
|
|
29
|
-
| Architect |
|
|
30
|
-
| DevOps |
|
|
31
|
-
| Scribe |
|
|
32
|
+
| Developer | `brains/claude-agents/developer.md` | Implements features. Tools: Read, Edit, Write, Bash, Glob, Grep |
|
|
33
|
+
| QA | `brains/claude-agents/qa.md` | Validates against acceptance criteria. Tools: Read, Bash, Glob, Grep (no Edit/Write) |
|
|
34
|
+
| Architect | `brains/claude-agents/architect.md` | Audits structure and compliance. Tools: Read, Glob, Grep, Bash (no Edit/Write) |
|
|
35
|
+
| DevOps | `brains/claude-agents/devops.md` | Merges, deploys, infra checks. Tools: Read, Edit, Write, Bash, Glob, Grep |
|
|
36
|
+
| Scribe | `brains/claude-agents/scribe.md` | Product documentation generation. Tools: Read, Write, Bash, Glob, Grep |
|
|
32
37
|
|
|
33
38
|
Deploy from: `brains/claude-agents/` → `.claude/agents/`
|
|
34
39
|
|
|
@@ -56,9 +61,9 @@ Before starting any sprint, the Team Lead MUST:
|
|
|
56
61
|
|
|
57
62
|
### Phase 2: The Bounce (Implementation)
|
|
58
63
|
**Standard Path (L2-L4 Stories):**
|
|
59
|
-
0.
|
|
64
|
+
0. **Orient via state**: Read `.bounce/state.json` for instant context (current phase, story states, last action). Run `vbounce prep sprint S-{XX}` to generate a fresh context pack.
|
|
60
65
|
1. Team Lead sends Story context pack to Developer.
|
|
61
|
-
2. Developer
|
|
66
|
+
2. Developer reads LESSONS.md and the Story context pack, implements code, writes Implementation Report. CLI Orchestrator must run `./scripts/validate_report.mjs` on the report to enforce YAML strictness.
|
|
62
67
|
3. **Pre-QA Gate Scan:** Team Lead runs `./scripts/pre_gate_runner.sh qa` to catch mechanical failures (tests, build, lint, debug output, JSDoc) before spawning QA. If trivial issues found → return to Dev.
|
|
63
68
|
4. QA runs Quick Scan + PR Review (skipping pre-scanned checks), validates against Story §2 The Truth. If fail → Bug Report to Dev. CLI Orchestrator must run `./scripts/validate_report.mjs` on the QA report.
|
|
64
69
|
5. Dev fixes and resubmits. 3+ failures → Escalated.
|
|
@@ -76,7 +81,7 @@ Before starting any sprint, the Team Lead MUST:
|
|
|
76
81
|
6. DevOps (or Team Lead) runs `./scripts/hotfix_manager.sh sync` to update active worktrees.
|
|
77
82
|
|
|
78
83
|
### Phase 3: Review
|
|
79
|
-
Sprint Report → Human review → Delivery Plan updated → Lessons recorded → Next sprint.
|
|
84
|
+
Sprint Report → Human review → Delivery Plan updated (at boundary only) → Lessons recorded → Run `vbounce trends` + `vbounce suggest S-{XX}` for improvement recommendations → Next sprint.
|
|
80
85
|
If sprint delivered new features or Developer reports flagged stale product docs → spawn Scribe agent to generate/update vdocs/ via vdoc.
|
|
81
86
|
|
|
82
87
|
## Story States
|
|
@@ -117,7 +122,7 @@ Draft → Refinement → Ready to Bounce → Bouncing → QA Passed → Architec
|
|
|
117
122
|
10. **One source of truth**. Reference upstream documents, don't duplicate.
|
|
118
123
|
11. **Change Logs are mandatory** on every document modification.
|
|
119
124
|
12. **Agent Reports MUST use YAML Frontmatter**. Every `.bounce/report/` generated must start with a strict `---` YAML block containing the core status and metrics before the Markdown body.
|
|
120
|
-
13. **Framework Integrity**. Any modification to a `brains/` or `skills/` file MUST be recorded in `brains/CHANGELOG.md
|
|
125
|
+
13. **Framework Integrity**. Any modification to a `brains/` or `skills/` file MUST be recorded in `brains/CHANGELOG.md`.
|
|
121
126
|
|
|
122
127
|
## Framework Structure
|
|
123
128
|
|
|
@@ -139,11 +144,11 @@ All planning documents live in `product_plans/`, separated by state (`strategy/`
|
|
|
139
144
|
| Charter | `templates/charter.md` | `product_plans/strategy/{project}_charter.md` |
|
|
140
145
|
| Roadmap | `templates/roadmap.md` | `product_plans/strategy/{project}_roadmap.md` |
|
|
141
146
|
| Risk Registry | `templates/risk_registry.md` | `product_plans/strategy/RISK_REGISTRY.md` |
|
|
142
|
-
| Delivery Plan | `templates/delivery_plan.md` | `product_plans/
|
|
147
|
+
| Delivery Plan | `templates/delivery_plan.md` | `product_plans/D-{NN}_{release_name}/D-{NN}_DELIVERY_PLAN.md` |
|
|
143
148
|
| Sprint Plan | `templates/sprint.md` | `product_plans/sprints/sprint-{XX}/sprint-{XX}.md` |
|
|
144
149
|
| Epic | `templates/epic.md` | `product_plans/backlog/EPIC-{NNN}_{name}/EPIC-{NNN}.md` |
|
|
145
150
|
| Story | `templates/story.md` | `product_plans/backlog/EPIC-{NNN}_{name}/STORY-{EpicID}-{StoryID}-{StoryName}.md` |
|
|
146
|
-
| Sprint Report | `templates/sprint_report.md` |
|
|
151
|
+
| Sprint Report | `templates/sprint_report.md` | `.bounce/sprint-report-S-{XX}.md` |
|
|
147
152
|
| Product Docs | (generated by vdoc) | `vdocs/*.md` |
|
|
148
153
|
| Doc Manifest | (generated by vdoc) | `vdocs/_manifest.json` |
|
|
149
154
|
|
package/brains/GEMINI.md
CHANGED
|
@@ -25,6 +25,42 @@ For Antigravity: copy skills to `.agents/skills/` for workspace-scoped discovery
|
|
|
25
25
|
| `skills/write-skill/` | Creating and refining agent skills | Team Lead |
|
|
26
26
|
| `skills/improve/` | Framework self-improvement from agent feedback | Team Lead |
|
|
27
27
|
|
|
28
|
+
## CLI Commands
|
|
29
|
+
|
|
30
|
+
V-Bounce OS ships a CLI. Use these commands for state management instead of editing files manually:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# Sprint management
|
|
34
|
+
vbounce sprint init S-06 D-02 --stories STORY-001,STORY-002
|
|
35
|
+
vbounce sprint close S-05
|
|
36
|
+
|
|
37
|
+
# Story management
|
|
38
|
+
vbounce story complete STORY-005-02 --qa-bounces 1 --arch-bounces 0 --correction-tax 5
|
|
39
|
+
|
|
40
|
+
# State transitions
|
|
41
|
+
vbounce state show # see current sprint state
|
|
42
|
+
vbounce state update STORY-005-02 "QA Passed" # transition story state
|
|
43
|
+
vbounce state update STORY-005-02 --qa-bounce # increment QA bounce counter
|
|
44
|
+
|
|
45
|
+
# Validation
|
|
46
|
+
vbounce validate report <file> # validate agent report YAML
|
|
47
|
+
vbounce validate state # validate state.json
|
|
48
|
+
vbounce validate sprint # validate Sprint Plan
|
|
49
|
+
vbounce validate ready STORY-ID # pre-bounce gate check
|
|
50
|
+
|
|
51
|
+
# Context packs
|
|
52
|
+
vbounce prep qa STORY-005-02 # generate QA context pack
|
|
53
|
+
vbounce prep arch STORY-005-02 # generate Architect context pack
|
|
54
|
+
vbounce prep sprint S-06 # generate Sprint context pack
|
|
55
|
+
|
|
56
|
+
# Self-improvement
|
|
57
|
+
vbounce trends # cross-sprint trend analysis
|
|
58
|
+
vbounce suggest S-06 # generate improvement suggestions
|
|
59
|
+
|
|
60
|
+
# Health check
|
|
61
|
+
vbounce doctor # validate all configs, templates, state files
|
|
62
|
+
```
|
|
63
|
+
|
|
28
64
|
## The V-Bounce Process
|
|
29
65
|
|
|
30
66
|
### Phase 1: Verification (Planning)
|
|
@@ -47,9 +83,9 @@ Before starting any sprint, the Team Lead MUST:
|
|
|
47
83
|
|
|
48
84
|
### Phase 2: The Bounce (Implementation)
|
|
49
85
|
**Standard Path (L2-L4 Stories):**
|
|
50
|
-
0.
|
|
86
|
+
0. **Orient via state**: Read `.bounce/state.json` if it exists (`vbounce state show`). Run `vbounce prep sprint S-{XX}` to generate a fresh context pack.
|
|
51
87
|
1. Team Lead sends Story context pack to Developer.
|
|
52
|
-
2. Developer
|
|
88
|
+
2. Developer reads LESSONS.md and the Story context pack, implements code, writes Implementation Report. CLI Orchestrator must run `./scripts/validate_report.mjs` on the report to enforce YAML strictness.
|
|
53
89
|
3. **Pre-QA Gate Scan:** Team Lead runs `./scripts/pre_gate_runner.sh qa` to catch mechanical failures before spawning QA. If trivial issues → return to Dev.
|
|
54
90
|
4. QA runs Quick Scan + PR Review (skipping pre-scanned checks), validates against Story §2 The Truth. If fail → Bug Report to Dev. CLI Orchestrator must run `./scripts/validate_report.mjs` on the QA report.
|
|
55
91
|
5. Dev fixes and resubmits. 3+ failures → Escalated.
|
|
@@ -130,11 +166,11 @@ Planning docs live in `product_plans/`. It uses a state-based architecture (`str
|
|
|
130
166
|
| Charter | `product_plans/strategy/{project}_charter.md` |
|
|
131
167
|
| Roadmap | `product_plans/strategy/{project}_roadmap.md` |
|
|
132
168
|
| Risk Registry | `product_plans/strategy/RISK_REGISTRY.md` |
|
|
133
|
-
| Delivery Plan | `product_plans/
|
|
169
|
+
| Delivery Plan | `product_plans/D-{NN}_{release_name}/D-{NN}_DELIVERY_PLAN.md` |
|
|
134
170
|
| Sprint Plan | `product_plans/sprints/sprint-{XX}/sprint-{XX}.md` |
|
|
135
171
|
| Epic | `product_plans/backlog/EPIC-{NNN}_{name}/EPIC-{NNN}.md` |
|
|
136
172
|
| Story | `product_plans/backlog/EPIC-{NNN}_{name}/STORY-{EpicID}-{StoryID}-{StoryName}.md` |
|
|
137
|
-
| Sprint Report |
|
|
173
|
+
| Sprint Report | `.bounce/sprint-report-S-{XX}.md` |
|
|
138
174
|
| Product Docs | `vdocs/*.md` + `_manifest.json` |
|
|
139
175
|
|
|
140
176
|
## Report Formats
|
package/brains/SETUP.md
CHANGED
|
@@ -117,16 +117,22 @@ The agent will:
|
|
|
117
117
|
4. Merge completed stories
|
|
118
118
|
5. Generate a Sprint Report for your review
|
|
119
119
|
|
|
120
|
-
## Step 7:
|
|
120
|
+
## Step 7: Initialize Your First Sprint
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
Once installed, start your first sprint:
|
|
123
123
|
|
|
124
124
|
```bash
|
|
125
|
-
#
|
|
126
|
-
|
|
125
|
+
# Create state.json + sprint plan directory
|
|
126
|
+
vbounce sprint init S-01 D-01
|
|
127
|
+
|
|
128
|
+
# Verify everything is in order
|
|
129
|
+
vbounce doctor
|
|
130
|
+
|
|
131
|
+
# Generate a context pack for your sprint
|
|
132
|
+
vbounce prep sprint S-01
|
|
127
133
|
```
|
|
128
134
|
|
|
129
|
-
|
|
135
|
+
Context packs are generated on-demand before each bounce. Agents read `LESSONS.md`, the sprint plan, and relevant story specs directly — no embedding or sync step required.
|
|
130
136
|
|
|
131
137
|
## Folder Structure After Setup
|
|
132
138
|
|
|
@@ -14,7 +14,7 @@ Audit the codebase for structural integrity, standards compliance, and long-term
|
|
|
14
14
|
|
|
15
15
|
## Before Auditing
|
|
16
16
|
|
|
17
|
-
1. **
|
|
17
|
+
1. **Read LESSONS.md**: Scan for architectural constraints and historical mistakes relevant to this story. Any entry touching the affected modules is a mandatory audit target.
|
|
18
18
|
2. **Read all reports** for this story (`.bounce/reports/STORY-{ID}-{StoryName}-*.md`) — Dev Report, QA Report.
|
|
19
19
|
3. **Read the full Story spec** — especially §3 Implementation Guide and §3.1 ADR References.
|
|
20
20
|
4. **Read Roadmap §3 ADRs** — every architecture decision the implementation must comply with.
|
|
@@ -93,6 +93,7 @@ safe_zone_score: {SCORE}
|
|
|
93
93
|
tokens_used: {number}
|
|
94
94
|
ai_isms_detected: {count}
|
|
95
95
|
regression_risk: "{Low/Medium/High}"
|
|
96
|
+
template_version: "2.0"
|
|
96
97
|
---
|
|
97
98
|
|
|
98
99
|
# Architectural Audit Report: STORY-{ID}-{StoryName} — PASS
|
|
@@ -145,17 +146,23 @@ status: "FAIL"
|
|
|
145
146
|
bounce_count: {N}
|
|
146
147
|
tokens_used: {number}
|
|
147
148
|
critical_failures: {count}
|
|
149
|
+
root_cause: "{adr_violation|missing_tests|spec_ambiguity|logic_error|coupling|duplication|error_handling|state_management|gold_plating|integration_gap}"
|
|
150
|
+
template_version: "2.0"
|
|
151
|
+
failures:
|
|
152
|
+
- dimension: "{Architectural Consistency|Error Handling|Data Flow|Duplication|Test Quality|Coupling}"
|
|
153
|
+
severity: "Critical"
|
|
154
|
+
what_wrong: "{Specific problem — machine-readable summary}"
|
|
155
|
+
fix_required: "{Exact change the Dev must make}"
|
|
148
156
|
---
|
|
149
157
|
|
|
150
158
|
# Architectural Audit Report: STORY-{ID}-{StoryName} — FAIL
|
|
151
159
|
|
|
152
160
|
## Critical Failures
|
|
161
|
+
> Structured failure data is in the YAML frontmatter above (`failures:` array). Expand on each issue here with depth.
|
|
162
|
+
|
|
153
163
|
### Issue 1: {Short description}
|
|
154
|
-
- **
|
|
155
|
-
- **
|
|
156
|
-
- **What's wrong**: {Specific problem}
|
|
157
|
-
- **What's wrong (plain language)**: {Non-coder analogy}
|
|
158
|
-
- **Fix required**: {What the Dev needs to change}
|
|
164
|
+
- **Plain language**: {Non-coder analogy}
|
|
165
|
+
- **Context**: {Why this matters architecturally — historical precedent, ADR violated, risk to future stories}
|
|
159
166
|
|
|
160
167
|
## Process Feedback
|
|
161
168
|
> Optional. Note friction with the V-Bounce framework itself — templates, handoffs, RAG quality, skills.
|
|
@@ -12,8 +12,8 @@ Implement features and fix bugs as specified in Story documents. You write code
|
|
|
12
12
|
|
|
13
13
|
## Before Writing ANY Code
|
|
14
14
|
|
|
15
|
-
1. **
|
|
16
|
-
2. **
|
|
15
|
+
1. **Read LESSONS.md** at the project root. Scan for entries relevant to your task — treat them as hard constraints. No exceptions.
|
|
16
|
+
2. **Read ADR references**: If your task involves core systems (auth, db, state), read Roadmap §3 ADRs directly.
|
|
17
17
|
3. **Read the Story spec** — §1 The Spec for requirements, §3 Implementation Guide for technical approach.
|
|
18
18
|
3. **Check ADR references** in §3.1 — comply with all architecture decisions from the Roadmap.
|
|
19
19
|
4. **Read relevant react-best-practices rules** — consult `skills/react-best-practices/` for patterns matching your task.
|
|
@@ -12,9 +12,10 @@ Validate that the Developer's implementation meets the Story's acceptance criter
|
|
|
12
12
|
|
|
13
13
|
## Before Testing
|
|
14
14
|
|
|
15
|
-
1. **
|
|
15
|
+
1. **Read LESSONS.md**: Scan for failure patterns relevant to this story. Treat matching entries as known risk areas to probe first.
|
|
16
16
|
2. **Read the Developer Implementation Report** (`.bounce/reports/STORY-{ID}-{StoryName}-dev.md`) to understand what was built.
|
|
17
17
|
3. **Read Story §2 The Truth** — these are your pass/fail criteria. If the Gherkin scenarios don't pass, the bounce failed.
|
|
18
|
+
4. **Check vdoc context**: If the QA context pack includes a `## vdoc Context` section, read the referenced product docs. Cross-reference the Developer's changes against documented behavior — if the implementation contradicts what a vdoc describes, flag it as a behavioral regression even if the Gherkin scenarios pass. Check the Blast Radius warnings for features that may be indirectly affected.
|
|
18
19
|
|
|
19
20
|
## Pre-Computed Scan Results
|
|
20
21
|
|
|
@@ -80,6 +81,7 @@ bounce_count: {N}
|
|
|
80
81
|
tokens_used: {number}
|
|
81
82
|
bugs_found: 0
|
|
82
83
|
gold_plating_detected: false
|
|
84
|
+
template_version: "2.0"
|
|
83
85
|
---
|
|
84
86
|
|
|
85
87
|
# QA Validation Report: STORY-{ID}-{StoryName} — PASS
|
|
@@ -130,22 +132,30 @@ bounce_count: {N}
|
|
|
130
132
|
tokens_used: {number}
|
|
131
133
|
bugs_found: {number of bugs}
|
|
132
134
|
gold_plating_detected: {true/false}
|
|
135
|
+
template_version: "2.0"
|
|
133
136
|
failed_scenarios:
|
|
134
137
|
- "{scenario name}"
|
|
138
|
+
root_cause: "{missing_tests|missing_validation|spec_ambiguity|gold_plating|logic_error|integration_gap|type_error|state_management|error_handling|coupling|duplication}"
|
|
139
|
+
bugs:
|
|
140
|
+
- scenario: "{Which Gherkin scenario failed}"
|
|
141
|
+
expected: "{What should happen}"
|
|
142
|
+
actual: "{What actually happens}"
|
|
143
|
+
files: ["{src/path/to/file.ts}"]
|
|
144
|
+
severity: "High"
|
|
145
|
+
gold_plating: []
|
|
135
146
|
---
|
|
136
147
|
|
|
137
148
|
# QA Validation Report: STORY-{ID}-{StoryName} — FAIL (Bounce {N})
|
|
138
149
|
|
|
139
150
|
## Failures
|
|
151
|
+
> Structured bug data is in the YAML frontmatter above (`bugs:` array). Expand on each finding here with plain-language context.
|
|
152
|
+
|
|
140
153
|
### Bug 1: {Short description}
|
|
141
|
-
- **
|
|
142
|
-
- **
|
|
143
|
-
- **Actual**: {What actually happens}
|
|
144
|
-
- **Files**: {Which files are likely involved}
|
|
145
|
-
- **Severity**: Critical / High / Medium / Low
|
|
154
|
+
- **Plain language**: {Non-coder analogy}
|
|
155
|
+
- **Context**: {Additional detail not captured in YAML — reproduction steps, environment notes, related code smell}
|
|
146
156
|
|
|
147
157
|
## Gold-Plating Findings
|
|
148
|
-
- {Any unnecessary additions}
|
|
158
|
+
- {Any unnecessary additions not captured in gold_plating[] array, or "None"}
|
|
149
159
|
|
|
150
160
|
## Process Feedback
|
|
151
161
|
> Optional. Note friction with the V-Bounce framework itself — templates, handoffs, RAG quality, tooling.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# V-Bounce OS — GitHub Copilot Instructions
|
|
2
|
+
|
|
3
|
+
This project uses **V-Bounce OS** — a structured AI-agent development framework.
|
|
4
|
+
|
|
5
|
+
## What This Means for You
|
|
6
|
+
|
|
7
|
+
You are operating in Tier 4 (Awareness) mode. You understand the project uses V-Bounce OS but you do not orchestrate agents.
|
|
8
|
+
|
|
9
|
+
## Key Behaviors
|
|
10
|
+
|
|
11
|
+
1. **When editing planning documents** (`product_plans/**/*.md`): follow the templates in `templates/`. Do not change section numbering or YAML frontmatter structure.
|
|
12
|
+
|
|
13
|
+
2. **When editing agent reports** (`.bounce/reports/**/*.md`): YAML frontmatter is mandatory. Never remove it.
|
|
14
|
+
|
|
15
|
+
3. **When asked about project state**: suggest running `vbounce state show` or reading `.bounce/state.json`.
|
|
16
|
+
|
|
17
|
+
4. **When creating new stories or epics**: use `templates/story.md` and `templates/epic.md`.
|
|
18
|
+
|
|
19
|
+
## CLI Commands
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
vbounce state show # current sprint state
|
|
23
|
+
vbounce validate report <f> # validate a report file
|
|
24
|
+
vbounce doctor # project health check
|
|
25
|
+
vbounce prep qa STORY-ID # generate QA context
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Document Hierarchy
|
|
29
|
+
|
|
30
|
+
Charter → Roadmap → Epic → Story → Sprint Plan → Delivery Plan
|
|
31
|
+
|
|
32
|
+
Never skip levels. Stories must trace back to an Epic. Sprints must reference a Delivery Plan.
|
|
33
|
+
|
|
34
|
+
## Report Format
|
|
35
|
+
|
|
36
|
+
All agent reports must start with YAML frontmatter:
|
|
37
|
+
```yaml
|
|
38
|
+
---
|
|
39
|
+
status: "PASS" | "FAIL"
|
|
40
|
+
tokens_used: {number}
|
|
41
|
+
# ... agent-specific fields
|
|
42
|
+
---
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Critical Rules
|
|
46
|
+
|
|
47
|
+
- Read `LESSONS.md` before modifying code in this project
|
|
48
|
+
- No gold-plating — implement exactly what the Story specifies
|
|
49
|
+
- Follow the Safe Zone — no new patterns without Architect approval
|
|
@@ -19,9 +19,9 @@ Before sprints: Lead triages request (L1 Trivial → Hotfix Path. L2-L4 → Epic
|
|
|
19
19
|
|
|
20
20
|
### Phase 2: The Bounce (Implementation)
|
|
21
21
|
**Standard Path (L2-L4):**
|
|
22
|
-
0. Team Lead
|
|
22
|
+
0. Team Lead reads `.bounce/state.json` (`vbounce state show`) and runs `vbounce prep sprint S-{XX}` for a fresh context pack.
|
|
23
23
|
1. Team Lead sends Story context pack to Developer.
|
|
24
|
-
2. Developer reads LESSONS.md, implements code, writes Implementation Report. CLI Orchestrator must run `./scripts/validate_report.mjs` on the report to enforce YAML strictness.
|
|
24
|
+
2. Developer reads LESSONS.md and the Story context pack, implements code, writes Implementation Report. CLI Orchestrator must run `./scripts/validate_report.mjs` on the report to enforce YAML strictness.
|
|
25
25
|
3. Pre-QA Gate Scan: `./scripts/pre_gate_runner.sh qa` catches mechanical failures before spawning QA. Trivial issues → return to Dev.
|
|
26
26
|
4. QA validates against Story §2 The Truth (skipping pre-scanned checks). If fail → Bug Report to Dev.
|
|
27
27
|
5. Dev fixes and resubmits. 3+ failures → Escalated.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# V-Bounce OS — Windsurf Rules
|
|
2
|
+
|
|
3
|
+
This project uses V-Bounce OS. You are operating in Tier 4 (Awareness) mode.
|
|
4
|
+
|
|
5
|
+
## Before Writing Code
|
|
6
|
+
|
|
7
|
+
1. Read `LESSONS.md` at the project root — treat as hard constraints
|
|
8
|
+
2. Read the Story spec you're implementing (§1 + §3)
|
|
9
|
+
3. Check `brains/CLAUDE.md` for full process context
|
|
10
|
+
|
|
11
|
+
## Document Rules
|
|
12
|
+
|
|
13
|
+
- Planning documents in `product_plans/` follow strict templates in `templates/`
|
|
14
|
+
- Agent reports in `.bounce/reports/` MUST have YAML frontmatter
|
|
15
|
+
- Never modify `brains/`, `skills/`, or `templates/` without recording in `brains/CHANGELOG.md`
|
|
16
|
+
|
|
17
|
+
## State Management
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
vbounce state show # where is the sprint right now?
|
|
21
|
+
vbounce validate report <f> # is this report valid?
|
|
22
|
+
vbounce doctor # is the framework healthy?
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Critical Rules
|
|
26
|
+
|
|
27
|
+
- Read LESSONS.md before coding. No exceptions.
|
|
28
|
+
- No gold-plating. Implement exactly what's specified.
|
|
29
|
+
- Reports are the only agent handoff. No direct agent communication.
|
|
30
|
+
- YAML frontmatter is mandatory on all agent reports.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sandrinio/vbounce",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "V-Bounce OS: Turn your AI coding assistant into a full engineering team through structured SDLC skills.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -40,10 +40,8 @@
|
|
|
40
40
|
"docs"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@lancedb/lancedb": "^0.26.2",
|
|
44
|
-
"@xenova/transformers": "^2.17.2",
|
|
45
43
|
"commander": "^14.0.3",
|
|
46
44
|
"js-yaml": "^4.1.1",
|
|
47
45
|
"marked": "^17.0.3"
|
|
48
46
|
}
|
|
49
|
-
}
|
|
47
|
+
}
|