Repository navigation
docs(agents): lead with deliberate correctness/complexity/performance compromises - #168529
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
steipete
marked this pull request as ready for review
October 10, 2026 16:40
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 11, 2026
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.
What Problem This Solves
Agents treat AGENTS.md as the definition of good work, and nothing in it said that correctness has a price. Cron mutations ended up with per-write main-thread handshakes, commit guards, receipt authority, and settlement owners, all to close races measured in milliseconds. That machinery held the shared SQLite writer for 107 s and broke an update (#168072). The generic "privileged actions need current owner-held authority" safeguard was being applied to internal bookkeeping as well as real security boundaries, so every scheduler write looked like it needed fencing.
Why This Change Was Made
Maintainer direction: every design trades correctness against complexity and performance, and that trade should be the first thing an agent reads. The new opening section asks agents to design for failures that actually happen, to prefer cheap mechanisms (idempotency, a check at the point of effect, retry, best-effort recording), and to name accepted edge cases instead of coding around them. The authority safeguard is now scoped to security boundaries: credentials, approvals, tool and command execution, and external side effects. Internal scheduling, receipts, history, and caches use idempotency and a check at the effect instead.
User Impact
None at runtime; docs only. Future agent designs should get simpler, especially the planned cron worker-owned redesign.
Evidence
git diff --checkis clean.oxfmt --check AGENTS.mdpasses with the lockfile-pinned 0.71.0.