Skip to content

refactor(core): deslop state, skills, logging, ACP and session helpers - #160382

Merged
steipete merged 5 commits into
mainfrom
deslop/l138-state-skills-mid
Sep 29, 2026
Merged

steipete merged 5 commits into
mainfrom
deslop/l138-state-skills-mid

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Reduces repeated internal orchestration and forwarding code across state, skills, logging, ACP, onboarding, media, and workers.

User Impact

No intended user-visible change. SQLite schemas, query effects, migration policy, retention, indexing, concurrency/recovery, redaction, ACP payloads, whole-skill serving, prompt/default text, session keys/transcript bytes, media limits, manifests, and config keys are preserved.

Why This Change Was Made

  • State shares journal fence fields, lifecycle cleanup, schema extraction and error owners; the audit migration derives its existing ordered copy projection once.
  • Skills removes duplicate filtering/projection layers, immediate Result unwrapping and obsolete forwarding exports; callers use the existing owner directly.
  • ACP shares identical actor-current checks and native metadata publication, keeping authority checks and transactions in their existing positions.
  • Logging reuses canonical normalization and record guards and consolidates identical diagnostic projections without changing masking.
  • Media shares guarded response validation/release between buffer and stored-file consumers, preserving retry and limit boundaries.
  • Wizard/model selection shares repeated rendering, confirmation and field-application paths; worker protocols share bounded JSON decoding.

Measured reduction: 842 net production LOC (+790/−1,632), 15 net test/support LOC (+91/−106), and four assertion-baseline lines. Total: 114 files, +883/−1,744. The result is below the requested threshold after implementing the sound opportunities from the full subtree pass. Coverage: all 292 production files over 200 lines, each marked READ with its simplification or preservation rationale.

Evidence

Final candidate: 0dd54eb95c85ad967ef5446a0a32c43927170e03, tree db966e3933dc492a8c2efc8d132c2f9e3c5a83c7, integrated base ec101d561e2c852a7e3c419c1df9a5f0f620861c. All selected Testbox proof passed. A fresh merge-tree check against main c259398c7cb3796c57b0723f15c8d0789d73ce40 was conflict-free; this does not relabel that later main as the tested base.

Final-head Linux proof ran through the repository Crabbox wrapper on Blacksmith Testbox, lease tbx_01m3nt7gpp60dm1x5ef7j0jk9c, run 36526415287, with frozen dependencies and exact source/tree verification:

Check Result
OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build Passed, 388s
ACP files individually via pnpm test <file> --maxWorkers=1 Backend-failover: 2 cases, 2s; manager failover: 6 cases, 30s, including worker artifact preparation
node scripts/check-changed.mjs --base <pinned base> -- <eight integration paths> Passed, 1,284s: core types, all 27 test typecheck groups, Knip, lint/format, schema/architecture guards and zero runtime import cycles
pnpm plugin-sdk:api:diff --base <pinned base> --head HEAD --require-acknowledgement Passed, 134s; no Plugin SDK API changes, digest ff7b090f
Native cross-shard owner/importer refresh 273 selected files: 271 passed, 2 native skips; 3,517 cases passed, 18 native skips. Batches of 14/181/78 completed in 66.110/570.976/148.474s
Import boundaries All 14 suites passed, including src/infra/fs-safe-import-boundary.test.ts and siblings
Original-order reply E2E shard 2 files / 223 cases passed, 140.06s Vitest duration, using main's fixture repair
Canonical public package build and tarball integrity Passed, 326s; rebuilt through the public-package owner after the private-QA profile
Published installed updater → final candidate, preservation and repeat Doctor Passed, 50s complete cell

Cross-shard execution used node --import ./scripts/tsx.mjs scripts/test-projects.mts <explicit targets> -- --reporter=dot. The eight changed-check inputs cover the ACP conflict resolution and the integrated state/Doctor owners. Earlier full-branch check-changed passed in 2,347s; the unchanged cleanup retains that proof. The broader lane/importer selection and later 798-file refresh completed on earlier qualified revisions, including native skips; these are retained unchanged-input evidence, not newly executed final-head files. The 31 opt-in live-provider suites were excluded. No aggregate spanning those historical runs is claimed.

The actual installed [email protected] driver ran openclaw update --tag file:<candidate.tgz> --yes --json --no-restart in an isolated existing store created by the published CLI. Update JSON reported ok, with every step exiting 0. The updater-child candidate Doctor migrated state schema 1 → 19 before standalone repair. All 17 legacy audit fields, integer AUTOINCREMENT high-water 47 with retained row 7, three valid cron configurations/projections, and both malformed jobs' exact original JSON and recovery metadata in quarantine survived. Installed immutable application payload matched the tarball for the final commit. Repeat Doctor left the complete audit/cron/quarantine/schema/integrity snapshot unchanged. No production migration guard was altered to accommodate the fixture.

Before/after proof also passed 720 exact terminal-renderer comparisons and four media blank-workspace fallback probes. The renderer harness invokes the old and new render callbacks while retaining Clack wrapping/layout, covering initial/active/error/submit/cancel, 24/80 columns, guide visibility, empty/multiline errors, selections and navigation. No appearance or rendered state changes, so the visual-change screenshot gate does not apply; the review request based on an assumed visual change is rejected on this evidence.

The other changed test files were individually measured with pnpm test <file> --maxWorkers=1 on unchanged inputs: runtime-handle reset 18.94s, model-picker 27.03s, command-specs 2.49s, skill-index 1.24s, proposal-draft 14.54s command wall. Hosted test durations were unavailable while the PR was a draft; Testbox results are not hosted-CI claims.

Independent Codex review has no accepted actionable finding. Two whole-diff findings were rejected with complete-source evidence: ClawHub callers copy parameters and assign local GitHub resolution only without an explicit version; canonical media facts normalize workspace values before fallback. Subsequent fixture/counting and conflict-resolution reviews were scoped-clean. The four retained commits replayed patch-identically on the final base.

Fixes found along the way

The cancellation fixture exposed asynchronous recovery-owner release outliving temporary-store cleanup, allowing a late database registration to invalidate the next case's registry snapshot. The original order was reproduced; our repair passed 20/20 whole-file repetitions on 176db735e94 (222 cases each, median 135.8575s, range 124.337–164.31s) and 3/3 original-shard replays (223 cases, 154.953/136.790/140.191s). These remain historical measurements.

Main then landed a narrower repair in 863e377524a via #159527. Source inspection confirmed its lifecycle-admission wait joins the same recovery-release promise. Both our broader teardown and the identical counter cleanup were dropped, leaving no diff in that fixture. The final 223-case shard above verifies the integrated main-owned repair. An experience-review fixture defect was likewise already repaired on main in 6dd3011e9f5 and was not duplicated. No assertions, timeouts, retries or cases were weakened.

Several earlier leases were interrupted; only unfinished phases were resumed, and prior results remain revision-qualified. The final remote command exited 0 after all gates passed; a subsequent external runner-portal sync warning did not change its result. Task-owned leases are stopped during closeout; no Gateway, release or deployment was changed.

@clawsweeper

clawsweeper Bot commented Sep 28, 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 gateway Gateway runtime commands Command implementations agents Agent runtime and tooling size: XL labels Sep 28, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 3:13 AM ET / 07:13 UTC (Revision 12).

ClawSweeper review

What this changes

The branch consolidates duplicated code across SQLite state, skill loading, ACP sessions, setup prompts, media, logging, and worker request parsing, with focused test updates.

Warning

SQLite table change

This PR modifies persisted SQLite tables in src/state/openclaw-state-schema-compatibility.ts. Prefer a design that avoids changing persisted SQLite tables. Migration or upgrade compatibility proof is recorded, but maintainers should still confirm that the schema change is necessary.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open. Current main has not absorbed this cleanup, and the related merged work addresses adjacent behavior. Review of the storage, setup, skill, media, and worker changes found no discrete introduced defect.

Priority: P3
Reviewed head: 484a801467d6453671f5cf10a8fc83a442b66b7e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong reported upgrade and boundary proof supports a broad, coherent cleanup with no identified blocking defect.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The captured PR body ties the changed state migration and runtime owners to a published-updater Testbox run and reports a successful candidate update with legacy audit, cron, and quarantine state preserved through repeat Doctor. Focused ACP, skill, media, and renderer checks supplement that real setup. The final commit changes worker type imports only; the linked workflow's raw logs were unavailable through the reviewer proxy. The reported existing-state preservation supports compatibility for the changed migration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured PR body ties the changed state migration and runtime owners to a published-updater Testbox run and reports a successful candidate update with legacy audit, cron, and quarantine state preserved through repeat Doctor. Focused ACP, skill, media, and renderer checks supplement that real setup. The final commit changes worker type imports only; the linked workflow's raw logs were unavailable through the reviewer proxy. The reported existing-state preservation supports compatibility for the changed migration.
Evidence reviewed 8 items Migration projection: The changed audit repair derives the same ordered legacy column copy, inserts schema version 1, and retains the sequence high-water restoration.
Setup value handling: The consolidated plugin setup branches retain the existing value on an unchanged choice and reject invalid numeric input before writing config.
Final commit scope: The last commit moves worker store type aliases into this file to break an import cycle. The prior blob was read through the GitHub blob API after the partial clone could not fetch it; the executable checks in this file are unchanged.
Findings None None.
Security None None.

