Skip to content

Add Financial-Guardrail & Telemetry Harness with Arize Phoenix#31

Merged
ATaylorAerospace merged 1 commit into
mainfrom
claude/build-factor-repo-48Y74
Jun 6, 2026
Merged

Add Financial-Guardrail & Telemetry Harness with Arize Phoenix#31
ATaylorAerospace merged 1 commit into
mainfrom
claude/build-factor-repo-48Y74

Conversation

@ATaylorAerospace

Copy link
Copy Markdown
Owner

Wraps Bedrock AgentCore execution to audit token I/O at every discrete reasoning step, acting as a financial circuit breaker that automatically halts agents exceeding session budgets or stuck in repetitive loops.

New modules:

  • src/factor/harness/ — budget tracker, loop detector, circuit breaker, Phoenix OTLP telemetry, and GuardedBedrockModel proxy
  • docker-compose.yml — self-hosted Arize Phoenix (UI :6006, OTLP :4317)
  • tests/test_harness.py — 25 tests covering all harness components

Wiring:

  • All 5 agent creation functions accept optional circuit breaker
  • SSE stream emits guardrail_halt events on budget/loop violations
  • New endpoints: /api/v1/sessions/{id}/budget, /api/v1/guardrail/status
  • Config: phoenix_, guardrail_ settings with Sonnet pricing defaults

Wraps Bedrock AgentCore execution to audit token I/O at every discrete
reasoning step, acting as a financial circuit breaker that automatically
halts agents exceeding session budgets or stuck in repetitive loops.

New modules:
- src/factor/harness/ — budget tracker, loop detector, circuit breaker,
  Phoenix OTLP telemetry, and GuardedBedrockModel proxy
- docker-compose.yml — self-hosted Arize Phoenix (UI :6006, OTLP :4317)
- tests/test_harness.py — 25 tests covering all harness components

Wiring:
- All 5 agent creation functions accept optional circuit breaker
- SSE stream emits guardrail_halt events on budget/loop violations
- New endpoints: /api/v1/sessions/{id}/budget, /api/v1/guardrail/status
- Config: phoenix_*, guardrail_* settings with Sonnet pricing defaults

https://claude.ai/code/session_016EaoZrc2jxt1SNHipXbCpM
@ATaylorAerospace ATaylorAerospace merged commit 7218b73 into main Jun 6, 2026
0 of 4 checks passed
ATaylorAerospace added a commit that referenced this pull request Jun 6, 2026
Merge pull request #31 from ATaylorAerospace
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.

2 participants