Repository navigation
fix(setup): honor baseline skip-bootstrap - #115945
Conversation
|
Codex review: needs maintainer review before merge. Reviewed September 26, 2026, 6:09 AM ET / 10:09 UTC (Revision 15). ClawSweeper reviewWhat this changesThe branch lets baseline setup persist the existing skip-bootstrap setting, create a workspace without bootstrap files, and preserve included configuration through updated writer handling, tests, and CLI documentation. Merge readiness✅ Ready for maintainer review Keep open. Current main and the latest release still reject the baseline flag. The relevant config contributor has explicitly accepted the shared-include write behavior, and this review found no actionable patch or security defect. Priority: P2 Review scores
Verification
How this fits togetherThe setup CLI reads flags and configuration, then asks the guarded config writer to persist baseline defaults. Workspace initialization uses the resulting setting to decide whether to create bootstrap files. flowchart LR
Flags[Setup flags] --> Admission[Baseline option check]
Admission --> Config[Resolved configuration]
Config --> Ownership[Include ownership decision]
Ownership --> Writer[Guarded config writer]
Writer --> Workspace[Workspace initialization]
Workspace --> Result[Directories and optional bootstrap files]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +77, Tests +233, Docs +10. Total +320 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the guarded config writer as the persistence owner and land the documented root-local setup behavior with its exact-include refusal. Do we have a high-confidence way to reproduce the issue? Yes, by source: current main and v2026.9.6 reject the explicit flag on the baseline route. This read-only review did not execute the CLI. Is this the best way to solve the issue? Yes. The patch uses the existing setting and guarded config writer, with an explicit decision covering local overrides beside shared includes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e9fef978bef2. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (14 earlier review cycles; latest 8 shown)
|
Carry the run owner's resolved provider/model identity through hidden and visible spawning, including CLI MCP grants. Preserve explicit and configured child choices while separating native CLI model strings from logical identity. Resolve configured provider-qualified aliases before inference without shadowing exact configured provider model IDs. Bind visible inheritance to the current same-agent requester and validate it before committing creation. Partially addresses #115945. Co-authored-by: Vincent Koc <[email protected]>
Carry the run owner's resolved provider/model identity through hidden and visible spawning, including CLI MCP grants. Preserve explicit and configured child choices while separating native CLI model strings from logical identity. Resolve configured provider-qualified aliases before inference without shadowing exact configured provider model IDs. Bind visible inheritance to the current same-agent requester and validate it before committing creation. Partially addresses #115945. Co-authored-by: Vincent Koc <[email protected]>
* fix: preserve the selected parent model in subagent spawns Same-agent hidden and visible spawns inherit the active parent model unless an explicit or configured child model takes precedence. Preserve target-agent selection for cross-agent work. Reimplements the subagent portion of #115945 against current owners. Co-authored-by: Vincent Koc <[email protected]> * fix: preserve resolved parent model identity in spawned sessions Carry the parent provider/model pair through trusted visible creation and its signed transport without resolving aliases twice. Keep current-requester and model allowlist validation at the existing creation owner. Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: Vincent Koc <[email protected]>
…49036) * fix: preserve the selected parent model in subagent spawns Same-agent hidden and visible spawns inherit the active parent model unless an explicit or configured child model takes precedence. Preserve target-agent selection for cross-agent work. Reimplements the subagent portion of openclaw#115945 against current owners. Co-authored-by: Vincent Koc <[email protected]> * fix: preserve resolved parent model identity in spawned sessions Carry the parent provider/model pair through trusted visible creation and its signed transport without resolving aliases twice. Keep current-requester and model allowlist validation at the existing creation owner. Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: Vincent Koc <[email protected]>
Persist the existing skip-bootstrap option before initial workspace creation and keep explicit local defaults out of shared include files. Preserve configured values, user-authored files and include ownership on later baseline runs. Related: #115945
Keep the reviewed current-main setup reconstruction as the complete candidate tree. Requester inheritance is already supplied by PR149036; the separate model-selection-source proposal remains tracked in issue158760. Retain the original PR commit as a parent instead of rewriting its history. Related: #115945 Related: #158760
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Merged via squash.
|
* fix(setup): preserve baseline skip-bootstrap intent Persist the existing skip-bootstrap option before initial workspace creation and keep explicit local defaults out of shared include files. Preserve configured values, user-authored files and include ownership on later baseline runs. Related: openclaw#115945 * fix(core): preserve setup and subagent model intent * chore(setup): preserve original PR ancestry after scope split Keep the reviewed current-main setup reconstruction as the complete candidate tree. Requester inheritance is already supplied by PR149036; the separate model-selection-source proposal remains tracked in issue158760. Retain the original PR commit as a parent instead of rewriting its history. Related: openclaw#115945 Related: openclaw#158760 Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Fixes an issue where users running
openclaw setup --baseline --skip-bootstrapcould not reliably create a bootstrap-free workspace: baseline admission rejected the flag, and the baseline setup path did not persist it.This PR is narrowed to setup. The original same-agent model-inheritance behavior is covered by #149036 . The distinct model-selection provenance proposal remains open at #158760 and is not implemented or rejected here. The original commit remains in this branch's ancestry.
Why This Change Was Made
Forward and persist explicit skip-bootstrap intent before initial agent/workspace creation, preserve the existing setting when omitted, and carry the effective setting into workspace initialization.
Local defaults belong beside an inherited config section rather than in its shared include file. The config mutation owner now respects that existing explicit-local-write contract. Unsupported exact-leaf and mixed workspace include changes fail before config or workspace side effects. The existing include-boundary fallback moves unchanged to its owning module.
User Impact
Headless setup can create config, workspace and session directories without generating instruction files, and later flag-free baseline runs retain that choice. Existing workspace files and included config remain intact. Ordinary setup still creates bootstrap files.
The CLI documentation explains persistence and the include-owned cases that require editing their owner directly. No configuration key, schema, dependency or subagent result contract is added.
Evidence
All application execution used Linux Testbox, with source and dependency pins and lease cleanup recorded.
The four focused suites cover CLI admission, fresh and existing config, ordinary-bootstrap control, second flag-free invocation, existing file preservation, nested/root includes, and refusal before side effects for unsupported ownership combinations.
Review Disposition
The September 26 ClawSweeper review reports no actionable code or security findings. @vincentkoc has approved the shared-include compatibility decision: baseline workspace and missing Gateway-mode defaults may be written as root-local overrides, including runs without
--skip-bootstrap. The shared include file is not changed, so other configurations using it retain their previous values. This is an intentional write-destination change for existing installations, not a claim that prior include write-through behavior is unchanged. The existing-config proof above establishes the implemented behavior; no new proof was run for this decision.Exact-head CI, Security Review, and Workflow Sanity passed on
bb02b3f9b5d37c12292ecfbcf4e989f6f2881367. The fresh trusted review's compatibility checklist is dispositioned by that owner decision; its original review remains intact.Retained single-worker evidence supplies the requested timing context without another test run. The four-file, 194-case focused command took 58.868 seconds, with both project parallelism and Vitest workers set to one. Vitest reported 18.87 seconds for the 109 config/include cases, 2.95 seconds for the 47 CLI cases, and 33.40 seconds for the 38 setup cases. The provider reported 188.121 runner-seconds for that entire proof attempt, including preparation and harness work. These are measured suite/attempt costs, not the marginal cost of only the added tests or a monetary billing estimate. The outer collector failure and its reconciliation remain disclosed above.
Final candidate tree:
232e4703c1f354816ad32278f1913b5b6dcf1d7b. Linked Testbox workflows may show cancellation during normal lease cleanup; command receipts bind the results to the source tree. Exact-head hosted CI, trusted review and native preparation/merge remain required. No real-channel, external API or performance claim is made.