Skip to content

fix(prompts): forbid wide filesystem search in shared formula-following guidance#6

Open
eric-jones wants to merge 1 commit into
mainfrom
topic/forbid-wide-find
Open

fix(prompts): forbid wide filesystem search in shared formula-following guidance#6
eric-jones wants to merge 1 commit into
mainfrom
topic/forbid-wide-find

Conversation

@eric-jones
Copy link
Copy Markdown
Owner

Fork-PR for review. Upstream: gastownhall#1860 (OPEN). Operator comment posted 2026-05-20 surfacing macOS-TCC severity; awaiting maintainer reply.

…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
@eric-jones eric-jones force-pushed the topic/forbid-wide-find branch from a39b153 to f8236f8 Compare May 20, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant