Skip to content

refactor(devtools): Click dispatch, split pipeline_probe, corpus roundtrip, xtask, media (#625, #601, #716, #670) - #763

Merged
Sinity merged 2 commits into
masterfrom
feature/feat/devtools-verification-finish
May 3, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/feat/devtools-verification-finish

Conversation

@Sinity

@Sinity Sinity commented May 3, 2026

Copy link
Copy Markdown
Owner

Split 1484-line pipeline_probe into 6-module package. Click dispatch from CommandSpec. Schema roundtrip with --corpus flag. xtask execution history. README media generation (4 Mermaid diagrams).

Sinity and others added 2 commits May 3, 2026 15:25
…#625)

Split the 1484-line devtools/pipeline_probe.py into a 6-module package
(engine, request, result, report, staging, __init__) with backward-compatible
imports. Replaced the argparse dispatch in __main__ with a Click-based group
that auto-generates commands from the CommandSpec catalog. The Click dispatch
preserves --json forwarding and --list-commands --json machine output.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
… media (#601, #716, #670)

Add --corpus flag to verify-schema-roundtrip for generating and validating
synthetic records against committed element schemas. Create .agent/xtask/
with append-only JSONL task history and devtools xtask command (log/recent/
stats). Add devtools render-readme-media to generate architecture diagrams
and flowcharts under docs/media/ via mmdc.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Copilot AI review requested due to automatic review settings May 3, 2026 13:26
@Sinity
Sinity merged commit 47590af into master May 3, 2026
@Sinity
Sinity deleted the feature/feat/devtools-verification-finish branch May 3, 2026 13:26
@coderabbitai

coderabbitai Bot commented May 3, 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 26 minutes and 21 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ 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: 6e1ad1ae-1d66-4080-9f7f-1297c3475165

📥 Commits

Reviewing files that changed from the base of the PR and between 3c4b23f and 5125ff4.

⛔ Files ignored due to path filters (4)
  • docs/media/architecture-overview.svg is excluded by !**/*.svg
  • docs/media/data-flow.svg is excluded by !**/*.svg
  • docs/media/provider-detection.svg is excluded by !**/*.svg
  • docs/media/repo-structure.svg is excluded by !**/*.svg
📒 Files selected for processing (18)
  • .gitignore
  • devtools/__main__.py
  • devtools/click_dispatch.py
  • devtools/command_catalog.py
  • devtools/generate_readme_media.py
  • devtools/pipeline_probe/__init__.py
  • devtools/pipeline_probe/engine.py
  • devtools/pipeline_probe/report.py
  • devtools/pipeline_probe/request.py
  • devtools/pipeline_probe/result.py
  • devtools/pipeline_probe/staging.py
  • devtools/verify_schema_roundtrip.py
  • devtools/xtask.py
  • docs/media/architecture-overview.mmd
  • docs/media/data-flow.mmd
  • docs/media/provider-detection.mmd
  • docs/media/repo-structure.mmd
  • tests/unit/devtools/test_devtools_main.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/devtools-verification-finish

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
Review rate limit: 0/1 reviews remaining, refill in 26 minutes and 21 seconds.

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: 5125ff4b4e

ℹ️ 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 on lines +124 to +126
if ctx.invoked_subcommand is None:
click.echo(cli.get_help(ctx))
ctx.exit(0)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject bare --json invocation

When no subcommand is provided, the CLI always prints help and exits 0, even if --json was passed. This silently treats devtools --json as success, whereas --json without --list-commands or a command is invalid usage and should fail; otherwise scripts can miss malformed invocations and continue with a false-success status.

Useful? React with 👍 / 👎.

Comment on lines +120 to +122
if list_commands:
_print_inventory(json=json)
ctx.exit(0)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject command args with --list-commands

The --list-commands path exits immediately without checking whether a subcommand was also supplied, so devtools --list-commands status returns success and ignores status. This masks user/CI mistakes by accepting conflicting inputs that should be rejected as invalid command-line usage.

Useful? React with 👍 / 👎.

@Sinity
Sinity removed the request for review from Copilot May 3, 2026 13:50
Sinity added a commit that referenced this pull request May 7, 2026
…dtrip, xtask, media (#625, #601, #716, #670) (#763)

Split 1484-line pipeline_probe into 6-module package. Click dispatch
from CommandSpec. Schema roundtrip with --corpus flag. xtask execution
history. README media generation (4 Mermaid diagrams).

---------

Co-authored-by: Claude Opus 4.7 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant