Repository navigation
docs(agents): stop requiring speculative race and in-flight revocation work - #197557
Conversation
…n work Check authority once when work starts; revocation applies to the next request. Adopt OpenCode's buy-in rule for speculative race/security complexity and its single-use helper rule, remove the security/data/money exception, align scoped guides and the Decision SDK contract, and add an instruction-rules regrowth guard. Co-authored-by: obviyus <[email protected]>
|
🦞👀 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. |
Revocation applies to the next request (#197557); a race test for a request already in flight is speculative machinery the updated rules reject. This reverts commit 1f7ea1e. Co-authored-by: obviyus <[email protected]>
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces blanket in-flight authority rechecks with request-start checks and limits speculative race work in contributor guidance. Example: A Decision provider request passes admission, then its credential is revoked while the request runs.
Review scores
ProductKind: Docs · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review The latest commit resolves the earlier V1 admission finding. This maintainer-authored documentation change is coherent, and no actionable defects remain; exact-head CI is still pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherRepository instructions guide contributors and agents, while the Decision SDK documentation translates those policies into provider admission and cleanup requirements. flowchart LR
A[Maintainer policy] --> B[Root agent guidance]
B --> C[Scoped agent guides]
B --> D[Simplification skill]
B --> E[Decision SDK documentation]
C --> F[Contributor implementation]
D --> F
E --> F
Technical reviewBest possible solution: Keep the aligned request-start policy in the existing guidance owners and complete the ordinary exact-head CI gates. Do we have a high-confidence way to reproduce the issue? The earlier conflicting V1 instructions are visible in the base blobs and reconciled in the head; no target code was executed. Is this the best way to solve the issue? Editing the existing policy owners is a focused solution, and the intentional policy change is explained without introducing parallel implementation machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 87c10f5d4a58. Provenance checked
SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceDocs +13. Total +13 across 8 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 12, 2026, 1:24 AM ET / 06:24 UTC (Revision 2). |
…start checks Co-authored-by: obviyus <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* feat(google): support Gemini Decision models Register a V2 Decision provider in the bundled google plugin for the Gemini Decisions API (POST /v1beta/decisions) and declare the typed-only gemini-decision-1 model. Boolean questions map to native noul with true/false descriptions; choice/score keep labels and rubric indices. Text, JSON and inline PNG/JPEG/WebP evidence are supported. Co-authored-by: obviyus <[email protected]> * feat(google): price Gemini Decision input tokens Co-authored-by: obviyus <[email protected]> * test(google): add Gemini Decision live coverage Co-authored-by: obviyus <[email protected]> * fix(models): keep typed-only rows after live chat discovery Successful live discovery replaced every captured row for its provider, including typed-only manifest rows that discovery never lists. The Decision model then reached models.list through the configured-ref path as a synthetic chat row. Retain inference.chat=false rows across acquisition so they stay in the decision catalog only. Co-authored-by: obviyus <[email protected]> * feat(google): default Gemini Decision instructions and add registered live flow Gemini requires non-empty instructions while OpenClaw makes them optional for choice/score rubrics. Ask the rubric itself when they are omitted. Co-authored-by: obviyus <[email protected]> * test(google): fold Gemini Decision live coverage into the registered flow Co-authored-by: obviyus <[email protected]> * refactor(google): simplify Gemini Decision provider Inline the single-use transport closure, gate on the declared decision protocol instead of a parallel ID set, fold the Gemini live test into the existing registered Decision live test, drop tests that only re-prove shared validation, and tighten the docs. Co-authored-by: obviyus <[email protected]> * test(google): prove revoked authority stops Gemini Decision dispatch Co-authored-by: obviyus <[email protected]> * test(google): drop in-flight revocation race test Revocation applies to the next request (#197557); a race test for a request already in flight is speculative machinery the updated rules reject. This reverts commit 1f7ea1e. Co-authored-by: obviyus <[email protected]> --------- Co-authored-by: obviyus <[email protected]>
…n work (openclaw#197557) * docs(agents): stop requiring speculative race and in-flight revocation work Check authority once when work starts; revocation applies to the next request. Adopt OpenCode's buy-in rule for speculative race/security complexity and its single-use helper rule, remove the security/data/money exception, align scoped guides and the Decision SDK contract, and add an instruction-rules regrowth guard. Co-authored-by: obviyus <[email protected]> * docs(plugins): align the V1 Decision admission contract with request-start checks Co-authored-by: obviyus <[email protected]> --------- Co-authored-by: obviyus <[email protected]>
* feat(google): support Gemini Decision models Register a V2 Decision provider in the bundled google plugin for the Gemini Decisions API (POST /v1beta/decisions) and declare the typed-only gemini-decision-1 model. Boolean questions map to native noul with true/false descriptions; choice/score keep labels and rubric indices. Text, JSON and inline PNG/JPEG/WebP evidence are supported. Co-authored-by: obviyus <[email protected]> * feat(google): price Gemini Decision input tokens Co-authored-by: obviyus <[email protected]> * test(google): add Gemini Decision live coverage Co-authored-by: obviyus <[email protected]> * fix(models): keep typed-only rows after live chat discovery Successful live discovery replaced every captured row for its provider, including typed-only manifest rows that discovery never lists. The Decision model then reached models.list through the configured-ref path as a synthetic chat row. Retain inference.chat=false rows across acquisition so they stay in the decision catalog only. Co-authored-by: obviyus <[email protected]> * feat(google): default Gemini Decision instructions and add registered live flow Gemini requires non-empty instructions while OpenClaw makes them optional for choice/score rubrics. Ask the rubric itself when they are omitted. Co-authored-by: obviyus <[email protected]> * test(google): fold Gemini Decision live coverage into the registered flow Co-authored-by: obviyus <[email protected]> * refactor(google): simplify Gemini Decision provider Inline the single-use transport closure, gate on the declared decision protocol instead of a parallel ID set, fold the Gemini live test into the existing registered Decision live test, drop tests that only re-prove shared validation, and tighten the docs. Co-authored-by: obviyus <[email protected]> * test(google): prove revoked authority stops Gemini Decision dispatch Co-authored-by: obviyus <[email protected]> * test(google): drop in-flight revocation race test Revocation applies to the next request (openclaw#197557); a race test for a request already in flight is speculative machinery the updated rules reject. This reverts commit 1f7ea1e. Co-authored-by: obviyus <[email protected]> --------- Co-authored-by: obviyus <[email protected]>
…arts Root AGENTS.md checks authority one time, when work starts, and lets a started request finish (openclaw#197557). Automatic recall now checks that the memory audience is current right before it embeds the prompt, and no longer checks again after the search returns. The stale-audience test now covers that start check: with an audience that is already stale, automatic recall neither embeds the prompt nor searches the store.
Keep role changes scoped to the next request as established by #197557 and #201334. Prove admitted guest writes and checkpoint settlement, next-request refusal, and explicit source cancellation across late committed receipts. Credit @obviyus for the admission contract; production behavior is unchanged.
The Goal product test waited for role revocation to cancel an admitted provider request, which #201377 correctly keeps alive under #197557. Release that response, prove it persists while the next Goal turn is refused, and separately verify Stop closes the provider and pauses the Goal with its interruption note. Preserve disclosure and scope checks. Production behavior is unchanged. Thanks @obviyus for #201377. Co-authored-by: Ayaan Zaidi <[email protected]>
…aw#201473) Keep role changes scoped to the next request as established by openclaw#197557 and openclaw#201334. Prove admitted guest writes and checkpoint settlement, next-request refusal, and explicit source cancellation across late committed receipts. Credit @obviyus for the admission contract; production behavior is unchanged.
…aw#201527) Apply the request-start authority contract from openclaw#197557 and @obviyus’s openclaw#201334. Remove the obsolete per-effect source check while preserving next-consult denial and explicit Stop. Follow openclaw#201473 for the stale in-process session-read expectation.
…1567) The Goal product test waited for role revocation to cancel an admitted provider request, which openclaw#201377 correctly keeps alive under openclaw#197557. Release that response, prove it persists while the next Goal turn is refused, and separately verify Stop closes the provider and pauses the Goal with its interruption note. Preserve disclosure and scope checks. Production behavior is unchanged. Thanks @obviyus for openclaw#201377. Co-authored-by: Ayaan Zaidi <[email protected]>
Apply the request-start authority contract from #197557 and @obviyus’s #201334. Remove the obsolete per-effect source check while preserving next-consult denial and explicit Stop. Follow #201473 for the stale in-process session-read expectation. (cherry picked from commit ac17452) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Agents and the review bot keep asking for code and proof for races nobody has hit, such as "show that revoking a key stops a request that is already in flight". The cause is our own instructions.
User Impact
There is no product behavior change. Contributors and agents stop writing in-flight revocation checks and race tests unless a real incident calls for them. This is how the repo already treats closed sessions ("work already handed to a transport may finish during close") and Telegram limiters ("in-flight requests finish").
Why This Change Was Made
An audit of every instruction layer found the chain behind the in-flight revocation demand on #197501, #197469, #197474 and #197507:
AGENTS.mdsaid "revalidate after awaited work and right before effect". Its own anti-race rule carried an "unless user data, security, or money at risk" exception that covers almost every change.AGENTS.mdfiles repeated the rule as "including closure during awaited policy work" and "revalidate service generation at effect boundary".isAdmissible()immediately before physical I/O, including after DNS".Changes:
pr-simplify: now applies "Choose good compromises". It no longer lists stale-authority tests as worth keeping.technical-documentationskill (regrowth guard):AGENTS.md: removes lines a strong model follows without being told (comment style, delegation, review-gate restatement), plus a duplicate helper rule.AGENTS.mdgoes from 19,728 to 19,607 characters.Kept: rules backed by real incidents, such as credential storage, durable-before-ack, release upload, upgrade/migration, cache identity, and the logging redaction boundary.
Follow-ups in separate PRs:
Evidence
pnpm check:agents-md-size: 27 files are within 20,000 characters.pnpm docs:check-links: 0 broken links.git grepfor "revalidate after awaited", "right before effect", "during awaited policy work", "revalidate service generation", "including after DNS" and "unless user data, security" returns 0 matches inAGENTS.mdfiles, skills and the SDK capabilities page.