Skip to content

fix(config): clarify bootstrap creation and context injection - #118755

Merged
roboclaw-bot merged 3 commits into
mainfrom
codex/fix-75184-bootstrap-schema-help
Sep 20, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
codex/fix-75184-bootstrap-schema-help

Conversation

@steipete

@steipete steipete commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #75184

What Problem This Solves

Fixes an issue where users trying to reduce prompt context could mistake agents.defaults.skipBootstrap for an injection switch. Generated help omitted its creation-only scope and the supported contextInjection: "never" option. The earlier clarification also promised injection control beyond the runtime that implements it.

Why This Change Was Made

Clarify creation separately from injection and scope the default and per-agent injection help to the embedded runtime. The reference docs now state the same boundary and describe continuation eligibility as a recorded full-bootstrap turn, rather than any completed assistant response. Ordinary CLI-backed prompt preparation is explicitly outside this setting's scope.

Keep the existing workspace-label grouping and regenerate documentation fingerprints. This changes help metadata and documentation only: configuration shape, accepted values, defaults, persistence, and runtime behavior are unchanged. No migration or operator action is required.

User Impact

The CLI schema and Control UI explain which setting controls workspace-file creation, what the three injection modes mean, and where those modes apply. Skipping injection does not prevent an agent from reading files with tools.

Reported by @camerono; original fix by @steipete.

Work sessions

Evidence

Verified source: ba10086d2f8256c3f3941de36fe78ddf30c01497, preserving the original PR head and merging pinned main 209dc0e6d56e4366673c53ece50f9dbc9b8a8ada to resolve the generated fingerprint conflict.

  • Ran the registered pnpm openclaw config schema --json command before and after with isolated synthetic state. Main omitted the creation-only description/title and the "never" guidance. The complete schema comparison found exactly four changed annotation leaves (one title and three descriptions), with all validation shapes unchanged. Both commands rebuilt and ran the real CLI.

  • node scripts/run-vitest.mjs src/config/schema.help.quality.test.ts src/config/schema.test.ts src/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-injection.test.ts: 118 passed (24 help-quality, 85 schema, 9 embedded-injection cases), no selected skips.

  • pnpm config:docs:gen and pnpm config:docs:check: regenerated fingerprints verified. Entry counts remain 2,453 core / 3,740 channel / 4,329 plugin, unchanged from the refreshed base.

  • Fresh independent P2 autoreview: scoped-clean, no actionable findings. Focused formatting and git diff --check passed.

  • Fresh before/after browser scenarios passed against the real Control UI with full source-generated schemas and a deterministic mock Gateway. Exact displayed help and all three choices matched; true/never/never values, complete form state, dirty state, and autosave state stayed unchanged. No configuration-write requests or browser errors occurred. All 4,529 tracked UI files were byte-identical across the compared checkouts. The attached images are labeled compositions of the unmodified browser-rendered setting rows.

  • Exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/35526479236. Required openclaw/ci-gate, security-sensitive review, and dependency review statuses are also green (publisher run 35527335670). All selected local changed-file checks passed, including production/test typechecks, formatting, lint, dead-export and import-cycle checks, and boundary guards.

Compatibility review confirmed: zero new settings, zero accepted-value or default changes, and no persisted-state or migration changes. The exact CLI schema delta is one title and three descriptions only. The fresh ClawSweeper review at 2026-09-20T17:47:53Z confirms the prior scope finding is resolved and reports no actionable findings.

Runtime scope was checked through OpenClaw's actual embedded preparation/compaction and ordinary CLI preparation paths. This PR does not change CLI runtime enforcement or claim to disable external runtimes' own file loading.

Before: workspace bootstrap settings on pinned main

After: creation-only and embedded-runtime-scoped help

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 3, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 20, 2026, 1:47 PM ET / 17:47 UTC (Revision 12).

ClawSweeper review

What this changes

Clarifies workspace-file creation versus embedded-runtime prompt injection in configuration help and reference docs, groups workspace labels, extends help-quality checks, and refreshes generated fingerprints.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: the clarification remains useful, and the previous runtime-scope finding is resolved. No blocking defect remains in the reviewed patch; the refreshed visual proof supports the changed help.

