Skip to content

Fail Closed on a Malformed inheritingAgentTypes in the Tier Guard #4291

Closed

Description

@ptr727

The tier guard's mapping reader (host-setup/agent-safety/claude/model-tier-guard.py, load_tiers) lower-cases every entry of inheritingAgentTypes in a set comprehension. A non-string entry, or a value that is not a list, raises AttributeError or TypeError outside the try that returns the fail-closed None. The hook then exits non-zero, which lets the dispatch through.

No current input reaches it: spec/validate.py checks the key's shape, and the deployed mapping is a copy of the validated file. It takes a hand-edited or partially deployed mapping.

Fix: validate that the optional field is a list of strings inside the existing try, and return the fail-closed None where it is not. Raised by the review of #4290 as a P1 latent edge.

Activity

  1. added a commit that references this issue on Nov 19, 2026
    b352fb9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions