Skip to content

fix: validate batch steps through command contracts#848

Merged
thymikee merged 1 commit into
mainfrom
codex/validate-batch-command-contracts
Jun 23, 2026
Merged

fix: validate batch steps through command contracts#848
thymikee merged 1 commit into
mainfrom
codex/validate-batch-command-contracts

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

Structured batch steps now validate through command metadata before daemon projection, so invalid command input is rejected before CLI-shaped positionals are produced.

Added a regression for a focus step missing its y coordinate to prove the daemon is not called and no undefined positional leaks through.

Touched files: 4. Scope stayed within command/batch projection.

Validation

Verified with formatting, quick static checks, and the focused batch CLI suite: pnpm format, pnpm check:quick, and pnpm exec vitest run src/commands/batch/cli.test.ts.

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.3 MB 1.3 MB -1.4 kB
JS gzip 431.1 kB 430.2 kB -919 B
npm tarball 565.8 kB 565.4 kB -435 B
npm unpacked 1.9 MB 1.9 MB -1.4 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 25.0 ms 25.7 ms +0.7 ms
CLI --help 40.7 ms 41.1 ms +0.3 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/2948.js +144.4 kB +43.4 kB
dist/src/cli.js -62 B -39 B
dist/src/9919.js +311 B +19 B
dist/src/selector-runtime.js 0 B +2 B
dist/src/9722.js 0 B -1 B

@thymikee

Copy link
Copy Markdown
Member Author

#848 is merge-ready from review. Current checks are fully green.

I checked the batch projection path: nested structured input now goes through command metadata before daemon request projection, invalid input fails before daemon transport, and the regression covers the missing focus.y case without leaking undefined positionals. No findings.

@thymikee thymikee force-pushed the codex/validate-batch-command-contracts branch from 2c13157 to b597ff3 Compare June 23, 2026 16:43
@thymikee thymikee force-pushed the codex/validate-batch-command-contracts branch from b597ff3 to 0061994 Compare June 23, 2026 16:46
@thymikee thymikee merged commit 2e02f76 into main Jun 23, 2026
20 checks passed
@thymikee thymikee deleted the codex/validate-batch-command-contracts branch June 23, 2026 16:58
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-23 16:59 UTC

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant