Skip to content

fix(setup): honor baseline skip-bootstrap - #115945

Merged
vincentkoc merged 3 commits into
mainfrom
fix/setup-subagent-model-intent
Sep 26, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/setup-subagent-model-intent

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where users running openclaw setup --baseline --skip-bootstrap could 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.

  • Baseline regression proof: nine intended failures and two passing controls; 65 unrelated cases filtered.
  • Owner-specific causal proof: intended failures for local include overrides, exact-leaf preservation and gateway-default handling. The gateway failure was reconciled from retained assertions and owner frames after a verifier-frame mismatch; the original aggregate remains failed.
  • Focused candidate proof: 194 passing cases across setup, CLI dispatch, config mutation and include boundaries. The native Vitest command passed; an outer report collector misread an auxiliary JSON array. The exact native aggregate was independently reconciled; the failed wrapper receipt remains intact.
  • Changed-check prefix: 17 stages passed, then typechecking caught one unused import left by the helper move. That import is removed.
  • Typecheck continuation: core typecheck, all 25 selected consumer typecheck graphs, coercion and deprecated-API guards passed. Dead-export scans passed, but that wrapper correctly failed an unresolved post-exit process-group check; its failed aggregate is retained.
  • Final missing-check proof: all nine remaining native gates, dead-export lifecycle reproof through the strict native process owner, and diff check passed. All 31 selected check stages are covered across the retained and missing-only runs. No completed test or typecheck was replayed.
  • Fresh independent review found no actionable P0-P2 findings after the owner corrections. Subsequent changes are formatting, a shadow-free import binding, and removal of the unused import.

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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes commands Command implementations agents Agent runtime and tooling labels Jul 29, 2026
@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Jul 29, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 26, 2026, 6:09 AM ET / 10:09 UTC (Revision 15).

ClawSweeper review

What this changes

The 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
Reviewed head: bb02b3f9b5d37c12292ecfbcf4e989f6f2881367

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The bounded repair has meaningful filesystem-backed regression coverage and no supported blocking finding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Filesystem-backed setup tests exercise existing and fresh configuration, the writer, and workspace creation; existing-config cases establish the accepted local-override behavior without a new stored format or migration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Filesystem-backed setup tests exercise existing and fresh configuration, the writer, and workspace creation; existing-config cases establish the accepted local-override behavior without a new stored format or migration.
Evidence reviewed 8 items Current main still rejects the flag: The baseline option allowlist omits skipBootstrap, and the baseline route passes only workspace and JSON options to setup.
Latest release still rejects the flag: The v2026.9.6 release source retains the same baseline allowlist without skipBootstrap.
Introduced baseline path: The PR checkout accepts the flag, computes the effective setting, persists an explicit true value, and passes that setting to workspace initialization.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +77, Tests +233, Docs +10. Total +320 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 4 139 62 +77
Tests 2 235 2 +233
Docs 1 11 1 +10
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 385 65 +320

Review metrics

Metric Value Why it matters
Production and test growth production +77 net lines, tests +233 net lines The production growth supports local override handling and an include-helper move; behavior-focused tests account for most of the expansion.
Focused test cost 58.868s single-worker wall; 188.121 runner-seconds The PR body records the cost of the four-file setup and config proof attempt.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a bounded baseline setup workflow without evidence of a wider runtime outage.
  • merge-risk: 🚨 compatibility: Root-local defaults intentionally change the write destination for shared-include setups; the relevant contributor has explicitly accepted that tradeoff.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof. Filesystem-backed setup tests exercise existing and fresh configuration, the writer, and workspace creation; existing-config cases establish the accepted local-override behavior without a new stored format or migration.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (14 earlier review cycles; latest 8 shown)
  • reviewed August 4, 2026, 5:40 AM ET / 09:40 UTC sha unknown :: found issues before merge. :: [P3] Document baseline skip-bootstrap behavior
  • reviewed 2026-08-05T11:40:24.584Z sha 721f46d :: found issues before merge. :: [P3] Document baseline no-bootstrap behavior
  • reviewed 2026-08-20T07:09:34.874Z sha 721f46d :: found issues before merge. :: [P1] Preserve baseline JSON output | [P1] Port requester-model propagation to the current spawn owner | [P3] Document baseline no-bootstrap behavior
  • reviewed 2026-08-23T12:46:27.889Z sha 721f46d :: found issues before merge. :: [P1] Preserve baseline JSON output | [P1] Port requester-model propagation to the current spawn owner
  • reviewed 2026-08-29T13:03:01.616Z sha 721f46d :: found issues before merge. :: [P1] Preserve baseline JSON when porting this route | [P3] Document baseline skip-bootstrap
  • reviewed 2026-09-05T18:39:25.281Z sha 721f46d :: blocked before merge. :: [P3] Document the baseline skip-bootstrap exception
  • reviewed 2026-09-26T09:16:20.558Z sha bb02b3f :: blocked before merge. :: none
  • reviewed 2026-09-26T09:27:43.020Z sha bb02b3f :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 20, 2026
@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 Sep 6, 2026
steipete added a commit that referenced this pull request Sep 16, 2026
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]>
steipete added a commit that referenced this pull request Sep 16, 2026
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]>
steipete added a commit that referenced this pull request Sep 16, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…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]>
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 22, 2026
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
@vincentkoc vincentkoc changed the title fix: preserve setup and subagent model intent fix(setup): honor baseline skip-bootstrap Sep 26, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: ios App: ios app: macos App: macos security Security documentation docker Docker and sandbox tooling app: linux app: wearos App: wearos and removed cli CLI command changes commands Command implementations agents Agent runtime and tooling labels Sep 26, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 26, 2026 09:08
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 26, 2026
@vincentkoc
vincentkoc merged commit 275d0d4 into main Sep 26, 2026
304 of 305 checks passed
@vincentkoc
vincentkoc deleted the fix/setup-subagent-model-intent branch September 26, 2026 10:15
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios app: linux app: macos App: macos app: wearos App: wearos docker Docker and sandbox tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security Security documentation size: M 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