Skip to content

refactor: narrow devtools to repo control-plane orchestration #339

Closed

Description

@Sinity

Parent

Part of #331.

Context

devtools should be the repository control plane: status, generated surface rendering, verification gate orchestration, packaging, and branch/PR readiness. It should not own Polylogue domain proof semantics. Today it directly owns or exposes pipeline probes, scenario projections, mutation campaigns, benchmark campaigns, and generated quality registries.

Scope

Define and migrate toward a narrower devtools contract.

Keep in devtools:

  • status
  • render-all and generated docs/reference renderers
  • verify and verify --quick
  • package/build commands
  • orchestration of verification gates

Move or delegate where appropriate:

  • pipeline probes
  • scenario projection execution
  • synthetic benchmark campaign runtime
  • mutation-front/domain law execution
  • lab evidence comparison

Acceptance criteria

  • A written command ownership policy exists in docs/devtools.md or adjacent docs.
  • devtools verify can delegate domain proof to lab commands without duplicating their semantics.
  • At least one domain-specific devtools command is moved or wrapped through the lab surface.
  • Generated command catalog remains accurate.
  • Scripts and docs do not require direct use of implementation modules for routine workflows.

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 #339:

    I am taking a narrow control-plane slice rather than moving every probe/campaign command at once.

    Planned changes:

    • Add a written command ownership policy to docs/devtools.md.
    • Keep devtools responsible for orchestration, generated surfaces, repo checks, and packaging.
    • Make devtools verify able to delegate optional lab checks by invoking lab commands instead of embedding proof/showcase semantics directly.
    • Wrap the existing devtools verify-showcase compatibility command through a new devtools lab-scenario verify-baselines action, so one domain-specific path now sits behind the lab surface while the routine workflow name remains available.
    • Regenerate the command catalog/docs and update focused tests.

    Non-goal for this PR: relocating every pipeline probe, benchmark, mutation, or projection command. This issue asks for a migration step; I will make the policy and one concrete delegation path explicit first.

  3. Sinity commented on Apr 22, 2026

    @Sinity
    OwnerAuthor

    Checkpoint for #339:

    Implemented the narrow control-plane slice.

    Changed:

    • Added a command ownership policy to docs/devtools.md.
    • Added devtools verify --lab, which delegates the extra lab check to devtools lab-scenario run archive-smoke --tier 0 instead of embedding lab semantics in verify.
    • Added devtools lab-scenario verify-baselines for committed showcase baseline checks.
    • Kept devtools verify-showcase as a compatibility entrypoint, now delegating to lab-scenario verify-baselines.
    • Updated the showcase-baselines validation lane and generated quality docs to use devtools lab-scenario verify-baselines directly.

    Verification run locally:

    • ruff check on touched Python files
    • pytest -q tests/unit/devtools/test_lab_surface.py tests/unit/devtools/test_verify.py tests/unit/devtools/test_validation_lanes.py::TestCommandConstruction tests/unit/showcase/test_verification_lane.py
    • pytest -q tests/unit/devtools/test_lab_surface.py tests/unit/devtools/test_verify.py tests/unit/devtools/test_validation_lanes.py::TestCommandConstruction tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_command_catalog.py tests/unit/showcase/test_verification_lane.py
    • devtools lab-scenario verify-baselines
    • devtools verify-showcase
    • devtools verify --quick --lab
    • devtools run-validation-lanes --lane showcase-baselines --dry-run
    • devtools render-all --check
    • devtools verify

    Note: the first devtools verify --quick --lab run surfaced generated AGENTS.md drift. I refreshed it with devtools render-agents; the rerun passed.

  4. added 4 commits that reference this issue on Apr 22, 2026
    3282a77
    8e2b879
    bbcad2e
    bf42b66
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:docsphase:migrationtheme:command-surfacetype:refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions