Skip to content

Make cost tracking a CI control: --fail-on, --max-cost, --json - #19

Merged
vsn411 merged 2 commits into
mainfrom
feature/ci-gates-cost-control
Oct 1, 2026
Merged

vsn411 merged 2 commits into
mainfrom
feature/ci-gates-cost-control

Conversation

@vsn411

@vsn411 vsn411 commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

secfoo run gains --fail-on and --max-cost gates (exit 2, distinct from exit 1 for a broken run), --json for pipelines, and config defaults for both. RunOutcome now carries severity counts so gates read the report contract, not prose.

Also fixes config.example.toml, which had three duplicate agent keys and so failed to parse straight after secfoo config init, and consolidates the README's api/secfoo agent sections.

What does this change, and why?

Testing

  • pytest tests passes
  • ruff check . passes
  • Added/updated tests for the behavior change

Satyanarayana Vuppala and others added 2 commits September 24, 2026 13:02
secfoo run gains --fail-on <severity> and --max-cost <usd> gates (exit 2,
distinct from exit 1 for a broken run), --json for pipelines, and config
defaults for both. RunOutcome now carries severity counts so gates read the
report contract, not prose.

Also fixes config.example.toml, which had three duplicate `agent` keys and
so failed to parse straight after `secfoo config init`, and consolidates the
README's api/secfoo agent sections.

Co-authored-by: Cursor <[email protected]>
@vsn411
vsn411 merged commit 20007e7 into main Oct 1, 2026
2 checks passed
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