Repository navigation
fix(#2134): consolidate protected path lists into single source of truth - #2136
fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Protected path lists were maintained inline in four locations (post-fix.sh, post-review.sh, pr-review/SKILL.md, agents/fix.md) and had diverged. The most dangerous gap: scripts/ was listed in LLM-facing instructions but missing from shell enforcement scripts, allowing agents to modify safety- net scripts without being blocked. Changes: - Create scripts/protected-paths.txt as the canonical shared file with the full list: .github/, .claude/, .cursor/, agents/, harness/, plugins/, policies/, scripts/, api-servers/, skills/, CODEOWNERS, AGENTS.md, CLAUDE.md, .pre-commit-config.yaml, .gitattributes - Modify post-fix.sh and post-review.sh to read from the shared file via mapfile instead of inline arrays - Update pr-review/SKILL.md and agents/fix.md to reference the file as the authoritative source and enumerate the full canonical list - Normalize agents/fix.md: .github/workflows/ -> .github/ to match the other locations - Update agents/code.md reference from post-review.sh to the shared file - Add missing paths everywhere: scripts/, skills/, AGENTS.md, CLAUDE.md, .cursor/ Note: make lint could not run (Go module cache permission denied in sandbox). Shell scripts were reviewed manually. The post-script runs authoritative pre-commit on the runner. Closes #2134
Site previewCommit: |
|
🤖 Finished Review · ✅ Success · Started 6:13 PM UTC · Completed 6:24 PM UTC |
ReviewFindingsMedium
Low
Info
|
|
/fs-fix
|
|
Closing this — after thinking about it, we don't want a single source of truth for protected paths. Each context (fix agent, review agent, shell enforcement) may intentionally define different sets of protected paths. For example, we might restrict the fix agent from touching one set of files while having the review agent escalate on a different set. Consolidating them into one file assumes they should always be identical, which removes flexibility we want to keep. The specific gaps (like |
|
🤖 Finished Retro · ✅ Success · Started 8:56 PM UTC · Completed 9:00 PM UTC |
Retro: PR #2136Unable to perform retrospective analysis. The retro agent's sandbox environment could not reach the GitHub API — the network proxy returned HTTP 403 on all CONNECT attempts to This is an infrastructure issue, not a workflow issue. One proposal filed to address the root cause. What was attempted
Proposals
Proposals filed
|
Protected path lists were maintained inline in four locations (post-fix.sh, post-review.sh, pr-review/SKILL.md, agents/fix.md) and had diverged. The most dangerous gap: scripts/ was listed in LLM-facing instructions but missing from shell enforcement scripts, allowing agents to modify safety- net scripts without being blocked.
Changes:
the full list: .github/, .claude/, .cursor/, agents/, harness/, plugins/,
policies/, scripts/, api-servers/, skills/, CODEOWNERS, AGENTS.md,
CLAUDE.md, .pre-commit-config.yaml, .gitattributes
via mapfile instead of inline arrays
the authoritative source and enumerate the full canonical list
other locations
.cursor/
In toto (tl;dr):
Note: make lint could not run (Go module cache permission denied in sandbox). Shell scripts were reviewed manually. The post-script runs authoritative pre-commit on the runner.
Closes #2134
Post-script verification
agent/2134-consolidate-protected-paths)eda1e12306a7a4393c077260bcd5acde491b8649..HEAD)