Repository navigation
refactor: renew verification and test surfaces - #249
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughRefactors the pipeline-probe CLI from argparse-based invocation to contract-driven architecture using Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Poem
✨ 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: d74c82fe53
ℹ️ 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".
Closes #246 ## Summary - migrate `devtools pipeline-probe` onto the authored `PipelineProbeRequest` and workspace contracts - split MCP verification helpers/tests across query, tag, and archive-ops seams instead of monolithic repo mocks - remove the remaining verification-time private API reach-through in `verify-showcase` and refresh generated devtools references ## Problem The substrate and surface renewal work had already tightened repository, archive-ops, and workspace contracts, but the verification layer was still asserting older shapes. `pipeline_probe` still projected an ad hoc `argparse.Namespace` world, MCP tests still modeled a monolithic repo surface, and `verify_showcase` still reached through a private runner method. ## Solution The probe path now projects CLI input onto `PipelineProbeRequest`, uses `VerificationWorkspace`, and replays archive subsets through a typed raw-conversation store seam. MCP test helpers were rebuilt around separate query/tag/archive-ops mocks so tool and resource tests assert the renewed boundaries directly. `verify_showcase` now uses the public `run_exercise()` helper, and the devtools command catalog/docs were updated to reflect the broadened probe contract. ## Verification - `ruff check devtools/pipeline_probe.py devtools/verify_showcase.py devtools/command_catalog.py tests/unit/devtools/test_pipeline_probe.py tests/infra/mcp.py tests/unit/mcp/test_mcp_edge_cases.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_tool_contracts.py` - `mypy devtools/pipeline_probe.py devtools/verify_showcase.py devtools/command_catalog.py tests/unit/devtools/test_pipeline_probe.py tests/infra/mcp.py tests/unit/mcp/test_mcp_edge_cases.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_tool_contracts.py` - `pytest -q tests/unit/devtools/test_pipeline_probe.py tests/unit/mcp/test_mcp_edge_cases.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_tool_contracts.py` - `devtools render-devtools-reference` - `devtools render-agents` - `devtools render-all --check` - `devtools verify`
Substrate and surface renewal had tightened repository, archive-ops, and workspace contracts, but the verification layer was still asserting older shapes. `pipeline_probe` projected an ad hoc `argparse.Namespace` world, MCP tests modeled a monolithic repo surface, and `verify_showcase` reached through a private runner method. The probe path now projects CLI input onto `PipelineProbeRequest`, uses `VerificationWorkspace`, and replays archive subsets through a typed raw-conversation store seam. MCP test helpers are rebuilt around separate query / tag / archive-ops mocks so tool and resource tests assert the renewed boundaries directly. `verify_showcase` now uses the public `run_exercise()` helper; the devtools command catalog and generated docs get refreshed to reflect the broadened probe contract. Verification: ruff + mypy + pytest over devtools probe and MCP tests; render-devtools-reference + render-agents + render-all check green; devtools verify green. Closes #246
Substrate and surface renewal had tightened repository, archive-ops, and workspace contracts, but the verification layer was still asserting older shapes. `pipeline_probe` projected an ad hoc `argparse.Namespace` world, MCP tests modeled a monolithic repo surface, and `verify_showcase` reached through a private runner method. The probe path now projects CLI input onto `PipelineProbeRequest`, uses `VerificationWorkspace`, and replays archive subsets through a typed raw-conversation store seam. MCP test helpers are rebuilt around separate query / tag / archive-ops mocks so tool and resource tests assert the renewed boundaries directly. `verify_showcase` now uses the public `run_exercise()` helper; the devtools command catalog and generated docs get refreshed to reflect the broadened probe contract. Verification: ruff + mypy + pytest over devtools probe and MCP tests; render-devtools-reference + render-agents + render-all check green; devtools verify green. Closes #246
Substrate and surface renewal had tightened repository, archive-ops, and workspace contracts, but the verification layer was still asserting older shapes. `pipeline_probe` projected an ad hoc `argparse.Namespace` world, MCP tests modeled a monolithic repo surface, and `verify_showcase` reached through a private runner method. The probe path now projects CLI input onto `PipelineProbeRequest`, uses `VerificationWorkspace`, and replays archive subsets through a typed raw-conversation store seam. MCP test helpers are rebuilt around separate query / tag / archive-ops mocks so tool and resource tests assert the renewed boundaries directly. `verify_showcase` now uses the public `run_exercise()` helper; the devtools command catalog and generated docs get refreshed to reflect the broadened probe contract. Verification: ruff + mypy + pytest over devtools probe and MCP tests; render-devtools-reference + render-agents + render-all check green; devtools verify green. Closes #246
|
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. |
Closes #246
Summary
devtools pipeline-probeonto the authoredPipelineProbeRequestand workspace contractsverify-showcaseand refresh generated devtools referencesProblem
The substrate and surface renewal work had already tightened repository, archive-ops, and workspace contracts, but the verification layer was still asserting older shapes.
pipeline_probestill projected an ad hocargparse.Namespaceworld, MCP tests still modeled a monolithic repo surface, andverify_showcasestill reached through a private runner method.Solution
The probe path now projects CLI input onto
PipelineProbeRequest, usesVerificationWorkspace, and replays archive subsets through a typed raw-conversation store seam. MCP test helpers were rebuilt around separate query/tag/archive-ops mocks so tool and resource tests assert the renewed boundaries directly.verify_showcasenow uses the publicrun_exercise()helper, and the devtools command catalog/docs were updated to reflect the broadened probe contract.Verification
ruff check devtools/pipeline_probe.py devtools/verify_showcase.py devtools/command_catalog.py tests/unit/devtools/test_pipeline_probe.py tests/infra/mcp.py tests/unit/mcp/test_mcp_edge_cases.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_tool_contracts.pymypy devtools/pipeline_probe.py devtools/verify_showcase.py devtools/command_catalog.py tests/unit/devtools/test_pipeline_probe.py tests/infra/mcp.py tests/unit/mcp/test_mcp_edge_cases.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_tool_contracts.pypytest -q tests/unit/devtools/test_pipeline_probe.py tests/unit/mcp/test_mcp_edge_cases.py tests/unit/mcp/test_server_surfaces.py tests/unit/mcp/test_tool_contracts.pydevtools render-devtools-referencedevtools render-agentsdevtools render-all --checkdevtools verify