Skip to content

docs(agents): lead with deliberate correctness/complexity/performance compromises - #168529

Merged
steipete merged 1 commit into
mainfrom
docs/agents-good-compromises
Oct 10, 2026
Merged

steipete merged 1 commit into
mainfrom
docs/agents-good-compromises

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 --check is clean.
  • oxfmt --check AGENTS.md passes with the lockfile-pinned 0.71.0.

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 10, 2026 16:40
@steipete
steipete merged commit 9d38eba into main Oct 10, 2026
112 of 115 checks passed
@steipete
steipete deleted the docs/agents-good-compromises branch October 10, 2026 16:42
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant