fix(prompts): forbid wide filesystem search in shared formula-following guidance#6
Open
eric-jones wants to merge 1 commit into
Open
fix(prompts): forbid wide filesystem search in shared formula-following guidance#6eric-jones wants to merge 1 commit into
eric-jones wants to merge 1 commit into
Conversation
3fdf9d4 to
a39b153
Compare
…ng guidance When an agent's first lookup hypothesis fails, the fallback should be another `gc` / `bd` introspection command, not a filesystem search. Wide traversals rooted at `/`, `~`, `/Users`, or `$HOME` walk macOS TCC-protected directories (Documents, Desktop, Downloads, removable volumes), trigger permission prompts that block work, and produce no signal a CLI command can't already provide. gastownhall#1785 added this prohibition to the dog prompt narrowly. Forensic transcripts from a 2026-05-08 fresh-init city show agents in other roles falling back to filesystem search for non-formula targets too (e.g. dog-1: `find /Users/eric -maxdepth 4 -name .dolt-data`). The shared "Following Your Formula" section is the right home for the broader rule — every formula-following agent reads it, the guidance applies to formula-shaped and non-formula-shaped lookups alike, and the dog's existing language stays put as a role-specific reminder. Touches three parallel mirror locations of the same content: - `examples/gastown/packs/gastown/template-fragments/following-mol.template.md` - `examples/gastown/packs/maintenance/template-fragments/following-mol.template.md` - `internal/bootstrap/packs/core/assets/prompts/pool-worker.md` Prose-only edit; no Go code. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Upstream-PR: gastownhall#1860
a39b153 to
f8236f8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fork-PR for review. Upstream: gastownhall#1860 (OPEN). Operator comment posted 2026-05-20 surfacing macOS-TCC severity; awaiting maintainer reply.