Skip to content

fix(skills): keep workshop revisions atomic - #126485

Merged
steipete merged 5 commits into
mainfrom
steipete/unruffled-dubinsky-708f7b
Aug 20, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/unruffled-dubinsky-708f7b

Conversation

@steipete

@steipete steipete commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where revising a pending Skill Workshop proposal could leave SQLite describing the previous revision while PROPOSAL.md or support files were partially replaced by the new revision after a process interruption. The torn bundle caused inspect/evaluate/apply to reject the proposal until it was recreated.

Why This Change Was Made

Skill Workshop now stages each complete revision as an immutable filesystem generation, exclusively creates and synchronizes every file, atomically publishes the directory, then CAS-commits the proposal record and lifecycle event together before retiring the prior generation. Reads follow the committed generation pointer under the proposal target lease. Existing root-level proposal bundles migrate on their next successful revision; no SQLite schema or protocol version changes are required. One centralized Gateway projection keeps internal generation paths and prepared support metadata behind the existing public proposal schemas.

User Impact

Pending proposal revisions now recover as a complete old or complete new bundle rather than a mixed state. Evaluation and apply no longer wedge after an interrupted revision, existing proposals upgrade without operator action, and tool/Gateway consumers keep their shipped PROPOSAL.md artifact and response contracts.

Evidence

  • Pre-fix public-service regression reproduced the torn revision after the first v2 write: evaluation rejected it with Proposal draft changed without updating proposal metadata.
  • The original focused Workshop revision/service/store suite passed 89/89 before follow-ups.
  • node scripts/run-vitest.mjs src/agents/tools/skill-workshop-tool.list.test.ts src/agents/tools/skill-workshop-tool.projection.test.ts src/agents/tools/skill-workshop-tool.test.ts src/skills/workshop/collection-reconcile.test.ts — 51/51 passed across the affected tool projection and lease tests.
  • node scripts/run-vitest.mjs src/gateway/server-methods/skills.proposals.test.ts packages/gateway-protocol/src/schema/agents-models-skills.test.ts src/skills/workshop/revision-atomicity.test.ts src/skills/workshop/service.test.ts — 101/101 passed across every Gateway lifecycle response, the closed protocol schema, and the revision owner.
  • node scripts/run-vitest.mjs src/skills/workshop/revision-atomicity.test.ts src/skills/workshop/service.test.ts — 55/55 passed after adding explicit file synchronization.
  • Focused and full task changed-path gates passed, including production/test typecheck, lint, dead exports, schema-v9, database-first, and import-cycle guards.
  • pnpm check:docs — passed formatting, Markdown lint, MDX, glossary, 6,526 links, and 1,179 config examples.
  • pnpm build — passed.
  • Authenticated isolated Gateway flow passed: create v1 → separate CLI revise v2 → inspect v2 body and support metadata/content → Gateway evaluate with zero evaluators.
  • Exactly one immutable generation remained after the live revision flow.
  • Direct installed-source inspection confirmed fs-safe's exclusive Root.create, guarded same-root directory move requiring overwrite: true, and repository-owned unsupported-directory-sync policy. It also identified the native-off create fallback's missing file sync; the final generation owner now calls FileHandle.sync() before rename, covered by a new fault boundary.
  • No SQLite table, column, schema-version, or protocol-version change.
  • Exact-head CI follow-ups repaired stale root-path fixtures, deterministic lease-timeout proof, model/Gateway contract projection, and file durability. Final openclaw/ci-gate passed in run https://github.com/openclaw/openclaw/actions/runs/32322373341.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 126485 passed with gate mode hosted_exact_or_recent_parent, reusing exact-head hosted CI; no standalone Testbox lease/run URL was allocated.
  • Production: +414/-212 (net +202); tests: +446/-72; docs: +29/-9. Growth owns synchronized immutable generation publication, CAS/recovery, legacy upgrade handling, and centralized stable public projections while removing duplicate support reads and retirement policy.
  • Fresh autoreview after every source fix: clean, with no accepted/actionable findings.
  • AI-assisted: yes.

@clawsweeper

clawsweeper Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 20, 2026 00:02
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation r: skill Auto-close: skills should be published on ClawHub, not added to core. size: L maintainer Maintainer-authored PR labels Aug 20, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 20, 2026
@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 19, 2026, 9:53 PM ET / August 20, 2026, 01:53 UTC.

ClawSweeper review

What this changes

This PR stages each Skill Workshop revision as a flushed immutable generation, commits its SQLite pointer and lifecycle event together, and keeps tools and Gateway responses on logical proposal paths.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No blocking patch defect found. The immutable-generation design repairs the in-place write/SQLite mismatch at the persistence owner and preserves public logical paths, but exact-head CI is still incomplete and local dependency source was unavailable for independent fs-safe contract confirmation.

Priority: P1
Reviewed head: 8c0aaa0428f233e96abdb13d019c1260d2d044ad

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has focused owner-boundary and contract coverage with no concrete correctness finding; exact-head CI remains the final merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This is maintainer-authored; the PR body nevertheless records an authenticated isolated Gateway create/revise/inspect/evaluate flow and fault-boundary evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is maintainer-authored; the PR body nevertheless records an authenticated isolated Gateway create/revise/inspect/evaluate flow and fault-boundary evidence.
Evidence reviewed 7 items Current-main failure boundary: Current main writes PROPOSAL.md and support files in place before its SQLite transaction, so an interruption can expose files that no longer match the persisted record.
Generation publication owner: The PR creates and syncs every staged file, moves the complete generation into place, then synchronizes the generations directory before the record can reference it.
Atomic record transition: The revision path stages the new generation, CAS-commits the record and required event, then retires old generations only after commit.
Findings None None.
Security None None.

Live Verification

Command: pnpm openclaw skills workshop --help

Result: PASS (completed)

pnpm openclaw skills workshop --help
runner@runnervm76f27:/tmp/clawsweeper-live-proof-126485-v2Iga9/target$ pnpm openclaw skills workshop --help
$ node scripts/run-node.mjs skills workshop --help
pnpm openclaw skills workshop --help
[openclaw] Building TypeScript (dist is stale: missing_build_stamp - build stamp missing).
[openclaw] Building bundled plugin assets.
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.96 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 107.93 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[tsdown-build] invocation 1/2 finished in 0.7s
node_modules/web-tree-sitter/web-tree-sitter.js (2343:30) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2343:31 ]
      │
 2343 │           ASM_CONSTS[start] = eval(func);
      │                               ──┬─
      │                                 ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2366:32) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2366:33 ]
      │
 2366 │           moduleExports[name] = eval(func);
      │                                 ──┬─
      │                                   ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/playwright-core/lib/coreBundle.js (65821:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65821:29 ]
       │
 65821 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/playwright-core/lib/coreBundle.js (65828:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65828:29 ]
       │
 65828 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

[tsdown-build] invocation 2/2 finished in 14.0s
[plugin-control-plane-loads] verified 36 built modules with native require and checked doctor closures
runtime-postbuild: 10 phases completed in 4292ms (slowest: built plugin control-plane loads 3574ms)
│
◇

OpenClaw 2026.8.1 (8c0aaa0) — All your chats, one OpenClaw.

Usage: openclaw skills workshop [options] [command]

Manage pending skill proposals

Options:
  --agent ‹id›    Target agent workspace (defaults to cwd-inferred, then default agent)
  -h, --help      Display help for command

Commands:
  apply           Apply a pending skill proposal
  evaluate        Evaluate the exact current skill proposal through Gatew
… output truncated …

Assertions:

  • PASS expect_output: Manage pending skill proposals

How this fits together

Skill Workshop persists pending skill proposals in SQLite with their draft bundle on disk. CLI, agent tools, and Gateway handlers inspect, evaluate, or apply the committed bundle while exposing stable proposal artifacts to users and clients.

flowchart LR
A[Revision request] --> B[Stage immutable bundle]
B --> C[Flush files and publish generation]
C --> D[Commit SQLite record and event]
D --> E[Read committed generation]
E --> F[Tool and Gateway responses]
Loading

Before merge

  • Resolve merge risk (P1) - The bug fix adds production +202 net lines; the owner-boundary design appears justified by durable staging, recovery, legacy upgrade, and stable projections, but it remains a substantial persistence refactor.
  • Resolve merge risk (P1) - Exact-head CI is still running, and the fs-safe create/move contract could not be independently read in this checkout.
  • Complete next step (P2) - This protected member-authored PR needs normal maintainer confirmation after exact-head CI and direct dependency-contract validation; no concrete repair-lane defect remains.
Agent review details

Security

None.

PR surface

Source +202, Tests +374, Docs +20. Total +596 across 28 files.

View PR surface stats
Area Files Added Removed Net
Source 18 414 212 +202
Tests 9 446 72 +374
Docs 1 29 9 +20
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 28 889 293 +596

Review metrics

Metric Value Why it matters
Production versus test delta production +414/-212 (net +202); tests +446/-72; docs +29/-9 The persistence refactor grows production code substantially, so its durability and compatibility evidence matters before merge.

Stored data model

Persistent data-model change detected: serialized state: src/agents/tools/skill-workshop-tool.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete exact-head durability validation (recommended)
    Require green exact-head CI and direct confirmation of the installed fs-safe create/move behavior before merging the persisted-pointer migration.
  2. Pause for environment recovery
    Pause this PR if the fs-safe dependency contract cannot be inspected before the merge decision.

Technical review

Best possible solution:

Keep one generation-publication owner and stable logical PROPOSAL.md projections, then require exact-head CI plus a direct fs-safe contract check before merge.

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

Yes. Current main writes the proposal bundle in place before committing SQLite, and the PR’s fault-boundary suite targets each interruption point in that sequence.

Is this the best way to solve the issue?

Yes, subject to final dependency and CI confirmation. Publishing a complete generation before the CAS record update fixes the state mismatch at its producer rather than masking it in readers.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 53fb8220cee8.

Labels

Label justifications:

  • P1: An interrupted revision can leave a pending proposal unusable for inspection, evaluation, and apply.
  • merge-risk: 🚨 compatibility: The persisted draftFile changes from a logical path to an internal generation pointer and relies on projections to preserve existing clients.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is maintainer-authored; the PR body nevertheless records an authenticated isolated Gateway create/revise/inspect/evaluate flow and fault-boundary evidence.

Evidence

What I checked:

  • Current-main failure boundary: Current main writes PROPOSAL.md and support files in place before its SQLite transaction, so an interruption can expose files that no longer match the persisted record. (src/skills/workshop/store.ts:259, 53fb8220cee8)
  • Generation publication owner: The PR creates and syncs every staged file, moves the complete generation into place, then synchronizes the generations directory before the record can reference it. (src/skills/workshop/proposal-generation.ts:62, 8c0aaa0428f2)
  • Atomic record transition: The revision path stages the new generation, CAS-commits the record and required event, then retires old generations only after commit. (src/skills/workshop/store.ts:305, 8c0aaa0428f2)
  • Public contract projection: Gateway response projections replace the internal generation path with PROPOSAL.md, matching the still-closed protocol schema; lifecycle-wide Gateway tests cover create, inspect, revise, evaluate, apply, reject, and quarantine. (src/gateway/server-methods/skills.ts:91, 8c0aaa0428f2)
  • Fault-boundary coverage: The new regression suite injects failures from staging through post-commit cleanup and verifies the prior or committed revision remains inspectable and evaluable. (src/skills/workshop/revision-atomicity.test.ts:216, 8c0aaa0428f2)
  • Current-main provenance: Available current-main blame attributes the pre-change in-place proposal writer to the current source baseline commit; shallow/promisor history prevented a deeper original-feature trace. (src/skills/workshop/store.ts:246, ee6cab4a2e4e)

Likely related people:

  • Vincent Koc: Current-main blame on the original in-place proposal writer attributes the affected persistence boundary to the available source baseline. (role: current-main source baseline contributor; confidence: low; commits: ee6cab4a2e4e; files: src/skills/workshop/store.ts, src/skills/workshop/service.ts)

Rank-up moves

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

  • Wait for exact-head CI to complete green.
  • Confirm the installed @openclaw/fs-safe create and move contract used by the final durability repair.

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-08-20T00:09:33.686Z sha dad94e0 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-20T00:34:31.577Z sha 00e5d72 :: needs changes before merge. :: [P1] Project generation paths out of Gateway proposal records
  • reviewed 2026-08-20T00:50:31.960Z sha 0528fed :: needs changes before merge. :: [P1] Project internal draft paths out of all Gateway proposal results
  • reviewed 2026-08-20T01:20:47.278Z sha 8661aec :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XL and removed size: L labels Aug 20, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The head moved to address exact-head CI findings and preserve the shipped model-facing PROPOSAL.md artifact contract. The updated PR body includes the failure diagnosis, focused passing tests, revised LOC split, and clean follow-up autoreview.

@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. 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 P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 20, 2026
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Aug 20, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Final head 0528fed5ec4b204c35855fa22eaa0b7d5f6e7e19 adds the Gateway boundary projection required by the existing closed inspect schema. The PR body now records the exact failure, 47/47 focused Gateway/protocol tests, final LOC split, and clean autoreview.

@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 8661aecd703ffaadfee500eccb5f07680dcdb22c applies the P1 and both rank-up moves: one shared Gateway proposal-record projection now covers create, update, revise, inspect, evaluate, apply, reject, and quarantine, with lifecycle-wide PROPOSAL.md assertions. The requested 101-test suite and exact changed gate pass; fresh autoreview is clean.

@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed 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. labels Aug 20, 2026
@steipete

steipete commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Land-ready proof for 8c0aaa0428f233e96abdb13d019c1260d2d044ad:

  • Pre-fix public-service regression: after the first v2 file write, evaluation failed with Proposal draft changed without updating proposal metadata.
  • Original focused Workshop revision/service/store suite — 89/89 passed before follow-ups.
  • node scripts/run-vitest.mjs src/agents/tools/skill-workshop-tool.list.test.ts src/agents/tools/skill-workshop-tool.projection.test.ts src/agents/tools/skill-workshop-tool.test.ts src/skills/workshop/collection-reconcile.test.ts — 51/51 passed.
  • node scripts/run-vitest.mjs src/gateway/server-methods/skills.proposals.test.ts packages/gateway-protocol/src/schema/agents-models-skills.test.ts src/skills/workshop/revision-atomicity.test.ts src/skills/workshop/service.test.ts — 101/101 passed.
  • node scripts/run-vitest.mjs src/skills/workshop/revision-atomicity.test.ts src/skills/workshop/service.test.ts — 55/55 passed after the durability fix.
  • Focused and full task changed-path gates passed, including production/test typecheck, lint, dead exports, schema-v9, database-first, and import-cycle guards.
  • pnpm check:docs — passed formatting, Markdown lint, MDX, glossary, 6,526 links, and 1,179 config examples.
  • pnpm build — passed.
  • Fresh autoreview after every source follow-up — clean, with no accepted/actionable findings.
  • Exact-head CI: openclaw/ci-gate passed in run https://github.com/openclaw/openclaw/actions/runs/32322373341. Earlier heads exposed and led to repairs for stale root-path fixtures, lease-test clock assumptions, public path/schema projection, and file durability; one compact shard ended by SIGKILL without an assertion failure before a later green run.
  • Native prepare: OPENCLAW_TESTBOX=1 scripts/pr prepare-run 126485 passed with gate mode hosted_exact_or_recent_parent, reusing exact-head hosted CI. No standalone Testbox lease/run URL was allocated.
  • Authenticated real flow passed on a session-owned isolated Gateway with a generated local token and non-default port: create v1 → separate CLI revise v2 → inspect v2 body plus support metadata/content → Gateway evaluate with zero evaluators. Exactly one immutable generation remained.
  • ClawSweeper's P1 and every Rank-up moves: item are addressed. Direct installed-source inspection confirmed fs-safe's exclusive create and guarded directory move contracts, and the final head explicitly syncs each generation file before directory publication.
  • LOC: production +414/-212 (net +202); tests +446/-72; docs +29/-9.
  • No SQLite table, column, schema-version, or protocol-version bump.

Proof gaps: directory-sync-unsupported platforms retain atomic rename/process-interruption safety but do not claim power-loss durability for the directory entry. The authenticated Gateway evaluation used zero installed evaluators; evaluator behavior itself is unchanged and covered by existing suites.

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Final head 8c0aaa0428f233e96abdb13d019c1260d2d044ad closes the remaining rank-up evidence gap. Direct inspection of the installed @openclaw/fs-safe source confirmed exclusive Root.create and guarded directory move behavior, and also showed OpenClaw's native-off create fallback did not itself sync file contents. The generation owner now reopens each exclusively created file through the root capability, calls FileHandle.sync(), and only then publishes the directory. The new fault boundary plus 55 focused tests, changed gate, and fresh autoreview pass.

@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete
steipete merged commit e001542 into main Aug 20, 2026
229 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the steipete/unruffled-dubinsky-708f7b branch August 20, 2026 02:03
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* fix(skills): keep workshop revisions atomic

* fix(skills): keep proposal artifact paths stable

* fix(gateway): preserve proposal inspect schema

* fix(gateway): hide proposal generation paths

* fix(skills): sync proposal generation files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling 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. P1 High-priority user-facing bug, regression, or broken workflow. r: skill Auto-close: skills should be published on ClawHub, not added to core. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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