Repository navigation
test: add generated scenario proof subjects - #356
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 (9)
📝 WalkthroughWalkthroughThis pull request adds support for "generated scenario families" as a new proof subject type in the verification catalog system. It introduces new data models, catalog claims, an evidence runner, and comprehensive tests to enable proof-based validation of generated scenario characteristics including registration, local determinism, and semantic claim mappings. Changes
Sequence DiagramsequenceDiagram
participant Catalog as Verification Catalog
participant Subject as Generated Scenario Subject
participant Obligation as Proof Obligation
participant Runner as Evidence Runner
participant Evidence as Evidence Envelope
Catalog->>Subject: discover generated scenario families
Subject->>Subject: compile to SubjectRef with metadata
Catalog->>Obligation: create obligations from subjects × claims
Obligation->>Runner: dispatch run_generated_scenario_evidence()
Runner->>Subject: extract attrs (status, world, workload, claims)
Runner->>Runner: validate presence/validity of attributes
Runner->>Runner: compute check fields (determinism, dependency, mapping)
Runner->>Evidence: generate EvidenceEnvelope with outcome
Evidence->>Obligation: record observed_state & outcome status
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 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: 865d93e986
ℹ️ 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 #196. Adds generated-world and workload scenario families to the proof-obligation catalog so missing generated validation coverage is visible as proof subjects instead of relying on ad hoc live/archive checks. ## Problem The proof catalog had command, schema, provider, operation, artifact, repair, error, trace, diagnostic, and workflow subjects, but the missing generated scenario families from #196 were still not first-class proof subjects. That left generated coverage gaps documented in prose rather than routable through catalog claims and affected-obligation checks. ## Solution - Added `generated.scenario_family` subjects for nine generated-world/workload families. - Added three generated-scenario claims for family registration, deterministic local implemented scenarios, and semantic claim mapping. - Added a static evidence runner for generated scenario claims. - Marked implemented local deterministic families for pathological raw reruns, destructive-preview safety, repair convergence, and archive substrate laws. - Marked remaining generated families as explicit migration tasks with issue-linked semantic claim mappings. - Updated the generated verification catalog and proof tests. ## Verification - `ruff check polylogue/proof tests/unit/proof/test_generated_scenario_obligations.py tests/unit/proof/test_catalog.py` - `pytest -q tests/unit/proof/test_catalog.py tests/unit/proof/test_generated_scenario_obligations.py tests/unit/proof/test_structural_error_evidence.py tests/unit/devtools/test_render_verification_catalog.py` - `pytest -q tests/unit/proof tests/unit/devtools/test_render_verification_catalog.py tests/unit/devtools/test_affected_obligations.py` - `devtools render-all --check` - `devtools affected-obligations --path polylogue/proof/generated_scenarios.py` - `devtools verify` - pre-push `devtools verify --quick`
The proof catalog had command, schema, provider, operation, artifact, repair, error, trace, diagnostic, and workflow subjects, but the missing generated scenario families from #196 weren't yet first-class proof subjects. Generated coverage gaps were documented in prose rather than routable through catalog claims and affected-obligation checks. Adds generated-world and workload scenario families to the proof-obligation catalog: nine `generated.scenario_family` subjects; three generated-scenario claims for family registration, deterministic local implemented scenarios, and semantic claim mapping; a static evidence runner for generated scenario claims. Marks implemented local deterministic families for pathological raw reruns, destructive-preview safety, repair convergence, and archive substrate laws. Marks remaining generated families as explicit migration tasks with issue-linked semantic claim mappings. Updates the generated verification catalog and proof tests. Verification: ruff + pytest over proof / generated-scenario- obligations / structural-error-evidence / render-verification- catalog / affected-obligations suites; live `devtools affected-obligations` probe on generated-scenarios module; devtools render-all --check, verify and --quick green. Closes #196
The proof catalog had command, schema, provider, operation, artifact, repair, error, trace, diagnostic, and workflow subjects, but the missing generated scenario families from #196 weren't yet first-class proof subjects. Generated coverage gaps were documented in prose rather than routable through catalog claims and affected-obligation checks. Adds generated-world and workload scenario families to the proof-obligation catalog: nine `generated.scenario_family` subjects; three generated-scenario claims for family registration, deterministic local implemented scenarios, and semantic claim mapping; a static evidence runner for generated scenario claims. Marks implemented local deterministic families for pathological raw reruns, destructive-preview safety, repair convergence, and archive substrate laws. Marks remaining generated families as explicit migration tasks with issue-linked semantic claim mappings. Updates the generated verification catalog and proof tests. Verification: ruff + pytest over proof / generated-scenario- obligations / structural-error-evidence / render-verification- catalog / affected-obligations suites; live `devtools affected-obligations` probe on generated-scenarios module; devtools render-all --check, verify and --quick green. Closes #196
The proof catalog had command, schema, provider, operation, artifact, repair, error, trace, diagnostic, and workflow subjects, but the missing generated scenario families from #196 weren't yet first-class proof subjects. Generated coverage gaps were documented in prose rather than routable through catalog claims and affected-obligation checks. Adds generated-world and workload scenario families to the proof-obligation catalog: nine `generated.scenario_family` subjects; three generated-scenario claims for family registration, deterministic local implemented scenarios, and semantic claim mapping; a static evidence runner for generated scenario claims. Marks implemented local deterministic families for pathological raw reruns, destructive-preview safety, repair convergence, and archive substrate laws. Marks remaining generated families as explicit migration tasks with issue-linked semantic claim mappings. Updates the generated verification catalog and proof tests. Verification: ruff + pytest over proof / generated-scenario- obligations / structural-error-evidence / render-verification- catalog / affected-obligations suites; live `devtools affected-obligations` probe on generated-scenarios module; devtools render-all --check, verify and --quick green. Closes #196
|
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 #196.
Adds generated-world and workload scenario families to the proof-obligation catalog so missing generated validation coverage is visible as proof subjects instead of relying on ad hoc live/archive checks.
Problem
The proof catalog had command, schema, provider, operation, artifact, repair, error, trace, diagnostic, and workflow subjects, but the missing generated scenario families from #196 were still not first-class proof subjects. That left generated coverage gaps documented in prose rather than routable through catalog claims and affected-obligation checks.
Solution
generated.scenario_familysubjects for nine generated-world/workload families.Verification
ruff check polylogue/proof tests/unit/proof/test_generated_scenario_obligations.py tests/unit/proof/test_catalog.pypytest -q tests/unit/proof/test_catalog.py tests/unit/proof/test_generated_scenario_obligations.py tests/unit/proof/test_structural_error_evidence.py tests/unit/devtools/test_render_verification_catalog.pypytest -q tests/unit/proof tests/unit/devtools/test_render_verification_catalog.py tests/unit/devtools/test_affected_obligations.pydevtools render-all --checkdevtools affected-obligations --path polylogue/proof/generated_scenarios.pydevtools verifydevtools verify --quick