Repository navigation
Conversation
|
🦞👀 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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ca43885a6b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs maintainer review before merge. Reviewed September 19, 2026, 3:25 PM ET / 19:25 UTC (Revision 7). ClawSweeper reviewWhat this changesAdds a public SDK operation for host-managed OAuth login that saves isolated credentials, preserves defaults, and checks current ownership and account identity before replacement. Merge readiness✅ Ready for maintainer review This maintainer-sponsored PR remains useful: inspected main lacks the managed login contract. The earlier isolation and cancellation findings are addressed, and no remaining blocking defect was identified. Priority: P2 Review scores
Verification
How this fits togetherProvider login converts browser consent into stored credentials used by OpenClaw agents. The managed flow lets a host supply lifecycle authority and an isolated storage root, then receive credential metadata without token material. flowchart TD
A[Host login request] --> B[Validate explicit managed inputs]
B --> C[Provider OAuth flow]
C --> D[Host ownership handoff]
D --> E[Check cancellation and current account]
E -->|Allowed| F[Commit isolated SQLite credentials]
E -->|Rejected| G[Preserve existing credentials]
F --> H[Return metadata to host]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +472, Tests +1012, Docs +49, Config +4, Other +9. Total +1546 across 34 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one provider-login and credential-persistence owner, with host-managed custody enforced at the final write and deployment acceptance handled by the consuming host. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature request. The prior cancellation defect has a recorded failing-before/passing-after regression through the public SDK and real SQLite store; no tests were executed during this read-only review. Is this the best way to solve the issue? Yes. The narrow facade reuses existing provider and persistence owners, preserves interactive behavior, and checks host authority against current stored credentials before replacement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ba113dc71191. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
|
Addressed the cancellation finding and scoped proof gaps in 8a16e05. The managed final-write callback now checks the supplied AbortSignal immediately before the existing ownership/account guard and SQLite replacement. Cancellation during handoff or a persistence lock wait therefore cannot leave credential-write authority active. The regression in A separate real-store case seeds an OpenAI row without stored Core TypeScript, the affected core-test stripe 4/5, assertion-safety and line-cap ratchets, formatting, and independent review/verification passed. The PR description now records this evidence. Genuine provider consent/refresh/restart/revocation and rebuilding the final compatible image remain explicitly pending; these local tests do not claim that live proof. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
What Problem This Solves
OpenClaw needs a managed OAuth login runtime that can commit an Agent-owned profile without changing user defaults, leaking credentials, or racing against a changed stored profile.
Related OCE consumer: openclaw/openclaw-enterprise#252.
User Impact
User impact: OpenClaw Enterprise can call a supported managed-login SDK surface from an isolated Agent runtime, provided the deployment selects an immutable image built from this change.
This does not change the normal interactive login path. It does not publish or select a default OCE runtime image.
Why This Change Was Made
This adds the narrow
runManagedModelsAuthLoginFlowfacade and fences the native persistence path needed by OCE OAuth activation:openclaw/plugin-sdk/provider-auth-managed-login-runtimeand documents the SDK runtime surface.beforePersistandassertCurrent.Evidence
userIdcan match using usable account/user claims in their access token, while profiles lacking a usable user identity fail closed. An OpenAI extension case verifies the supported older row using the actual matcher and real SQLite seed/write/readback. The separate core public-SDK case verifies the managed transaction guard with a provider fixture.main, preserving exactly-once coverage and the existing 700-root cap.Not yet proved here: live provider authorization, refresh after real provider rotation, restart with live refreshed credentials, or provider-side revocation. Those remain OCE/live-provider acceptance gaps.