Repository navigation
fix(templates): use Gateway-owned Add from the CLI - #196431
Patrick-Erichsen merged 5 commits into
Conversation
|
🦞👀 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. What this changesRoutes published Template Add commands through the running Gateway’s existing review, consent, and installation operations. Example: Run openclaw templates add @openclaw/api-integration-engineer while the local Gateway is running.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: current main still refuses published CLI Add while a Gateway owns the state; this PR supplies a useful owner-routed path, resolves the previous documentation finding, and introduces no verified actionable defect. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe CLI selects the state owner, translates package names and consent into Gateway RPCs, and presents the native installation result; the existing Gateway installer owns durable effects. flowchart TD
A[Template Add CLI] --> B[State owner selection]
B --> C[Exclusive offline installer]
B --> D[Gateway catalog and review]
D --> E[Trust and capability consent]
E --> F[Gateway Add installer]
F --> G[Agent workspace and automations]
Technical reviewBest possible solution: Retain the focused CLI adapter over the existing Gateway installer and qualify the atomic stack before landing. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically refuses Add under a foreign Gateway owner, consistent with the supplied real CLI baseline receipts; no target code was executed during this review. Is this the best way to solve the issue? The adapter uses the existing catalog, plan/apply, consent, and state-owner contracts without creating a competing installer; the type extraction preserves the transport contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 869bbccf8fb8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +197, Tests +347, Docs +14, Other +4. Total +562 across 7 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (5 earlier review cycles)
Reviewed November 10, 2026, 11:00 PM ET / November 11, 2026, 04:00 UTC (Revision 6). |
2273f04 to
040ac0b
Compare
|
@clawsweeper re-review |
4681898 to
194b7be
Compare
194b7be to
f931522
Compare
cd346bc to
9a7dc72
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
An older Gateway rejects the explicit absence precondition before cron.add dispatch. Translate only captured null plus a correlated INVALID_REQUEST with the exact string-field rejection into actionable update-on-Gateway-host and restart guidance. Preserve the null guard and original error cause without retry, fallback, negotiation, or schema changes. Extend the existing native CLI fixture with rejected unprofiled absence and the supported profiled path. Verify no job is committed and only one add is attempted. The older response is contract-derived and fixed at RPC delivery; this is not physical old-Gateway wire proof. Allocate exactly 21 net regression-test LF lines in a separate record, with no shared scalar or unused headroom. Validation: guidance regression red before the repair; all 39 focused tests, production and CLI test types, scoped lint, formatting, mock-export, source-size and exact test-line gates pass.
Use the existing owner-routed catalog, pinned Add plan and apply flow for online ClawHub sources. Preserve separate trust and per-plugin capability consent, native partial results and uncertain outcomes. Refuse offline automation plans before durable effects while retaining plain local Add and read-only previews. Remove the superseded CLI cron adapter and its unused authenticated-preparation and nullable-profile wire expansion. Restore native string-profile behavior and generated protocol output; retain the mechanical type extraction required by the native line-cap gate. Regression coverage includes sibling capability refusal, offline paused jobs and heartbeat, and no replay after an uncertain owner response.
What Problem This Solves
Route published CLI Add through the running state owner for exact-version review, separate consent and apply bound to the reviewed agent ID. Offline Add retains the owned local scheduler and conversation/setup adapters. Local paths keep precedence, online workspace overrides are rejected, and uncertain dispatched requests never fall back locally or replay.
Evidence
Current layer:
db3969bece945c1bd54489c8c142071b6046d8f8. Full atomic candidate:db3969bece945c1bd54489c8c142071b6046d8f8. One fixture-only stability repair is carried at bottom; all seven upper patches and41commit subjects/order are unchanged. No full-main refresh.Landing and rollout
Land all eight layers atomically through the tip after exact-head gates permit. Preserve historical template-contract-194b7bea exactly. Seven unchanged upper patches retain their qualified reviews; bottom receives fresh review after final publication.
ClawHub #4502, Competitor Watch #22 and Activity #197058 are merged. Consumer release, manual backend cutover, new registry publication and live Gateway changes remain separate.