Skip to content

test: add semantic evidence runners - #343

Merged
Sinity merged 1 commit into
masterfrom
feature/test/semantic-evidence-runners
Apr 22, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/test/semantic-evidence-runners

Conversation

@Sinity

@Sinity Sinity commented Apr 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #333.

Adds the first executable proof-evidence consumers on top of the proof-obligation catalog:

  • claim adequacy metadata for runner classes, observed facts, and staleness conditions
  • evidence-classed runner bindings so catalog rows distinguish smoke, structural, and semantic evidence
  • selected JSON command subjects and a Codex provider-filter query-law subject
  • CLI visual, CLI JSON envelope, and semantic query evidence runners that return EvidenceEnvelope values
  • pytest consumers for those runners, including an existing plain-mode assertion augmented with proof evidence

Problem

The proof-obligation catalog from #192 described subjects, claims, and runner bindings, but it did not yet have executable consumers. That left the catalog at risk of being metadata rather than a verification contract, and existing process-output assertions did not produce structured evidence with claim, subject, runner, expected-law, observed-state, and reproducer context.

Solution

polylogue.proof.models now records claim adequacy fields and runner evidence classes. polylogue.proof.catalog binds the initial claims to smoke, structural, and semantic evidence classes, adds JSON envelope and provider-filter query consistency claims, and validates adequacy metadata in catalog quality checks.

polylogue.proof.subjects now contributes selected JSON command subjects plus a static provider-filter query-law subject. polylogue.proof.runners adds the first runner families: CLI visual checks, CLI JSON envelope checks, and semantic query-law checks over observed archive facts.

Tests consume those runners directly in tests/unit/proof/test_evidence_runners.py, and tests/unit/cli/test_deterministic_output.py now augments the existing plain-mode ANSI assertion with a matching EvidenceEnvelope.

Verification

pytest -q -n 0 tests/unit/proof tests/unit/devtools/test_render_verification_catalog.py tests/unit/cli/test_deterministic_output.py
ruff check polylogue/proof tests/unit/proof tests/unit/cli/test_deterministic_output.py tests/unit/devtools/test_render_verification_catalog.py
mypy polylogue/proof
devtools render-all --check
devtools verify --quick
devtools verify
git push -u origin feature/test/semantic-evidence-runners

The push hook reran devtools verify --quick and passed.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 37 minutes and 39 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 37 minutes and 39 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4876000f-2b74-4ca3-9ed6-89ade0441c24

📥 Commits

Reviewing files that changed from the base of the PR and between e8c5e2e and 56410de.

📒 Files selected for processing (11)
  • docs/verification-catalog.md
  • polylogue/proof/__init__.py
  • polylogue/proof/catalog.py
  • polylogue/proof/models.py
  • polylogue/proof/rendering.py
  • polylogue/proof/runners.py
  • polylogue/proof/subjects.py
  • tests/unit/cli/test_deterministic_output.py
  • tests/unit/devtools/test_render_verification_catalog.py
  • tests/unit/proof/test_catalog.py
  • tests/unit/proof/test_evidence_runners.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/test/semantic-evidence-runners

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@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: 56410de522

ℹ️ 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".

Comment thread polylogue/proof/runners.py Resolved
@Sinity
Sinity merged commit 1a6f9a3 into master Apr 22, 2026
13 checks passed
@Sinity
Sinity deleted the feature/test/semantic-evidence-runners branch April 22, 2026 03:26
Sinity added a commit that referenced this pull request Apr 22, 2026
## Summary

Closes #333.

Adds the first executable proof-evidence consumers on top of the proof-obligation catalog:

- claim adequacy metadata for runner classes, observed facts, and staleness conditions
- evidence-classed runner bindings so catalog rows distinguish smoke, structural, and semantic evidence
- selected JSON command subjects and a Codex provider-filter query-law subject
- CLI visual, CLI JSON envelope, and semantic query evidence runners that return `EvidenceEnvelope` values
- pytest consumers for those runners, including an existing plain-mode assertion augmented with proof evidence

## Problem

The proof-obligation catalog from #192 described subjects, claims, and runner bindings, but it did not yet have executable consumers. That left the catalog at risk of being metadata rather than a verification contract, and existing process-output assertions did not produce structured evidence with claim, subject, runner, expected-law, observed-state, and reproducer context.

## Solution

`polylogue.proof.models` now records claim adequacy fields and runner evidence classes. `polylogue.proof.catalog` binds the initial claims to smoke, structural, and semantic evidence classes, adds JSON envelope and provider-filter query consistency claims, and validates adequacy metadata in catalog quality checks.

`polylogue.proof.subjects` now contributes selected JSON command subjects plus a static provider-filter query-law subject. `polylogue.proof.runners` adds the first runner families: CLI visual checks, CLI JSON envelope checks, and semantic query-law checks over observed archive facts.

Tests consume those runners directly in `tests/unit/proof/test_evidence_runners.py`, and `tests/unit/cli/test_deterministic_output.py` now augments the existing plain-mode ANSI assertion with a matching `EvidenceEnvelope`.

## Verification

```bash
pytest -q -n 0 tests/unit/proof tests/unit/devtools/test_render_verification_catalog.py tests/unit/cli/test_deterministic_output.py
ruff check polylogue/proof tests/unit/proof tests/unit/cli/test_deterministic_output.py tests/unit/devtools/test_render_verification_catalog.py
mypy polylogue/proof
devtools render-all --check
devtools verify --quick
devtools verify
git push -u origin feature/test/semantic-evidence-runners
```

The push hook reran `devtools verify --quick` and passed.
Sinity added a commit that referenced this pull request Apr 22, 2026
The proof-obligation catalog from #192 described subjects, claims,
and runner bindings, but didn't yet have executable consumers. The
catalog risked being metadata rather than a verification contract,
and existing process-output assertions didn't produce structured
evidence with claim, subject, runner, expected-law, observed-state,
and reproducer context.

Adds the first executable proof-evidence consumers on top of the
catalog. `proof/models.py` records claim adequacy fields and runner
evidence classes. `proof/catalog.py` binds the initial claims to
smoke / structural / semantic evidence classes, adds JSON envelope
and provider-filter query consistency claims, and validates
adequacy metadata in catalog quality checks. `proof/subjects.py`
contributes selected JSON command subjects plus a static
provider-filter query-law subject. `proof/runners.py` adds the
first runner families: CLI visual checks, CLI JSON envelope checks,
and semantic query-law checks over observed archive facts.

Tests consume those runners directly in
`tests/unit/proof/test_evidence_runners.py`;
`tests/unit/cli/test_deterministic_output.py` augments the existing
plain-mode ANSI assertion with a matching `EvidenceEnvelope`.

Verification: ruff + mypy + pytest over proof / render-verification-
catalog / deterministic-output suites; devtools render-all --check,
verify --quick, and verify green.

Closes #333
Sinity added a commit that referenced this pull request Apr 22, 2026
The proof-obligation catalog from #192 described subjects, claims,
and runner bindings, but didn't yet have executable consumers. The
catalog risked being metadata rather than a verification contract,
and existing process-output assertions didn't produce structured
evidence with claim, subject, runner, expected-law, observed-state,
and reproducer context.

Adds the first executable proof-evidence consumers on top of the
catalog. `proof/models.py` records claim adequacy fields and runner
evidence classes. `proof/catalog.py` binds the initial claims to
smoke / structural / semantic evidence classes, adds JSON envelope
and provider-filter query consistency claims, and validates
adequacy metadata in catalog quality checks. `proof/subjects.py`
contributes selected JSON command subjects plus a static
provider-filter query-law subject. `proof/runners.py` adds the
first runner families: CLI visual checks, CLI JSON envelope checks,
and semantic query-law checks over observed archive facts.

Tests consume those runners directly in
`tests/unit/proof/test_evidence_runners.py`;
`tests/unit/cli/test_deterministic_output.py` augments the existing
plain-mode ANSI assertion with a matching `EvidenceEnvelope`.

Verification: ruff + mypy + pytest over proof / render-verification-
catalog / deterministic-output suites; devtools render-all --check,
verify --quick, and verify green.

Closes #333
Sinity added a commit that referenced this pull request Apr 22, 2026
The proof-obligation catalog from #192 described subjects, claims,
and runner bindings, but didn't yet have executable consumers. The
catalog risked being metadata rather than a verification contract,
and existing process-output assertions didn't produce structured
evidence with claim, subject, runner, expected-law, observed-state,
and reproducer context.

Adds the first executable proof-evidence consumers on top of the
catalog. `proof/models.py` records claim adequacy fields and runner
evidence classes. `proof/catalog.py` binds the initial claims to
smoke / structural / semantic evidence classes, adds JSON envelope
and provider-filter query consistency claims, and validates
adequacy metadata in catalog quality checks. `proof/subjects.py`
contributes selected JSON command subjects plus a static
provider-filter query-law subject. `proof/runners.py` adds the
first runner families: CLI visual checks, CLI JSON envelope checks,
and semantic query-law checks over observed archive facts.

Tests consume those runners directly in
`tests/unit/proof/test_evidence_runners.py`;
`tests/unit/cli/test_deterministic_output.py` augments the existing
plain-mode ANSI assertion with a matching `EvidenceEnvelope`.

Verification: ruff + mypy + pytest over proof / render-verification-
catalog / deterministic-output suites; devtools render-all --check,
verify --quick, and verify green.

Closes #333
@Sinity

Sinity commented Apr 28, 2026

Copy link
Copy Markdown
Owner Author

🤖 Post-hoc audit note: this PR received bot review feedback verified against current HEAD as part of #544. 1 finding(s) confirmed still present → tracked in #550.

@Sinity
Sinity requested review from Copilot and removed request for Copilot May 1, 2026 00:43
@Sinity

Sinity commented Oct 1, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: add semantic evidence runners and claim adequacy

1 participant