Skip to content

Fail closed without polynomial checker identity - #811

Merged
morluto merged 1 commit into
mainfrom
agent/fail-closed-polynomial-checker-identity
Aug 8, 2026
Merged

Fail closed without polynomial checker identity#811
morluto merged 1 commit into
mainfrom
agent/fail-closed-polynomial-checker-identity

Conversation

@morluto

@morluto morluto commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Fixes #732.

Verification adapters previously used assert checker_id is not None. Those guards disappear under optimized Python.

This change makes missing checker identity explicit: construction fails with an installation invariant error, while invocation fails through the existing structured diagnostic path. The normal installation gate remains unchanged.

Regression coverage constructs both adapters with an intentionally missing checker identity and verifies they reject the invalid state.

Validation:

  • make test-component TESTS=tests/component/providers/polynomial/test_polynomial_positivity_capabilities.py
  • make test-domain TESTS=tests/domain/polynomial/test_polynomial_interval_capabilities.py
  • make lint-full

@morluto
morluto marked this pull request as ready for review August 8, 2026 04:28
@cursor

cursor Bot commented Aug 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@morluto
morluto merged commit 72ce510 into main Aug 8, 2026
39 checks passed
@morluto
morluto deleted the agent/fail-closed-polynomial-checker-identity branch August 8, 2026 04:28
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.

[Bug]: Replace production assert guards in polynomial positivity and interval verification adapters

1 participant