Repository navigation
perf(auth): unblock session writes during health preparation - #170807
Merged
steipete merged 2 commits intoOct 13, 2026
Merged
Conversation
Capture auth execution authority before preparation, but reserve only the selected agent database when recording is ready. Keep overlapping health preparations ordered and preserve fresh credential checks, FIFO ready writes, worker commit publication, and accepted-work settlement.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 13, 2026 08:05
Contributor
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. |
Contributor
|
steipete
deleted the
steipete/perf-micro-direct-reservation-holds-20260919
branch
October 13, 2026 08:45
vincentkoc
added a commit
that referenced
this pull request
Oct 13, 2026
* commit '7ae69497bec4d9c37f170f046a3cbbf954ff19a7': (6238 commits) refactor(ui): replace Systems filters with native menu (#170786) fix(browser): browser open honors timeoutMs for its opening navigation (#170053) refactor: deslop old Apple shared/macOS and Control UI code (#170823) perf(memory): reuse pooled origin readers (#170795) fix(crabbox): preserve project snapshots across runtime updates (#170780) fix: prevent chat image loading from shifting messages (#170819) refactor(ui): use native menus for Secret Store actions (#170663) fix(gateway): keep chat metadata available during model reloads (#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (#170807) fix(ci): use smaller runners for selected Gateway client tests (#170821) fix: use same-commit plugins in development macOS builds (#170776) perf(github): share cached reads across sessions and searches (#170825) fix(projects): keep listings stable during unrelated session changes (#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (#170190) perf(sessions): reduce read transaction overhead (#170745) refactor: simplify older plugin and package lifecycles (#170800) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
…w#170807) * perf(auth): unblock session writes during health preparation Capture auth execution authority before preparation, but reserve only the selected agent database when recording is ready. Keep overlapping health preparations ordered and preserve fresh credential checks, FIFO ready writes, worker commit publication, and accepted-work settlement. * test(auth): preserve admission fixture credential type
vincentkoc
added a commit
that referenced
this pull request
Oct 18, 2026
* feat(qa): report scorecard evidence gaps Distinguish catalog coverage, recorded attempts, and qualified evidence without changing scores or release gates. Include the canonical compatibility migration-status correction from ec1fb60. Co-authored-by: Patrick Erichsen <[email protected]> * chore(qa): drop compatibility backport already on main Keep the QA evidence-gap change scoped to its 13 paths. The canonical compatibility correction ec1fb60 and later refinements are already on main; restore the six branch preimages so the merge consumes that upstream owner state. * chore(qa): integrate canonical worker settlement fixes * commit '7ae69497bec4d9c37f170f046a3cbbf954ff19a7': (6238 commits) refactor(ui): replace Systems filters with native menu (#170786) fix(browser): browser open honors timeoutMs for its opening navigation (#170053) refactor: deslop old Apple shared/macOS and Control UI code (#170823) perf(memory): reuse pooled origin readers (#170795) fix(crabbox): preserve project snapshots across runtime updates (#170780) fix: prevent chat image loading from shifting messages (#170819) refactor(ui): use native menus for Secret Store actions (#170663) fix(gateway): keep chat metadata available during model reloads (#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (#170807) fix(ci): use smaller runners for selected Gateway client tests (#170821) fix: use same-commit plugins in development macOS builds (#170776) perf(github): share cached reads across sessions and searches (#170825) fix(projects): keep listings stable during unrelated session changes (#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (#170190) perf(sessions): reduce read transaction overhead (#170745) refactor: simplify older plugin and package lifecycles (#170800) ... * fix(gateway): preserve safe previews and no-op bindings Clear only the matching pending binding operation after an authoritative unchanged settlement, preserving committed and unknown invalidation fences. Include the canonical managed-media preview correction from 47ba0ae. Co-authored-by: Peter Steinberger <[email protected]> * merge(main): reconcile QA reporting with frozen main * test(gateway): verify retained route authority after binding settlement Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 18, 2026
* feat(qa): report scorecard evidence gaps Distinguish catalog coverage, recorded attempts, and qualified evidence without changing scores or release gates. Include the canonical compatibility migration-status correction from 3f6d26f. Co-authored-by: Patrick Erichsen <[email protected]> * chore(qa): drop compatibility backport already on main Keep the QA evidence-gap change scoped to its 13 paths. The canonical compatibility correction 3f6d26f and later refinements are already on main; restore the six branch preimages so the merge consumes that upstream owner state. * chore(qa): integrate canonical worker settlement fixes * commit '4ae87487b6eca95ac58a2f18de0e742b240772eb': (6238 commits) refactor(ui): replace Systems filters with native menu (openclaw#170786) fix(browser): browser open honors timeoutMs for its opening navigation (openclaw#170053) refactor: deslop old Apple shared/macOS and Control UI code (openclaw#170823) perf(memory): reuse pooled origin readers (openclaw#170795) fix(crabbox): preserve project snapshots across runtime updates (openclaw#170780) fix: prevent chat image loading from shifting messages (openclaw#170819) refactor(ui): use native menus for Secret Store actions (openclaw#170663) fix(gateway): keep chat metadata available during model reloads (openclaw#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (openclaw#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (openclaw#170807) fix(ci): use smaller runners for selected Gateway client tests (openclaw#170821) fix: use same-commit plugins in development macOS builds (openclaw#170776) perf(github): share cached reads across sessions and searches (openclaw#170825) fix(projects): keep listings stable during unrelated session changes (openclaw#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (openclaw#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (openclaw#170190) perf(sessions): reduce read transaction overhead (openclaw#170745) refactor: simplify older plugin and package lifecycles (openclaw#170800) ... * fix(gateway): preserve safe previews and no-op bindings Clear only the matching pending binding operation after an authoritative unchanged settlement, preserving committed and unknown invalidation fences. Include the canonical managed-media preview correction from f3260b9. Co-authored-by: Peter Steinberger <[email protected]> * merge(main): reconcile QA reporting with frozen main * test(gateway): verify retained route authority after binding settlement Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Auth health bookkeeping reserved every candidate agent database before asynchronous credential reads chose the actual owner. Read-only child startup and row loading therefore held the agent writer FIFO even when the eventual health update belonged to shared state. Session writes queued behind this unrelated preparation.
User Impact
Session writes can continue while auth health preparation reads credentials or awaits provider observations. No operator action or migration is required.
Why This Change Was Made
Keep the existing auth preparation FIFO and captured execution/lifecycle authority, and reserve only the selected database when health recording is ready. Ready writes retain FIFO, fresh credential/removal checks, worker rereads, live transaction/commit grants, publication, and accepted-work cleanup. Delete the speculative reservation helper and candidate writer map. No schema, stored-shape, config, retention, or updater migration changes; 61 fewer production lines.
Evidence
ABBA in an isolated Linux benchmark sandbox, using the real
markAuthProfileFailureentry point, synthetic credentials/state, and a follower agent writer. Each leg ran eight calls; the first cold call is excluded from the medians below. The same checkout, dependencies, and command were used throughout; only the two production files changed.Across 14 warmed calls per variant, median follower admission wait falls from 1694.604 ms to 0.694 ms (99.96% reduction). Main-thread active time is 20.169 → 17.324 ms, neutral within host noise. Auth completion remains dominated by the unchanged off-thread child work (1.4–2.1 s across leg medians); no health-completion speedup is claimed.
Live diagnostics identify the main-thread
directhold and following session-write backlog but do not label the caller. This synthetic auth entry point reproduces the blockage without a large scan, VACUUM, or migration. Other direct reservation families (transcript/actor reads and writes, auth saves, and small side-data stores) are outside this scoped fix. Post-deployment attribution is still unmeasured.Proof
pnpm test src/agents/auth-profiles/usage.write-admission.test.ts --maxWorkers=1: 16 passed; 264.61 s Vitest / 286.87 s wrapper wall time, including a cold worker-artifact preparation (132.667 s) on the saturated host.expect(writerEntered).toBe(true): the follower stays behind the unfinished read. Candidate passes that same assertion. Baseline selected run: 1 failed / 15 skipped, 169.35 s Vitest / 199.60 s wrapper (126.862 s worker preparation).pnpm test src/agents/auth-profiles/usage-lifecycle.test.ts src/agents/auth-profiles/usage.inherited-owner.test.ts src/agents/auth-profiles/usage.test.ts --maxWorkers=1: 51 passed across three focused sibling files (144.19 s infra / 58.17 s agents-support Vitest durations, plus 91.439 s worker preparation; 328.57 s total wrapper wall time).1bdefc090055a3d9bb03d41e8c6ed5ef1bf4d557: run 38369846448 succeeded with all 40 planned jobs green, including production/test types, lint, all selected node lanes, docs, architecture guards, UI E2E, andopenclaw/ci-gate; 625 s elapsed. Applicable security and quality checks also passed.