Skip to content

test(policy): additional coverage gaps for policy_file loading and boundary conditions #1874

@bug-ops

Description

@bug-ops

Context

Post-review of PR #1870. Coverage gaps identified:

  • GAP-03: policy_file external TOML loading is entirely untested (happy-path, FileTooLarge, FileLoad, FileParse)
  • GAP-04: Off-by-one boundary: test only verifies 257 rules rejected (MAX_RULES+1), not that exactly 256 rules compile successfully
  • GAP-05: execute_tool_call_confirmed allow path untested — no test verifying the confirmed call delegates to inner executor on policy allow

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions