|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [1.57.9.0] - 2026-06-09 |
| 4 | + |
| 5 | +## **Your gstack checkout stays clean when gbrain is installed.** |
| 6 | +## **Brain-aware skill blocks render to an untracked spot, never into tracked source.** |
| 7 | + |
| 8 | +Before this, finishing a Conductor or dev-workspace setup with gbrain installed |
| 9 | +rewrote 16 planning and review SKILL.md files in place, adding 326 lines of |
| 10 | +brain-aware blocks straight into tracked source. Your working tree came back dirty, |
| 11 | +one stray `git add` away from committing a token regression for everyone who does |
| 12 | +not run gbrain. Now `gen-skill-docs --out-dir` renders the brain-aware variant into |
| 13 | +an untracked per-workspace directory, and `bin/dev-setup` repoints the workspace's |
| 14 | +skill symlinks at it. The dev workspace gets the full gbrain experience (context-load |
| 15 | +and save-to-brain blocks live at runtime), while the tracked SKILL.md files stay |
| 16 | +byte-for-byte canonical. To turn the blocks on across all your projects' Claude |
| 17 | +sessions, `gstack-config gbrain-refresh` now renders them into your global install, |
| 18 | +guarded so it never mutates a symlinked or non-gstack directory. |
| 19 | + |
| 20 | +### The numbers that matter |
| 21 | + |
| 22 | +Structural facts of the change, verifiable from the diff plus `bun run gen:skill-docs` |
| 23 | +(zero drift) and the new behavioral test (`test/gen-skill-docs-out-dir.test.ts`). |
| 24 | + |
| 25 | +| When gbrain is installed | Before | After | |
| 26 | +|---|---|---| |
| 27 | +| Tracked SKILL.md files dirtied by dev-setup | 16 (+326 lines) | 0 | |
| 28 | +| Where brain-aware blocks render in a dev workspace | in-place, tracked source | `.claude/gstack-rendered/`, untracked | |
| 29 | +| Brain-aware blocks across other projects | re-run `./setup` or hand-edit | `gstack-config gbrain-refresh` (idempotent) | |
| 30 | +| "Is gbrain usable" check | per-caller JSON grep, can read stale state | `gstack-gbrain-detect --is-ok` (one live gate) | |
| 31 | + |
| 32 | +The section-path rewrite is surgical: only `~/.claude/skills/gstack/<skill>/sections/` |
| 33 | +references move to the render dir, so `bin/` and `docs/` references still resolve to |
| 34 | +the install. |
| 35 | + |
| 36 | +### What this means for you |
| 37 | + |
| 38 | +If you develop gstack with gbrain on, `git status` is clean again after setup, and |
| 39 | +you can stop fishing brain-block drift out of your commits. After a |
| 40 | +`git reset --hard` deploy of your install, re-run `gstack-config gbrain-refresh` to |
| 41 | +restore the machine-wide blocks (it is idempotent, and the deploy note in CLAUDE.md |
| 42 | +spells this out). |
| 43 | + |
| 44 | +### Itemized changes |
| 45 | + |
| 46 | +#### Added |
| 47 | +- `gen-skill-docs --out-dir <dir>`: render the Claude SKILL.md + sections into a |
| 48 | + separate directory instead of in place, rewriting only the section-base path so |
| 49 | + section reads resolve to the render. Default (no flag) output is unchanged. |
| 50 | +- `gstack-gbrain-detect --is-ok`: live-detection exit-code gate (0 iff gbrain is |
| 51 | + usable), so setup, dev-setup, and gstack-config share one check. |
| 52 | +- `gstack-config gbrain-refresh` now renders brain-aware blocks into the global |
| 53 | + install (`~/.claude/skills/gstack`), guarded against symlinked or non-gstack |
| 54 | + targets and self-documenting about the `reset --hard` re-run cycle. |
| 55 | + |
| 56 | +#### Changed |
| 57 | +- `bin/dev-setup` renders the brain-aware variant into `.claude/gstack-rendered` |
| 58 | + (gitignored) and repoints workspace skill symlinks at it; the worktree stays |
| 59 | + canonical. `GSTACK_SKIP_GBRAIN_REGEN` is passed inline to the nested setup, never |
| 60 | + exported. |
| 61 | +- `setup` honors `GSTACK_SKIP_GBRAIN_REGEN` (skips the in-place brain regen on dev |
| 62 | + trees) and writes detection state to a PID-unique tmp so concurrent workspaces |
| 63 | + cannot clobber it. |
| 64 | +- `scripts/dev-skill.ts` refreshes the workspace render on template change, only |
| 65 | + when the render dir already exists. |
| 66 | +- `bin/dev-teardown` removes the untracked render. |
| 67 | + |
| 68 | +#### For contributors |
| 69 | +- New tests: `test/gen-skill-docs-out-dir.test.ts` (behavioral: worktree unchanged, |
| 70 | + blocks rendered, section paths rewritten), `test/dev-setup-render-isolation.test.ts` |
| 71 | + and `test/gbrain-refresh-install-render.test.ts` (static tripwires), plus |
| 72 | + `--is-ok` coverage in `test/gbrain-detect-shape.test.ts`. |
| 73 | + |
3 | 74 | ## [1.57.8.0] - 2026-06-09 |
4 | 75 |
|
5 | 76 | ## **`browse` is now the one Chromium on the box, for offline rendering too.** |
|
0 commit comments