Skip to content

fix: delegate file discipline, verify loop limits, artifact reading ban#788

Merged
FL4TLiN3 merged 1 commit intomainfrom
fix/delegate-file-discipline-and-verify-loop
Mar 14, 2026
Merged

fix: delegate file discipline, verify loop limits, artifact reading ban#788
FL4TLiN3 merged 1 commit intomainfrom
fix/delegate-file-discipline-and-verify-loop

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Delegate meta instruction (@perstack/runtime): Add file creation discipline — prefer editing over creating, no proactive documentation files
  • verify-test: Explicit ban on reading/reviewing produced artifacts — only command outputs matter
  • build loop: Validate CONTINUE feedback (only hard signal failures are valid loop reasons), max 3 iterations to prevent infinite loops
  • Bump create-expert to 1.0.19

Context

Production run showed:

  1. Delegates creating new files on each iteration instead of editing existing ones → workspace filled with garbage
  2. verify-test reading artifact contents and doing quality review (e.g., "use Random instead of Date") instead of executing hard signal commands
  3. build blindly looping on soft opinion feedback, never converging

Test plan

  • Run create-expert and verify workspace doesn't accumulate stale files across iterations
  • Confirm verify-test only reports command results, not artifact content opinions
  • Verify build loop stops after 3 iterations if signals don't pass
  • Verify build rejects soft opinion CONTINUE feedback

🤖 Generated with Claude Code

…d loop limits

Three issues observed in production:
1. Delegates creating new files instead of editing existing ones → workspace sprawl
2. verify-test reading artifacts and doing content review instead of running commands
3. build loop running indefinitely on soft opinion feedback

Fixes:
- Delegate meta instruction: prefer editing over creating, no proactive docs
- verify-test: explicit ban on reading/reviewing produced artifacts
- build: validate CONTINUE feedback (only hard signal failures loop), max 3 iterations
- Bump create-expert to 1.0.19

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 4359a33 into main Mar 14, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the fix/delegate-file-discipline-and-verify-loop branch March 14, 2026 00:12
@FL4TLiN3 FL4TLiN3 mentioned this pull request Mar 14, 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.

1 participant