Skip to content

fix: validate compact budget options - #14

Open
be-student wants to merge 1 commit into
AgentPostmortem:mainfrom
be-student:codex/13-validate-compact-budgets
Open

fix: validate compact budget options#14
be-student wants to merge 1 commit into
AgentPostmortem:mainfrom
be-student:codex/13-validate-compact-budgets

Conversation

@be-student

Copy link
Copy Markdown

Closes #13.

compact() now rejects negative or non-finite token budgets and non-integer protected-turn counts before cloning or transforming the payload. Regression tests cover the reported values plus infinity and fractional turn counts. The README and changelog document the public validation contract.

Validation: node --test (14 passed).

AI-assisted: implemented and validated with Codex.

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.

compact accepts negative/NaN budgets with no validation

1 participant