Repository navigation
feat(claws): adopt portable profiles and native bootstrap - #115237
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 7, 2026, 6:39 AM ET / 10:39 UTC. ClawSweeper reviewWhat this changesThe PR replaces the experimental Claw profile pointer with Merge readinessKeep open. Current main still uses the legacy profile-pointer contract and has not absorbed this experimental lifecycle work; the prior bootstrap-publication blocker is fixed, but maintainer confirmation of the package-contract change and exact-head proof remain before merge. Priority: P2 Review scores
Verification
How this fits togetherClaw packages are parsed into consented agent and workspace changes, then recorded in the shared state database for status, update, removal, and export. This PR adds an OpenClaw-specific profile and first-run bootstrap input to that lifecycle. flowchart LR
P[Claw package] --> R[Safe package reader]
R --> L[Consented lifecycle plan]
L --> B[Seed first-run bootstrap]
B --> A[Publish agent configuration]
A --> D[State database provenance]
D --> O[Status update remove export]
Decision needed
Why: The bootstrap ordering repair is sound, but the permanent experimental package contract and its upgrade policy need maintainer intent. Before merge
Agent review detailsSecurityNone. PR surfaceSource +691, Tests +858, Docs +18, Generated +2. Total +1569 across 35 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Confirm the experimental profile migration policy, rebase onto current main, and provide a redacted exact-head lifecycle transcript before landing the canonical profile and bootstrap lifecycle. Do we have a high-confidence way to reproduce the issue? Yes for the prior ordering defect: the exact-head regression test pauses seeding and verifies the agent cannot be published first. The current-head CLI proof itself was not available in the supplied evidence. Is this the best way to solve the issue? Unclear: seeding before publication is the correct owner-boundary repair, but the profile migration policy is a maintainer product decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f4387b7a5eff. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (32 earlier review cycles; latest 8 shown)
|
a361361 to
e97a6b7
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
e97a6b7 to
2c111eb
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Design update: this draft is superseded in its current structured setup-v2 form by RFC #52 at head �b9d461 and the organized schema-v1 sidecars in RFC #48.\n\nThe accepted direction keeps Claw schema v1 and uses package-root BOOTSTRAP.md through OpenClaw's native seed-once first-run lifecycle. We are not carrying typed setup inputs, template rendering, persisted answers, or personalization reconciliation into the launch contract. This PR remains draft as design history and should not be merged in its current form. |
2c111eb to
470d7ff
Compare
|
Merged current The visible PR diff remains the Claws/native-bootstrap work plus its required shared-state additive migration coverage. The additional upstream files came from Local proof on current head:
Maintainer acceptance for the experimental Claws v1 package-profile/native-bootstrap contract is posted here: #115237 (comment)
|
|
Merged current The visible PR diff remains the Claws/native-bootstrap work plus its required shared-state additive migration coverage. The additional upstream files came from Local proof on current head:
Maintainer acceptance for the experimental Claws v1 package-profile/native-bootstrap contract is posted here: #115237 (comment)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Dependency graph guard clearedThis PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh
|
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Merged via squash.
|
Related: OpenClaw RFC #48, OpenClaw RFC #52
Scope
This PR adds the first slice of the revised experimental Claws application lifecycle behind
OPENCLAW_EXPERIMENTAL_CLAWS=1.It defines how a portable Claw package can describe OpenClaw-specific runtime settings and native first-run bootstrap content without making those details part of the portable manifest core.
What This Covers
profiles/openclaw.yml.BOOTSTRAP.mdas native seed-once onboarding content.claws addplanning.workspace.filesand managed-file lifecycle semantics.Schema version 1 remains the launch contract for this slice.
Maintainer Contract
Per maintainer direction, OpenClaw owns
profiles/openclaw.ymlas the conventional OpenClaw package profile path and rejects retiredmetadata.openclaw.configpointers. The portableCLAW.mdmanifest stays harness-neutral; harness-native settings live in conventional package-local profile files.User Impact
With the experimental flag enabled, operators can inspect, add, status, update, and remove Claws that carry:
CLAW.mdmetadata;All mutations remain consented through
claws add --dry-run/--plan-integrity, and status/remove continue to respect OpenClaw ownership and digest checks.Safety Model
Evidence
Validated on WSL2 Ubuntu with Node 24.15.0. Current PR head:
cf7e57f6e3f3495ba21f276bbb1109f3190460ef.Passed:
git diff --check origin/main...HEADoxfmt --checkacross 27 PR filesoxlint --deny-warningsacross 25 non-generated TypeScript PR filesnode scripts/run-vitest.mjs src/claws/bootstrap.test.ts src/agents/workspace-state-store.test.ts src/claws/openclaw-profile.test.ts src/cli/claws-cli.test.ts --reporter=dotpnpm db:kysely:checkpnpm check:max-lines-ratchet --base origin/mainpnpm deadcode:dependenciesHOME,OPENCLAW_CONFIG_PATH,OPENCLAW_HOME, andOPENCLAW_STATE_DIRalready-seededandseeded, and target digest matched the consented source digestKnown caveat:
pnpm tsgo:corecurrently fails onorigin/main-owned boundary-file type errors outside this PR's changed files:rejectSymlinksis passed by existing callers but is not present onOpenRootFileParams/OpenRootFileSyncParams.Real Behavior Proof
Exact head:
cf7e57f6e3f3495ba21f276bbb1109f3190460ef.Source CLI lifecycle transcript, using
node --import tsx src/entry.tsand an isolated temp state dir:Concurrent package-root bootstrap seed proof on the same exact head:
{ "head": "cf7e57f6e3f3495ba21f276bbb1109f3190460ef", "tempRoot": "[temp]/openclaw-claws-concurrent-proof-AiSCkQ", "planIntegrity": "sha256:582963001f82c35cc3bcc9c978419df73cd1cedc02ede042f7a263dace809da6", "sourceDigest": "sha256:50b39aa82fb446f8d5fbc70cc52c4c14d69a22febc1f9e7ff011b0e0edbf82fe", "concurrentResults": ["already-seeded", "seeded"], "targetDigest": "sha256:50b39aa82fb446f8d5fbc70cc52c4c14d69a22febc1f9e7ff011b0e0edbf82fe", "targetMatchesSource": true, "bootstrapSeededAt": "1970-01-01T00:00:01.000Z" }Stack Position
This is the first PR in the revised Claws application track. #115962 builds on it with schema-v1 harness-native extensions and managed application content. Gateway and Control UI support follow in #112808 and #112828.
The standalone
npx clawsadapter remains a separate reference-engine track and is not required by this package format.Latest proof refresh: #115237 (comment)