Repository navigation
test: add semantic evidence runners - #343
Conversation
|
Warning Rate limit exceeded
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 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (11)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 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".
## 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.
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
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
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
|
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. |
Summary
Closes #333.
Adds the first executable proof-evidence consumers on top of the proof-obligation catalog:
EvidenceEnvelopevaluesProblem
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.modelsnow records claim adequacy fields and runner evidence classes.polylogue.proof.catalogbinds 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.subjectsnow contributes selected JSON command subjects plus a static provider-filter query-law subject.polylogue.proof.runnersadds 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, andtests/unit/cli/test_deterministic_output.pynow augments the existing plain-mode ANSI assertion with a matchingEvidenceEnvelope.Verification
The push hook reran
devtools verify --quickand passed.