Skip to content

feat(claws): add lifecycle Control UI - #112808

Closed
giodl73-repo wants to merge 3 commits into
openclaw:user/giodl/claws-application-lifecyclefrom
giodl73-repo:user/giodl/claws-pr15-control-ui-read
Closed

giodl73-repo wants to merge 3 commits into
openclaw:user/giodl/claws-application-lifecyclefrom
giodl73-repo:user/giodl/claws-pr15-control-ui-read

Conversation

@giodl73-repo

@giodl73-repo giodl73-repo commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add experimental, read-only Gateway projections for Claw status and doctor findings
  • add a Control UI inventory for lifecycle health and managed/referenced provenance
  • project native first-run bootstrap readiness without exposing BOOTSTRAP.md content or paths
  • keep /claws independent while surfacing it as a gated tab in the Plugins hub
  • omit package paths, config values, file contents, scheduled prompts, digests, and raw diagnostic errors from browser payloads

Product boundary

This is the observation milestone only. It does not add, update, remove, configure, or persist browser-side setup state. The Claws route and hub tab appear only when the connected Gateway advertises both claws.status and claws.doctor; direct RPC calls also fail closed while experimental Claws are disabled.

Native BOOTSTRAP.md remains an agent-chat workflow. The browser receives only pending | complete | modified | unsafe | unknown, and a pending bootstrap makes the Claw require attention.

Stack

Validation

  • Gateway feature-gate and projection tests: 9 passed
  • Control UI navigation, inventory, bootstrap, and Plugins hub tests: 82 passed
  • core and UI typechecks passed
  • Control UI i18n verification and production build passed
  • protocol registry passed; generated Swift and Kotlin protocol outputs are committed
  • targeted core/script oxlint, UI boundary lint, stylelint, docs formatting, oxfmt, and git diff --check passed
  • real schema-v1 proof: applied @awesome-claws/procurement-evaluator, started an experimental Gateway, and rendered the live Claws route in Chromium at 1440x900 and 375x812
  • live proof showed six managed resources, pending first-run setup, zero browser console errors, zero horizontal overflow, and no secret-bearing lifecycle fields
  • final review of the UI diff found no actionable regressions; the same three signed commits were replayed patch-equivalently onto corrected feat(claws): apply schema-v1 profile requirements #115962 head 9fed48bfc462, producing signed head d75678db771f

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Jul 23, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 28, 2026
@clawsweeper

clawsweeper Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 11:00 AM ET / 15:00 UTC.

ClawSweeper review

What this changes

This stacked experimental feature adds read-only claws.status and claws.doctor Gateway projections plus a capability-gated Control UI inventory for Claw lifecycle health, bootstrap state, provenance, and doctor findings.

Merge readiness

⛔ Blocked until real behavior proof is added - 8 items remain

This PR remains open because the review environment could not read the target checkout, so a source-backed correctness, upgrade, and history verdict is not safe. It also carries the protected maintainer label, which requires explicit human handling rather than automated cleanup.

Priority: P3
Reviewed head: d75678db771f2c2c0a96f0ddfb7de106ad361241
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The feature has substantial claimed validation and a coherent read-only boundary, but current-head real-behavior proof and a source-backed review are not available in this run.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: The PR body reports a real Gateway and Chromium run, but the supplied material has no inspectable redacted recording, terminal output, logs, live output, or linked artifact proving the current-head behavior; add redacted evidence before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body reports a real Gateway and Chromium run, but the supplied material has no inspectable redacted recording, terminal output, logs, live output, or linked artifact proving the current-head behavior; add redacted evidence before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 4 items Checkout inspection blocked: The only permitted local inspection command failed before it could read AGENTS.md, source, history, tests, or maintainer notes; therefore this review does not claim local source or Git provenance inspection.
Protected maintainer handling: The supplied PR context labels this draft PR maintainer; the review policy keeps protected-label items open for explicit maintainer judgment.
Stacked prerequisite remains open: The supplied PR context identifies #115962 as an open prerequisite implementing profile-extension lifecycle behavior that this PR projects into the Gateway and UI.
Findings None None.
Security Needs attention Verify lifecycle payload redaction before merge: The proposed Gateway methods project persisted Claw lifecycle data to operator clients. Confirm against the current head that all paths, configuration values, content, integrity data, and raw diagnostics remain excluded across status and doctor payloads.

How this fits together

Claws records portable-agent lifecycle and resource provenance in OpenClaw state. The proposed Gateway methods would redact that state into operator-read payloads consumed by a new Control UI route and Plugins-hub tab.

flowchart LR
  A[Claw lifecycle and provenance state] --> B[Read-only Gateway projections]
  B --> C[Experimental feature gate]
  C --> D[Gateway capability advertisement]
  D --> E[Control UI Claws route]
  E --> F[Operator lifecycle inventory]
Loading

Decision needed

Question Recommendation
Should OpenClaw accept this experimental Claws observation surface in core—including two Gateway protocol methods, persistent provenance additions, and a Control UI route—or keep that lifecycle direction pending the stacked RFC and prerequisite PRs? Sponsor the read-only milestone: Approve the core observation boundary once the stacked prerequisite, redaction review, upgrade proof, and inspectable runtime proof are complete.

Why: This is a new cross-layer product surface rather than a repair to established behavior, and the protected maintainer label prevents an automated product-scope decision.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body reports a real Gateway and Chromium run, but the supplied material has no inspectable redacted recording, terminal output, logs, live output, or linked artifact proving the current-head behavior; add redacted evidence before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Verify lifecycle payload redaction before merge - The proposed Gateway methods project persisted Claw lifecycle data to operator clients. Confirm against the current head that all paths, configuration values, content, integrity data, and raw diagnostics remain excluded across status and doctor payloads.
  • Resolve merge risk (P1) - Merging introduces two new operator-read Gateway projections that expose lifecycle provenance to browser clients; current-head authorization and redaction behavior need a complete source and runtime review.
  • Resolve merge risk (P1) - The feature is stacked on the still-open profile-extension lifecycle PR, so its meaningful behavior and upgrade safety cannot be evaluated independently from that predecessor.
  • Resolve merge risk (P1) - The contribution changes persisted Claw package provenance through additive SQLite columns; fresh-install and existing-database upgrade behavior need maintainable, current-head validation before merge.
  • Resolve merge risk (P1) - The reported live proof is not inspectable in the supplied PR material, so it does not yet establish the current-head browser projection or its secret-redaction boundary.
  • Complete next step (P2) - Protected maintainer handling, unreviewed stacked dependencies, and absent inspectable runtime proof require a human product and security-boundary review rather than an automated repair lane.

Findings

  • [medium] Verify lifecycle payload redaction before merge
Agent review details

Security

Needs attention: The PR adds browser-reachable lifecycle and doctor projections, but local source inspection failed before the current-head authorization and redaction boundary could be verified.

PR surface

Source +2066, Tests +1563, Docs +39, Generated +12, Other +180. Total +3860 across 73 files.

View PR surface stats
Area Files Added Removed Net
Source 49 2339 273 +2066
Tests 18 1568 5 +1563
Docs 1 40 1 +39
Config 0 0 0 0
Generated 2 12 0 +12
Other 3 182 2 +180
Total 73 4141 281 +3860

Review metrics

Metric Value Why it matters
Gateway read surface 2 new methods claws.status and claws.doctor create a browser-reachable operator-read contract that needs redaction and compatibility review.
Persistent provenance fields 6 additive SQLite columns The proposed extension provenance columns affect existing state databases and require upgrade-path confidence.

Stored data model

Persistent data-model change detected: database schema: src/claws/application-schema.test.ts, database schema: src/claws/export.test.ts, database schema: src/claws/export.ts, database schema: src/claws/package-extension-provenance.ts, database schema: src/claws/package-update-provenance.ts, database schema: src/claws/provenance.ts, and 32 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Review the complete stack before merge (recommended)
    Verify the prerequisite lifecycle implementation, existing-state database upgrade, and browser payload redaction together before accepting the new Gateway contract.
  2. Accept the experimental contract deliberately
    A maintainer may accept the new operator-read lifecycle projection after explicitly owning the protocol, persistence, and browser-exposure boundary.
  3. Pause pending product direction
    Do not merge the UI milestone if the core Claws lifecycle and Gateway exposure direction is not yet sponsored.

Technical review

Best possible solution:

Keep the observation UI read-only and experimental, then obtain explicit maintainer sponsorship for the Claws product boundary after reviewing the prerequisite stack, current-head redaction/authorization behavior, additive database upgrade path, and a redacted live Gateway-to-Control-UI proof.

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

Not applicable as a bug reproduction: this PR proposes a new experimental lifecycle observation surface. The reported live run cannot be treated as high-confidence current-head proof because no inspectable artifact was supplied and local review access failed.

Is this the best way to solve the issue?

Unclear. A read-only, capability-gated projection is a plausible design, but the best core boundary cannot be confirmed without reviewing the prerequisite stack, the current Gateway authorization/redaction implementation, and maintainer product direction.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 50771abc6aae.

Labels

Label justifications:

  • P3: This is an experimental feature proposal, not evidence of a current user-facing regression or emergency.
  • merge-risk: 🚨 compatibility: The PR adds Gateway protocol, Control UI routing, and persisted Claw provenance surfaces that existing installations must upgrade through safely.
  • merge-risk: 🚨 security-boundary: The new browser-facing status and doctor projections must be proven to preserve the intended secret and sensitive-path redaction boundary.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports a real Gateway and Chromium run, but the supplied material has no inspectable redacted recording, terminal output, logs, live output, or linked artifact proving the current-head behavior; add redacted evidence before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Verify lifecycle payload redaction before merge
    The proposed Gateway methods project persisted Claw lifecycle data to operator clients. Confirm against the current head that all paths, configuration values, content, integrity data, and raw diagnostics remain excluded across status and doctor payloads.
    Confidence: 0.78

What I checked:

  • Checkout inspection blocked: The only permitted local inspection command failed before it could read AGENTS.md, source, history, tests, or maintainer notes; therefore this review does not claim local source or Git provenance inspection.
  • Protected maintainer handling: The supplied PR context labels this draft PR maintainer; the review policy keeps protected-label items open for explicit maintainer judgment. (d75678db771f)
  • Stacked prerequisite remains open: The supplied PR context identifies feat(claws): apply schema-v1 profile requirements #115962 as an open prerequisite implementing profile-extension lifecycle behavior that this PR projects into the Gateway and UI. (9fed48bfc462)
  • Proof remains non-inspectable: The PR body reports a live Gateway and Chromium run, but the supplied review material contains no inspectable recording, redacted terminal output, logs, or linked artifact for the current head; the previous ClawSweeper review reached the same proof-gate conclusion. (d75678db771f)

Likely related people:

  • giodl73-repo: The supplied PR history attributes all seven listed stacked commits, including the current head, to this contributor; no current-main ownership history could be inspected after the local read failure. (role: stack author; confidence: low; commits: cd3a47759dab, 9fed48bfc462, d75678db771f; files: src/gateway/server-methods/claws.ts, ui/src/pages/claws/claws-page.ts, src/claws/lifecycle-status.ts)

Rank-up moves

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

  • Attach a redacted current-head Gateway-to-Control-UI recording or terminal/live-output artifact that shows status, doctor, feature gating, and absence of sensitive fields.
  • Provide maintainer-visible acceptance of the Gateway/UI/persistence boundary after the open prerequisite stack is reviewed.

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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-07-28T16:13:46.658Z sha 23059f078faa733d32c2ce7d7c38b86fa18336a5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-30T14:23:28.436Z sha e6187a424339f0a821292fdb781fa58b0e85e42b :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-31T03:27:39.940Z sha 637a6acb81523b027149264e852249f566ee458f :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-31T04:14:16.642Z sha 0a163ef :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 30, 2026
@giodl73-repo
giodl73-repo force-pushed the user/giodl/claws-pr15-control-ui-read branch from e6187a4 to 637a6ac Compare July 31, 2026 03:19
@giodl73-repo
giodl73-repo changed the base branch from user/giodl/claws-pr14-portable-agent-settings to user/giodl/claws-application-lifecycle July 31, 2026 03:19
@giodl73-repo
giodl73-repo force-pushed the user/giodl/claws-application-lifecycle branch from 3577836 to 9002871 Compare July 31, 2026 03:21
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Jul 31, 2026
@giodl73-repo
giodl73-repo force-pushed the user/giodl/claws-application-lifecycle branch from 9002871 to 526afb9 Compare July 31, 2026 04:01
@giodl73-repo
giodl73-repo force-pushed the user/giodl/claws-pr15-control-ui-read branch from 637a6ac to 0a163ef Compare July 31, 2026 04:08
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android scripts Repository scripts labels Jul 31, 2026
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

Restacked the same three signed UI commits onto corrected #115962 head 526afb961107; new signed head is 0a163eff2dd5 and the PR is mergeable again.

Restack proof: 91 focused Gateway/UI tests, core and UI typechecks, type-aware Oxlint with 0 findings, git diff --check, and the exact 518/518 env ratchet. The prior live Chromium desktop/mobile proof remains representative because the UI diff is byte-identical; only the predecessor base changed.

@giodl73-repo
giodl73-repo force-pushed the user/giodl/claws-pr15-control-ui-read branch from 0a163ef to d75678d Compare July 31, 2026 14:54
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 31, 2026
@giodl73-repo
giodl73-repo force-pushed the user/giodl/claws-application-lifecycle branch from 526afb9 to 9fed48b Compare July 31, 2026 15:43
@giodl73-repo
giodl73-repo deleted the branch openclaw:user/giodl/claws-application-lifecycle August 8, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant