Repository navigation
refactor: move lab smoke surfaces to devtools - #353
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR migrates synthetic corpus generation and showcase exercise functionality from the product CLI ( Changes
Sequence Diagram(s)sequenceDiagram
participant User as User / CLI
participant LabCorpus as devtools.lab_corpus<br/>(main)
participant Provider as SyntheticCorpus<br/>(provider ops)
participant Generator as Fixture Generator
participant Output as Output Directory
User->>LabCorpus: lab-corpus generate --providers ...
LabCorpus->>Provider: resolve_lab_corpus_providers()
Provider-->>LabCorpus: validated provider list
LabCorpus->>Generator: generate_lab_corpus(providers, corpus_source, ...)
Generator->>Output: create output directory
Generator->>Provider: build corpus scenarios
Generator->>Generator: validate scenarios non-empty
Generator->>Generator: generate_synthetic_fixtures_from_scenarios()
Generator-->>LabCorpus: GeneratedCorpusResult(batches, output_dir)
LabCorpus->>User: print per-provider counts & paths
sequenceDiagram
participant User as User / CLI
participant LabScenario as devtools.lab_scenario<br/>(main)
participant QABuilder as QA Session Builder
participant QARunner as QA Runner
participant Formatter as Result Formatter
User->>LabScenario: lab-scenario run archive-smoke --tier 0 --json
LabScenario->>QABuilder: construct QASessionRequest<br/>(exercises-only, tier filter)
QABuilder-->>LabScenario: QASessionRequest
LabScenario->>QARunner: run_qa_session(request)
QARunner-->>LabScenario: QAResult
alt --json flag set
LabScenario->>Formatter: generate_qa_session(result)
Formatter-->>LabScenario: JSON payload
else default format
LabScenario->>Formatter: format_qa_summary(result)
Formatter-->>LabScenario: human-readable summary
end
LabScenario->>User: print formatted output + exit code
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d02d4cfe50
ℹ️ 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".
## Summary Closes #337. Moves synthetic corpus/demo generation and showcase exercise smoke execution out of the product `polylogue audit` surface and into explicit verification-lab `devtools` commands. ## Problem `polylogue audit generate` and `polylogue audit --only exercises` made lab-only workflows look like normal product/archive operations. After #336 established `devtools` as the verification-lab surface, these commands needed to move so product CLI help and generated scenario catalogs stop presenting lab smoke work as archive-facing QA. ## Solution - Added `devtools lab-corpus generate` and `devtools lab-corpus seed` backed by new `polylogue.showcase.lab_corpus` helpers. - Added `devtools lab-scenario run archive-smoke`, including `--live` so the existing live exercise lane remains archive-backed. - Removed `polylogue audit generate`, removed its generated help exercise/baseline, and narrowed `polylogue audit` to schema audit plus artifact proof checks. - Converted `audit` from a Click group to a plain command now that it no longer owns subcommands. - Updated validation lanes, command catalog discovery, generated docs, migration notes, showcase baselines, and focused tests. ## Verification - `ruff check polylogue/showcase/lab_corpus.py devtools/lab_corpus.py devtools/lab_scenario.py polylogue/cli/commands/qa.py devtools/validation_lane_catalog_live.py tests/unit/cli/test_click_app.py tests/unit/devtools/test_lab_surface.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_execution_specs.py tests/unit/devtools/test_render_quality_reference.py tests/unit/devtools/test_validation_lanes.py` - `pytest tests/unit/devtools/test_lab_surface.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_execution_specs.py tests/unit/devtools/test_render_quality_reference.py tests/unit/devtools/test_validation_lanes.py tests/unit/cli/test_click_app.py tests/unit/cli/test_cli_error_boundaries.py tests/unit/cli/test_terminal_snapshots.py tests/unit/showcase/test_exercise_catalog.py tests/unit/showcase/test_verification_lane.py -q` -> 317 passed - `devtools render-all --check` - `devtools verify-showcase` - `devtools verify` - pre-push `devtools verify --quick`
`polylogue audit generate` and `polylogue audit --only exercises` made lab-only workflows look like normal product/archive operations. After #336 established `devtools` as the verification- lab surface, these commands needed to move so product CLI help and generated scenario catalogs stop presenting lab smoke work as archive-facing QA. Moves synthetic corpus/demo generation and showcase exercise smoke execution out of the product `polylogue audit` surface and into explicit verification-lab `devtools` commands. Adds `devtools lab-corpus generate` and `devtools lab-corpus seed` backed by new `showcase/lab_corpus` helpers. Adds `devtools lab-scenario run archive-smoke`, including `--live` so the existing live exercise lane remains archive-backed. Removes `polylogue audit generate`, removes its generated help exercise/baseline, and narrows `polylogue audit` to schema audit plus artifact proof checks. Converts `audit` from a Click group to a plain command now that it no longer owns subcommands. Updates validation lanes, command catalog discovery, generated docs, migration notes, showcase baselines, and focused tests. Verification: ruff + pytest over 11 focused devtools/cli/showcase suites (317 pass); devtools render-all --check, verify-showcase, verify and --quick green. Closes #337
`polylogue audit generate` and `polylogue audit --only exercises` made lab-only workflows look like normal product/archive operations. After #336 established `devtools` as the verification- lab surface, these commands needed to move so product CLI help and generated scenario catalogs stop presenting lab smoke work as archive-facing QA. Moves synthetic corpus/demo generation and showcase exercise smoke execution out of the product `polylogue audit` surface and into explicit verification-lab `devtools` commands. Adds `devtools lab-corpus generate` and `devtools lab-corpus seed` backed by new `showcase/lab_corpus` helpers. Adds `devtools lab-scenario run archive-smoke`, including `--live` so the existing live exercise lane remains archive-backed. Removes `polylogue audit generate`, removes its generated help exercise/baseline, and narrows `polylogue audit` to schema audit plus artifact proof checks. Converts `audit` from a Click group to a plain command now that it no longer owns subcommands. Updates validation lanes, command catalog discovery, generated docs, migration notes, showcase baselines, and focused tests. Verification: ruff + pytest over 11 focused devtools/cli/showcase suites (317 pass); devtools render-all --check, verify-showcase, verify and --quick green. Closes #337
`polylogue audit generate` and `polylogue audit --only exercises` made lab-only workflows look like normal product/archive operations. After #336 established `devtools` as the verification- lab surface, these commands needed to move so product CLI help and generated scenario catalogs stop presenting lab smoke work as archive-facing QA. Moves synthetic corpus/demo generation and showcase exercise smoke execution out of the product `polylogue audit` surface and into explicit verification-lab `devtools` commands. Adds `devtools lab-corpus generate` and `devtools lab-corpus seed` backed by new `showcase/lab_corpus` helpers. Adds `devtools lab-scenario run archive-smoke`, including `--live` so the existing live exercise lane remains archive-backed. Removes `polylogue audit generate`, removes its generated help exercise/baseline, and narrows `polylogue audit` to schema audit plus artifact proof checks. Converts `audit` from a Click group to a plain command now that it no longer owns subcommands. Updates validation lanes, command catalog discovery, generated docs, migration notes, showcase baselines, and focused tests. Verification: ruff + pytest over 11 focused devtools/cli/showcase suites (317 pass); devtools render-all --check, verify-showcase, verify and --quick green. Closes #337
|
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. |
Summary
Closes #337.
Moves synthetic corpus/demo generation and showcase exercise smoke execution out of the product
polylogue auditsurface and into explicit verification-labdevtoolscommands.Problem
polylogue audit generateandpolylogue audit --only exercisesmade lab-only workflows look like normal product/archive operations. After #336 establisheddevtoolsas the verification-lab surface, these commands needed to move so product CLI help and generated scenario catalogs stop presenting lab smoke work as archive-facing QA.Solution
devtools lab-corpus generateanddevtools lab-corpus seedbacked by newpolylogue.showcase.lab_corpushelpers.devtools lab-scenario run archive-smoke, including--liveso the existing live exercise lane remains archive-backed.polylogue audit generate, removed its generated help exercise/baseline, and narrowedpolylogue auditto schema audit plus artifact proof checks.auditfrom a Click group to a plain command now that it no longer owns subcommands.Verification
ruff check polylogue/showcase/lab_corpus.py devtools/lab_corpus.py devtools/lab_scenario.py polylogue/cli/commands/qa.py devtools/validation_lane_catalog_live.py tests/unit/cli/test_click_app.py tests/unit/devtools/test_lab_surface.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_execution_specs.py tests/unit/devtools/test_render_quality_reference.py tests/unit/devtools/test_validation_lanes.pypytest tests/unit/devtools/test_lab_surface.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_execution_specs.py tests/unit/devtools/test_render_quality_reference.py tests/unit/devtools/test_validation_lanes.py tests/unit/cli/test_click_app.py tests/unit/cli/test_cli_error_boundaries.py tests/unit/cli/test_terminal_snapshots.py tests/unit/showcase/test_exercise_catalog.py tests/unit/showcase/test_verification_lane.py -q-> 317 passeddevtools render-all --checkdevtools verify-showcasedevtools verifydevtools verify --quick