Repository navigation
refactor(cli): expose origin-scoped doctor filters (#2806) - #2806
Conversation
Problem Doctor exposed source filters as provider-named options and errors even though public archive filtering is origin-based. A compatibility alias must not keep the retirement census measuring it as active contract vocabulary. What changed Add --schema-origin and --artifact-origin as the canonical repeatable flags, retain the older spellings as accurately labelled deprecated aliases, and merge both paths into the existing workflow filters. Update validation, raw argv parsing, generated help, and the census to exclude explicitly deprecated Click aliases from its active literal category. Compatibility The provider-named aliases remain accepted for one release and warn with the actual deprecated flag name. Ref polylogue-9e5.8.4. Ref polylogue-jnj.7. Co-Authored-By: Claude <[email protected]>
|
Warning Review limit reached
Next review available in: 16 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (9)
✨ Finishing Touches🧪 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: 7cc9d662a0
ℹ️ 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".
| schema_providers=(*schema_providers, *legacy_schema_providers), | ||
| artifact_providers=(*artifact_providers, *legacy_artifact_providers), |
There was a problem hiding this comment.
Translate
--*-origin values before provider workflows
When the new canonical flags are used with actual Origin tokens advertised elsewhere, for example --schema-origin codex-session or --artifact-origin chatgpt-export, these lines forward those strings into the legacy providers fields. The schema path first runs Provider.from_string() and maps origin-shaped strings to unknown-export, while artifact filtering compares _effective_provider() values such as codex/chatgpt to the original origin token, so the command returns zero/unknown rows despite matching data. Normalize canonical origin inputs separately from the deprecated provider aliases, or change the downstream requests to filter by origin.
Useful? React with 👍 / 👎.
…807,2780,2790,2791,2795,2802,2806,2809 uwk3, jph5 (rigor-contracts #2783), bby.17 (web-cockpit #2793), dmp (terminal-note #2801), ra3w (basetemp-fix #2807), r4no/bkff/r2kb (extension-redesign #2780) fully satisfied — closed. nhjs (#2793), peo (daemon-forensics #2802), 4g3n (#2780), 67ac/212.11 (demo-corpus #2795), rsad (mcp-ergonomics #2790, real gaps remain per 5-iteration adversarial cap), 9e5.8.4/jnj.7 (provider-origin #2806), mrxt/37t.12/p5g/rxdo.4 (annotation-judgment #2791), s7ae.8/20d.2 (live-performance-2 #2809) partially satisfied — noted with disposition, left open. Also discovered and documented the actual root cause of this session's recurring bead-revert incidents: bd reimports the live database from .beads/issues.jsonl on every CLI invocation, so a write not immediately exported is lost the moment the next bd command runs. Every mutation in this commit was individually export-verified against that behavior. Co-Authored-By: Claude <[email protected]>
Summary
Moves
ops doctorsource filters to the public Origin vocabulary while keeping the provider-named spellings as one-release deprecated aliases. Regenerates the CLI reference and teaches the vocabulary census that explicitly deprecated Click aliases are compatibility, not active contract surface.Problem
Doctor advertised
--schema-providerand--artifact-providereven though user-facing archive filters are origin-based. The needed compatibility aliases would otherwise prevent the provider-vocabulary census from showing the active CLI contract moving toward Origin.Solution
--schema-originand--artifact-originflags; canonical validation errors and verbose help now say origin.--schema-providerand--artifact-provideras visible deprecated aliases. Their warnings name the actual legacy flag and merge into the existing workflow filters.click.option(..., deprecated=...)aliases from the census literal category; its new regression fixture proves non-deprecated provider flags remain visible.The
daemon/http.pyscope-key portion ofpolylogue-9e5.8.4is intentionally deferred until PR #2793 merges, per the shared-file gate.Verification
--schema-provider; both canonical and legacy invalid invocations report the canonical--schema-origin requires --schemascontract.devtools render cli-referenceregenerateddocs/cli-reference.md.devtools lab census provider-vocabulary --json: literal sites 15 -> 13; unallowlisted literal candidates 12 -> 10; no doctor compatibility alias remains in the active literal set.devtools verify --quick: completed green once before the isolated census follow-up (15 steps). Subsequent runs passed format/lint and then stalled in host I/ODstate during pytest and mypy; the aborted lane-owned pytest basetemps were removed. The mandatory pre-push quick gate subsequently completed and accepted the push.POLYLOGUE_PYTEST_BASETEMP_ROOT=/realm/tmp/polylogue-pytestbut stalled in the same host I/O condition before completion.Acceptance matrix
polylogue-9e5.8.4CLI flags: satisfied.polylogue-9e5.8.4HTTP scope key: deferred until PR feat(web): add bounded cockpit aggregate routes #2793 is merged.polylogue-jnj.7doctor help and validation wording: satisfied in this scope; its wider CLI-help sweep remains open.Ref polylogue-9e5.8.4.
Ref polylogue-jnj.7.