Skip to content

refactor(verifiability): remove showcase QA session layers (#2196) - #2295

Merged
Sinity merged 2 commits into
masterfrom
feature/refactor/showcase-qa-session-cleanup-2196
Jun 21, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/refactor/showcase-qa-session-cleanup-2196

Conversation

@Sinity

@Sinity Sinity commented Jun 21, 2026 •

Copy link
Copy Markdown
Owner

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-smoke now runs ShowcaseRunner directly, 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

  • Removed qa_session_payload, report_models, report_common, and showcase_report_payloads.
  • Removed orphaned polylogue/cli/shared/qa_* snapshot/capture helpers and their tests.
  • Changed devtools lab scenario --json to emit {scenario, stages, failed_stages, ok, report_dir} directly.
  • Rewired devtools lab scenario run archive-smoke to call ShowcaseRunner and check_invariants directly.
  • Removed the now test-only qa_runner* request/workflow/model/stage modules and their direct tests.
  • Removed deleted showcase QA tests from the semantic validation lane.
  • Regenerated topology projection/status after deleting the Python modules.

This deliberately does not close #2196. The remaining live scope is the broader showcase exercise catalog/runner stack (exercise_catalog.json, ShowcaseRunner, and many tests/unit/showcase/* tests). Those still power archive-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.24s
  • 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 in 2.20s
  • devtools lab scenario list --json && devtools lab scenario run archive-smoke --tier 0 --json -> ok: true
  • devtools verify --quick -> exit_code 0
  • pre-push hook reran devtools verify --quick after both commits -> exit_code 0

Ref #2196

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.
@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 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 @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: 575f8af4-efd9-4c04-99c3-04175417a552

📥 Commits

Reviewing files that changed from the base of the PR and between 8cf0cc6 and e253ca5.

📒 Files selected for processing (25)
  • devtools/lab_scenario.py
  • devtools/validation_lane_catalog_contracts.py
  • docs/plans/topology-target.yaml
  • docs/topology-status.md
  • polylogue/cli/shared/qa_capture.py
  • polylogue/cli/shared/qa_requests.py
  • polylogue/cli/shared/qa_snapshot.py
  • polylogue/showcase/qa_runner.py
  • polylogue/showcase/qa_runner_models.py
  • polylogue/showcase/qa_runner_request.py
  • polylogue/showcase/qa_runner_stages.py
  • polylogue/showcase/qa_runner_workflow.py
  • polylogue/showcase/qa_session_payload.py
  • polylogue/showcase/report_common.py
  • polylogue/showcase/report_models.py
  • polylogue/showcase/showcase_report_payloads.py
  • tests/unit/cli/test_deterministic_output.py
  • tests/unit/cli/test_qa.py
  • tests/unit/cli/test_qa_requests.py
  • tests/unit/showcase/test_qa_runner_models.py
  • tests/unit/showcase/test_qa_runner_request.py
  • tests/unit/showcase/test_qa_runner_stages_runtime.py
  • tests/unit/showcase/test_qa_workflow_runtime.py
  • tests/unit/showcase/test_report.py
  • tests/unit/showcase/test_verification_lane.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/showcase-qa-session-cleanup-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.

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.
@Sinity Sinity changed the title refactor(verifiability): delete QA report payload layer (#2196) refactor(verifiability): remove showcase QA session layers (#2196) Jun 21, 2026
@Sinity
Sinity merged commit e87bc09 into master Jun 21, 2026
14 checks passed
@Sinity
Sinity deleted the feature/refactor/showcase-qa-session-cleanup-2196 branch June 21, 2026 19:56
Sinity added a commit that referenced this pull request Jun 21, 2026
… (#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
Sinity added a commit that referenced this pull request Jun 21, 2026
…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
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.

refactor(verifiability): replace showcase QA with demo-driven CLI and visual tests

1 participant