Skip to content

Remediation reuses a cached audit made under a different trust target #605

Open

Description

@mlieberman85

Remediation reuses a cached audit (read_full_audit_cache), including the not-applicable claims that audit honored. The cache key doesn't include the trust target the audit ran under. So a remediation run for one target can act on an audit, and the trust decisions in it, made under another.

Found while fixing the remediation trust target (W-07, branch fix-remediation-trust-target): the run itself now takes its target from the caller, but a cached audit can still carry decisions made for a different one.

Fix: include the canonical trust target (or the trust decision) in the cache envelope and key, and treat a mismatch as a miss, the way #549 does for framework and level.

Drafted with Claude Code; reviewed and posted by me.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions