Skip to content

refactor(verifiability): delete dead showcase runner layer - #2299

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

Sinity merged 1 commit into
masterfrom
feature/refactor/showcase-runner-drain-2196

Conversation

@Sinity

@Sinity Sinity commented Jun 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

Remove the obsolete ShowcaseRunner layer from the verification-lab showcase code. The retained workspace seeding behavior now lives directly in polylogue.showcase.workspace, where the scenario lane already gets its isolated workspace and synthetic-corpus helpers.

Problem

#2196 is about removing parallel verifiability abstractions that no longer own behavior. After the recent cleanup PRs, the runner/result/invariant modules were a dead middle layer: devtools lab scenario already drives direct scenario execution, while the runner types only preserved an old showcase-shaped execution model.

Solution

  • Deleted polylogue.showcase.runner, showcase_runner_models, showcase_runner_support, and the old invariant helper module.
  • Moved the one still-useful seed_workspace_with(...) helper into polylogue.showcase.workspace, preserving the existing showcase_corpus_request() defaults and compiled exercise corpus-spec behavior.
  • Removed runner-only unit tests and kept replacement coverage on the workspace/scenario lane path instead of adding absence tests for deleted names.
  • Regenerated topology docs for the removed modules.

Verification

  • devtools test tests/unit/showcase/test_workspace.py tests/unit/showcase/test_verification_lane.py → 20 passed
  • devtools verify --quick → exit 0
  • pre-push devtools verify --quick → exit 0

Summary by CodeRabbit

Release Notes

  • Removals

    • Removed showcase runner execution framework and invariant checking functionality.
  • Refactoring

    • Consolidated workspace seeding capabilities into a unified entry point.
  • Tests

    • Removed test coverage for retired showcase runner and invariant validation features; updated import paths for workspace testing.
  • Documentation

    • Updated topology documentation to reflect module removals and changes.

Ref #2196

@coderabbitai

coderabbitai Bot commented Jun 21, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Four showcase modules (invariants.py, runner.py, showcase_runner_models.py, showcase_runner_support.py) and their corresponding unit test files are deleted. The seed_workspace_with function and _merge_exercise_corpus_specs helper are moved into workspace.py. Test imports and mock targets are updated accordingly, and topology documentation is adjusted to reflect the reduced module count.

Changes

Showcase runner consolidation

Layer / File(s) Summary
seed_workspace_with migrated into workspace.py
polylogue/showcase/workspace.py
Adds Callable, Iterator, canonical_payload_json, get_config, showcase_corpus_request, and Exercise imports; introduces seed_workspace_with (branches between corpus-spec seeding and fixture-generation seeding) and _merge_exercise_corpus_specs (ordered dedup by canonical_payload_json); exports seed_workspace_with via __all__.
Deleted showcase runner/invariant modules
polylogue/showcase/invariants.py, polylogue/showcase/runner.py, polylogue/showcase/showcase_runner_models.py, polylogue/showcase/showcase_runner_support.py
All four modules removed, eliminating Invariant, InvariantResult, ShowcaseRunner, ExerciseResult, ShowcaseResult, ShowcaseGroupCounts, ShowcaseSummary, and all associated helper functions.
Deleted unit tests for removed modules
tests/unit/showcase/test_invariants_runtime.py, tests/unit/showcase/test_runner.py, tests/unit/showcase/test_showcase_runner_support_runtime.py
Three test files removed, eliminating coverage for invariant checking/formatting, ShowcaseRunner seeding and execution, exercise selection, workspace seeding, corpus-spec merging, and exercise invocation.
Test imports and mock targets updated
tests/unit/showcase/test_workspace.py
seed_workspace_with import source changed from polylogue.showcase.showcase_runner_support to polylogue.showcase.workspace; seed_workspace_from_specs patch target updated to match.
Topology plan and status docs
docs/plans/topology-target.yaml, docs/topology-status.md
Removes plan entries for the four deleted modules; adjusts loc values for catalog_loader, exercise_models, exercises, vhs, and workspace; decrements Stable, Total declared, and Realized counts by 4.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related issues

Possibly related PRs

  • Sinity/polylogue#367: Previously moved canonical_payload_json-based corpus-spec deduplication into showcase_runner_support.py; this PR removes that module and ports the same logic into workspace.py.
  • Sinity/polylogue#664: Modified invariants.py to import OutcomeStatus from polylogue.core.outcomes; this PR deletes invariants.py entirely.
  • Sinity/polylogue#1970: Also updates docs/topology-status.md Summary counts to stay in sync with realized modules, the same file updated here.

Suggested labels

type:refactor

🐇 Four old modules gone today,
Their bureaucratic weight swept away.
The workspace now holds what it needs,
Leaner code the reviewer reads.
Hop hop, the topology shrinks—
Less to review than one thinks! 🌿

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'refactor(verifiability): delete dead showcase runner layer' clearly and concisely summarizes the main change—removing obsolete runner modules—and accurately reflects the primary purpose of the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The pull request description comprehensively covers all required template sections with clear explanations of changes, rationale, and verification steps.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/showcase-runner-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 a4a1d2c into master Jun 21, 2026
14 checks passed
@Sinity
Sinity deleted the feature/refactor/showcase-runner-drain-2196 branch June 21, 2026 20:42
Sinity added a commit that referenced this pull request Jun 21, 2026
## Summary

Remove the remaining exercise catalog/projection layer from the
verification-lab path. Validation lanes, mutation campaigns, benchmark
campaigns, inferred corpus scenarios, VHS tape specs, workspace helpers,
and direct smoke scenario tests remain; the deleted pieces were
catalog/projection scaffolding that no longer executed product behavior.

## Problem

#2196 calls out the showcase exercise catalog as verification
bureaucracy once direct demo/CLI/visual tests own the behavior. After
#2299 removed the runner, the `Exercise` model, JSON catalog, catalog
loader, generated exercise scenarios, and their tests only fed
quality/projection paperwork. Keeping them made the runtime coverage map
look more complete than the actual tests warranted.

## Solution

- Deleted
`polylogue/showcase/{catalog_loader,dimensions,exercise_models,exercises,generators}.py`
and `exercise_catalog.json`.
- Removed the unused `ExerciseIOMode` enum and the unused exercise-aware
`seed_workspace_with(...)` bridge.
- Simplified `AuthoredScenarioCatalog`/`QualityRegistry` to lanes and
campaigns, leaving real scenario/campaign projection sources intact.
- Updated artifact/coverage/projection tests so `thread-query-loop` and
`tool-usage-query-loop` now show as uncovered instead of being
paper-covered by exercise projections.
- Refreshed generated quality/devtools/topology docs and coverage
manifests.

## Verification

- `devtools test tests/unit/showcase/test_cli_boundary.py
tests/unit/showcase/test_verification_lane.py
tests/unit/showcase/test_vhs_generation.py
tests/unit/showcase/test_workspace.py
tests/unit/devtools/test_quality_registry.py
tests/unit/devtools/test_render_quality_reference.py
tests/unit/devtools/test_authored_scenario_catalog.py
tests/unit/devtools/test_scenario_projections.py
tests/unit/devtools/test_scenario_coverage.py
tests/unit/devtools/test_artifact_graph.py
tests/unit/devtools/test_generated_surfaces.py` → 56 passed
- `devtools verify --quick` → exit 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.

1 participant