Repository navigation
Create Claw-managed workspace files - #101973
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 20, 2026, 5:17 PM ET / 21:17 UTC. Summary PR surface: Source +469, Tests +464, Docs +24, Generated +26. Total +983 across 11 files. Reproducibility: not applicable. This PR proposes a new experimental lifecycle rather than reporting broken established behavior. The supplied isolated CLI transcript and lifecycle E2E describe the intended after-fix path. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Have the assigned owner decide whether to sponsor the experimental Claws lifecycle as a coherent staged feature, then land the reviewed stack in dependency order with the generated SQLite schema and workspace recovery contract validated on the composed head. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a new experimental lifecycle rather than reporting broken established behavior. The supplied isolated CLI transcript and lifecycle E2E describe the intended after-fix path. Is this the best way to solve the issue? Unclear pending maintainer sponsorship. The branch presents a coherent bounded workspace-file owner slice, but the best solution depends on whether OpenClaw wants to own the full persistent Claws lifecycle in core. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 21bfc75648d1. Label changesLabel justifications:
Evidence reviewedPR surface: Source +469, Tests +464, Docs +24, Generated +26. Total +983 across 11 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (23 earlier review cycles; latest 8 shown)
|
1034c49 to
da3e4b5
Compare
a5f8ce0 to
a78cd1f
Compare
c7ef343 to
a9dfef1
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
a9dfef1 to
780d0ca
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
bea0e3f to
6b9d9fd
Compare
5d2dea5 to
3e49e96
Compare
|
Updated #101973 at What changed:
Real behavior proofBehavior or issue addressed: Real environment tested: Exact steps or command run after this patch:
Evidence after fix:
Observed result after fix: What was not tested: @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
3e49e96 to
b464532
Compare
Real behavior proofBehavior or issue addressed: Real environment tested: Exact steps or command run after this patch:
Evidence after fix: Observed result after fix: What was not tested: |
|
@clawsweeper please re-review current head b46453290b3ff3f7fca1d435dd881c4879e8d525a. The branch is restacked on the fixed #101755 head and proof is updated above. |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: please re-review current head b46453290b3ff3f7fca1d435dd881c4879e8d525a. The branch is restacked on the fixed #101755 head and proof is updated above. |
|
Correction: current #101973 head is |
|
ClawSweeper assist: A full correctness review is needed. The requested SHA Evidence:
Suggested next action: Use Source: #101973 (comment) |
31caeb0 to
f7a98b1
Compare
b464532 to
1f5536a
Compare
|
Signed-history proof carry-forward:
The rewrite only compacted iterative fix commits and replaced commit identity/signatures; the PR's source tree and diff are unchanged. The existing Real behavior proof remains applicable. This attestation does not claim a new runtime execution; fresh CI is validating the rewritten SHA. |
|
Independent review refresh applied at |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: Create Claw-managed workspace files This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: Create Claw-managed workspace files This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Merged via squash.
|
Summary > Signing-history note (2026-07-19): signed-history head
bfe0787f5e34is a commit-history-only rewrite of previously tested heada03d921805e8; both resolve to tree71a06269f7bc. Existing behavior evidence remains source-equivalent. This note does not claim a new runtime execution. Implements the third RFC #27 slice, stacked on #101755: - Creates canonical bootstrap files and supportingworkspace.filesonly inside the new Claw agent workspace. - Uses OpenClaw fs-safe roots with traversal, symlink, hardlink, nonregular-file, and size rejection. - Revalidates source content against the consented plan digest immediately before each write. - Uses create-only writes and never overwrites pre-existing content. - Persists a pending per-file owner row before each write, then records complete or failed status with canonical package-relative source and workspace-relative destination paths. - Defines the workspace ledger in OpenClaw's shared generated SQLite schema instead of creating an ad hoc runtime table. - Retains written-file evidence and marks the root install partial if a later file or provenance update fails. - Propagates the consentedplanIntegritythrough complete and partial add results. Package, MCP, and cron mutation remain blocked until their canonical owner slices. No declared component is silently skipped. ## Stack - RFC: openclaw/rfcs#27 - Depends on: #101328 schema/source identity/read-only plan - Depends on: #101755 consented agent/workspace creation and root provenance - This PR: confined workspace files, hashes, and per-file ownership - Next: #102228 skill/plugin package owners ## Validationtext pnpm exec vitest run src/claws/workspace.test.ts src/claws/provenance.test.ts \ src/cli/claws-cli.test.ts src/state/openclaw-state-db.test.ts # passed node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts \ src/claws/lifecycle.e2e.test.ts # lifecycle E2E passed pnpm exec oxlint src/claws/add.ts src/claws/workspace.ts \ src/claws/workspace.test.ts src/claws/lifecycle.e2e.test.ts # 0 warnings, 0 errors pnpm tsgo:core pnpm tsgo:test:src git diff --check # passedThe real CLI E2E previews the workspace Claw, applies the exact emitted plan in the same isolated state directory, and verifiesSOUL.md,HEARTBEAT.md, andreference/policy.mdplus their complete SQLite owner rows. Codex review of the final uncommitted patch completed with no actionable findings. ## Documentation Extends/cli/clawswith package-side workspace sources, create-only writes, per-file provenance, and drift-safe retries.