Repository navigation
refactor: deslop infra and reply/agent paths; stop logging private reply text (wave-4 bundle) - #172669
Conversation
Trust successful migration statements inside their synchronous transactions, reuse unchanged approval parses, share canonical package-root discovery, namespace directory caches by plugin identity, and simplify ephemeral presence, OS facts and suspension timer bookkeeping. Keep source validation, conflicts, transaction durability, postcommit checks, security authority and write settlement. Best-effort tradeoffs accepted - Node-host own-write verification (#108457): no human successful-SQL-loss report; SQL errors still roll back, and independent source retirement checks remain. - Workspace setup/attestation replay (#109147): no human driver-rewrite report; trust successful writes while retaining fingerprints and later source checks. - APNs expected-ID replay (#108543): no human silent-insert-loss report; canonical parsing, tombstones and receipts remain. - Device-auth presence assertion (#112663): no human successful-upsert-loss report; credential validation and transaction failure handling remain. - Device-identity replay (#110392): no human silent-row-rewrite report; preserve independent post-await verification before source deletion. - MCP OAuth replay (#161219): no human silent-write-loss report; canonical/source parsing and worker admission remain. - Exec-approval read/parse/deep-compare replay (#114063): no human successful-driver-rewrite report; malformed policy stays fail-closed and actual authority is unchanged. - Shared-auth target reread (#123349): no human silent-row-rewrite report; return the known SQL postimage and keep independent copy/flip/cleanup checks. - Identical authored approval bytes (#168094) reuse the existing parse; changed normalized bytes still parse before publication. - Plugin metadata fingerprinting (353d778): no human in-place metadata-mutation report; distinct objects remain isolated, and same-object edits use TTL/reset. - Duplicate asset ancestor search (7224585): no human cached-miss incident; canonical realpath/wrapper discovery remains, while newly appearing packages need owner invalidation/restart. - Presence logical clock (#134737): provenance is synthetic rollback/suspend tests; clock correction may temporarily retain or hide display rows until full update/reconnect, wall time catches up, or restart. TTL, capacity and connection privacy remain. - Suspension timer generation (#130003): the removed test directly called a canceled callback; native timer cancellation and current-entry authority remain. An out-of-contract timer implementation could resume a renewed lease early. - OS tuple-keyed cache (#135911): keep measured probe sharing and sticky labels; hot-patching OS identity needs restart rather than another namespace. - Presence list type guards (409a160): callers supply validated arrays; existing normalization still owns their values. Production +40/-228, net -188. Focused migration, asset/cache, presence/caller, approval-publication and suspension/OS tests pass, as do production and infra-test types, changed-file lint, assertion and suppression checks, and zero-cycle checks. Independent final review has no actionable P0-P2 findings. No schema, durability, retention, indexing, permission, recovery or public SDK change is intended. Broad changed-check is not claimed green: the original base reproduces the 455-versus-454 environment budget failure. The initial Web Push Doctor timeout remains unattributed; all Web Push production hunks were dropped and its exact test passed on restored source. Full build and hosted CI remain unrun.
Share typed actor-store adapters and prepared async auth reads. Reuse the admitted memory-flush plan, retain last-good catalog views by provider, and remove unused metadata bookkeeping and config projections. Preserve live credential/effect authority, FIFO, transcript durability, and ordinary write settlement. Net production reduction: 303 lines. Best-effort tradeoffs accepted: - Plugin-drain successors (#162301, synthetic): wait the current drain once; a later reload owns its own publication and recovery. - A changed memory-flush plan during preparation (#162177/#121157, synthetic): finish with the admitted plan; the next turn resolves again. - Per-row catalog freshness (#158113, synthetic): failed discovery retains the provider's last-good configured and supplemental overlays until success. Existing auth/profile/source gates and successful-empty replacement remain. - MCP sibling invalidation during discovery (#138694, synthetic): a listing may briefly be stale; the next read observes the invalidation. - Passive context metadata supersession (#119607, synthetic): late discovered metadata may win until refresh. Keep the single current-promise check before replacing configured limits, preserving the human capacity fix (#39857). - Registration-time question answers (#110372/#134003, synthetic): a prompt can briefly race the answer; its terminal signal closes delivery. - Duplicate or never-attached internal question registrations: both real producers attach once synchronously. Unsupported misuse loses its extra diagnostic/disposal wakeup; ordinary lifecycle rejection remains. - Cancellation publication once/must-consume flags (#161124, synthetic): the sole internal producer invokes once. Keep active-scope/effect authority. - In-flight placement-service replacement (#164744, synthetic): use the captured startup service, with its observation and writer authority intact. - Compaction callback rebinding (#146732/#163264, synthetic): current work retains its captured callbacks and live assertion; later work captures anew. - Re-entrant logging between synchronous run-owner checks: #162227 removed the awaited retry, making the second check redundant. Real post-await and mutation-effect checks remain. - Startup diagnostic admission (#146792): the sole producer checks lifecycle immediately before recording. Remove only the recorder's duplicate check; preserve the human abort/recovery fix (#146692), reset, and admin redaction. Release-note context: verbose diagnostics no longer include suppressed reply text or background bash command contents. Execution and user replies remain unchanged. Config show uses the same schema-aware redactor without cloning an already detached result or redacting unused snapshot views. Validation: touched core, messaging and Gateway-method type graphs passed; 49 changed TypeScript files passed targeted lint/format; runtime and Madge cycles are both zero. Auth reader, question authority, memory flush, restart claim, catalog worker, cancellation and compaction boundary proof is recorded in the lane ledger. Final supplemental run: 392 tests passed, four failed across 28 files, with final source verification. All 120 agents-support tests passed, including refresh coalescing, publication, run-wait and compaction. The four failures were an unchanged 120s ACP reset deadline and three MCP fixtures settling before child startup markers (empty logs, existing 1-2s connection/4s catalog deadlines). Narrow failed-case replay passed ACP reset and two MCP cases; the one-second MCP retirement fixture still failed before its first child marker. Clean lane-base comparison could not reach assertions: the temporary checkout lacked workspace-local dependency links for worker compilation. That case is unresolved, not proven inherited; coordinator-bundle CI must adjudicate it. No deadline, retry, skip or assertion was weakened. The final selected real-dispatch suppressed-reply logging regression passed with completed source verification (one selected case, 202.58s wrapper). Independent P0-P2 review completed four passes. Declined duplicate findings about unsupported placement-service hot-swap (real observation/database/writer authority remains) and alleged run-wait awaits (only synchronous logging lies between the checks; real mutation and post-await checks remain). Broad check-changed is NOT green: env-name budget 455/454 also fails on the unchanged lane-base index, with no added env names; production/full-tree Knip hit their existing 600s budget; the silent legacy-store scan was interrupted after 782s. Those two scans are missing proof, not attributed inherited reds. Hosted coordinator-bundle CI remains the broad gate. Owned mock/type/legacy fixture findings were corrected and their targeted replays pass. No changelog, dependency, database schema, durability, retention, permission, or public API change is included. BELOW-500 branch-only coordinator handoff; no lane PR or merge.
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
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. |
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…ply text (wave-4 bundle) (openclaw#172669) * refactor(infra): remove redundant replay and freshness machinery Trust successful migration statements inside their synchronous transactions, reuse unchanged approval parses, share canonical package-root discovery, namespace directory caches by plugin identity, and simplify ephemeral presence, OS facts and suspension timer bookkeeping. Keep source validation, conflicts, transaction durability, postcommit checks, security authority and write settlement. Best-effort tradeoffs accepted - Node-host own-write verification (openclaw#108457): no human successful-SQL-loss report; SQL errors still roll back, and independent source retirement checks remain. - Workspace setup/attestation replay (openclaw#109147): no human driver-rewrite report; trust successful writes while retaining fingerprints and later source checks. - APNs expected-ID replay (openclaw#108543): no human silent-insert-loss report; canonical parsing, tombstones and receipts remain. - Device-auth presence assertion (openclaw#112663): no human successful-upsert-loss report; credential validation and transaction failure handling remain. - Device-identity replay (openclaw#110392): no human silent-row-rewrite report; preserve independent post-await verification before source deletion. - MCP OAuth replay (openclaw#161219): no human silent-write-loss report; canonical/source parsing and worker admission remain. - Exec-approval read/parse/deep-compare replay (openclaw#114063): no human successful-driver-rewrite report; malformed policy stays fail-closed and actual authority is unchanged. - Shared-auth target reread (openclaw#123349): no human silent-row-rewrite report; return the known SQL postimage and keep independent copy/flip/cleanup checks. - Identical authored approval bytes (openclaw#168094) reuse the existing parse; changed normalized bytes still parse before publication. - Plugin metadata fingerprinting (f31bc71): no human in-place metadata-mutation report; distinct objects remain isolated, and same-object edits use TTL/reset. - Duplicate asset ancestor search (40fb74f): no human cached-miss incident; canonical realpath/wrapper discovery remains, while newly appearing packages need owner invalidation/restart. - Presence logical clock (openclaw#134737): provenance is synthetic rollback/suspend tests; clock correction may temporarily retain or hide display rows until full update/reconnect, wall time catches up, or restart. TTL, capacity and connection privacy remain. - Suspension timer generation (openclaw#130003): the removed test directly called a canceled callback; native timer cancellation and current-entry authority remain. An out-of-contract timer implementation could resume a renewed lease early. - OS tuple-keyed cache (openclaw#135911): keep measured probe sharing and sticky labels; hot-patching OS identity needs restart rather than another namespace. - Presence list type guards (3965f6b): callers supply validated arrays; existing normalization still owns their values. Production +40/-228, net -188. Focused migration, asset/cache, presence/caller, approval-publication and suspension/OS tests pass, as do production and infra-test types, changed-file lint, assertion and suppression checks, and zero-cycle checks. Independent final review has no actionable P0-P2 findings. No schema, durability, retention, indexing, permission, recovery or public SDK change is intended. Broad changed-check is not claimed green: the original base reproduces the 455-versus-454 environment budget failure. The initial Web Push Doctor timeout remains unattributed; all Web Push production hunks were dropped and its exact test passed on restored source. Full build and hosted CI remain unrun. * refactor(agents): simplify reply preparation and refresh bookkeeping Share typed actor-store adapters and prepared async auth reads. Reuse the admitted memory-flush plan, retain last-good catalog views by provider, and remove unused metadata bookkeeping and config projections. Preserve live credential/effect authority, FIFO, transcript durability, and ordinary write settlement. Net production reduction: 303 lines. Best-effort tradeoffs accepted: - Plugin-drain successors (openclaw#162301, synthetic): wait the current drain once; a later reload owns its own publication and recovery. - A changed memory-flush plan during preparation (openclaw#162177/openclaw#121157, synthetic): finish with the admitted plan; the next turn resolves again. - Per-row catalog freshness (openclaw#158113, synthetic): failed discovery retains the provider's last-good configured and supplemental overlays until success. Existing auth/profile/source gates and successful-empty replacement remain. - MCP sibling invalidation during discovery (openclaw#138694, synthetic): a listing may briefly be stale; the next read observes the invalidation. - Passive context metadata supersession (openclaw#119607, synthetic): late discovered metadata may win until refresh. Keep the single current-promise check before replacing configured limits, preserving the human capacity fix (openclaw#39857). - Registration-time question answers (openclaw#110372/openclaw#134003, synthetic): a prompt can briefly race the answer; its terminal signal closes delivery. - Duplicate or never-attached internal question registrations: both real producers attach once synchronously. Unsupported misuse loses its extra diagnostic/disposal wakeup; ordinary lifecycle rejection remains. - Cancellation publication once/must-consume flags (openclaw#161124, synthetic): the sole internal producer invokes once. Keep active-scope/effect authority. - In-flight placement-service replacement (openclaw#164744, synthetic): use the captured startup service, with its observation and writer authority intact. - Compaction callback rebinding (openclaw#146732/openclaw#163264, synthetic): current work retains its captured callbacks and live assertion; later work captures anew. - Re-entrant logging between synchronous run-owner checks: openclaw#162227 removed the awaited retry, making the second check redundant. Real post-await and mutation-effect checks remain. - Startup diagnostic admission (openclaw#146792): the sole producer checks lifecycle immediately before recording. Remove only the recorder's duplicate check; preserve the human abort/recovery fix (openclaw#146692), reset, and admin redaction. Release-note context: verbose diagnostics no longer include suppressed reply text or background bash command contents. Execution and user replies remain unchanged. Config show uses the same schema-aware redactor without cloning an already detached result or redacting unused snapshot views. Validation: touched core, messaging and Gateway-method type graphs passed; 49 changed TypeScript files passed targeted lint/format; runtime and Madge cycles are both zero. Auth reader, question authority, memory flush, restart claim, catalog worker, cancellation and compaction boundary proof is recorded in the lane ledger. Final supplemental run: 392 tests passed, four failed across 28 files, with final source verification. All 120 agents-support tests passed, including refresh coalescing, publication, run-wait and compaction. The four failures were an unchanged 120s ACP reset deadline and three MCP fixtures settling before child startup markers (empty logs, existing 1-2s connection/4s catalog deadlines). Narrow failed-case replay passed ACP reset and two MCP cases; the one-second MCP retirement fixture still failed before its first child marker. Clean lane-base comparison could not reach assertions: the temporary checkout lacked workspace-local dependency links for worker compilation. That case is unresolved, not proven inherited; coordinator-bundle CI must adjudicate it. No deadline, retry, skip or assertion was weakened. The final selected real-dispatch suppressed-reply logging regression passed with completed source verification (one selected case, 202.58s wrapper). Independent P0-P2 review completed four passes. Declined duplicate findings about unsupported placement-service hot-swap (real observation/database/writer authority remains) and alleged run-wait awaits (only synchronous logging lies between the checks; real mutation and post-await checks remain). Broad check-changed is NOT green: env-name budget 455/454 also fails on the unchanged lane-base index, with no added env names; production/full-tree Knip hit their existing 600s budget; the silent legacy-store scan was interrupted after 782s. Those two scans are missing proof, not attributed inherited reds. Hosted coordinator-bundle CI remains the broad gate. Owned mock/type/legacy fixture findings were corrected and their targeted replays pass. No changelog, dependency, database schema, durability, retention, permission, or public API change is included. BELOW-500 branch-only coordinator handoff; no lane PR or merge. * chore: shrink stale reply assertion allowance * test: align catalog publication calls with current contract
What Problem This Solves
Removes redundant infra and reply/agent bookkeeping, and stops verbose logs from retaining private reply previews and raw bash command text.
User Impact
User impact: verbose logs retain suppressed-reply metadata and background-session identifiers without recording private reply or command text. Execution inputs and user-facing replies are unchanged. No configuration or migration is required.
Why This Change Was Made
This bundles two disjoint wave-4 lanes: x05 simplifies infra migration own-write replay, process-stable OS/plugin caches, asset discovery, suspension timers, and ephemeral presence; x06 consolidates auth/outbox/kill-scope adapters and simplifies reply preparation, catalog retention, context refresh, question delivery, and redundant synchronous checks.
Main's rewritten restart-claim admission owner and its tests are kept unchanged; the overlapping x06 hunks were dropped rather than recreating the old inline implementation. Storage retains its existing SQL transactions, validation, receipts, postcommit/source-retirement checks, schema, durability, and recovery semantics. Web Push cleanup was already withdrawn from x05 and is not included.
Combined delta: 487 net production lines removed (+207/-694), 716 net lines removed overall (+380/-1,096), across 71 files. Production excludes tests, fixtures, test harnesses/support, declarations, and generated code. Bundle integration also removes the now-zero commands-config assertion allowance and two obsolete sixth arguments in root catalog-publication tests; production inputs are unchanged from the reviewed candidate.
Best-effort tradeoffs accepted
Presence uses heartbeat wall time: clock corrections may temporarily retain stale rows or expire fresh rows early; updates/reconnects or restart repair the display. Process-stable OS facts require restart after unsupported hot-patching. Same-object plugin metadata changes use the directory cache's existing TTL/reset, and assets appearing after negative canonical root discovery require owner invalidation/restart.
Migration writes trust successful statements inside their synchronous transaction instead of rereading their own writes; broken drivers or out-of-contract triggers no longer get bespoke replay diagnostics. Native timer cancellation replaces synthetic canceled-callback replay fencing. Discovery/context metadata and overlapping plugin reloads may remain stale until the next refresh; configured context-limit publication still checks its current promise. Failed legacy provider discovery keeps the same-account/profile/source last-good provider view, including overlays. Registration-time answers may briefly race prompt delivery; terminal publication still closes it. Security/effect authority, durable write settlement, FIFO ordering, and cancellation remain with their existing owners.
Evidence
Fresh bundle proof: core plus seven touched test-type graphs pass (infra, messaging, agents-root, agents-other, agents-tools, agents-sessions, gateway-methods); type-aware lint and formatting pass; runtime and Madge cycle checks both report zero; scoped presence MDX, diff-whitespace, and native schema-version checks pass (v22 unchanged). The assertion-safety ratchet passes after removing the stale zero-count commands-config allowance: 2,695 files, 6,302 grandfathered assertions. The conflict-touched restart-claim and catalog-owner suites pass 65 cases, and all three lint-suppression cases pass (505.10s wrapper including preparation and generated-source verification). Both private-text logging regressions pass (224.89s Vitest / 240.48s wrapper, two cases; 302 unrelated cases filtered). These are real owner/dispatch compositions, so cold graph preparation dominates the local timings.
Fresh independent P0–P2 review through the requested command-auth route completed with one P2 finding, declined after direct source verification: it alleges an
await notifySubagentCompletionafter capturing the run row, but that call does not exist in the module. The removed duplicate check follows synchronouslog.warn; the later mutation rereads and validates the owner, and resume revalidates after its await. No accepted/actionable finding remains. This is a completed findings report with an evidence-backed decline, not a claim that the reviewer returned scoped-clean.PR CI is the broad proof, including build and remaining lane coverage; no CI reruns are requested to chase green. The local full-build and broad-suite runs are intentionally left to CI on this heavily loaded host.
First CI failure disposition
Run 38661392653, attempt 1, tested
067948b460071c1e31a6bb528f79ac8126ef7d09. Build, security-fast, and all other selected lanes passed except the two jobs below and their aggregate gate. This is not an all-green run.check-test-types-core-5(116183905001)b5432d5ef7e17bc2cb52e86cfb73e57a7014c2c6.checks-node-changed-compact-small-11-2(116183757264)b5432d5ef7e17bc2cb52e86cfb73e57a7014c2c6(97.80s / 109.88s), with generated-source verification. The cron fixtures and authorization producer are unchanged. The required account gate is not weakened.openclaw/ci-gate(116186822780)The 455/454 environment-name budget failure reproduces on pinned bundle base
69d500b410f5d2f6ad169b9852f4d2c28cc720e0. The bundle adds no environment names or budget increases.The MCP case
retires timed-out shared MCP sessions before later catalog retriesfails identically on that clean main base and reviewed bundle head4859325ab8e7ecd32457c12c285cf052eeceb44d: the operation settles beforefirst initialize pid, with an empty fixture log. The later commit only removes one stale baseline row; production/test inputs are identical. Main: 218.45s Vitest / 237.29s wrapper; bundle: 218.74s / 237.86s. Both completed generated-source verification. The test, runtime, and manager are unchanged. This fixture uses only configured static servers, so the manager returns its static lease before the x06 combined-runtime adapter. This establishes an inherited local startup failure, not a fix or a passing replay. Connection/test deadlines remain unchanged; 57 unrelated cases were filtered, not skipped in source.Source-lane proof is retained for unchanged inputs; fresh bundle checks cover the touched type graphs, lint/format, lint suppressions, cycles, the conflict-touched restart-claim owner, catalog publication, and both private-text log regressions. Broad local lane runs were incomplete; they are not presented as all-green proof.
Current-head CI and inherited-failure qualification
Run 38663116938, attempt 1, completed for
c5bb4cc570d5568a5484c0e73bf9eda5b7019cc1: 133 terminal jobs, 844 seconds wall from first job start to aggregate completion; summed reported job wall time 27,573 seconds (parallel jobs/setup included). Build, security-fast, repaired root-other types, and every other selected lane passed.The actual checkout is merge
03b0ed9f2bf1e3db8f2c453f6deca1ea2cc5722b, with ordered parents maina10ae12e01bdcb5f4214bad403edf1512bf96561and the exact PR head. Its tree matches Git's reconstructed merge; its baseline-to-merge delta is exactly 71 files, +380/-1,096. The cron subtree is byte-identical to the inspected main replay and unchanged by that merge.checks-node-changed-compact-small-11-2(116189346193)openclaw/ci-gate(116192996542)No failed job or workflow was rerun for green. The only follow-up push fixes the two concrete root-test caller errors found by the first run. Exact-head review, current-attempt failure accounting, retained artifact hashes, reconstructed checkout, and native authority/security verification govern exception admission.
Source Lanes
Credited source lanes: x05,
deslop/x05-infra-database-20261014atd34ab5fc846aedc31e6d2d76f5be4baf19330491; x06,deslop/x06-reply-agents-20261014at8a633333d0d5d204bc2a514838a98b0e9a6d65dd. Both commits are cherry-picked onto the fresh bundle base, with the rewritten restart-claim overlap omitted.