Skip to content

fix(gateway): unblock CLI bootstrap boundary qualification - #150653

Merged
RomneyDa merged 1 commit into
release/2026.9.5from
fix/release95-boundary-20260917T0533
Sep 17, 2026
Merged

RomneyDa merged 1 commit into
release/2026.9.5from
fix/release95-boundary-20260917T0533

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes release/2026.9.5 qualification failing in three boundary gates when the credential-free CLI bootstrap test imports memory-core's private implementation. This is a maintainer-requested repair of the frozen release candidate, not a change to the release cut or a general main-branch test cleanup.

User Impact

No production behavior or public API changes. The bootstrap regression still proves that trusted USER.md is injected and that the same file is excluded after an untrusted provenance write, using the real classifier, broker, and stores.

Why This Change Was Made

The Gateway test now loads memory-core's existing public index.js entry through the established test facade and registers it with the real host API. The fixture takes its kind and tool contracts from the canonical manifest; only memory-slot selection remains fixture-owned. This removes the private runtime import and handwritten capability injection without adding exports, hiding a deep import behind a dynamic path, changing scanners, or weakening assertions. Registration diagnostics and capability presence are also checked, with instance disposal retained and global side effects disabled.

Base is the exact frozen candidate e60f19292fbfe707355cb60b0b8cf15a4c19a833 on release/2026.9.5; no rebase or moving-main changes. Existing #150300 concerns detached finalization/live-pool recovery and has no file or fix overlap.

Evidence

Original full validation 35182718648/1 used Code e60f19292fbfe707355cb60b0b8cf15a4c19a833 and Tooling 1adc86b88cf27362d840b9befdf9517529313247. Its CI child failed in build-artifacts, fast plugin contracts, and additional boundaries.

  • Before editing, both original boundary tests failed on the exact private import, and the unchanged type-boundary checker found 88 memory-core files in the Gateway-root core test graph. The original bootstrap test itself passed.
  • After: full core-support-boundary suite 131 passed; plugin boundary-invariants suite 13 passed; actual changed bootstrap test plus the live-state-broker sibling 2 passed in the normal live fork pool.
  • After: Gateway-root test types and the unchanged complete core type-boundary inventory (21 graphs) passed.
  • Targeted lint/formatting, line-cap/max-lines/assertion-safety ratchets, production src extension-import inventory, and git diff --check passed.
  • Fresh independent scoped review accepted the exact final patch and source on September 17, 2026, with no actionable findings. The normal pre-commit hook passed, and the committed file remains byte-identical to the reviewed and tested source.
  • PR CI is running; the local checks above are not a claim that hosted CI is green.

Local timing: the original single bootstrap test reported 0.495s in its test body / 19.58s total; the public-entry version reported 35.453s in its body / 47.65s total with the broker sibling. No timeout or assertion was relaxed. This remains credential-free; no provider calls, broad build, full hosted validation retry, release-ref mutation, or release publication was performed. These focused checks do not claim complete release qualification or native plugin-package loading proof. Logs stay outside the public diff.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 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 size: XS maintainer Maintainer-authored PR labels Sep 17, 2026
@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 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 2:06 AM ET / 06:06 UTC.

ClawSweeper review

What this changes

The CLI bootstrap test registers Memory Core through its existing public plugin entrypoint while preserving checks that trusted workspace context is included and untrusted content is excluded.

Merge readiness

✅ Ready for maintainer review

Keep open with no actionable findings. This is a focused repair for the frozen release candidate, remains distinct from the linked recovery work, and carries the protected maintainer label.

Priority: P2
Reviewed head: ee245a6398bffb09efc903faccdc7995abe69a66

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair using existing boundaries, retained behavioral assertions, and clearly scoped reported validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies this as a maintainer/bot repair, so the external-contributor proof gate does not apply; reported execution covers public Memory Core registration and trusted/untrusted bootstrap behavior in the credential-free live pool.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies this as a maintainer/bot repair, so the external-contributor proof gate does not apply; reported execution covers public Memory Core registration and trusted/untrusted bootstrap behavior in the credential-free live pool.
Evidence reviewed 8 items Pinned, focused introduction: The complete host-verified merge-base-to-head patch changes only the bootstrap test's registration fixture; its existing trusted-content and untrusted-provenance assertions remain intact.
Existing public boundary: The existing facade resolves a plugin public surface and imports it through the test runner. Its blob is identical on the reviewed head and fetched main; no new production export or parallel loader is introduced.
Registration and cleanup ownership: createApi reuses an existing PluginInstance and instruments registrations through it. The test creates that instance before registration and disposes it in finally; manifest kind, tool contracts, and memory-slot selection satisfy the existing registrars.
Findings None None.
Security None None.

How this fits together

OpenClaw prepares workspace files for agent context and asks the selected memory plugin to classify their provenance. This credential-free Gateway test exercises that boundary through real plugin registration and storage.

flowchart LR
  A[Workspace files] --> B[Bootstrap preparation]
  C[Public Memory Core entrypoint] --> D[Host plugin registration]
  D --> E[Memory provenance classifier]
  B --> E
  E --> F[Include trusted context]
  E --> G[Exclude untrusted context]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +16. Total +16 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 27 11 +16
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 27 11 +16

Review metrics

Metric Value Why it matters
Reported test-body duration 0.495s before; 35.453s after Public registration adds material fixture cost, but the reported run remains within the unchanged 120-second test timeout.

Technical review

Best possible solution:

Keep the frozen candidate’s provenance regression on the existing public plugin registration boundary, with its behavioral assertions and cleanup intact.

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

Not applicable to a production bug: this repairs a test boundary violation. Source confirms the rejected private import on the frozen candidate, and the PR reports before/after boundary checks.

Is this the best way to solve the issue?

Yes. Reusing the public facade and real host registration removes handwritten capability injection without adding API surface or weakening the provenance regression.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9edc73fc2f9b.

Labels

Label changes:

  • add P2: This is a bounded release-validation fixture repair with no production behavior change.
  • 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 supplied repository state identifies this as a maintainer/bot repair, so the external-contributor proof gate does not apply; reported execution covers public Memory Core registration and trusted/untrusted bootstrap behavior in the credential-free live pool.

Label justifications:

  • P2: This is a bounded release-validation fixture repair with no production behavior change.
  • 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 supplied repository state identifies this as a maintainer/bot repair, so the external-contributor proof gate does not apply; reported execution covers public Memory Core registration and trusted/untrusted bootstrap behavior in the credential-free live pool.

Evidence

What I checked:

  • Pinned, focused introduction: The complete host-verified merge-base-to-head patch changes only the bootstrap test's registration fixture; its existing trusted-content and untrusted-provenance assertions remain intact. (src/gateway/gateway-cli-backend.bootstrap.live.test.ts:41, ee245a6398bf)
  • Existing public boundary: The existing facade resolves a plugin public surface and imports it through the test runner. Its blob is identical on the reviewed head and fetched main; no new production export or parallel loader is introduced. (src/test-utils/bundled-plugin-public-surface.ts:72, 9edc73fc2f9b)
  • Registration and cleanup ownership: createApi reuses an existing PluginInstance and instruments registrations through it. The test creates that instance before registration and disposes it in finally; manifest kind, tool contracts, and memory-slot selection satisfy the existing registrars. (src/plugins/registry.ts:41, ee245a6398bf)
  • Independent boundary contract: The existing boundary-invariants test rejects deep bundled-extension imports from core tests. The frozen candidate's private runtime-provider import violates that contract; the proposed public-entry fixture removes the violation without changing the scanner. (src/plugins/contracts/boundary-invariants.test.ts:322, ee245a6398bf)
  • Reported focused validation: The complete supplied PR body reports 131 core-support-boundary tests, 13 plugin boundary tests, both live-pool tests, and 21 type-boundary graphs passing after the change. It explicitly excludes complete release qualification and native package-loading proof. These are contributor-reported results; this read-only review did not execute tests. (ee245a6398bf)
  • Release-specific necessity: GitHub confirms the open PR still targets release/2026.9.5 at the pinned candidate. Tree inspection finds this bootstrap test absent from fetched main and the supplied v2026.9.4 release commit, so neither establishes that this candidate-specific repair is already implemented. (src/gateway/gateway-cli-backend.bootstrap.live.test.ts, e60f19292fbf)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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.

@RomneyDa
RomneyDa merged commit b466d22 into release/2026.9.5 Sep 17, 2026
161 checks passed
@RomneyDa
RomneyDa deleted the fix/release95-boundary-20260917T0533 branch September 17, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

2 participants