-
Notifications
You must be signed in to change notification settings - Fork 0
Add progressive degradation fixture levels #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ProfRandom92
merged 3 commits into
main
from
codex/implement-pr-127-progressive-degradation-levels
May 19, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # coding_workflow_pr_review_mild_v1 | ||
|
|
||
| Deterministic mild degraded fixture for coding workflow replay-validation contracts. | ||
|
|
||
| ## Intentional degradations | ||
|
|
||
| 1. **Reachability degradation**: reconstructed dependency graph removes recovery edges from `test_failure` to `rollback` and `escalate_to_human`, violating `recovery_path_available`. | ||
|
|
||
| ## Preserved properties | ||
|
|
||
| - Ordering sequence remains intact in reconstructed trace. | ||
| - No orphan dependency invariant is preserved. | ||
|
|
||
| ## Expected failures | ||
|
|
||
| - `RECOVERY_PATH_INVALID` | ||
|
|
||
| This fixture is intentionally synthetic, deterministic, and scoped to this fixture family. |
18 changes: 18 additions & 0 deletions
18
fixtures/coding_workflow_pr_review_mild_v1/expected/admissibility.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "fixture_id": "coding_workflow_pr_review_mild_v1", | ||
| "fixture_version": "1.0.0", | ||
| "expected_admissible": false, | ||
| "expected_layer_scores": { | ||
| "structural": 1.0, | ||
| "relational": 0.6666666666666666, | ||
| "operational": 1.0, | ||
| "governance": 1.0 | ||
| }, | ||
| "notes": "Mild degraded fixture isolating recovery-path reachability loss.", | ||
| "must_fail_contracts": [ | ||
| "recovery_path_available" | ||
| ], | ||
| "expected_failure_labels": [ | ||
| "RECOVERY_PATH_INVALID" | ||
| ] | ||
| } | ||
18 changes: 18 additions & 0 deletions
18
fixtures/coding_workflow_pr_review_mild_v1/expected/failures.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "expected_failures": [ | ||
| "RECOVERY_PATH_INVALID" | ||
| ], | ||
| "allowed_failures": [ | ||
| "ORPHAN_DEPENDENCY", | ||
| "DETACHED_DEPENDENCY", | ||
| "GRAPH_FRAGMENTATION", | ||
| "TEMPORAL_ORDER_VIOLATION" | ||
| ], | ||
| "disallowed_failures": [ | ||
| "POLICY_ORDER_BROKEN", | ||
| "INVARIANT_VIOLATION", | ||
| "CYCLE_INTRODUCED", | ||
| "REPLAY_NON_REPRODUCIBLE", | ||
| "ARTIFACT_INTEGRITY_VIOLATION" | ||
| ] | ||
| } |
9 changes: 9 additions & 0 deletions
9
fixtures/coding_workflow_pr_review_mild_v1/original/contracts/no_orphan_tool_calls.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "contract_id": "no_orphan_tool_calls", | ||
| "layer": "relational", | ||
| "type": "invariant", | ||
| "definition": { | ||
| "rule": "no_orphan_dependencies" | ||
| }, | ||
| "severity": "HIGH" | ||
| } |
14 changes: 14 additions & 0 deletions
14
fixtures/coding_workflow_pr_review_mild_v1/original/contracts/pre_merge_review.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "contract_id": "pre_merge_review", | ||
| "layer": "operational", | ||
| "type": "ordering", | ||
| "definition": { | ||
| "required_sequence": [ | ||
| "generate_patch", | ||
| "run_tests", | ||
| "human_review", | ||
| "merge" | ||
| ] | ||
| }, | ||
| "severity": "CRITICAL" | ||
| } |
14 changes: 14 additions & 0 deletions
14
fixtures/coding_workflow_pr_review_mild_v1/original/contracts/recovery_path_available.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "contract_id": "recovery_path_available", | ||
| "layer": "relational", | ||
| "type": "reachability", | ||
| "definition": { | ||
| "from": "test_failure", | ||
| "to": [ | ||
| "rollback", | ||
| "escalate_to_human" | ||
| ], | ||
| "min_paths": 1 | ||
| }, | ||
| "severity": "HIGH" | ||
| } |
11 changes: 11 additions & 0 deletions
11
fixtures/coding_workflow_pr_review_mild_v1/original/contracts/security_causal_block.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "contract_id": "security_causal_block", | ||
| "layer": "relational", | ||
| "type": "causality", | ||
| "definition": { | ||
| "required_causal_edges": [ | ||
| ["security_scan_failed", "deploy_blocked"] | ||
| ] | ||
| }, | ||
| "severity": "HIGH" | ||
| } |
27 changes: 27 additions & 0 deletions
27
fixtures/coding_workflow_pr_review_mild_v1/original/dependency_graph.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "graph_version": "1.0", | ||
| "nodes": [ | ||
| {"node_id": "generate_patch", "label": "Generate patch", "metadata": {"phase": "build"}}, | ||
| {"node_id": "run_tests", "label": "Run tests", "metadata": {"phase": "verify"}}, | ||
| {"node_id": "test_failure", "label": "Test failure", "metadata": {"phase": "verify"}}, | ||
| {"node_id": "rollback", "label": "Rollback", "metadata": {"phase": "recovery"}}, | ||
| {"node_id": "security_scan_failed", "label": "Security scan failed", "metadata": {"phase": "security"}}, | ||
| {"node_id": "deploy_blocked", "label": "Deploy blocked", "metadata": {"phase": "security"}}, | ||
| {"node_id": "escalate_to_human", "label": "Escalate to human", "metadata": {"phase": "recovery"}}, | ||
| {"node_id": "human_review", "label": "Human review", "metadata": {"phase": "governance"}}, | ||
| {"node_id": "merge", "label": "Merge", "metadata": {"phase": "release"}} | ||
| ], | ||
| "edges": [ | ||
| {"source": "generate_patch", "target": "run_tests", "relation": "PREREQUISITE", "metadata": {}}, | ||
| {"source": "run_tests", "target": "test_failure", "relation": "CAUSAL", "metadata": {}}, | ||
| {"source": "run_tests", "target": "security_scan_failed", "relation": "DATA_FLOW", "metadata": {}}, | ||
| {"source": "test_failure", "target": "rollback", "relation": "RECOVERY", "metadata": {}}, | ||
| {"source": "test_failure", "target": "escalate_to_human", "relation": "RECOVERY", "metadata": {}}, | ||
| {"source": "security_scan_failed", "target": "deploy_blocked", "relation": "CAUSAL", "metadata": {}}, | ||
| {"source": "rollback", "target": "human_review", "relation": "TEMPORAL", "metadata": {}}, | ||
| {"source": "escalate_to_human", "target": "human_review", "relation": "TEMPORAL", "metadata": {}}, | ||
| {"source": "human_review", "target": "merge", "relation": "PREREQUISITE", "metadata": {}}, | ||
| {"source": "run_tests", "target": "merge", "relation": "PREREQUISITE", "metadata": {}}, | ||
| {"source": "deploy_blocked", "target": "merge", "relation": "BLOCKER", "metadata": {"state": "prevented"}} | ||
| ] | ||
| } |
28 changes: 28 additions & 0 deletions
28
fixtures/coding_workflow_pr_review_mild_v1/original/state.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "evidence": { | ||
| "pr_id": "PR-122-fixture", | ||
| "test_suite": "unit", | ||
| "security_gate": "required" | ||
| }, | ||
| "constraints": { | ||
| "requires_human_review": true, | ||
| "requires_clean_tests_before_merge": true | ||
| }, | ||
| "blockers": [ | ||
| "test_failure", | ||
| "security_scan_failed", | ||
| "deploy_blocked" | ||
| ], | ||
| "recovery_paths": { | ||
| "test_failure": [ | ||
| "rollback", | ||
| "escalate_to_human" | ||
| ] | ||
| }, | ||
| "dependencies": { | ||
| "merge": [ | ||
| "human_review", | ||
| "run_tests" | ||
| ] | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
fixtures/coding_workflow_pr_review_mild_v1/original/trace.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "events": [ | ||
| {"action": "generate_patch", "step": 1}, | ||
| {"action": "run_tests", "step": 2}, | ||
| {"action": "test_failure", "step": 3}, | ||
| {"action": "rollback", "step": 4}, | ||
| {"action": "security_scan_failed", "step": 5}, | ||
| {"action": "deploy_blocked", "step": 6}, | ||
| {"action": "escalate_to_human", "step": 7}, | ||
| {"action": "human_review", "step": 8}, | ||
| {"action": "merge", "step": 9} | ||
| ] | ||
| } |
138 changes: 138 additions & 0 deletions
138
fixtures/coding_workflow_pr_review_mild_v1/reconstructed/dependency_graph.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,138 @@ | ||
| { | ||
| "graph_version": "1.0", | ||
| "nodes": [ | ||
| { | ||
| "node_id": "generate_patch", | ||
| "label": "Generate patch", | ||
| "metadata": { | ||
| "phase": "build" | ||
| } | ||
| }, | ||
| { | ||
| "node_id": "run_tests", | ||
| "label": "Run tests", | ||
| "metadata": { | ||
| "phase": "verify" | ||
| } | ||
| }, | ||
| { | ||
| "node_id": "test_failure", | ||
| "label": "Test failure", | ||
| "metadata": { | ||
| "phase": "verify" | ||
| } | ||
| }, | ||
| { | ||
| "node_id": "rollback", | ||
| "label": "Rollback", | ||
| "metadata": { | ||
| "phase": "recovery" | ||
| } | ||
| }, | ||
| { | ||
| "node_id": "security_scan_failed", | ||
| "label": "Security scan failed", | ||
| "metadata": { | ||
| "phase": "security" | ||
| } | ||
| }, | ||
| { | ||
| "node_id": "deploy_blocked", | ||
| "label": "Deploy blocked", | ||
| "metadata": { | ||
| "phase": "security" | ||
| } | ||
| }, | ||
| { | ||
| "node_id": "escalate_to_human", | ||
| "label": "Escalate to human", | ||
| "metadata": { | ||
| "phase": "recovery" | ||
| } | ||
| }, | ||
| { | ||
| "node_id": "human_review", | ||
| "label": "Human review", | ||
| "metadata": { | ||
| "phase": "governance" | ||
| } | ||
| }, | ||
| { | ||
| "node_id": "merge", | ||
| "label": "Merge", | ||
| "metadata": { | ||
| "phase": "release" | ||
| } | ||
| } | ||
| ], | ||
| "edges": [ | ||
| { | ||
| "source": "generate_patch", | ||
| "target": "run_tests", | ||
| "relation": "PREREQUISITE", | ||
| "metadata": {} | ||
| }, | ||
| { | ||
| "source": "run_tests", | ||
| "target": "test_failure", | ||
| "relation": "CAUSAL", | ||
| "metadata": {} | ||
| }, | ||
| { | ||
| "source": "run_tests", | ||
| "target": "security_scan_failed", | ||
| "relation": "DATA_FLOW", | ||
| "metadata": {} | ||
| }, | ||
| { | ||
| "source": "security_scan_failed", | ||
| "target": "deploy_blocked", | ||
| "relation": "CAUSAL", | ||
| "metadata": {} | ||
| }, | ||
| { | ||
| "source": "rollback", | ||
| "target": "human_review", | ||
| "relation": "TEMPORAL", | ||
| "metadata": {} | ||
| }, | ||
| { | ||
| "source": "escalate_to_human", | ||
| "target": "human_review", | ||
| "relation": "TEMPORAL", | ||
| "metadata": {} | ||
| }, | ||
| { | ||
| "source": "human_review", | ||
| "target": "merge", | ||
| "relation": "PREREQUISITE", | ||
| "metadata": {} | ||
| }, | ||
| { | ||
| "source": "run_tests", | ||
| "target": "merge", | ||
| "relation": "PREREQUISITE", | ||
| "metadata": {} | ||
| }, | ||
| { | ||
| "source": "deploy_blocked", | ||
| "target": "merge", | ||
| "relation": "BLOCKER", | ||
| "metadata": { | ||
| "state": "prevented" | ||
| } | ||
| }, | ||
| { | ||
| "source": "run_tests", | ||
| "target": "rollback", | ||
| "relation": "TEMPORAL", | ||
| "metadata": {} | ||
| }, | ||
| { | ||
| "source": "run_tests", | ||
| "target": "escalate_to_human", | ||
| "relation": "TEMPORAL", | ||
| "metadata": {} | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
expected_layer_scoresin this fixture metadata are incorrect. Since this fixture is designed to fail therecovery_path_availablecontract (which belongs to therelationallayer), the expected relational score should be0.6666666666666666(2 out of 3 relational contracts passing), not1.0. This inconsistency makes the fixture ground truth misleading.