Skip to content

fix(auth): keep healthy profiles after compaction - #155204

Merged
roboclaw-bot merged 1 commit into
openclaw:mainfrom
jason-allen-oneal:fix/auth-profile-compaction-stickiness-148829
Sep 22, 2026
Merged

roboclaw-bot merged 1 commit into
openclaw:mainfrom
jason-allen-oneal:fix/auth-profile-compaction-stickiness-148829

Conversation

@jason-allen-oneal

@jason-allen-oneal jason-allen-oneal commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Related: #148829

What Problem This Solves

Healthy automatically selected authentication profiles changed after conversation compaction even though no authentication failure occurred.

User Impact

Compaction no longer changes a healthy selected credential for explicit or implicit profile pools. Genuine rate-limit, quota, cooldown, disabled-profile, and missing-profile failures still traverse the eligible backup chain. This adds no configuration option or migration.

Why This Change Was Made

Compaction is a conversation-lifecycle event, not an authentication-health signal. The selector previously treated an advanced compaction counter as a reason to rotate credentials and suppressed preferred-profile recovery at that same boundary.

This patch removes both couplings. It also avoids rewriting auth state merely to advance the historical compaction marker. Real auth transitions still persist the selected profile, source, and current marker. Route isolation, user/person-linked pins, preferred-profile recovery, and failure-driven failover remain unchanged.

Maintainer direction on 2026-09-21 was explicit: compaction and authentication failover are orthogonal; compaction must not change auth profiles, auth failure may, and no opt-in setting or migration should restore the old coupling.

Evidence

  • Auth/failover matrix: 95/95 passed across session selection, explicit and implicit rotation, model-route isolation, user/person-linked pins, real HTTP per-day 429 recovery, embedded-run failure policy, and auto-fallback accounting.
  • pnpm check:changed: passed on the validated patch.
  • Independent P0-P2 autoreview: no actionable findings (0.92 confidence).
  • qaRuntime build and runtime-postbuild stamps both name proof head db31514a425e5d40ceeb693d74b82b6422269b4b with inputsClean: true.
  • Current PR head d22ff0a70edff41d88bd2dc8eff624b8b533db9b is a rebase onto current main; git range-diff db31514a425^! d22ff0a70ed^! reports the patch as byte-equivalent.

Real Behavior Proof

Proof HEAD: db31514a425e5d40ceeb693d74b82b6422269b4b

Current PR HEAD: d22ff0a70edff41d88bd2dc8eff624b8b533db9b (byte-equivalent rebased patch)

Claim: The public Gateway compaction path preserves a healthy automatic credential for both explicit and implicit profile pools, while a real quota response still fails over to the next eligible profile.

Exercised surface: Built OpenClaw Gateway, public sessions.compact Gateway RPC, real SQLite session state, production updateSessionEntry, and a localhost OpenAI-compatible Responses endpoint. Nothing intercepted the auth selector or request retry path.

Environment: Kali Linux x86_64, Node.js 24.21.0, clean exact-head qaRuntime build, disposable OpenClaw homes, isolated Gateways, two synthetic API-key profiles (A, B), and a localhost Responses receiver. No production state, credentials, or external paid service was used.

Scenario:

  1. Start an explicit-order session on healthy profile A, call sessions.compact, and send another foreground turn.
  2. While the Gateway is stopped, seed a healthy persisted fallback B through production updateSessionEntry; restart the Gateway, compact, and continue the session.
  3. In a separate explicit-order session, return a real HTTP 429 for A and verify the unchanged retry path uses B and persists B for the following turn.
  4. Repeat the healthy compaction scenario with no auth.order configured.
  5. Run the same explicit and implicit scenarios on unfixed baseline 19fae01395e5e8609011f08e2f638e96c9372c45.

Commands:

node --import ./scripts/tsx.mjs scripts/build-all.mts qaRuntime

AUTH_COMPACTION_PROOF_OUTPUT="$PWD/.artifacts/local-proof/candidate-explicit.json" AUTH_COMPACTION_PROOF_ORDER=explicit node --import ./scripts/tsx.mjs /home/rev/projects/openclaw-prs/auth-compaction-proof.ts candidate

