Skip to content

Add git capabilities to consolidation loop - #11

Merged
ahoym merged 1 commit into
mainfrom
consolidate/2026-02-26-2354
Feb 27, 2026
Merged

Add git capabilities to consolidation loop#11
ahoym merged 1 commit into
mainfrom
consolidate/2026-02-26-2354

Conversation

@ahoym

@ahoym ahoym commented Feb 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • guard-bash.sh: Rewrite blanket Bash block → selective git allowlist (rm, add, mv, commit, status, diff) with .claude/ path scoping and compound command blocking
  • spec.md: One-sweep enforcement section, git operations docs, commit step, persona handling rewrite (lean philosophy — reference wiring + de-enrichment replaces enrichment), opportunity scans per sweep type, updated MEDIUM criteria
  • wiggum.sh: Sweep count before/after validation around each claude --print invocation
  • Cleanup: Properly git rm xrpl-amm-porting.md that was emptied (not deleted) in a prior consolidation run

Context

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

  • Trace guard-bash.sh: allowed git commands pass, path scoping enforced, compound commands blocked, non-git blocked
  • Verify lib-hooks.sh passes worktree_root to guard-bash.sh
  • Read spec.md end-to-end: one-sweep section, git ops, commit step (10), persona rewrite, opportunity scans, MEDIUM criteria, operational note fix
  • Verify wiggum.sh sweep count delta check logic
  • Run next consolidation loop to confirm agent can delete/move/commit

🤖 Generated with Claude Code

- 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
ahoym merged commit 693d9b8 into main Feb 27, 2026
@ahoym
ahoym deleted the consolidate/2026-02-26-2354 branch February 27, 2026 20:27
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant