mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-24 22:55:57 +03:00
[GH-ISSUE #194] [Feature]: disallowed_tools, stale loop detection, and file-modification audit #73
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arjhun-personal on GitHub (Feb 25, 2026).
Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/194
Problem
Two classes of bugs observed in production:
Phase 1 addressed the immediate cycling bug through preset YAML changes (stronger dispatcher instructions,
build.noopescape hatch,max_activationssafety nets). Phase 2 provides systemic engine-level protection against the class of bugs.Proposed Solution
Three layered defenses:
disallowed_tools— Per-hat tool restriction via a prominent prompt section. Significantly reduces LLM tool misuse compared to buried "DON'T" instructions in hat prompts.Stale loop detection — Hard termination when the same topic appears 3+ times consecutively. Detects infinite cycling and stops the loop before further API credits are wasted.
File-modification audit — Post-iteration detection that emits
{hat}.scope_violationevents when a hat modifies files outside its expected scope. Presets can route these to trigger corrective action.