Skip to content

agent-compliance: verify.py missing key validation in _check_control #157

@imran-siddique

Description

@imran-siddique

Problem

_check_control() accesses spec['module'], spec['check'], spec['name'] without validation. Malformed entries raise KeyError.

File: src/agent_compliance/verify.py (lines 264-267)

Suggested Fix

Use spec.get() with fallbacks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions