You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deterministic physics/bounds evaluator — complement to the attack side #794
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
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.
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.
Activity
stefano81 commentedon Nov 23, 2026
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-pluginsfolder, that's where we triage contributions from the community.PHM-Audit commentedon Nov 23, 2026
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.PHM-Audit commentedon Nov 23, 2026
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).
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)nantokens are treated as value leaks): 2 FP samples remain = 1 unique document (0.012%), a JavaScript-teaching skill doc discussing= NaNsemantics, disclosed here as the known residualtests/now has 38 tests (33 pure-core, no dependencies; 5 adapter tests against the ARES framework), all passing;TestCorpusFPRegressionspins the four fixed familiesUpdated
physics.py,test_physics.pyand 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.