Skip to content

An intent finding verified satisfied cannot be cleared, so a correct resync can never produce a clean run #727

Closed

Description

@ptr727

An intent finding says the copy "possibly trails the hub, verify intent per AUDIT.md section 7". AUDIT.md section 7 gives the verdict model, and a verified-satisfied intent check is a pass. There is nowhere to record that pass, so the next audit prints the identical finding.

check_intent_staleness clears on exactly two conditions (spec/audit.py:1351): the downstream copy is byte-identical to the canonical, or the copy's last commit is newer than the canonical's. An intent file is adapted by definition, so the first can never hold. The second is a commit touching the file. The only way to clear a verified intent finding is to edit a file that does not need editing.

What this looked like in practice

The ESPHome-Config resync read the hub's full change history behind each of four flagged files and found nothing to adopt: every hub change behind .editorconfig and .gitattributes touches scripts/, host-setup/, catalog/ or .husky/, none of which that repo carries, and cspell.json's added words are hub host-setup vocabulary. That is the verification the finding asks for, it concluded "intent satisfied", and all four will report again on the next run and every run after it.

The cost is not the noise itself. RESYNC.md ends "done means measured, not applied", and AUDIT.md section 8 has a conformance claim quote its run stamp. A repo that has done the work correctly cannot produce a clean run, so the reader of a report cannot separate "verified, nothing to adopt" from "nobody looked". The audit already treats that ambiguity as worth fixing elsewhere: a driftNote asserting outstanding work is flagged as contradicted by a clean audit.

Shapes that would close it

Not a recommendation, just what seems available:

  1. A per-file acknowledgement, the repo recording "verified against hub <sha>, nothing to adopt", which the check reads as a floor instead of the file's commit date. Costs a committed artifact, and gains an auditable statement of who checked what and when.
  2. Demote it below a finding, printed as a note the way the host gate prints its per-tool notes, so it informs a resync without standing as drift.
  3. Leave it and say so, documenting in AUDIT.md section 7 that an intent finding is expected to stand after verification and does not count against a clean run.

#726 on intentRef is adjacent but separate: fixing the comparand changes which file the date comes from, not that a date comparison cannot express "checked, nothing owed".

Found during the ESPHome-Config resync, audit run 2026-08-15T14:30:53Z | hub 0e84805.

Activity

  1. added
    bug
    on Aug 15, 2026
  2. ptr727 commented on Aug 15, 2026

    @ptr727
    OwnerAuthor

    Another instance from HomeAutomation-Config (audit run 2026-08-15T18:22:19Z | hub b09078e, main at 22ed137): its .editorconfig and .gitattributes are a deliberate LF adaptation (registry lineEndings: lf), so they will never be touched to track a hub change that only moves the CRLF default or a hub-tree-specific pin, and the advisory reports them as possibly trailing on every run. Judged current by meaning twice today (ptr727/HomeAutomation-Config#51, #54) with no way to record that verdict where the next run reads it. An intent unit whose repo-side value is chosen by the registry, as lineEndings chooses these two, seems like the clearest case for whatever clearing mechanism this issue lands on.

  3. added
    script
    on Sep 5, 2026
  4. ptr727 commented on Oct 27, 2026

    @ptr727
    OwnerAuthor

    Another instance. In the ESPHome-NonRoot audit run 2026-10-27T22:57:32Z | hub 1faf16c7 | branch override develop, cspell.json is flagged against 187a81b (#2858). That commit removes one word from the hub dictionary, a word the downstream dictionary never carried. Verified satisfied, but the only way to clear the finding is an unneeded edit to cspell.json.

  5. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Decision needed (decision triage, 2026-11-01)

    Question: How should a verified-satisfied intent finding from check_intent_staleness (spec/audit.py:1482) be cleared: a per-file acknowledgement, demoting it to a note, or documenting in AUDIT.md section 7 that it stays standing?

    Options, recommended first:

    1. A hub registry driftNote acknowledgement tied to a sha (recommended): Reuse the driftNote suppression shape filenaming.scripts uses (check id plus path), adding the hub canonical sha the copy was verified against, so the finding clears until the canonical moves. The record lives in the hub registry, fitting AUDIT.md section 8's rule that the hub authors the evidence. Needs a check id for the advisory (now folded into files.presence) and a suppression entry in spec/checks.json. Complements An Anchored intentRef Is Dated by Its Whole File, So Unrelated Doc Edits Flag Line-Ending and Versioning Copies #1819. No work in flight.
    2. Demote it to a note: Prints outside the finding count like host-gate per-tool notes, cheap and clean, but "verified, nothing to adopt" and "nobody looked" still read the same. No work in flight.
    3. Per-file acknowledgement in the downstream repository: Auditable, but a claim the audited repo makes about itself, which section 8 says the hub should not take as evidence, plus a new carried artifact everywhere. No work in flight.
    4. Leave it, document it in section 7: No code, but a correctly resynced repo can never produce a clean run, in tension with RESYNC.md's "done means measured". No work in flight.

    Evidence: spec/audit.py:1482-1512 clears only on a content-hash match or a downstream commit dated after the canonical's last change. spec/checks.json:15 folds the advisory into files.presence. spec/checks.json:8, 11 and is_suppression_id (audit.py:706) are the existing suppression mechanism. AUDIT.md section 7 (line 192) has no wording for this case. The 2026-08-15 and 2026-10-27 comments add further instances.

    Blocks: none

  6. added
    decision
    on Nov 1, 2026
  7. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer (decision triage, 2026-11-01): Option 1: a hub registry driftNote acknowledgement tied to the verified canonical sha, reusing the driftNote suppression shape, with a check id for the advisory and a suppression entry in spec/checks.json. This is now work for the next burndown round.

  8. removed
    decision
    on Nov 1, 2026
  9. ptr727 commented on Nov 2, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-02): PR #3811 merged to develop and its branch is deleted, so this claim holds no files. The issue closes on promotion.

    Backlog burndown claim (away run 2026-11-02, round 1, group G2). Branch: burndown/1819-audit-intent. Issues: #1819, #727, #3710, #3706, #3623.

    Predicted file set:

    • spec/audit.py, spec/checks.json, spec/fidelity_text.py, spec/validate.py, spec/fidelity-model.md
    • registry/repos.json, registry/repos.schema.json
    • AUDIT.md
    • tests/test_audit.py, tests/test_audit_helpers.py, tests/test_audit_size.py, tests/test_fidelity_text.py, tests/test_spec_validate.py

    Out of bounds for this group: .agents/skills/* (no skill text changes in this group), GOVERNANCE.md, .github/workflows/* and .github/actions/* (open PR #3801).

    Scope: develop only. The feature pull request carries Closes on promotion: for each issue it fully fixes.

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

    bugscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions