Skip to content

fix(proof): add consumer-side checks for product surfaces #580

Closed as not planned

Description

@Sinity

Summary

Product proof currently verifies that registered products generate proof subjects, but it does not verify that expected consumers exist. This lets registry additions look proof-covered even when readiness/status, API, CLI, MCP, export, or scenario consumers lag behind.

Parent: #578

Evidence

  • polylogue/proof/subjects.py:178 builds product.surface subjects directly from PRODUCT_REGISTRY.items().
  • polylogue/proof/catalog.py:786 defines product.surface.registered as "Every registered product type has a corresponding proof subject."
  • polylogue/proof/catalog.py:933 binds these claims to product-surface-static-contract.

This construction cannot catch product consumer drift because the registry is both the declaration source and the proof-subject source.

Acceptance criteria

  • Product surface proof includes consumer-side claims, not only registry-subject construction.
  • At minimum, expected product consumers are checked or explicitly classified: operations method, CLI command, API/sync API where applicable, MCP tool where applicable, export bundle/readiness where applicable, and test/scenario evidence.
  • A registered product missing an expected consumer fails a proof/devtools check.
  • The check catches the current session_costs / cost_rollups / archive_debt readiness drift before that drift is fixed.

Activity

  1. added
    type:fix
    theme:verifiability
    theme:proof-kernel
    area:devtools
    on May 1, 2026
  2. Sinity commented on May 1, 2026

    @Sinity
    OwnerAuthor

    Superseded by #624. I consolidated this finding into the composite issue so the work can be handled as one coherent slice instead of as a tiny standalone ticket. The original evidence remains available in this issue history.

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:devtoolstheme:proof-kerneltheme:verifiabilitytool:codextype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions