Skip to content

refactor(ui): present plugin consent inspection with Solid boundaries - #180218

Merged
steipete merged 4 commits into
mainfrom
solid2/w-s2-plugin-consent-read
Oct 22, 2026
Merged

steipete merged 4 commits into
mainfrom
solid2/w-s2-plugin-consent-read

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Whole assigned scope semantic checkpoint, 2026-10-22. These are source-audited dispositions, with unlanded work counted as outstanding. Component classifications use the retained 588-file / 113,333-LOC census at 64cc7173c662; later verified merges and replacement PRs update disposition, not that denominator. This is not a new current-main raw AST scan.

Components: checklist item Adopted on main Named exception Unlanded Follow-up Absent: semantic / census
1. Native handlers 5 6 0 0 40 / 537
2. Lifecycle 10 32 2 1 13 / 530
3. Async reads 18 103 1 0 27 / 439
4. Mutations 13 98 2 0 35 / 440
5. Code splitting 11 26 0 0 40 / 511
6. Structured state 8 16 1 0 29 / 534
7. JSX 15 1 2 0 31 / 539
8. Context 4 7 0 0 42 / 535
9. Sibling loading 2 1 0 0 48 / 537
10. Owner APIs 0 7 0 0 43 / 538

Page-family outstanding adoptions (columns 1–10 follow the checklist):

Family 1 2 3 4 5 6 7 8 9 10 Status / allowed exceptions
Apps 0 0 1 0 0 0 0 0 0 0 #179946 implemented; native registration blocker. Registration/discovery authority remains plain.
Approvals 0 0 0 0 0 0 0 0 0 0 Component lifecycle landed #179744; native approval/request authority retained.
Debug 0 0 0 0 0 0 0 0 0 0 Component lifecycle landed #179744; existing diagnostics request owner retained.
Custodian 0 0 0 0 0 0 0 0 0 0 Read landed #179845; surface lifecycle landed #179986. Foreign-DOM ownership retained.
Profile 0 0 1 3 0 0 0 0 0 0 Identity read #180036 implemented/open. Three re-audited action candidates: display name, avatar, coauthor consent; no synchronous presentation-retirement receipt (details below).
Personal instructions 0 0 0 0 0 0 0 0 0 0 Existing native read/action; #180014 is test-only/open with native registration blocker.
Devices 0 0 2 11 0 0 0 0 0 0 #180016 merged as 433146c. Three allowed silent reads: presence/system info/environments. Execution-approval and shared configuration-binding read slots are implemented in open #180285; both stay outstanding until merge. Eleven action flows mapped below, including alias delegated to shared InputDialog.
Cron scratch 0 0 1 2 0 0 0 0 0 0 Store adoption landed #179976; native read #180116 implemented/open. Two re-audited action candidates: save/remove; cleanup-only retirement cannot release a parked action.
Logbook 0 0 2 4 0 0 0 0 0 0 Timeline #180074 and keyframe #180098 implemented/open. Four re-audited action candidates with owner busy presentation; model cleanup nulls the client, but no synchronous route-retirement receipt exists.
Question 0 0 0 0 0 0 0 0 0 0 Two explicitly accepted native-ID/title/focus read-status owners. Native ID and prompt-decision lifetime retained; no new abstraction solely for readiness syntax.
Search 0 0 1 0 0 0 0 0 0 0 #180013 implemented/open; parent implementation audited: native completion slot + diagnostic action; accepted result/model snapshots remain plain owner values, not a second fetch model or immutable edit store.
Plural Plugins 0 0 4 0 0 0 0 0 0 0 Installed+catalog detail #180231 implemented/open; consent #180218 (root); config/schema #180258 (implemented/open). Two allowed silent enrichments: tools metadata and remote catalog metadata. Existing synchronous authorization/request/confirmation custody retained.

Pages retain 12 pending read-family adoptions and 20 action flows requiring disposition (Profile3, Scratch2, Logbook4, Devices11). Seven named silent-read exceptions remain: Devices3, Question2, Plugins2. Missing retirement promises and plain owner authority alone are not exceptions. External page families remain with their named active PR owners; their unlanded work is not claimed complete.

App / lib (excluding reactive) / plugins / API item Unassigned debt Assigned outstanding Allowed survivor
1. Native handlers 0 0 Current-handler cutover merged
2. Lifecycle 0 0 11 primitive cleanups: app3/lib5/plugins3
3. Async reads 0 0 Auth #180049 merged e168567
4. Mutations 0 0 One SDK contribution family: arbitrary intermediate/results and overlapping invocations have no generic optimistic result or saving affordance
5. Code splitting 0 0 Service/startup/capability imports retain their operation boundary
6. Structured state 0 0 Two shallow callable-value cells retain identity
7. JSX 0 0 Bridge cutover merged
8. Context 0 0 No throw-only wrapper
9. Sibling loading 0 0 Independent owner readiness has no demonstrated coordination contract
10. Owner APIs 0 Shell #179478: 1 runWithOwner 11 foreign-DOM calls: lib4/plugins7

Component details are in the current component-survivor-summary; page details are in solid2-pages-semantic-final-checkpoint. Open component checkpoints, Palette follow-up, Login, Discovery, Logs, page read PRs, and the 20 page actions remain work. Different classification denominators are deliberately not added together.

What Problem This Solves

Plugin consent inspection consumes the existing owner's completion receipt under native Loading and Errored boundaries. Closing or replacing the dialog retires presentation immediately; late results cannot reopen it. Synchronous Gateway identity, approval-token and mutation checks remain in the owner. Retry places loading outside the error boundary so the pending state replaces the prior error.

A late inspection could also rebuild the lifecycle action buttons while an uninstall confirmation was open, leaving its saved focus target detached. The lifecycle renderer is now a stable component with reactive props and stable handlers. The same Uninstall DOM node survives metadata updates and remains a valid return-focus target.

Touched-file checklist

Item Before After
1 Incorrect native handler bindings 0 0; handlers read live props
2 Component teardown candidates 0 0; synchronous consent primitive cleanup retained
3 Manual consent read presentation 1 0; owner receipt beneath Loading/Errored
4 Mutation authority Existing owner Same owner; no policy moved
5 Component loaders 0 0; lazy boundary unchanged
6 Editable copied collection signals 0 0; artwork outcomes remain resource-keyed
7 Handwritten createComponent calls 0 0; plain lifecycle render helper becomes stable JSX component
8 Throw-only context wrappers 0 0
9 Sibling loading gaps 0 0; one inspection region
10 Non-adapter owner APIs 0 0

Evidence

Head 48ed9f330af673591912ad23a05e79879d61a596 includes exact main 6c00e67f5703c85f2aea88cf79f7ff702821fbb5; main's landed artwork lifecycle cleanup is retained.

Proof Result
Original directly touched tests All 23 cases have passing proof; the failing retry case passed after the boundary nesting fix
Late-inspection focus regression New deterministic DOM-identity case failed before repair; all six lifecycle cases passed after repair
Final UI typecheck / scoped lint / format Passed
Independent review Initial five-file review and subsequent three-file focus repair review scoped-clean through P2; focus reviewer assessed supplied source without independent execution
Production builds / strict comparison Both builds passed on Node 26.12.1/pnpm 12.15.0; strict comparison: zero violations/warnings. Startup 316,686 → 316,707 B (+21), 7 JS requests; CSS 40,894 B / 1 request unchanged. Chat 1,437,427 → 1,437,457 (+30); New Session 1,015,016 → 1,015,037 (+21).
Production Knip Exact base and head both exit 1 with the same 13 heartbeat files; full output is byte-identical (SHA-256 0ec893790beb14caa4f097a177380749978d9ebed28d7a75700fd3df1a7af3fd). No UI findings or new ignores.
Full replacement-head CI 39722179578 passed on 48ed9f330af673591912ad23a05e79879d61a596
Production LOC / tests 2,210 → 2,279 (+69); 1,336 → 1,395 (+59) across the current eight-file PR delta

CI 39713674689 failed Control UI plugin lifecycle > keeps keyboard focus on the settings page after canceling and confirming removal. Exact original-base and original-head replays both passed; neither is an inherited-failure qualification. The deterministic late-inspection test reproduces the detached-button cause, and full ci:full run 39722179578 now passes on replacement head 48ed9f330af673591912ad23a05e79879d61a596. No inherited CI waiver is requested.

The extra production lines implement the inspection completion/retirement contract and stable component boundary. They add no request, state authority, dependency, host tag, class or eager import.

Visual proof

The six previously inspected synthetic-only Workboard captures at 1280×1000 remain the visual proof for the consent read migration. Matching initial/error/ready pairs are byte-identical. Retry, disabled approval, close during a held read and ignored late completion were exercised. These images predate the focus repair/current main integration; the new DOM-identity regression supplies the additional focus evidence.

State Before After
Initial Before initial After initial
Error Before error After error
Ready Before ready After ready

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T04:27:18.504233Z 48ed9f3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR presents plugin consent inspection through Solid Loading and Errored boundaries using completion receipts from the existing owner.

Example: Enable Workboard v1.2.3 when capability inspection fails.

  • Before: Manual branches show the inspection error and Try again button while approval stays disabled.
  • After: Solid boundaries show the same states, and retiring a pending inspection releases its presentation.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, owner-approved refactor with inspected browser parity and useful cancellation coverage; required UI CI remains red without a proven attribution.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after built-browser screenshots show Workboard v1.2.3 loading, inspection failure with retry, and ready capability review with matching presentation; the body also records held-retry cancellation and disabled-approval checks with no page errors.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: The consent dialog needs to preserve loading, retry, cancellation, and approval behavior as its inspection presentation adopts Solid boundaries.
Reason: The maintainer-authored direction matches the established Solid migration and keeps approval authority in its existing owner.

Merge readiness

✅ Ready for maintainer review

Keep open: this owner-approved refactor preserves consent ownership and has no identified introduced defect; the required UI check still has an unclassified focus-restoration failure.

Priority: P3
Reviewed head: bfef8e1025d27eb766209ea3f7053742220b5c27

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Plugins page requests capability inspection from the Gateway, presents the admitted result in a consent dialog, and passes explicit approval back through the existing mutation owner.

flowchart TD
  A[Plugins page] --> B[Consent owner]
  B --> C[Gateway inspection]
  C --> B
  B --> D[Completion receipt]
  D --> E[Solid consent dialog]
  E --> B
  B --> F[Gateway mutation]
Loading

Technical review

Best possible solution:

Retain the owner-backed completion receipt and native presentation boundaries once the required UI check is resolved or its failure is independently attributed.

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

This is a refactor rather than a reported product bug; source inspection establishes the manual presentation path on main, and supplied browser captures exercise its replacement.

Is this the best way to solve the issue?

The change follows the existing owner-receipt pattern, removes the manual presentation branches, and preserves synchronous admission; no unnecessary competing owner or test-only production seam was found.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Consent inspection, approval, and retirement keeps the original intent (0dbd5c8: Expose artifact-bound capability review before plugin authority is granted.)
  • Solid rendering and synchronous state ownership keeps the original intent (1c7dfd6: Move page presentation into Solid while retaining synchronous request admission, consent identity, and mutation authority.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +66, Tests +39. Total +105 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 95 29 +66
Tests 2 39 0 +39
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 134 29 +105

Review metrics

Metric Value Why it matters
Production versus test growth Production +66 net lines; tests +39 net lines Growth provides the owner-held completion/retirement contract and native boundaries, plus one distinct held-retry cancellation scenario.

Labels

Label changes:

  • add P3: This is a behavior-preserving presentation refactor with no established user-facing regression.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a behavior-preserving presentation refactor with no established user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Classify the settings-removal focus failure against the base before landing.

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.

Reviewed October 21, 2026, 11:21 PM ET / October 22, 2026, 03:21 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…openclaw#180218)

* refactor(ui): render plugin consent inspection with Solid boundaries

* fix(ui): retain plugin lifecycle controls during inspection

* chore(ui): remove retired artwork cleanup import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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