Skip to content

refactor: retire public audit qa showcase surfaces #413

Closed

Description

@Sinity

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 --help still exposes audit as a normal product command.
  • polylogue/cli/commands/qa.py and polylogue/cli/qa_* modules keep product CLI code coupled to QA/showcase runner concepts.
  • devtools verify-showcase is a compatibility wrapper over devtools lab-scenario verify-baselines (devtools/verify_showcase.py:1-77 is 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 showcase as 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 around devtools/lab_scenario.py. Every public function (load_baselines, save_baselines, compare_outputs, verify_showcase_baselines, run_tier_0, get_tier_0_exercises) re-exports lab_scenario.<same_name>; _sync_baseline_dir() is a tautology assigning lab_scenario.BASELINE_DIR = lab_scenario.BASELINE_DIR. Listed in devtools/command_catalog.py and rendered into docs/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 → devtools or 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.py neighborhood: generators.py, lab_corpus.py.
  • Invariants → polylogue/proof/ runners or devtools checks per ownership: invariants.py.

CLI modules to retire/rehome:

  • polylogue/cli/commands/qa.py — public polylogue qa command 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 audit command — remove unless a concrete product use case survives; otherwise route schema audit through devtools schema-audit and product health through a polylogue doctor/polylogue check shape.

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. Update BASELINE_DIR in devtools/lab_scenario.py:19 to match.
  • Delete tests/baselines/showcase/help-audit.txt and tests/baselines/showcase/help-resume.txt (and any other baselines for commands retired by this issue or refactor: rationalize product ownership and package boundary #414); otherwise verify-baselines will 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 — remove verify-showcase from the command catalog and re-render via devtools render-all.
  • docs/architecture.md and docs/internals.md — coordinate with docs(architecture): refresh placement rules and document cross-cuts #427 so showcase is 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 doctor or a future polylogue check, with user-facing wording.
  • Repo/control-plane proof, schema audit, scenario verification, generated baselines, and media verification belong under devtools and the proof catalog.
  • Pure scenario/corpus/assertion models may live under polylogue.scenarios as substrate.
  • Runner/report/baseline/VHS/media machinery should live under devtools or a clearly internal lab package, not product CLI modules.

Ambitious expansion

  • Remove public polylogue audit unless 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.py and update devtools/command_catalog.py, docs/devtools.md, and any CI calls to use devtools lab-scenario verify-baselines directly.
  • Rename/rehome qa modules and tests.
  • Rename/rehome showcase internals: 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 --help no longer exposes audit, qa, or showcase vocabulary 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.py is deleted; devtools/command_catalog.py no longer registers verify-showcase; docs/devtools.md is regenerated.
  • CI no longer uses devtools verify-showcase.
  • Internal module/test names reflect ownership: scenarios, proof, devtools lab, product health. polylogue/cli/commands/qa.py and polylogue/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


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:

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

  1. added
    type:refactor
    theme:command-surface
    area:devtools
    on Apr 26, 2026
  2. Sinity commented on Apr 26, 2026

    @Sinity
    OwnerAuthor

    Structural audit note: audit/qa/showcase are 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.py registers polylogue audit from polylogue/cli/commands/qa.py.
    • .github/workflows/ci.yml still runs uv run devtools verify-showcase.
    • devtools/verify_showcase.py, devtools/lab_scenario.py, devtools/lab_corpus.py, devtools/quality_registry.py, and devtools/authored_scenario_catalog.py still import polylogue.showcase.*.
    • tests/baselines/showcase/ owns command-help baselines, including help-audit.txt.
    • tests/unit/showcase/ has 20 files, while tests/unit/scenarios/ has 9 files.
    • docs/architecture.md and docs/verification-lab.md still 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-showcase and public polylogue audit should disappear rather than stay as aliases unless a concrete product-level reason is documented.

  3. added
    phase:architecture
    on Apr 26, 2026
  4. Sinity commented on Apr 29, 2026

    @Sinity
    OwnerAuthor

    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.

  5. Sinity commented on May 1, 2026

    @Sinity
    OwnerAuthor

    2026-05-01 vocabulary supersession note

    This issue is closed and should stay closed, but its old audit / qa / showcase vocabulary should not be treated as current direction.

    Current vocabulary from #635/#670:

    • scenario is the behavior spec/story concept;
    • scenario run is execution;
    • witness is minimized durable regression input;
    • verification / checks / gates are the repo-control concepts;
    • avoid reviving showcase, qa, or public audit as first-class names.

    Ref #635
    Ref #670

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:devtoolsarea:qaphase:architecturetheme:command-surfacetype:refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions