Skip to content

plugin-quality:audit resume rule cannot find the packet findings file after the rename fallback fires #1592

Closed

Description

@kyle-sexton

Follow-up to #1565 / PR #1569. Raised as a P2 review finding on that PR; the fix was pushed after
the squash merge had already landed, so it never reached main. The defect is live.

Problem

plugin-quality:audit 0.2.0 documents a rename fallback: if the subagent report-file guardrail
rejects audit-notes.md too, write the identical content under another non-report name
(audit-data.md), record the substitution in evidence.md, and carry the real filename forward.

But the Resume rule in the same file accepts only two names:

When reading a packet back, accept audit-notes.md or a legacy findings.md — packets
written before this rename still carry the old name, and the resume path must not miss them.

So a compaction occurring after the fallback fired drops the grounded-findings file from the
deterministic recovery path. The later contract-lock and review steps then proceed without the full
findings — which is precisely the loss the evidence packet exists to prevent, and it happens
silently, because the resume rule simply reports no findings file rather than erroring.

The substitution was recorded in evidence.md; the resume rule just never reads it.

Fix

Stop looking for one hardcoded filename:

  1. Read evidence.md first and use the filename it records — that is where the fallback already
    logs the substitution, so it is authoritative for a packet written under any name.
  2. Absent such a record, accept all three known names: audit-notes.md (current), audit-data.md
    (the documented fallback), and a legacy findings.md.
  3. Treat every non-empty file in the packet directory as in-scope rather than concluding the
    findings are gone.

Patch release (0.2.0 → 0.2.1); no contract surface changes beyond the resume rule's own text.

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

    needs-triage

    Type

    No type

    Fields

    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