Skip to content

fix(agent): fail closed on policy-pack retrieval errors - #409

Merged
sheawinkler merged 1 commit into
mainfrom
fix/public-agent-policy-pack-degraded-truth
Aug 4, 2026
Merged

fix(agent): fail closed on policy-pack retrieval errors#409
sheawinkler merged 1 commit into
mainfrom
fix/public-agent-policy-pack-degraded-truth

Conversation

@sheawinkler

Copy link
Copy Markdown
Owner

Summary

  • fail closed when scoped policy-pack retrieval has transport, empty-body, JSON, or response-shape failures
  • preserve upstream warnings and add the canonical degraded-memory directive to every degraded outcome
  • add regression coverage and a reproducible v4.0.8 eval ledger, including a response larger than SC_ARG_MAX

Local verification

  • python3 scripts/tests/test_agent_policy_pack.py (7 tests, 15 response cases)
  • shellcheck -x -P scripts/agent_hooks scripts/agent_hooks/agent_policy_pack.sh
  • Python syntax and JSON validation
  • git diff --check
  • changed-file public-boundary scan and full-tree public guard

@github-actions github-actions Bot added the agent-context Agent instructions, hooks, skills, or context routing label Aug 4, 2026
@sheawinkler
sheawinkler merged commit 509afed into main Aug 4, 2026
3 checks passed
@sheawinkler
sheawinkler deleted the fix/public-agent-policy-pack-degraded-truth branch August 4, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context Agent instructions, hooks, skills, or context routing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant