Skip to content

feat(harness): Builder hard-stop protocol — stop and escalate on walls - #108

Open
MKuckert wants to merge 2 commits into
mainfrom
feature/issue-90-builder-hard-stop
Open

feat(harness): Builder hard-stop protocol — stop and escalate on walls#108
MKuckert wants to merge 2 commits into
mainfrom
feature/issue-90-builder-hard-stop

Conversation

@MKuckert

@MKuckert MKuckert commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Closes #90

Problem

The Builder burns up to 500 steps when it hits a wall — denied command (permission wall), build failing repeatedly with the same error, or an out-of-scope fix — instead of stopping and escalating.

Changes

  • Builder.md — new <hard_stop_protocol>: 5 objective triggers (2× consecutive identical-signature failure, permission denial, out-of-scope fix anchored to the PLAN.md task scope, ~80/100 self-counted step budget, CodeReviewer 3-strike deadlock). Identical exit behavior for all: stop → write ## Blocker to PLAN.md (trigger, error signature, what was tried, exact permission/change needed) → commit via Committer → escalate via question. New principle 8: "Permission walls are stop signals, not puzzles."
  • Builder.md frontmatter — mechanical backstops: doom_loop: allow → deny, steps: 500 → 100.
  • Planner.md — 4th mandatory interrogation question + ## Required Tooling & Permissions template section, so permission gaps surface before the build starts.
  • implement_next_task.md / root AGENTS.md — aligned hard-stop wording.

Review

Plan reviewed over 2 rounds (CHANGES REQUESTED → APPROVED); code review APPROVED. Full record in PLAN.md.

Notes

pi agent added 2 commits September 3, 2026 12:06
…s (issue #90)

Adds a <hard_stop_protocol> section to Builder.md with 5 triggers:
2 consecutive identical failures, permission wall, out-of-scope fix,
~80/100 step budget, reviewer iteration limit. Exit path writes a
## Blocker entry in PLAN.md, triggers a Committer commit, and escalates
via question.

Also:
- doom_loop: allow -> deny, steps: 500 -> 100 in Builder frontmatter
- Planner gains a 4th mandatory interrogation question (Required Tooling & Permissions)
- implement_next_task.md documents the escalation line
- AGENTS.md Builder section gains a Hard Stop bullet

Note: doom_loop deny + steps 100 are mechanical backstops. Doom-loop
platform semantics verified only against in-repo docs (opencode/opencode.jsonc
documents 3-repeat identical-input trigger); installed opencode source not
available in sandbox, verification blocked.

For issue #90
@MKuckert MKuckert self-assigned this Sep 4, 2026
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.

Agent Harness: builder should stop on hard problems

1 participant