Repository navigation
fix(gateway): unblock CLI bootstrap boundary qualification - #150653
Conversation
Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 2:06 AM ET / 06:06 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherOpenClaw 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +16. Total +16 across 1 file. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
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.mdis 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.jsentry 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
e60f19292fbfe707355cb60b0b8cf15a4c19a833onrelease/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
e60f19292fbfe707355cb60b0b8cf15a4c19a833and Tooling1adc86b88cf27362d840b9befdf9517529313247. Its CI child failed in build-artifacts, fast plugin contracts, and additional boundaries.srcextension-import inventory, andgit diff --checkpassed.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.