Skip to content

test: add precheck API policy regression coverage#32

Open
Shaivpidadi wants to merge 3 commits intodevfrom
feat/vega-gov-589-precheck-policy-regression
Open

test: add precheck API policy regression coverage#32
Shaivpidadi wants to merge 3 commits intodevfrom
feat/vega-gov-589-precheck-policy-regression

Conversation

@Shaivpidadi
Copy link
Copy Markdown
Member

@Shaivpidadi Shaivpidadi commented Apr 24, 2026

Summary

  • cover every tool in policy.tool_access.yaml across both static-YAML and dynamic-payload precheck paths
  • preserve legacy allowed:/tokenized:/redacted: reason codes alongside pii.* reason codes for backward compatibility
  • lock static-path budget enforcement, unknown-tool default-redact reasons, and dashed/undashed SSN tokenization

Files touched

  • app/policies.py
  • tests/api/init.py
  • tests/api/test_precheck_policy_regression.py

Verification

  • cd precheck && venv/bin/pytest --no-cov -q tests

Related

  • MUL-589

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant