Repository navigation
test: add structural error proof evidence - #351
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (13)
📝 WalkthroughWalkthroughThe pull request introduces structural graph, error semantics, and crash consistency proof capabilities to the verification subsystem by adding new artifact path definitions, proof claims (artifact.path.dependency_closure, maintenance.repair.crash_consistency, parser.quarantine.context_redaction, error.machine_user_context), corresponding subject compilation functions, runner implementations with observation types, and comprehensive unit tests validating evidence generation. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 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: 19a1aaa59f
ℹ️ 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 #340. Adds structural proof subjects and evidence runners for runtime artifact paths, maintenance repair crash-consistency, parser quarantine redaction, and machine/user error context. Also fixes a markdown rendering preservation bug exposed by the full local verification baseline. ## Problem The proof catalog covered CLI, schema, provider, and operation metadata, but it did not yet prove archive structure, destructive/repair state effects, parser quarantine diagnostics, or machine-readable/user-facing error context. #340 also requires at least one synthetic archive exercise for crash/interruption semantics and privacy-safe quarantine evidence. While running the full baseline, Hypothesis exposed that a message body line beginning with `## ` could masquerade as a renderer message section and break markdown message-count preservation. ## Solution - Added `artifact.path`, `maintenance.target`, and `error.surface` proof subjects. - Added the `raw-session-product-repair-loop` curated artifact path so one structural invariant spans raw validation, archive core rows, derived session-product rows, FTS, and projected readiness. - Added catalog claims and runner bindings for: - `artifact.path.dependency_closure` - `maintenance.repair.crash_consistency` - `parser.quarantine.context_redaction` - `error.machine_user_context` - Added observation-based proof runners for structural paths, maintenance repair state effects, quarantine context/redaction, and generic machine/user error context. - Added synthetic tests that exercise orphan-message dry-run/repair/idempotence, ambiguous vs rolled-back repair failure state, malformed Codex JSONL quarantine redaction, and structured error context. - Escaped markdown message body lines starting with `## ` so body text cannot be counted as renderer section headers. - Regenerated `docs/verification-catalog.md` and `docs/test-quality-workflows.md`. ## Verification - `pytest tests/unit/proof/test_catalog.py tests/unit/proof/test_structural_error_evidence.py -q` - `pytest tests/unit/proof -q` - `ruff check polylogue/artifacts.py polylogue/proof tests/unit/proof` - `ruff format --check polylogue/artifacts.py polylogue/proof tests/unit/proof` - `devtools render-all --check` - `mypy polylogue/` - `pytest tests/unit/core/test_artifact_graph.py tests/unit/core/test_artifact_specs.py tests/unit/devtools/test_scenario_coverage.py tests/unit/proof -q` - `pytest tests/property/test_rendering_preservation.py::test_markdown_preserves_message_count tests/unit/rendering/test_rendering.py::TestFormatConversationMarkdownNoneGuards::test_message_text_heading_marker_does_not_create_extra_section -q` - `devtools verify` - pre-push `devtools verify --quick`
The proof catalog covered CLI, schema, provider, and operation metadata, but didn't yet prove archive structure, destructive/ repair state effects, parser quarantine diagnostics, or machine-readable/user-facing error context. #340 also required at least one synthetic archive exercise for crash/interruption semantics and privacy-safe quarantine evidence. While running the full baseline, Hypothesis exposed that a message body line beginning with `## ` could masquerade as a renderer message section and break markdown message-count preservation. Adds `artifact.path`, `maintenance.target`, and `error.surface` proof subjects. Adds the `raw-session-product-repair-loop` curated artifact path so one structural invariant spans raw validation, archive core rows, derived session-product rows, FTS, and projected readiness. Adds catalog claims and runner bindings for `artifact.path.dependency_closure`, `maintenance.repair.crash_consistency`, `parser.quarantine.context_redaction`, and `error.machine_user_context`. Adds observation-based proof runners and synthetic tests exercising orphan-message dry-run/repair/ idempotence, ambiguous vs rolled-back repair failure state, malformed Codex JSONL quarantine redaction, and structured error context. Escapes markdown message body lines starting with `## ` so body text can't be counted as renderer section headers. Verification: ruff + mypy + pytest over proof / artifact-graph / scenario-coverage / rendering suites; devtools render-all --check, verify and --quick green. Closes #340
The proof catalog covered CLI, schema, provider, and operation metadata, but didn't yet prove archive structure, destructive/ repair state effects, parser quarantine diagnostics, or machine-readable/user-facing error context. #340 also required at least one synthetic archive exercise for crash/interruption semantics and privacy-safe quarantine evidence. While running the full baseline, Hypothesis exposed that a message body line beginning with `## ` could masquerade as a renderer message section and break markdown message-count preservation. Adds `artifact.path`, `maintenance.target`, and `error.surface` proof subjects. Adds the `raw-session-product-repair-loop` curated artifact path so one structural invariant spans raw validation, archive core rows, derived session-product rows, FTS, and projected readiness. Adds catalog claims and runner bindings for `artifact.path.dependency_closure`, `maintenance.repair.crash_consistency`, `parser.quarantine.context_redaction`, and `error.machine_user_context`. Adds observation-based proof runners and synthetic tests exercising orphan-message dry-run/repair/ idempotence, ambiguous vs rolled-back repair failure state, malformed Codex JSONL quarantine redaction, and structured error context. Escapes markdown message body lines starting with `## ` so body text can't be counted as renderer section headers. Verification: ruff + mypy + pytest over proof / artifact-graph / scenario-coverage / rendering suites; devtools render-all --check, verify and --quick green. Closes #340
The proof catalog covered CLI, schema, provider, and operation metadata, but didn't yet prove archive structure, destructive/ repair state effects, parser quarantine diagnostics, or machine-readable/user-facing error context. #340 also required at least one synthetic archive exercise for crash/interruption semantics and privacy-safe quarantine evidence. While running the full baseline, Hypothesis exposed that a message body line beginning with `## ` could masquerade as a renderer message section and break markdown message-count preservation. Adds `artifact.path`, `maintenance.target`, and `error.surface` proof subjects. Adds the `raw-session-product-repair-loop` curated artifact path so one structural invariant spans raw validation, archive core rows, derived session-product rows, FTS, and projected readiness. Adds catalog claims and runner bindings for `artifact.path.dependency_closure`, `maintenance.repair.crash_consistency`, `parser.quarantine.context_redaction`, and `error.machine_user_context`. Adds observation-based proof runners and synthetic tests exercising orphan-message dry-run/repair/ idempotence, ambiguous vs rolled-back repair failure state, malformed Codex JSONL quarantine redaction, and structured error context. Escapes markdown message body lines starting with `## ` so body text can't be counted as renderer section headers. Verification: ruff + mypy + pytest over proof / artifact-graph / scenario-coverage / rendering suites; devtools render-all --check, verify and --quick green. Closes #340
|
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. |
|
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 #340.
Adds structural proof subjects and evidence runners for runtime artifact paths, maintenance repair crash-consistency, parser quarantine redaction, and machine/user error context. Also fixes a markdown rendering preservation bug exposed by the full local verification baseline.
Problem
The proof catalog covered CLI, schema, provider, and operation metadata, but it did not yet prove archive structure, destructive/repair state effects, parser quarantine diagnostics, or machine-readable/user-facing error context. #340 also requires at least one synthetic archive exercise for crash/interruption semantics and privacy-safe quarantine evidence.
While running the full baseline, Hypothesis exposed that a message body line beginning with
##could masquerade as a renderer message section and break markdown message-count preservation.Solution
artifact.path,maintenance.target, anderror.surfaceproof subjects.raw-session-product-repair-loopcurated artifact path so one structural invariant spans raw validation, archive core rows, derived session-product rows, FTS, and projected readiness.artifact.path.dependency_closuremaintenance.repair.crash_consistencyparser.quarantine.context_redactionerror.machine_user_context##so body text cannot be counted as renderer section headers.docs/verification-catalog.mdanddocs/test-quality-workflows.md.Verification
pytest tests/unit/proof/test_catalog.py tests/unit/proof/test_structural_error_evidence.py -qpytest tests/unit/proof -qruff check polylogue/artifacts.py polylogue/proof tests/unit/proofruff format --check polylogue/artifacts.py polylogue/proof tests/unit/proofdevtools render-all --checkmypy polylogue/pytest tests/unit/core/test_artifact_graph.py tests/unit/core/test_artifact_specs.py tests/unit/devtools/test_scenario_coverage.py tests/unit/proof -qpytest tests/property/test_rendering_preservation.py::test_markdown_preserves_message_count tests/unit/rendering/test_rendering.py::TestFormatConversationMarkdownNoneGuards::test_message_text_heading_marker_does_not_create_extra_section -qdevtools verifydevtools verify --quick