Skip to content

Deterministic physics/bounds evaluator — complement to the attack side #794

Open

Description

@PHM-Audit

Hi ARES team,

I maintain the PhysicsConsistencyScorer that was merged into microsoft/PyRIT main (PR #3507, not yet in a tagged release): a deterministic, zero-dependency scorer that checks whether LLM/agent outputs violate physical and bounds constraints — impossible velocities, unit inconsistencies, NaN propagation, non-physical timestamps. Three-state verdict (PASS/DEGRADE/VETO) with a replayable SHA-256 audit chain per verdict.

Looking at ARES's evaluator interface, I believe this may complement the attack side: attack plugins find that something breaks, while a deterministic evaluator can flag violations of physics/bounds rules before deployment — within its rule set. I'd be glad to contribute an ARES evaluator adapter so your users get physics/bounds checks natively.

Happy to share the PyRIT integration as a reference implementation. Would a short technical doc on the adapter interface be useful?

Best regards,
PHM-Audit
GitHub: github.com/PHM-Audit

Activity

  1. stefano81 commented on Nov 23, 2026

    @stefano81
    Member

    Hi @PHM-Audit thank you for reaching out!
    Yes, we are always interested in community contributions!

    Please, feel free to create a draft in the experimental-plugins folder, that's where we triage contributions from the community.

  2. self-assigned this
    on Nov 23, 2026
  3. PHM-Audit commented on Nov 23, 2026

    @PHM-Audit
    ContributorAuthor

    Thanks Stefano! Draft created: PR #798 adds experimental-plugins/ares-physics-bounds/ — a deterministic physics/bounds evaluator with no LLM calls at evaluation time: rules flag impossible velocities (unit-normalised, exactly c passes), probabilities outside [0, 1] (percent-suffix aware), negative absolute quantities, and non-finite value leaks. 30 tests pass (25 pure-core, no dependencies; 5 adapter tests against the ARES framework). An analogous detection approach was merged into microsoft/PyRIT main as PhysicsConsistencyScorer (microsoft/PyRIT#3507); this is an independent implementation for ARES. Happy to adjust scope or run a benign-corpus quantification if useful for triage.

  4. PHM-Audit commented on Nov 23, 2026

    @PHM-Audit
    ContributorAuthor

    Follow-up on the FP quantification I offered earlier: ran the ruleset over 17,218 benign samples (7 corpora from the public Agent-Threat-Rule benchmark: extended conversations, arXiv abstracts, official skill docs, skills-sh, wild-FP probes, benign code).

    • Initial ruleset: 167 FP samples (0.97%) — four systematic families: CPU model numbers (i9-11900K) parsed as negative kelvin, age ranges (31-45 years old) parsed as negative ages, list numbering after probability headings, and math-education infinity prose (= infinity)
    • All four families are fixed in the PR now (hyphen-guard on numbers, tight value-position connectors, infinity moved to documented out-of-scope — only nan tokens are treated as value leaks): 2 FP samples remain = 1 unique document (0.012%), a JavaScript-teaching skill doc discussing = NaN semantics, disclosed here as the known residual
    • tests/ now has 38 tests (33 pure-core, no dependencies; 5 adapter tests against the ARES framework), all passing; TestCorpusFPRegressions pins the four fixed families

    Updated physics.py, test_physics.py and the README quantification section are pushed to PR #798. Happy to re-run on a corpus you prefer, or adjust the infinity/nan boundary if you would rather trade FP for recall there.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions