Skip to content

fix(models): retain discovery failures across provider aliases - #158139

Merged
steipete merged 2 commits into
mainfrom
fix/catalog-discovery-outcomes-20260925
Sep 25, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/catalog-discovery-outcomes-20260925

Conversation

@steipete

@steipete steipete commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A provider-scoped model catalog refresh can discard an explicit discovery failure when the plugin reports a registered alias of the selected provider.

User Impact

Scoped refreshes preserve the selected provider's outcome and account identity across aliases, while excluding outcomes from unrelated sibling providers.

Why This Change Was Made

The outcome filter now uses the catalog's captured alias map. Plugins still receive the original requested provider IDs, and explicit outcome values pass through unchanged.

Evidence

The regression failed in both alias directions before the repair; the sibling-exclusion control passed. The integrated change passes 61 focused tests across five files, production and owning test types, lint, formatting, and diff checks. The four-file patch is equivalent to the independently reviewed version. Full canonical changed-file checks passed before main integration. Hosted CI passed for published head 753e6032b3015e3d95f645d957dbd5e1110f7a70, and final native hosted preparation passed. The native watcher resolved 76 superseded historical contexts; GitHub’s raw aggregate still includes those older failures.

Measured locally with pnpm test src/agents/models-config.providers.implicit.outcomes.test.ts --maxWorkers=1: 47.04 seconds wall, including cold native-runtime preparation, and 0.895 seconds across the three test bodies. The test exercises the real resolver-to-hook path so it also detects missing alias-map forwarding, which a filter-only unit test would miss.

@steipete steipete self-assigned this Sep 25, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: S labels Sep 25, 2026
@steipete
steipete marked this pull request as ready for review September 25, 2026 13:55
@clawsweeper

clawsweeper Bot commented Sep 25, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 10:03 AM ET / 14:03 UTC.

ClawSweeper review

What this changes

The branch makes scoped model catalog refreshes retain discovery outcomes reported under a registered provider alias, with resolver-path tests and updated plugin documentation.

Merge readiness

✅ Ready for maintainer review

Current main still drops alias-reported outcomes during a provider-scoped catalog refresh. The proposed fix uses the existing manifest alias map, and its tests cover both alias directions and exclusion of a separate sibling provider.

Priority: P2
Reviewed head: 753e6032b3015e3d95f645d957dbd5e1110f7a70

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level fix has meaningful regression coverage and no identified correctness or security blocker.
Proof confidence 🌊 off-meta tidepool Not applicable: The captured Repository State identifies a MEMBER author, so the external-contributor real-setup proof gate does not apply. Resolver-to-hook tests are supplemental evidence; no persisted data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The captured Repository State identifies a MEMBER author, so the external-contributor real-setup proof gate does not apply. Resolver-to-hook tests are supplemental evidence; no persisted data contract changes.
Evidence reviewed 8 items Current-main behavior: The current-main catalog helper compares normalized provider IDs directly, so a reported alias does not match a selected canonical provider.
Introduced repair: The pinned introduced diff passes a prepared normalizer into the existing outcome filter; the plugin hook still receives the original selected provider IDs.
Alias ownership: The existing normalizer derives aliases from available plugin manifests and maps them to the provider each manifest owns.
Findings None None.
Security None None.

How this fits together

OpenClaw asks provider plugins for model catalogs during a selected-provider refresh. Their discovery outcomes feed the prepared model inventory used by model listing and selection.

flowchart LR
A[Selected provider IDs] --> B[Provider catalog hook]
B --> C[Discovery outcomes]
D[Manifest alias map] --> E[Outcome scope check]
A --> E
C --> E
E --> F[Prepared model inventory]
F --> G[Model list and selection]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +15, Tests +122, Docs +3. Total +140 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 16 1 +15
Tests 1 122 0 +122
Docs 1 5 2 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 143 3 +140

Review metrics

Metric Value Why it matters
Production and test growth production +16/-1 lines; tests +122/-0 lines The larger test fixture covers resolver-to-hook forwarding; the PR body reports 0.895 seconds for its three test bodies and 47.04 seconds wall including cold preparation.

Technical review

Best possible solution:

Use the captured manifest alias map for scoped outcome matching while preserving the hook's requested IDs, reported profile IDs, and sibling isolation.

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

Yes, at source level: current main's scoped filter drops an outcome reported under a different registered alias. The added tests cover both directions, though this read-only review did not run them.

Is this the best way to solve the issue?

Yes. Reusing the catalog's existing manifest alias normalizer keeps alias policy with its owner and avoids changing the plugin hook request or reported outcome.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: Alias-selected catalog refreshes can lose failure outcomes, but the affected workflow and provider set are limited.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The captured Repository State identifies a MEMBER author, so the external-contributor real-setup proof gate does not apply. Resolver-to-hook tests are supplemental evidence; no persisted data contract changes.

Label justifications:

  • P2: Alias-selected catalog refreshes can lose failure outcomes, but the affected workflow and provider set are limited.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The captured Repository State identifies a MEMBER author, so the external-contributor real-setup proof gate does not apply. Resolver-to-hook tests are supplemental evidence; no persisted data contract changes.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: 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)
  • Ayaan Zaidi: 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.

@steipete
steipete merged commit 52fc3da into main Sep 25, 2026
273 of 275 checks passed
@steipete
steipete deleted the fix/catalog-discovery-outcomes-20260925 branch September 25, 2026 14:30
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 25, 2026
Compose canonical #158139 (52fc3da) with the qualified #158113 catalog correction. Preserve captured alias normalization only for outcome filtering, original hook scope, explicit outcome authority, and single evaluation of accepted legacy projections. Clarify the legacy omitted-outcome compatibility exception in the combined documentation. All 16 alias/legacy controls, core and owning types, lint/formatting, both cycle guards and managed P2 review pass.
steipete added a commit that referenced this pull request Sep 25, 2026
Restore the task-created catalog changes to fixed canonical main168d454d while preserving scoped outcome handling from #158139 and the real HTTP fixture correction from #158115. Keep the service-reporting repair and canonical pending-read assertions unchanged.

The previous inference changes introduced a compatibility and native augmentation regression. Their failure history remains documented; the separate legacy-retention repair is not a dependency of this feature.
vincentkoc added a commit that referenced this pull request Sep 25, 2026
* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (194 commits)
  feat(ui): listen to managed desktop audio in the panel (#157724)
  fix(ci): resume partially published preparation receipts (#158174)
  feat(release): one approval per release via an attested parent approval receipt (#157911)
  feat(desktop): advertise current managed desktop audio (#157723)
  fix(ui): retain delayed progress scroll gestures (#158153)
  refactor(ui): share sidebar mutation error feedback (#158173)
  test: await database verifier process lifecycle events (#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (#157722)
  refactor(gateway): split companion prompts and metadata fixtures (#158050)
  feat(desktop): isolate managed Linux application audio (#157720)
  fix(test): prepare catalog fixture modules before startup (#158157)
  fix: keep model pickers usable during provider sign-in (#158132)
  refactor(test): remove unused prompt scenario metadata (#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020)
  fix: bound stalled browser stream startup (#156323)
  fix(onnx): prevent worker fixture hangs after release (#158146)
  fix(models): preserve scoped provider discovery outcomes (#158139)
  fix(agents): report offline trash failures after agent delete (#158052)
  ...
steipete added a commit that referenced this pull request Sep 25, 2026
* fix(doctor): report remaining systemd units after cleanup

The confirmed unit's disable result does not establish that no other
canonical or legacy user unit remains. Consult the existing scoped
installation discovery passively after cleanup and report remaining or
unverifiable state without deleting another unit.

Keep the successful removal distinct from a later inspection failure, and
limit clean wording to the supported matching installed-unit search.

Add causal Doctor-boundary regressions for a surviving alias and failed
post-cleanup inspection. Native transport and uninstall are mocked; the
selected synthetic file is actually removed and legacy bytes stay intact.

Follow-up to #119674.

* test(doctor): distinguish readers from staging workers

Reuse the canonical startup pending-read correction while preserving selected-unit reporting and cleanup scope.

(cherry picked from commit 9b90a98)

* fix(models): integrate canonical discovery provenance repair

Compose the qualified catalog correction from #158113, including explicit static and advisory outcomes and exact auth-provenance expectations. Include its existing first-discovery retention prerequisite; preserve the independent Doctor reporting change.

Canonical commits: aef8743, 5d9c2d7, 36def8b.

* fix(ci): finish canonical catalog and Doctor integration

Preserve the landed Doctor mock lifetime cleanup while composing the catalog loader type leaf and generated non-live catalog outcome correction. Reader and staging assertions, strict live discovery, and custom callbacks remain unchanged.

Canonical commits: cbff337, 9adf333, 4f1acb7.

* fix(ci): withdraw catalog inference detour

Restore the task-created catalog changes to fixed canonical main168d454d while preserving scoped outcome handling from #158139 and the real HTTP fixture correction from #158115. Keep the service-reporting repair and canonical pending-read assertions unchanged.

The previous inference changes introduced a compatibility and native augmentation regression. Their failure history remains documented; the separate legacy-retention repair is not a dependency of this feature.
vincentkoc added a commit that referenced this pull request Sep 25, 2026
* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (175 commits)
  feat(ui): listen to managed desktop audio in the panel (#157724)
  fix(ci): resume partially published preparation receipts (#158174)
  feat(release): one approval per release via an attested parent approval receipt (#157911)
  feat(desktop): advertise current managed desktop audio (#157723)
  fix(ui): retain delayed progress scroll gestures (#158153)
  refactor(ui): share sidebar mutation error feedback (#158173)
  test: await database verifier process lifecycle events (#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (#157722)
  refactor(gateway): split companion prompts and metadata fixtures (#158050)
  feat(desktop): isolate managed Linux application audio (#157720)
  fix(test): prepare catalog fixture modules before startup (#158157)
  fix: keep model pickers usable during provider sign-in (#158132)
  refactor(test): remove unused prompt scenario metadata (#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020)
  fix: bound stalled browser stream startup (#156323)
  fix(onnx): prevent worker fixture hangs after release (#158146)
  fix(models): preserve scoped provider discovery outcomes (#158139)
  fix(agents): report offline trash failures after agent delete (#158052)
  ...
vincentkoc added a commit that referenced this pull request Sep 25, 2026
* fix(qa-lab): retain tab focus and scroll during polling

* chore(qa-lab): merge main for tab navigation validation

* fix(qa-lab): keep focused tabs visible after layout changes

* fix(qa-lab): reconcile navigation retention with current app

* chore: refresh main for QA Lab navigation validation

* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (194 commits)
  feat(ui): listen to managed desktop audio in the panel (#157724)
  fix(ci): resume partially published preparation receipts (#158174)
  feat(release): one approval per release via an attested parent approval receipt (#157911)
  feat(desktop): advertise current managed desktop audio (#157723)
  fix(ui): retain delayed progress scroll gestures (#158153)
  refactor(ui): share sidebar mutation error feedback (#158173)
  test: await database verifier process lifecycle events (#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (#157722)
  refactor(gateway): split companion prompts and metadata fixtures (#158050)
  feat(desktop): isolate managed Linux application audio (#157720)
  fix(test): prepare catalog fixture modules before startup (#158157)
  fix: keep model pickers usable during provider sign-in (#158132)
  refactor(test): remove unused prompt scenario metadata (#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020)
  fix: bound stalled browser stream startup (#156323)
  fix(onnx): prevent worker fixture hangs after release (#158146)
  fix(models): preserve scoped provider discovery outcomes (#158139)
  fix(agents): report offline trash failures after agent delete (#158052)
  ...

Co-authored-by: Vincent Koc <[email protected]>
steipete added a commit that referenced this pull request Sep 25, 2026
* refactor(sessions): reconcile hydration with current worker context

* fix(sessions): remove unused hydration worker type export

Keep the hydration input private to its shared worker union owner while retaining the externally consumed SQLite target input export. This clears the unused-export finding without changing emitted runtime code.

* fix(sessions): publish transcript projections through canonical workers

Move deferred projection writes and readiness reads onto the existing worker
owners while preserving compressed transcript bytes, navigation, and FTS
identity maintenance.

Join the exact in-progress database close before readiness re-admission.
Preserve finalized receipts when retirement prevents a new orphan sweep;
the next preflight still repairs derived orphan rows.

Validation: 73 focused cases, 16 current-main composition cases, causal
SQL control, complete supported lint stripes and selected guards, current
union types, and independent P0-P2 feature and lint-delta reviews.

* fix(sessions): stream full hydration within worker memory limits

Transfer canonical transcript chunks through the existing history worker while retaining one read-only snapshot and complete caller-side results. Preserve SQLite text encodings, BOM errors, cancellation, current-owner checks, and native cleanup without raising the worker heap limit.

* fix(sessions): preserve deferred projection ownership

Carry the admitted database environment through post-commit publication.
Register the projection worker protocol and route its test consumers through
the host broker. Synchronize cancellation and planner fixtures with the real
projection task and completed reconciliation owner.

* test(sessions): align hydration error controls with streaming

Model interactive admission and the canonical streaming result in the
existing quarantine error fixture, preserving its cleanup and retirement
assertions. Remove a redundant unknown-alias assertion from the reader;
emitted production JavaScript is unchanged.

The complete 21-case worker error file, assertion ratchet, owning types,
scoped lint, and fresh P0-P2 review pass.

* fix(sessions): preserve maintenance publication and CI ownership

* test(sessions): preserve projection worker ownership

* test(sessions): drain rewrite fixtures before removing inputs

* test(gateway): keep history worker tests with their canonical owner

* fix(sessions): preserve projection wait cancellation errors

* test(gateway): drain transcript reader fixtures before cleanup

* test(gateway): match the landed placement policy fixture

* fix(gateway): preserve transcript event source ordering

* fix(sessions): refresh stale discovery within captured authority

Refresh pure physical-target discovery once when registry facts change, keeping source retirement and worker failures terminal. Align Gateway fixtures with shared-state and projection lifetimes while preserving their assertions.

* fix(sessions): resume scoped reads after healthy verification

Start a new topology read with current admission for the original physical database and captured owner scopes. Keep startup reads sticky and reject old replies, replaced files, and expired maintenance or schema scopes.

Allow bounded accepted exact-row facts to materialize while their page remains pinned. Preserve foreground priority for new worker reads and the existing archive and source guards.

Update request-authority fixtures to hold the real worker snapshot, and carry the canonical updater VM fixture repair from 691d2e5.

* test(gateway): capture the published chat fixture store

* test(gateway): exclude test support from production callsites

* test(ci): compose canonical fixture repairs

Retain the actual coalescing assertion alongside the canonical capped-chunk comparison. Keep native routing entries sorted without changing membership, preserve the older-schema fixture index lifecycle, and include the existing plugin disposal module in wrapper closure.

Canonical fixes: cb3e6df.

Co-authored-by: joshavant <[email protected]>

* test(ci): preserve shard coverage across planner formatting

Retain canonical gatewayPatterns factoring from 449fc2e and move the
unchanged coalescing assertion earlier in the same case. This resolves the
actual one-file main conflict without importing unrelated source or changing
coverage, ordering inputs, capacity checks or dependencies.

Validation: exact assertion byte parity and clean three-way file union;
owning case, root-test types, scoped lint/format and P2 review pass.

* test(sessions): qualify publication through physical replacement

Hold the real committed finalizer reply before host delivery. Prove that
canonical close waits for the original notification, then replace the closed
physical file and verify the successor contains only its own transcript.
Reuse the existing publication fixture and transparent worker-operation
interception; preserve all native admission and cleanup parameters.

The new case closes the final-effect proof gap without changing production,
adding a Gateway boot, or using a timer or test-only production hook.
Validation: six publication cases pass; new case 1.766s, wrapper 85.48s including
compilation. Owning types/lint/format, ratchets and independent P2 review pass.

* test(ci): compare precise plans with their canonical templates

The UI fallback fixture compared precise parent-job metadata with a measured
complete plan that intentionally repacks different siblings. Compare each
branch with its actual canonical producer and retain all coverage, uniqueness,
worker, runner, concurrency, fallback and memory assertions.

The original two-worker-vs-undefined parent environment mismatch reproduced.
Adding changed-path context alone still failed; matching the precise template
owner passes in 59.79s wrapper wall. Root-test types, lint/format, both ratchets
and independent P2 review pass. No production limits or policy changed.

* perf(cli): reuse pinned config for proxy validation

Carry the exact canonical correction from 488ce1e (#158071), preserving its guarded fallback to the same synchronous config getter. All 73 owning CLI tests, core and config-CLI types, scoped lint/formatting and managed P2 review pass on this composition. The historical 30-second CI timeouts remain unattributed; this is a measured cold-import improvement, not proof of their cause.

* test(ci): align precise assertions with canonical runtime inventory

Adopt the canonical 88e2ebe template reference and explicit deferred-runtime exclusion, retaining changed-path context for the dedicated UI comparison. Preserve all capacity and coverage assertions. The exact three-way file union is clean; the owning case, root-test types, lint/formatting and managed P2 review pass. No production or dependency changes.

* fix(models): preserve explicit catalog discovery provenance

Compose the reviewed #158113 successor 5d9c2d7 and canonical 36def8b consumer. Record successful legacy results while keeping bundled static and advisory results explicitly non-discovery. Preserve the strict retention rule and original worker/source authority. All 40 postimages match the supplier; focused composition tests, types, lint, formatting, ratchet and managed P2 review pass. Matching canonical producer/freshness proof is reused with its original source binding.

* fix(plugin-sdk): compose explicit static catalog outcomes

Compose the qualified six-file successor from #158113 at 4f1acb7. Preserve strict discovery and mark generated static catalogs as non-discovery; move the loader type to its canonical leaf without changing its public export. All six postimages match the supplier. The 18-case owner file, core and SDK types, lint, formatting, both cycle guards, and managed P2 review pass.

* refactor(state): separate independent read byte accounting

Relocate the unchanged deletion snapshot and journal clauses after the repository selector clause so canonical cron byte accounting can merge without an insertion collision. Exact formulas, command discriminants, source authority and input capture are unchanged. The 35-case worker owner suite, core types, lint and formatting pass; managed P2 review is clean and the exact fixed-main file union preserves all clauses.

* fix(models): compose captured discovery alias scope

Compose canonical #158139 (52fc3da) with the qualified #158113 catalog correction. Preserve captured alias normalization only for outcome filtering, original hook scope, explicit outcome authority, and single evaluation of accepted legacy projections. Clarify the legacy omitted-outcome compatibility exception in the combined documentation. All 16 alias/legacy controls, core and owning types, lint/formatting, both cycle guards and managed P2 review pass.

* fix(models): remove unlanded catalog inference detour

Restore all 43 differing detour paths to canonical main52fc3daa84f71b15a052f7bd60caa7096ed5b31a, as verified against the canonical reversal manifest. Preserve the Projection implementation, strict36def retention consumer, canonical alias scope, and #158115 validated HTTP-success fixture correction. The separate legacy-retention repair is not imported.

Validation: 45 native-worker/catalog-builder cases pass; the original discovery lifecycle and credential-free full-refresh cases pass. Core and three owning type projects, scoped lint/formatting, both cycle guards and managed P2 review pass. The longer native Gateway tour reached its final proof marker then hit its unchanged120-second deadline during cleanup, followed by one shutdown cascade; that gap is retained without a retry or deadline change. Current-head CI and installed-upgrade proof remain required.

* fix(gateway): compose early model shutdown cancellation

Compose the exact qualified nine-file shutdown correction from #158047 at541451990b7395eb25c449f0f3a4d4106004e601. Retain cancellation before bootstrap and join the shared prelude only after admitted Gateway owners fence new work. Preserve main's heartbeat-before-cron ordering and all original Projection publication/authority semantics.

Validation: all19 held-acquisition and metadata lifecycle cases pass in this composition; core plus four owning test type projects, scoped lint/formatting, both cycle guards and fresh managed P2 review pass. Supplier real SIGTERM and import-fault proof retains its original source binding. The earlier native-tour cleanup timeout remains unattributed and was not rerun or relabeled; installed-upgrade proof and final exact-head CI remain pending.

* refactor(state): align sandbox read reply construction

Resolve the actual duplicate-extraction conflict by adopting canonical main's registry dispatcher postimage. The existing admitted constant supplies the same primitive ok/sourceAdmitted fields to each fresh reply; commands, kernel calls, arguments and admission behavior are unchanged. All11 owning native sandbox read cases, core types, lint/formatting and fresh managed P2 review pass. Prior724 hosted CI and installed-upgrade proof retain their applicable source and contract bindings; no broad main carry or dependency change.

* test(gateway): retain first sign-in timeout phases

---------

Co-authored-by: Jason (Json) <[email protected]>
Co-authored-by: joshavant <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…8139)

* fix(models): preserve scoped provider discovery outcomes

* fix(models): preserve upstream catalog integration

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…58034)

* fix(doctor): report remaining systemd units after cleanup

The confirmed unit's disable result does not establish that no other
canonical or legacy user unit remains. Consult the existing scoped
installation discovery passively after cleanup and report remaining or
unverifiable state without deleting another unit.

Keep the successful removal distinct from a later inspection failure, and
limit clean wording to the supported matching installed-unit search.

Add causal Doctor-boundary regressions for a surviving alias and failed
post-cleanup inspection. Native transport and uninstall are mocked; the
selected synthetic file is actually removed and legacy bytes stay intact.

Follow-up to openclaw#119674.

* test(doctor): distinguish readers from staging workers

Reuse the canonical startup pending-read correction while preserving selected-unit reporting and cleanup scope.

(cherry picked from commit 9b90a98)

* fix(models): integrate canonical discovery provenance repair

Compose the qualified catalog correction from openclaw#158113, including explicit static and advisory outcomes and exact auth-provenance expectations. Include its existing first-discovery retention prerequisite; preserve the independent Doctor reporting change.

Canonical commits: aef8743, 5d9c2d7, 3cb4c86.

* fix(ci): finish canonical catalog and Doctor integration

Preserve the landed Doctor mock lifetime cleanup while composing the catalog loader type leaf and generated non-live catalog outcome correction. Reader and staging assertions, strict live discovery, and custom callbacks remain unchanged.

Canonical commits: a9db992, 9adf333, 4f1acb7.

* fix(ci): withdraw catalog inference detour

Restore the task-created catalog changes to fixed canonical main168d454d while preserving scoped outcome handling from openclaw#158139 and the real HTTP fixture correction from openclaw#158115. Keep the service-reporting repair and canonical pending-read assertions unchanged.

The previous inference changes introduced a compatibility and native augmentation regression. Their failure history remains documented; the separate legacy-retention repair is not a dependency of this feature.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
)

* fix(qa-lab): retain tab focus and scroll during polling

* chore(qa-lab): merge main for tab navigation validation

* fix(qa-lab): keep focused tabs visible after layout changes

* fix(qa-lab): reconcile navigation retention with current app

* chore: refresh main for QA Lab navigation validation

* commit '0001f441f53712e44b2ca6edf2a6752b8abd6d1d': (194 commits)
  feat(ui): listen to managed desktop audio in the panel (openclaw#157724)
  fix(ci): resume partially published preparation receipts (openclaw#158174)
  feat(release): one approval per release via an attested parent approval receipt (openclaw#157911)
  feat(desktop): advertise current managed desktop audio (openclaw#157723)
  fix(ui): retain delayed progress scroll gestures (openclaw#158153)
  refactor(ui): share sidebar mutation error feedback (openclaw#158173)
  test: await database verifier process lifecycle events (openclaw#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (openclaw#157722)
  refactor(gateway): split companion prompts and metadata fixtures (openclaw#158050)
  feat(desktop): isolate managed Linux application audio (openclaw#157720)
  fix(test): prepare catalog fixture modules before startup (openclaw#158157)
  fix: keep model pickers usable during provider sign-in (openclaw#158132)
  refactor(test): remove unused prompt scenario metadata (openclaw#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (openclaw#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (openclaw#158020)
  fix: bound stalled browser stream startup (openclaw#156323)
  fix(onnx): prevent worker fixture hangs after release (openclaw#158146)
  fix(models): preserve scoped provider discovery outcomes (openclaw#158139)
  fix(agents): report offline trash failures after agent delete (openclaw#158052)
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…54069)

* refactor(sessions): reconcile hydration with current worker context

* fix(sessions): remove unused hydration worker type export

Keep the hydration input private to its shared worker union owner while retaining the externally consumed SQLite target input export. This clears the unused-export finding without changing emitted runtime code.

* fix(sessions): publish transcript projections through canonical workers

Move deferred projection writes and readiness reads onto the existing worker
owners while preserving compressed transcript bytes, navigation, and FTS
identity maintenance.

Join the exact in-progress database close before readiness re-admission.
Preserve finalized receipts when retirement prevents a new orphan sweep;
the next preflight still repairs derived orphan rows.

Validation: 73 focused cases, 16 current-main composition cases, causal
SQL control, complete supported lint stripes and selected guards, current
union types, and independent P0-P2 feature and lint-delta reviews.

* fix(sessions): stream full hydration within worker memory limits

Transfer canonical transcript chunks through the existing history worker while retaining one read-only snapshot and complete caller-side results. Preserve SQLite text encodings, BOM errors, cancellation, current-owner checks, and native cleanup without raising the worker heap limit.

* fix(sessions): preserve deferred projection ownership

Carry the admitted database environment through post-commit publication.
Register the projection worker protocol and route its test consumers through
the host broker. Synchronize cancellation and planner fixtures with the real
projection task and completed reconciliation owner.

* test(sessions): align hydration error controls with streaming

Model interactive admission and the canonical streaming result in the
existing quarantine error fixture, preserving its cleanup and retirement
assertions. Remove a redundant unknown-alias assertion from the reader;
emitted production JavaScript is unchanged.

The complete 21-case worker error file, assertion ratchet, owning types,
scoped lint, and fresh P0-P2 review pass.

* fix(sessions): preserve maintenance publication and CI ownership

* test(sessions): preserve projection worker ownership

* test(sessions): drain rewrite fixtures before removing inputs

* test(gateway): keep history worker tests with their canonical owner

* fix(sessions): preserve projection wait cancellation errors

* test(gateway): drain transcript reader fixtures before cleanup

* test(gateway): match the landed placement policy fixture

* fix(gateway): preserve transcript event source ordering

* fix(sessions): refresh stale discovery within captured authority

Refresh pure physical-target discovery once when registry facts change, keeping source retirement and worker failures terminal. Align Gateway fixtures with shared-state and projection lifetimes while preserving their assertions.

* fix(sessions): resume scoped reads after healthy verification

Start a new topology read with current admission for the original physical database and captured owner scopes. Keep startup reads sticky and reject old replies, replaced files, and expired maintenance or schema scopes.

Allow bounded accepted exact-row facts to materialize while their page remains pinned. Preserve foreground priority for new worker reads and the existing archive and source guards.

Update request-authority fixtures to hold the real worker snapshot, and carry the canonical updater VM fixture repair from 56071a1.

* test(gateway): capture the published chat fixture store

* test(gateway): exclude test support from production callsites

* test(ci): compose canonical fixture repairs

Retain the actual coalescing assertion alongside the canonical capped-chunk comparison. Keep native routing entries sorted without changing membership, preserve the older-schema fixture index lifecycle, and include the existing plugin disposal module in wrapper closure.

Canonical fixes: 59046b8.

Co-authored-by: joshavant <[email protected]>

* test(ci): preserve shard coverage across planner formatting

Retain canonical gatewayPatterns factoring from 3237466 and move the
unchanged coalescing assertion earlier in the same case. This resolves the
actual one-file main conflict without importing unrelated source or changing
coverage, ordering inputs, capacity checks or dependencies.

Validation: exact assertion byte parity and clean three-way file union;
owning case, root-test types, scoped lint/format and P2 review pass.

* test(sessions): qualify publication through physical replacement

Hold the real committed finalizer reply before host delivery. Prove that
canonical close waits for the original notification, then replace the closed
physical file and verify the successor contains only its own transcript.
Reuse the existing publication fixture and transparent worker-operation
interception; preserve all native admission and cleanup parameters.

The new case closes the final-effect proof gap without changing production,
adding a Gateway boot, or using a timer or test-only production hook.
Validation: six publication cases pass; new case 1.766s, wrapper 85.48s including
compilation. Owning types/lint/format, ratchets and independent P2 review pass.

* test(ci): compare precise plans with their canonical templates

The UI fallback fixture compared precise parent-job metadata with a measured
complete plan that intentionally repacks different siblings. Compare each
branch with its actual canonical producer and retain all coverage, uniqueness,
worker, runner, concurrency, fallback and memory assertions.

The original two-worker-vs-undefined parent environment mismatch reproduced.
Adding changed-path context alone still failed; matching the precise template
owner passes in 59.79s wrapper wall. Root-test types, lint/format, both ratchets
and independent P2 review pass. No production limits or policy changed.

* perf(cli): reuse pinned config for proxy validation

Carry the exact canonical correction from ec36a22 (openclaw#158071), preserving its guarded fallback to the same synchronous config getter. All 73 owning CLI tests, core and config-CLI types, scoped lint/formatting and managed P2 review pass on this composition. The historical 30-second CI timeouts remain unattributed; this is a measured cold-import improvement, not proof of their cause.

* test(ci): align precise assertions with canonical runtime inventory

Adopt the canonical d1ce5c3 template reference and explicit deferred-runtime exclusion, retaining changed-path context for the dedicated UI comparison. Preserve all capacity and coverage assertions. The exact three-way file union is clean; the owning case, root-test types, lint/formatting and managed P2 review pass. No production or dependency changes.

* fix(models): preserve explicit catalog discovery provenance

Compose the reviewed openclaw#158113 successor 5d9c2d7 and canonical 3cb4c86 consumer. Record successful legacy results while keeping bundled static and advisory results explicitly non-discovery. Preserve the strict retention rule and original worker/source authority. All 40 postimages match the supplier; focused composition tests, types, lint, formatting, ratchet and managed P2 review pass. Matching canonical producer/freshness proof is reused with its original source binding.

* fix(plugin-sdk): compose explicit static catalog outcomes

Compose the qualified six-file successor from openclaw#158113 at 4f1acb7. Preserve strict discovery and mark generated static catalogs as non-discovery; move the loader type to its canonical leaf without changing its public export. All six postimages match the supplier. The 18-case owner file, core and SDK types, lint, formatting, both cycle guards, and managed P2 review pass.

* refactor(state): separate independent read byte accounting

Relocate the unchanged deletion snapshot and journal clauses after the repository selector clause so canonical cron byte accounting can merge without an insertion collision. Exact formulas, command discriminants, source authority and input capture are unchanged. The 35-case worker owner suite, core types, lint and formatting pass; managed P2 review is clean and the exact fixed-main file union preserves all clauses.

* fix(models): compose captured discovery alias scope

Compose canonical openclaw#158139 (aadb23f) with the qualified openclaw#158113 catalog correction. Preserve captured alias normalization only for outcome filtering, original hook scope, explicit outcome authority, and single evaluation of accepted legacy projections. Clarify the legacy omitted-outcome compatibility exception in the combined documentation. All 16 alias/legacy controls, core and owning types, lint/formatting, both cycle guards and managed P2 review pass.

* fix(models): remove unlanded catalog inference detour

Restore all 43 differing detour paths to canonical main52fc3daa84f71b15a052f7bd60caa7096ed5b31a, as verified against the canonical reversal manifest. Preserve the Projection implementation, strict36def retention consumer, canonical alias scope, and openclaw#158115 validated HTTP-success fixture correction. The separate legacy-retention repair is not imported.

Validation: 45 native-worker/catalog-builder cases pass; the original discovery lifecycle and credential-free full-refresh cases pass. Core and three owning type projects, scoped lint/formatting, both cycle guards and managed P2 review pass. The longer native Gateway tour reached its final proof marker then hit its unchanged120-second deadline during cleanup, followed by one shutdown cascade; that gap is retained without a retry or deadline change. Current-head CI and installed-upgrade proof remain required.

* fix(gateway): compose early model shutdown cancellation

Compose the exact qualified nine-file shutdown correction from openclaw#158047 at541451990b7395eb25c449f0f3a4d4106004e601. Retain cancellation before bootstrap and join the shared prelude only after admitted Gateway owners fence new work. Preserve main's heartbeat-before-cron ordering and all original Projection publication/authority semantics.

Validation: all19 held-acquisition and metadata lifecycle cases pass in this composition; core plus four owning test type projects, scoped lint/formatting, both cycle guards and fresh managed P2 review pass. Supplier real SIGTERM and import-fault proof retains its original source binding. The earlier native-tour cleanup timeout remains unattributed and was not rerun or relabeled; installed-upgrade proof and final exact-head CI remain pending.

* refactor(state): align sandbox read reply construction

Resolve the actual duplicate-extraction conflict by adopting canonical main's registry dispatcher postimage. The existing admitted constant supplies the same primitive ok/sourceAdmitted fields to each fresh reply; commands, kernel calls, arguments and admission behavior are unchanged. All11 owning native sandbox read cases, core types, lint/formatting and fresh managed P2 review pass. Prior724 hosted CI and installed-upgrade proof retain their applicable source and contract bindings; no broad main carry or dependency change.

* test(gateway): retain first sign-in timeout phases

---------

Co-authored-by: Jason (Json) <[email protected]>
Co-authored-by: joshavant <[email protected]>
vincentkoc added a commit that referenced this pull request Oct 17, 2026
* fix(ui): release failed avatar response bodies

* test(ui): cover avatar response cancellation in Chromium

* test(ui): assert retained image after avatar failure

* test(ui): preserve window global type in avatar proof

* test(ui): avoid shadowed avatar proof bindings

* chore: refresh main for avatar lifecycle validation

* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (175 commits)
  feat(ui): listen to managed desktop audio in the panel (#157724)
  fix(ci): resume partially published preparation receipts (#158174)
  feat(release): one approval per release via an attested parent approval receipt (#157911)
  feat(desktop): advertise current managed desktop audio (#157723)
  fix(ui): retain delayed progress scroll gestures (#158153)
  refactor(ui): share sidebar mutation error feedback (#158173)
  test: await database verifier process lifecycle events (#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (#157722)
  refactor(gateway): split companion prompts and metadata fixtures (#158050)
  feat(desktop): isolate managed Linux application audio (#157720)
  fix(test): prepare catalog fixture modules before startup (#158157)
  fix: keep model pickers usable during provider sign-in (#158132)
  refactor(test): remove unused prompt scenario metadata (#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020)
  fix: bound stalled browser stream startup (#156323)
  fix(onnx): prevent worker fixture hangs after release (#158146)
  fix(models): preserve scoped provider discovery outcomes (#158139)
  fix(agents): report offline trash failures after agent delete (#158052)
  ...

* test(ui): wait for settled avatar fallback

* test(ui): wait for control UI before avatar handoff

* fix(ui): preserve avatar cleanup across retry lifecycle updates

Integrate current main while preserving retry exhaustion, auth restoration, and deferred response cleanup. Keep the real-stream test on real timers and drain loader cleanup before restoring shared test state.

* fix(ui): integrate avatar response cleanup with current main

* test(ui): align avatar cleanup proof with current harness

* test(ui): qualify avatar cleanup harness types and formatting

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
* fix(ui): release failed avatar response bodies

* test(ui): cover avatar response cancellation in Chromium

* test(ui): assert retained image after avatar failure

* test(ui): preserve window global type in avatar proof

* test(ui): avoid shadowed avatar proof bindings

* chore: refresh main for avatar lifecycle validation

* commit '0001f441f53712e44b2ca6edf2a6752b8abd6d1d': (175 commits)
  feat(ui): listen to managed desktop audio in the panel (openclaw#157724)
  fix(ci): resume partially published preparation receipts (openclaw#158174)
  feat(release): one approval per release via an attested parent approval receipt (openclaw#157911)
  feat(desktop): advertise current managed desktop audio (openclaw#157723)
  fix(ui): retain delayed progress scroll gestures (openclaw#158153)
  refactor(ui): share sidebar mutation error feedback (openclaw#158173)
  test: await database verifier process lifecycle events (openclaw#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (openclaw#157722)
  refactor(gateway): split companion prompts and metadata fixtures (openclaw#158050)
  feat(desktop): isolate managed Linux application audio (openclaw#157720)
  fix(test): prepare catalog fixture modules before startup (openclaw#158157)
  fix: keep model pickers usable during provider sign-in (openclaw#158132)
  refactor(test): remove unused prompt scenario metadata (openclaw#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (openclaw#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (openclaw#158020)
  fix: bound stalled browser stream startup (openclaw#156323)
  fix(onnx): prevent worker fixture hangs after release (openclaw#158146)
  fix(models): preserve scoped provider discovery outcomes (openclaw#158139)
  fix(agents): report offline trash failures after agent delete (openclaw#158052)
  ...

* test(ui): wait for settled avatar fallback

* test(ui): wait for control UI before avatar handoff

* fix(ui): preserve avatar cleanup across retry lifecycle updates

Integrate current main while preserving retry exhaustion, auth restoration, and deferred response cleanup. Keep the real-stream test on real timers and drain loader cleanup before restoring shared test state.

* fix(ui): integrate avatar response cleanup with current main

* test(ui): align avatar cleanup proof with current harness

* test(ui): qualify avatar cleanup harness types and formatting

Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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