Skip to content

refactor(packages): deslop shared packages second pass - #159279

Merged
steipete merged 9 commits into
mainfrom
deslop/l103-packages2
Sep 28, 2026
Merged

steipete merged 9 commits into
mainfrom
deslop/l103-packages2

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Shared packages still repeat stream handling, schema construction, parsing, and result projection after #158571. This is the requested second deslop pass.

User Impact

No intended runtime, wire-schema, error-message, export-map, or published API change. The existing SDK packaging defect described below is repaired through its existing bundling owner. No dependency version, configuration, protocol, storage, retention, or migration contract changes are introduced.

Why This Change Was Made

The package delta removes 745 net production lines (+690/-1,435) across 78 files, including the SDK manifest repair. TypeScript-only cleanup removes 747 net lines across 77 files; the assertion baseline separately shrinks by 19 casts. No tests are added, deleted, or weakened. The full subtree was read; the attached coverage table records every one of the 165 production files over 200 lines. Upstream consolidations and deliberate Tasks retirement are retained and excluded from this lane's reduction.

Simplifications and rationale
  • AI providers reuse record/schema owners, tool-call startup, identity filtering, typed request options, usage projection, and prompt-capability deduplication.
  • Anthropic sidecars share text/thinking lifecycle with unchanged event order. DSML filtering and recovery share the existing grammar scanner. Completions share JSON-size fallbacks and wrapper application.
  • Agent compaction reuses estimates and role classification; truncation derives redundant flags/counts; process signaling removes a void-only forwarder.
  • Markdown table finalization prepares cells once, rendering shares span/link projection, and scanners remove redundant copying and traversal.
  • Gateway schemas reuse ordered descriptors and vocabularies while retaining public declaration forms and separate closed-schema identities. Error readers use canonical normalization and projection.
  • Gateway clients share terminal-position predicates and normalization. The SDK removes plain event forwarding and repeated timeout normalization while preserving abort, replay, and reconnect ownership.
  • Memory, media, model catalog, retry, plugin compatibility, ACP, and session URL helpers remove duplicate projection, private wrappers, casts, and redundant branches. The removed private filesystem type re-export has no public package entrypoint; its canonical public owner remains.

Fixes found along the way

The unchanged external SDK consumer E2E exposed a packaging regression from #158587: the SDK declared the private TypeScript-only session URL contract as an external runtime dependency, although it has no standalone build or published artifact. Moving it to devDependencies makes the existing standalone builder bundle it. The original test failed with ERR_PNPM_RECURSIVE_RUN_NO_SCRIPT in 21.24s; the repaired test passed on Linux Testbox in 27.01s. Export maps and fixture assertions remain unchanged.

A separate package-directory test-selector defect is fixed in #160653. The package campaign below enumerated exact test files, so that discovery did not omit specialized runners from this proof.

Evidence

Final candidate: 4c02d61ce39aeaa36e4c94f94d551a640344a901, rebased onto audited main c8a045a4f35e063f951130619e5e1cf4bb0de349. All nine commits replayed patch-identically. No changed package path overlaps the final upstream delta; the new capability constant and plugin SDK convertToLlm export are preserved. Duplicate searches and source comparison found no replacement for this cleanup or its SDK packaging repair. Independent managed review has no accepted actionable findings through P2; mechanical rebases preserve that reviewed patch.

The retained complete campaign at c4e2cc28837c8998ff736823cebc0996446001f0 (base 5362ba0ca317aa632e063c40373d91e398517681) passed on Blacksmith Testbox tbx_01m3kj5qwwbxamzf24yhkgp4dz: frozen install; pnpm build (744s); every non-live test in all 16 touched packages plus affected consumers and import boundaries (6,927 passed, two existing skips, 453 files, 14 shards, 986s); schema equivalence; SDK exports/surface and API comparison (zero API changes, 390s); npm-lock, extension types, runtime cycles; and node scripts/check-changed.mjs over all 78 source/baseline inputs (1,790s). Aggregate exit 0, 1h11m1.058s. No primary test was added, removed, or weakened. This stopped lease's proof is retained with its actual revision attribution.

At be0eea72a7e3a25c36b6d824a1ea364bd6e2fefc, the canonical provider-continuation repair received Linux ARM integration proof on Blacksmith Testbox tbx_01m3mra39qvz9cwpbknjme9dn5 (hosting run):

  • Published AI entry build passed (26s).
  • Canonical continuation owner/adverse cases, replay siblings, plugin validators, and all 19 import boundaries: 256 tests in 24 files, 12 shards, passed (339s).
  • Actual Gateway provider-review product E2E passed: one test, 123.48s Vitest; 1,960s command including cold private-QA runtime build. This exercises the canonical acknowledged-input binding and preserves the current runtime-context tail.
  • Complete schema comparison passed: 2,147 exports, 491 validators, four registries, 1,497 closed-object identity classes, 12,302 occurrences, 132,728 hidden markers, preserving bytes, order, and identities.
  • SDK exports/surface passed; API comparison found zero changes (536s).
  • The initial lint invocation selected packages/tsconfig.json and timed out preparing unrelated extension declarations. Its aggregate exited 1 and is not reported as green. The corrected canonical source command, node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json <all 77 changed package TS files>, passed separately: 0 warnings, 0 errors, 263 rules, 26.47s command. No rules, timeouts, or preparation guards changed.

That lease is stopped. The final SDK/capability integration refresh at 4c02d61ce39aeaa36e4c94f94d551a640344a901 passed on Blacksmith Testbox tbx_01m3mx1vqht7h4dtwcjb1ejhhk (hosting run): message/frame guards plus all 19 import boundaries, 108 tests in 21 files across 11 shards (254s); complete schema equality (3s); SDK exports (1s), surface (7s), and API comparison (zero changes, 393s). Aggregate exit 0, 18m17.014s. This lease is stopped. The unchanged full package/build/changed-check campaign remains attributed above.

Hosted CI and inherited repairs

The previous hosted run at be0eea72… failed in Bun Canary 1.4.3-canary.1, revision 6b9148b17: native SIGSEGV/exit 139 at address 0x2, 581ms into Gateway-client startup, before any Bun test result. The same row's Node subset passed 255 tests in 16 files. The exact binary/environment/original four-group order passed once against clean CI main parent 89c0030e… (289s); this did not reproduce the failure and does not establish a fix. The exact tested-merge comparison at bc57e771a0ee6904a462756198ddbdd6a28201e7 also passed once with the same artifact, original four groups, five Node/Bun invocations, environment, and ordering (353s). The native panic remains unreproduced; neither passing comparison is claimed as a fix or proof of a transient cause. Clean-parent control used owned lease tbx_01m3mvzhegqwf445sqh48zmh1r; candidate control used tbx_01m3mxfkm3zjdz3wtkhgdmafsh. No pin, deadline, assertion, or runtime flag was changed. Both control leases are stopped. Final exact-head CI at 4c02d61ce39aeaa36e4c94f94d551a640344a901 passed: 140 successful jobs, 19 skipped, zero failures. The prior panic remains recorded; the final green run is not presented as a diagnosed fix.

Inherited CI repair attribution

This lane landed broadcast fixture repair #160005 after independent review, 20 repetitions (120 passes), three original CI envelopes, build, and changed checks. It also completed supplemental 20-repeat/negative-control Testbox proof for the existing placement owner #160124 and landed that owner's repair. Duplicate #160125 was closed.

Existing owners landed #159964, #160024, #160187, #160290, #160368, #160408, #160458, #160531, #160517, and #160558; overlapping candidates here were dropped, and duplicate PRs #160255 and #160507 were closed. Their changes do not count toward this package reduction. Main's environment-name correction 6e0d8aa1…, provider-review repair efd9b981…, scheduler fixture correction 4bd105408cc, and compact planner packing correction df582a401… are retained. The provider repair above received fresh canonical Testbox proof; superseded candidate measurements are not attributed to it.

Coverage

BELOW-THRESHOLD-PR-READY: 745 net production lines removed. Required package proof, final SDK integration, and independent review are complete; final exact-head hosted CI is green. This PR remains unmerged with auto-merge off.

Every production file over 200 lines: READ coverage

Shared packages second-pass coverage

Fresh source census at pinned main c8a045a4f35e063f951130619e5e1cf4bb0de349: all 165 production files over 200 lines, sorted by base size, containing 76,724 baseline production lines. Every qualifying file is marked READ with an applied simplification or retained contract. Test fixtures/support and generated output are excluded. Smaller modules retain the full sweep coverage; all newly changed production modules were reread.

Upstream #159409 owns several canonical helper consolidations; they are retained and excluded from this lane's reduction. The skipped-tool distinction is retained. Markdown ir-slice.ts (194 lines) and ir-metadata.ts (169 lines) were reread and preserve canonical list metadata copying. Upstream #159179 retired the 204-line schema/tasks.ts and Task-specific SDK/protocol surfaces; those removals remain intact and are not counted as this lane's cleanup. Task Suggestions, session task input, and scheduled-task failure remain separate contracts. Smaller changed schemas for artifact scope, suspension, push, and session activity pulse were also read. The later two optional heap-diagnostics GC flags were read and retained unchanged.

The later browser-focus, users.merge, embedding credential routing, and fs-safe dependency inputs were read; their upstream additions are retained and excluded from this lane reduction. Both changed embedding owner modules remain below 200 lines.

The latest TLS/WebSocket, widget-limit, skill-library retainFiles, and pending-input schema changes were read and retained. The OpenAI SDK 7.19.0 and proxyline export patch are upstream dependency inputs, not this lane's changes. The shipped public WebSocket constructor facade remains intact.

Upstream third-pass #159933 and the dependency refresh were read and retained. The three overlapping files have independent hunks; no primary cleanup is duplicated. Preserve canonical schema keyword traversal, the operator access-denial code, session-owner-count schema/type re-exports, and heap diagnostics. The response replay-context wrapper remains retired. assistant-transcript-headers.ts (178 lines) and protection-fast-path.ts (189 lines) were reread and are now below this table’s threshold. The fast path preserves conservative fence ownership, bare-CR deferral, and linear incremental scanning.

Upstream narration subscriptions were reread and retained: stable observer IDs, independent agent scopes, serialized full/narration mode and approval changes, and bounded narration schemas/exports. The new normalization-core/uuid public subpath, TypeScript/UI aliases, and secure UUID generation owner (33 lines, below this table threshold) remain intact. No new production file exceeds 200 lines; the three existing qualifying owners grew by 111 lines in total.

Final base 4902e4ae49a669702b92a1df3aeb01b167ec6715 adds only the optional health.childRuntime snapshot field within packages since the narration audit. The complete snapshot owner was reread; its 257-to-265-line increase introduces no new qualifying file. All prior simplifications and upstream public package exports remain preserved.

Provider-binding integration base 28340c41f8b88ae6d11488e523808315319747b5 retains canonical acknowledged-input identity binding and runtime-context tails, the existing public AI internal/openai subpath export, and optional plugin capability browse categories. The replay owner grew 596 to 619 lines and the plugin schema owner 783 to 785. No new production file exceeds 200 lines; the new 13-line package lint tsconfig is validation metadata. The previous 4902 census is retained separately.

Final cutoff c8a045a4f35e063f951130619e5e1cf4bb0de349 adds only the NODE_WORKER_STATUS_WAIT capability in the 26-line server capability owner within packages. The complete owner was reread and preserved. The new plugin SDK convertToLlm export forwards the existing untouched message conversion owner. No qualifying production file or size changed; all 165 READ rows remain current.

Main LOC Production file Coverage and outcome
1880 packages/tool-call-repair/src/stream-normalizer.ts READ — One JSON closing-marker selection and suffix path for required/optional closers; one pending-state union; cast-free pending delta merging; shared text-event predicate and terminal auxiliary projection branches. Existing candidate buffering, protection context and source-index projection remain distinct lifecycle responsibilities.
1717 packages/ai/src/providers/openai-chatgpt-responses.ts READ — no edit; HTTP/WebSocket failures, acceptance, retry, connection ownership, and cached continuation have distinct contracts.
1562 packages/agent-core/src/agent-loop.ts READ — No further sound consolidation: admission, source-start, outcome and transcript commits have distinct observable ordering; prior lane already unified immediate-error and execution-start projections. Public loop wrappers preserve separate prompt/continuation contracts.
1511 packages/markdown-core/src/ir.ts READ — Our table finalization shares cell preparation and bullet/code/native dispatch; reused table cell types, attribute lookup and render-target initialization. Reread upstream canonical list-item copying; preserved projected coordinates, source provenance, omission rules and non-enumerable metadata.
1307 packages/gateway-client/src/client.ts READ — Request, reconnect, generation, authentication, and cancellation owners remain distinct. Upstream original TLS peer/SNI options are retained without changing lifecycle ownership.
1211 packages/gateway-protocol/src/schema/agents-models-skills.ts READ — skill installation/proposal/auth requests differ in required fields, bounds, metadata, and lifecycle semantics; named exported schemas and wire types remain public contracts.
1050 packages/agent-core/src/harness/compaction/compaction.ts READ — Single usage-estimate result path, shared role token conversion, cut-point classification derived from the turn-start owner, direct boundary search, and removal of an assistant-message alias. Preserve CLI usage barriers and retained-tail budgeting.
951 packages/ai/src/providers/mistral.ts READ — Upstream canonical finalization and our independent identity filtering coexist; stream failure cleanup and public options remain intact.
906 packages/memory-host-sdk/src/host/session-files.ts READ — SQLite/archived transcript projection preserves reset cutoffs, provenance, redaction revision retries, observer timing, and retained archive rules; merging these distinct paths would change contracts.
802 packages/gateway-protocol/src/schema/channels.ts READ — shared audio-format properties retain fresh closed objects; channel account selectors reuse the existing shape; removed the one-use Talk provider property bag. The computed JSON Schema then helper is retained for the configured no-thenable lint contract.
802 packages/gateway-protocol/src/schema/sessions.ts READ — Companion reset, file get/set, and rewind/fork contracts reuse canonical property shapes with separate closed schemas; explicit fork-result fields retain public declaration order. Preserve ancestor-reference and owner-count exports plus upstream subscriptionId, optional narration mode, bounded SessionNarrationEventSchema and its public type.
785 packages/gateway-protocol/src/schema/plugins.ts READ — retained separate install/enablement result declarations. Sharing .properties kept runtime schema bytes identical but collapsed compiler type identity and triggered UI no-duplicate-type-constituents; the attempted simplification was reverted, and this file matches the base. Other catalog/consent/install shapes differ contractually. Preserve upstream optional unique capabilityCategories browse metadata; no primary edit to this schema owner.
766 packages/gateway-protocol/src/schema/worker-admission.ts READ — Worker presence reuses canonical presence-query properties and the existing session-tool response owner. Feature negotiation, public exports, readonly inference, and transcript/live bounds remain contractual.
761 packages/gateway-protocol/src/schema/cron.ts READ — run filters and run-history statuses reuse the existing run-status vocabulary. Writable versus report-only job state remains explicitly separate; deriving patches by omission would weaken future admission boundaries.
753 packages/gateway-client/src/session-projection.ts READ. Durable/live identity adoption, optimistic submission ownership, snapshot recovery, and run retention have distinct invariants. Their conditional mutations and defensive scope checks remain necessary; no sound further consolidation identified.
746 packages/llm-core/src/types.ts READ — Published extensible interfaces and documented provider semantics; removing declarations or flattening interfaces would violate public contracts.
735 packages/ai/src/transports/openai-responses-stream-internal.ts READ — Upstream shared reasoning-summary append preserves delta/done semantics and terminal admission; no further sound consolidation.
731 packages/memory-host-sdk/src/host/query-expansion.ts READ — Most size is language-specific stop-word data; Japanese, Chinese, Korean, and trigram branches intentionally emit different tokens. Retained prior consolidation.
730 packages/model-catalog-core/src/model-catalog-normalize.ts READ — Existing shared primitive normalizers own coercion; field-specific empty/null/omitted, retirement-scope, and routing semantics prohibit a generic field copier.
726 packages/memory-host-sdk/src/host/memory-schema.ts READ — Legacy import exclusion, canonical identity admission, migration savepoints, and FTS setup are distinct storage contracts; no database admission or transaction edits.
724 packages/agent-core/src/agent.ts READ — No further sound consolidation: queue reservation, draining, cancellation, commit and restoration enforce different authority checkpoints; public forwarding methods are API contracts.
720 packages/sdk/src/client.ts READ — preserve upstream Tasks retirement and run/session artifact scope; retain timeout, plain-event forwarding, readiness, and unsupported-error cleanup without changing replay, cancellation, or reconnect ownership.
717 packages/markdown-core/src/reasoning-tag-parser.ts READ — No further sound consolidation: prior lane unified reasoning tag grammar; inline and indented source capture require different parser hooks and offset reconstruction.
716 packages/ai/src/transports/anthropic-payload-policy.ts READ — Simplified the compact-threshold default and removed a misplaced narration comment; cache marker allocation and endpoint rules retained.
716 packages/ai/src/transports/openai-responses-client.ts READ — Preserves per-request encoding, HTTP/WebSocket selection, continuation recovery, and lifecycle ownership.
694 packages/ai/src/transports/openai-completions-stream.ts READ — Collapsed duplicated post-tool delta joining and inlined a one-call router whose text branch was unreachable; removed a one-use UTF-8 forwarding wrapper.
691 packages/ai/src/transports/openai-responses-websocket.ts READ — Transient/cached socket ownership, steering handoff, continuation matching, and post-dispatch ambiguity remain separate required contracts.
676 packages/gateway-client/src/protocol-client.ts READ. One existing owner already controls socket generations, handshake authority, correlation, and retry scheduling. Callback reentrancy and asynchronous retirement require the current guards; no sound competing-owner removal identified. Current-main gap recovery reread: a gap-revealing terminal snapshot dispatches before reconnect, later frames cannot use retired append baselines, and listener delivery rechecks connection abortion. The shared dispatchEvent owner is retained.
672 packages/ai/src/transports/anthropic-stream-reducer.ts READ — Unified reasoning_content text/thinking sidecar creation, append, and terminal emission; close sidecars once after native block completion.
672 packages/gateway-protocol/src/public-schema.ts READ — Preserve surviving public exports and upstream removal of Task ledger and task-suspension schemas; Task Suggestions remains separate. The new SessionNarrationEventSchema public export remains intact.
664 packages/gateway-protocol/src/schema/audit-activity.ts READ — one ordered descriptor constructor owns agent/tool action terminal correlations. Retained explicit public reason-code and correlated record types to preserve the published declaration graph.
654 packages/agent-core/src/harness/env/kill-tree.ts READ — Remove the void-only Windows taskkill forwarder and route Unix per-PID signaling through the existing exact-target owner. Preserve process-instance checks, traversal bounds and escalation timing. Refreshed module reread: Linux zombie/EPERM liveness handling is preserved; direct calls replace only the void forwarding layer.
652 packages/agent-core/src/types.ts READ — Public contracts unchanged; upstream removed narration only. Published message and callback types remain protected.
647 packages/ai/src/providers/anthropic.ts READ — prior pass already consolidated generation/auth owners; request, refusal, compaction, and client branches have distinct contracts.
637 packages/ai/src/transports/anthropic-transport-stream.ts READ — Transcript transformation uses the canonical transport host directly; SSE, refusal, and terminal lifecycle distinctions remain contractual.
634 packages/gateway-protocol/src/connect-error-details.ts READ — Shared recovery-step normalization and derived pairing reason membership; retained legacy messages and recovery precedence.
619 packages/ai/src/transports/openai-responses-replay-messages-internal.ts READ — Canonical host transformation and output-factory re-export retained; replay and message-shape boundaries are intentional. Preserve upstream private symbol source binding through both user-input conversion shapes; retained runtime-context carriers and serialized transcript bytes remain unchanged.
612 packages/tool-call-repair/src/payload.ts READ — No further sound consolidation: JSON and XML opening grammars differ in case sensitivity, accepted names and completeness; prior lane already canonicalized the JSON object scanner.
605 packages/ai/src/transports/openai-completions-params.ts READ — Upstream direct host strict-tool policy coexists with our shared JSON-estimation helper; payload shaping, fallback and error semantics retained.
605 packages/memory-host-sdk/src/host/session-transcript-corpus.ts READ — Synchronous and asynchronous filesystem preparation share the projection owner already; active/retained/archive entries preserve distinct provenance, ownership, and activity fields.
599 packages/terminal-core/src/table.ts READ — ANSI streaming wrap state and width allocation already have canonical owners; note wrapping has intentionally different whitespace and copy-sensitive-token behavior.
577 packages/gateway-protocol/src/validator-registry.ts READ — Shared lazy compilation and checkProtocolJson admission retained, including new users.merge validators; retired Task ledger validators remain removed.
567 packages/ai/src/transports/transport-stream-shared.ts READ — Public utility exports, observer acceptance sequencing, cancellation, and terminal argument validation have named responsibilities; retained.
564 packages/markdown-core/src/reasoning-tags.ts READ — No further sound consolidation: prior lane canonicalized pending-tag offsets; incremental fast-path and authoritative parse have separate bounded-work and source-retention contracts.
560 packages/gateway-client/src/session-subscriptions.ts READ — Preserve upstream stable wire observer IDs, explicit/implicit agent scope separation, serialized approval and narration mode changes, full-stream precedence, acknowledged downgrade/release, and timeout compensation. These are distinct ownership and recovery contracts; no new cleanup in this lane.
556 packages/sdk/src/run-event-replay.ts READ — New main owner for retained append baselines, normalized publication, session unsubscribe retirement, reconnect recovery, bounded unavailable observations, and observer cancellation. These state and authority obligations are distinct; retained without edits.
549 packages/ai/src/transports/openai-responses-debug.ts READ — Bounded redaction, identifier hashing, and diagnostic projections retain distinct field traversal and truncation rules.
537 packages/ai/src/providers/google-interactions-shared.ts READ — consolidated initial and delta-driven tool-call startup.
535 packages/ai/src/providers/agent-tools-parameter-schema.ts READ — prior consolidation owns traversal; retained malformed-input and reference-identity distinctions.
526 packages/memory-host-sdk/src/host/internal.ts READ — Reread complete refreshed module. Preserved upstream grouping of extra paths by root, pattern-union directory pruning, conservative descent for complex patterns, and authoritative leaf matching. Inlined path/descent helpers preserve skip-path, directory-kind, repair-directory, and pattern checks in their original short-circuit order. Symlink, retry, scan-error, and multimodal hash contracts remain intact.
511 packages/gateway-protocol/src/schema/logs-chat.ts READ — Shared event schemas preserve cursor, custody, attachment and redacted projection contracts. Upstream skipped-tool and pending-input cancellation fields are retained.
503 packages/net-policy/src/redact-sensitive-url.ts READ — Reused final normalization for failed query-name decoding; constructed query parameters from existing tuples directly; removed redundant fragment alias. Depth, error fallback, and encoding semantics unchanged.
499 packages/ai/src/transports/openai-transport-shared.ts READ — Provider attribution reconciliation, reasoning mirror suppression, usage pricing, and public helper exports retain their distinct contracts.
491 packages/gateway-protocol/src/schema/openclaw.ts READ — activation schema reuses the setup-detection kind vocabulary.
467 packages/gateway-protocol/src/schema/session-placement.ts READ — retained property bags: inlining preserves runtime order but changes TypeScript's emitted public property order.
466 packages/ai/src/providers/clean-for-gemini.ts READ — prior consolidation covers shared paths; Gemini definition resolution and key ordering differ intentionally.
460 packages/ai/src/transports/anthropic-messages.ts READ — Collapsed duplicated thinking replay construction under the existing reasoning_content admission condition and removed two narrating comments.
456 packages/llm-core/src/validation.ts READ — Earlier schema-coercion consolidation retained. The remaining private strict-number parser duplicates another package, but removing it would require expanding the package dependency graph; that change was excluded by the lead. Reread current module: upstream Pointer.Indices now decodes JSON Pointer segments before formatting errors; preserve this escaped-key correction and its TypeBox dependency contract.
440 packages/gateway-protocol/src/schema/worker-inference.ts READ — Upstream checkProtocolJson replaces duplicate traversal while preserving inference admission and caller-supplied depth limits; the const-generic schema wrapper protects public readonly inference.
433 packages/memory-host-sdk/src/host/memory-schema-storage-migration.ts READ — Frozen legacy declarations, dependent-object refusal, authority renewal, and binary conversion validation are migration contracts; no schema, transaction, or recovery changes.
431 packages/gateway-protocol/src/schema/users.ts READ — Public identity/auth request contracts retained, including upstream users.merge request/result schemas.
426 packages/memory-host-sdk/src/host/types.ts READ — Public manager/status/provenance signatures and diagnostic error text must remain identical; legacy read and identity variants carry explicit migration contracts.
425 packages/gateway-protocol/src/schema/agent.ts READ — reused send-outcome vocabulary in the terminal result branch; retained explicit result fields to preserve public declaration order.
417 packages/ai/src/transports/openai-transport-params.ts READ — Request headers use the canonical host directly; caller precedence, session affinity, identity filtering and strict diagnostics remain intact.
413 packages/markdown-core/src/render.ts READ — Remove forwarding sort/origin helpers and redundant copies; one link-copy preparation path; direct iteration of optional opening buckets preserves callback order and nesting.
411 packages/agent-core/src/harness/session/tool-result-pairing.ts READ — No further sound consolidation: exact occurrence queues, same-frame duplicate repair and cross-frame uniquely-owned repair have distinct semantics; legacy ID/name normalization supports persisted transcripts.
409 packages/net-policy/src/ip.ts READ — Canonical/loose parsing and private/link-local/metadata/NAT64 policies have intentionally different accepted inputs; retained prior shared parser and CIDR work.
406 packages/agent-core/src/agent-stream-response.ts READ — Canonical empty usage preserves accounting once per terminal response; partial, durable-fragment, and terminal updates keep their distinct ordering.
406 packages/gateway-protocol/src/schema/approvals.ts READ — record, resolution, and event fields already share owners; terminal reason distinctions are contractual.
405 packages/markdown-core/src/render-aware-chunking.ts READ — Infinity uses the existing candidate-rendering owner; iterate the dense reversed split directly. Preserve exact descending candidate probes because rendered lengths are not monotonic.
393 packages/ai/src/providers/google-stream.ts READ — Canonical empty usage preserves sparse counters and stream semantics; provider-specific tool and failure handling remains required.
393 packages/workboard-contract/src/index.ts READ — Public transport data types and constants; no removable private implementation remains.
392 packages/acp-core/src/structured-auth-redaction.ts READ — Earlier structured-auth grammar consolidation retained; serialized whitespace, quoting, and malformed-member recovery protect different credential boundaries.
391 packages/gateway-protocol/src/theme.ts READ — Color/font validation and ordered diagnostics are distinct public contracts; catalog declarations are product data.
390 packages/ai/src/transports/openai-responses-payload-policy.ts READ — Store, instructions, server-compaction, and compatible-endpoint capability choices have separate provider contracts; retained.
390 packages/gateway-protocol/src/schema/exec-approvals.ts READ — policy snapshots reuse resolved defaults instead of duplicating security/ask vocabulary.
389 packages/ai/src/transports/openai-responses-stream-terminal-internal.ts READ — Terminal recovery validates missing output ordering and tool admission separately from streamed completion; retained.
383 packages/ai/src/utils/credential-redaction.ts READ — bounded descriptor traversal, media classification, and hostile-object handling protect distinct disclosure boundaries.
375 packages/sdk/src/types.ts READ — preserve upstream Task type/metadata retirement, run/session artifact scope, and independent number-or-string RunTimestamp; surviving SDK projections and compatibility aliases remain contractual.
374 packages/normalization-core/src/number-coercion.ts READ — Public numeric helpers distinguish finite/safe/integer, floor/truncate, Date limits, and timer fallback semantics; existing primitive owner reuse retained.
372 packages/gateway-protocol/src/schema/board.ts READ — Separate operation/event contracts retained; upstream shared 10 MiB widget limit remains distinct from the 2 MiB preview limit.
371 packages/agent-core/src/harness/utils/truncate.ts READ — Derive truncation status from its reason and let result construction own unchanged-input counts, removing repeated untruncated projections. Preserve negative/fractional line limits, UTF-8 accounting and string-backing release.
368 packages/mermaid-renderer/src/renderer.ts READ — Opaque-frame security and render serialization have distinct owners. Frame, parent, and native guards enforce separate trust and payload boundaries.
361 packages/ai/src/transports/openai-responses-compaction-replay.ts READ — Opaque-prefix, retained-window, suppression, and refresh-required states have distinct replay/data contracts; retained.
360 packages/gateway-protocol/src/schema/audit-run.ts READ — display decisions reuse canonical receipt properties; upstream retired task/flow provenance stays rejected while historical ingress vocabulary remains unchanged.
360 packages/retry/src/index.ts READ — Removed numeric type laundering and reused the existing finite-number clamp for attempt counts. Numeric and options overloads retain their different zero-delay sleep, cap, and callback contracts.
359 packages/tool-call-repair/src/grammar.ts READ — No further sound consolidation: horizontal, indentation and general whitespace intentionally differ; XML name scans report different malformed offsets and the canonical JSON scanner already owns parsing.
358 packages/agent-core/src/harness/compaction/utils.ts READ — No further sound consolidation: file-operation accumulation, bounded diagnostics, persisted sender provenance and omitted-content accounting each have a separate required contract.
356 packages/ai/src/openai-completions-messages.ts READ — consolidated user-message emission/cache marking; retained distinct role projections.
356 packages/ai/src/transports/openai-completions-compat.ts READ — Endpoint defaults and explicit configured overrides are already one owner; public compatibility exports retained.
354 packages/ai/src/providers/google-shared.ts READ — Upstream now fully owns the duplicated error-finalization cleanup; removed our overlapping hunk and its LOC credit.
353 packages/gateway-protocol/src/schema/environments.ts READ — removed a forwarding schema factory while retaining the property factory that creates fresh nested identities.
351 packages/ai/src/transports/openai-completions-dsml.ts READ — Moved duplicate earliest-token and split-prefix scans to the shared DSML grammar owner used by visible-text filtering.
349 packages/markdown-core/src/assistant-transcript.ts READ — No further sound consolidation: visible projection, token splitting, image annotations and link suppression must preserve token identity and source provenance differently.
349 packages/normalization-core/src/json-schema.ts READ — Schema map/dependency/value branches differ in array identity and annotation treatment; JSON shape checks defend cycles, symbols, prototypes, and sparse arrays. Reread current module: upstream child-error matching escapes tilde and slash in property names before comparing JSON Pointer paths; preserve that exact diagnostic grouping contract.
348 packages/normalization-core/src/error-coercion.ts READ — Shared graph traversal already owns cause walking; public error converters intentionally differ in getters, realm handling, field copying, and stringification.
347 packages/ai/src/providers/anthropic-model-contract.ts READ — identity/replay, mandatory thinking, effort, and sampling policies have distinct provider contracts.
347 packages/gateway-protocol/src/schema/config.ts READ — removed the private one-use apply-schema alias.
342 packages/ai/src/transports/simple-completion-transport.ts READ — Applied the same provider wrapper through one local operation instead of repeating its six preparation arguments in five branches.
341 packages/media-core/src/mime.ts READ — Image encoder-format MIME lookup now reuses the canonical extension map with the exact existing supported-format allowlist.
339 packages/ai/src/host.ts READ — public policy ports and inert defaults are package seams; pending registration recovery preserves order.
337 packages/ai/src/transports/openai-responses-replay-internal.ts READ — Encodes every semantic retry's final payload; preserves request options and caller-header precedence.
335 packages/ai/src/transports/openai-responses-params-internal.ts READ — Strict-tool policy uses the canonical host directly; request shaping and compact-endpoint constraints retain their owners.
333 packages/memory-host-sdk/src/host/memory-schema-fts.ts READ — Path/body indexes have different columns, canonical triggers, admission, and reconciliation rules; preserved database lifecycle boundaries.
329 packages/ai/src/transports/openai-completions-transport.ts READ — Preserves post-transform encoding, SDK request options, SSE DONE admission, and response-hook ordering.
329 packages/model-catalog-core/src/remote-catalog-bundle.ts READ — V1/V2 schemas share model/cost owners already; strictness, pricing completeness, provider identity keys, and error paths remain distinct contracts.
322 packages/terminal-core/src/ansi-sequences.ts READ — Incremental parser state protects chunk boundaries; whole-string scans cannot substitute for retained stream state.
320 packages/sdk/src/transport.ts READ — Reread expanded main module. Connection epochs, response receipts, event watermarks, reconnect callbacks, and abort-aware recovery requests preserve observable ordering and live authority. Existing callback cleanup protects replacement connections; no fresh sound consolidation identified.
319 packages/ai/src/transports/openai-completions-replay.ts READ — Google thought-signature provenance and provider-specific reasoning replay preserve observed/shipped routes; retained.
319 packages/terminal-core/src/ansi.ts READ — Compatibility grammar and width/truncation fast paths preserve distinct public behavior; no sound further consolidation identified.
318 packages/ai/src/providers/tool-schema-refs.ts READ — consolidated prototype-safe assignments; preserved reference namespace and unresolved-definition handling.
314 packages/ai/src/providers/openai-responses-shared.ts READ — Canonical stream option types coexist with our encoding/request-option cleanup; signal, timeout and zero SDK retries remain intact.
313 packages/ai/src/providers/openai-completions-tool-calls.ts READ — legacy buffering, modern aliases, byte limits, and terminal admission protect distinct contracts.
311 packages/ai/src/providers/google-interactions-request.ts READ — request projection and standalone version fallback have distinct contracts.
308 packages/gateway-protocol/src/schema/update-runs.ts READ — repeated vocabulary and nested schemas already have shared owners.
307 packages/model-catalog-core/src/model-catalog-types.ts READ — Data primitives already reuse llm-core; remaining public catalog fields and thinking-level selection encode catalog-specific contracts.
306 packages/gateway-client/src/pending-request.ts READ. Accepted response notification, write send authority, identity-request replay after explicit refusal, abort, deadlines, and generation flush have distinct contracts. No sound extra owner or path removal identified.
301 packages/agent-core/src/harness/compaction/branch-summarization.ts READ — No further sound consolidation: branch token budgeting and BranchSummaryError identity differ from ordinary compaction; unifying completion would require a policy interface larger than the duplication removed.
301 packages/ai/src/providers/google-messages.ts READ — prior consolidation complete; signed parts and managed replay remain distinct.
301 packages/ai/src/transports/provider-compaction-replay.ts READ — History preservation, pressure estimation, and checkpoint reindexing are separate public contracts; retained.
300 packages/gateway-client/src/session-projection-final-identity.ts READ. Consolidated duplicate terminal snapshot-position calculation while preserving the earlier-user requirement for unmarked finals and the last-assistant requirement for tool-stop finals. Reused the existing tool-final predicate and shortened repetitive comments.
298 packages/acp-core/src/runtime/types.ts READ — Public adapter interfaces, event unions, and documented lifecycle contracts retained.
293 packages/gateway-protocol/src/schema/nodes.ts READ — distinct public operation/event contracts; resource refinement is necessary.
291 packages/markdown-core/src/frontmatter.ts READ — No further sound consolidation: YAML parsing and line fallback preserve shipped malformed-frontmatter recovery; duplicate-looking invalid-root branches cover parser versus toJS boundaries.
289 packages/markdown-core/src/html-scanner.ts READ — Replace the hand-written attribute-whitespace scan with the exact ASCII whitespace class. Preserve rendering versus visibility malformed-input policy and escaped-script state.
286 packages/gateway-protocol/src/schema/sessions-row.ts READ — retain shared session projections and ancestor contracts, including upstream interrupted run status.
285 packages/ai/src/providers/openai-tool-projection.ts READ — descriptor getter failures and Responses/Completions choice semantics differ; no sound consolidation remains.
279 packages/ai/src/providers/anthropic-tool-projection.ts READ — schema traversal, descriptor quarantine, name collision, and forced-choice repair each own necessary boundaries.
279 packages/ai/src/transports/openai-responses-continuation.ts READ — Request/history fingerprints, live claim identity, expiry, and retry classification require distinct checks; retained.
279 packages/session-url-contract/src/focus.ts READ — Consolidated desktop selector projection into one return; retained upstream browser focus parsing, query encoding, and identity validation.
278 packages/ai/src/providers/openai-completions.ts READ — Preserves post-hook encoding, request cancellation, content-end ordering, and failure cleanup.
278 packages/model-catalog-core/src/model-catalog-pricing.ts READ — Shared rate reader/context-tier owner already covers upstream and OpenRouter, while source precedence and per-token qualification remain intentional.
276 packages/gateway-protocol/src/gateway-error-details.ts READ — Removed duplicate local error shape and cast; readers retain each wire contract and fallback.
276 packages/memory-host-sdk/src/host/memory-recall-metadata.ts READ — Trigger/project candidates already share query and pagination owners; retained provenance checks and exact project eligibility after SQL prefiltering.
266 packages/ai/src/env-api-keys.ts READ — consolidated single/multiple credential variable lookup into one ordered descriptor map.
265 packages/gateway-protocol/src/schema/snapshot.ts READ — Health/session schemas already share owners. New connection identity and connection activity fields deliberately differ from person identity, person activity, and heartbeat freshness. Upstream optional health.childRuntime preserves the running process executable path and availability diagnostic in its closed wire shape.
264 packages/ai/src/providers/anthropic-usage.ts READ — consolidated optional billed-bucket assignment while preserving separate billing/context evidence.
262 packages/gateway-protocol/src/schema/devices.ts READ — token-delivery alternatives preserve documented shipped compatibility.
257 packages/ai/src/transports/anthropic-compaction-replay.ts READ — Compaction capture, persisted-state admission, suppression tombstones, and replay slicing serve distinct lifecycle stages; retained.
255 packages/ai/src/transports/openai-responses-stream-slots-internal.ts READ — Indexed/unindexed identity trackers protect different missing-ID and identity-conflict cases; retained.
245 packages/ai/src/providers/openai-tool-schema.ts READ — reused canonical record guards; compatibility and diagnostic walkers intentionally inspect different regions.
242 packages/ai/src/internal/retry-after.ts READ — three HTTP date formats retain distinct year/leap-second semantics and getter-free header admission.
241 packages/ai/src/providers/azure-openai-responses.ts READ — consolidated host predicate, URL precedence, and SDK client options.
240 packages/memory-host-sdk/src/host/markdown-chunks.ts READ — Weighted character budgets, Unicode-safe overlap, curated annotation spans, and original line maps are coupled observable chunking contracts; retained prior splitter work.
238 packages/gateway-protocol/src/schema/frames.ts READ — handshake and request/response/event envelopes serve separate public contracts.
235 packages/normalization-core/src/agent-run-terminal-outcome.ts READ — Lifecycle/wait adapters already project through canonical terminal facts; timeout/cancellation precedence and original stop reasons must remain unchanged.
234 packages/ai/src/providers/tool-result-text.ts READ — retained exact nonblank whitespace, structured fallback, media omission, and clipping contracts.
232 packages/ai/src/transcript-transform.ts READ — async relocation, failed-turn classification, signature stripping, and pairing repairs require ordering.
232 packages/gateway-protocol/src/schema/protocol-schema-selection.ts READ — Registry owner retains upstream worker exclusions and users.merge generation exclusions; public keys and nominal schema identity are preserved.
232 packages/model-catalog-core/src/provider-model-id-normalization.ts READ — Removed the single-use provider-prefix predicate and narrating comment; retained manifest/built-in order, provider aliases, and process-owned policy snapshot.
231 packages/gateway-protocol/src/schema/sessions-catalog.ts READ — reused descriptor properties; retained the list property bag because inlining changes emitted public declaration order.
228 packages/ai/src/transports/openai-responses-contracts.ts READ — Public constants/types and error identities are required contracts; retained.
228 packages/gateway-client/src/session-projection-message-identity.ts READ. Imported identity, native durable identity, live persistence receipts, send ownership, and run ownership intentionally differ. These distinctions protect separate rows and cannot safely share a generic equality predicate.
228 packages/memory-host-sdk/src/host/config-utils.ts READ — Narrow host config contracts differ from full runtime config; default workspace inheritance, explicit legacy data owner, DM isolation, and glob identity remain intentional.
226 packages/ai/src/providers/openai-reasoning-effort.ts READ — provider overrides, capability ordering, and fallback ranking are observable contracts.
224 packages/agent-core/src/internal-hooks.ts READ — No further sound consolidation: distinct weak-map capabilities have different copy/take/acknowledge semantics; generic registry wrappers would hide ownership without deleting policy.
222 packages/acp-core/src/runtime/session-identity.ts READ — Earlier ensure/event/status identity consolidation retained; differing pending/resolved rules are intentional.
219 packages/llm-core/src/utils/event-stream.ts READ — Producer completion, consumed-queue retention, and thinking append ownership address independent lifecycle requirements.
216 packages/memory-host-sdk/src/host/batch-runner.ts READ — Shared runner already owns grouping/submission/output projection; provider callbacks retain polling/deadline/HTTP policy and split-on-error behavior.
216 packages/tool-call-repair/src/promote.ts READ — No further sound consolidation: string and block messages require different index projections, and text-part flushing owns structural boundaries; public factories remain API.
210 packages/llm-core/src/model-contracts/anthropic.ts READ — One private matcher now owns repeated capture trimming while existing per-model patterns and alias policies remain unchanged.
206 packages/ai/src/providers/tool-schema-json-projection.ts READ — consolidated serialization-failure results while preserving root-versus-entry diagnostic paths.
202 packages/ai/src/transports/openai-responses-compaction-window.ts READ — Bounded provider window validation and streaming response cap preserve canonical replay and memory safety; retained.
202 packages/gateway-client/src/websocket-transport.ts READ — Original-peer TLS/SNI, pre-upgrade pin enforcement, and plaintext transport policy protect distinct contracts; no sound simplification remains.
201 packages/ai/src/providers/openai-tool-schema-compat.ts READ — applicator/map traversal, annotations, literal keys, and identity preservation require existing distinctions.

@clawsweeper

clawsweeper Bot commented Sep 27, 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 app: web-ui App: web-ui gateway Gateway runtime size: XL labels Sep 27, 2026
@steipete
steipete marked this pull request as ready for review September 27, 2026 00:32
@github-actions

github-actions Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 4c02d61ce39aeaa36e4c94f94d551a640344a901
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • packages/gateway-protocol/src/schema/exec-approvals.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • packages/net-policy/src/redact-sensitive-url.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 5:33 PM ET / 21:33 UTC (Revision 44).

ClawSweeper review

What this changes

The branch consolidates shared package parsing, streaming, schema, and projection code and makes the SDK bundle its private session URL source for packed consumers.

Merge readiness

⛔ Blocked before merge - 1 item remains

Current main lacks this PR’s distinct package work, and the merged third pass explicitly left these paths to this branch. The prior review’s requested exact-head integration refresh is reported complete; this review found no discrete blocking defect.

Priority: P3
Reviewed head: 4c02d61ce39aeaa36e4c94f94d551a640344a901

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Broad but well-checked cleanup with packed-consumer and Gateway-path evidence and no established blocking defect.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The unchanged packed-SDK consumer entry point corresponds to the manifest change: the captured PR body reports a Linux Testbox build-script failure before the repair and a passing packed-consumer run afterward. It also records a prior-head Gateway provider-review E2E and exact-head SDK, schema, API, and CI results for the broader folds. Testbox workflow cancellation after lease shutdown does not independently certify the reported command result. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The unchanged packed-SDK consumer entry point corresponds to the manifest change: the captured PR body reports a Linux Testbox build-script failure before the repair and a passing packed-consumer run afterward. It also records a prior-head Gateway provider-review E2E and exact-head SDK, schema, API, and CI results for the broader folds. Testbox workflow cancellation after lease shutdown does not independently certify the reported command result. No stored-data contract changes.
Evidence reviewed 9 items SDK packaging change: The PR moves the private session URL contract from runtime dependencies to development dependencies; the standalone builder uses runtime dependencies to decide what remains external.
Builder dependency boundary: The existing standalone package builder supplies the package manifest’s runtime dependencies to its build dependency policy.
Packed consumer entry point: The unchanged test packs an SDK consumer, imports its public entry point, and runs client operations with a custom transport. The captured PR body reports the original build-script failure and a passing Linux Testbox run after the manifest repair.
Findings None None.
Security None None.

How this fits together

Shared packages sit beneath OpenClaw’s agents, Gateway, clients, and plugins. They turn provider responses and client inputs into protocol records, rendered content, and SDK results.

flowchart LR
A[Provider responses] --> B[Shared package helpers]
C[Client requests] --> B
B --> D[Gateway protocol]
B --> E[Rendered content]
B --> F[Packed SDK]
D --> G[Agents and clients]
E --> G
F --> G
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source -747, Config +2, Other -3. Total -748 across 80 files.

View PR surface stats
Area Files Added Removed Net
Source 77 687 1434 -747
Tests 0 0 0 0
Docs 0 0 0 0
Config 1 3 1 +2
Generated 0 0 0 0
Other 2 5 8 -3
Total 80 695 1443 -748

Review metrics

Metric Value Why it matters
SDK dependency classification 1 workspace dependency moved from runtime to development The standalone builder uses runtime dependencies to choose external packages, so this affects packed SDK consumers.

Stored data model

Persistent data-model change detected: migration/backfill/repair: packages/gateway-protocol/src/connect-error-details.ts, migration/backfill/repair: packages/memory-host-sdk/src/host/internal.ts, unknown-data-model-change: packages/gateway-protocol/src/schema/audit-activity.ts, unknown-data-model-change: packages/gateway-protocol/src/schema/channels.ts, unknown-data-model-change: packages/memory-host-sdk/src/host/internal.ts, vector/embedding metadata: packages/memory-host-sdk/src/host/batch-output.ts, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep one owner for each consolidated package behavior while preserving protocol and public SDK contracts, with the private SDK source included in packed output.

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

Not applicable to the cleanup as a whole. For the SDK packaging defect, the existing packed-consumer entry point and the captured before-and-after Testbox results give a focused reproduction path.

Is this the best way to solve the issue?

Yes. The change uses existing package owners and the standalone builder without adding a parallel public API; the recorded schema and API comparisons support its compatibility aim.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is primarily internal package cleanup with no intended user-facing behavior change.
  • merge-risk: 🚨 compatibility: The SDK dependency classification and shared protocol schemas affect consumer compatibility; packed-consumer, schema, and API evidence address the reviewed paths.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 unchanged packed-SDK consumer entry point corresponds to the manifest change: the captured PR body reports a Linux Testbox build-script failure before the repair and a passing packed-consumer run afterward. It also records a prior-head Gateway provider-review E2E and exact-head SDK, schema, API, and CI results for the broader folds. Testbox workflow cancellation after lease shutdown does not independently certify the reported command result. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The unchanged packed-SDK consumer entry point corresponds to the manifest change: the captured PR body reports a Linux Testbox build-script failure before the repair and a passing packed-consumer run afterward. It also records a prior-head Gateway provider-review E2E and exact-head SDK, schema, API, and CI results for the broader folds. Testbox workflow cancellation after lease shutdown does not independently certify the reported command result. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Paco Cartones: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • xingzhou: 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 (43 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-28T16:08:29.409Z sha 63ea2ed42abc76f0c0ff81e2c88bac64b787635c :: blocked before merge. :: none
  • reviewed 2026-09-28T16:25:36.956Z sha 6eae049 :: blocked before merge. :: none
  • reviewed 2026-09-28T16:38:20.016Z sha 6eae049 :: blocked before merge. :: none
  • reviewed 2026-09-28T17:13:50.134Z sha 6eae049 :: blocked before merge. :: none
  • reviewed 2026-09-28T17:38:05.432Z sha cfdd94b :: blocked before merge. :: none
  • reviewed 2026-09-28T19:53:07.581Z sha be0eea72a7e3a25c36b6d824a1ea364bd6e2fefc :: blocked before merge. :: none
  • reviewed 2026-09-28T21:06:59.651Z sha 4c02d61 :: blocked before merge. :: none
  • reviewed 2026-09-28T21:18:35.382Z sha 4c02d61 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 27, 2026
@steipete
steipete force-pushed the deslop/l103-packages2 branch 4 times, most recently from 3a7aa3c to 27ae346 Compare September 27, 2026 08:43
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 27, 2026
@github-actions

github-actions Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 4c02d61ce39aeaa36e4c94f94d551a640344a901
  • Maintainer: @steipete
  • Repository role: admin

These dependency graph changes were made:

  • pnpm-lock.yaml
  • packages/sdk/package.json

Carefully review these changes before merging.

@steipete
steipete force-pushed the deslop/l103-packages2 branch from 27ae346 to 485a3ea Compare September 27, 2026 14:08
@clawsweeper clawsweeper Bot added 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. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 27, 2026
@steipete
steipete force-pushed the deslop/l103-packages2 branch from 485a3ea to ab417e1 Compare September 27, 2026 15:42
@clawsweeper clawsweeper Bot added 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 27, 2026
@steipete
steipete force-pushed the deslop/l103-packages2 branch from ab417e1 to 8c37d5b Compare September 27, 2026 17:10
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 28, 2026
@steipete
steipete force-pushed the deslop/l103-packages2 branch from fc8b2ed to b14c5ad Compare September 28, 2026 12:46
@clawsweeper clawsweeper Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 28, 2026
@steipete
steipete force-pushed the deslop/l103-packages2 branch from b14c5ad to 6835dfa Compare September 28, 2026 15:18
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 28, 2026
@steipete
steipete force-pushed the deslop/l103-packages2 branch 2 times, most recently from 63ea2ed to 6eae049 Compare September 28, 2026 16:16
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Sep 28, 2026
@steipete
steipete force-pushed the deslop/l103-packages2 branch from cfdd94b to be0eea7 Compare September 28, 2026 19:33
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 28, 2026
Consolidate remaining stream, parser, schema projection and normalization paths while preserving public exports, wire shapes and runtime semantics. Retain the prior package cleanup owners and shrink assertion ratchets for removed casts.
The private session URL contract exports TypeScript source and has no standalone package build. Keep it as a build-time dependency so the existing package builder bundles it into the SDK. The unchanged external-consumer E2E reproduced the missing build-script failure before this repair.
Refresh the PR merge ref after #160024 repaired the trusted harness inventory and ordinary child-process jsdom preload. Package source and the reviewed tree are unchanged.
Refresh the PR merge ref after #160124 repaired the inherited placement fence synchronization and cleanup race. The reviewed and Testbox-proven package tree remains unchanged.
Refresh the PR merge ref after #160290 separated per-group scheduling from shared compiler inputs. The package tree and active Testbox source hashes are unchanged.
@steipete
steipete force-pushed the deslop/l103-packages2 branch from be0eea7 to 4c02d61 Compare September 28, 2026 20:59
@steipete
steipete enabled auto-merge (squash) September 28, 2026 21:36
@steipete
steipete merged commit 926c896 into main Sep 28, 2026
236 of 237 checks passed
@steipete
steipete deleted the deslop/l103-packages2 branch September 28, 2026 21:37
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
* refactor(packages): deslop shared packages second pass

Consolidate remaining stream, parser, schema projection and normalization paths while preserving public exports, wire shapes and runtime semantics. Retain the prior package cleanup owners and shrink assertion ratchets for removed casts.

* refactor(packages): preserve schema declarations and finish type cleanup

* refactor(packages): preserve explicit guards and import ordering

* refactor(packages): retain distinct plugin result declarations

* fix(sdk): bundle private session URL dependency

The private session URL contract exports TypeScript source and has no standalone package build. Keep it as a build-time dependency so the existing package builder bundles it into the SDK. The unchanged external-consumer E2E reproduced the missing build-script failure before this repair.

* ci: refresh packages proof after inherited fixture repairs

Refresh the PR merge ref after openclaw#160024 repaired the trusted harness inventory and ordinary child-process jsdom preload. Package source and the reviewed tree are unchanged.

* ci: refresh packages proof after placement fixture repair

Refresh the PR merge ref after openclaw#160124 repaired the inherited placement fence synchronization and cleanup race. The reviewed and Testbox-proven package tree remains unchanged.

* ci: refresh packages after compiler scheduling repair

Refresh the PR merge ref after openclaw#160290 separated per-group scheduling from shared compiler inputs. The package tree and active Testbox source hashes are unchanged.

* ci: refresh packages after lazy import guard repair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui dependencies-changed PR changes dependency-related files 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. security-sensitive-changed 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