Skip to content

fix(templates): resolve bundled plugin runtime owners - #196389

Merged
Patrick-Erichsen merged 4 commits into
fix-template-cron-inference-bindingfrom
fix-template-bundled-plugin-runtime-owner
Nov 11, 2026
Merged

Patrick-Erichsen merged 4 commits into
fix-template-cron-inference-bindingfrom
fix-template-bundled-plugin-runtime-owner

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Collect bundled and referenced plugins through their corresponding native runtime owners. Actual Gateway coverage verifies installation, authorization and scheduled-effect refusal after creator revocation.

Evidence

Current layer: 580a297c00417433a996a92b73609c8a68125db0. 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.

  • Model-picker CI diagnosis and paired geometry proof: the test compared edges from different frames during the existing scale0.9→1 animation. Controlled actual-menu geometry reproduces exactCIright707.90625 while simultaneous gaps remain7.2px and8px. The ordinary local baseline passed and is not causal clearance. Move the existing trial-click stability check before both reads; preserve exact<=, long-email, both viewports, target height, keyboard/search/composition and sessions.patch assertions. All3cases pass19.50s; scoped lint/types/format/ratchets and fresh independent actual-diff review pass. Net1insertion/1deletion; no production change, new waits, timeout/tolerance changes, diagnostics or test-line growth.
  • Settings repair #197156 is merged as147d0414a3aacb4b17e38cb3e8dfde7b095493e9 with review, CI, postmerge CI/Workflow Sanity and native closeout complete. Its six stale assertions reproduce on main; corrected three-file suite passes29/29(45.92s), preserving pending admin request/recurrence/approval/navigation checks. It is already retained in this stack.
  • Actual stable11.3 existing-Claw upgrade proof preserves target agent configuration, four workspace files, consent digests and native cold-Gateway effective inventory agents_list only. Canonical schema22→39/row renames and old-authoring guidance are verified. Executed package4deeed is qualified for this tip: only four E2E files and one production comment differ, so Template/runtime behavior inputs are unchanged. Empty package/MCP/cron-reference tables and unrelated default heartbeat cleanup are explicitly qualified. The completed249b723 hosted review accepted this proof with Findings NONE/Before merge NONE.
  • Retained unchanged-input proof: real-Gateway lifecycle/channel7/7, Home route/dock26/26, guest onboarding plus real-Gateway Home7/7, Template schema/planning18/18, sidebar grouping21/21. Inspected guest setup before/after. These are contract-input qualifications, not whole-current-head CI.
  • Previous actual ready CI: all seven upper suites succeeded; bottom failed only the model-picker timing assertion above. All attempts finish before head replacement. Draft/passive SKIPPED suites remain excluded from product proof. Fresh exact-head CI/security and native admission must qualify this candidate. Root owns repairs; autofix is retired.

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.

@clawsweeper

clawsweeper Bot commented Nov 10, 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: L labels Nov 10, 2026
@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR expands Gateway tests for native dependency installation, installation authority, and scheduled effects after creator revocation.

Example: Controller B forces a paused automation installed by paired creator A.

  • Before: Coverage checked installation refusal but did not observe scheduled provider requests and plugin file writes after creator revocation.
  • After: The test observes two provider requests and one file write while authorized, then revokes A and verifies another forced run adds neither effect.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful production-path integration coverage with no identified introduced defect; evidence is harness-based, and historical runs do not qualify the current stack.
Proof confidence 🦐 gold shrimp (3/6) The pinned layer changes tests and allocation records only, so ordinary contributor runtime-proof gating does not apply. Its strongest coverage is an in-process authenticated Gateway with native installation, loopback provider HTTP, and physical plugin effects; the body reports historical passing cases and a negative control, while exact-head qualification remains pending. The inspected screenshots cover UI presentation, and blocked historical log access does not establish or disprove individual case results.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Template dependency installation and scheduled execution must preserve native consent, publication, and creator-revocation guarantees.
Reason: The added scenarios observe distinct production boundaries and retain the earlier scheduling regression; the pinned diff adds no competing production owner or product option.

Merge readiness

✅ Ready for maintainer review

Keep this PR open as useful Gateway integration coverage for the Template stack; no discrete introduced defect was found, and its atomic-stack landing condition remains active.

Priority: P2
Reviewed head: f946e77800615dcda2d06aef2ac0937f530a84fe

Before merge

None.

Findings

None.

Agent review details

How this fits together

Authenticated Template Add requests pass through Gateway admission and native dependency installers, producing ordinary agents, installed resources, and cron jobs whose execution retains creator authority.

flowchart LR
  A[Gateway test client] --> B[Template Add admission]
  B --> C[Native dependency installers]
  B --> D[Cron job owner]
  D --> E[Provider HTTP]
  E --> F[Plugin file effect]
Loading

Technical review

Best possible solution:

Retain this integration coverage alongside the preceding native-installation and cron-authority repairs, then land through the recorded atomic-stack qualification.

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

This is a test-only layer; source inspection confirms the exercised production boundaries, but no target code was executed during this read-only review.

Is this the best way to solve the issue?

Extending the existing Gateway suite is appropriate because the cases cover distinct installers, asynchronous revocation, runtime publication, and actual scheduled effects while removing the internal installer mock.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Gateway installation-authority fixture keeps the original intent (81662c5: The ordinary-agent Add implementation established authenticated installation and revoked-operator refusal; history across the earlier Claws filename confirms that purpose.)
  • Immediate schedule publication keeps the original intent (fix(claws): scheduled Add fails before the new agent is available #178072: Scheduled Add must wait for the new agent to reach the running Gateway before creating its schedules, without a recovery restart.)
  • Ordinary chat before optional setup keeps the original intent (caa978c: Template Add opens durable ordinary chat before optional requirement installation; the updated fixture separates greeting traffic and retains the admitted agent after dependency refusal.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +292, Other +8. Total +300 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 543 251 +292
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 8 0 +8
Total 4 551 251 +300

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The integration coverage protects meaningful installation and scheduled-authority boundaries without changing shipped behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (5 earlier review cycles)
  • reviewed 2026-11-10T02:38:54.508Z sha a4c6938 :: needs changes before merge. :: [P3] Preserve the real-Gateway scheduled Add regression
  • reviewed 2026-11-10T03:21:08.836Z sha 04409d2cfda23e6944c55439c2003b4072903bdf :: needs maintainer review before merge. :: none
  • reviewed 2026-11-10T04:25:17.464Z sha a90e8f0e03e57f3ee6cf959f71ab020e24b92853 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-10T06:22:12.013Z sha 4f73158 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T02:49:53.638Z sha 8c55bf0 :: needs maintainer review before merge. :: none

Reviewed November 10, 2026, 10:59 PM ET / November 11, 2026, 03:59 UTC (Revision 6).

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 10, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the fix-template-bundled-plugin-runtime-owner branch from 04409d2 to a90e8f0 Compare November 10, 2026 04:14
@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 10, 2026
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as draft November 11, 2026 00:51
@Patrick-Erichsen
Patrick-Erichsen force-pushed the fix-template-bundled-plugin-runtime-owner branch from 73395a2 to 92fd846 Compare November 11, 2026 00:51
@Patrick-Erichsen
Patrick-Erichsen force-pushed the fix-template-bundled-plugin-runtime-owner branch from 92fd846 to 8c55bf0 Compare November 11, 2026 02:14
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review November 11, 2026 02:44
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 11, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the fix-template-bundled-plugin-runtime-owner branch from 8c55bf0 to f946e77 Compare November 11, 2026 03:50
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 11, 2026
Extend the existing native Add Gateway plugin row: paired creator A installs a paused Template schedule, controller B runs it through real Responses HTTP and a plugin file effect, revokes A, then forces the unchanged job and observes refusal with no extra effects.

Keep read-only and final-install-policy revocation coverage in the same Gateway. An unrevoked negative control makes four HTTP requests and two physical tool writes before failing the refusal assertion. Allocate exactly 171 net test lines without changing the shared scalar.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L 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