Priority: P3
Reviewed head: ba10086d2f8256c3f3941de36fe78ddf30c01497

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct clarification with strong visual evidence and the previous scope concern addressed.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after captures show the changed schema metadata rendered in real Control UI settings with a mock Gateway; the visible wording matches the patch. The captured body also reports real registered CLI schema output with only four annotation changes, directly covering this presentation-only change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after captures show the changed schema metadata rendered in real Control UI settings with a mock Gateway; the visible wording matches the patch. The captured body also reports real registered CLI schema output with only four annotation changes, directly covering this presentation-only change.
Evidence reviewed 8 items Pinned introduced change: The complete introduced diff changes help, labels, documentation, quality-check fixtures, and generated fingerprints. It does not change configuration validation, defaults, persistence, or runtime execution.
Clarification remains absent from main: Current main still omits skipBootstrap help and describes contextInjection without never or the embedded-runtime boundary.
Latest release comparison: The v2026.9.5 tag resolves to this release commit, whose help retains the same omission; the requested clarification is not established as shipped.
Findings None None.
Security None None.

How this fits together

Configuration metadata supplies field descriptions and labels to the CLI schema and Control UI. These settings distinguish creating workspace files from including their contents in embedded-agent prompts.

flowchart LR
  A[Configuration definitions] --> B[Help and label metadata]
  B --> C[Schema generation]
  C --> D[CLI schema output]
  C --> E[Control UI settings]
  F[Workspace runtime behavior] --> B
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

Source +7, Tests +2, Docs +1, Generated 0. Total +10 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 4 16 9 +7
Tests 1 2 0 +2
Docs 1 5 4 +1
Config 0 0 0 0
Generated 1 2 2 0
Other 0 0 0 0
Total 7 25 15 +10

Review metrics

Metric Value Why it matters
Configuration contract 1 title and 3 descriptions changed; 0 new settings The reported CLI comparison and introduced diff establish a presentation-only correction with existing validation and defaults preserved.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #75184
Summary: This PR is the open clarification candidate for the reported configuration-help ambiguity.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep creation and injection controls distinct, with shared help accurately describing the existing embedded-runtime boundary and preserving all stored settings.

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

Not applicable as a runtime defect: this PR corrects help text, whose omission is directly visible in current-main source and the supplied before screenshot.

Is this the best way to solve the issue?

Yes. Updating the existing shared metadata and reference docs resolves the ambiguity without repurposing skipBootstrap or expanding runtime behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7f7ac2dd6bad.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after captures show the changed schema metadata rendered in real Control UI settings with a mock Gateway; the visible wording matches the patch. The captured body also reports real registered CLI schema output with only four annotation changes, directly covering this presentation-only change.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a bounded documentation and configuration-help improvement with no runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after captures show the changed schema metadata rendered in real Control UI settings with a mock Gateway; the visible wording matches the patch. The captured body also reports real registered CLI schema output with only four annotation changes, directly covering this presentation-only change.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after captures show the changed schema metadata rendered in real Control UI settings with a mock Gateway; the visible wording matches the patch. The captured body also reports real registered CLI schema output with only four annotation changes, directly covering this presentation-only change.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after captures show the changed schema metadata rendered in real Control UI settings with a mock Gateway; the visible wording matches the patch. The captured body also reports real registered CLI schema output with only four annotation changes, directly covering this presentation-only change.

Evidence

What I checked:

  • Pinned introduced change: The complete introduced diff changes help, labels, documentation, quality-check fixtures, and generated fingerprints. It does not change configuration validation, defaults, persistence, or runtime execution. (src/config/schema.help.models.ts:158, ba10086d2f82)
  • Clarification remains absent from main: Current main still omits skipBootstrap help and describes contextInjection without never or the embedded-runtime boundary. (src/config/schema.help.models.ts:160, 7f7ac2dd6bad)
  • Latest release comparison: The v2026.9.5 tag resolves to this release commit, whose help retains the same omission; the requested clarification is not established as shipped. (src/config/schema.help.models.ts:160, ec9c1a13db89)
  • Prior finding resolved against the actual runtime boundary: Embedded bootstrap resolution returns empty bootstrap/context arrays for never and gates continuation skipping on a recorded bootstrap turn. Prepared compaction also honors never. Ordinary CLI preparation still loads through the shared resolver, matching the newly explicit exclusion. These are OpenClaw-owned contracts; no dependency-specific behavior is claimed. (src/agents/embedded-agent-runner/run/attempt-context-engine-helpers.ts:45, ba10086d2f82)
  • Shared presentation owner: Schema generation applies titles and descriptions from the existing metadata maps; Control UI hints consume those same maps. The patch therefore updates both presentation surfaces without introducing a competing configuration owner. (src/config/schema-base.ts:77, ba10086d2f82)
  • Inspected before-and-after proof: Both prepared GitHub attachment images were inspected locally. They show the real Control UI rows before and after, including the creation-only label, embedded-runtime descriptions, three existing choices, and unchanged selected values. The captured body additionally reports the registered CLI schema comparison and 118 passing focused tests; those commands were not rerun during this read-only review. (ba10086d2f82)

Likely related people:

  • steipete: 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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-05T00:05:54.396Z sha 3b392aa :: found issues before merge. :: [P1] Scope never to runtimes that honor it | [P2] Describe never as injection-only
  • reviewed 2026-08-05T23:56:44.176Z sha 3b392aa :: found issues before merge. :: [P1] Make never accurate across runtimes | [P2] Describe never as injection-only
  • reviewed August 20, 2026, 3:37 PM ET / 19:37 UTC sha unknown :: found issues before merge. :: [P1] Honor never before advertising it | [P2] Describe never as prompt injection only
  • reviewed 2026-08-20T19:37:47.874Z sha 3b392aa :: found issues before merge. :: [P1] Honor never before advertising it | [P2] Describe never as prompt injection only
  • reviewed 2026-08-26T23:32:08.184Z sha 3b392aa :: found issues before merge. :: [P1] Honor or scope the never guarantee
  • reviewed 2026-08-26T23:51:50.759Z sha 3b392aa :: found issues before merge. :: [P1] Honor or scope the never guarantee
  • reviewed 2026-09-04T22:42:17.186Z sha 3b392aa :: blocked before merge. :: [P1] Honor or scope the never guarantee
  • reviewed 2026-09-19T13:06:40.378Z sha 8a8e0ea :: blocked before merge. :: [P2] Limit the injection guarantee to runtimes that honor it

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 5, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 20, 2026
@steipete steipete changed the title fix(config): clarify why skipping bootstrap does not disable prompt context fix(config): clarify bootstrap creation and context injection Sep 19, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Sep 19, 2026
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 19, 2026
Clarify creation-only skipBootstrap guidance, embedded-only default and per-agent injection modes, and continuation eligibility. Keep configuration validation and runtime behavior unchanged. Refresh generated help fingerprints and matching reference docs. Preserve the original PR ancestry while incorporating main to resolve the generated fingerprint conflict.

Co-authored-by: steipete <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime labels Sep 20, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Addressed the runtime-scope finding in ba10086. Both default help strings, the per-agent override, and the reference docs now say embedded runtime and exclude CLI-backed prompt preparation. Continuation wording now follows the recorded full-bootstrap marker. Runtime behavior, accepted configuration values, and defaults are unchanged.

The updated PR body includes fresh inspected before/after UI screenshots, 118 passing focused tests, the real CLI schema comparison (four annotation changes only), verified generated fingerprints, and a clean fresh independent P2 review. Exact-head CI is running.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 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 Sep 20, 2026
@roboclaw-bot
roboclaw-bot merged commit 59bec7f into main Sep 20, 2026
247 checks passed
@roboclaw-bot
roboclaw-bot deleted the codex/fix-75184-bootstrap-schema-help branch September 20, 2026 17:58
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

[Bug]: agents.defaults.skipBootstrap: true is a no-op for workspace bootstrap files

2 participants