Skip to content

fix(agents): preserve published catalog in setup probes - #200372

Open
RomneyDa wants to merge 8 commits into
mainfrom
openclaw/quiet-prawn-2
Open

RomneyDa wants to merge 8 commits into
mainfrom
openclaw/quiet-prawn-2

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #196817.

Read-only setup probes could lose the startup-published subscription model catalog because the lease compared execution-owner identity instead of the canonical catalog source. Compare the existing canonical source projection for passive inventory while retaining separate execution ownership, auth binding, credential scope, and plugin-generation lifecycle checks.

This is a fresh replacement for #198054, which its author closed on the stale base and explicitly invited replacing from a fresh branch. It uses the canonical source projection rather than a custom fingerprint policy. Attribution and prior discussion: #198054. That PR remains closed.

Current repair and validation (November 19, 2026)

Native baseline preparation incorporated verified main baseline eb381dceef2ac1b4a07f672fd67ac6ae953e0f61, including the upstream Discord local-IPC/native-cleanup repairs and updated Goal consumed-return/admitted-run expectations. The catalog behavior is preserved. The unchanged catalog comparator is now private to its sole lease-admission caller; this also avoids exceeding the owner-module lint limit after integration.

Reviewed candidate: a33e45ba2afe8f6bf915b831301a8eecd77e9d6b; tree: f5e4e67af40b45e4cdc2bde4d11508c6a21836aa.

  • 42 focused tests passed across catalog setup/negative controls, public Gateway setup verification, catalog worker pool, runtime, remote-inference and retention coverage. The public setup test initially hit the isolated workspace's unsafe creation mode; rerunning only that test with process-local umask 077 passed. No product assertion or permission guard was weakened.
  • Both previously failing E2E boundaries passed (2/2) on integrated candidate 382b869b2669efdccbe5b107b2930a52f23df6f0: Discord transcript capture and Goal created-authority. This proof is reused after the sole subsequent, independently reviewed byte-identical comparator relocation; it is not represented as an exact-final-head rerun.
  • All runtime proof used the secretless, network-none pinned-Bun runner. Containers were confirmed absent after cleanup.
  • Final production and agent/Gateway test typechecks, focused type-aware lint, formatting and git diff --check passed.
  • Fresh independent integrated-source review and a separate exact-relocation review found no actionable issues. Reviewers inspected source; the lead ran the tests.
  • Current-head CI is green at a33e45ba2afe8f6bf915b831301a8eecd77e9d6b: https://github.com/openclaw/openclaw/actions/runs/44538786681. The enforced openclaw/ci-gate, changed-node tests, type/lint checks, and selected security/review checks succeeded; the exact-head watcher reported zero pending checks. PR observed OPEN, MERGEABLE and CLEAN. Native preparation originally recorded github_pending; completion is established by this subsequent hosted evidence. No merge is authorized or performed.

Historical CI attribution

Run https://github.com/openclaw/openclaw/actions/runs/44005561326 (job 133780799835) failed on merge 5c7c32c43447910c949c2994756259c3de47eaf8, based on main 9f441adcf1e7307e1dfd0a496660106c4922dfe8. Network-none pinned-Bun comparisons reproduced the same two failures on both that merge and its main parent without this PR: Discord's native IPC was rejected as null:NaN, and consumed Goal-return history expected 9 messages but received 8. Catalog/public setup passed 6/6 on that integration tree. Those failures were inherited; the baseline repair above replaces their previous unresolved status. Historical CI is not claimed green.

The original catalog regression's base-red/fix-green evidence and contributor discussion remain applicable; no replacement PR was created during this repair.

Limits

The real isolated Gateway regression uses synthetic subscription credentials and provider transport, not a live account, real model response or live OAuth service. No migration, configuration change, deployment, merge or remote main write is included.

Repair sweep — 2026-11-25

Integrated main to fix the import conflict, retaining both the current runtime-config reader and this PR's configured-source projection. The focused prepared-runtime/public-setup/prefix suites passed all 22 cases.

Exact-head CI then exposed an unchanged Goal authority test expecting a lower-level missing-scope message. Reproduced that same failure locally through an isolated real Gateway: current participation authorization deliberately hides the revoked caller's session. Updated only the expectation to the exact hidden-session refusal; all existing admitted-work completion, silent publication, no-new-provider-work and Stop assertions remain. The complete real-Gateway scenario passes. Scoped type-aware lint, formatting and diff checks pass; committed correction-range ClawSweeper found no P1/P2 findings. Removed its one inaccurate explanatory comment as suggested by the advisory P3.

Current head: b56422ac65f39ed64b14c6adec2b3a891644cf03. Hosted CI is rerunning for this head; earlier CI is not treated as current-head proof.

RomneyDa and others added 2 commits November 17, 2026 02:46
Compare passive catalog inputs through their canonical source while retaining separate read-only execution, auth and plugin-generation ownership. Cover setup verification through the public Gateway method and scoped negative controls.

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 643aa802-b215-4257-8340-8381db4aac4b
@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling size: M labels Nov 17, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review November 17, 2026 02:47
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head d825a840d9f3d6cea27349368c82a6590ebe0863, but the PR head is now a33e45ba2afe8f6bf915b831301a8eecd77e9d6b. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-17T03:04:37.321Z sha d825a84 :: needs maintainer review before merge. :: none

RomneyDa and others added 3 commits November 19, 2026 13:51
Preserve the published catalog tree and ancestry while providing the locally signed source required by native baseline refresh. The incoming hosted commit is unsigned; the actual CI repair is incorporated by the subsequent native baseline candidate.

Co-authored-by: RomneyDa <[email protected]>
Baseline-Refresh: f4b0bfb4b6c48620d73dd5a15f746b74a894d3c9
Co-authored-by: RomneyDa <[email protected]>
Keep the unchanged catalog comparison private to its sole lease-admission caller, avoiding an unnecessary owner export and the owner-module lint limit after baseline integration.

Co-authored-by: RomneyDa <[email protected]>
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime P2 Normal backlog priority with limited blast radius. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Setup inference loses published subscription routes and rejects usable OAuth

1 participant