Skip to content

Add PHM Physics Guard guardrails integration sample - #353

Open
PHM-Audit wants to merge 1 commit into
strands-agents:mainfrom
PHM-Audit:main
Open

PHM-Audit wants to merge 1 commit into
strands-agents:mainfrom
PHM-Audit:main

Conversation

@PHM-Audit

Copy link
Copy Markdown

Adds a guardrails integration sample: PHM Physics Guard (strands-phm-guard on PyPI), a deterministic physics/bounds intervention handler.

  • Implements the standard InterventionHandler interface with three-state exits (Proceed / Guide / Deny): physically impossible tool arguments (faster-than-light speeds, negative masses, NaN leaks, impossible depths) are denied before the tool executes.
  • Deterministic: fixed rule table, no LLM in the loop, no external API; every verdict is recomputable.
  • The demo (main.py) runs without model credentials; full-agent mode (MODEL_MODE=bedrock) wires the same handler into a live agent. Tested locally against strands-agents 1.64: 7/7 cases (5 deny, 2 proceed) with the real intervention registry dispatch.
  • Structure follows .github/templates/use-cases/; samples.json regenerated via generate-samples-manifest.mjs.

Related context: the underlying package originated from strands-agents/harness-sdk#5934 (proposal was published as an independent community package per CONTRIBUTING guidance).

Deterministic physics/bounds intervention handler (strands-phm-guard,
InterventionHandler with Proceed/Guide/Deny exits). Demo runs without
model credentials; full-agent mode via MODEL_MODE=bedrock.
Manifest regenerated per CONTRIBUTING.
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