Repository navigation
Conversation
Contributor
|
🦞👀 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. |
This was referenced Oct 12, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 13, 2026
Remove five synchronous SDK surfaces that never shipped in stable v2026.10.2, together with their obsolete adapters and tests. Preserve shipped public aliases while replacing the newly named Legacy implementations with private SDK adapters. Move the active GitHub connection list query into its existing worker and remove its mixed-kernel compatibility registration. Keep stable contracts in the deferred draft removal PR openclaw#169868. Refs openclaw#121308.
…sdkmajor # Conflicts: # extensions/feishu/src/thread-bindings.test.ts # src/acp/runtime/session-meta-doctor.test.ts
…sdkmajor # Conflicts: # docs/plugins/sdk-migration/compatibility-policy.md # docs/plugins/sdk-migration/how-to-migrate.md
steipete
added a commit
that referenced
this pull request
Oct 13, 2026
… tests Breaking commit 5041419 (#170632) requires admitted credential writers. The provider fixtures still used synchronous saves from unadmitted Vitest threads, so setup failed before exercising auth. Pull the fixtures and worker routing forward verbatim from #169868 (head 9c6a892). Await the existing auth writer and database cleanup, and route only these two files through the existing database-worker project. Production code is unchanged. Default-runner proof: OpenAI embedding 30/30, Alibaba video 7/7, and Ollama 51/51. Targeted Oxlint, Oxfmt, and git diff --check passed. Independent P0-P2 review found no actionable issues.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
… tests Breaking commit c3b5d0c (openclaw#170632) requires admitted credential writers. The provider fixtures still used synchronous saves from unadmitted Vitest threads, so setup failed before exercising auth. Pull the fixtures and worker routing forward verbatim from openclaw#169868 (head 9c6a892). Await the existing auth writer and database cleanup, and route only these two files through the existing database-worker project. Production code is unchanged. Default-runner proof: OpenAI embedding 30/30, Alibaba video 7/7, and Ollama 51/51. Targeted Oxlint, Oxfmt, and git diff --check passed. Independent P0-P2 review found no actionable issues.
This was referenced Oct 22, 2026
Contributor
Author
|
The removal schedule is now established on main: synchronous SQLite SDK compatibility lasts through December 31, with removal in the first January 2027 stable release (#171775, #175199). Closing this earlier removal draft; the scheduled removal should use the current migration inventory and policy. Closed in a sweep of maintainer PRs open longer than a week. Reopen with a current reproduction if this still matters. |
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.
Draft: removal timing remains Peter's decision
This refresh keeps the synchronous SQLite SDK removal proposal current with main and limits it to contracts whose deprecations shipped in stable v2026.10.2 or earlier. Keep this PR draft; do not merge until Peter decides the compatibility period is over. Beta releases do not count, and this is a later normal release removal, not a version-policy change.
The previous draft removed several APIs whose deprecations had not shipped in stable. Those contracts and their live dependencies are restored. Eligible removals use the existing awaited owners; synchronous paths used exclusively by removed contracts are deleted. Shared kernels still required by retained APIs, worker execution, offline maintenance, or real authority checks remain explicitly classified.
Stable removal inventory
Owning declarations and public exports were checked in stable tags; compatibility-record dates and introduction dates were not treated as proof. Release links establish deprecation history, not a removal deadline. Supporting migration details are in
docs/plugins/sdk-migration/deprecated-sqlite.md.readAcpSessionEntry,AcpSessionManager.resolveSessionreadAcpSessionEntryAsyncandresolveSessionAsync.SessionBindingService.touch,resolveByConversation,resolveRuntimeConversationBindingRoutetouchAsync,resolveByConversationAsync, andresolveRuntimeConversationBindingRouteAsync.setIdleTimeoutBySessionKeyandsetMaxAgeBySessionKeyonChannelConversationBindingSupportandapi.runtime.channel.threadBindingsAsyncsetter.setThreadBindingIdleTimeoutBySessionKey,setThreadBindingMaxAgeBySessionKey; TelegramsetTelegramThreadBindingIdleTimeoutBySessionKey,setTelegramThreadBindingMaxAgeBySessionKeyAsyncsetter.OpenClawPluginNodeHostCommandContext.acquireManagedWorkspaceacquireManagedWorkspaceAsync; release its lease infinally.loadArchivedSessions,resolveMemorySessionTargetsAsyncreader frommemory-core-host-engine-sessions.buildWatchedSessionsHarnessContextprepareWatchedSessionsHarnessContextwith current host authority.captureNativeSessionGenerationAuthority,resolveNativeSessionBinding,reclaimNativeSessionGeneration,NativeSessionGenerationOperationsprepareNativeSessionGenerationAuthority,resolveNativeSessionBindingWithAuthority, andreclaimNativeSessionGenerationWithAuthority.SessionManager.open,openBounded,openDetachedBounded,setSessionTarget,reloadPersistedTranscriptAsyncmethod.SessionManager.appendMessageToTranscriptappendMessageToTranscriptAsync.SessionManager.appendMessage,appendMessageWithTranscriptAnchor,appendCompaction,appendResetBoundary,appendCustomEntry,appendSessionInfo,appendCustomMessageEntry,appendLeafControl,appendLabelChange,branch,branchWithSummary,removeTrailingEntries,persist,prepareTranscriptRewrite,openModelContextAsyncmethod, including completion of a prepared rewrite commit.ExtensionAPI.appendEntry,setSessionName,setLabel;AgentSession.setSessionNameAsyncmethods; supplyExtensionActionsV2andExtensionRuntimeV2throughbindCoreAsync.ProviderPlugin.sanitizeReplayHistory,ProviderReplaySessionState,ProviderReplaySessionState.appendCustomEntry,ProviderSanitizeReplayHistoryContextsanitizeReplayHistoryAsync, the V2 replay context, andappendCustomEntryAsync.sanitizeGoogleGeminiReplayHistorysanitizeGoogleGeminiReplayHistoryAsync.list,dismiss,recordCommittedInput,invalidateAsyncmethod.deferOrphanedRequestsdeferOrphanedRequestsAsync.listPendingWorkspaceResults,getWorkspaceResultReconcilingSessionIdsAsyncmethod.ensureAgentWorkspace.beforePersistentApplyguard.assertHostat the effect.DebugProxyCaptureReader,DebugProxyCaptureStore,getDebugProxyCaptureStore,acquireDebugProxyCaptureStore,closeDebugProxyCaptureStore,createDebugProxyCaptureReader,initializeDebugProxyCapture,captureHttpExchange,captureWsEvent,finalizeDebugProxyCapture,DebugProxyCaptureContext.captureWsEventacquireDebugProxyCaptureStoreAsync, await capture operations, and release the lease.The original
ExtensionActions,ExtensionRuntime, andExtensionRunner.bindCoreremain for retained capabilities: they never shipped a stable deprecation.readAcpSessionMetawas an internal wrapper, never exported by the public ACP facade, and had already disappeared on main; it is not counted as a new removal here.Retained contracts and shared kernels
update/deleteIfshipped deprecated in v2026.9.5, but bundled Codex, ClickClack, Discord, Telegram, Matrix, Reef migration, and cache owners still consume them. Several calls enforce current revocation or disclosure authority. Their owner cutovers are prerequisites; deleting exports alone would not retire the kernels.SessionBindingAdapter.resolveByConversationandtouchshipped deprecated in v2026.9.6, but retained registration/factory/inspection contracts still require them. The 11 removed generic and Discord/Telegram wrappers therefore retire zero raw binding T1 calls by themselves.Cancellation and check removal
Fast abort calls the cancellation owner immediately instead of performing the retired synchronous ACP existence read. This preserves the owner's synchronous snapshot of accepted turns, so an async pre-read cannot capture a successor. Only fast abort opts into
ignoreMissing; other cancellation callers retain the existing error contract. Accepted edge case: a session with no ACP metadata produces a no-op, while stale metadata and runtime failures are still reported. The existing command-authority assertion is passed to the cancellation effect.The replay cohort fixture no longer attempts a write while it holds the admission that the queued write needs. Accepted case: writes wait for replay consumption under the existing owner; closure/revocation still invalidate consumption, and separate tests reject mutations before model dispatch.
No real credential, approval, tool/command, external-effect, or disclosure guard is removed. Compatibility-only checks disappear with the retired APIs. An external plugin still using a removed API must migrate to the named awaited replacement. No schema, durability, retention, or update-format change is included.
Evidence and current blockers
Main merged:
9c4b1a9b9f610512069069e35399d0b6df531a2c. The final refresh was triggered by GitHub reportingCONFLICTING; its only manual resolution keeps main's paused performance clock and this branch's lifecycle-based prompt delivery wait in the question-refresh fixture. Current candidate:9c6a8924938bcbe1fd49ed4a9e4dbd5829ab9816. Fixture commit3547b7fe40d2arepairs test ownership/routing, awaits real async writes, preserves stale-read and lost-update assertions at deterministic async boundaries, and corrects a retired compatibility-test reference. The tested CI comparison has a shrink-only mock baseline change: 9,713 → 9,699 entries.CI run 38374734058 tests the earlier head
4c3972081c4c7e60c598244f3a1a6c4f035addc6. Production types, source contracts, the SDK API report, and baseline ratchets passed. The final job snapshot has 154 passes, 30 failures, 11 skipped jobs, and eight cancelled jobs. The remaining superseded-head jobs were cancelled after preserving their evidence. These results are not presented as a full pass for the fixture follow-up or final main merge. No new broad run was started while the explicit removal prerequisites below remain unresolved.The ratchet job is 115221281006; its frozen comparison base is
fada6e0812ce163dfc39d4ca19dacf0acc3a4c1b. This differs from the merged-main revision, so the aggregate count does not attribute every intervening change to this PR. The one retired T1 site is the prepared-workspace kernelfind: after deletingfindSync, its only runtime caller isnode-worker-journal.worker.ts. The old approximately 199-site census estimate is not achieved: retained SDK contracts and shared live-authority consumers still keep those kernels alive. These are static call-site counts, not executed SQL statements. No warmed-path performance claim is made; no SQL harness was run under compute conservation.The SDK API report passed in run 38374734058, head
4c3972081c4c7e60c598244f3a1a6c4f035addc6: 0 added/removed entrypoints; 16 removed exports; 1 signature change; 215 reachable-declaration changes. The signature spells out unchanged parameters ofprepareWatchedSessionsHarnessContextinstead of referencing the removed function. Removed exports are the watched-session builder, conversation-route resolver, two replay types from each ofcoreandplugin-entry, and ten proxy-capture exports. Method removals appear in reachable declarations. Artifactplugin-sdk-api-diff-38374734058-1, digest5080a410eea9a552e87e833fd175a2bb574a620b545709e7383322e36b4af7a5. This report predates the fixture-only follow-up and final main refresh.Diff against merged main: 583 files, +7,778 / −12,083 lines (net −4,305).
Scoped lint, formatting, and
git diff --checkpassed on the fixture repairs. After the final main refresh, the normal lint wrapper stopped before lint because plugin-SDK boundary declaration preparation exceeded its 300,000 ms deadline. This is recorded as incomplete preparation, not a passing check; no broad retry was started. The resolved fixture passed formatting and direct syntax lint (one file, 258 rules, zero diagnostics); this does not replace the incomplete declaration preparation. Codex autoreview completed in two rounds; its actionable ACP fixture type finding was fixed. No third round was run. Focused replays passed all five previously failing model-admission cases (Vitest 254.29 s; 577.03 s whole runner) and all six selected hydration cases (Vitest 245.28 s; 515.50 s whole command). Those include cold worker/transform preparation; assertions remain intact. The two selected lifecycle identity-observer cancellation cases also passed (Vitest 89.63 s; 161.78 s whole runner with warm compiled artifacts). The question-refresh rerun produced no result and was stopped when the required main refresh brought a new deadline-clock fix for that same fixture. It is not counted as passing. No broad local suite was run. No update/Doctor/migration/plugin-loading/service-lifecycle behavior changes, so no published-driver update cell is required.Removal prerequisites
removeAfterdate. Peter has not approved the timing. Job 115221288427 (test/scripts/plugin-sdk-surface-report.test.ts) confirms the watched-session, replay, and proxy-capture records still fail this gate. No date was invented/backdated and no guard was weakened. This failure is not inherited.SessionManager.openAsyncfails for an existing incognito sentinel path paired with an ordinary session key. Job 115221288265 reproduces this insession-manager-model-context.test.ts→keeps model reads non-persisting (path). The replaced synchronous opener supported this case.prepareSessionTranscriptHydrationrecognizes its legacy native route only by session key; the explicit sentinel is consequently sent to a worker as a nonexistent durable file. Recognizing the path in that branch would invokereadInProcessand add a main-thread SQLite path. The fix needs the canonical incognito actor binding, not a synchronous fallback. The regression test remains intact; this call is stopped under the lane's owner-redesign escape hatch.CI failure attribution
interruptedChatRunIdinui/src/test-helpers/interrupted-chat-history.ts, current job 115221283923; same diagnostic on the prior merged-main run 38365062007, job 115188496004. The final main refresh imports its upstream fix (the helper is no longer exported).packages/memory-host-sdk/src/host/session-transcript-corpus.test.ts→reads worker content revisions without claiming an agent database lease, current job 115221288466; same test/error/stack (Runtime config is not prepared) on scheduled-main run 38371740449, head4dd4b8ef9c8fd0c8dd9286f70f98b0842efca758, job 115210402430.chat-collapsed-reply-reveal.e2e.test.tstimes out atpage.screenshotafter 30 s, current job 115221280966; identical test/error/stack on main run 38359584345, job 115170476315.abort.test.ts→does not abort the caller source lane for an unbound explicit ACP target, job 115221288373, still expects the old cancellation argument object. The source lane remains active; the assertion rejects the addedagentId, effect-authority callback, andignoreMissing: true. Update the expectation without restoring an awaited ACP existence read. This test failure is not inherited.domcontentloaded; sidebar roster restoration expected two groups and observed one. The latest downloaded scheduled-main run passed its mocked UI E2E shards and Swift tests. These failures remain unclassified.This draft is not green or ready to merge. Removal timing, the incognito actor-binding prerequisite, and unresolved failures remain explicit. No merge or release is authorized by this refresh.