Repository navigation
phm-lite-check — deterministic physics plausibility tools for AutoGen agents #8397
PHM (PHM-Audit)
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
phm-lite-check — deterministic physics plausibility tools for AutoGen agents
Sharing a small open-source package I built:
phm-lite-check— three deterministic, offline checkers wrapped as AutoGen v0.4 tools. Zero runtime dependencies (pure standard library), no network calls, no model calls.The problem it addresses
Agents routinely produce numeric claims ("the drone descends at 450 km/h, confidence 1.8") and consume robotics/embodied-AI datasets. Some failures are purely mechanical — a probability of 1.8, a quaternion with norm 1.395, a negative mass, a timestamp sequence that goes backwards. These don't need an LLM to catch; a deterministic rule set catches them reliably and reproducibly.
Tools exposed (plain Python functions, usable with
AssistantAgent(tools=[...]))physics_text_check(text)— scans text for physically implausible quantities: unit consistency, universal speed limit, absolute zero floor, non-negativity of mass/energy, probability range [0,1], kinematic relations, conservation checksphysics_quantity_check(value, unit)— one quantity against physical lawrobotics_data_check(record_json)— robotics dataset records: quaternion normalization, timestamp monotonicity/duplicates/outlier gaps (possible frame loss), NaN/Inf scan, unit annotation presenceVerdicts are structured:
PASS / WARN / FAILwith per-violation records (rule, severity, detail, location).Quickstart
Actual output of
physics_text_check("The drone descends at 450 km/h, confidence 1.8."):{ "verdict": "FAIL", "n_quantities_checked": 2, "violations": [ {"rule": "probability_out_of_range", "severity": "FAIL", "detail": "Probability 1.8 outside [0, 1]", "location": "confidence 1.8"} ], "engine": "PHM-Lite", "version": "1.0.0", "deterministic": true }Scope and limits
pip install -e ".[dev]" && pytest tests/ -qNot affiliated with, endorsed by, or sponsored by Microsoft or the AutoGen team — just a community tool that plugs into the standard
tools=[...]interface.Repo: https://github.com/PHM-Audit/phm-lite-check
All reactions