Skip to content

fix(action): Validate Pi model selectors before execution#321

Merged
dcramer merged 1 commit into
mainfrom
codex/invalid-pi-model-selector
May 14, 2026
Merged

fix(action): Validate Pi model selectors before execution#321
dcramer merged 1 commit into
mainfrom
codex/invalid-pi-model-selector

Conversation

@dcramer
Copy link
Copy Markdown
Member

@dcramer dcramer commented May 14, 2026

Share Pi model selector validation between the CLI and GitHub Action paths.

The Action path could previously let an invalid Pi model selector, such as a bare WARDEN_MODEL value, reach runtime execution. That collapsed the failure into a generic all-hunks-failed path and made the captured Sentry event less useful. This moves selector validation into a shared helper and runs it before Action skill execution.

Action trigger failures now use a shared capture helper so PR and schedule workflows tag and fingerprint Sentry events consistently. Invalid selectors preserve a dedicated invalid_model_selector error code in runtime classification, JSONL output, and Action telemetry.

The schema and reporter spec were updated to document the new public error code. The fixture model names in Action tests now use provider/model selectors so they reflect the Pi runtime contract.

Comment thread src/action/triggers/executor.ts
Share Pi model selector validation across CLI and GitHub Action paths so invalid WARDEN_MODEL values fail as configuration errors before runtime execution.

Preserve invalid selector failures with a dedicated error code and Sentry tag so captured events show the real cause instead of collapsing into all-hunks-failed.

Co-Authored-By: GPT-5 Codex <noreply@anthropic.com>
@dcramer dcramer force-pushed the codex/invalid-pi-model-selector branch from be9d251 to d220363 Compare May 14, 2026 23:07
@dcramer dcramer merged commit 5df3429 into main May 14, 2026
15 checks passed
@dcramer dcramer deleted the codex/invalid-pi-model-selector branch May 14, 2026 23:19
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