Repository navigation
Description
Parent
Part of #401. Builds on the decisions from #336 and the partial migration in #337.
Problem
The proof/verification-lab work landed, but public and internal naming still preserves an older audit/qa/showcase layer. #337 moved lab corpus generation and exercise smoke execution out of polylogue audit, but intentionally kept polylogue audit as schema audit plus artifact proof. That compromise now makes the system feel bloated and unclear.
Current smells:
polylogue --helpstill exposesauditas a normal product command.polylogue/cli/commands/qa.pyandpolylogue/cli/qa_*modules keep product CLI code coupled to QA/showcase runner concepts.devtools verify-showcaseis a compatibility wrapper overdevtools lab-scenario verify-baselines(devtools/verify_showcase.py:1-77is the self-described shim).polylogue/showcase/*mixes pure scenario models, runner/reporting implementation, QA session payloads, VHS generation, and devtools-lab behavior across 30 files / 4,273 LOC.- Tests and docs still treat
showcaseas both product demonstration and verification machinery. - The test-baseline tree carries the legacy vocabulary into the test layout (
tests/baselines/showcase/help-*.txt) and includes baselines for commands slated for retirement (help-audit.txt,help-resume.txt).
Concrete inventory
The audit also pinned down the specific files this issue must touch.
Compatibility shim to delete:
devtools/verify_showcase.py— pure delegating wrapper arounddevtools/lab_scenario.py. Every public function (load_baselines,save_baselines,compare_outputs,verify_showcase_baselines,run_tier_0,get_tier_0_exercises) re-exportslab_scenario.<same_name>;_sync_baseline_dir()is a tautology assigninglab_scenario.BASELINE_DIR = lab_scenario.BASELINE_DIR. Listed indevtools/command_catalog.pyand rendered intodocs/devtools.md.
Showcase modules with mixed responsibilities (need rehoming, not deletion):
- Pure scenario substrate →
polylogue.scenarios:exercises.py,exercise_models.py,dimensions.py,assertions-shaped pieces, catalog loader. - Runner/report machinery →
devtoolsor a clearly internal lab package:runner.py,showcase_runner_*,qa_runner*,qa_markdown.py,qa_summary.py,showcase_report_*,report_*,vhs.py,workspace.py,cli_boundary.py. - Generators/lab corpus →
devtools/lab_corpus.pyneighborhood:generators.py,lab_corpus.py. - Invariants →
polylogue/proof/runners ordevtoolschecks per ownership:invariants.py.
CLI modules to retire/rehome:
polylogue/cli/commands/qa.py— publicpolylogue qacommand surface; remove from product CLI, retain only what becomes a devtools lab entry point.polylogue/cli/qa_*modules — should not survive in the product CLI tree.polylogue auditcommand — remove unless a concrete product use case survives; otherwise route schema audit throughdevtools schema-auditand product health through apolylogue doctor/polylogue checkshape.
Test tree cleanups:
- Rename
tests/baselines/showcase/→tests/baselines/cli_help/(or a similar non-legacy name) so the tree does not preserve retired vocabulary. UpdateBASELINE_DIRindevtools/lab_scenario.py:19to match. - Delete
tests/baselines/showcase/help-audit.txtandtests/baselines/showcase/help-resume.txt(and any other baselines for commands retired by this issue or refactor: rationalize product ownership and package boundary #414); otherwiseverify-baselineswill diff against missing commands. - Move/rename
tests/unit/showcase/to follow the new ownership boundary (substrate vs. lab vs. proof).
Docs to regenerate:
docs/cli-reference.md— remove retired commands.docs/devtools.md— removeverify-showcasefrom the command catalog and re-render viadevtools render-all.docs/architecture.mdanddocs/internals.md— coordinate with docs(architecture): refresh placement rules and document cross-cuts #427 soshowcaseis described as legacy/dismantled, not as Ring 4.docs/test-quality-workflows.md— update validation lanes referencing showcase.
Target model
Separate the concepts cleanly:
- Product archive health belongs under
polylogue doctoror a futurepolylogue check, with user-facing wording. - Repo/control-plane proof, schema audit, scenario verification, generated baselines, and media verification belong under
devtoolsand the proof catalog. - Pure scenario/corpus/assertion models may live under
polylogue.scenariosas substrate. - Runner/report/baseline/VHS/media machinery should live under
devtoolsor a clearly internal lab package, not product CLI modules.
Ambitious expansion
- Remove public
polylogue auditunless a concrete product use case remains after decomposition. - Move schema audit/artifact proof behavior to
devtools schema-audit, proof runners, or product health checks as appropriate. - Delete
devtools/verify_showcase.pyand updatedevtools/command_catalog.py,docs/devtools.md, and any CI calls to usedevtools lab-scenario verify-baselinesdirectly. - Rename/rehome
qamodules and tests. - Rename/rehome
showcaseinternals: pure scenario substrate vs devtools scenario-lab execution/reporting. - Rename
tests/baselines/showcase/and remove retired-command baselines. - Regenerate CLI docs, devtools docs, quality docs, verification catalog, and baselines.
- Do not retain compatibility aliases unless there is an explicit, short transition issue. Prefer delete-and-replace.
Acceptance criteria
polylogue --helpno longer exposesaudit,qa, orshowcasevocabulary as normal archive usage.- Product health checks, if any, are presented through product-shaped commands and language.
devtools lab-scenario,devtools lab-corpus,devtools schema-audit, and proof runners own the lab/proof behaviors.devtools/verify_showcase.pyis deleted;devtools/command_catalog.pyno longer registersverify-showcase;docs/devtools.mdis regenerated.- CI no longer uses
devtools verify-showcase. - Internal module/test names reflect ownership: scenarios, proof, devtools lab, product health.
polylogue/cli/commands/qa.pyandpolylogue/cli/qa_*are gone or rehomed. tests/baselines/showcase/is renamed away from legacy vocabulary and contains no baselines for retired commands.- Generated docs and baselines are updated.
- Focused tests cover command removal/replacement, devtools lab execution, docs rendering, and proof catalog synchronization.
Related
- chore: track post-renewal consolidation and architectural cohesion #401 — post-renewal consolidation umbrella.
- refactor(scenarios): make scenarios the docs/media/proof catalog #410 — scenarios as docs/media/proof catalog (consumes the substrate this issue extracts).
- refactor: rationalize product ownership and package boundary #414 — product ownership; the rehomed product-health command surface coordinates here.
- docs(architecture): refresh placement rules and document cross-cuts #427 — architecture docs refresh; documents the post-dismantling shape.
Verification — added by #429
This issue's acceptance now references the topology projection (docs/plans/topology-target.yaml once promoted from .agent/scratch/topology-cohesion/topology-target.yaml) and the lints delivered by #429.
Cells this issue owns: polylogue/showcase/* (29 TBD cells, destinations to be assigned per substrate vs lab vs proof split); plus removal cells for devtools/verify_showcase.py and tests/baselines/showcase/help-{audit,resume}.txt
Executable acceptance criteria added:
-
devtools verify-topology(per feat(devtools): make architectural cohesion executable #429) exits 0 against the cells this issue owns. Orphans, conflicts, kernel-rule violations are blocking. -
devtools verify-cluster-cohesion(per feat(devtools): make architectural cohesion executable #429) reports no new cycles introduced by this issue's moves. Cycles existing before this issue's changes are tracked in feat(devtools): make architectural cohesion executable #429's findings. - Each
@pytest.mark.xfail(strict=True)test intests/unit/scenarios/test_topology_invariants.py(or starter at.agent/scratch/topology-cohesion/test_topology_invariants.py) tagged with this issue number flips to a normalassertin the same PR. - No
# topology: shim until #NNNcomment outlives the merge of the issue it references;verify-topologyshim-TTL check fails on stale shims.
Pre-flight findings to address in this issue's PR: see .agent/scratch/topology-cohesion/findings.md for the cohesion-check output, particularly any cycles or lonely-cluster findings tagged with this issue number.
Acceptance (executable)
The done-detector for this issue is the retire-audit-qa-showcase migration manifest in docs/plans/migrations.yaml. Acceptance is:
devtools verify-migrations
# expected: retire-audit-qa-showcase (#413): complete
Today this migration reports 7 surviving items (devtools/verify_showcase.py, polylogue/cli/commands/qa.py, polylogue/showcase/qa_runner_request.py, polylogue/showcase/qa_runner_workflow.py, tests/baselines/showcase/help-audit.txt, CLI command audit, devtools command verify-showcase). Each PR landed under this issue should drive that count toward zero. When the manifest reports complete, the issue closes.
Showcase-cell ownership
The 28 polylogue/showcase/*.py files currently sitting as TBD in docs/plans/topology-target.yaml (visible in docs/topology-status.md under "TBD cells") are within scope of this issue. Resolving them — assigning each to polylogue.scenarios, devtools/lab_*, or deletion — is part of the retirement, not a separate refactor. Each PR under this issue should resolve the TBD rows it touches in the same change.
Activity
Sinity commentedon Apr 26, 2026
Structural audit note:
audit/qa/showcaseare still implementation-bearing surfaces, so this issue should be treated as a port/removal project rather than a terminology cleanup.Concrete references found during audit:
polylogue/cli/click_command_registration.pyregisterspolylogue auditfrompolylogue/cli/commands/qa.py..github/workflows/ci.ymlstill runsuv run devtools verify-showcase.devtools/verify_showcase.py,devtools/lab_scenario.py,devtools/lab_corpus.py,devtools/quality_registry.py, anddevtools/authored_scenario_catalog.pystill importpolylogue.showcase.*.tests/baselines/showcase/owns command-help baselines, includinghelp-audit.txt.tests/unit/showcase/has 20 files, whiletests/unit/scenarios/has 9 files.docs/architecture.mdanddocs/verification-lab.mdstill present showcase/audit as architecture.Acceptance clarification: the end state should have canonical scenario/proof/devtools naming in code, tests, CI, generated docs, and baselines. Compatibility wrappers such as
devtools verify-showcaseand publicpolylogue auditshould disappear rather than stay as aliases unless a concrete product-level reason is documented.feat(devtools): make architectural cohesion executable (Phase 1 of #429…
feat(devtools): migration-completeness manifest
feat(devtools): migration-completeness manifest
feat(devtools): migration-completeness manifest (#451)
feat(devtools): topology drift dashboard
chore(topology): resolve projection TBDs, conflicts, and missing rules
chore(topology): resolve projection TBDs, conflicts, and missing rules (
refactor(api): consolidate facade/sync/maintenance into subpackages (#…
refactor: remove devtools/verify_showcase.py compatibility shim (#566)
Sinity commentedon Apr 29, 2026
Work completed in prior refactors: #413 verify_showcase.py removed, #414 product modules moved to products/, #426 root kernel clean. Test xfail markers converted to regular assertions in #478 test fix batch.
Sinity commentedon May 1, 2026
2026-05-01 vocabulary supersession note
This issue is closed and should stay closed, but its old
audit/qa/showcasevocabulary should not be treated as current direction.Current vocabulary from #635/#670:
scenariois the behavior spec/story concept;scenario runis execution;witnessis minimized durable regression input;verification/ checks / gates are the repo-control concepts;showcase,qa, or publicauditas first-class names.Ref #635
Ref #670
feat(devtools): make architectural cohesion executable (Phase 1 of #429…
feat(devtools): migration-completeness manifest (#451)
chore(topology): resolve projection TBDs, conflicts, and missing rules (
refactor(api): consolidate facade/sync/maintenance into subpackages (#…
refactor: remove devtools/verify_showcase.py compatibility shim (#566)