Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .ripr/traceability.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2159,6 +2159,7 @@ tests = [
"crates/ripr/src/output/sarif.rs::tests::sarif_projects_python_repair_card_properties",
"xtask/src/main.rs::tests::dogfood_language_preview_scenarios_cover_projection_boundaries",
"xtask::tests::dogfood_real_repair_attempt_receipts_are_checked",
"xtask::tests::dogfood_python_real_repo_eval_receipts_are_checked",
]
fixtures = [
"fixtures/python/basic",
Expand Down Expand Up @@ -2212,6 +2213,7 @@ fixtures = [
"fixtures/first_successful_pr/python-field-gap",
"fixtures/first_successful_pr/python-output-gap",
"fixtures/real-repair-attempts",
"fixtures/python-real-repo-evals",
]
code = [
"crates/ripr/src/analysis/language/python.rs",
Expand Down Expand Up @@ -2281,6 +2283,7 @@ metrics = [
"language_adapter_python_swarm_queue_stale_packets",
"language_adapter_python_gap_receipt_from_check_output",
"language_adapter_python_real_repair_attempt_receipt",
"language_adapter_python_real_repo_eval_receipt",
"language_adapter_python_pilot_first_use_path",
"language_adapter_python_first_pr_start_here_path",
"language_adapter_python_static_limit_stop_reasons",
Expand Down Expand Up @@ -4062,6 +4065,7 @@ tests = [
"xtask::tests::dogfood_surface_projection_alignment_covers_missing_receipt_route_quality",
"xtask::tests::dogfood_real_repair_attempt_receipts_are_checked",
"xtask::tests::dogfood_real_repair_attempt_rejects_movement_contradictions",
"xtask::tests::dogfood_python_real_repo_eval_receipts_are_checked",
"xtask::tests::first_successful_pr_corpus_reports_outcome_receipt_drift",
"crates/ripr/src/output/outcome.rs::tests::targeted_test_outcome_python_preview_fixture_matches_expected_receipts",
"crates/ripr/src/output/outcome.rs::tests::targeted_test_outcome_python_return_value_fixture_matches_expected_receipts",
Expand All @@ -4074,6 +4078,7 @@ fixtures = [
"fixtures/actionable-gap-outcomes-corpus",
"fixtures/surface-projection-alignment",
"fixtures/real-repair-attempts",
"fixtures/python-real-repo-evals",
"fixtures/first_successful_pr/python-preview-gap/inputs/reports/before-check.json",
"fixtures/first_successful_pr/python-preview-gap/inputs/reports/after-check.json",
"fixtures/first_successful_pr/python-preview-gap/inputs/reports/no-path-check.json",
Expand Down Expand Up @@ -4162,6 +4167,7 @@ metrics = [
"blocked_state_route_examples",
"top_limitation_routes",
"real_repair_attempt_receipts",
"language_adapter_python_real_repo_eval_receipt",
]

[[behavior]]
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ are scoped or reviewed.

## Unreleased

- Added a Python real-repo eval corpus with a tiny controlled pytest scratch
repo receipt: RIPR emits the predicate-boundary repair card, a human-run
focused pytest command passes, and `ripr outcome` closes the canonical Python
gap. This is still preview/advisory evidence; normal pytest app, API,
CLI/tooling, and mixed-repo dogfood remain outstanding before promotion.
- Added a repo-local Python repair-routing dogfood receipt row for a
test-only packet that strengthens the preview pricing test, forbids the
production Python source file, passes the focused pytest verify command, and
Expand Down
4 changes: 2 additions & 2 deletions docs/CAPABILITY_MATRIX.md

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion docs/DOGFOODING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ fast` against checked fixture diffs, writes actual outputs under
`target/ripr/reports/dogfood.json`. It also checks repo-local finding-alignment
receipts under `fixtures/finding-alignment-dogfood/` so real RIPR PR examples
preserve the Lane 1 split between raw findings, canonical evidence items, and
actionable canonical gaps.
actionable canonical gaps. Python repair-routing eval receipts live under
`fixtures/python-real-repo-evals/`; they record curated scratch or real-repo
repair-card, verify, and outcome evidence without promoting Python beyond its
preview/advisory boundary.
Comment on lines +24 to +27

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the rest of the documentation, consider using repair card (without a hyphen) and expanding verify to verify command.

Suggested change
actionable canonical gaps. Python repair-routing eval receipts live under
`fixtures/python-real-repo-evals/`; they record curated scratch or real-repo
repair-card, verify, and outcome evidence without promoting Python beyond its
preview/advisory boundary.
actionable canonical gaps. Python repair-routing eval receipts live under
`fixtures/python-real-repo-evals/`; they record curated scratch or real-repo
repair card, verify command, and outcome evidence without promoting Python beyond its
preview/advisory boundary.


## Dogfooding Rules

Expand Down
2 changes: 1 addition & 1 deletion docs/IMPLEMENTATION_PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ than one behavior contract or touches repo shape.
| PR Inline Comment Publisher (26) | Make optional durable PR comments safe and explicit by planning, capping, deduplicating, and publishing only changed-line `review-comments` entries when configured. | Complete: spec, fixture corpus, read-only publish plan, generated-CI opt-in wiring, workflow docs, dogfood receipts, and closeout audit are in place. |
| Language Adapter Preview (27) | Introduce a language-neutral analysis adapter boundary, keep Rust as the reference adapter, and add syntax-first TypeScript and Python preview adapters that feed the existing RIPR domain, output, LSP, agent, and Lane 4 surfaces without changing Rust behavior or default CI blocking. | Complete: RIPR-PROP-0001 records the adapter design intent, RIPR-SPEC-0026 pins the adapter contract, RIPR-SPEC-0027 pins the TypeScript preview static-fact contract, and RIPR-SPEC-0028 pins the Python preview static-fact contract. TypeScript and Python preview facts are fixture-backed; Lane 3 editor routing landed from RIPR-PROP-0003, RIPR-SPEC-0036, RIPR-SPEC-0037, ADR-0011, and `plans/campaign-27/lane3-editor-preview-routing.md`; generated CI language grouping projects configured preview evidence as advisory-only groups while keeping Rust defaults and gate authority unchanged; `docs/LANGUAGE_ADAPTER_PREVIEW.md` documents the adoption and rollback path; `cargo xtask dogfood` checks TypeScript/Python preview receipts for labels, static limits, disabled-language behavior, and no cross-language related-test routing; the closeout audit records the preview/advisory boundary. |
| TypeScript Enablement | Make the completed TypeScript/JavaScript preview surface more useful, precise, repair-card-shaped, and promotion-ready without reopening preview completion or changing advisory authority. | Active successor lane: [TypeScript Enablement](lanes/TYPESCRIPT_ENABLEMENT.md) records that preview completion is closed and future TypeScript work should focus on weak-oracle guidance, false-actionable audits, narrow mock/error payload support, method receiver relation, module initializer guidance, repair-card projection, dogfood, route quality, and an explicit remain-preview or promotion decision. |
| Python Repair Routing (28) | Turn changed Python behavior into bounded test-repair work with project detection, repair cards, verify commands, agent packets, and outcome receipts while keeping Python preview/advisory until dogfood evidence supports promotion. | Active: [RIPR-PROP-0017](proposals/RIPR-PROP-0017-python-repair-routing-lane.md) and [the Python repair-routing plan](../plans/python-repair-routing/implementation-plan.md) define the staged lane. The current slice makes Python before/after receipt evidence and noise-control fixtures fixture-backed: repair cards already project to GapRecords, agent packets, queue items, verify commands, and receipt commands; `ripr swarm ingest` has a Python preview fixture for a test-only closed attempt; `first_successful_pr/python-preview-gap` pins `ripr outcome` JSON/Markdown receipts where the canonical Python gap closes, stays unchanged, opens, strengthens, or weakens across check-output snapshots; `first_successful_pr/python-return-gap`, `python-exception-gap`, `python-field-gap`, and `python-output-gap` pin non-boundary closure from broad to exact evidence; generated Python diffs such as `*_pb2.py`, dynamic import calls such as `importlib.import_module(...)`, decorator indirection, monkeypatch/module patches, unresolved fixtures, property-based tests, opaque custom helpers, and metaclass declarations are pinned as fail-closed limitations or exclusions rather than repair-ready gaps; same-line returned-dict return/field/string signals collapse to one user-facing canonical gap; `fixtures/real-repair-attempts/corpus.json` now records a repo-local Python packet that edits only tests, passes verify evidence, and closes the canonical Python gap through an outcome receipt; and broader normal-pytest/API/CLI/mixed Python dogfood remains the next blocker before any support-tier promotion. |
| Python Repair Routing (28) | Turn changed Python behavior into bounded test-repair work with project detection, repair cards, verify commands, agent packets, and outcome receipts while keeping Python preview/advisory until dogfood evidence supports promotion. | Active: [RIPR-PROP-0017](proposals/RIPR-PROP-0017-python-repair-routing-lane.md) and [the Python repair-routing plan](../plans/python-repair-routing/implementation-plan.md) define the staged lane. The current slice makes Python before/after receipt evidence and noise-control fixtures fixture-backed: repair cards already project to GapRecords, agent packets, queue items, verify commands, and receipt commands; `ripr swarm ingest` has a Python preview fixture for a test-only closed attempt; `first_successful_pr/python-preview-gap` pins `ripr outcome` JSON/Markdown receipts where the canonical Python gap closes, stays unchanged, opens, strengthens, or weakens across check-output snapshots; `first_successful_pr/python-return-gap`, `python-exception-gap`, `python-field-gap`, and `python-output-gap` pin non-boundary closure from broad to exact evidence; generated Python diffs such as `*_pb2.py`, dynamic import calls such as `importlib.import_module(...)`, decorator indirection, monkeypatch/module patches, unresolved fixtures, property-based tests, opaque custom helpers, and metaclass declarations are pinned as fail-closed limitations or exclusions rather than repair-ready gaps; same-line returned-dict return/field/string signals collapse to one user-facing canonical gap; `fixtures/real-repair-attempts/corpus.json` records a repo-local Python packet that edits only tests, passes verify evidence, and closes the canonical Python gap through an outcome receipt; `fixtures/python-real-repo-evals/corpus.json` now records a tiny controlled pytest scratch-repo eval with a Python repair card, focused verify pass, and closed outcome receipt; and broader normal-pytest/API/CLI/mixed Python dogfood remains the next blocker before any support-tier promotion. |
| Policy Readiness and Preview Evidence Governance (Lane 2 tracker) | Make policy decisions auditable across stable Rust evidence and preview-language evidence without changing advisory defaults. | Complete: tracker [#755](https://github.com/EffortlessMetrics/ripr/issues/755), readiness reporting, preview evidence policy, waiver aging, suppression health, baseline refresh guardrails, exception ledger convergence, blocking guidance, advisory CI projection, and [closeout audit](handoffs/2026-05-12-policy-readiness-closeout.md) are in place. |
| Policy Operations and Promotion Readiness (Lane 2 tracker) | Make policy adoption operational with current safe ceiling, next safe action, blockers to stricter modes, policy history, and read-only promotion packets. | Complete: [Policy operations](policy/POLICY_OPERATIONS.md) and `.ripr/goals/lane2-policy-operations.toml` define the closed focused tracker. RIPR-SPEC-0039 defines the policy operations report contract, `ripr policy operations` writes the first operator packet, RIPR-SPEC-0041 defines policy history trends, `ripr policy history` writes the advisory trend packet, RIPR-SPEC-0042 defines manual-review promotion packets, `ripr policy promote --to ...` writes those packets, RIPR-SPEC-0044 defines default-blocked preview evidence promotion packets, `ripr policy preview-promote` writes preview evidence promotion packets, [Policy operations workflow](POLICY_OPERATIONS_WORKFLOW.md) documents maintainer use, generated CI surfaces operations, history, promotion, and configured preview-promotion artifacts as advisory-only packets, and [closeout audit](handoffs/2026-05-13-policy-operations-closeout.md) records the final Lane 2 boundary. |
| Generated Evidence Discipline (repo operations lane) | Make generated evidence, authored truth, deterministic repair, judgment-required decisions, and review receipts mechanically distinct for agentic development. | Complete: badge endpoint ownership, generated-clean checks, worktree doctor, PR triage, PR status, spec numbering, campaign checks, command mutability catalog, existing receipts/critic surfaces, suggested fixes, contributor docs, `pr-ready`, repo `cockpit`, repo-ops report indexing, merge-watch policy, queue disposition, and [closeout audits](handoffs/2026-05-14-generated-evidence-discipline-closeout.md) / [Repo-Ops UX cockpit closeout](handoffs/2026-05-16-repo-ops-ux-cockpit-closeout.md) are in place. |
Expand Down
2 changes: 0 additions & 2 deletions docs/lanes/TYPESCRIPT_ENABLEMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ cargo xtask check-capabilities
cargo xtask check-pr
git diff --check
```

Docs-only changes should run:

```bash
Expand All @@ -147,4 +146,3 @@ cargo xtask markdown-links
cargo xtask check-static-language
git diff --check
```

29 changes: 29 additions & 0 deletions fixtures/python-real-repo-evals/SPEC.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Python Real-Repo Eval Corpus

Spec: RIPR-SPEC-0028

Related: RIPR-SPEC-0057

## Given

Python repair-routing dogfood runs can come from scratch repos or real repos
that are outside analyzer fixture goldens.

## When

An eval case records a Python check run, top repair card, focused verify
command, after check run, and before/after outcome receipt.

## Then

The corpus records the repo shape, source kind, commands, runtime, canonical
gap ID, missing discriminator, suggested test target, verify result, receipt
result, gap movement, usability notes, false-positive notes, limitation notes,
and claim boundaries.

## Must Not

- Do not treat these records as support-tier promotion.
- Do not claim correctness, mutation adequacy, generated tests, provider calls,
CI gate eligibility, or arbitrary runtime import execution.
- Do not hide missing normal pytest, API, CLI/tooling, or mixed-repo dogfood.
52 changes: 52 additions & 0 deletions fixtures/python-real-repo-evals/corpus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"schema_version": "0.1",
"kind": "python_real_repo_eval_corpus",
"spec": "RIPR-SPEC-0028",
"related_spec": "RIPR-SPEC-0057",
"description": "Checked dogfood records for Python repair-routing runs outside analyzer fixture goldens.",
"limits": [
"static preview evidence only",
"advisory dogfood receipts only",
"no provider calls",
"no generated tests",
"no mutation execution",
"no CI gate or support-tier promotion"
],
"cases": [
{
"id": "tiny_controlled_pytest_boundary_receipt",
"repo_shape": "tiny_controlled_pytest",
"source_kind": "scratch_repo",
"source_ref": "target/ripr/python-real-repo-evals/tiny-controlled-pytest-receipt",
"command": "ripr check --root target/ripr/python-real-repo-evals/tiny-controlled-pytest-receipt --base HEAD~1 --format json",
"runtime_ms": 114,
"top_finding_summary": "Python predicate-boundary repair card for calculate_discount amount >= threshold",
"canonical_gap_id": "gap:python:app/pricing.py:calculate_discount:predicate_boundary:predicate:amount>=threshold",
"repair_card_present": true,
"repair_action": "strengthen_existing_test",
"changed_owner": "python:app/pricing.py::calculate_discount",
"missing_discriminator": "amount == threshold",
"suggested_test_file": "tests/test_pricing.py",
"suggested_test_name": "test_calculate_discount_smoke",
"verify_command": "pytest tests/test_pricing.py::test_calculate_discount_smoke",
"verify_result": "pass",
"verify_summary": "1 passed in 0.30s",
"after_command": "ripr check --root target/ripr/python-real-repo-evals/tiny-controlled-pytest-receipt --base HEAD~1 --format json",
"after_runtime_ms": 58,
"receipt_command": "ripr outcome --before before-check.json --after after-check.json --format json",
"receipt_result": "pass",
"gap_movement": "closed",
"closed_gaps": 1,
"usability": "usable",
"false_positive_notes": "none observed",
"limitation_notes": "tiny controlled scratch repo only; normal pytest app, API, CLI/tooling, and mixed repo dogfood remain outstanding",
"claim_boundary": [
"Python remains preview/advisory",
"No arbitrary imports or tests were run by RIPR",
"The human-run pytest command verified only the suggested test",
"No support-tier promotion"
],
"reason": "The run proves one non-fixture Python PR shape can produce a bounded repair card, pass the verify command, and close the canonical gap through an outcome receipt."
}
]
}
Loading
Loading