Skip to content

refactor(cli): replace proof vocabulary with coverage evidence - #2061

Merged
Sinity merged 2 commits into
masterfrom
feature/refactor/proof-vocabulary-cleanup-1849
Jun 17, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/refactor/proof-vocabulary-cleanup-1849

Conversation

@Sinity

@Sinity Sinity commented Jun 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Replaces the remaining public proof/QA confidence vocabulary with executable artifact coverage and review-evidence surfaces. The useful behavior stays wired into doctor/check, schema explain, showcase QA, generated docs, and tests; the static confidence-story wording is folded out.

Closes #1849.

Problem

#1849 calls out proof/QA/showcase language that looked rigorous but could drift from implementation. The remaining public surfaces still exposed --proof, artifact_proof, proof_report, proof-named validation models, and convergence-proof naming even though the behavior is really artifact coverage or review evidence.

Solution

  • Replace doctor/check --proof with --artifact-coverage, and expose artifact_coverage / coverage_report in typed request/result/rendering paths.
  • Replace schema explain proof wording with --review-evidence, SchemaReviewEvidence, and role-evidence rendering.
  • Rename validation/operator artifact proof models and execution helpers to artifact coverage.
  • Rename showcase QA artifact proof records, stage names, report names, markdown sections, exercise IDs, snapshots, and generated docs to artifact coverage.
  • Rename the daemon convergence integration evidence file/output directory and remove a stale nonexistent clock-allowlist path.
  • Tighten planning/design docs so they reject detached confidence layers without discouraging useful evidence.

Verification

  • devtools test tests/unit/cli/test_check.py tests/unit/cli/test_check_support_runtime.py tests/unit/cli/test_check_rendering_plain_runtime.py tests/unit/cli/test_schema_helper_runtime.py tests/unit/core/test_verification.py tests/unit/core/test_schema_corpus_alignment.py tests/unit/showcase/test_qa_runner.py tests/unit/showcase/test_operator_reporting_runtime.py tests/unit/showcase/test_qa_runner_stages_runtime.py tests/unit/showcase/test_qa_workflow_runtime.py tests/unit/showcase/test_report.py tests/unit/showcase/test_exercise_catalog.py → 189 passed.
  • Stale-vocabulary scans for --proof, artifact_proof, proof_report, SchemaReviewProof, ArtifactProof, QAProof, run_artifact_proof, review_proof, and related public aliases returned no matches on changed public/code surfaces.
  • git diff --check → clean.
  • devtools verify --quick → exit_code 0.
  • Pre-push devtools verify --quick reran on 62a3ed83 → exit_code 0.

Summary by CodeRabbit

  • New Features

    • Added --artifact-coverage option for artifact coverage analysis in health checks.
    • Added --review-evidence flag to the schema explain command for displaying evidence supporting role assignment decisions.
  • Documentation

    • Updated documentation to consistently use "evidence" terminology for clarity.
  • Chores

    • Removed public surface audit script from CI workflow and repository tooling.

Public command and reporting surfaces now describe executable artifact coverage and review evidence instead of proof/QA confidence layers. The doctor/check surface exposes --artifact-coverage and artifact_coverage JSON, schema explain exposes --review-evidence, and showcase QA reports emit artifact coverage payloads and artifacts.

The validation/operator models, generated docs, terminal snapshots, and integration evidence naming were updated together so the terminology points at behavior-backed checks rather than a detached confidence ledger.

Verification:

- devtools test tests/unit/cli/test_check.py tests/unit/cli/test_check_support_runtime.py tests/unit/cli/test_check_rendering_plain_runtime.py tests/unit/cli/test_schema_helper_runtime.py tests/unit/core/test_verification.py tests/unit/core/test_schema_corpus_alignment.py tests/unit/showcase/test_qa_runner.py tests/unit/showcase/test_operator_reporting_runtime.py tests/unit/showcase/test_qa_runner_stages_runtime.py tests/unit/showcase/test_qa_workflow_runtime.py tests/unit/showcase/test_report.py tests/unit/showcase/test_exercise_catalog.py (189 passed)

- rg stale proof/public alias scans over changed public surfaces

- devtools verify --quick
@coderabbitai

coderabbitai Bot commented Jun 17, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: d94d5036-cf93-4e63-a056-fe97509995c7