How this fits together

Gateway and CLI flows receive setup choices and agent requests. Skill, ACP, media, and SQLite worker owners turn those inputs into capabilities, session state, replies, and diagnostics.

flowchart LR
A[Setup choices and agent requests] --> B[Gateway and CLI flows]
B --> C[Skill loading]
B --> D[ACP session control]
B --> E[SQLite state workers]
C --> F[Agent execution]
D --> F
E --> F
F --> G[Media and logging]
G --> H[Replies and diagnostics]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

None.

Stored data model

Persistent data-model change detected: database schema: src/state/openclaw-agent-db-registry-listing.ts, database schema: src/state/openclaw-state-db-audit-migration.ts, database schema: src/state/openclaw-state-schema-compatibility.ts, migration/backfill/repair: src/state/openclaw-state-db-audit-migration.ts, unknown-truncated-pull-files. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Technical review

Best possible solution:

Retain one owner for each internal responsibility while preserving installed-upgrade behavior, session authority, and existing plugin configuration values.

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

Not applicable: this is an internal cleanup rather than a reported broken behavior. Source comparison and the contributor's parity checks assess preservation.

Is this the best way to solve the issue?

Yes. The sampled changes reuse existing owners and preserve the inspected migration and setup decisions; current main does not contain the central cleanup.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 10e951e85748.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal cleanup with no intended user-visible behavior change or identified urgent regression.
  • merge-risk: 🚨 compatibility: The branch touches audit migration and plugin setup paths used by existing installations; the reported published-updater cell supplies upgrade evidence.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured PR body ties the changed state migration and runtime owners to a published-updater Testbox run and reports a successful candidate update with legacy audit, cron, and quarantine state preserved through repeat Doctor. Focused ACP, skill, media, and renderer checks supplement that real setup. The final commit changes worker type imports only; the linked workflow's raw logs were unavailable through the reviewer proxy. The reported existing-state preservation supports compatibility for the changed migration.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured PR body ties the changed state migration and runtime owners to a published-updater Testbox run and reports a successful candidate update with legacy audit, cron, and quarantine state preserved through repeat Doctor. Focused ACP, skill, media, and renderer checks supplement that real setup. The final commit changes worker type imports only; the linked workflow's raw logs were unavailable through the reviewer proxy. The reported existing-state preservation supports compatibility for the changed migration.

Evidence

What I checked:

  • Migration projection: The changed audit repair derives the same ordered legacy column copy, inserts schema version 1, and retains the sequence high-water restoration. (src/state/openclaw-state-db-audit-migration.ts:260, 484a801467d6)
  • Setup value handling: The consolidated plugin setup branches retain the existing value on an unchanged choice and reject invalid numeric input before writing config. (src/wizard/setup.plugin-config.ts:276, 484a801467d6)
  • Final commit scope: The last commit moves worker store type aliases into this file to break an import cycle. The prior blob was read through the GitHub blob API after the partial clone could not fetch it; the executable checks in this file are unchanged. (src/state/openclaw-state-worker-operation.ts:16, 484a801467d6)
  • Current-main comparison: The sampled central audit, ClawHub install, media fetch, and ACP helper files have no changes between the pinned base and fetched current main; the branch retains distinct work in those files. (10e951e85748)
  • Existing-state proof: The captured PR body reports a published [email protected] updater-to-candidate Testbox run, successful update JSON, preservation of 17 legacy audit fields and the sequence high-water mark, and an unchanged repeat Doctor snapshot. It also reports terminal-renderer comparisons and media fallback probes. These are contributor-reported observations, not independently replayed in this read-only review.
  • Linked proof run limitation: The linked Testbox workflow is recorded as cancelled after the reported command. Its raw log redirect was blocked by the reviewer proxy, so run metadata alone does not establish or refute the candidate command's reported result.

Likely related people:

  • unknown: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Kimi Yu: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: 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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-28T23:26:44.337Z sha f24f64c :: blocked before merge. :: none
  • reviewed 2026-09-28T23:40:56.458Z sha f24f64c :: blocked before merge. :: none
  • reviewed 2026-09-29T00:54:35.439Z sha 22ac22f08f9c3f0e67f44bdabbe8deb499f11e74 :: blocked before merge. :: none
  • reviewed 2026-09-29T02:18:03.797Z sha 22ac22f08f9c3f0e67f44bdabbe8deb499f11e74 :: blocked before merge. :: none
  • reviewed 2026-09-29T05:17:23.282Z sha 60f131d3306bece572d58f483c447ac559ec5b5d :: blocked before merge. :: none
  • reviewed 2026-09-29T05:27:44.918Z sha 60f131d3306bece572d58f483c447ac559ec5b5d :: blocked before merge. :: none
  • reviewed 2026-09-29T05:44:25.155Z sha 0dd54eb :: blocked before merge. :: none
  • reviewed 2026-09-29T06:58:14.009Z sha 0dd54eb :: blocked before merge. :: none

@steipete
steipete force-pushed the deslop/l138-state-skills-mid branch from 49ee48a to 176db73 Compare September 28, 2026 19:03
@steipete

steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor Author

l138 subsystem deslop coverage

Initial base: fd9ac3e. Integrated base: ec101d5. Final retained simplifications remove 842 net production LOC, 15 test LOC, and four assertion-baseline lines.

All assigned production source was read, prioritizing untouched files over 150 lines after reviewing merged changes since 2026-09-18. This log covers every production file over 200 lines on the integrated base: 292 files, sorted below by current line count after cleanup. Files reduced below 200 lines remain listed. Generated declarations remain generator-owned; test/support files are excluded. The two worker type cleanups now owned by main were removed from this lane.

Current lines Production file Result
2735 src/state/openclaw-state-schema.sql READ. Canonical persistent DDL; no schema/index/constraint change permitted or needed.
1919 src/state/openclaw-state-db.generated.d.ts READ — generated Kysely schema declarations; regeneration without schema change yields no sound simplification.
1594 src/logging/redact.ts READ — Redaction phases use different decoded, original-source and serialized coordinates; the source-policy callbacks and token hints are observable. Retained the established single masking owner without weakening full-context, registry or field policy.
1365 src/flows/model-picker.ts READ; Centralized duplicate allowlist selection/clear confirmation; reused canonical fallback model value resolver, preserving prompt strings/defaults and scoped selection behavior.
1262 src/wizard/i18n/locales/en.ts READ; Fixed prompt copy and keys consumed by core and SDK translators; no code duplication to eliminate without changing the hard prompt contract.
1254 src/media/web-media.ts READ — HTML provenance has legacy synchronous database ownership; retained intact because this lane cannot migrate storage semantics. Compression grids, text validation, and error classifications have distinct contracts.
1214 src/wizard/i18n/locales/zh-TW.ts READ; Independent Traditional Chinese prompt copy; retained whole dictionary and fallback-compatible keys.
1213 src/wizard/i18n/locales/zh-CN.ts READ; Independent Simplified Chinese prompt copy; retained whole dictionary and fallback-compatible keys.
1202 src/flows/doctor-core-checks.ts READ; Retained distinct diagnostic and repair owners: cron pagination validates snapshot identity, repair effects differ, health check receivers remain caller-owned. No safe large shared flow remained.
1053 src/logging/diagnostic.ts READ — Reused SessionState instead of redeclaring private helper subsets. Preserved heartbeat override callback binding after review; stale observations, recovery clock, scheduler identity and generation checks remain unchanged.
1026 src/wizard/setup.finalize.ts READ; Service lifecycle, gateway reachability, health outcome, credential-source guidance, and temporary TUI gateway cleanup have distinct failure and ownership boundaries. No sound large contraction.
1017 src/state/openclaw-agent-schema.sql READ. Canonical transcript/storage DDL and ordered trigger groups; no schema/index/constraint change permitted or needed.
1003 src/logging/diagnostic-stability-bundle.ts READ — Ordered field admission preserves first-failure labels and exact omitted/default fields. Existing assignOptionalFields already removed large duplication; retention and atomic persistence remain unchanged.
974 src/flows/channel-setup.ts READ; Retained install/enable/back-navigation state machine: rollback checkpoints distinguish persistent effects and configured versus paused setup; scoped metadata and runtime ownership must remain explicit.
815 src/logging/diagnostic-stability.ts READ — Event-specific field allowlists and mappings prevent payload leakage; ring and exporter state have different lifecycles. Prior helper consolidation is retained, with no generic policy layer added.
808 src/logging/diagnostic-support-export.ts READ — Config, status, health, log-tail and stability inputs have distinct failure/publication shapes. Their existing common snapshot collector and bundle builder already own duplication.
781 src/skills/security/scanner.ts READ: Retained line/source rule distinctions, child-process provenance, cache identities, omission accounting and credential evidence redaction; sharing their branches would change matching or ordering.
770 src/wizard/clack-navigation-prompts.ts READ; Merged selected/cancelled option rendering and multiselect error/default list rendering; removed unreachable exhaustive-switch return and redundant single-line label branch. Preserve exact bytes/styles/wrapping/row padding.
768 src/skills/runtime/refresh.ts READ: distinct watcher acquisition, replacement, coverage, and shutdown transitions retain required synchronous reentrancy guards and recovery semantics; no safe remaining restructuring identified.
762 src/state/openclaw-state-db-cache.ts READ — cached, unpublished, retained, borrowed, and removal handles have distinct cleanup custody; merging would obscure necessary failure ownership.
759 src/state/openclaw-agent-db.ts READ — removed the private one-caller lookup wrapper; lookup and idle refresh now live in the public owner with identical ordering.
758 src/sessions/session-lifecycle-admission.ts READ — Retained ordered identity locks, pending/acquired custody, abort settlement, and chunk-compatibility indices; simplifying these would alter concurrency.
754 src/state/openclaw-state-db-async-lifecycle.ts READ — seal, physical identity, captured generation, and failed-drain retention are separate invariants; recent lifetime consolidation already removed duplicate drainage.
751 src/state/openclaw-agent-db-lease.ts READ - Retained physical-path lease comparisons, integrity receipt invalidation, maintenance admission, and all transaction effects; recent simplification already shares receipt reads.
748 src/media/fetch.ts READ — Unified repeated guarded-response validation and release lifecycle; replaced fallback error casts with typed Object.assign augmentation. Retry policy, byte validation, redaction and transport cancellation preserved.
747 src/sessions/session-state-events.ts READ — Retained exact head/cursor SQL, frozen notice watermark acknowledgments, pruning, and worker admission; no persistent-store semantic change authorized.
739 src/sessions/user-turn-transcript.ts READ — Retained lazy media resolution, idempotent admission, exact original-input callbacks, and provider-prefix preservation; distinct commit phases are observable.
738 src/acp/translator.prompt-stream.ts READ — Retained serialized prompt admission, disconnect fallback, ledger/stream settlement, and per-run cancellation; each branch owns a distinct terminal path.
732 src/state/openclaw-state-db-readonly.ts READ — retained local path resolution to preserve the maintenance resolver's SDK-reachable declaration; snapshot/admission/cleanup scopes retained.
724 src/state/user-profile-list.ts READ: retained catalog, delayed receipt witnesses, late admission and email-binding publication carry distinct live-authority invariants; no further sound reduction established.
722 src/logging/logger.ts READ — Replaced repeated record guards/casts with canonical normalization helpers, retained scalar narrowing and one diagnostic-attribute write/count path. File encoding, redaction, trace authority and rolling retention remain unchanged.
722 src/media/store.ts READ — Scoped buffer and stream writers differ in stream replay, publication durability and retained read authority. Existing fs-safe cutover already removed duplicate storage implementation; no safe further consolidation without changing those lifecycles.
722 src/skills/lifecycle/install.ts READ: Express command validation as success/error union, remove unreachable null-command/download branches and redundant argv clone, inline the single-use success projection. Recipe validation, arguments, prerequisite order, environment, and messages remain unchanged.
710 src/wizard/setup.ts READ; Setup stages preserve live config merge bases, explicit flow choice, import promotion and credential verification boundaries. Earlier sweeps already centralized stage owners.
709 src/state/openclaw-agent-execution.worker.ts READ - Retained request-local preparation, source identity checks, publication receipts, and per-domain lazy imports; apparently duplicate checks are on distinct grant boundaries.
707 src/skills/loading/skill-root-discovery.ts READ: no further sound simplification: bounded raw-entry/directory traversal, root promotion, per-source symlink admission and diagnostics represent separate contracts; prior PR already unified nested scanning and warnings.
703 src/acp/control-plane/manager.core.ts READ — CHANGED shared actor-error import ownership; facade methods bind manager state and preserve queue/abort custody.
700 src/logging/diagnostic-run-activity.ts READ — Per-owner model starts, tool liveness, semantic progress and recovery cutoffs have different authority requirements; recent fixes deliberately preserve independently revalidated lifetimes.
689 src/state/openclaw-database-preflight.ts READ — prepared snapshot, admission, deferred readiness, cancellation and cleanup outcomes have distinct contracts; no sound common-flow deletion remains.
679 src/state/openclaw-state-db-maintenance.ts READ — resolver relocation withdrawn because SDK API comparison proves the exact module namespace is public-reachable; historical migration and schema assertions retained verbatim.
678 src/flows/search-setup.ts READ; Merged duplicate existing OAuth/auth-profile note+selection branches with exact original message strings and defaults.
676 src/media/parse-output.ts READ — Reused local-file structural classifier after the unchanged traversal and home-prefix rejection; kept Markdown whitespace, span accounting and remote host policy intact.
676 src/media/playback-transcode.ts READ — Inspection waiter admission, cancellation, identity-bound staging and playback job settlement are separate invariants; retained their existing ownership and codec/output validation.
670 src/state/user-profiles.ts READ: replaced imperative merge-result alias-kind accumulation with ordered descriptor projection; SQL, ordering, public shape unchanged.
667 src/state/openclaw-agent-execution.ts READ - Retained shared idle-generation custody, alias fences, explicit creating admission, and failure recovery; recent fixes make cleanup refusal replay intentionally stateful.
666 src/state/openclaw-state-worker-owner.ts READ - Retained newest actor retirement fix and exact live/retiring owner joins; duplicate availability checks occur before and after awaited custody changes.
662 src/state/openclaw-agent-db-lifecycle.ts READ — consolidated the three identical unused-exit-hook cleanup blocks; native cleanup and cache-removal ordering unchanged.
660 src/skills/loading/workspace-skill-loader.ts READ: removed filterWorkspaceSkills forwarding layer, use the filter owner's named options directly, derive duplicate prompt/menu load option shapes from WorkspaceSkillLoadOptions. Kept cache lifecycle, source precedence and authority revalidation intact.
653 src/logging/diagnostic-support-redaction.ts READ — Config and snapshot traversal already share one bounded sanitizer; private-map, program-argument and SecretRef cases have distinct privacy policies. Path variants and public error allowlists retain their strict boundaries.
650 src/state/openclaw-state-read-worker.ts READ - Command capture and byte accounting differ by wire shape and retained-input budget; transport owns settlement and native cleanup, so no generic clone or size replacement is equivalent.
644 src/wizard/setup.migration-import.ts READ; Provider discovery, fresh target/source verification, staged apply, config promotion and deferred activation are intentionally separate; preserve hard migration and recovery contracts.
642 src/state/openclaw-state-worker-runtime.ts READ - Domain dispatch already delegates to canonical feature kernels; similar-looking branches have different read-only, artifact-preservation, transaction and admission contracts.
640 src/flows/doctor-health-contributions.ts READ; Retained contribution sequencing and refusal boundaries: migrations, update budgets, config revision authority, and warning precedence are materially distinct.
634 src/flows/doctor-health-contribution-runners.config.ts READ; Retained config writer authority, include boundaries, post-commit refusal and queued cleanup sequencing. Canonical emitDoctorNotes changes sanitization/grouping so is not an identical replacement.
633 src/wizard/session.ts READ; Remote client steps, progress acknowledgements, device-code presentation and cancellation/settlement enforce separate protocol lifecycle contracts; no sound redundant owner found.
625 src/sessions/session-diff.runtime.ts READ — Retained separate bounded patch versus baseline fingerprint reads, hardlink containment, Git conversion controls, and revision visibility.
625 src/state/openclaw-agent-db-schema.ts READ. Version-gated integrity, authority renewals and registration fences have distinct ordering contracts; no safe common-flow extraction.
625 src/state/openclaw-agent-db.generated.d.ts READ — generated Kysely schema declarations; hand edits would violate generator ownership.
624 src/skills/runtime/remote.ts READ: reuse the existing eligibility predicate and shared connection-key owner, remove the one-use system.which wrapper and redundant sorted-array clone, simplify optional bin presence.
624 src/state/user-model-accounts.ts READ: canonical safeParseJson replaces duplicate parser catch; schema errors, credential redaction and exact identity-scoped SQL remain unchanged.
623 src/state/openclaw-state-lease.ts READ - Native and async callers deliberately retain different verification/heartbeat and process-exit contracts; preserved handoff, expiry, uncertain outcomes, and cleanup ordering.
623 src/state/openclaw-state-read.worker.ts READ - Read branches retain distinct missing-table, snapshot, authority and projection contracts; commands already invoke feature-owned readers.
619 src/flows/doctor-core-checks.runtime.ts READ; Retained untrusted provider projection guards: getters, Proxy access, enumeration, and hook rejection require separate diagnostics and failure containment.
618 src/logging/redact-json.ts READ — Source edits, current-value edits and message projections occupy different coordinate spaces; each rebase/compose phase preserves prior masks. No sound smaller owner found without changing redaction output.
617 src/acp/control-plane/manager.turn-runner.ts READ — CHANGED shared actor guard and removed unreachable post-try retry branch; retained failover, terminal state, and cleanup ordering.
610 src/flows/doctor-health.ts READ; Retained update/schema admission, maintained-service lifecycle, refusal classification and result publication ordering; no sound semantic-preserving contraction beyond cosmetic edits.
607 src/skills/lifecycle/clawhub-install-core.ts READ: Reuse ClawHubSkillRef, inline one-use artifact projection, remove unreachable missing-resolution condition. Exact-version and resolver branches retain their distinct trust and artifact paths.
590 src/state/openclaw-agent-execution-native.ts READ - Host/native admission handshake, registration settlement, physical identity and cleanup receipt checks are required across separate boundaries.
584 src/skills/workshop/apply-transition.ts READ: Applied: pass captured store context directly into required reads; preserve recovery before lock, locked reconciliation suppression, evaluation, rollback and commit order.
579 src/state/openclaw-quarantine-store.ts READ — integrity receipts and quarantine decisions use different error, generation, and permission contracts; no safe query/lifecycle deletion remains.
575 src/state/openclaw-state-db.ts READ — preserved the original path-helper import under its SDK declaration contract; repair, cold-open, transaction, and publication boundaries retained.
565 src/acp/event-ledger.ts READ — Retained prepared-query cache, aggregate byte accounting, per-session event caps, exact replay completeness, and trim order.
565 src/state/agent-deletion-journal.ts READ: retain selected journal rows and prepared fences; one field list now owns snapshot/current fingerprints and exact comparisons, removing mirror shape and repeated path projections. SQL and completion normalization unchanged.
562 src/worker/worker-connection.ts READ — Request forwarding supplies concrete response types and per-operation timeout/replay contracts; reconnect/admission/heartbeat cleanup is already centralized. No sound further compression without obscuring transport lifecycle.
559 src/logging/subsystem.ts READ — Canonical string normalizer replaces local label trim helper; removed redundant channel-prefix wrapper and runtime formatter forwarding callbacks. Logger returns directly. Sink levels, console redaction, meta policy and file stack capture retained.
547 src/skills/workshop/store.ts READ: Retained terminal-read fast path, pending reconciliation, immutable-generation staging, commit recovery and metadata visibility. Creation and replacement have distinct recovery outcomes.
544 src/state/user-profile-github-identity.ts READ: immutable account ownership, multiple-account attribution and public-credit consent remain distinct; all exported operations have callers.
543 src/state/openclaw-state-lease-heartbeat.ts READ - Startup renewal, activation, local liveness, durable ownership, and response budgets are distinct protocols; no removable narrating comments or redundant checks.
538 src/media/media-facts.ts READ — Reused normalized fact fields when applying legacy precedence; removed repeated normalization of already-normalized staging paths/workspaces. Persisted field construction and property order remain owned by normalizeMediaFact.
530 src/state/openclaw-agent-db-session-migrations.ts READ. Versioned transcript and conversation backfills retain distinct entry precedence and byte-preserving paths; prior projection cleanup already landed.
528 src/skills/lifecycle/clawhub-status.ts READ: No sound larger reduction: linked status compares full provenance while verification intentionally compares a narrower identity; merging them would change trust behavior. Card reading retains its bounded fd ownership.
523 src/wizard/setup.migration-stage.ts READ; In-memory config projection and durable promotion have explicit rollback/admission/write ordering; preserve identical database and recovery semantics.
521 src/flows/channel-setup.status.ts READ; Retained distinct installed/disabled/catalog status projections, localization, terminal sanitation, and plugin metadata fallback semantics.
520 src/flows/doctor-health-contributions-initial.ts READ; Existing createDoctorHealthContribution and legacyOwnedRepair already centralize registry/default and dry-run semantics; remaining descriptors name different lazy owners.
519 src/sessions/session-state-events.kernel.ts READ — Retained sparse sequence pruning watermark, watcher alias handling, legacy column admission, and atomic row/head/cursor writes.
518 src/state/openclaw-state-read.types.ts READ — discriminated command/reply fields preserve each worker transport contract; existing mapped types already reuse feature owners.
514 src/logging/diagnostic-stuck-session-recovery.runtime.ts READ — Run-handle versus reply-only recovery intentionally has different backlog, maintenance and authority checks; repeated cleanup gates protect changes across awaited aborts.
512 src/state/user-profiles-internal.ts READ: metadata/full-avatar readers protect distinct native conversion and payload contracts; existing one-hop resolution owner already shared.
508 src/skills/runtime/refresh-content-native.ts READ: scan/admission/post-read identity fences, child watcher retirement, and same-shaped replacement handling implement distinct native race contracts; preserve.
494 src/flows/doctor-tool-schema-runtime.ts READ; Retained per-context runtime caching, authenticated requester/OAuth exclusions, effective policy sentinels, deduplication and awaited cleanup.
491 src/skills/lifecycle/clawhub-store.ts READ: No sound reduction: lenient/strict/synchronous metadata readers have distinct missing/malformed fallback contracts; legacy .clawdhub remains a stored-data contract. Atomic publication and rollback authority stay explicit.
490 src/sessions/session-upstream-monitor.ts READ — Retained source fingerprinting, three-observation missing threshold, idle generation fences, and post-event CAS marker update.
488 src/flows/doctor-health-contributions-final.ts READ; Existing descriptors and callback adapters retain independent metadata, policy, and readiness contracts; no new generic interface justified.
485 src/wizard/setup.migration-promotion.ts READ; Journal statuses, empty-target recovery, path alias checks and staged artifact custody encode safety contracts; no sound consolidation without recovery changes.
484 src/acp/server.ts READ — Retained bounded startup tee, exactly-owned shutdown, wire ordering, protocol handshake normalization, and CLI aliases.
483 src/state/openclaw-state-lease-worker-owner.ts READ - Single/plural lease admission already shares the canonical factory; retained current authority, exact source binding, FIFO settlement and uncertainty propagation.
479 src/media/input-files.ts READ — Image and document byte pipelines deliberately differ in MIME defaults, source rejection and character/PDF limits. Custom extraction cancellation preserves error reasons unlike the available generic abort-race helper.
470 src/logging/redact-patterns.ts READ — Pattern corpus, AWS linear scanner and pattern classification sets protect distinct syntax/secret families. Apparent hsk prefilter omission is covered by sk- substring trigger; no defect established.
463 src/skills/library/service.ts READ: Retained profile authority revalidation before and after filesystem work, exact revision checks, immutable publication and synchronous transaction effects.
459 src/worker/embedded-agent.runtime.ts READ — Upstream now types the inference client with ReturnType<typeof createWorkerInferenceStreamAdapter>, so duplicate inference typing has no remaining lane diff. Retained the distinct tool cleanup, transcript settlement, and terminal delivery ordering.
458 src/skills/library/bundle.ts READ: Retained artifact validation, exact hash encoding, per-file size limits and symlink containment. Local directory-sync error policy differs from the canonical helper, so replacing it would change recovery semantics.
456 src/acp/control-plane/runtime-options.ts READ — Retained scalar validation, clear-vs-missing patch semantics, backend aliases, accepted thinking reconciliation, and deterministic option signatures.
451 src/logging/diagnostic-memory.ts READ — Process/heap/Bun thresholds, completed-window growth floors and reason-based warning throttles differ intentionally. Recent shared pressure selection remains canonical.
451 src/state/openclaw-state-db-legacy-backfills.ts READ. Centralized null handling in local text decoder, removing repeated call-site guards/default objects; removed misplaced trailing comment. Historical SQL and payload transformations unchanged.
449 src/skills/discovery/status.ts READ: no further sound simplification: inventory deliberately includes disabled/unavailable skills, preferred installer IDs index original metadata, readiness shares eligibility owner.
447 src/state/openclaw-state-db-schema-repair.ts READ. Fail-closed shape/admission checks and historical migration ordering remain necessary; no safe removal.
445 src/logging/logger-file-transport.ts READ — Async bounded append and synchronous exit rescue cannot share execution loops without changing in-flight write settlement and replay semantics; prepareWrite already owns shared batching policy.
442 src/state/openclaw-agent-worker-store.ts READ - Single-command publication and retained multi-command scopes have different cleanup contracts; their Result handling preserves committed writes despite cleanup failures.
442 src/state/openclaw-state-db-read-connection.ts READ — available/unavailable read results deliberately distinguish settled SQL failure from unsettled cleanup; existing helpers already own common close handling.
438 src/state/openclaw-state-worker-error.ts READ - Closed error graphs preserve cycles, shared causes, class identity and redacted arbitrary thrown values; parser and hydrator checks protect different boundaries.
438 src/state/user-channel-identities.ts READ: authorization JSON parsing uses its existing safeParseJson import instead of a duplicated catch; policy and grant validation unchanged.
428 src/acp/control-plane/manager.runtime-handle-ensure.ts READ — CHANGED shared actor guard/error ownership and removed unused cache-probe argument; preserved reset cleanup, resume fallback, and metadata fences.
426 src/state/openclaw-agent-db-session-nodes-migration.ts READ. Historical table layouts and separate entry/route/window precedence are named upgrade contracts; prior projection extraction already landed.
420 src/skills/runtime/resources.ts READ: resource collection and materialization enforce different host/worker authority, limits, and whole-bundle contracts; catches add contextual errors at distinct boundaries.
419 src/skills/lifecycle/workspace-skill-write.ts READ: No sound reduction: preparation versus restoration reads, support-before-SKILL publication, exact-byte compensation, and mode-dependent rollback order protect separate invariants.
415 src/acp/translator.session-lifecycle.ts READ — Retained different new/load/resume replay and existence policies; common setup helpers already own shared operations.
413 src/skills/lifecycle/upload-store.ts READ: Derive the upload record type from its canonical metadata projection, removing a second field declaration. No query, lock, timing, cleanup, authority, or runtime payload change.
412 src/wizard/setup.plugin-config.ts READ; Consolidated per-input-type setter/changed bookkeeping into one mutation tail after typed enum, boolean, array and numeric selection. Skip/default/invalid-input behavior remains identical.
411 src/skills/workshop/service.ts READ: Applied: remove repeated store-field reconstruction and draft Result unwrapping; keep pending/revision checks and event dispatch at the same boundaries.
406 src/state/agent-database-admission.ts READ — preparation borrowing, refusal cause privacy, and deletion invalidation have distinct currentness contracts; exports have consumers.
405 src/acp/runtime/session-meta-write.ts READ — Retained two-owner worker/native routing, retained source admission, preparation decision port, exact commit receipt, and release settlement.
401 src/worker/inference-stream.runtime.ts READ — The request type remains private to the stream adapter, whose return type supplies the embedded runtime contract; no remaining lane edit. Text, thinking, and tool events retain distinct signatures, gap handling, and terminal settlement.
398 src/state/openclaw-agent-db-validation-cache.ts READ — shared receipt revocation differs from persisted canonical readiness; merging the checks would erase authority distinctions.
394 src/state/openclaw-agent-db-admission.ts READ — coalesced async opens and worker-granted opens deliberately differ in admission, integrity execution, and settlement; both already use one open generator.
394 src/wizard/setup.inference-verification.ts READ; Shared verification owner already coordinates staged credentials, config CAS, live authority, activation and retry; simplifying states would blur required ownership boundaries.
388 src/acp/control-plane/manager.cancel-session.ts READ — Integrated-base refresh: retain exact actor/owner/runtime-locator checks, joined cancellation settlement, and retry-versus-attempted-RPC distinction so Stop cannot overwrite replacement sessions.
387 src/state/openclaw-state-db-table-retirements.ts READ. Dependency probes, savepoint rollback, virtual-table checks and versioned table retirement preserve destructive-migration safety; no removable wrapper found.
384 src/skills/loading/plugin-skills.ts READ: consolidated identical empty publication branches without changing publication cache or plugin admission.
377 src/wizard/setup.app-recommendations.ts READ; Scan disclosure, bootstrap handoff, stored recommendation CAS and per-install durable outcome checkpoints are distinct and necessary.
376 src/skills/runtime/workspace-worker.ts READ: combine identical string/Uint8Array byte conversion branches; native operation dispatch retains per-operation typed and filesystem admission checks.
374 src/state/agent-database-startup.ts READ — background inspection, Gateway adoption, serial preparation, and stop/join form one owner; no obsolete branch found.
370 src/flows/bundled-health-checks.ts READ; Existing registration owner centralizes readiness; plugin-specific availability, capability consent, trust, and state isolation differ and must stay explicit.
370 src/sessions/provider-review.ts READ — Retained host-issued acknowledgment identity and single-attempt capability phases; checks guard different authority boundaries.
370 src/skills/library/store.ts READ: Retained canonical queries, profile/namespace authorization and owner alias handling. Storage freeze excludes changing admission or schema behavior.
370 src/worker/launch-descriptor.ts READ — Return Zod safeParse data directly for GitHub binding; exact own-key, optional-property, permission, transcript byte, and launch validation contracts retained.
369 src/skills/workshop/service-evaluation.ts READ: Applied: required reads consume captured/locked store directly; evaluator normalization and target hash fences retained.
368 src/skills/workshop/service-propose.ts READ: Applied: direct draft result replaces the wrapper immediately unwrapped at every caller; error identity and validation remain preserved.
367 src/skills/loading/workspace-skill-sync.runtime.ts READ: no further sound simplification: manifest, resource version and retained destination checks guard distinct reuse conditions, and Library copies have intentionally stricter failure behavior.
367 src/state/openclaw-state-worker-contract.ts READ - Feature operation types already come from owning modules; remaining command inputs/outputs encode distinct worker contracts.
365 src/wizard/setup.shared.ts READ; Existing shared config writer preserves null merge-patch intents, pending plugin records, CAS snapshots and consent defaults; repeated-looking checks distinguish distinct boundaries.
364 src/state/openclaw-state-db-schema-additive.ts READ. Feature-first-use DDL and ordered backfill boundaries differ; their cache/transaction semantics must remain distinct.
361 src/state/openclaw-agent-db.paths.ts READ — suffix alias probes and raw traversal preserve filesystem identity contracts; recent fs-safe cutover already owns the shared primitive.
361 src/wizard/setup.model-auth.ts READ; Existing shared provider flow keeps explicit auth flags, skip coldness, candidate replacement and utility-model choices distinct. No semantic-identical structural win beyond minor expression cosmetics.
359 src/acp/event-mapper.ts READ — Retained wire text escaping, bounded location traversal, MIME attachments, and prompt byte checks; prior sweep already consolidated mappings.
358 src/acp/runtime/session-meta-doctor.ts READ — Retained offline repair authority, exact source/binding rereads, alias conflict detection, and non-destructive incomplete reports.
352 src/worker/worker.runtime.ts READ — Environment owns promoted process lifetime and awaited import settlement; turn owns transport/credential clients. Separate cleanup and fenced-result paths preserve named cancellation/recovery contracts.
351 src/state/user-profiles-avatar.ts READ: cached inspection and byte materialization have different admission and revision lifetimes; preserve cache bounds and settlement owner.
349 src/state/openclaw-state-db-repair.ts READ — automatic, index, readability, and Doctor repair have named differing transaction and preservation contracts; no merging attempted.
348 src/acp/translator.agent-events.ts READ — Retained tool-state deduplication, approval correlation, prompt-owned permission relays, and reconnect decision custody.
347 src/state/openclaw-agent-db-readonly-scope.ts READ — explicit transcript-worker scopes and idle cached scopes both have production callers; borrowed transactions and failed-close custody prevent flattening.
344 src/state/user-profile-events.ts READ: profile, selection and channel authority revisions intentionally invalidate different readers; no safe owner merger.
342 src/skills/library/selection.ts READ: Retained explicit session pin admission, immutable selection cache, sync versus async storage contexts and whole-file read contracts.
342 src/state/openclaw-agent-db-registry-listing.ts READ — shared registry clone/filter projection between synchronous and worker-backed reads; retained the local path resolver after the SDK declaration gate rejected relocation.
340 src/state/openclaw-agent-db-schema-helpers.ts READ. Read admission versus migration repair are intentional boundaries; lease retirement checks, lazy groups and structural validation remain required.
340 src/wizard/clack-prompter.ts READ; Existing owner already centralizes navigation/cancellation and styled prompt dispatch; select versus multiselect has separate third-party signatures, so further generic dispatch would launder types.
336 src/state/user-github-connections.ts READ: canonical safeParseJson removes duplicate parser catch; connection state validation and secret registration unchanged.
336 src/worker/worker-command.runtime.ts READ — Managed and one-shot stdin paths differ in cancellation, write completion, background retention, and framing. Shared byte conversion would add a helper for only two expressions; retained bounded reads and ownership binding.
329 src/logging/console.ts READ — Canonical string normalization replaces subsystem trim helper; return the known settings value directly instead of recasting cached state. Capture recursion, warning routing, raw sinks and EPIPE behavior preserved.
328 src/worker/embedded-agent-live.runtime.ts READ — Recently consolidated tool events and terminal outcomes; per-event bounding/redaction shapes and phase-aware commentary suppression have distinct contracts.
325 src/skills/runtime/refresh-state.ts READ: discovery/supporting-file/global revisions and suspended source reconciliation are distinct state owners; no simplification without freshness changes.
323 src/skills/lifecycle/clawhub-uninstall.ts READ: No sound reduction: distinct diagnostics and repeated live-authority checks after waits are required; staging identity and rollback ownership remain explicit.
322 src/skills/lifecycle/install-download.ts READ: No sound reduction: bounded network streaming, checksum validation, pinned destination publication, extraction staging, and error mapping protect separate boundaries. Prior fs-safe changes already removed duplicate low-level IO.
320 src/state/openclaw-state-worker-error-identity.ts READ - Combined identical databasePath validation for state-owner-contention and ownership-metadata, preserving both wire discriminants.
318 src/skills/loading/session.ts READ: no further sound simplification: public resource loader intentionally retains loose warning-based metadata admission, ignore rules and default/root Markdown scanning separate from bounded workspace discovery.
318 src/wizard/setup.gateway-config.ts READ; Token and password references have intentionally different provisioning/default behavior; address, Tailscale and origin helpers already use canonical owners.
317 src/logging/log-tail.ts READ — Cursor, incomplete-line and prior PEM context handling have separate byte-coordinate contracts; current secured read helper already removes duplicated IO.
317 src/worker/worker-connection-frames.ts READ — Recently centralized request specs/registry; typed response dispatch, synchronous replay cursor reset, exact frame budget, and terminal event listeners have distinct invariants.
313 src/wizard/setup.migration-snapshot.ts READ; Snapshot bytes, symlink traversal, existing state admission, and lock reentrancy preserve the hard migration/concurrency contracts.
311 src/skills/workshop/experience-review.ts READ: Retained independent detached-run admission, captured source identity, post-await authorization and completion/failure persistence; these are live authority boundaries.
309 src/sessions/user-turn-transcript.metadata.ts READ — Retained original bytes/identity snapshots across mutable hooks and exact metadata projection order; fields carry distinct visibility contracts.
308 src/skills/lifecycle/clawhub.ts READ: Derive the public install input from its canonical internal install contract with explicit omitted owner-only fields. Preserve the public facade and lease/error handling.
307 src/skills/lifecycle/upload-store.kernel.ts READ: No sound reduction within the storage freeze: current-row rereads, expiry checks, lease handling, and transaction admissions must retain exact effects and order.
304 src/state/openclaw-database-verify.impl.ts READ — reuse canonical record guard without cast; child exit/disconnect and integrity/quarantine generation ownership remain explicit.
304 src/state/openclaw-state.worker.ts READ - Prepared lazy dispatch keeps the runtime out of cold metadata and maintenance paths; explicit command narrowing preserves typed domain handoffs.
303 src/state/user-channel-identity-operations.ts READ: worker protocol validation and profile/channel authority dependencies are distinct; shared prepareUserProfileAuthority already owns role/selection flow.
302 src/state/session-repository-workspaces.ts READ: workspace mutation owner already shares revision checks, update and notification; one default-store wrapper has broad consumers and only five removable lines.
302 src/wizard/navigation-prompter.ts READ; Replay signatures, sensitive answer retirement and exact back/forward boundaries already share one navigator; callbacks preserve distinct answer types.
300 src/acp/control-plane/manager.runtime-controls.ts READ — CHANGED shared actor guard; retained per-control authority rechecks and distinct optional timeout/thinking rejection contracts.
299 src/acp/client.ts READ — CHANGED lazy skill-env import to canonical owner, removing facade dependency without changing load timing.
299 src/acp/control-plane/manager.turn-stream.ts READ — Retained readiness/result/iterator settlement distinctions and late callback custody; no cheap replacement preserves all timing contracts.
295 src/sessions/conversation-turns.ts READ — Retained outbound index, oldest matching reply claims, transcript readiness barrier, and stale-claim exclusion.
295 src/skills/lifecycle/archive-install.ts READ: Remove the one-use blocked-result classifier; express transient-error matching directly with some(). Native file mutation remains separate from policy and hook dispatch.
295 src/skills/runtime/refresh-watch-path.ts READ: Windows aliases, symlink identity, bounded discovery, and polling/native path distinctions are named platform contracts.
295 src/state/openclaw-state-worker-lease.ts READ - Retained separate invocation and actor retirement lifetimes; accepted commands must settle while logical callbacks may remain active.
294 src/state/user-profile-identity.read.ts READ: native reads intentionally preserve bounded SQL, aliases, legacy-role fields and corrupt-key fallback; no query-effect changes permitted.
293 src/wizard/setup.post-install-migration.ts READ; Optional discovery/offer failure and required preparation cleanup failures intentionally differ; runtime result patch guards protect provider output.
292 src/media/store.read-scope.ts READ — Retained descriptor custody, rollback, directory identity and authority revalidation after awaited operations; apparent repeated guards protect distinct mutations.
292 src/state/openclaw-state-db-audit-migration.ts READ. Derived copied and validated column projections from the legacy ordered list, removing three repeated inventories; retained explicit historical DDL and sequence high-water restoration.
290 src/state/openclaw-agent-db-legacy-schema.ts READ. #159299 already removed duplicate projection inventories; historical decoders differ from current normalizers and cannot be replaced without migration semantic changes.
288 src/state/openclaw-state-db-startup-checkpoint.ts READ — preserved original path-helper import under its SDK declaration contract; bootstrap and additive repair remain separate mutation boundaries.
286 src/skills/lifecycle/workspace-types.ts READ: Retain explicit ClawHubSkillVerificationLock fields: this declaration is reachable through the public plugin SDK, whose API comparison requires the exact declaration shape; the mapped alias was reverted.
283 src/skills/workshop/tool-policy-diagnostic.ts READ: Untouched-first READ: real policy exclusion labels map to distinct profile/provider/agent remediation paths; simplifying branches would lose actionable source specificity.
281 src/media/media-probe.ts READ — Existing metadata selection is already one owner for file descriptors and buffers; legacy ffprobe fallback and display-axis transformations are independently required.
280 src/acp/control-plane/manager.types.ts READ — Retained public SDK input/status shapes and narrow dependency callback contracts; none are unused exports.
275 src/media/local-media-access.ts READ — Kept lexical, resolved-root, opened-file, hardlink and read-scope checks: each guards a different authority/race boundary.
275 src/skills/workshop/experience-review-scheduler.ts READ: Retained quiet-period extension, errored-run cancellation, generation guards and foreground-scope detachment; each covers a different scheduling race.
274 src/skills/runtime/remote-skills.ts READ: export the existing connection-key encoder for remote bins to consume and reuse the existing skill locator in frontmatter diagnostics; collision and serving behavior retained.
273 src/acp/runtime/session-meta-keys.ts READ — Retained canonical base64 key encoding, raw alias contracts, owner-scoped compatibility, and lifecycle binding selection.
273 src/skills/runtime/refresh-ancestor-native.ts READ: exact-root versus ancestor admission and before/after watch identity checks cover different recovery races; preserve.
272 src/media/read-capability.ts READ — Selected workspace/host reader once and shared its bounded dispatch; local fallback and remote-root exclusions stay unchanged.
272 src/state/openclaw-agent-schema-inspection-worker.ts READ - Reader reuse retains per-request snapshots, parent deadlines, process exit joining, and validated response decoding.
270 src/sessions/session-lifecycle-diagnostics.ts READ — Retained opt-in bounded watchers/holders, salted identity redaction, trace validation, and non-failing diagnostic sink.
269 src/skills/discovery/chat-commands.ts READ: no further sound simplification: native synchronous menu discovery, remote asynchronous preparation, abort handling and all-workspace resolution ordering each have their own contract.
269 src/state/openclaw-state-db-schema-v13-widerow.ts READ. Each fold-in has different canonicalization, first-use and orphan handling; no sound common policy.
268 src/logging/diagnostic-argument-churn-activity.ts READ — Wall time plus mutation sequence resolve same-millisecond progress/merge ordering; observation and policy-wait ownership cannot be collapsed without changing recovery.
266 src/acp/control-plane/manager.runtime-options-commands.ts READ — CHANGED shared actor guard; retained immediate runtime effects versus metadata-only mutation authority and cached-handle settlement.
266 src/state/openclaw-state-lease-heartbeat.worker.ts READ - Heartbeat state and native transaction boundaries intentionally differ from parent protocol checks; all durable-expiry and contention semantics retained.
265 src/logging/diagnostic-profile.ts READ — Inspector setup/start/stop/disable and authority rechecks guard different native transitions; shared lifecycle already serves CPU and heap consumers.
265 src/worker/node-workspace-protocol.ts READ — Shared exact bounded JSON decoder with desktop/prepared requests through protocol-record; preserved workspace inspection exception, byte checks, schema validation order, and precise error messages.
265 src/worker/worker-rpc-live-event-client.ts READ — Preview degradation and terminal resync preserve different durability contracts; generation/high-water/ACK fields all participate in recovery. No safe state collapse.
263 src/skills/runtime/refresh-watch-targets.ts READ: shared/execution target precedence and bounded trusted-symlink scans have distinct admission rules; preserve.
261 src/sessions/agent-harness-session-key.ts READ — Retained reserved namespace, locked identity relocation, duplicate transcript identity exclusion, and pre-feature ordinary-key compatibility.
260 src/sessions/session-diff-baseline.ts READ — Retained exact-generation capture ownership, pending claim settlement, unavailable retry state, and in-flight promise eviction.
260 src/sessions/user-turn-transcript.types.ts READ — Retained published recorder/admission/media contracts and distinct optional producer callbacks; no redundant runtime owner.
260 src/wizard/setup.migration-finalize.ts READ; Deferred completion identity and retry-safe activation preserve durable outcome and acknowledgement ordering; no sound contraction without recovery changes.
259 src/skills/workshop/reconcile-transition.ts READ: Retained complete/partial/previous filesystem classification, exact rollback hash validation and lock-bound compensation; hard recovery contract.
259 src/state/user-profile-writes.worker.ts READ: transaction/commit receipts and preimages share mutation owner; native schema operations can nest, so further flattening changes settlement.
258 src/state/openclaw-state-lease-worker-storage.ts READ - Lifecycle adapters share admittedWorkerOperation; release uses a separate retired-owner cleanup route and cannot use ordinary admission.
256 src/logging/diagnostic-session-state.ts READ — Alias merges retain additive backlog, progress precedence and warning reset semantics; bounded pruning is insertion-order stable. No simple replacement preserves all rules more clearly.
255 src/sessions/session-upstream-links.ts READ — Retained source-sensitive upsert, CAS markers, current-entry cleanup guard, and ambiguous watcher-key exclusion.
255 src/skills/library/import.ts READ: Retained import-policy route and private-upload ownership/quota/expiry/replay checks; all SQL effects and archive publication phases remain unchanged.
255 src/state/user-profile-writes.ts READ: pending publication and authority fences are required across lost replies; operation adapters keep distinct argument/result contracts.
253 src/acp/runtime/session-meta-write.native.ts READ — CHANGED identical clear/set publication transactions to one local owner and removed mergeAcpForReturn forwarding; exact SQL effects/order unchanged.
253 src/skills/workshop/store-sqlite-event.ts READ: Retained stored-event decoding, legacy payload format, byte bounds and pagination semantics; not interchangeable with evaluator output normalization.
253 src/state/openclaw-state-db-task-delivery-recovery.ts READ — historical Doctor recovery retains validated backups, exact hashes, foreign-key proof and rollback; no sound deletion under the preservation contract.
253 src/state/openclaw-state-lease-worker.ts READ - Native lease checks before and after host grants are required; acquire, renew, release and verification retain their exact SQL/transaction effects.
252 src/logging/diagnostic-run-activity-recovery.ts READ — Marker and embedded-run retirement differ in identity/cutoff requirements; shared clearActivityMarkers already owns repeated map cleanup.
252 src/sessions/session-initialization.ts READ — Retained host-issued creation/rollback scopes, registry identity capture, and creation-only native tool preparation.
252 src/state/openclaw-state-read.validation.ts READ — transport-boundary validation has per-command shapes and bounds; no weakening or new policy abstraction.
251 src/state/openclaw-agent-db-resources.ts READ — known synchronous, known asynchronous, and unresolved discovery resources have distinct revocation/drain contracts; no dead registration surface found.
251 src/worker/node-supervisor-protocol.ts READ — Recently moved schema/identity parsing to protocol-record. Distinct error detail handling and raw request admission contracts prevent sharing its parser with other protocols unchanged.
250 src/wizard/setup.memory-import.ts READ; Unified completed/partial provider outcome projection while retaining callback-before-render order, indeterminate copy classification and unchanged summaries.
249 src/skills/runtime/refresh-ancestor-watch.ts READ: pooled observation, native observation, reentrant subscription publication, and retirement custody require the existing separate phases.
248 src/sessions/transcript-events.ts READ — Retained separate private/public listener projections, lifecycle/store-path redaction, and pre-notification monotonic version advancement.
246 src/acp/control-plane/manager.runtime-resume-state.ts READ — CHANGED verbose comments to short cause/recovery notes; retained structured failure-cause detection and one-time pre-submission recovery.
246 src/sessions/session-worktree-lifecycle.ts READ — Retained generation and Git ownership fences through archive/restore/cleanup with operator-specific preserved reasons.
246 src/skills/lifecycle/source-install.ts READ: Keep frontmatter fallback inside the slug owner and Git export handling inside its single caller; remove two forwarding helpers without changing fallback, redaction, exclusion, or error text.
245 src/acp/approval-classifier.ts READ — Retained spoof-resistant tool metadata consistency, scoped-path proof, and per-tool permission policy; wrappers adapt nullable record input.
245 src/skills/runtime/refresh-watch-registry.ts READ: coverage-loss fanout, source-scope coalescing, and per-target debounce ordering retain distinct ownership/reentrancy semantics.
245 src/skills/workshop/service-query.ts READ: Applied: canonical captured store replaces separate env/agent/config/recovery projections in readRequiredProposal; exact visibility and error behavior retained.
244 src/skills/runtime/session-snapshot.ts READ: remove an unused agentId projection from the source-revision scope. Retain the explicit two-field snapshot roots projection because its executionWorkspaceDir is required; normalized source roots permit its absence. Snapshot bytes/keys and async authority checks unchanged.
244 src/state/openclaw-state-lease-storage.ts READ - Existing-schema versus normal admission deliberately diverges; preserved release retry policy and verification error mapping.
242 src/logging/redact-json-tokens.ts READ — Scalar token creation tracks raw/escaped/container origins and batch-line preservation separately; initial coordinates and property order are part of downstream redaction behavior.
242 src/sessions/input-provenance.ts READ — Retained model-visible prompt framing, exact provenance projection, and source-specific session-state preservation.
242 src/skills/runtime/tool-dispatch.ts READ: one existing policy pipeline already owns sender/group/sandbox/subagent decisions; conditional hook payload keys retain the existing contract.
241 src/acp/translator.presentation.ts READ — Retained public config IDs, option labels/defaults, title precedence, lineage metadata, and bounded token usage snapshots.
241 src/skills/lifecycle/upload-store.sqlite.ts READ: No sound reduction within the storage freeze: metadata projection deliberately omits archive bytes, and expiry cleanup versus owned consumption use different lease predicates.
241 src/state/openclaw-schema-retirements.json READ. Completed-retirement manifest; deleting metadata would not simplify a runtime owner and would lose retained migration evidence.
240 src/logging/diagnostic-session-recovery-coordinator.ts READ — Synchronous recovery outcome application is deliberate; Promise normalization would defer state changes. Generation and new-owner checks protect awaited recovery.
238 src/skills/runtime/env-overrides.ts READ: acquisition now owns both reference counting and environment publication; remove redundant caller lookup/write while retaining sensitive-key filtering and overlapping-owner cleanup.
238 src/state/openclaw-state-ownership.ts READ — external-manager reserved record validation and read/write authority differ by entry point and remain necessary.
237 src/state/agent-deletion-journal.read.ts READ: consume the assertion returned by the existing snapshot-read owner instead of rebuilding an identical assertion closure.
236 src/acp/translator.session-updates.ts READ — Retained per-ledger-session FIFO, failure-to-incomplete marking, replay fallback, and delivery/record settlement separation.
236 src/flows/doctor-health-contribution-runners.state.ts READ; Retained lazy context adapters and their migration receipts, warnings and metadata invalidation; no identical effect chain to combine.
236 src/sessions/session-key-utils.ts READ — Retained opaque peer casing, raw owner parsing, cron-only suffix stripping, and distinct delivery route shapes.
235 src/acp/runtime/session-meta-control.ts READ — Integrated-base refresh: retain physical source custody, fresh metadata joins, lifecycle/owner fences, and Incognito native checks through cancellation publication.
235 src/state/openclaw-agent-execution-domain.ts READ — Recently merged #160831 centralizes stage-preserving admission restrictions and requires exactly one native grant; retained synchronous binding/cleanup, asynchronous preparation settlement, and live authority checks rather than restructuring the new lifecycle owner.
235 src/worker/worker-connection-admission.ts READ — Generation, admission state, and readyState each fence separate reentrant callback paths; wire admission comparisons and retry close reasons retained.
233 src/sessions/model-overrides.ts READ — Retained exact default/auto/user selection semantics, model-lock guards, runtime-derived state invalidation, and live-switch marking.
230 src/skills/discovery/chat-command-invocation.ts READ: no further sound simplification: slash versus inline expansion, allowlist errors, explicit reference caps and exact prompt prefix remain required.
230 src/worker/transcript-message.ts READ — Explicit projection removes provider scratch fields and preserves exact optional-field presence/order; replay and byte-budget checks protect opaque authoritative provider data. No spread-based shortcut safe.
229 src/acp/session-new-ordering.ts READ — Retained SDK-valid request matching, provisional load claims, session-local overflow release, and independent reply order.
229 src/skills/discovery/command-specs.ts READ: command filtering now consumes filterSkillEntries directly; user-invocability filtering consumes the canonical predicate instead of a filter-only forwarding function. Kept raw argument and command name contracts intact.
226 src/acp/client-helpers.ts READ — Retained prompt/deny outcomes, provider-env masking, self-server argument matching, and Windows spawn adapter contracts.
226 src/skills/workshop/store-record.ts READ: Untouched-first READ: validation retains original objects and persisted unknown fields; replacing with schema outputs would change stored bytes and public validation results.
225 src/media/media-reference.ts READ — URI, local-path, sandbox-relative and public SDK adapters preserve distinct errors and return shapes; no redundant public path identified.
224 src/flows/channel-setup.prompts.ts READ; Removed narrating comments and type laundering; select and inferred defined-policy filtering retain prompts/defaults.
224 src/state/openclaw-state-db-open.ts READ — cold creation and admitted existing-schema opens intentionally differ in schema authority and WAL configuration; no safe removal found.
222 src/skills/workshop/proposal-bundle.ts READ: Retained portable snapshot format, missing-create-target exception, target path casing rules and complete tree hash; library bundle policies differ intentionally.
222 src/state/agent-deletion-discovery.ts READ: agent directory, legacy-store and retained logical-store classification have named recovery contracts; preserve their differences.
221 src/state/claw-package-lifecycle-lease.ts READ: normal and process-exit cleanup use one best-effort release callback; heartbeat/TTL/SQL unchanged.
219 src/skills/loading/config.ts READ: no further sound simplification: secret degradation, bundled gating and binary preparation must remain ordered and current.
219 src/skills/loading/skill-root-loader.ts READ: no further sound simplification: audit and prompt caps differ intentionally; canonical paths and hardlink provenance are owned at file admission.
218 src/acp/runtime/session-meta.ts READ — Retained native maintenance/SDK reader contract, chunked alias resolution, and migration publication; wrappers are public compatibility owners.
217 src/state/openclaw-database-preflight-agent-scheduler.ts READ — bounded deferred inspection and foreground/background settlement preserve ordering and cancellation; no safe flow collapse.
217 src/state/user-preferences.store.ts READ: preferences merging, key limits and compare-and-set writes have different query/order effects; no safe persistent simplification.
217 src/worker/worker-rpc-inference-client.ts READ — In-flight/resume/settled states each protect reconnect races; full identity comparison remains necessary because protocol identifiers allow NUL and delimiter keys alone do not establish equality.
216 src/logging/redact-pem.ts READ — Incremental delimiter state handles unbounded labels, shared dashes and prepended-context composition without unbounded captures; not redundant with whole-text regex policy.
215 src/media/channel-inbound-roots.ts READ — Replaced redundant resolver-presence branches with optional calls after canonical artifact validation. Kept metadata-only loading and current owner policy intact.
215 src/skills/workshop/proposal-draft.ts READ: Applied: return prepared draft directly and throw normalized validation errors, eliminating Result encoding immediately undone by service/tool callers; complete content and size/secret checks retained.
213 src/state/user-preferences.ts READ: canonical worker writes retain coauthor revocation and unknown-outcome fences; native retained operations still have callers.
212 src/acp/control-plane/manager.close-session.ts READ — CHANGED shared actor guard/errors; retained exact control-binding rechecks and accepted-close cleanup semantics.
209 src/media/local-roots.ts READ — Root canonicalization, session isolation, source-parent expansion and retained SDK compatibility are distinct policies; existing canonical helpers already cover filesystem work.
208 src/skills/workshop/types.ts READ: Retained protocol-derived public and persisted contracts, bounded run provenance and mutation authority fields; previous pass already removed redundant declarations.
206 src/logging/diagnostic-heap-profile.ts READ — Current inspector schema requires extra declared fields; tree attribution, missing native samples and bounded fallback summary protect different malformed/large-profile cases.
206 src/state/openclaw-state-db-schema-v12-foldin.ts READ. Singleton imports preserve individual legacy row/key/nullability contracts and ordered retirement; no shared-flow win.
205 src/state/agent-deletion-cleanup.ts READ: cleanup handles retain native failed-close ownership and reverse disposal order; error aggregation reflects operation versus cleanup failures.
203 src/acp/translator.disconnects.ts READ — Retained disconnect-generation grace timers and exact-run recovery/expiry ownership; prior sweep already shares reconciliation paths.
203 src/skills/workshop/policy.ts READ: Untouched-first READ: lifecycle approvals retain exact descriptions, proposal lookup fallback, timeout reason and bounded field rendering; no further sound reduction.
202 src/acp/control-plane/manager.runtime-handle-cache.ts READ — CHANGED removed unused actor predicate option and redundant typed handle cast; retained exact-handle compare-and-remove lifecycle.
201 src/media/audio-transcode.ts READ — Opus ffmpeg and macOS CAF afconvert are distinct supported flows; shared fs-safe temp ownership was already landed in the recent sweep.
186 src/skills/loading/workspace-skill-prompt.ts READ: removed one-caller intermediate prompt-state projection; snapshot builder now directly owns its prompt preparation and resolved-skill mapping. Prompt visibility uses canonical predicate directly.

@steipete
steipete force-pushed the deslop/l138-state-skills-mid branch from f24f64c to 22ac22f Compare September 29, 2026 00:42
@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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 29, 2026
@steipete
steipete force-pushed the deslop/l138-state-skills-mid branch from 22ac22f to 60f131d Compare September 29, 2026 05:09
Consolidate repeated owner checks, projections, prompt rendering, media
response cleanup, worker decoding and internal forwarding layers. Preserve
SQLite effects, redaction, protocol payloads, skill serving and defaults.

The complete subsystem pass removes 899 net production lines. No schema,
retention, migration behavior or public contract change is intended.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 29, 2026
@steipete
steipete force-pushed the deslop/l138-state-skills-mid branch from 60f131d to 0dd54eb Compare September 29, 2026 05:30
@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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 29, 2026
@steipete
steipete marked this pull request as ready for review September 29, 2026 06:50
@steipete
steipete enabled auto-merge (squash) September 29, 2026 06:55
@steipete
steipete merged commit ff0c8f0 into main Sep 29, 2026
385 of 387 checks passed
@steipete
steipete deleted the deslop/l138-state-skills-mid branch September 29, 2026 07:44
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
openclaw#160382)

* refactor(core): deslop state, skills, logging, ACP and session helpers

Consolidate repeated owner checks, projections, prompt rendering, media
response cleanup, worker decoding and internal forwarding layers. Preserve
SQLite effects, redaction, protocol payloads, skill serving and defaults.

The complete subsystem pass removes 899 net production lines. No schema,
retention, migration behavior or public contract change is intended.

* refactor(core): retain narrowed values and shrink assertion counts

* refactor(core): preserve emitted plugin SDK declarations

* refactor(core): preserve lint-safe helper projections

* fix(state): keep worker operation store aliases local to break import cycle
steipete added a commit that referenced this pull request Sep 30, 2026
…s third pass (#161758)

Consolidate existing state path ownership, remove duplicate ACP and Doctor projections, and simplify logging, skill, media, session, wizard, and worker helpers. Preserve storage effects, authority and cleanup settlement, redaction order, wire formats, prompts, and transcript bytes.

Third pass after #160382 and #161316; 166 net production lines removed without test deletions. Independent review is clean. Remote Linux proof passed both cycle checks, 65 selected test files, SDK checks, and the full build. The pre-existing stale max-lines entry is already repaired on main by 1087139.

Land under the requested inherited-failure exception: the sole final-head test failure is the Workshop rejected-review request count, independently reproduced on untouched main. CI cancelled 55 sibling jobs; those are not passing proof. Full attribution and remote checks are recorded in the PR.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
…s third pass (openclaw#161758)

Consolidate existing state path ownership, remove duplicate ACP and Doctor projections, and simplify logging, skill, media, session, wizard, and worker helpers. Preserve storage effects, authority and cleanup settlement, redaction order, wire formats, prompts, and transcript bytes.

Third pass after openclaw#160382 and openclaw#161316; 166 net production lines removed without test deletions. Independent review is clean. Remote Linux proof passed both cycle checks, 65 selected test files, SDK checks, and the full build. The pre-existing stale max-lines entry is already repaired on main by 62fc1a3.

Land under the requested inherited-failure exception: the sole final-head test failure is the Workshop rejected-review request count, independently reproduced on untouched main. CI cancelled 55 sibling jobs; those are not passing proof. Full attribution and remote checks are recorded in the PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

1 participant