Skip to content

fix(ci): clear unused OAuth store export after peer settlement move - #198318

Merged
roboclaw-bot merged 1 commit into
mainfrom
roboclaw/main-ci-oauth-private-helper
Nov 13, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
roboclaw/main-ci-oauth-private-helper

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the main dependency/export check reporting an unused OAuth store export after #198214 moved its last external caller into the store.

User Impact

No user-visible or credential behavior change. Only an obsolete module export is removed.

Why This Change Was Made

resolveAuthoritativeSharedOAuthCredentialUnderLock is now called only within oauth-store.ts. Keep its implementation and same-module call; remove its export modifier. No gate, allowlist, dependency or baseline changes.

The separate RELEASE_VALIDATION_WAIVERS finding is owned by #198306, not duplicated here. The earlier PostgreSQL finding repaired by #198270 is absent from the new log.

Evidence

  • Natural main run 43442683384/job131944720327 reports this exact unused export.
  • Full-file byte comparison confirms only the export keyword changes.
  • Syntax, pinned format/scoped lint, and independent Codex P0–P2 review pass.
  • Full dependency gate has not been rerun locally; qualification remains with later natural main CI.

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

Peer settlement moved into oauth-store in #198214, leaving the helper
without an external consumer. Remove only its unused export; preserve
the internal call and all credential settlement behavior.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 13, 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.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 3136dc82058a81fd5f58f7261f9b540ab78aa53d
  • Maintainer: @roboclaw-bot
  • Repository role: maintain

These security sensitive changes were made:

  • src/agents/auth-profiles/oauth-store.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Removes the export modifier from an OAuth settlement helper whose only caller is in the same module.

Example: The unused-export audit examines resolveAuthoritativeSharedOAuthCredentialUnderLock.

  • Before: The helper is exported despite having no external consumers.
  • After: The helper remains available to its internal caller without exposing an unused export.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A source-verified minimal cleanup with no findings; runtime proof is unnecessary and the aggregate CI status remains pending.
Proof confidence 🐚 platinum hermit (4/6) This export-only cleanup has no user-visible behavior requiring shipped-entry-point proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: An obsolete internal export is reported by the dependency audit.
Reason: The maintainer-authored change removes the obsolete surface without changing OAuth behavior, audit configuration, or public SDK contracts.

Merge readiness

✅ Ready for maintainer review

This PR is a useful, minimal cleanup of an unused internal export. No correctness or security findings; the aggregate CI gate remains pending.

Priority: P2
Reviewed head: 3136dc82058a81fd5f58f7261f9b540ab78aa53d

Before merge

None.

Findings

None.

Agent review details

How this fits together

The OAuth store receives refreshed credentials, validates the authoritative shared credential, and settles peer claims through the existing persistence owner.

flowchart LR
  A[OAuth manager] --> B[Peer settlement operation]
  B --> C[Private shared credential helper]
  C --> D[Auth profile store]
  B --> E[Peer claim settlement]
Loading

Technical review

Best possible solution:

Keep the existing settlement implementation and internal caller, removing only the obsolete export.

Do we have a high-confidence way to reproduce the issue?

Source inspection confirms an exported helper with no external consumers on fetched main; the dependency audit was not run during this read-only review.

Is this the best way to solve the issue?

Removing the export modifier is the smallest complete fix and preserves the existing credential settlement owner, implementation, and caller.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a48a3175600e.

Provenance checked

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 3577724 adds src/agents/auth-profiles/oauth-store.ts:388 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3577724c7276; files: src/agents/auth-profiles/oauth-store.ts)

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs a concrete unused-export condition affecting the repository dependency gate without changing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs a concrete unused-export condition affecting the repository dependency gate without changing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 10:06 AM ET / 15:06 UTC.

@roboclaw-bot
roboclaw-bot merged commit 273a817 into main Nov 13, 2026
120 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/main-ci-oauth-private-helper branch November 13, 2026 15:18
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
Peer settlement moved into oauth-store in openclaw#198214, leaving the helper
without an external consumer. Remove only its unused export; preserve
the internal call and all credential settlement behavior.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. security-sensitive-changed size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant