Commit e1a9141
committed
fix(brain-allowlist): sync project-root design and test-plan artifacts
Fixes #1452.
`/office-hours` Builder, `/plan-eng-review`, and `/autoplan` write their
output at the project root, not under `designs/`:
projects/{slug}/{user}-{branch}-design-{datetime}.md
projects/{slug}/{user}-{branch}-test-plan-{datetime}.md
projects/{slug}/{user}-{branch}-eng-review-test-plan-{datetime}.md
The `.brain-allowlist` generated by `gstack-artifacts-init` covers
`projects/*/designs/*.md` and the `ceo-plans/` paths, so CEO plans
sync correctly but the design / test-plan artifacts they reference do
not. Pull on machine B and you get the CEO plan but not the underlying
design, breaking the cross-machine plan-references-design chain.
Add three root-anchored globs to the managed block of `.brain-allowlist`:
projects/*/*-design-*.md
projects/*/*-test-plan-*.md
projects/*/*-eng-review-test-plan-*.md
The `*` glob doesn't match path separators, so these patterns are
disjoint from the existing `designs/*.md` patterns — no double-sync,
no churn for installs that already had the subdirectory layout.
Mirror the three patterns in `.brain-privacy-map.json` with
`"class": "artifact"`, matching how the existing `designs/*.md`
patterns are classified there, so the same privacy semantics apply.
Same class of incomplete-rename bug as #1441 (v1.27.0.0 missed the
config key in one place); this audit covers the allowlist surface.1 parent 25cf5ed commit e1a9141
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
230 | 239 | | |
231 | 240 | | |
| 241 | + | |
232 | 242 | | |
233 | 243 | | |
234 | 244 | | |
| |||
256 | 266 | | |
257 | 267 | | |
258 | 268 | | |
| 269 | + | |
259 | 270 | | |
260 | 271 | | |
261 | 272 | | |
| |||
0 commit comments