Add git capabilities to consolidation loop - #11
Merged
Conversation
- Rewrite guard-bash.sh: blanket block → selective git allowlist (rm, add, mv, commit, status, diff) with .claude/ path scoping and compound command blocking - Pass worktree_root to guard-bash.sh in lib-hooks.sh - Update spec.md: one-sweep enforcement section, git operations docs, commit step (step 10), persona handling rewrite (lean philosophy with reference wiring + de-enrichment), opportunity scans per sweep type, MEDIUM criteria updates - Add sweep count validation to wiggum.sh (before/after delta check) - Delete xrpl-amm-porting.md that was emptied instead of git rm'd Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ahoym
added a commit
that referenced
this pull request
May 17, 2026
Addresses team review (#10, #11) on PR #109. - Keyword + domain-shift gate rows now document the agent fallback path when the learnings-suggest binary is absent. - Tier-interpretation bullets collapse into a 4-row table. Path-forms prose tightens. Kept the `offset=start, limit=(end-start+1)` formula — it's the specific conversion from a hint `path:start-end` to Read parameters, not redundant with CLAUDE.md's general "prefer offset+limit" guidance. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ahoym
added a commit
that referenced
this pull request
May 18, 2026
Addresses team review (#10, #11) on PR #109. - Keyword + domain-shift gate rows now document the agent fallback path when the learnings-suggest binary is absent. - Tier-interpretation bullets collapse into a 4-row table. Path-forms prose tightens. Kept the `offset=start, limit=(end-start+1)` formula — it's the specific conversion from a hint `path:start-end` to Read parameters, not redundant with CLAUDE.md's general "prefer offset+limit" guidance. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
rm,add,mv,commit,status,diff) with.claude/path scoping and compound command blockingclaude --printinvocationgit rmxrpl-amm-porting.md that was emptied (not deleted) in a prior consolidation runContext
First consolidation loop run revealed the agent couldn't delete files (Bash blanket-blocked), violated the one-sweep-per-invocation rule, and the persona handling section contradicted lean-persona philosophy. This PR addresses all three plus adds opportunity scanning to catch optimization candidates beyond defects.
Test plan
🤖 Generated with Claude Code