AUTH_COMPACTION_PROOF_OUTPUT="$PWD/.artifacts/local-proof/candidate-implicit.json" AUTH_COMPACTION_PROOF_ORDER=implicit node --import ./scripts/tsx.mjs /home/rev/projects/openclaw-prs/auth-compaction-proof.ts candidate

Relevant output:

baseline 19fae01395e5e8609011f08e2f638e96c9372c45
  explicit compaction: A -> B; persisted B; marker/count 1/1
  persisted fallback after restart + compaction: B -> A
  implicit compaction: A -> B; persisted B; marker/count 1/1
  failure control: A/429 -> B/200; following turn B/200

candidate db31514a425e5d40ceeb693d74b82b6422269b4b
  explicit compaction: A -> A; persisted A; marker/count 0/1
  persisted fallback after restart + compaction: B -> B; marker/count 0/1
  implicit compaction: A -> A; persisted A; marker/count 0/1
  failure control: A/429 -> B/200; following turn B/200
  terminal runs: explicit 12/12 ok; implicit 7/7 ok

Artifact: Redacted driver and complete baseline/candidate JSON receipts:

https://gist.github.com/jason-allen-oneal/089bb0b9e597e0d4894f0c6547e31f2b

SHA-256:

driver             305a60195eda41c72979b49fa94b7251c1e1d759fc1bce4f65605c7fb7d6b757
candidate explicit 90920e5215574da4d7d58d485c2743eb632f0434c313b8b4aab418dcd1499ab9
candidate implicit 6d7f596f1928977fd374ffecac447fff6bbca11b6be5e2d837c5082e7e7df1c3
baseline explicit  44330efccb96373d3b2cdb4da095afce0c47141c85e65d1c81b4709f9a210af1
baseline implicit  f30abfe7812bc03287aa3064ea949a427a3bbc73a0788ad5ca7687b159434a64

Observed result: On the unfixed baseline, compaction alone changes healthy A to B in both explicit and implicit pools and moves a persisted fallback B back to A. On proof head db31514a425e5d40ceeb693d74b82b6422269b4b, all three healthy credentials remain unchanged. A real HTTP 429 still advances A to B, and B serves the following turn. The current PR head carries a byte-equivalent patch after rebasing onto current main.

Not tested: Live third-party quota exhaustion or billing; the receiver returns a protocol-real local HTTP 429. The textual /compact command parser was not exercised; the public sessions.compact Gateway RPC was. The implicit lane did not separately repeat restart and failure scenarios. Concurrent lifecycle replacement and personal-account materialization are covered by focused tests rather than an injected Gateway race. Windows and macOS were not exercised.

Separate Review Blockers

  • Current-head security-sensitive approval remains a separate maintainer gate.
  • Exact-head CI must complete independently of this behavior proof.
  • The maintainer policy decision was provided outside GitHub; final review should preserve that provenance on the PR.

Sources

@clawsweeper

clawsweeper Bot commented Sep 21, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling labels Sep 21, 2026
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ Maintainer security changes approved

A maintainer approved this revision with an explicit security approval comment.

A later push requires a fresh approval comment for an external contributor's PR.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 22, 2026, 1:31 AM ET / 05:31 UTC (Revision 9).

ClawSweeper review

What this changes

The PR keeps healthy automatically selected credentials across conversation compaction, avoids unnecessary session writes, and updates failover documentation and regression coverage.

Merge readiness

⛔ Blocked before merge - 3 items remain

The change remains useful and has convincing runtime proof, with no actionable code defect found. The outstanding concern is acceptance of its broader change to the shipped credential-selection policy.

Priority: P2
Reviewed head: d22ff0a70edff41d88bd2dc8eff624b8b533db9b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused production simplification with strong before/after transport evidence and useful regression coverage; policy acceptance is separate from patch quality.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): Hash-matched receipts exercise the production selector through built-Gateway chat and compaction RPCs, demonstrating explicit/implicit retention, persisted fallback continuation after restart, and real HTTP 429 failover. All changed-file blobs match the reviewed head. Existing stored fields remain compatible; the restart case verifies the retained format without claiming a cross-version binary upgrade.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): Hash-matched receipts exercise the production selector through built-Gateway chat and compaction RPCs, demonstrating explicit/implicit retention, persisted fallback continuation after restart, and real HTTP 429 failover. All changed-file blobs match the reviewed head. Existing stored fields remain compatible; the restart case verifies the retained format without claiming a cross-version binary upgrade.
Evidence reviewed 10 items Pinned introduced change: The pinned base-to-head patch removes the compaction rotation trigger and compaction-only persistence. Existing profile validation, user/person-linked pin handling, cooldown checks, and preferred-profile recovery remain in the same owner.
Still necessary on fetched main: Fetched main still rotates when compactionCount exceeds the stored marker and suppresses preferred-profile recovery at that boundary. The central change is therefore not implemented there.
Shipped default changes: The v2026.9.5 documentation explicitly includes compaction among automatic-profile rotation triggers. Removing this behavior also affects existing implicit-order pools, beyond the linked explicit-order complaint.
Findings None None.
Security None None.

How this fits together

OpenClaw selects provider credentials from configured profile order, credential health, and saved session preferences before sending model requests. This change removes conversation compaction from that selection decision while retaining failure-driven fallback.

flowchart TD
  A[Conversation turn] --> B[Session credential selector]
  C[Configured profiles and health] --> B
  D[Saved session preference] --> B
  E[Compaction completes] --> D
  B --> F{Current credential eligible?}
  F -->|Yes| G[Keep credential]
  F -->|No| H[Select eligible fallback]
Loading

Decision needed

Question Recommendation
Should compaction stop rotating healthy automatic credentials for both explicit and implicit profile pools, including existing sessions? Confirm the universal decoupling: Record acceptance that compaction no longer rotates healthy credentials in either profile-pool mode.

Why: The implementation and runtime proof support this behavior, but the released documentation promises compaction rotation and the reported acceptance is not attributable to a maintainer in the available record.

Before merge

  • Resolve merge risk (P1) - Existing implicit-order sessions will stop distributing requests across healthy accounts at compaction boundaries; attributable maintainer acceptance of this shipped-default change remains unverified.
  • Complete next step (P2) - Record attributable maintainer acceptance of the explicit and implicit profile-pool policy, and obtain the required security-sensitive approval for the current head.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source -5, Tests +39, Docs +2. Total +36 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 1 7 12 -5
Tests 4 67 28 +39
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 77 41 +36

Review metrics

Metric Value Why it matters
Credential-selection defaults 1 shipped rotation trigger removed; 0 new configuration controls The changed behavior applies automatically to existing explicit and implicit profile pools.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #148829
Summary: This PR addresses the explicit-order report and additionally changes implicit-pool policy; the alternative proposal uses an optional setting.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Accept the new default explicitly (recommended)
    Confirm that existing implicit pools should retain healthy credentials across compaction and preserve that decision on the PR.
  2. Limit the policy change
    Retain implicit-pool rotation and restrict the repair to explicit ordering if maintainers require the shipped distribution behavior.

Technical review

Best possible solution:

Keep compaction independent of credential health in the existing selector, with an attributable maintainer decision accepting the changed default for existing profile pools.

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

Yes: two healthy automatic profiles and an advanced compaction counter reach the rotation branch on fetched main. Contributor baseline receipts demonstrate the same path; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes technically: removing the lifecycle trigger from the existing selector is focused and preserves failure recovery; accepting the broader default change remains a product decision.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster. Replaced prior rating: 🐚 platinum hermit.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded credential-selection improvement for multi-profile sessions, with no demonstrated emergency outage.
  • merge-risk: 🚨 compatibility: Existing implicit-order sessions lose documented compaction-triggered account rotation without an opt-in.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster. Replaced prior rating: 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): Hash-matched receipts exercise the production selector through built-Gateway chat and compaction RPCs, demonstrating explicit/implicit retention, persisted fallback continuation after restart, and real HTTP 429 failover. All changed-file blobs match the reviewed head. Existing stored fields remain compatible; the restart case verifies the retained format without claiming a cross-version binary upgrade.
  • proof: sufficient: Contributor real behavior proof is sufficient. Hash-matched receipts exercise the production selector through built-Gateway chat and compaction RPCs, demonstrating explicit/implicit retention, persisted fallback continuation after restart, and real HTTP 429 failover. All changed-file blobs match the reviewed head. Existing stored fields remain compatible; the restart case verifies the retained format without claiming a cross-version binary upgrade.

Evidence

What I checked:

  • Pinned introduced change: The pinned base-to-head patch removes the compaction rotation trigger and compaction-only persistence. Existing profile validation, user/person-linked pin handling, cooldown checks, and preferred-profile recovery remain in the same owner. (src/agents/auth-profiles/session-override.ts:459, d22ff0a70edf)
  • Still necessary on fetched main: Fetched main still rotates when compactionCount exceeds the stored marker and suppresses preferred-profile recovery at that boundary. The central change is therefore not implemented there. (src/agents/auth-profiles/session-override.ts:480, 35b95b2aa64f)
  • Shipped default changes: The v2026.9.5 documentation explicitly includes compaction among automatic-profile rotation triggers. Removing this behavior also affects existing implicit-order pools, beyond the linked explicit-order complaint. Public docs: docs/concepts/model-failover.md. (docs/concepts/model-failover.md:194, ec9c1a13db89)
  • Inspected production-path proof: Read the complete driver and four receipts at https://gist.github.com/jason-allen-oneal/089bb0b9e597e0d4894f0c6547e31f2b; all five SHA-256 values match the captured PR body. Built Gateways use public chat.send and sessions.compact RPCs, SQLite session state, and real HTTP transport to a local Responses receiver. Baseline explicit/implicit A→B becomes candidate A→A; persisted fallback B survives restart and compaction; HTTP A/429→B/200 and the following B turn remain successful. The driver was inspected, not executed.
  • Proof revision continuity: GitHub commit metadata confirms all six changed-file blobs are identical between proof revision db31514a425e5d40ceeb693d74b82b6422269b4b and the reviewed head. The production selector blob is e34a8f76772870decffaeb0ef5cdb406d0b694d3. Local range-diff could not inspect the unavailable earlier commit; the API comparison independently established file identity without claiming a fresh execution. (src/agents/auth-profiles/session-override.ts:459, d22ff0a70edf)
  • Existing-state compatibility: The stored fields and serialization remain unchanged. Legacy automatic provenance depends on the marker being numeric, not matching the latest compaction count. The inspected restart receipt exercises an existing-shaped persisted fallback; it is not a cross-version binary upgrade claim. (src/config/sessions/auth-profile-override-provenance.ts:37, d22ff0a70edf)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-21T21:26:59.686Z sha 28a6722b4f0516bfcbcbc13525e44576a1207285 :: blocked before merge. :: [P1] Preserve rotation for existing implicit-order configurations
  • reviewed 2026-09-21T21:46:41.320Z sha 5071c2b85742f24b4861bd530074c7af205154fa :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-21T21:55:41.531Z sha 5071c2b85742f24b4861bd530074c7af205154fa :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-21T22:27:04.571Z sha 5071c2b85742f24b4861bd530074c7af205154fa :: blocked before merge. :: none
  • reviewed 2026-09-21T23:52:15.588Z sha e65a9a56a809f033de937e1c756029a88e0dbf20 :: blocked before merge. :: none
  • reviewed 2026-09-22T00:46:12.142Z sha 31e1c16ae886d6f4348bec90cc364c4737b4b9b5 :: needs real behavior proof before merge. :: [P1] [P1] Restore compaction rotation for implicit profile pools
  • reviewed 2026-09-22T00:55:59.507Z sha 31e1c16ae886d6f4348bec90cc364c4737b4b9b5 :: blocked before merge. :: none
  • reviewed 2026-09-22T04:30:11.899Z sha db31514a425e5d40ceeb693d74b82b6422269b4b :: blocked before merge. :: none

@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 21, 2026
@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 21, 2026
@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

Maintainer action requested for current head 5071c2b85742f24b4861bd530074c7af205154fa:

  1. Record the policy decision on explicit auth.order semantics. ClawSweeper now rates the PR platinum, marks proof sufficient, and marks it ready for maintainer look; no code finding remains.
  2. If accepting this policy, approve the current security-sensitive revision with:
/allow-security-sensitive-change
  1. Rerun failed jobs in workflow run https://github.com/openclaw/openclaw/actions/runs/35658386973. The contributor account cannot rerun upstream jobs:
    • build-artifacts: 1,685 tests passed; artifact finalization failed with GitHub HTTP 403.
    • checks-node-compact-large-8: 626/626 tests passed; an unrelated asynchronous state-database admission error occurred afterward.
    • checks-node-compact-large-25: unrelated Gateway test failures outside this PR's files.

Exact-head behavior proof in the PR body covers explicit primary retention, release-style persisted fallback continuation across Gateway restart and compaction, real A/429 → B/200 failover, and next-turn B persistence.

@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

Current head e65a9a56a809f033de937e1c756029a88e0dbf20 is an empty CI-retry commit over the reviewed patch; the source tree is unchanged from 5071c2b85742f24b4861bd530074c7af205154fa.

ClawSweeper remains platinum with sufficient exact-head proof and ready for maintainer look. The fresh CI matrix is running without test failures so far.

Maintainer approval is required for this current security-sensitive revision:

/allow-security-sensitive-change

The explicit auth.order policy decision also remains maintainer-owned.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 22, 2026
@jason-allen-oneal
jason-allen-oneal force-pushed the fix/auth-profile-compaction-stickiness-148829 branch from 31e1c16 to db31514 Compare September 22, 2026 04:16
@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

1 similar comment
@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@jason-allen-oneal
jason-allen-oneal force-pushed the fix/auth-profile-compaction-stickiness-148829 branch from db31514 to 1e626ca Compare September 22, 2026 04:37
@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

Current head 1e626cac96558960c3758153147df5fc77aba190 is rebased onto current main; the auth patch is byte-equivalent to the reviewed/proven revision.

Maintainer action needed once CI settles: approve this exact security-sensitive revision with:

/allow-security-sensitive-change

@jason-allen-oneal
jason-allen-oneal force-pushed the fix/auth-profile-compaction-stickiness-148829 branch from 1e626ca to d22ff0a Compare September 22, 2026 05:05
@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

Current head d22ff0a70edff41d88bd2dc8eff624b8b533db9b includes upstream test repair 3ff189887d0; the auth patch remains byte-equivalent by git range-diff.

Maintainer action needed once CI settles:

/allow-security-sensitive-change

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

At Josh's explicit request, recording his approval of both the design direction and the security-sensitive changes in revision d22ff0a.

This approval covers removing compaction-triggered auth-profile rotation for both explicit orders and implicit pools, including retaining healthy persisted fallback selections, while preserving failure-driven failover and preferred-profile recovery. Posting the required security approval command separately for the automated gate.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

/allow-security-sensitive-change

@roboclaw-bot
roboclaw-bot merged commit 32866e9 into openclaw:main Sep 22, 2026
201 of 203 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 22, 2026
* commit '739e2410702e0b1ad1d17a6dac07ddc0ab6dbebb': (140 commits)
  fix(ui): pause passive polling in hidden tabs (#155617)
  improve(android): keep chat photos outside text bubbles (#155338)
  fix(ui): preserve saved project after discovery failure (#155619)
  feat: compare Kitchen Sink Gateway resource costs (#155734)
  test(gateway): arm clock-jump claim after readiness (#155748)
  chore(ui): refresh control ui locales (#155700)
  fix(ci): join archive placement fixtures before teardown (#155751)
  fix(matrix): keep bot discovery off the Gateway thread (#152122)
  fix(agents): reconcile late requester recovery receipts (#155357)
  test(gateway): guard embeddings HTTP fixture lifetimes
  fix: isolate triage fixture acquisition and cleanup (#155736)
  refactor(sessions): hydrate saved transcripts off thread (#153325)
  fix: Claude MCP turns abort before tool timeout (#155663)
  fix(goals): pause terminal failures and clarify goal states (#155694)
  fix(test): preserve watcher errors when diagnostic capture fails (#155383)
  ci: move native runtime proofs to release validation (#155606)
  fix(auth): decouple compaction from profile rotation (#155204)
  fix(agents): admit compaction outside retired plugin generations (#151232)
  perf(ui): reduce automatic session list refetches (#155705)
  test: avoid unused source repos in release input fixtures (#155733)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 23, 2026
Keep healthy automatically selected auth profiles across conversation compaction for both explicit orders and implicit pools. Remove compaction-only auth-state writes while preserving failure-driven failover, preferred-profile recovery, route isolation, and user/person-linked pins.

The universal behavior change and security-sensitive revision were explicitly approved by Josh. Exact-head hosted CI and required security gates passed.

Co-authored-by: Jason O'Neal <[email protected]>
Co-authored-by: jalehman <[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 docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants