Skip to content

refactor: canonicalize Crabbox run invocation transforms - #118544

Merged
steipete merged 1 commit into
mainfrom
codex/cleanup50k-crabbox-invocation-20260802
Aug 3, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/cleanup50k-crabbox-invocation-20260802

Conversation

@steipete

@steipete steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Related: #106789

What Problem This Solves

Fixes an issue where Crabbox wrapper callers could have run-option values mistaken for the remote command when the locally maintained option-arity table drifted from Crabbox. That ambiguity was especially risky for provider-neutral changed-gate routing, where options such as --idle-timeout 90m and --ttl 240m precede the payload.

Why This Change Was Made

The wrapper now derives value-bearing run options from the mandatory crabbox run --help probe, parses each run invocation once into canonical option and payload spans, owns remote-command facts in one analysis step, and applies the existing platform transforms through one ordered pipeline. The stale 108-line static value-option table and duplicate payload scans are removed. Platform-specific renderers remain separate because exact cross-platform byte parity was not established; signal, lease, sparse-sync, lifecycle, diagnostic, and redaction behavior is unchanged.

User Impact

Operators can pass current and future Crabbox run options before a remote command without the wrapper consuming their values as payload words. Provider-omitted changed gates keep workload routing intact, and the wrapper no longer needs source edits each time Crabbox adds a value-bearing run option.

Evidence

  • Focused Testbox proof: 709 tests passed across the wrapper, routing policy, changed lanes, PR gates, test projects, and package-manager configuration (Actions run).
  • Provider-omitted check:changed proof: workload routing selected Blacksmith Testbox without an explicit provider and all 14 changed-surface gates passed; the one-shot lease stopped cleanly (Actions run).
  • Current Crabbox contract inspection confirmed that all value-bearing run flags use the five parsed help placeholders (string, duration, int, float, and value).
  • Test inventory: all 175 original declarations and 521 assertions remain in order; two regression tests add coverage for help-derived arity and the docs: respect configured Crabbox provider for agent tests #106789 provider-omitted caller shape.
  • Production delta: 220 insertions / 426 deletions (net -206). Total delta: 323 insertions / 429 deletions (net -106).
  • Fresh gpt-5.6-sol/high autoreview reported no accepted or actionable findings; secret scan clean.
  • git diff --check, targeted formatting, script syntax validation, test-root typecheck, and script lint passed.

AI-assisted with Codex. I understand the implementation and verified the dependency contract, transform ordering, preservation boundaries, and proof results.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: L maintainer Maintainer-authored PR labels Aug 3, 2026
@steipete
steipete marked this pull request as ready for review August 3, 2026 06:45
@steipete
steipete merged commit 957bdd1 into main Aug 3, 2026
146 of 151 checks passed
@steipete
steipete deleted the codex/cleanup50k-crabbox-invocation-20260802 branch August 3, 2026 06:58
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant