Repository navigation
refactor(verifiability): remove showcase QA session layers (#2196) - #2295
Conversation
Problem: #2196 is specifically about replacing the showcase QA bureaucracy with direct demo, CLI, and visual checks. The previous cleanup removed report formatting files, but devtools lab scenario and several tests still kept the QA session/report payload vocabulary alive as a second verification artifact. What changed: devtools lab scenario now emits a direct scenario status payload for --json, the obsolete QA/report payload modules are deleted, orphaned cli/shared QA snapshot helpers are removed, validation lanes stop naming deleted report tests, and generated topology is refreshed. Verification: devtools test tests/unit/showcase/test_verification_lane.py tests/unit/showcase/test_qa_workflow_runtime.py tests/unit/showcase/test_qa_runner_request.py tests/unit/cli/test_deterministic_output.py tests/unit/devtools/test_render_quality_reference.py -> 111 passed; devtools lab scenario list --json && devtools lab scenario run archive-smoke --tier 0 --json -> ok true; devtools verify --quick -> exit_code 0.
|
Warning Review limit reached
More reviews will be available in 39 minutes and 16 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 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (25)
✨ Finishing Touches🧪 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 |
Problem: after deleting the report payload layer, devtools lab scenario still routed archive-smoke through the old QA session request/workflow stack. That kept audit, coverage, live-ingest, and session-result abstractions alive even though the command only needs to run tiered showcase exercises plus invariants. What changed: devtools lab scenario now runs ShowcaseRunner directly, checks invariants directly, and emits the same direct scenario payload. The now test-only qa_runner modules and their direct tests are deleted, and topology projection/status are refreshed. Verification: devtools test tests/unit/showcase/test_verification_lane.py tests/unit/showcase/test_runner.py tests/unit/showcase/test_showcase_runner_support_runtime.py tests/unit/showcase/test_invariants_runtime.py -> 28 passed; devtools lab scenario list --json && devtools lab scenario run archive-smoke --tier 0 --json -> ok true; devtools verify --quick -> exit_code 0.
… (#2296) ## Summary Replaces the `archive-smoke` lab scenario's remaining `ShowcaseRunner`/exercise-catalog execution path with a small direct CLI smoke set over the real `polylogue` entrypoint. The scenario still emits a compact machine payload and can write a direct `archive-smoke.json` report artifact, but it no longer depends on the showcase runner just to exercise tier-0 command behavior. ## Problem #2196 is about removing showcase QA bureaucracy after ordinary demo, CLI, and visual checks exist. #2295 removed the QA report/session layers, but `devtools lab scenario run archive-smoke --tier 0` still routed through the broader showcase exercise catalog and runner. That kept the old scaffold in the default verification lane even for three simple no-data CLI checks. ## Solution - Adds typed direct `ArchiveSmokeCheck` / `ArchiveSmokeCheckResult` models inside `devtools/lab_scenario.py`. - Runs the tier-0 archive smoke path as direct CLI checks for main help, mark candidate help, and bash completions. - Keeps `--json` stdout machine-readable by sending progress to stderr. - Writes a compact `archive-smoke.json` report when `--report-dir` is provided. - Updates verification-lab tests to cover success, failure, unsupported tier, and report artifact behavior. This does not close #2196. The remaining showcase catalog/runner files still exist for scenario projection, VHS, workspace, and broader catalog tests. They should be removed only after those consumers have direct replacement coverage. ## Verification - `devtools test tests/unit/showcase/test_verification_lane.py` -> 8 passed - `devtools lab scenario run archive-smoke --tier 0 --json >/tmp/polylogue-archive-smoke.json && jq -e '.ok == true and .stages.cli == \"ok\"' /tmp/polylogue-archive-smoke.json` -> `true` - `devtools verify --quick` -> exit_code 0 - pre-push hook reran `devtools verify --quick` -> exit_code 0 Ref #2196
…2196) (#2297) ## Summary Moves VHS visual evidence tape generation off the showcase exercise catalog and onto direct `VHSTapeSpec` definitions. The default five tape flows are preserved as explicit visual specs while `Exercise` and `exercise_catalog.json` stop carrying VHS-only fields. ## Problem After #2295 and #2296, #2196 still had a catalog-driven visual evidence path: `polylogue.showcase.vhs` discovered tape targets through `vhs_capture` flags on showcase exercises. That kept the exercise catalog responsible for VHS behavior even though VHS is a visual evidence surface, not an archive exercise concern. ## Solution - Adds direct `VHSTapeSpec` inventory in `polylogue/showcase/vhs.py`. - Preserves the existing five default tape flows: main help, default stats, list sessions, doctor readiness, and latest Markdown. - Removes `vhs_capture` and `capture_steps` from `Exercise` and from the serialized exercise catalog. - Removes `vhs_exercises()` and its catalog integrity tests. - Rewrites VHS tests around direct tape specs, custom capture steps, output-dir writes, and default tape commands. This still does not close #2196. Remaining live scope includes scenario projection/workspace/catalog/runner consumers that still depend on the showcase exercise model. ## Verification - `devtools test tests/unit/showcase/test_vhs_generation.py tests/unit/showcase/test_exercise_catalog.py tests/unit/showcase/test_catalog_loader_runtime.py tests/unit/showcase/test_scenario_models.py` -> 52 passed - `devtools verify --quick` -> exit_code 0 - pre-push hook reran `devtools verify --quick` -> exit_code 0 Ref #2196
Summary
Deletes the remaining QA-session/report wrapper around showcase verification while keeping the real archive-smoke, demo, and visual behaviors.
devtools lab scenario run archive-smokenow runsShowcaseRunnerdirectly, checks invariants directly, and returns a compact scenario status payload for--json.Problem
#2196 is not just about having demo commands; it is about removing the extra QA/showcase bureaucracy once direct demo, CLI, and visual checks exist. After #2293, several report payload modules, orphaned CLI QA helpers, and the QA session workflow still kept an audit/coverage/session-report vocabulary alive even though no public CLI command used it.
Solution
qa_session_payload,report_models,report_common, andshowcase_report_payloads.polylogue/cli/shared/qa_*snapshot/capture helpers and their tests.devtools lab scenario --jsonto emit{scenario, stages, failed_stages, ok, report_dir}directly.devtools lab scenario run archive-smoketo callShowcaseRunnerandcheck_invariantsdirectly.qa_runner*request/workflow/model/stage modules and their direct tests.This deliberately does not close #2196. The remaining live scope is the broader showcase exercise catalog/runner stack (
exercise_catalog.json,ShowcaseRunner, and manytests/unit/showcase/*tests). Those still powerarchive-smoke; they need a separate replacement/deletion pass once ordinary demo/CLI/visual tests cover the same behavior directly.Verification
devtools test tests/unit/showcase/test_verification_lane.py tests/unit/showcase/test_qa_workflow_runtime.py tests/unit/showcase/test_qa_runner_request.py tests/unit/cli/test_deterministic_output.py tests/unit/devtools/test_render_quality_reference.py-> 111 passed in 26.24sdevtools test tests/unit/showcase/test_verification_lane.py tests/unit/showcase/test_runner.py tests/unit/showcase/test_showcase_runner_support_runtime.py tests/unit/showcase/test_invariants_runtime.py-> 28 passed in 2.20sdevtools lab scenario list --json && devtools lab scenario run archive-smoke --tier 0 --json->ok: truedevtools verify --quick-> exit_code 0devtools verify --quickafter both commits -> exit_code 0Ref #2196