Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(onboard): drop the unimplemented --yes from onboard help (#6248)

time-attacked12e98f210b
diff --git a/docs/operations/spend-controls.md b/docs/operations/spend-controls.md
index 8ffbbaaf31..f8944d4785 100644
--- a/docs/operations/spend-controls.md
+++ b/docs/operations/spend-controls.md
@@ -147,7 +147,8 @@ line naming the cap, its source and how to remove it, e.g.
| Backfill cooldown | `embed.backfill_cooldown_min` | `10` | skips re-submission inside window | — (latency knob, not spend) | **not** bypassed |
| `reindex-code` cost gate | — (preview before re-embed) | — | TTY prompt / non-TTY refuse + exit 3 (`confirmation_required`) | `--max-cost off` | runs uncapped (still ledgered) |
| `migrate embeddings` consent gate | — (plan + estimate before provider migration) | — | TTY y/N prompt / non-TTY refuse + exit 3 (`confirmation_required`) | `--yes` | estimate marked informational, but **still prompts** (guards a destructive schema rebuild, not just spend) |
-| `enrich` / `onboard --auto` | `--max-usd` (per-call) | — | non-TTY without `--yes`/`--max-usd`: refuse + exit 3 (`confirmation_required`); `--yes` runs under the derived cap | `--max-usd off` | runs uncapped (still ledgered) |
+| `enrich` | `--max-usd` (per-call) | — | non-TTY without `--yes`/`--max-usd`: refuse + exit 3 (`confirmation_required`); `--yes` runs under the derived cap | `--max-usd off` | runs uncapped (still ledgered) |
+| `onboard --auto` | `--max-usd` (per-call) | — | refuses without `--max-usd` (exit 2); manual-only steps (pack upgrade, takes bootstrap) never run, their commands are printed | `--max-usd off` | runs uncapped (still ledgered) |
| Image-OCR per-run ceiling | `embedding_image_ocr_max_images` / `embedding_image_ocr_max_usd` | `200` images / `$1.00` (estimated) | skips OCR over-cap (import continues; skips counted in `ocr_skipped_budget`, surfaced by doctor `ocr_health`) | `0` disables that cap | **not** bypassed (per-run cap, not a tracker gate) |
| Dream `extract_atoms` phase budget | `cycle.extract_atoms.budget_usd` | `0.30` | caps the phase's budget tracker (one tracker per drain attempt, across all its batches) | — | **not** consulted (phase budget enforces regardless) |
| Atom auto-drain daily cap | `autopilot.auto_drain.max_usd_per_day` | `2.00` | daily cap on drain **attempts** (`floor(max / 0.30)` = 6), not a dollar ledger | `gbrain config set autopilot.auto_drain.enabled false` | **not** consulted |
diff --git a/src/cli/help/onboard.ts b/src/cli/help/onboard.ts
index 3b1bc938db..bf1a2091d8 100644
--- a/src/cli/help/onboard.ts
+++ b/src/cli/help/onboard.ts
@@ -5,13 +5,12 @@ export const help: CliHelpSpec = {
summary: 'Onboarding plan for the brain: what to fix to reach the target score, and optionally run it.',
usage: [
'gbrain onboard [--check] [--target-score <n>] [--explain] [--json]',
- 'gbrain onboard --auto --max-usd <n|off> [--yes] [--target-score <n>] [--json]',
+ 'gbrain onboard --auto --max-usd <n|off> [--target-score <n>] [--json]',
'gbrain onboard --history [--json]',
].join('\n'),
flags: [
{ name: '--check', type: 'boolean', desc: 'Print the plan; submit nothing (the default mode).' },
- { name: '--auto', type: 'boolean', desc: 'Submit the auto_apply tier (refuses without --max-usd unless spend.posture=tokenmax).', consent: ['paid'] },
- { name: '--yes', type: 'boolean', desc: 'With --auto: also submit the prompt_required tier.', consent: ['paid'] },
+ { name: '--auto', type: 'boolean', desc: 'Run the plan\'s job steps (refuses without --max-usd unless spend.posture=tokenmax). Manual-only steps (pack upgrade, takes bootstrap) never run; their commands are printed.', consent: ['paid'] },
{ name: '--max-usd', type: 'string', desc: 'USD cap for --auto, or off / unlimited / none to run uncapped (spend still ledgered).', consent: ['paid'] },
{ name: '--target-score', type: 'number', desc: 'Brain score the plan aims for (default 90).' },
{ name: '--explain', type: 'boolean', desc: 'With --check: per-cluster narrative for an available schema-pack upgrade.' },
diff --git a/test/cli-help-curated.test.ts b/test/cli-help-curated.test.ts
index 4fdfff1013..ee21b0c5bf 100644
--- a/test/cli-help-curated.test.ts
+++ b/test/cli-help-curated.test.ts
@@ -23,8 +23,8 @@ import { curatedFlagError } from '../src/cli/help/validate.ts';
import { unknownFlagError } from '../src/cli/cli-error.ts';
const OPS_CRITICAL = ['apply-migrations', 'autopilot', 'doctor', 'import', 'onboard', 'serve', 'status'];
-/** Handlers that parse `--yes` (doctor --remediate, apply-migrations parseArgs, onboard --auto). */
-const PARSES_YES = ['apply-migrations', 'doctor', 'onboard'];
+/** Handlers that parse `--yes` (doctor --remediate, apply-migrations parseArgs). */
+const PARSES_YES = ['apply-migrations', 'doctor'];
describe('curated help specs (D3)', () => {
test('exactly the ops-critical commands carry a curated help module', () => {