Skip to content

refactor: split schema commands by product, ops, and lab intent #338

Closed

Description

@Sinity

Parent

Part of #331.

Context

Schema commands straddle multiple audiences. Some commands help users/operators inspect an archive. Others maintain provider schema packages, generate synthetic package artifacts, audit schema metadata, or inject semantic annotations. Keeping all of these under one product-facing shape makes command semantics unclear.

Scope

Classify and move schema commands by intent.

Likely buckets:

  • Product/runtime: inspect schema-related archive meaning if user-facing.
  • Operator maintenance: verify live archive schema state, quarantine/state diagnostics, repair-adjacent schema checks.
  • Verification lab: provider schema package generation, synthetic generation, semantic annotation injection, schema audit, projection support.
  • Repo devtools: generated docs/rendering and source-tree gate orchestration only.

Acceptance criteria

  • Existing schema commands are inventoried by intent.
  • At least one schema-maintenance command is moved or re-exposed through the correct surface.
  • Generated docs reflect the classification.
  • Product CLI no longer presents package-maintenance operations as normal archive usage.
  • The migration avoids duplicating schema logic under multiple command paths.

Activity

  1. added
    type:refactor
    theme:command-surface
    phase:migration
    on Apr 21, 2026
  2. Sinity commented on Apr 22, 2026

    @Sinity
    OwnerAuthor

    Tactic for #338 schema command split:

    • Inventory current schema commands by intent.
    • Keep product-facing read/inspection commands under polylogue schema for now: list, explain, compare.
    • Move package maintenance and committed-package quality gates out of product CLI: generate, promote, audit.
    • Add devtools schema-generate, devtools schema-promote, and devtools schema-audit using the existing schema operator workflow/renderers.
    • Regenerate command docs, verification catalog, quality projections, and showcase baselines after the move.

    I am deliberately not adding aliases; removed product commands should fail rather than preserve stale surface semantics.

  3. Sinity commented on Apr 22, 2026

    @Sinity
    OwnerAuthor

    Checkpoint for #338:

    Implemented the schema command-surface split.

    Changed:

    • Product CLI polylogue schema now exposes only inspection commands: list, compare, and explain.
    • Provider schema maintenance moved to devtools: devtools schema-generate, devtools schema-promote, and devtools schema-audit.
    • Devtools command catalog and verification-lab surface now classify the moved schema maintenance commands.
    • Showcase JSON contracts no longer include json-schema-audit as a product CLI contract.
    • Schema promotion/audit integration coverage now exercises devtools entrypoints.

    Verification run locally:

    • pytest -q tests/unit/devtools/test_schema_lab_commands.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_command_catalog.py tests/unit/cli/test_cli_error_boundaries.py::TestSchemaErrorBoundaries tests/unit/showcase/test_exercise_catalog.py
    • pytest -q tests/integration/test_schema_operator_workflow.py
    • devtools render-all
    • devtools verify-showcase --update
    • pytest -q tests/unit/devtools/test_schema_lab_commands.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_command_catalog.py tests/unit/cli/test_cli_error_boundaries.py::TestSchemaErrorBoundaries tests/unit/cli/test_terminal_snapshots.py tests/unit/showcase/test_exercise_catalog.py
    • devtools verify-showcase
    • devtools render-all --check
    • devtools verify

    Note: devtools render-all --check initially found generated AGENTS.md drift; devtools render-agents refreshed it, then the check passed.

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:schemaphase:migrationtheme:command-surfacetype:refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions