Skip to content

refactor: delegate devtools lab checks - #355

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/devtools-control-plane-contract
Apr 22, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/devtools-control-plane-contract

Conversation

@Sinity

@Sinity Sinity commented Apr 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a command ownership policy for the devtools control-plane boundary.
  • Add devtools verify --lab as explicit lab-check orchestration.
  • Move showcase baseline verification behind devtools lab-scenario verify-baselines, with devtools verify-showcase retained as a delegating compatibility entrypoint.

Problem

devtools is meant to coordinate repository readiness, but some domain verification behavior still lived as direct command implementations or routine docs pointed at those implementation-shaped commands. That made the control-plane boundary less explicit after the proof/lab surface work in #337 and #338.

Solution

  • Documented the command ownership policy in docs/devtools.md.
  • Added build_verify_steps() and a --lab flag so devtools verify delegates lab checks to devtools lab-scenario run archive-smoke --tier 0.
  • Added devtools lab-scenario verify-baselines for committed showcase baseline checks.
  • Reworked devtools verify-showcase into a compatibility wrapper over the lab-scenario baseline action.
  • Updated the showcase-baselines validation lane and generated quality docs to call the lab surface directly.

Verification

  • ruff check devtools/command_catalog.py devtools/lab_scenario.py devtools/render_quality_reference.py devtools/validation_lane_catalog_contracts.py devtools/verify.py devtools/verify_showcase.py tests/unit/devtools/test_lab_surface.py tests/unit/devtools/test_validation_lanes.py tests/unit/devtools/test_verify.py 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/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
  • pre-push devtools verify --quick

Closes #339

@Sinity
Sinity merged commit b5955e5 into master Apr 22, 2026
11 checks passed
@Sinity
Sinity deleted the feature/refactor/devtools-control-plane-contract branch April 22, 2026 08:37
@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 4 minutes and 22 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 4 minutes and 22 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7a52c3b2-8bee-4b78-a135-2ed90d919cd8

📥 Commits

Reviewing files that changed from the base of the PR and between 9d1400c and 76fa550.

📒 Files selected for processing (14)
  • devtools/command_catalog.py
  • devtools/lab_scenario.py
  • devtools/render_quality_reference.py
  • devtools/validation_lane_catalog_contracts.py
  • devtools/verify.py
  • devtools/verify_showcase.py
  • docs/devtools.md
  • docs/internals.md
  • docs/test-quality-workflows.md
  • docs/verification-lab.md
  • tests/unit/devtools/test_lab_surface.py
  • tests/unit/devtools/test_validation_lanes.py
  • tests/unit/devtools/test_verify.py
  • tests/unit/showcase/test_verification_lane.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/devtools-control-plane-contract

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 76fa550659

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread devtools/verify.py Resolved
Comment thread devtools/verify_showcase.py Resolved
Sinity added a commit that referenced this pull request Apr 22, 2026
## Summary
- Add a command ownership policy for the `devtools` control-plane boundary.
- Add `devtools verify --lab` as explicit lab-check orchestration.
- Move showcase baseline verification behind `devtools lab-scenario verify-baselines`, with `devtools verify-showcase` retained as a delegating compatibility entrypoint.

## Problem
`devtools` is meant to coordinate repository readiness, but some domain verification behavior still lived as direct command implementations or routine docs pointed at those implementation-shaped commands. That made the control-plane boundary less explicit after the proof/lab surface work in #337 and #338.

## Solution
- Documented the command ownership policy in `docs/devtools.md`.
- Added `build_verify_steps()` and a `--lab` flag so `devtools verify` delegates lab checks to `devtools lab-scenario run archive-smoke --tier 0`.
- Added `devtools lab-scenario verify-baselines` for committed showcase baseline checks.
- Reworked `devtools verify-showcase` into a compatibility wrapper over the lab-scenario baseline action.
- Updated the `showcase-baselines` validation lane and generated quality docs to call the lab surface directly.

## Verification
- `ruff check devtools/command_catalog.py devtools/lab_scenario.py devtools/render_quality_reference.py devtools/validation_lane_catalog_contracts.py devtools/verify.py devtools/verify_showcase.py tests/unit/devtools/test_lab_surface.py tests/unit/devtools/test_validation_lanes.py tests/unit/devtools/test_verify.py 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/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`
- pre-push `devtools verify --quick`

Closes #339
Sinity added a commit that referenced this pull request Apr 22, 2026
`devtools` is meant to coordinate repository readiness, but some
domain verification behavior still lived as direct command
implementations or routine docs pointed at those
implementation-shaped commands. The control-plane boundary was
less explicit after the proof/lab surface work in #337 and #338.

Adds a command ownership policy for the `devtools` control-plane
boundary, documented in `docs/devtools.md`. Adds
`build_verify_steps()` and a `--lab` flag so `devtools verify`
delegates lab checks to `devtools lab-scenario run archive-smoke
--tier 0`. Moves showcase baseline verification behind
`devtools lab-scenario verify-baselines`; `devtools verify-showcase`
stays as a delegating compatibility entrypoint. Updates the
`showcase-baselines` validation lane and generated quality docs to
call the lab surface directly.

Verification: ruff + pytest over lab-surface / verify /
validation-lanes / verification-lane suites; live `devtools
lab-scenario verify-baselines`, `verify-showcase`, `verify --quick
--lab`, and `run-validation-lanes --lane showcase-baselines
--dry-run` probes; devtools render-all --check, verify and --quick
green.

Closes #339
Sinity added a commit that referenced this pull request Apr 22, 2026
`devtools` is meant to coordinate repository readiness, but some
domain verification behavior still lived as direct command
implementations or routine docs pointed at those
implementation-shaped commands. The control-plane boundary was
less explicit after the proof/lab surface work in #337 and #338.

Adds a command ownership policy for the `devtools` control-plane
boundary, documented in `docs/devtools.md`. Adds
`build_verify_steps()` and a `--lab` flag so `devtools verify`
delegates lab checks to `devtools lab-scenario run archive-smoke
--tier 0`. Moves showcase baseline verification behind
`devtools lab-scenario verify-baselines`; `devtools verify-showcase`
stays as a delegating compatibility entrypoint. Updates the
`showcase-baselines` validation lane and generated quality docs to
call the lab surface directly.

Verification: ruff + pytest over lab-surface / verify /
validation-lanes / verification-lane suites; live `devtools
lab-scenario verify-baselines`, `verify-showcase`, `verify --quick
--lab`, and `run-validation-lanes --lane showcase-baselines
--dry-run` probes; devtools render-all --check, verify and --quick
green.

Closes #339
Sinity added a commit that referenced this pull request Apr 22, 2026
`devtools` is meant to coordinate repository readiness, but some
domain verification behavior still lived as direct command
implementations or routine docs pointed at those
implementation-shaped commands. The control-plane boundary was
less explicit after the proof/lab surface work in #337 and #338.

Adds a command ownership policy for the `devtools` control-plane
boundary, documented in `docs/devtools.md`. Adds
`build_verify_steps()` and a `--lab` flag so `devtools verify`
delegates lab checks to `devtools lab-scenario run archive-smoke
--tier 0`. Moves showcase baseline verification behind
`devtools lab-scenario verify-baselines`; `devtools verify-showcase`
stays as a delegating compatibility entrypoint. Updates the
`showcase-baselines` validation lane and generated quality docs to
call the lab surface directly.

Verification: ruff + pytest over lab-surface / verify /
validation-lanes / verification-lane suites; live `devtools
lab-scenario verify-baselines`, `verify-showcase`, `verify --quick
--lab`, and `run-validation-lanes --lane showcase-baselines
--dry-run` probes; devtools render-all --check, verify and --quick
green.

Closes #339
@Sinity

Sinity commented Apr 28, 2026

Copy link
Copy Markdown
Owner Author

🤖 Post-hoc audit note: this PR received bot review feedback verified against current HEAD as part of #544. 2 finding(s) confirmed still present → tracked in #550.

@Sinity
Sinity requested review from Copilot and removed request for Copilot May 1, 2026 00:44
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 55.F096 / P2: fixed-already at the checked revision: The verifier explicitly accepts --json in its argparse interface (devtools/verify.py:1303). Forwarding that supported flag no longer triggers the historical unknown-argument failure.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: narrow devtools to repo control-plane orchestration

1 participant