Skip to content

refactor(verifiability): rename scenario contract surfaces - #2301

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/scenario-projection-drain-2196
Jun 21, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/scenario-projection-drain-2196

Conversation

@Sinity

@Sinity Sinity commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

Removes the last exercise projection vocabulary left after the showcase exercise catalog was deleted. Seeded CLI verification variants are now described as contract surfaces, and the live archive smoke lane is named for the behavior it runs.

Problem

#2196 has been removing the showcase QA/exercise stack in favor of ordinary demo, CLI, and visual behavior checks. After #2300 removed the exercise catalog itself, the remaining projection layer still exposed an exercise source kind, exercise= CLI surface variants, and a live-exercises lane. That kept dead vocabulary in devtools and tests after the implementation had been removed.

Solution

  • Removed ScenarioProjectionSourceKind.EXERCISE.
  • Renamed CLI surface exercise variants to contract_variant and build_cli_surface_contracts.
  • Renamed live-exercises to live-archive-smoke while keeping the same archive-smoke command behavior.
  • Updated devtools examples, generated quality docs, and tests to assert retained validation-lane/contract behavior instead of fake exercise projections.

This intentionally does not add absence-only tests. The replacement coverage is the existing projection/render/lane tests over real validation-lane entries and the archive-smoke lane command shape.

Ref #2196

Verification

  • devtools test tests/unit/scenarios/test_sources.py tests/unit/scenarios/test_scenario_specs.py tests/unit/devtools/test_scenario_projections.py tests/unit/devtools/test_render_quality_reference.py tests/unit/devtools/test_quality_registry.py tests/unit/devtools/test_validation_lanes.py tests/unit/devtools/test_render_devtools_reference.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_generated_surfaces.py -> 170 passed.
  • devtools render devtools-reference --check && devtools render quality-reference --check && devtools render topology-status --check -> sync OK for devtools reference and quality reference; topology status exited 0.
  • devtools verify --quick -> exit_code 0, 13 steps ok.
  • pre-push hook reran devtools verify --quick -> exit_code 0, 13 steps ok.

Problem: #2196 removed the showcase exercise catalog, but the remaining scenario projection vocabulary still exposed an exercise source kind, exercise-named CLI surface variants, and a live-exercises lane. That left a dead abstraction in the verification surface after its implementation was deleted.

What changed: remove the exercise projection source kind, rename seeded CLI surface variants to contract variants, rename the live archive-smoke lane, update devtools examples, and keep the projection tests focused on retained validation-lane behavior rather than deleted exercise terminology.

Verification: devtools test tests/unit/scenarios/test_sources.py tests/unit/scenarios/test_scenario_specs.py tests/unit/devtools/test_scenario_projections.py tests/unit/devtools/test_render_quality_reference.py tests/unit/devtools/test_quality_registry.py tests/unit/devtools/test_validation_lanes.py tests/unit/devtools/test_render_devtools_reference.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_generated_surfaces.py; devtools verify --quick.
@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 31 minutes and 58 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2a2e03c2-6b12-4510-aa53-369fe7908ed9

📥 Commits

Reviewing files that changed from the base of the PR and between 57804b3 and 142845a.

📒 Files selected for processing (15)
  • devtools/command_catalog.py
  • devtools/render_quality_reference.py
  • devtools/validation_lane_catalog_contracts.py
  • devtools/validation_lane_catalog_live.py
  • docs/test-quality-workflows.md
  • polylogue/scenarios/__init__.py
  • polylogue/scenarios/cli_surfaces.py
  • polylogue/scenarios/insight_surfaces.py
  • polylogue/scenarios/operational_surfaces.py
  • polylogue/scenarios/projections.py
  • tests/unit/devtools/test_quality_registry.py
  • tests/unit/devtools/test_render_quality_reference.py
  • tests/unit/devtools/test_scenario_projections.py
  • tests/unit/devtools/test_validation_lanes.py
  • tests/unit/scenarios/test_sources.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/scenario-projection-drain-2196

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

github-actions Bot pushed a commit that referenced this pull request Jun 21, 2026
@Sinity
Sinity merged commit dc25e9d into master Jun 21, 2026
14 checks passed
@Sinity
Sinity deleted the feature/refactor/scenario-projection-drain-2196 branch June 21, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant