From 96ddaddad227a5512597cee0275dc595130dc3cb Mon Sep 17 00:00:00 2001 From: genisis0x Date: Thu, 14 May 2026 14:20:59 +0530 Subject: [PATCH] fix(brain-allowlist): include root-level design + test-plan docs in artifacts sync Several skills write their output at the project root, not under the designs/ or ceo-plans/ subdirectories that the existing allowlist covers: - /office-hours Builder/Startup writes projects/{slug}/{user}-{branch}-design-{datetime}.md - /plan-eng-review writes projects/{slug}/{user}-{branch}-eng-review-test-plan-{datetime}.md - /autoplan test-plan writes projects/{slug}/{user}-{branch}-test-plan-{datetime}.md Cross-skill readers (plan-ceo-review, plan-eng-review, autoplan) glob these at the project root via projects/$SLUG/*-design-*.md, so the write paths are authoritative; the allowlist is the inconsistent piece. Effect: with artifacts_sync_mode=full, gstack-brain-sync silently skips all three doc types. CEO plans sync but the designs they reference do not, breaking the cross-machine ceo-plan -> design chain. Add three root-anchored glob patterns to both the allowlist and the privacy-map (class: artifact, mirroring designs/). Glob '*' does not match path separators, so the new patterns do not conflict with the existing designs/*.md or ceo-plans/*.md entries. Refs #1452 --- bin/gstack-artifacts-init | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/gstack-artifacts-init b/bin/gstack-artifacts-init index 8f97c33059..7a9c3842d3 100755 --- a/bin/gstack-artifacts-init +++ b/bin/gstack-artifacts-init @@ -227,6 +227,9 @@ projects/*/ceo-plans/*.md projects/*/ceo-plans/*/*.md projects/*/designs/*.md projects/*/designs/*/*.md +projects/*/*-design-*.md +projects/*/*-eng-review-test-plan-*.md +projects/*/*-test-plan-*.md projects/*/timeline.jsonl retros/*.md developer-profile.json @@ -247,6 +250,9 @@ cat > "$GSTACK_HOME/.brain-privacy-map.json" <<'EOF' {"pattern": "projects/*/ceo-plans/*/*.md", "class": "artifact"}, {"pattern": "projects/*/designs/*.md", "class": "artifact"}, {"pattern": "projects/*/designs/*/*.md", "class": "artifact"}, + {"pattern": "projects/*/*-design-*.md", "class": "artifact"}, + {"pattern": "projects/*/*-eng-review-test-plan-*.md", "class": "artifact"}, + {"pattern": "projects/*/*-test-plan-*.md", "class": "artifact"}, {"pattern": "retros/*.md", "class": "artifact"}, {"pattern": "builder-journey.md", "class": "artifact"}, {"pattern": "projects/*/timeline.jsonl", "class": "behavioral"},