vbounce-engine 2.5.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.
- package/README.md +142 -0
- package/VBOUNCE_MANIFEST.md +404 -0
- package/bin/vbounce.mjs +882 -0
- package/brains/AGENTS.md +71 -0
- package/brains/CHANGELOG.md +398 -0
- package/brains/CLAUDE.md +90 -0
- package/brains/GEMINI.md +102 -0
- package/brains/SETUP.md +195 -0
- package/brains/claude-agents/architect.md +226 -0
- package/brains/claude-agents/developer.md +133 -0
- package/brains/claude-agents/devops.md +267 -0
- package/brains/claude-agents/explorer.md +157 -0
- package/brains/claude-agents/qa.md +225 -0
- package/brains/claude-agents/scribe.md +171 -0
- package/brains/copilot/copilot-instructions.md +54 -0
- package/brains/cursor-rules/vbounce-docs.mdc +45 -0
- package/brains/cursor-rules/vbounce-process.mdc +51 -0
- package/brains/cursor-rules/vbounce-rules.mdc +29 -0
- package/brains/windsurf/.windsurfrules +35 -0
- package/docs/HOTFIX_EDGE_CASES.md +37 -0
- package/docs/IMPROVEMENT.md +46 -0
- package/docs/agent-skill-profiles.docx +0 -0
- package/docs/icons/alert.svg +1 -0
- package/docs/icons/beaker.svg +1 -0
- package/docs/icons/book.svg +1 -0
- package/docs/icons/git-branch.svg +1 -0
- package/docs/icons/git-merge.svg +1 -0
- package/docs/icons/graph.svg +1 -0
- package/docs/icons/light-bulb.svg +1 -0
- package/docs/icons/logo.svg +9 -0
- package/docs/icons/pencil.svg +1 -0
- package/docs/icons/rocket.svg +1 -0
- package/docs/icons/shield.svg +1 -0
- package/docs/icons/sync.svg +1 -0
- package/docs/icons/terminal.svg +1 -0
- package/docs/icons/tools.svg +1 -0
- package/docs/icons/zap.svg +1 -0
- package/docs/images/bounce_loop_diagram.png +0 -0
- package/docs/vbounce-os-manual.docx +0 -0
- package/package.json +48 -0
- package/scripts/close_sprint.mjs +134 -0
- package/scripts/complete_story.mjs +121 -0
- package/scripts/count_tokens.mjs +494 -0
- package/scripts/doctor.mjs +144 -0
- package/scripts/hotfix_manager.sh +157 -0
- package/scripts/init_gate_config.sh +151 -0
- package/scripts/init_sprint.mjs +129 -0
- package/scripts/post_sprint_improve.mjs +486 -0
- package/scripts/pre_gate_common.sh +576 -0
- package/scripts/pre_gate_runner.sh +176 -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/product_graph.mjs +387 -0
- package/scripts/product_impact.mjs +167 -0
- package/scripts/sprint_trends.mjs +160 -0
- package/scripts/suggest_improvements.mjs +363 -0
- package/scripts/update_state.mjs +132 -0
- package/scripts/validate_bounce_readiness.mjs +152 -0
- package/scripts/validate_report.mjs +165 -0
- 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/scripts/verify_framework.mjs +122 -0
- package/scripts/verify_framework.sh +13 -0
- package/skills/agent-team/SKILL.md +579 -0
- package/skills/agent-team/references/cleanup.md +42 -0
- package/skills/agent-team/references/delivery-sync.md +43 -0
- package/skills/agent-team/references/discovery.md +97 -0
- package/skills/agent-team/references/git-strategy.md +52 -0
- package/skills/agent-team/references/mid-sprint-triage.md +85 -0
- package/skills/agent-team/references/report-naming.md +34 -0
- package/skills/doc-manager/SKILL.md +444 -0
- package/skills/file-organization/SKILL.md +146 -0
- package/skills/file-organization/TEST-RESULTS.md +193 -0
- package/skills/file-organization/evals/evals.json +41 -0
- package/skills/file-organization/references/gitignore-template.md +53 -0
- package/skills/file-organization/references/quick-checklist.md +48 -0
- package/skills/improve/SKILL.md +296 -0
- package/skills/lesson/SKILL.md +136 -0
- package/skills/product-graph/SKILL.md +102 -0
- package/skills/react-best-practices/SKILL.md +3014 -0
- package/skills/react-best-practices/rules/_sections.md +46 -0
- package/skills/react-best-practices/rules/_template.md +28 -0
- package/skills/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/skills/react-best-practices/rules/advanced-init-once.md +42 -0
- package/skills/react-best-practices/rules/advanced-use-latest.md +39 -0
- package/skills/react-best-practices/rules/async-api-routes.md +38 -0
- package/skills/react-best-practices/rules/async-defer-await.md +80 -0
- package/skills/react-best-practices/rules/async-dependencies.md +51 -0
- package/skills/react-best-practices/rules/async-parallel.md +28 -0
- package/skills/react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/skills/react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/skills/react-best-practices/rules/bundle-conditional.md +31 -0
- package/skills/react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/skills/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/skills/react-best-practices/rules/bundle-preload.md +50 -0
- package/skills/react-best-practices/rules/client-event-listeners.md +74 -0
- package/skills/react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/skills/react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/skills/react-best-practices/rules/client-swr-dedup.md +56 -0
- package/skills/react-best-practices/rules/js-batch-dom-css.md +107 -0
- package/skills/react-best-practices/rules/js-cache-function-results.md +80 -0
- package/skills/react-best-practices/rules/js-cache-property-access.md +28 -0
- package/skills/react-best-practices/rules/js-cache-storage.md +70 -0
- package/skills/react-best-practices/rules/js-combine-iterations.md +32 -0
- package/skills/react-best-practices/rules/js-early-exit.md +50 -0
- package/skills/react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/skills/react-best-practices/rules/js-index-maps.md +37 -0
- package/skills/react-best-practices/rules/js-length-check-first.md +49 -0
- package/skills/react-best-practices/rules/js-min-max-loop.md +82 -0
- package/skills/react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/skills/react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/skills/react-best-practices/rules/rendering-activity.md +26 -0
- package/skills/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/skills/react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/skills/react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/skills/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/skills/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/skills/react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
- package/skills/react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/skills/react-best-practices/rules/rendering-usetransition-loading.md +75 -0
- package/skills/react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/skills/react-best-practices/rules/rerender-dependencies.md +45 -0
- package/skills/react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
- package/skills/react-best-practices/rules/rerender-derived-state.md +29 -0
- package/skills/react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/skills/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/skills/react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
- package/skills/react-best-practices/rules/rerender-memo.md +44 -0
- package/skills/react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
- package/skills/react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
- package/skills/react-best-practices/rules/rerender-transitions.md +40 -0
- package/skills/react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
- package/skills/react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/skills/react-best-practices/rules/server-auth-actions.md +96 -0
- package/skills/react-best-practices/rules/server-cache-lru.md +41 -0
- package/skills/react-best-practices/rules/server-cache-react.md +76 -0
- package/skills/react-best-practices/rules/server-dedup-props.md +65 -0
- package/skills/react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/skills/react-best-practices/rules/server-serialization.md +38 -0
- package/skills/vibe-code-review/SKILL.md +70 -0
- package/skills/vibe-code-review/references/deep-audit.md +259 -0
- package/skills/vibe-code-review/references/pr-review.md +234 -0
- package/skills/vibe-code-review/references/quick-scan.md +178 -0
- package/skills/vibe-code-review/references/report-template.md +189 -0
- package/skills/vibe-code-review/references/trend-check.md +224 -0
- package/skills/vibe-code-review/scripts/generate-snapshot.sh +89 -0
- package/skills/vibe-code-review/scripts/pr-analyze.sh +180 -0
- package/skills/write-skill/SKILL.md +133 -0
- package/templates/bug.md +100 -0
- package/templates/change_request.md +105 -0
- package/templates/charter.md +144 -0
- package/templates/delivery_plan.md +44 -0
- package/templates/epic.md +203 -0
- package/templates/hotfix.md +58 -0
- package/templates/risk_registry.md +87 -0
- package/templates/roadmap.md +174 -0
- package/templates/spike.md +143 -0
- package/templates/sprint.md +134 -0
- package/templates/sprint_context.md +61 -0
- package/templates/sprint_report.md +215 -0
- package/templates/story.md +193 -0
package/brains/AGENTS.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# V-Bounce Engine — Agent Brain (Codex CLI)
|
|
2
|
+
|
|
3
|
+
> This file configures OpenAI Codex CLI to operate within the V-Bounce Engine framework.
|
|
4
|
+
|
|
5
|
+
## Identity
|
|
6
|
+
|
|
7
|
+
You are an AI operating within **V-Bounce Engine** — a structured system for planning, implementing, and validating software.
|
|
8
|
+
|
|
9
|
+
You have two roles depending on the phase:
|
|
10
|
+
- **During Planning (Phase 1 & 2):** You work directly with the human. You are their planning partner — you create documents, research the codebase, surface risks, and discuss trade-offs. No subagents are involved.
|
|
11
|
+
- **During Execution (Phase 3):** You are the Team Lead orchestrating specialist agents (Developer, QA, Architect, DevOps, Scribe) through structured reports.
|
|
12
|
+
|
|
13
|
+
You MUST follow the V-Bounce process. Deviating from it — skipping validation, ignoring LESSONS.md, or writing code without reading the Story spec — is a defect, not a shortcut.
|
|
14
|
+
|
|
15
|
+
## Phase Routing
|
|
16
|
+
|
|
17
|
+
Determine which phase you're in from what the human is asking, then load the right skill.
|
|
18
|
+
|
|
19
|
+
| User Intent | Phase | Load |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| Plan, create, discuss features, priorities, status | Phase 1 (Planning) | `doc-manager`, `product-graph` |
|
|
22
|
+
| "Start a sprint", scope selection, "what should we work on?" | Phase 2 (Sprint Planning) | `doc-manager`, `product-graph` |
|
|
23
|
+
| Sprint confirmed, "bounce", implement stories | Phase 3 (Execution) | `agent-team` |
|
|
24
|
+
| Review sprint, retrospective, improvement | Phase 4 (Review) | `improve` |
|
|
25
|
+
| Scope change to existing documents | Any | `product-graph` (impact first), then `doc-manager` |
|
|
26
|
+
| Code review | Any | `vibe-code-review` |
|
|
27
|
+
| Lesson or gotcha to record | Any | `lesson` |
|
|
28
|
+
|
|
29
|
+
## Critical Rules
|
|
30
|
+
|
|
31
|
+
### Before Writing Code
|
|
32
|
+
1. **Read LESSONS.md** at the project root. Every time. No exceptions.
|
|
33
|
+
2. **Read the Story spec** (§1 The Spec + §3 Implementation Guide). Do not infer requirements.
|
|
34
|
+
3. **Check ADRs** in the Roadmap (§3). Comply with recorded architecture decisions.
|
|
35
|
+
|
|
36
|
+
### During Implementation
|
|
37
|
+
4. **Comply with ADRs**. No new patterns or libraries unless approved in Roadmap §3. The Architect validates compliance.
|
|
38
|
+
5. **No Gold-Plating**. Implement exactly what the Story specifies.
|
|
39
|
+
6. **Write Self-Documenting Code**. All exports MUST have JSDoc/docstrings.
|
|
40
|
+
7. **Self-assess Correction Tax**. Track % human intervention.
|
|
41
|
+
|
|
42
|
+
### After Implementation
|
|
43
|
+
8. **Write a structured report**: files modified, logic summary, Correction Tax.
|
|
44
|
+
9. **Flag lessons**. Gotchas and multi-attempt fixes get flagged for recording.
|
|
45
|
+
|
|
46
|
+
### Always
|
|
47
|
+
10. **Reports are the only handoff**. No direct agent-to-agent communication.
|
|
48
|
+
11. **One source of truth**. Reference upstream documents, don't duplicate.
|
|
49
|
+
12. **Change Logs are mandatory** on every document modification.
|
|
50
|
+
13. **Agent Reports MUST use YAML Frontmatter**. Every `.vbounce/report/` file starts with strict YAML.
|
|
51
|
+
14. **Framework Integrity**. Any modification to `.claude/agents/`, `.vbounce/skills/`, `.vbounce/templates/`, or `.vbounce/scripts/` MUST be recorded in `.vbounce/CHANGELOG.md` and reflected in `VBOUNCE_MANIFEST.md`.
|
|
52
|
+
|
|
53
|
+
## Skills
|
|
54
|
+
|
|
55
|
+
Skills are in the `.vbounce/skills/` directory. Each skill has a `SKILL.md` with instructions.
|
|
56
|
+
|
|
57
|
+
**Loaded by phase** (see Phase Routing above):
|
|
58
|
+
- **Always:** Read `.vbounce/skills/lesson/SKILL.md`
|
|
59
|
+
- **Planning (Phase 1 & 2):** Read `.vbounce/skills/doc-manager/SKILL.md` + `.vbounce/skills/product-graph/SKILL.md`
|
|
60
|
+
- **Execution (Phase 3):** Read `.vbounce/skills/agent-team/SKILL.md`
|
|
61
|
+
|
|
62
|
+
**On-demand:** `vibe-code-review`, `react-best-practices`, `write-skill`, `improve`, `file-organization`
|
|
63
|
+
|
|
64
|
+
## Quick Reference
|
|
65
|
+
|
|
66
|
+
- **Document ops:** `.vbounce/skills/doc-manager/SKILL.md` — hierarchy, cascade rules, planning workflows
|
|
67
|
+
- **Product graph:** `.vbounce/product-graph.json` — document relationships and state
|
|
68
|
+
- **Bounce orchestration:** `.vbounce/skills/agent-team/SKILL.md` — agent delegation, sprint execution
|
|
69
|
+
- **Planning docs:** `product_plans/` — `strategy/`, `backlog/`, `sprints/`, `hotfixes/`, `archive/`
|
|
70
|
+
- **Sprint state:** `.vbounce/state.json` — machine-readable sprint state
|
|
71
|
+
- **Framework map:** `VBOUNCE_MANIFEST.md` — complete file and process registry
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
# V-Bounce Engine Brains & Skills Changelog
|
|
2
|
+
|
|
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, all tool-specific brain files must be reviewed for consistency.
|
|
5
|
+
|
|
6
|
+
## [2026-03-25] — .vbounce/ Directory Consolidation (v2.5.0)
|
|
7
|
+
|
|
8
|
+
### Directory Consolidation (EPIC-002)
|
|
9
|
+
- **All framework files** now deploy under `.vbounce/` instead of project root:
|
|
10
|
+
- `skills/` → `.vbounce/skills/`
|
|
11
|
+
- `templates/` → `.vbounce/templates/`
|
|
12
|
+
- `scripts/` → `.vbounce/scripts/`
|
|
13
|
+
- `.bounce/` → `.vbounce/` (merged)
|
|
14
|
+
- `MANIFEST.md` → `.vbounce/VBOUNCE_MANIFEST.md`
|
|
15
|
+
- **550+ path references** updated across 55 files (brains, skills, agents, templates, scripts, docs)
|
|
16
|
+
- **Modified**: `bin/vbounce.mjs` — platform mappings deploy to `.vbounce/`, added migration logic for old layout, added `vbounce uninstall` command, auto-deploys `.vbounce/.gitignore`
|
|
17
|
+
- **Modified**: `scripts/doctor.mjs` — validates `.vbounce/templates/`, `.vbounce/skills/`, `.vbounce/scripts/`
|
|
18
|
+
- **Modified**: All brain files — skill references now use `.vbounce/skills/` paths
|
|
19
|
+
- **Modified**: All subagent configs — script and report paths use `.vbounce/`
|
|
20
|
+
- **Modified**: All skill files — cross-references use `.vbounce/` paths
|
|
21
|
+
- **Renamed**: `MANIFEST.md` → `VBOUNCE_MANIFEST.md`, now included in npm package
|
|
22
|
+
- **Added**: `.vbounce/.gitignore` template — nested gitignore for mixed committed/runtime content
|
|
23
|
+
- **Note**: Historical entries in this changelog retain original paths (they describe what happened at that time)
|
|
24
|
+
|
|
25
|
+
### Manifest & Version
|
|
26
|
+
- **Modified**: `VBOUNCE_MANIFEST.md` — updated all registry paths, version 2.4.0→2.5.0
|
|
27
|
+
- **Modified**: `package.json` — version bumped to 2.5.0, added `VBOUNCE_MANIFEST.md` to files array
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## [2026-03-25] — Story Template Rewrite & Git Cleanup (v2.4.0)
|
|
32
|
+
|
|
33
|
+
### Story Template Rewrite (Modified)
|
|
34
|
+
- **Modified**: `templates/story.md` — 7 improvements:
|
|
35
|
+
1. Complexity legend moved to `<instructions>` block only (not repeated in output)
|
|
36
|
+
2. Single `complexity_label` frontmatter field (removed redundant `complexity`)
|
|
37
|
+
3. Flexible §1.1 format: user-facing stories use "As a {Persona}..." format; infrastructure stories can use direct problem statements
|
|
38
|
+
4. Added §1.3 Out of Scope section (prevents scope creep)
|
|
39
|
+
5. Generic §2.2 Verification Steps (removed UI bias — adapts to story type)
|
|
40
|
+
6. §3.4 API Contract reframed: documents existing contracts to comply with OR new contracts to create. Table format with Endpoint/Method/Auth/Request/Response
|
|
41
|
+
7. §4.2 Definition of Done trimmed from 11 to 6 items (removed duplicates of §4.1 and general best practices)
|
|
42
|
+
|
|
43
|
+
### Git History Cleanup
|
|
44
|
+
- **Modified**: `.gitignore` — added explicit exclusions for `product_plans/`, `vdocs/`, `.bounce/`, `/temporary/`
|
|
45
|
+
- Git history rewritten via `filter-branch` to remove internal development artifacts from public repo
|
|
46
|
+
|
|
47
|
+
### Manifest & Version
|
|
48
|
+
- **Modified**: `MANIFEST.md` — updated story template Key Sections (added §1.3 Out of Scope), version 2.3.0→2.4.0
|
|
49
|
+
- **Modified**: `package.json` — version bumped to 2.4.0
|
|
50
|
+
- **Modified**: `CHANGELOG.md` — backfilled missing 2.2.0 and 2.3.0 entries, added 2.4.0
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## [2026-03-24] — Post-Sprint Improvement Pipeline & Process Enhancements (v2.3.0)
|
|
55
|
+
|
|
56
|
+
### Unconditional Improvement Suggestions (Modified)
|
|
57
|
+
- **Modified**: `skills/agent-team/SKILL.md` Step 7.7 — Framework Self-Assessment now **always** runs `suggest_improvements.mjs`, not just conditionally on 2nd+ sprint or blocker findings. First sprints generate the most friction.
|
|
58
|
+
- **Key change**: Team Lead must **verbally present** P0/P1 suggestions to the user in plain language, not just embed them in the sprint report. Lower-priority items referenced in `.bounce/improvement-suggestions.md`.
|
|
59
|
+
|
|
60
|
+
### User Walkthrough Phase (New)
|
|
61
|
+
- **Modified**: `skills/agent-team/SKILL.md` — added **Step 5.7: User Walkthrough** between story merges and Sprint Integration Audit. User tests the running app; feedback tracked as "Review Feedback" (no Correction Tax) or "Bug" (counts as Bug Fix Tax). Gives post-delivery feedback a proper home instead of ad-hoc post-sprint changes.
|
|
62
|
+
|
|
63
|
+
### Sprint Context Template (New)
|
|
64
|
+
- **Added**: `templates/sprint_context.md` — shared context file for all agents in a sprint. Contains design tokens, UI conventions, shared patterns, locked dependencies, active lessons, sprint-specific rules. Created at Step 0.7 (Sprint Setup), included in every agent task file. Reduces divergence between parallel agents.
|
|
65
|
+
- **Modified**: `skills/agent-team/SKILL.md` Step 0 — added Step 0.7 to create sprint context file. Step 1 now includes sprint context in agent task files.
|
|
66
|
+
|
|
67
|
+
### Correction Tax Split (Modified)
|
|
68
|
+
- **Modified**: `templates/sprint_report.md` — Correction Tax now split into two sub-categories:
|
|
69
|
+
- **Bug Fix Tax**: Quality failures that agents should have caught. Triggers threshold alerts.
|
|
70
|
+
- **Enhancement Tax**: Healthy iteration from user feedback. Does NOT trigger alerts.
|
|
71
|
+
- Story Results table now includes "Tax Type" column (Bug Fix / Enhancement / Mixed).
|
|
72
|
+
|
|
73
|
+
### Quality Gates in Story Template (Modified)
|
|
74
|
+
- **Modified**: `templates/story.md` — §4 renamed from "Definition of Done" to "Quality Gates". Added §4.1 "Minimum Test Expectations" table (unit, component, E2E, integration counts defined during planning). §4.2 is the existing Definition of Done checklist, now includes sprint context consultation.
|
|
75
|
+
|
|
76
|
+
### Accelerated Lesson Graduation (Modified)
|
|
77
|
+
- **Modified**: `skills/lesson/SKILL.md` — added accelerated graduation path. Lessons can graduate after 1 sprint (instead of 3) when: affected 5+ files, caused a bounce, or describe cross-cutting concerns. Flagged by `suggest_improvements.mjs` at P1.
|
|
78
|
+
|
|
79
|
+
### QA Runtime Verification (Modified)
|
|
80
|
+
- **Modified**: `brains/claude-agents/qa.md` — added "Runtime Verification" step between test execution and spec fidelity check. QA starts the dev server, verifies no white screens or startup crashes, clicks through main flows. Smoke test gate for runtime health.
|
|
81
|
+
|
|
82
|
+
### Token Tracking Enforcement (Modified)
|
|
83
|
+
- **Modified**: All 5 subagent configs (`developer.md`, `qa.md`, `architect.md`, `devops.md`, `scribe.md`):
|
|
84
|
+
- Promoted token tracking from a soft inline instruction in the report template to a **mandatory pre-report section** ("Before Writing Your Report (Mandatory)").
|
|
85
|
+
- Removed the old `**Token Tracking**:` block from the report body — instructions now live in their own section with explicit "Do NOT skip" language.
|
|
86
|
+
- Added warning: "Reports with `0/0/0` tokens and no failure explanation will be flagged by the Team Lead."
|
|
87
|
+
- Developer agent: added "Token tracking completed" to the Status checklist.
|
|
88
|
+
|
|
89
|
+
### Manifest & Version
|
|
90
|
+
- **Modified**: `MANIFEST.md` — added sprint_context.md to Template Registry, Step 5.7 to Process Flow, updated Phase 4 to show unconditional improvement pipeline, template count 12→13, total ~173→~174. Version 2.2.1→2.3.0.
|
|
91
|
+
- **Modified**: `package.json` — version bumped to 2.3.0.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## [2026-03-23] — Token Tracking Reliability Fixes
|
|
96
|
+
|
|
97
|
+
### Script: Worktree-Aware Session Discovery (Fixed)
|
|
98
|
+
- **Modified**: `scripts/count_tokens.mjs` — `findProjectDir()` now falls back to `git rev-parse --git-common-dir` when CWD walk-up fails. Fixes agents in git worktrees unable to find their Claude Code session JSONL files.
|
|
99
|
+
- **Refactored**: Extracted `tryProjectDir()` helper from `findProjectDir()` to reduce duplication.
|
|
100
|
+
|
|
101
|
+
### Agent Reports: Input/Output Token Split (Modified)
|
|
102
|
+
- **Modified**: All 5 subagent configs (`developer.md`, `qa.md`, `architect.md`, `devops.md`, `scribe.md`):
|
|
103
|
+
- YAML frontmatter changed from `tokens_used: {number}` to `input_tokens: {number}`, `output_tokens: {number}`, `total_tokens: {number}`.
|
|
104
|
+
- Token Tracking instructions now include fallback: if `count_tokens.mjs` not found in worktree, try `$(git rev-parse --show-toplevel)/scripts/count_tokens.mjs`.
|
|
105
|
+
- If both fail, agents set all token fields to `0` and note the failure in Process Feedback.
|
|
106
|
+
|
|
107
|
+
### Sprint Consolidation: Token Aggregation Improvements (Modified)
|
|
108
|
+
- **Modified**: `skills/agent-team/SKILL.md` Step 7 — Team Lead now:
|
|
109
|
+
- Sums `input_tokens`, `output_tokens`, and `total_tokens` separately from agent reports.
|
|
110
|
+
- Uses task notification `total_tokens` as authoritative fallback when script-based totals are `0` or diverge >20%.
|
|
111
|
+
- Cross-references three data sources: agent report YAML, task notifications, and `vbounce tokens --sprint` output.
|
|
112
|
+
- **Modified**: `templates/sprint_report.md` — YAML frontmatter now includes `total_input_tokens` and `total_output_tokens` alongside `total_tokens_used`.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## [2026-03-23] — Token Tracking: Per-Agent, Per-Story, Per-Sprint
|
|
117
|
+
|
|
118
|
+
### Token Tracking Script (New)
|
|
119
|
+
- **Added**: `scripts/count_tokens.mjs` — parses Claude Code JSONL session files for exact token counts. Modes:
|
|
120
|
+
- `--self`: auto-detects own subagent JSONL (most recently modified file in subagents/)
|
|
121
|
+
- `--self --append <story.md> --name Developer`: writes input/output/total row to story's Token Usage table
|
|
122
|
+
- `--all`: per-subagent breakdown for current session
|
|
123
|
+
- `--sprint S-XX`: aggregates Token Usage tables from all story docs in a sprint folder
|
|
124
|
+
- `--json`: machine-readable output for report YAML frontmatter
|
|
125
|
+
- **Modified**: `bin/vbounce.mjs` — added `tokens` CLI command with all modes
|
|
126
|
+
|
|
127
|
+
### Subagent Token Self-Reporting (Modified)
|
|
128
|
+
- **Modified**: All 5 subagent configs (`developer.md`, `qa.md`, `architect.md`, `devops.md`, `scribe.md`):
|
|
129
|
+
- Token Tracking instruction changed from vague "retrieve your session's token usage" to concrete two-step:
|
|
130
|
+
1. `node scripts/count_tokens.mjs --self --json` → populate `tokens_used` in report YAML
|
|
131
|
+
2. `node scripts/count_tokens.mjs --self --append <story.md> --name <Agent>` → write row to story doc
|
|
132
|
+
- Each story document accumulates a Token Usage table with per-agent input/output/total
|
|
133
|
+
- **Modified**: `brains/claude-agents/developer.md` — also fixed stale "Follow the Safe Zone" → "Comply with ADRs"
|
|
134
|
+
|
|
135
|
+
### Sprint Token Aggregation
|
|
136
|
+
- `--sprint S-XX` reads all STORY-*.md files in the sprint folder, parses their Token Usage tables, outputs per-story and sprint-total token counts. JSON mode provides data for Sprint Report §3 Execution Metrics.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## [2026-03-22] — Bug & Change Request Templates + Process Fixes
|
|
141
|
+
|
|
142
|
+
### Bug Report Template (New)
|
|
143
|
+
- **Added**: `templates/bug.md` — documents defects found mid-sprint or post-sprint. YAML frontmatter (bug_id, status, severity, found_during, affected_story, reporter). Sections: The Bug (repro steps, expected/actual), Impact (blocking?, affected areas, data impact), Fix Approach (root cause, files, complexity), Verification. Triage rule: L1 bugs use hotfix.md, larger bugs use this template.
|
|
144
|
+
|
|
145
|
+
### Change Request Template (New)
|
|
146
|
+
- **Added**: `templates/change_request.md` — documents scope changes or approach changes mid-sprint. YAML frontmatter (cr_id, status, category, urgency, affected_stories, requestor). Sections: The Change (original vs proposed), Impact Assessment (affected stories, sprint impact, risk), Decision (human approves/rejects/defers), Execution Plan. Categories: Scope Change and Approach Change (from mid-sprint-triage.md).
|
|
147
|
+
|
|
148
|
+
### Mid-Sprint Triage Update
|
|
149
|
+
- **Modified**: `skills/agent-team/references/mid-sprint-triage.md` — added Template column to categorization table linking each category to its template. Added decision tree that routes L1 bugs to hotfix.md, larger bugs to bug.md, scope/approach changes to change_request.md, spec clarifications to inline updates. Added Step 4 (present to human). Updated Sprint Report tracking table with Document column.
|
|
150
|
+
|
|
151
|
+
### Doc-Manager Update
|
|
152
|
+
- **Modified**: `skills/doc-manager/SKILL.md` — added Bug Report and Change Request to Template Locations table.
|
|
153
|
+
|
|
154
|
+
### Sprint Template Improvements
|
|
155
|
+
- **Modified**: `templates/sprint.md` — added Shared File Map table to §2 (forces explicit merge ordering for parallel stories touching same files). Added Execution Mode table (L1→Fast Track, L2→needs human approval, L3/L4→Full Bounce always). Updated Dependency Chain reason column to include "shared file" as a dependency type.
|
|
156
|
+
|
|
157
|
+
### Process Fixes
|
|
158
|
+
- **Modified**: `skills/agent-team/SKILL.md` — pre-gate scan escalation after 3 failures (present to human with options). Post-merge test failure recovery path (revert → return to Dev → re-enter Step 2 → escalate after 3). Integration audit fix stories go to backlog (not current sprint) unless release-blocking. Delivery Plan Sync table clarified: updates ONLY at sprint close.
|
|
159
|
+
- **Modified**: `skills/doc-manager/SKILL.md` — added Complexity Labels (L1-L4) to TRANSITION section. Epic readiness gate changed from "reviewed" to "decided mitigation OR explicitly accepted as known risk."
|
|
160
|
+
- **Modified**: `skills/improve/SKILL.md` — fixed stale `pre_bounce_sync.sh` references → `vbounce doctor`. Clarified improvement cadence: analysis runs every sprint, applying is human's call.
|
|
161
|
+
- **Modified**: `brains/CLAUDE.md`, `brains/GEMINI.md`, `brains/AGENTS.md` — replaced "Follow the Safe Zone" with "Comply with ADRs" (concrete, already enforced by Architect).
|
|
162
|
+
- **Modified**: `bin/vbounce.mjs` — install now creates LESSONS.md if missing.
|
|
163
|
+
- **Modified**: `MANIFEST.md` — added bug.md and change_request.md to Template Registry. Updated template count (10→12).
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## [2026-03-22] — Ownership Restructure: Eliminate Process Knowledge Duplication
|
|
168
|
+
|
|
169
|
+
### Problem
|
|
170
|
+
Process knowledge (cascade rules, document hierarchy, critical rules, script registry, story states) was duplicated 2-3x across process-guide skill, doc-manager skill, MANIFEST.md, and brain files. Six concepts had no clear single owner, creating drift risk.
|
|
171
|
+
|
|
172
|
+
### Solution: Each concept has exactly ONE owner
|
|
173
|
+
|
|
174
|
+
**Ownership map:**
|
|
175
|
+
- **Brain files** own: identity, phase routing table, critical rules (14 rules), skill loading
|
|
176
|
+
- **doc-manager** owns: document hierarchy, information flow, cascade rules, story states, complexity labels, ambiguity rubric, planning workflows, transitions, archiving
|
|
177
|
+
- **agent-team** owns: bounce sequence, worktrees, reports, git strategy, escalation, cleanup
|
|
178
|
+
- **product-graph** owns: graph JSON interpretation, impact analysis, blocked document detection
|
|
179
|
+
- **lesson** owns: lesson recording, graduation
|
|
180
|
+
- **MANIFEST.md** owns: file/skill/script registries, file counts, version tracking (maintainer tool, not deployed)
|
|
181
|
+
|
|
182
|
+
### Changes
|
|
183
|
+
|
|
184
|
+
#### Deleted
|
|
185
|
+
- **Deleted**: `skills/process-guide/SKILL.md` — its content was distributed:
|
|
186
|
+
- Phase routing table → brain files (all three)
|
|
187
|
+
- Critical rules (14 rules) → brain files (all three)
|
|
188
|
+
- Script registry → deleted (redundant with CLI `--help` and each skill mentioning its own scripts)
|
|
189
|
+
- Cascade rules → already in doc-manager (single owner)
|
|
190
|
+
- Story states → already in doc-manager (single owner)
|
|
191
|
+
- Document hierarchy → already in doc-manager (single owner)
|
|
192
|
+
- Complexity labels → moved to doc-manager
|
|
193
|
+
|
|
194
|
+
#### Modified
|
|
195
|
+
- **Modified**: `skills/doc-manager/SKILL.md` — added Complexity Labels section (L1-L4 definitions) to TRANSITION area. doc-manager is now the single owner of all document-related cross-cutting concepts.
|
|
196
|
+
- **Modified**: `brains/CLAUDE.md` — added Phase Routing table (~10 lines) and Critical Rules (14 rules, ~25 lines). Removed process-guide references. ~85 lines total.
|
|
197
|
+
- **Modified**: `brains/GEMINI.md` — mirrored: added Phase Routing + Critical Rules, removed process-guide references. ~95 lines total (includes CLI commands).
|
|
198
|
+
- **Modified**: `brains/AGENTS.md` — mirrored: added Phase Routing + Critical Rules, removed process-guide references. ~70 lines total.
|
|
199
|
+
- **Modified**: `MANIFEST.md` — removed process-guide from Skill Registry. Updated skill count (48→47). Updated total count.
|
|
200
|
+
|
|
201
|
+
### Sync Notes
|
|
202
|
+
- All three main brain files (CLAUDE.md, GEMINI.md, AGENTS.md) have identical Phase Routing and Critical Rules sections.
|
|
203
|
+
- Cursor rules and Tier 4 brains (copilot, windsurf) not yet updated — should be synced in a follow-up change.
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## [2026-03-22] — Product Graph + Process Awareness (EPIC-003 + EPIC-004)
|
|
208
|
+
|
|
209
|
+
### Product Graph (EPIC-003)
|
|
210
|
+
|
|
211
|
+
#### Graph Generation Script (New)
|
|
212
|
+
- **Added**: `scripts/product_graph.mjs` — scans `product_plans/` active directories (strategy/, backlog/, sprints/, hotfixes/), extracts YAML frontmatter, outputs `.bounce/product-graph.json` with nodes (type, status, ambiguity, path, title) and edges (parent, depends-on, unlocks, context-source, feeds). Graceful empty graph for missing/empty product_plans/, skips malformed YAML with warning.
|
|
213
|
+
|
|
214
|
+
#### Impact Analysis Script (New)
|
|
215
|
+
- **Added**: `scripts/product_impact.mjs` — queries "what's affected by X?" using BFS traversal of the product graph. Outputs direct dependents, transitive dependents, upstream feeders. Visited-set for cycle protection. Supports `--json` output mode.
|
|
216
|
+
|
|
217
|
+
#### Product Graph Skill (New)
|
|
218
|
+
- **Added**: `skills/product-graph/SKILL.md` — interpretation rules for the product graph JSON. Three-tier loading protocol (graph JSON → specific frontmatter → full documents). Edge type semantics, regeneration triggers, blocked document detection logic.
|
|
219
|
+
|
|
220
|
+
#### CLI Wiring
|
|
221
|
+
- **Modified**: `bin/vbounce.mjs` — added `graph` command (`vbounce graph [generate]`, `vbounce graph impact <DOC-ID>`). Updated help text.
|
|
222
|
+
|
|
223
|
+
#### Sprint Lifecycle Integration
|
|
224
|
+
- **Modified**: `scripts/init_sprint.mjs` — added non-blocking product graph regeneration after sprint init.
|
|
225
|
+
- **Modified**: `scripts/complete_story.mjs` — added non-blocking product graph regeneration after story completion.
|
|
226
|
+
- **Modified**: `scripts/close_sprint.mjs` — added non-blocking product graph regeneration after sprint close.
|
|
227
|
+
|
|
228
|
+
#### Doc-Manager Cascade Rule
|
|
229
|
+
- **Modified**: `skills/doc-manager/SKILL.md` — added cascade rule: "After any cascade, run `vbounce graph` to regenerate the product graph."
|
|
230
|
+
|
|
231
|
+
### Process Awareness (EPIC-004)
|
|
232
|
+
|
|
233
|
+
#### Process-Guide Skill (New)
|
|
234
|
+
- **Added**: `skills/process-guide/SKILL.md` — condensed process intelligence from MANIFEST.md, doc-manager, and CLAUDE.md. Contains: process flow (4 phases), phase routing table (user intent → phase → skill to load), script registry (all scripts by category), document hierarchy and cascade rules, story states, complexity labels, self-improvement awareness, and all 14 critical rules. ~200 lines, ~3,000 tokens.
|
|
235
|
+
|
|
236
|
+
#### Brain File Slim-Down
|
|
237
|
+
- **Modified**: `brains/CLAUDE.md` — reduced from ~259 lines to ~55 lines. Moved process flow (Phase 1-4), critical rules, document locations, report formats, story states, complexity labels to process-guide skill. Kept: identity, skill pointers (with phase-based loading), subagent table, quick reference. agent-team now loads only during Phase 3 (was always-loaded).
|
|
238
|
+
- **Modified**: `brains/GEMINI.md` — mirrored slim-down. Skill loading now phase-based (process-guide always, doc-manager/product-graph for planning, agent-team for execution). Kept CLI commands section and quick reference.
|
|
239
|
+
- **Modified**: `brains/AGENTS.md` — mirrored slim-down. Same phase-based skill loading structure.
|
|
240
|
+
|
|
241
|
+
#### Agent-Team Conditional Loading
|
|
242
|
+
- **Modified**: `brains/CLAUDE.md` Skills section — agent-team is no longer `@`-included (always-loaded). Instead, it loads on-demand when entering Phase 3. Only lesson remains always-loaded via `@`. Context budget reduced from ~9,000 tokens always to ~500 tokens always + ~3,000 during planning + ~9,000 during execution.
|
|
243
|
+
|
|
244
|
+
### Integration
|
|
245
|
+
- **Modified**: `MANIFEST.md` — added process-guide and product-graph to Skill Registry. Added product_graph.mjs and product_impact.mjs to Script Registry (new "Product Graph" category). Updated Process Flow to reference new skills. Updated file counts (skills: 46→48, scripts: 24→26, total: ~162→~166). Version bumped to 2.1.0.
|
|
246
|
+
|
|
247
|
+
### Sync Notes
|
|
248
|
+
- All three main brain files (CLAUDE.md, GEMINI.md, AGENTS.md) are consistent in their skill loading structure and quick reference section.
|
|
249
|
+
- Cursor rules and Tier 4 brains (copilot, windsurf) not yet updated — should be synced in a follow-up change.
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## [2026-03-13] — Discovery Phase: Structured Spike System
|
|
254
|
+
|
|
255
|
+
### Spike Template (New)
|
|
256
|
+
- **Added**: `templates/spike.md` — spike document template with YAML frontmatter (spike_id, parent_epic_ref, status, ambiguity_before, time_box), 8 sections (Question, Constraints, Approach, Findings, Decision, Residual Risk, Affected Documents checklist, Change Log). Hierarchy Level 3.5 — child of Epic, sibling of Story. Output location: `product_plans/backlog/EPIC-{NNN}_{name}/SPIKE-{EpicID}-{NNN}-{topic}.md`.
|
|
257
|
+
|
|
258
|
+
### Discovery Reference (New)
|
|
259
|
+
- **Added**: `skills/agent-team/references/discovery.md` — spike execution protocol. Covers: when discovery triggers, spike lifecycle (Open → Investigating → Findings Ready → Validated → Closed), 4-step execution protocol (Create → Investigate → Validate → Close & Propagate), timing rules, integration with bounce sequence.
|
|
260
|
+
|
|
261
|
+
### Doc-Manager Skill (Modified)
|
|
262
|
+
- **Modified**: `skills/doc-manager/SKILL.md` — added Spike row to Template Locations table; added spike file to folder structure diagram; added spike information flows (Epic §8 → Spike §1, Spike §4 → Epic §4, Spike §5 → Roadmap §3, Spike §6 → Risk Registry); added Spike pre-read requirements; added spike cascade rules; added spike transition gates (Probing/Spiking → Refinement, Spike → Validated, Spike → Closed); updated Developer and Architect agent integration rows with spike ownership; added Ambiguity Assessment Rubric section with 🔴/🟡/🟢 signal definitions and spike creation trigger.
|
|
263
|
+
|
|
264
|
+
### Agent-Team Skill (Modified)
|
|
265
|
+
- **Modified**: `skills/agent-team/SKILL.md` — added Step 0.5: Discovery Check between Sprint Setup and Story Initialization; added critical rule "Resolve discovery before bouncing" requiring L4/🔴 stories to complete spikes before entering bounce sequence.
|
|
266
|
+
|
|
267
|
+
### Claude Brain (Modified)
|
|
268
|
+
- **Modified**: `brains/CLAUDE.md` — added Discovery Check to Pre-Bounce Checks; expanded L4 complexity label with spike creation and validation requirements; updated Story States diagram to show spike sub-flow (Dev investigates → Arch validates → docs updated).
|
|
269
|
+
|
|
270
|
+
### Sync Notes
|
|
271
|
+
- Other brain files (`GEMINI.md`, `AGENTS.md`, `cursor-rules/`) not yet updated — should be synced in a follow-up change.
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## [2026-03-12] — LanceDB Removal
|
|
276
|
+
|
|
277
|
+
- **Removed**: `scripts/vbounce_ask.mjs` — LanceDB semantic query tool. Replaced by direct `LESSONS.md` reads.
|
|
278
|
+
- **Removed**: `scripts/vbounce_index.mjs` — LanceDB indexer. No longer needed.
|
|
279
|
+
- **Removed**: `scripts/pre_bounce_sync.sh` — RAG sync script. No longer needed.
|
|
280
|
+
- **Modified**: `package.json` — Removed `@lancedb/lancedb` and `@xenova/transformers` dependencies. Only `js-yaml`, `marked`, `commander` remain.
|
|
281
|
+
- **Modified**: `bin/vbounce.mjs` — Removed `vbounce sync` command; simplified `install` to not run RAG init or install embedding deps.
|
|
282
|
+
- **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".
|
|
283
|
+
- **Modified**: `brains/claude-agents/developer.md`, `qa.md`, `architect.md` — "Before" steps now read LESSONS.md directly instead of calling `vbounce_ask.mjs`.
|
|
284
|
+
- **Modified**: `brains/SETUP.md` — Step 7 rewritten as "Initialize Your First Sprint" (`vbounce sprint init`, `vbounce doctor`, `vbounce prep sprint`).
|
|
285
|
+
- **Modified**: `brains/CHANGELOG.md` Rule 13 — Removed `pre_bounce_sync.sh` trigger; only CHANGELOG.md update required.
|
|
286
|
+
- **Modified**: `templates/story.md`, `templates/hotfix.md` — Framework Integrity checklist item no longer mentions `pre_bounce_sync.sh`.
|
|
287
|
+
- **Modified**: `scripts/doctor.mjs` — Removed `pre_bounce_sync.sh` from required scripts list (now 15 scripts).
|
|
288
|
+
- **Modified**: `skills/improve/SKILL.md` — "RAG Pipeline" area renamed to "Context Prep" pointing to prep scripts.
|
|
289
|
+
- **Modified**: `README.md` — Removed "Semantic Context (Local RAG)" section; updated Tech Stack to reflect file-based context model; updated CLI reference.
|
|
290
|
+
- **Modified**: `.gitignore` — Removed `.bounce/.lancedb/` entry.
|
|
291
|
+
- **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.
|
|
292
|
+
|
|
293
|
+
## [2026-03-12] — V-Bounce Engine Optimization Plan (12-Change Batch)
|
|
294
|
+
|
|
295
|
+
### State Management (Change #1)
|
|
296
|
+
- **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).
|
|
297
|
+
- **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.
|
|
298
|
+
- **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.
|
|
299
|
+
- **Modified**: `brains/CLAUDE.md` Phase 2 Step 0 — updated to "Orient via state: Read `.bounce/state.json`" for instant context recovery.
|
|
300
|
+
- **Modified**: `brains/GEMINI.md` Phase 2 Step 0 — same state.json orientation update.
|
|
301
|
+
|
|
302
|
+
### Sprint Scripts (Change #2)
|
|
303
|
+
- **Added**: `scripts/init_sprint.mjs` — creates `.bounce/` dir, state.json (stories in Draft), sprint plan dir, copies template; prints git commands.
|
|
304
|
+
- **Added**: `scripts/close_sprint.mjs` — validates terminal states, archives sprint report, updates state.json, prints manual steps.
|
|
305
|
+
- **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.
|
|
306
|
+
|
|
307
|
+
### Sprint Plan as Accumulator (Change #3)
|
|
308
|
+
- **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.
|
|
309
|
+
- **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.
|
|
310
|
+
|
|
311
|
+
### Richer YAML in Agent Reports (Change #4)
|
|
312
|
+
- **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.
|
|
313
|
+
- **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.
|
|
314
|
+
- **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.
|
|
315
|
+
|
|
316
|
+
### Validation Layer (Change #9)
|
|
317
|
+
- **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.
|
|
318
|
+
- **Added**: `scripts/validate_sprint_plan.mjs` — validates sprint plan structure and cross-references.
|
|
319
|
+
|
|
320
|
+
### Context Management (Change #12)
|
|
321
|
+
- **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.
|
|
322
|
+
- **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.
|
|
323
|
+
- **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.
|
|
324
|
+
- **Added**: `scripts/prep_sprint_summary.mjs` — generates `.bounce/sprint-summary-S-XX.md` from archived reports.
|
|
325
|
+
- **Added**: `vbounce.config.json` — `{ maxDiffLines: 500, maxContextLines: 200, maxQaContextLines: 300, contextBudgetWarningTokens: 12000, lessonStaleDays: 90, tool: "claude" }`.
|
|
326
|
+
- **Modified**: `brains/CLAUDE.md` Skills section — agent-team + lesson always-loaded; other skills moved to on-demand; context budget note added.
|
|
327
|
+
|
|
328
|
+
### Self-Improvement Loop (Change #10)
|
|
329
|
+
- **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`.
|
|
330
|
+
- **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`.
|
|
331
|
+
- **Added**: `.bounce/improvement-log.md` — Applied/Rejected/Deferred tracking table.
|
|
332
|
+
- **Modified**: `brains/CLAUDE.md` Phase 3 — added `vbounce trends` + `vbounce suggest S-{XX}` to end-of-sprint workflow.
|
|
333
|
+
|
|
334
|
+
### Root Cause Tagging (Change #11)
|
|
335
|
+
- **Modified**: `brains/claude-agents/qa.md` — added `root_cause:` enum field to FAIL report YAML template.
|
|
336
|
+
- **Modified**: `brains/claude-agents/architect.md` — added `root_cause:` enum field to FAIL report YAML template.
|
|
337
|
+
- **Modified**: `scripts/validate_report.mjs` — `root_cause` validated against 12-value enum for QA and Arch FAIL reports.
|
|
338
|
+
|
|
339
|
+
### Document Separation of Concerns (Change #7)
|
|
340
|
+
- **Modified**: `skills/agent-team/SKILL.md` — Sprint Plan Sync table updated to 3-column format; Delivery Plan updated ONLY at sprint close.
|
|
341
|
+
- **Added**: `skills/agent-team/references/delivery-sync.md` — core rule table, what each document owns, "Never Do This" list.
|
|
342
|
+
- **Added**: `skills/agent-team/references/report-naming.md` — canonical naming conventions for all report files.
|
|
343
|
+
- **Added**: `skills/agent-team/references/cleanup.md` — after-story and after-sprint cleanup procedures, retention policy table.
|
|
344
|
+
- **Added**: `skills/agent-team/references/git-strategy.md` — branch model, all git commands for sprint/worktree/merge/cleanup.
|
|
345
|
+
|
|
346
|
+
### Lesson Graduation (Change #6)
|
|
347
|
+
- **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").
|
|
348
|
+
|
|
349
|
+
### Automation CLI (Change #8)
|
|
350
|
+
- **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`.
|
|
351
|
+
|
|
352
|
+
### Framework Health (Change #8)
|
|
353
|
+
- **Added**: `scripts/doctor.mjs` — health check; verifies LESSONS.md, templates, .bounce/, state.json, brain files, skills, scripts; exits 1 on hard failures.
|
|
354
|
+
|
|
355
|
+
### Tier 4 Brain Files (Change #12)
|
|
356
|
+
- **Added**: `brains/copilot/copilot-instructions.md` — Tier 4 (Copilot/VS Code) brain file: key behaviors, CLI commands, document hierarchy, report format, critical rules.
|
|
357
|
+
- **Added**: `brains/windsurf/.windsurfrules` — Tier 4 (Windsurf) brain file: before-coding checklist, document rules, state management commands, critical rules.
|
|
358
|
+
- **Modified**: `brains/GEMINI.md` — added full `## CLI Commands` section with all 15+ vbounce commands.
|
|
359
|
+
|
|
360
|
+
---
|
|
361
|
+
|
|
362
|
+
## [2026-03-02]
|
|
363
|
+
- **Initialized**: Created strict Framework Integrity tracking, YAML context handoffs, and RAG validation pipeline.
|
|
364
|
+
|
|
365
|
+
## [2026-03-06] — Pre-Gate Automation
|
|
366
|
+
- **Added**: `scripts/pre_gate_common.sh` — shared gate check functions with auto-detection for JS/TS, Python, Rust, Go stacks.
|
|
367
|
+
- **Added**: `scripts/pre_gate_runner.sh` — universal pre-gate scanner. Reads `.bounce/gate-checks.json` config or falls back to auto-detected defaults. Runs before QA (`qa`) and Architect (`arch`) agents to catch mechanical failures with zero tokens.
|
|
368
|
+
- **Added**: `scripts/init_gate_config.sh` — auto-detects project stack (language, framework, test runner, build/lint commands) and generates `.bounce/gate-checks.json`.
|
|
369
|
+
- **Modified**: `brains/claude-agents/qa.md` — added Pre-Computed Scan Results section. QA skips checks covered by `pre-qa-scan.txt`.
|
|
370
|
+
- **Modified**: `brains/claude-agents/architect.md` — added Pre-Computed Scan Results section. Architect skips mechanical checks covered by `pre-arch-scan.txt`.
|
|
371
|
+
- **Modified**: `brains/claude-agents/devops.md` — added `npm run lint` (tsc --noEmit) to post-merge validation.
|
|
372
|
+
- **Modified**: `skills/agent-team/SKILL.md` — wired pre-gate scans into Steps 3 (QA) and 4 (Architect). Added gate config init to Step 0 sprint setup. Added lint to post-merge validation.
|
|
373
|
+
- **Modified**: All brain files (`CLAUDE.md`, `GEMINI.md`, `AGENTS.md`, `cursor-rules/vbounce-process.mdc`) — updated bounce sequence to include pre-gate scan steps.
|
|
374
|
+
- **Modified**: `skills/improve/SKILL.md` — added Gate Check Proposals section for iteratively growing project-specific checks via `gate-checks.json`.
|
|
375
|
+
|
|
376
|
+
## [2026-03-06]
|
|
377
|
+
- **Fixed**: All brain files (`CLAUDE.md`, `GEMINI.md`, `AGENTS.md`) incorrectly referenced `DELIVERY_PLAN.md §5 Open Questions` or `ACTIVE_SPRINT.md §3 Open Questions`. Corrected to `sprint-{XX}.md §2 Sprint Open Questions` to match the authoritative `agent-team/SKILL.md` and `sprint.md` template.
|
|
378
|
+
- **Fixed**: Removed duplicate "Product Plans Folder Structure" header in `doc-manager/SKILL.md`.
|
|
379
|
+
- **Fixed**: `cursor-rules/vbounce-process.mdc` was missing Execution Mode, Sequential Dependencies, Impact Analysis Protocol, and Strategic Freeze rules from the 2026-03-05 update. Propagated.
|
|
380
|
+
- **Removed**: `templates/active_sprint.md` — orphaned by the state-based refactor. Superseded by `templates/sprint.md`.
|
|
381
|
+
- **Modified**: `cursor-rules/vbounce-rules.mdc` — added Rule 6 (JSDoc/docstrings), Rule 13 (YAML Frontmatter), Rule 14 (Framework Integrity) to match other brains.
|
|
382
|
+
- **Modified**: `cursor-rules/vbounce-docs.mdc` — added Hotfix and Sprint Report entries to Document Locations table.
|
|
383
|
+
- **Modified**: `cursor-rules/vbounce-process.mdc` — added `pre_bounce_sync.sh` and `validate_report.mjs` steps to Phase 2.
|
|
384
|
+
- **Modified**: Renamed `product_documentation/` → `vdocs/` across all brains, skills, agents, templates, scripts, diagrams, README, OVERVIEW, and SETUP to align with `@sandrinio/vdoc` output conventions.
|
|
385
|
+
- **Modified**: `bin/vbounce.mjs` — added optional vdoc installation step that auto-maps the user's chosen platform to the corresponding `npx @sandrinio/vdoc install <platform>` command.
|
|
386
|
+
- **Modified**: `brains/SETUP.md` — updated folder structure diagram to reflect state-based `product_plans/` layout.
|
|
387
|
+
- **Added**: `skills/improve/SKILL.md` — framework self-improvement skill. Reads agent Process Feedback from sprint retros, identifies patterns, proposes changes to templates/skills/brains/scripts with human approval.
|
|
388
|
+
- **Modified**: All agent report templates (`developer.md`, `qa.md`, `architect.md`, `devops.md`, `scribe.md`) — added `## Process Feedback` section for framework friction signals.
|
|
389
|
+
- **Modified**: `templates/sprint_report.md` §5 Retrospective — restructured into categorized Framework Self-Assessment (Templates, Handoffs, RAG, Skills, Process Flow, Tooling) with severity and suggested fixes.
|
|
390
|
+
- **Modified**: `skills/agent-team/SKILL.md` Step 7 — added Framework Self-Assessment aggregation and `improve` skill trigger.
|
|
391
|
+
- **Modified**: All brain files and `README.md` — added `improve` skill to skill references.
|
|
392
|
+
|
|
393
|
+
## [2026-03-05]
|
|
394
|
+
- **Modified**: Added `tokens_used` tracking to all agent instructions (`brains/claude-agents/*`).
|
|
395
|
+
- **Modified**: Updated `skills/agent-team/SKILL.md` to consolidate tokens into `sprint_report.md`.
|
|
396
|
+
- **Modified**: Updated `scripts/validate_report.mjs` to enforce `tokens_used` schema presence.
|
|
397
|
+
- **Modified**: Refactored `STORY-{EpicID}-{StoryID}` file naming convention to `STORY-{EpicID}-{StoryID}-{StoryName}` across all templates, agent instructions, skill definitions, and architecture files for better human readability.
|
|
398
|
+
- **Modified**: Refactored the generic `product_plans` folder into a state-based architecture (`strategy/`, `backlog/`, `sprints/`, `hotfixes/`, `archive/`). Separated Sprint tracking logic from `DELIVERY_PLAN.md` into a new `sprint.md` template. Updated `doc-manager` and `agent-team` orchestration to adhere to these physical transition rules.
|
package/brains/CLAUDE.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# V-Bounce Engine — Agent Brain
|
|
2
|
+
|
|
3
|
+
> This file configures Claude Code to operate within the V-Bounce Engine framework.
|
|
4
|
+
|
|
5
|
+
## Identity
|
|
6
|
+
|
|
7
|
+
You are an AI operating within **V-Bounce Engine** — a structured system for planning, implementing, and validating software.
|
|
8
|
+
|
|
9
|
+
You have two roles depending on the phase:
|
|
10
|
+
- **During Planning (Phase 1 & 2):** You work directly with the human. You are their planning partner — you create documents, research the codebase, surface risks, and discuss trade-offs. You MAY spawn the **Explorer** agent (Haiku) for raw fact-gathering; Explorer returns a structured Context Pack — you analyze it.
|
|
11
|
+
- **During Execution (Phase 3):** You are the Team Lead orchestrating specialist subagents (Developer, QA, Architect, DevOps, Scribe) through structured reports.
|
|
12
|
+
|
|
13
|
+
You MUST follow the V-Bounce process. Deviating from it — skipping validation, ignoring LESSONS.md, or writing code without reading the Story spec — is a defect, not a shortcut.
|
|
14
|
+
|
|
15
|
+
## Phase Routing
|
|
16
|
+
|
|
17
|
+
Determine which phase you're in from what the human is asking, then load the right skill.
|
|
18
|
+
|
|
19
|
+
| User Intent | Phase | Load |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| Plan, create, discuss features, priorities, status | Phase 1 (Planning) | `doc-manager`, `product-graph` |
|
|
22
|
+
| "Start a sprint", scope selection, "what should we work on?" | Phase 2 (Sprint Planning) | `doc-manager`, `product-graph` |
|
|
23
|
+
| Sprint confirmed, "bounce", implement stories | Phase 3 (Execution) | `agent-team` |
|
|
24
|
+
| Review sprint, retrospective, improvement | Phase 4 (Review) | `improve` |
|
|
25
|
+
| Scope change to existing documents | Any | `product-graph` (impact first), then `doc-manager` |
|
|
26
|
+
| Code review | Any | `vibe-code-review` |
|
|
27
|
+
| Lesson or gotcha to record | Any | `lesson` |
|
|
28
|
+
|
|
29
|
+
## Critical Rules
|
|
30
|
+
|
|
31
|
+
### Before Writing Code
|
|
32
|
+
1. **Read LESSONS.md** at the project root. Every time. No exceptions.
|
|
33
|
+
2. **Read the Story spec** (§1 The Spec + §3 Implementation Guide). Do not infer requirements.
|
|
34
|
+
3. **Check ADRs** in the Roadmap (§3). Comply with recorded architecture decisions.
|
|
35
|
+
|
|
36
|
+
### During Implementation
|
|
37
|
+
4. **Comply with ADRs**. No new patterns or libraries unless approved in Roadmap §3. The Architect validates compliance.
|
|
38
|
+
5. **No Gold-Plating**. Implement exactly what the Story specifies.
|
|
39
|
+
6. **Write Self-Documenting Code**. All exports MUST have JSDoc/docstrings.
|
|
40
|
+
7. **Self-assess Correction Tax**. Track % human intervention.
|
|
41
|
+
|
|
42
|
+
### After Implementation
|
|
43
|
+
8. **Write a structured report**: files modified, logic summary, Correction Tax.
|
|
44
|
+
9. **Flag lessons**. Gotchas and multi-attempt fixes get flagged for recording.
|
|
45
|
+
|
|
46
|
+
### Always
|
|
47
|
+
10. **Reports are the only handoff**. No direct agent-to-agent communication.
|
|
48
|
+
11. **One source of truth**. Reference upstream documents, don't duplicate.
|
|
49
|
+
12. **Change Logs are mandatory** on every document modification.
|
|
50
|
+
13. **Agent Reports MUST use YAML Frontmatter**. Every `.vbounce/report/` file starts with strict YAML.
|
|
51
|
+
14. **Framework Integrity**. Any modification to `.claude/agents/`, `.vbounce/skills/`, `.vbounce/templates/`, or `.vbounce/scripts/` MUST be recorded in `.vbounce/CHANGELOG.md` and reflected in `VBOUNCE_MANIFEST.md`.
|
|
52
|
+
|
|
53
|
+
## Skills
|
|
54
|
+
|
|
55
|
+
@.vbounce/skills/lesson/SKILL.md
|
|
56
|
+
|
|
57
|
+
> **Loaded by phase** (see Phase Routing above):
|
|
58
|
+
> - **Planning (Phase 1 & 2):** Load `@.vbounce/skills/doc-manager/SKILL.md` + `@.vbounce/skills/product-graph/SKILL.md`
|
|
59
|
+
> - **Execution (Phase 3):** Load `@.vbounce/skills/agent-team/SKILL.md`
|
|
60
|
+
|
|
61
|
+
> **On-demand skills:**
|
|
62
|
+
> - `/doc` → `@.vbounce/skills/doc-manager/SKILL.md`
|
|
63
|
+
> - `/review` → `@.vbounce/skills/vibe-code-review/SKILL.md` — code review
|
|
64
|
+
> - `/write-skill` → `@.vbounce/skills/write-skill/SKILL.md` — skill authoring
|
|
65
|
+
> - `/improve` → `@.vbounce/skills/improve/SKILL.md` — framework improvement
|
|
66
|
+
> - `/react` → `@.vbounce/skills/react-best-practices/SKILL.md` — frontend patterns
|
|
67
|
+
|
|
68
|
+
## Subagents
|
|
69
|
+
|
|
70
|
+
Specialized agents in `.claude/agents/`:
|
|
71
|
+
|
|
72
|
+
| Agent | Config | Role |
|
|
73
|
+
|-------|--------|------|
|
|
74
|
+
| Explorer | `.claude/agents/explorer.md` | Gathers raw facts during Planning (Haiku model). Tools: Read, Glob, Grep, Bash (no Edit/Write) |
|
|
75
|
+
| Developer | `.claude/agents/developer.md` | Implements features. Tools: Read, Edit, Write, Bash, Glob, Grep |
|
|
76
|
+
| QA | `.claude/agents/qa.md` | Validates against acceptance criteria. Tools: Read, Bash, Glob, Grep (no Edit/Write) |
|
|
77
|
+
| Architect | `.claude/agents/architect.md` | Audits structure and compliance. Tools: Read, Glob, Grep, Bash (no Edit/Write) |
|
|
78
|
+
| DevOps | `.claude/agents/devops.md` | Merges, deploys, infra checks. Tools: Read, Edit, Write, Bash, Glob, Grep |
|
|
79
|
+
| Scribe | `.claude/agents/scribe.md` | Product documentation generation. Tools: Read, Write, Bash, Glob, Grep |
|
|
80
|
+
|
|
81
|
+
Reports flow through `.vbounce/reports/` — see agent-team skill for the full orchestration protocol.
|
|
82
|
+
|
|
83
|
+
## Quick Reference
|
|
84
|
+
|
|
85
|
+
- **Document ops:** `.vbounce/skills/doc-manager/SKILL.md` — hierarchy, cascade rules, planning workflows
|
|
86
|
+
- **Product graph:** `.vbounce/product-graph.json` — document relationships and state
|
|
87
|
+
- **Bounce orchestration:** `.vbounce/skills/agent-team/SKILL.md` — subagent delegation, worktrees, sprint execution
|
|
88
|
+
- **Planning docs:** `product_plans/` — `strategy/`, `backlog/`, `sprints/`, `hotfixes/`, `archive/`
|
|
89
|
+
- **Sprint state:** `.vbounce/state.json` — machine-readable sprint state
|
|
90
|
+
- **Framework map:** `VBOUNCE_MANIFEST.md` — complete file and process registry
|