📥 Commits

Reviewing files that changed from the base of the PR and between e3f0a35 and 0697ee6.

📒 Files selected for processing (84)
  • .github/workflows/ci.yml
  • AGENTS.md
  • devtools/build_topology_projection.py
  • devtools/daemon_workload_probe.py
  • devtools/pages_templates.py
  • devtools/verify.py
  • docs/cli-reference.md
  • docs/design/mk2/coding-agent-pack/07-verification-and-visual-evidence.md
  • docs/devtools.md
  • docs/execution-plan.md
  • docs/internals.md
  • docs/plans/current-issue-execution-control-plane.md
  • docs/plans/import-demo-terminology-floor.md
  • docs/plans/mk3-execution-log.md
  • docs/plans/release-readiness-gate.md
  • docs/plans/test-clock-allowlist.yaml
  • docs/test-quality-workflows.md
  • polylogue/archive/semantic/models.py
  • polylogue/cli/commands/check.py
  • polylogue/cli/commands/schema.py
  • polylogue/cli/query_output.py
  • polylogue/cli/shared/check_models.py
  • polylogue/cli/shared/check_options.py
  • polylogue/cli/shared/check_rendering_json.py
  • polylogue/cli/shared/check_rendering_plain.py
  • polylogue/cli/shared/check_validation.py
  • polylogue/cli/shared/check_workflow.py
  • polylogue/cli/shared/schema_rendering_explain.py
  • polylogue/pipeline/services/ingest_worker.py
  • polylogue/scenarios/assertions.py
  • polylogue/schemas/operator/annotations.py
  • polylogue/schemas/operator/models.py
  • polylogue/schemas/operator/resolution.py
  • polylogue/schemas/operator/verification.py
  • polylogue/schemas/operator/workflow.py
  • polylogue/schemas/validation/artifacts.py
  • polylogue/schemas/validation/models.py
  • polylogue/schemas/validation/requests.py
  • polylogue/showcase/exercise_catalog.json
  • polylogue/showcase/qa_markdown.py
  • polylogue/showcase/qa_runner_models.py
  • polylogue/showcase/qa_runner_reporting.py
  • polylogue/showcase/qa_runner_request.py
  • polylogue/showcase/qa_runner_stages.py
  • polylogue/showcase/qa_runner_workflow.py
  • polylogue/showcase/qa_summary.py
  • polylogue/showcase/report_models.py
  • tests/baselines/showcase/help-doctor.txt
  • tests/baselines/showcase/help-schema-explain.txt
  • tests/integration/test_cli_machine_contract.py
  • tests/integration/test_cli_query_mode.py
  • tests/integration/test_daemon_convergence_evidence.py
  • tests/integration/test_daemon_resilience.py
  • tests/property/test_rendering_preservation.py
  • tests/unit/cli/__snapshots__/test_terminal_snapshots.ambr
  • tests/unit/cli/test_check.py
  • tests/unit/cli/test_check_rendering_plain_runtime.py
  • tests/unit/cli/test_check_support_runtime.py
  • tests/unit/cli/test_deterministic_output.py
  • tests/unit/cli/test_qa_requests.py
  • tests/unit/cli/test_query_exec_laws.py
  • tests/unit/cli/test_query_expression.py
  • tests/unit/cli/test_schema_helper_runtime.py
  • tests/unit/cli/test_verb_cardinality.py
  • tests/unit/core/test_public_surface_origin_vocabulary.py
  • tests/unit/core/test_schema_corpus_alignment.py
  • tests/unit/core/test_verification.py
  • tests/unit/daemon/test_cost_panel_endpoint.py
  • tests/unit/daemon/test_web_reader.py
  • tests/unit/devtools/test_public_surface_audit.py
  • tests/unit/devtools/test_verify.py
  • tests/unit/mcp/test_contract_evidence.py
  • tests/unit/mcp/test_envelope_contracts.py
  • tests/unit/mcp/test_tool_contracts.py
  • tests/unit/showcase/test_exercise_catalog.py
  • tests/unit/showcase/test_operator_reporting_runtime.py
  • tests/unit/showcase/test_qa_runner.py
  • tests/unit/showcase/test_qa_runner_request.py
  • tests/unit/showcase/test_qa_runner_stages_runtime.py
  • tests/unit/showcase/test_qa_workflow_runtime.py
  • tests/unit/showcase/test_report.py
  • tests/unit/storage/test_archive_tiers_write.py
  • tests/unit/storage/test_blob_gc_lease_recovery.py
  • tools/cleanup/polylogue_public_surface_audit.sh

📝 Walkthrough

Walkthrough

Renames all "proof" terminology to "evidence" or "coverage" across the codebase: ArtifactProofReport/Request → ArtifactCoverageReport/Request, build_review_proof → build_review_evidence, --proof CLI flags → --artifact-coverage/--review-evidence, and QA runner proof stage → artifact coverage stage. Also removes tools/cleanup/polylogue_public_surface_audit.sh and its CI, devtools, and test wiring.

Changes

Proof → Evidence/Coverage Rename and Audit Removal

Layer / File(s) Summary
Public-surface audit script removal
tools/cleanup/polylogue_public_surface_audit.sh, .github/workflows/ci.yml, devtools/verify.py, tests/unit/devtools/test_public_surface_audit.py, tests/unit/devtools/test_verify.py
Deletes the shell script, removes its CI lint-job installation/execution steps, removes it from build_verify_steps(), and deletes the full test module that validated the script's behavior.
Core validation models: Proof→Coverage types
polylogue/schemas/validation/models.py, polylogue/schemas/validation/requests.py, polylogue/schemas/validation/artifacts.py
Renames ArtifactProof* TypedDicts, dataclasses, and count-kind types to ArtifactCoverage*; renames ArtifactProofRequest → ArtifactCoverageRequest; renames the entrypoint prove_raw_artifact_coverage → inspect_raw_artifact_coverage returning ArtifactCoverageReport; updates __all__ exports.
Schema operator: proof→evidence review surface
polylogue/schemas/operator/models.py, polylogue/schemas/operator/annotations.py, polylogue/schemas/operator/resolution.py, polylogue/schemas/operator/verification.py, polylogue/schemas/operator/workflow.py
Replaces SchemaRoleProofEntry/SchemaReviewProof/ArtifactProofResult with evidence/coverage equivalents; renames build_review_proof → build_review_evidence; swaps run_artifact_proof for run_artifact_coverage in verification and workflow exports; updates SchemaExplainRequest.proof → review_evidence.
CLI doctor: --proof → --artifact-coverage
polylogue/cli/commands/check.py, polylogue/cli/shared/check_options.py, polylogue/cli/shared/check_models.py, polylogue/cli/shared/check_workflow.py, polylogue/cli/shared/check_validation.py, polylogue/cli/shared/check_rendering_json.py, polylogue/cli/shared/check_rendering_plain.py
Adds --artifact-coverage Click flag replacing --proof; updates CheckCommandOptions.check_artifact_coverage, CheckCommandResult.coverage_report; wires run_artifact_coverage into workflow; updates validation companion-flag requirements; replaces proof plain-text rendering helper with coverage helper.
CLI schema explain: --proof → --review-evidence
polylogue/cli/commands/schema.py, polylogue/cli/shared/schema_rendering_explain.py
Renames the schema explain --proof flag to --review-evidence; updates function parameter; replaces _render_proof_surface with _render_review_evidence_surface.
QA runner pipeline: proof→coverage stage
polylogue/showcase/qa_runner_models.py, polylogue/showcase/qa_runner_request.py, polylogue/showcase/qa_runner_stages.py, polylogue/showcase/qa_runner_workflow.py, polylogue/showcase/qa_runner_reporting.py
Replaces QAResult.proof_* fields with coverage_*; renames skip_proof → skip_coverage; replaces populate_proof stage with populate_artifact_coverage; wires coverage population into audit and main QA session paths; writes artifact-coverage.json in reporting.
QA session records and reporting
polylogue/showcase/report_models.py, polylogue/showcase/qa_summary.py, polylogue/showcase/qa_markdown.py, polylogue/showcase/exercise_catalog.json
Introduces QAArtifactCoverageRecord replacing QAProofRecord; updates QASessionRecord.artifact_coverage field and serialization; updates generate_qa_summary and generate_qa_markdown to source from artifact_coverage; updates exercise catalog entry to --artifact-coverage.
Semantic fact models
polylogue/archive/semantic/models.py
Renames to_proof_input() → to_evidence_input() on all six exported semantic fact dataclasses.
Core validation and schema operator tests
tests/unit/core/test_verification.py, tests/unit/core/test_schema_corpus_alignment.py, tests/unit/cli/test_schema_helper_runtime.py, tests/unit/core/test_public_surface_origin_vocabulary.py
Renames test classes from Proof* to Coverage*/Evidence*; swaps build_review_proof for build_review_evidence; updates schema helper tests to use evidence types; removes test_public_surface_does_not_bind_provider_enum.
CLI check, doctor, and query tests
tests/unit/cli/test_check.py, tests/unit/cli/test_check_rendering_plain_runtime.py, tests/unit/cli/test_check_support_runtime.py, tests/unit/cli/test_deterministic_output.py, tests/unit/cli/test_qa_requests.py, tests/unit/cli/test_query_exec_laws.py, tests/unit/cli/test_query_expression.py, tests/unit/daemon/test_cost_panel_endpoint.py, tests/unit/daemon/test_web_reader.py, tests/unit/mcp/test_envelope_contracts.py, tests/unit/mcp/test_tool_contracts.py
Replaces --proof with --artifact-coverage in CLI invocations; removes loosened provider field absence assertions; removes count field absence assertions from envelope contracts.
Showcase/QA runner tests
tests/unit/showcase/test_qa_runner*.py, tests/unit/showcase/test_operator_reporting_runtime.py, tests/unit/showcase/test_report.py, tests/unit/showcase/test_exercise_catalog.py
Updates all QA runner/workflow/stages/request tests to use coverage fields and populate_artifact_coverage; updates report and operator reporting tests to expect ArtifactCoverageReport/artifact-coverage.json; updates exercise catalog test.
Integration tests, baselines, and minor wording
tests/integration/test_daemon_convergence_evidence.py, tests/integration/test_daemon_resilience.py, tests/baselines/showcase/help-doctor.txt, tests/baselines/showcase/help-schema-explain.txt, tests/unit/cli/__snapshots__/test_terminal_snapshots.ambr, docs/plans/test-clock-allowlist.yaml, tests/unit/storage/...
Renames convergence test to write to .local/convergence-evidence/; updates CLI help baselines for doctor and schema explain; updates test clock allowlist; updates integration test docstrings and minor wording in storage tests.
Documentation and devtools terminology
AGENTS.md, docs/devtools.md, docs/internals.md, docs/execution-plan.md, docs/cli-reference.md, docs/plans/*, devtools/pages_templates.py, devtools/build_topology_projection.py, devtools/daemon_workload_probe.py, polylogue/pipeline/services/ingest_worker.py, polylogue/scenarios/assertions.py
Replaces "proof" with "evidence/validation/coverage" in all documentation, devtools templates, and non-functional code comments/docstrings.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related issues

  • #1849 (Replace proof theater with code-coupled tests): This PR directly executes the #1849 mandate by replacing ArtifactProof* types with ArtifactCoverage*, removing the public-surface audit shell script and its CI wiring, renaming --proof CLI flags to --artifact-coverage/--review-evidence, and eliminating QAProofRecord/proof_report from the QA runner pipeline.

Possibly related PRs

  • Sinity/polylogue#577: Both PRs modify devtools/verify.py's build_verify_steps() step pipeline — this PR removes the public-surface-audit step while #577 swapped in different baseline verification commands.
  • Sinity/polylogue#1073: Both PRs modify build_verify_steps gate-step selection logic — this PR removes public-surface-audit, while #1073 swapped the proof-pack check for affected-obligations.
  • Sinity/polylogue#1329: Both PRs drop audit-related gates from devtools/verify.py's build_verify_steps() — this PR removes public-surface-audit, #1329 removed verify-cross-cuts.

Poem

🐇 Hop hop, the proof words fade away,
Now "evidence" and "coverage" hold the day!
The audit shell script? Gone for good,
Coverage reports work just as they should.
No more --proof flags lingering near,
--artifact-coverage makes it crystal clear! ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/proof-vocabulary-cleanup-1849

github-actions Bot pushed a commit that referenced this pull request Jun 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62a3ed83c0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Delete the public-surface vocabulary audit and its test instead of maintaining a separate rename-policing layer. The quick verify gate and CI no longer run the shell audit, and nearby tests keep positive payload/source projection behavior without asserting old field names stay absent.

Verification:

- rg scan for public-surface-audit/polylogue_public_surface_audit references

- rg scan for rename-policing phrases in tests/devtools/docs

- devtools test focused changed test set (38 passed)

- devtools verify --quick
@Sinity

Sinity commented Jun 17, 2026

Copy link
Copy Markdown
Owner Author

Addressed the review by deleting the public-surface vocabulary audit and its unit test instead of repairing the seeded term. Also removed the audit from local {
"timestamp": "2026-06-17T17:38:45.819348+00:00",
"git_head": "e3f0a354f16a96b8a684db09a1c17583f26be8c0",
"tier": "quick",
"steps": [
{
"name": "ruff format",
"duration_s": 0.04,
"exit": 0
},
{
"name": "ruff check",
"duration_s": 0.02,
"exit": 0
},
{
"name": "mypy",
"duration_s": 4.35,
"exit": 0
},
{
"name": "render-all",
"duration_s": 2.08,
"exit": 0
},
{
"name": "verify-topology",
"duration_s": 0.38,
"exit": 0
},
{
"name": "verify-layering",
"duration_s": 1.0,
"exit": 0
},
{
"name": "verify-closure-matrix",
"duration_s": 0.28,
"exit": 0
},
{
"name": "verify-schema-roundtrip",
"duration_s": 0.8,
"exit": 0
},
{
"name": "verify-manifests",
"duration_s": 2.06,
"exit": 0
},
{
"name": "verify-ci-workflows",
"duration_s": 0.29,
"exit": 0
},
{
"name": "verify-doc-commands",
"duration_s": 1.26,
"exit": 0
},
{
"name": "verify-lane-assertions",
"duration_s": 0.78,
"exit": 0
},
{
"name": "verify-test-infra-currency",
"duration_s": 0.31,
"exit": 0
},
{
"name": "verify-test-clock-hygiene",
"duration_s": 1.49,
"exit": 0
},
{
"name": "public-surface-audit",
"duration_s": 0.09,
"exit": 0
}
],
"total_duration_s": 15.55,
"exit_code": 0
} and CI, and culled nearby old-name absence assertions while keeping positive payload/source projection checks. Verification: focused changed tests passed (38 selected) and {
"timestamp": "2026-06-17T17:38:57.423485+00:00",
"git_head": "e3f0a354f16a96b8a684db09a1c17583f26be8c0",
"tier": "quick",
"steps": [
{
"name": "ruff format",
"duration_s": 0.01,
"exit": 0
},
{
"name": "ruff check",
"duration_s": 0.01,
"exit": 0
},
{
"name": "mypy",
"duration_s": 0.55,
"exit": 0
},
{
"name": "render-all",
"duration_s": 2.03,
"exit": 0
},
{
"name": "verify-topology",
"duration_s": 0.38,
"exit": 0
},
{
"name": "verify-layering",
"duration_s": 1.0,
"exit": 0
},
{
"name": "verify-closure-matrix",
"duration_s": 0.26,
"exit": 0
},
{
"name": "verify-schema-roundtrip",
"duration_s": 0.85,
"exit": 0
},
{
"name": "verify-manifests",
"duration_s": 2.01,
"exit": 0
},
{
"name": "verify-ci-workflows",
"duration_s": 0.29,
"exit": 0
},
{
"name": "verify-doc-commands",
"duration_s": 1.23,
"exit": 0
},
{
"name": "verify-lane-assertions",
"duration_s": 0.77,
"exit": 0
},
{
"name": "verify-test-infra-currency",
"duration_s": 0.29,
"exit": 0
},
{
"name": "verify-test-clock-hygiene",
"duration_s": 1.34,
"exit": 0
},
{
"name": "public-surface-audit",
"duration_s": 0.08,
"exit": 0
}
],
"total_duration_s": 11.36,
"exit_code": 0
} passed locally and in pre-push.

@Sinity
Sinity merged commit c801f21 into master Jun 17, 2026
14 of 15 checks passed
@Sinity
Sinity deleted the feature/refactor/proof-vocabulary-cleanup-1849 branch June 17, 2026 17:41
@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace proof theater with code-coupled tests

1 participant