Skip to content

perf(secrets): route GitHub and setup credentials through workers - #169633

Merged
steipete merged 33 commits into
mainfrom
dbasync/t1cut-misc
Oct 12, 2026
Merged

steipete merged 33 commits into
mainfrom
dbasync/t1cut-misc

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

GitHub OAuth maintenance still opened SQLite on the Gateway thread. Enumeration listed names and then reread every value, and personal publication preparation repeatedly reread the same connection. Model Setup also activated and rolled back credentials by saving whole-store snapshots.

Hidden GitHub records now use the existing shared-state worker for reads, writes, deletes, and listing. Enumeration returns each name and value in one query. Bundled OAuth, RPC, and cleanup callers await these operations. Pure record naming is separate from the mixed SQL kernel. Released synchronous methods on githubOAuthService retain their contract and emit deprecation warnings; bundled callers use the async replacements. The publication coordinator's separate V2 API cutover comes from the storage base and is preserved here.

Personal publication preparation reads the connection in the worker and retains live authority through the existing in-process write receipts. Disconnecting, changing, or restoring the connection invalidates older preparations. Status presentation awaits the connection and lifecycle owners; its private formatter accepts prepared inputs and cannot fall back to synchronous SQLite. Credential-revocation errors retain the existing identity_changed classification, including before request insertion and when settling an already-observed push. Unrelated errors propagate unchanged.

Model Setup activates and compensates only the selected credential through the existing auth worker. Rollback is awaited before runtime recovery and preserves neighboring credential and usage writes. Schemas, secret formats, retention, configuration, and update behavior are unchanged. This slice does not change updater, Doctor, migrations, plugin loading, or service lifecycle, so no new published-driver update cell applies.

Removed work and retained authority

Removed work Accepted edge case or retained boundary
OAuth names-then-point-read enumeration One owner snapshot supplies records and values; later changes appear on the next maintenance pass.
Personal connection SQL rereads during preparation In-process write receipts revoke prepared authority before it can authorize a credential or publication effect. Foreign writers are outside the live Gateway ownership contract.
Cancellation read before the mutation transaction The transaction checks the exact request once; cancelling an obsolete request returns false and preserves its successor.
Model Setup whole-store save/restore and post-restore reload Compensation changes only the selected credential and refuses to overwrite a later change to it; unrelated writes survive.
Duplicate synchronous status presentation paths All bundled status calls await owner facts; the formatter has no database access.

Credential use, identity selection, token installation, and publication keep current-owner checks after awaited work and immediately before effects. Deprecated synchronous compatibility calls remain explicit inventory debt; the mixed kernel is not relabeled worker-only.

Scope and inventory

Final head: aa7820a424049c075d87420350dfbc98bd8b08cc. Main 742b62c61b43478efce98d4405862d5f2f973e0d is integrated; its only conflict was the generated worker inventory. Compared with that base, this PR changes 51 files, +1600 / -1029 lines (net +571). Added code separates worker operations from the retained SDK adapters and keeps status presentation with one owner.

Static inventory Base Candidate Delta
Live repository T1 expressions (CI: 742b62c → aa7820a) 540 539 -1
T1 compatibility expressions 2 2 0
Hidden-record / managed-native adapter group 7 6 -1

The final group is five expressions in the mixed hidden-record kernel and one in the deprecated managed OAuth native adapter. The ordinary bundled path uses the shared-state worker. Static call-site counts are not executed statement counts. The final canonical inventory was regenerated on the merged tree and reports 628 files, 2391 expressions, 539 live T1 calls, and two compatibility calls. Final-head CI independently confirms the one-call reduction against integrated main; incoming main changes are not credited to this slice.

Evidence

Basic oxfmt, scoped oxlint, and git diff --check pass. Two completed Codex reviews covered the repair and storage/credential integration. The integration review identified two confirmation calls missing awaits and an async return type needing Awaited; both were corrected. No new bookkeeping guards, fallback paths, or handshakes were added.

CI found and drove repairs for typed connection-revocation classification, stale synchronous spies, missing list awaits, host-broker routing in tests, and unused synchronous readers. The activation fixture now waits for the actual credential-update owner to finish compensation, instead of the removed whole-store restore; its config, credential, and runtime assertions remain. Existing lifecycle tests await real provider entry using the existing deterministic gate, with no sleeps or retries. The removed synchronous reader's assertion-only callers now await the worker reader; compatibility tests still assert synchronous return values and receipt publication before awaiting their reads.

A local three-file publication test attempt was stopped before valid execution after mixed-version compilation overlapped the storage/main integration. It is not a pass or a proven product failure. Prior-head PR CI 38227677948 passed at d3a1ba911803811d0640a858a3a8de6175b4b52f, including the repaired activation flow; prior-head results are not presented as final-head proof.

All 44 source/test paths changed by this PR remain byte-for-byte identical to reviewed head aaa973b9c4d8b166a67d8b9448c0fc29b1177ab1 after integrating main 742b62c61b43478efce98d4405862d5f2f973e0d. The only merge conflict was the generated worker inventory, resolved with its canonical generator; git diff --cached --check passed before the merge commit. The static and security results below target final head aa7820a424049c075d87420350dfbc98bd8b08cc. No broad local rerun is claimed for the conflict-only integration.

Gate Result
Prior-head PR CI 38230745883 Retained behavior evidence at aaa973b9: all jobs passed or skipped except the untouched Doctor timeout and its aggregate openclaw/ci-gate, described below.
Final-head main-tier static CI 38235311848 All type groups, all core/central lint groups, source contracts, worker/T1/dialect ratchets, Knip, and Madge passed. Optional broad jobs are not awaited.
Final-head SDK API diff The command completed successfully against 742b62c → aa7820a: 192 affected exports, acknowledgement digest 5be8be8c, and [ok] plugin-sdk:api:diff. Its artifact was uploaded successfully. The enclosing job concluded cancelled; that status is not reported as a job pass.
Final-head actual SDK surface check Passed: 3697 public exports, 2158 callable exports, 184 deprecated exports. Config-doc and SQLite schema-baseline checks also passed. This slice does not edit the budget file.
Final-head security All seven Security High groups passed; openclaw/security-sensitive-review also passed in run 38235285037. Main-tier security-fast passed; CodeQL concluded neutral.
Final-head plugin runtime API guardrails Passed within the plugin contract suite; 831 tests passed. The sole failure is the inherited X hook allowlist mismatch below.

The plugin contract suite's sole failure is boundary-invariants.test.ts > keeps bundled plugin typed hook registrations on an explicit allowlist: current main added extensions/x/src/work-origin.ts in eb0fc57d6ed55b65be3a10c644375bf8b4d23968 without updating the allowlist. Both the fixture and the X module are byte-identical to merged main and untouched by this PR. The identical assertion and missing X path fail on main run 38226928416, job 114736774242 at 292a9887dbbf0cd1e1439b07a1c6a608abadc690 (831 passed, one failed). This is an inherited exception; no unrelated fixture allowance was added here.

The final-head dependency job passed Knip with zero entries in every file/export scan. The architecture job passed both import-cycle checks (zero cycles), including Madge, and the database guardrails. Earlier Knip findings for gateway-prewarm.mjs and renderPublicSessionCardSvg also occurred on main, but no Knip exception is needed. This slice adds no budget increases or blanket exclusions.

The automatic PR run timed out after 30 seconds in the untouched doctor.runs-legacy-state-migrations-yes-mode-without.e2e.test.ts > runs legacy state migrations in yes mode without prompting; its four sibling tests passed. The same timeout was observed on the earlier credential head. This is recorded as an unresolved test timeout, not a proven inherited failure or product regression. No timeout was raised and no test was weakened.

SQL measurement

One isolated live pair compares baseline 70bfdc2b58e42f02af5bdc4d345875a9e6ad3928 with measured candidate c46015ecfe18b63b95008b602f1d3f7349c1eda0. This is combined campaign evidence, not an isolated measurement of either stacked slice. Later CLI cold-loading, unused-reader, fixture/type, and merge-metadata changes are outside the measured pin; reuse depends on the lead's source comparison showing that the exercised Gateway SQL paths are unchanged. The workload does not prove those unexercised CLI paths.

Warm values cover ten turns within each run; ranges are turn ranges, not confidence intervals across repeated runs. The loaded host supports no latency claim.

Warm metric Baseline mean / median / min–max Candidate mean / median / min–max
All-thread statements 362.4 / 355.5 / 310–399 343.6 / 338 / 290–459
Logical requests 113.2 / 110.5 / 97–129 94.7 / 94 / 79–115
MAIN statements 0.2 / 0 / 0–2 0 / 0 / 0–0
Phase Baseline statements / requests / MAIN Candidate statements / requests / MAIN
Boot 2028 / 73 / 1841 2025 / 76 / 1835
Connect 1231 / 69 / 21 1238 / 72 / 21
First turn 900 / 211 / 38 737 / 150 / 36
Ten warm turns 3624 / 1132 / 2 3436 / 947 / 0
Second session and child 1336 / 377 / 30 1317 / 331 / 28
Control plane 114 / 41 / 0 119 / 42 / 0
Cron 716 / 210 / 3 521 / 125 / 3
Compaction 215 / 58 / 2 188 / 40 / 2
Shutdown 76 / 14 / 48 87 / 14 / 52
Whole workload 10240 / 2185 / 1985 9668 / 1797 / 1977

The raw whole-workload decrease of 572 statements and 388 requests is not attributed wholesale to this PR. Per-operation evidence separates the changed owners from scheduling and background work:

Owner operation Baseline → candidate evidence
Auth-profile rows, warm 30 → 30 requests; 30 → 30 statements; no MAIN statements
Plugin-catalog read, first turn 2 → 2 requests; 32 → 32 statements; no warm requests
Trajectory append, warm 20 → 20 requests; 80 → 80 statements; no MAIN statements
Hidden GitHub, warm Two synchronous MAIN statements become two worker statements/requests; whole-workload native counts are 9 MAIN → 7 worker
Claw provenance, whole workload 6 → 2 native MAIN statements
ACP metadata, warm 20 → 20 requests; 5 → 11 worker SELECTs; no MAIN statements
Shared session-row facts, warm 67 → 69 requests; ACP SELECT component 27 → 34; no MAIN statements
Subagent registry, warm 10 → 10 native worker statements

ACP is not uniformly flat. Every observed cache miss executes the same single data SELECT, select * from "acp_sessions" where "session_key" in (SELECT value FROM json_each(?)); there are no added schema/admission statements and no request executes more than one such SELECT. Both versions issue ten chat-admission and ten session-entry-resolver metadata requests. Baseline sends all twenty to worker 5: admission executes five SELECTs and the resolver zero. Candidate admission stays on worker 5 and executes three; nine resolver requests run on worker 8 and execute eight SELECTs. The other resolver request hits worker 5's cache. Thus metadata increases by six SELECTs, and shared-facts adds seven more ACP SELECTs, for combined warm ACP 32 → 45. Shared-facts requests on worker 5 rise 65 → 67 while worker 8 remains at two; their ACP SELECTs are 26 → 32 and 1 → 2 respectively.

selectAcpSessionRowsByKeys retains rows in a WeakMap<DatabaseSync, ...> keyed by schema/write/mutation revision. Each worker connection owns a separate cache. Its code, the read dispatcher, and both calling functions are unchanged between the measured pins; WorkerTaskPoolCore.dispatch still selects the first eligible idle worker without ACP affinity. The ACP worker change filters returned rows by lifecycle after reading. The trace establishes different worker placement and cache hits, not new request sites or a larger query per miss. Other async work can affect task overlap; this pair does not prove that every touched operation has flat total SQL.

All 13 conversation turns, the child, cron, compaction, and clean shutdown completed in both runs. Both record retryable mentions.dismiss UNAVAILABLE, which fails the strict outer driver's all-RPC assertion after the workload. Candidate also records one shutdown-only BEGIN IMMEDIATE: database is locked at releaseOpenClawAgentDatabaseLease → closeCachedOpenClawAgentDatabase → closeIdle; it still exits with code 0. Baseline has no SQL error. Neither driver run is described as all-green. The earlier candidate 37dffc failed its build before producing workload evidence.

Native statement counts reconcile exactly with the request census in every phase/thread, with zero missing contexts or duplicate sends. Both runs retain the same two unresolved bootstrap transport targets (gatewayOwnerLease.read, userProfiles.catalog), reported as two unmatched sends/receives. Calibration covers eight native calls, two prepares, and seven successful statements on MAIN and on a worker. No fixture process remains. Compact evidence is preserved under v6-final/comparison-c460/: report.md, operations.csv, comparison.json, acp-attribution.json, and source-equivalence.json.

@clawsweeper

clawsweeper Bot commented Oct 12, 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 gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: XL labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR moves GitHub credential maintenance and Model Setup credential activation and rollback into existing database workers.

Example: Model Setup activates fixture:setup while another operation updates a neighboring credential.

  • Before: Activation and recovery save or restore whole-store snapshots.
  • After: The auth worker changes only fixture:setup, preserving the neighboring credential and usage updates.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, owner-directed work remains blocked by the repeatable refresh defect and incomplete credential-authority evidence.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: GitHub credential maintenance can occupy the Gateway thread, and setup recovery handles more credential state than the selected account requires.
Reason: The maintainer-authored direction reuses existing workers, reduces redundant reads, and narrows recovery writes without adding configuration.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep open: this maintainer-directed worker migration has clear value, but the previously reported refresh regression remains unresolved.

Priority: P2
Reviewed head: aa7820a424049c075d87420350dfbc98bd8b08cc

Before merge

  • Add real behavior proof - Authority-chain proof required: Exercise credential installation and personal publication for the allowed owner and nearest forbidden owner, then disconnect or reassign during delayed work and show rejection before credential-file or authenticated GitHub I/O, including restored connections and synchronous compatibility mutations. The combined-campaign SQL observations support worker routing; inspected historical images and tests do not establish those final-effect denials. No latest-stable upgrade exercising the changed setup activation and rollback with existing state intact was supplied. Provide redacted logs or terminal output without credentials, IPs, phone numbers, or non-public endpoints. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Reacquire connection authority after successful token refresh (P2) - When My GitHub credentials are due for refresh, bindPersonalGitHubPublicationSelection captures this guard before preparePersonalGitHubPublicationSelection calls requestCurrentPersonalGitHubRefresh. beginRefresh and subsequent refresh writes publish changedOwners, which permanently revoke the captured guard even though generation, profile, and account remain unchanged. The assertion after refresh therefore reports identity_changed and aborts both worktree and repository publication. The added refresh method is never called. Renew the binding after legitimate refresh settlement while preserving disconnect/reassignment rejection, and cover publication with a token due for renewal. This repeats the unresolved finding from the preceding review.
  • Resolve security concern: Verify retained connection authority at final effects - The new prepared connection replaces canonical rereads during personal credential installation, refresh materialization, and publication. Existing tests cover receipt invalidation, but supplied runtime evidence does not establish that another owner or a disconnected, reassigned, or restored connection is rejected before credential-file mutation and authenticated GitHub I/O.
  • Resolve merge risk - Replacing canonical connection rereads with retained receipt-backed guards changes credential authority; rejection before final credential-file and authenticated GitHub effects remains unestablished.
  • Improve patch quality - Add final-effect proof for a different owner and prove disconnect, reassignment, and restoration invalidate retained authority before credential-file or authenticated GitHub I/O.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P2] Reacquire connection authority after successful token refresh — src/gateway/github-personal-publication.ts:99-103
  • [medium] Verify retained connection authority at final effects — src/state/user-github-connections.ts:65

Tests

  • Missing end-to-end proof: Show successful publication through a due token refresh, forbidden-owner and delayed-revocation denial at final I/O, and latest-stable setup activation/rollback with existing credentials and settings intact; base-fail/head-pass proof for the remaining refresh defect is absent.
Agent review details

How this fits together

Gateway OAuth, publication, and Model Setup owners consume worker-read credentials and committed receipts, then authorize credential-file writes or authenticated provider operations.

flowchart LR
  A[Gateway requests] --> B[OAuth and setup owners]
  B --> C[Database workers]
  C --> D[SQLite credential stores]
  C --> E[Committed authority receipts]
  E --> B
  B --> F[Credential files and GitHub operations]
Loading

Technical review

Best possible solution:

Retain worker ownership and credential-local rollback while making publication authority survive legitimate token renewal without reviving disconnected or reassigned authority.

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

Source tracing establishes the refresh failure: publication captures a guard, refresh commits revoke it, and the subsequent assertion rejects the unchanged selection; no target code was executed.

Is this the best way to solve the issue?

The existing workers and targeted credential compensation are appropriate owners, but publication must distinguish legitimate refresh settlement from connection revocation.

Full review comments:

  • [P2] Reacquire connection authority after successful token refresh — src/gateway/github-personal-publication.ts:99-103
    When My GitHub credentials are due for refresh, bindPersonalGitHubPublicationSelection captures this guard before preparePersonalGitHubPublicationSelection calls requestCurrentPersonalGitHubRefresh. beginRefresh and subsequent refresh writes publish changedOwners, which permanently revoke the captured guard even though generation, profile, and account remain unchanged. The assertion after refresh therefore reports identity_changed and aborts both worktree and repository publication. The added refresh method is never called. Renew the binding after legitimate refresh settlement while preserving disconnect/reassignment rejection, and cover publication with a token due for renewal. This repeats the unresolved finding from the preceding review.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Hold for final-effect authority evidence (recommended)
    Keep this PR open until the allowed owner succeeds and a different, disconnected, or reassigned owner is rejected before credential-file writes and authenticated GitHub operations.

Provenance checked

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete authorization bypass was established, but the replacement credential guards require final-effect revocation evidence.

Evidence

Security concerns:

  • [medium] Verify retained connection authority at final effects — src/state/user-github-connections.ts:65
    The new prepared connection replaces canonical rereads during personal credential installation, refresh materialization, and publication. Existing tests cover receipt invalidation, but supplied runtime evidence does not establish that another owner or a disconnected, reassigned, or restored connection is rejected before credential-file mutation and authenticated GitHub I/O.
    Confidence: 0.95

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a9dac67 adds src/state/user-github-connections.kernel.ts:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a9dac67f437a; files: src/state/user-github-connections.kernel.ts)
  • Ayaan Zaidi: Raw commit e33dc97 adds src/system-agent/setup-inference-credential-access.ts:104 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e33dc973ce21; files: src/system-agent/setup-inference-credential-access.ts)

PR surface

Source +378, Tests +151, Docs +16, Other +26. Total +571 across 51 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 27 1154 776 +378
Tests 18 372 221 +151
Docs 4 47 31 +16
Config 0 0 0 0
Generated 0 0 0 0
Other 2 27 1 +26
Total 51 1600 1029 +571

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The migration addresses Gateway responsiveness, with a bounded publication regression requiring repair.
  • merge-risk: 🚨 compatibility: The Gateway plugin service gains async replacements and deprecates synchronous methods; retained signatures, adapters, and migration guidance reduce the compatibility risk.
  • merge-risk: 🚨 auth-provider: A successful personal OAuth refresh invalidates publication's captured connection authority and can reject an unchanged account selection.
  • merge-risk: 🚨 security-boundary: Credential installation and publication replace direct connection rereads with receipt-backed authority whose final-effect denial behavior needs evidence.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

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.

History

Review history (7 earlier review cycles)
  • reviewed 2026-10-12T05:33:09.445Z sha fd8391e :: needs real behavior proof before merge. :: [P2] Declare isolation for the retargeted hidden-store mock
  • reviewed 2026-10-12T06:18:29.436Z sha 30f57c7 :: needs real behavior proof before merge. :: [P2] Preserve typed selection failures when connection authority is revoked | [P2] Await the remaining OAuth record consumers | [P2] Route OAuth lifecycle suites to the existing host-worker project | [P2] Declare isolation for the retargeted hidden-store mock
  • reviewed 2026-10-12T06:54:49.005Z sha 59a7ff0 :: needs real behavior proof before merge. :: [P2] Preserve typed selection failures when connection authority is revoked | [P2] Await the remaining OAuth record listing assertions | [P2] Route OAuth lifecycle suites to the existing host-worker project | [P2] Declare isolation for the retargeted hidden-store mock | [P2] Remove the obsolete native-reader spy assertion
  • reviewed 2026-10-12T07:26:55.757Z sha 6c5b571 :: needs real behavior proof before merge. :: [P2] Preserve typed selection failures when connection authority is revoked | [P2] Await the remaining OAuth record listing assertions | [P2] Route OAuth lifecycle suites to the existing host-worker project | [P2] Declare isolation for the retargeted hidden-store mock | [P2] Remove the obsolete native-reader spy assertion
  • reviewed 2026-10-12T09:02:38.896Z sha 9d78e64 :: needs real behavior proof before merge. :: [P2] Reacquire connection authority after successful token refresh | [P2] Update the reload recovery fixture for worker-backed rollback
  • reviewed 2026-10-12T09:28:16.257Z sha 0e08db7 :: needs real behavior proof before merge. :: [P2] Reacquire connection authority after successful token refresh
  • reviewed 2026-10-12T09:52:13.751Z sha aaa973b :: needs real behavior proof before merge. :: [P2] Reacquire connection authority after successful token refresh

Reviewed October 12, 2026, 6:36 AM ET / 10:36 UTC (Revision 8).

@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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 12, 2026
…orage

# Conflicts:
#	docs/reference/database-schemas/worker-access-inventory.md
#	src/config/sessions/session-accessor.sqlite-projection.ts
#	src/config/sessions/session-lifecycle-projection.worker.ts
# Conflicts:
#	docs/reference/database-schemas/worker-access-inventory.md
…orage

# Conflicts:
#	docs/reference/database-schemas/worker-access-inventory.md
#	src/agents/subagents/registry/subagent-registry-read-snapshot.ts
#	src/cron/isolated-agent/run-subagent-registry.runtime.ts
#	src/cron/run-continuation-cleanup.ts
#	src/cron/session-reaper.ts
# Conflicts:
#	docs/reference/database-schemas/worker-access-inventory.md
…orage

# Conflicts:
#	docs/reference/database-schemas/worker-access-inventory.md
…t1cut-misc

# Conflicts:
#	docs/plugins/sdk-migration/how-to-migrate.md
#	docs/reference/database-schemas/worker-access-inventory.md
#	src/gateway/github-personal-publication.test-support.ts
#	src/gateway/github-personal-publication.ts
#	src/gateway/github-publication-personal-pending.test.ts
#	src/gateway/github-publication.ts
#	src/gateway/github-repository-publication.ts
Base automatically changed from dbasync/t1cut-misc-storage to main October 12, 2026 08:33
@github-actions

github-actions Bot commented Oct 12, 2026 •

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: aa7820a424049c075d87420350dfbc98bd8b08cc
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/github-oauth-records.native.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/agents/github-oauth-records.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/gateway/github-oauth-lifecycle.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/github-personal-oauth.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/secrets/store/secret-store-expiry.kernel.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/store/secret-store-github-handoff.worker.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/store/secret-store-github-names.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/store/secret-store-hidden-github.kernel.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/store/secret-store-hidden-github.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/store/secret-store-metadata.kernel.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/store/secret-store-validation.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/store/secret-store-write.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.

@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Oct 12, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the commands Command implementations label Oct 12, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. label Oct 12, 2026
@steipete
steipete merged commit 27397f5 into main Oct 12, 2026
283 of 313 checks passed
@steipete
steipete deleted the dbasync/t1cut-misc branch October 12, 2026 10:41
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…enclaw#169633)

Move hidden GitHub record access to the existing shared-state worker and batch enumeration. Migrate bundled OAuth, status, and cleanup callers to async operations while deprecating the released synchronous SDK methods.

Use the auth worker for focused Model Setup activation and compensation, preserving unrelated writes and current credential authority. Keep one check at each credential or publication effect.

Validated with owner regressions, scoped formatting and lint, CI static and security gates, SDK API and surface reports, and isolated live SQL evidence. The inherited X hook allowlist failure is documented in the PR body.
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 gateway Gateway runtime merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts security-sensitive-changed size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant