project-brain 0.43.0 → 0.45.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 +97 -11
- package/package.json +6 -6
- package/templates/claude-tui/activity-pane/.claude-plugin/plugin.json +7 -0
- package/templates/claude-tui/activity-pane/hooks/feat-agents.tsx +179 -0
- package/templates/claude-tui/activity-pane/hooks/feat-blocked.tsx +232 -0
- package/templates/claude-tui/activity-pane/hooks/feat-ci.tsx +400 -0
- package/templates/claude-tui/activity-pane/hooks/feat-context.tsx +283 -0
- package/templates/claude-tui/activity-pane/hooks/feat-notify.tsx +145 -0
- package/templates/claude-tui/activity-pane/hooks/feat-progress.tsx +413 -0
- package/templates/claude-tui/activity-pane/hooks/feat-running.tsx +528 -0
- package/templates/claude-tui/activity-pane/hooks/feat-savings.tsx +533 -0
- package/templates/claude-tui/activity-pane/hooks/hooks.json +1 -0
- package/templates/claude-tui/activity-pane/hooks/register.tsx +2141 -0
- package/templates/claude-tui/activity-pane/types/index.d.ts +201 -0
- package/templates/claude-tui/context-gate/.claude-plugin/plugin.json +7 -0
- package/templates/claude-tui/context-gate/hooks/hooks.json +1 -0
- package/templates/claude-tui/context-gate/hooks/register.tsx +355 -0
- package/templates/claude-tui/context-gate/types/index.d.ts +28 -0
- package/templates/claude-tui/skill-listing/.claude-plugin/plugin.json +7 -0
- package/templates/claude-tui/skill-listing/hooks/hooks.json +1 -0
- package/templates/claude-tui/skill-listing/hooks/register.tsx +300 -0
- package/templates/claude-tui/skill-listing/types/index.d.ts +22 -0
- package/templates/model-routing.md +10 -0
- package/templates/skills/brain-design-review/SKILL.md +65 -0
- package/templates/skills/brain-design-review/references/audit.md +56 -0
- package/templates/skills/brain-design-review/references/fix-loop.md +36 -0
- package/templates/skills/brain-design-review/references/probes.md +80 -0
- package/templates/skills/brain-qa-only/SKILL.md +59 -0
- package/templates/skills/brain-qa-only/references/report.md +63 -0
- package/templates/skills/brain-worktree/SKILL.md +18 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# QA report
|
|
2
|
+
|
|
3
|
+
Write to `<report dir>/run-<UTC timestamp>/qa-report-<target>-<date>.md`. `<target>` is the hostname, executable basename or service name, with anything but letters, digits and hyphens replaced by hyphens. Never overwrite an earlier run.
|
|
4
|
+
|
|
5
|
+
## Template
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# QA report: <target>
|
|
9
|
+
|
|
10
|
+
Date, branch and revision, mode, scope, who authorized what, timing and stop reason.
|
|
11
|
+
|
|
12
|
+
## Charters
|
|
13
|
+
One per probe: expected result, risk, entrypoint, isolation, exit condition. Written before probing.
|
|
14
|
+
|
|
15
|
+
## Summary
|
|
16
|
+
Health in a sentence, counts by severity, the three findings that matter most.
|
|
17
|
+
|
|
18
|
+
## Findings
|
|
19
|
+
### QA-001 <title>
|
|
20
|
+
- Severity: Blocker | Major | Minor | Polish
|
|
21
|
+
- Surface and entrypoint
|
|
22
|
+
- Steps to reproduce (numbered, from a clean state)
|
|
23
|
+
- Expected / Actual
|
|
24
|
+
- Evidence: screenshot path, console or network line, command output, exit code
|
|
25
|
+
- Reproduced: N of N runs
|
|
26
|
+
- Suspected area: one line, no fix
|
|
27
|
+
|
|
28
|
+
## Proposed tests
|
|
29
|
+
Each with a value card.
|
|
30
|
+
|
|
31
|
+
## Coverage
|
|
32
|
+
Reached, not reached and why, blocked by environment.
|
|
33
|
+
|
|
34
|
+
## Cleanup
|
|
35
|
+
What was created and removed.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Severity
|
|
39
|
+
|
|
40
|
+
| Level | Meaning |
|
|
41
|
+
|---|---|
|
|
42
|
+
| Blocker | core flow cannot complete, data loss, security boundary crossed |
|
|
43
|
+
| Major | core flow degraded, wrong result, no workaround |
|
|
44
|
+
| Minor | wrong but with a workaround, or off the core path |
|
|
45
|
+
| Polish | cosmetic or wording |
|
|
46
|
+
|
|
47
|
+
## Test value bar
|
|
48
|
+
|
|
49
|
+
Propose a test only when it answers: what it protects, what makes it fail, why existing coverage does not catch it (prefer a row in an existing table-driven test), and whether it needs a production seam that no production caller needs. If it needs one, test at the real boundary instead.
|
|
50
|
+
|
|
51
|
+
Value card under each proposed test:
|
|
52
|
+
|
|
53
|
+
`Value: protects=<...>; fails_when=<...>; why_new=<...>; seam=none; no_claim=<what green does not prove>`
|
|
54
|
+
|
|
55
|
+
Reject with the covering file named: "checkout renders is covered by checkout.e2e.ts:15, extend that test."
|
|
56
|
+
|
|
57
|
+
## Regression mode
|
|
58
|
+
|
|
59
|
+
Replay the prior report's reproduction steps. Classify each as fixed, still failing, or new. A missing baseline blocks that surface's regression coverage, not the other checks.
|
|
60
|
+
|
|
61
|
+
## Consistency check before writing
|
|
62
|
+
|
|
63
|
+
Every finding has steps, expected versus actual and evidence. Counts in the summary match the findings. Nothing claims an edit was made. Anything not run is marked not run.
|
|
@@ -44,6 +44,24 @@ only the files that actually differ get embedded. It copies nothing when the mai
|
|
|
44
44
|
has no index, when the worktree already has one, or when the two would disagree about the
|
|
45
45
|
embedding model, and a full index in those cases is the correct answer, not a failure.
|
|
46
46
|
|
|
47
|
+
## Dependencies
|
|
48
|
+
|
|
49
|
+
`worktree create` also gives the worktree the main checkout's `node_modules` without a
|
|
50
|
+
second copy on disk: the root one and every workspace package's (from `package.json`
|
|
51
|
+
`workspaces` or `pnpm-workspace.yaml`), each only where that package exists in the worktree
|
|
52
|
+
and has none yet. It clones them copy-on-write (`cp -c -R` on macOS/APFS,
|
|
53
|
+
`cp --reflink=always` on Linux). A clone is independent: changing a dependency inside the
|
|
54
|
+
worktree never touches the main checkout. When the lockfile content hash differs from the
|
|
55
|
+
main checkout's, it clones anyway and then runs the lockfile's package manager install in
|
|
56
|
+
the worktree (`bun`, `pnpm`, `npm` or `yarn install`), which only writes what changed.
|
|
57
|
+
That install runs the package manager's lifecycle scripts (such as `postinstall`) from the
|
|
58
|
+
worktree's `package.json`. If it fails, times out (10 minutes), or the tool is missing,
|
|
59
|
+
every clone is removed, along with any `node_modules` the install created, and `create`
|
|
60
|
+
prints one line saying why; install in the worktree yourself. On macOS the main checkout
|
|
61
|
+
and the worktree must be on the same APFS volume; on HFS+, exFAT, or another volume, and
|
|
62
|
+
whenever the filesystem cannot clone, nothing is copied (never a full copy) and `create`
|
|
63
|
+
prints one line saying why.
|
|
64
|
+
|
|
47
65
|
## The one identifier rule
|
|
48
66
|
|
|
49
67
|
`project-brain worktree status --json` returns both spellings. They are not
|