Skip to content

refactor(proof): make Proof Pack evidence taxonomy actionable #855

Closed

Description

@Sinity

Problem

devtools proof-pack --json currently produces too much undifferentiated proof/catalog output for mass-execution agents to use safely.

Current-tree audit evidence:

  • devtools proof-pack --json reports 589 affected obligations and 533 stable affected obligations for proof/catalog-adjacent surfaces.
  • It reports 32 required gates, many of which are genuinely useful commands, but they are mixed with large static obligation output.
  • oracle_mix includes 534 construction_sanity obligations, 37 proof, 12 smoke, 5 drift_check, and 1 manual_review.
  • catalog_quality_checks says serious claims avoid ceremonial/self-attesting evidence even while the output is dominated by construction_sanity and static/catalog-shaped obligations.

The result is not useless, but it is not yet an agent-ready impact report. It should separate real run-now gates from static catalog blast radius and metadata/spec completeness.

Scope

Make Proof Pack output evidence-honest and actionable.

Classify each obligation/gate in generated output as one of:

  • executable behavior evidence;
  • runtime/observability evidence;
  • architectural-boundary/static check;
  • metadata/spec completeness;
  • manual review;
  • advisory/noise.

Then update rendered Proof Pack output so agents see:

  • required gates to run now;
  • optional confidence gates;
  • static/advisory affected obligations that should not block by themselves;
  • metadata-only gaps that need issue tracking, not immediate PR churn;
  • known noisy domains that are unrelated to the changed files.

Likely files:

  • devtools/proof_pack.py
  • polylogue/proof/models.py
  • polylogue/proof/catalog.py
  • polylogue/proof/runners.py
  • polylogue/proof/coverage_manifests.py
  • docs/plans/assurance-domains.yaml
  • docs/plans/oracle-quality.yaml
  • tests/unit/devtools/test_proof_pack.py
  • tests/unit/proof/

Non-goals

  • Do not remove useful proof obligations just because the report is noisy.
  • Do not create new jargon for the same categories; use plain evidence classes.
  • Do not make Proof Pack a substitute for focused tests or devtools verify.
  • Do not claim freshness from static catalog metadata.

Acceptance criteria

  • Proof Pack JSON and markdown distinguish executable/runtime evidence from metadata/spec/static/advisory obligations.
  • The report has a small, obvious "run these now" section for mass-execution agents.
  • Static catalog blast radius is summarized and demoted unless it maps to a concrete gate.
  • construction_sanity obligations are either renamed/classified plainly or excluded from serious behavior-proof counts.
  • Catalog quality checks no longer report "serious claims avoid ceremonial evidence" unless that statement is true under the new classification.
  • Tests cover the classification and at least one proof/catalog-heavy diff case.

Verification

  • pytest tests/unit/devtools/test_proof_pack.py tests/unit/proof -q
  • devtools proof-pack --json
  • devtools proof-pack --check
  • devtools render-verification-catalog --check
  • devtools render-all --check

Refs #853 #806 #807 #852.

Activity

  1. added
    type:refactor
    theme:verifiability
    theme:evidence-trust
    area:devtools
    on May 6, 2026
  2. Sinity commented on May 6, 2026

    @Sinity
    OwnerAuthor

    Agent trap note

    Do not fix Proof Pack noise by hiding everything or by renaming categories while preserving the same undifferentiated report.

    The useful outcome is a report a future agent can act on:

    • run these gates now;
    • these are optional confidence gates;
    • these are static/advisory affected obligations;
    • these are known gaps to track, not immediate blockers;
    • these are unrelated to this diff.

    Speed-up for implementers: add a small fixture/test for a proof/catalog-heavy diff and assert the rendered report has a compact required-gates section plus a demoted static/advisory section.

  3. Sinity commented on May 6, 2026

    @Sinity
    OwnerAuthor

    Additional audit evidence: clean-tree proof-pack noise

    A clean-tree readback on 2026-05-07 exposed a concrete Proof Pack mismatch:

    devtools affected-obligations --json
      affected_obligations: []
      inner_loop_checks: []
      pr_gates: devtools verify --quick, devtools verify
      deployment_gates: devtools build-package, nix flake check
    
    # while:
    devtools proof-pack --json
      affected_obligations: 0
      stable_affected_obligations: 533
      required_gates: 32
      catalog_quality_checks: all ok
      slop_dashboard: null
    

    That is exactly the kind of report shape this issue should fix. With no changed paths, Proof Pack should not make 533 stable obligations and 32 required gates look like change-specific evidence. If these are baseline obligations, render them as baseline/context separately from affected obligations and required gates.

    Acceptance clarification:

    • A clean-tree or no-change proof-pack run should distinguish affected=0 from baseline/stable catalog context.
    • Required gates should be change-driven or explicitly labelled as always-on baseline gates.
    • Catalog quality checks should not report "serious claims avoid ceremonial evidence" while the dominant obligation class is static/construction-sanity unless the report makes that limitation visible.

    Refs #853 #852.

  4. Sinity commented on May 7, 2026

    @Sinity
    OwnerAuthor

    Scope

    Intended scope: Introduce an EvidenceTaxonomy classification for obligations/gates and restructure the Proof Pack output so agents see actionable sections rather than an undifferentiated mass.

    What changes:

    • polylogue/proof/models.py — add EvidenceTaxonomy Literal type
    • devtools/proof_pack.py — add taxonomy classification, group obligations by taxonomy in report, restructure rendered output (markdown + human)
    • tests/unit/devtools/test_proof_pack.py — add tests for taxonomy grouping and clean-tree distinction

    Non-goals:

    • No changes to catalog claims, runners, or obligation compilation
    • No removal of existing obligations or gates
    • No new jargon — taxonomy derived from existing oracle/independence/evidence_class fields
    • Not making Proof Pack a substitute for focused tests

    Taxonomy mapping (derived from existing fields):

    1. executable_behavior — oracle=proof|smoke, or evidence_class in (smoke, semantic, performance)
    2. observability — evidence_class=trace
    3. architectural_static — oracle=drift_check
    4. metadata_spec — oracle=construction_sanity (default), or same_source/self_attesting independence
    5. manual_review — oracle=manual_review
    6. advisory — oracle=ceremonial, or ceremonial independence

    Rendered output sections:

    • Required Gates (run now) — executable_behavior gates for changed paths, plus always-on PR gates
    • Confidence Gates (optional) — deployment/probing gates
    • Affected Obligations by Evidence Taxonomy — grouped by taxonomy with actionability notes
    • Known Gaps (metadata/tracking, not blockers)
    • Catalog Quality — with taxonomy-aware framing

    Clean-tree behavior: When affected=0, report states this clearly and separates baseline catalog stats from change-specific evidence.

    Focused checks: pytest tests/unit/devtools/test_proof_pack.py tests/unit/proof -q, devtools proof-pack --json, devtools proof-pack --check, devtools render-verification-catalog --check, devtools render-all --check

    Issue should close after PR.

  5. added 2 commits that reference this issue on May 7, 2026
    171c345
    26572a5
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

    area:devtoolsarea:qatheme:evidence-trusttheme:verifiabilitytype:refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions