Repository navigation
refactor: move schema maintenance commands to devtools - #354
Conversation
|
Warning Rate limit exceeded
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 30 minutes and 12 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (21)
✨ 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: e66b6f5b7b
ℹ️ 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".
| default=None, | ||
| help="Privacy preset level. Defaults to standard.", | ||
| ) | ||
| parser.add_argument("--privacy-config", type=Path, default=None, help="Path to TOML privacy config overrides.") |
There was a problem hiding this comment.
Validate --privacy-config path before running generation
The argparse migration dropped the old click.Path(exists=True) check, so a typoed --privacy-config path is now accepted and generation proceeds with fallback defaults instead of failing fast. In this command path, build_schema_privacy_config(...) only uses the parent directory, so users can think they loaded a specific override file while actually running with unintended privacy settings. Please restore explicit path validation here so incorrect config paths fail deterministically.
Useful? React with 👍 / 👎.
## Summary - Keep `polylogue schema` focused on package inspection: `list`, `compare`, and `explain`. - Move provider schema maintenance to devtools via `schema-generate`, `schema-promote`, and `schema-audit`. - Regenerate CLI/devtools/quality/verification docs and showcase baselines for the narrowed product surface. ## Problem Schema commands mixed user-facing package inspection with provider package generation, evidence-cluster promotion, and committed-package audit gates. That made package-maintenance operations look like normal archive usage and kept the surface taxonomy from #331/#337 blurry. ## Solution - Added devtools entrypoints over the existing schema operator workflow: `devtools/schema_generate.py`, `devtools/schema_promote.py`, and `devtools/schema_audit.py`. - Removed `generate`, `promote`, and `audit` from `polylogue/cli/commands/schema.py` without aliases. - Registered the moved commands in `devtools/command_catalog.py` and the verification-lab surface. - Removed the product showcase `json-schema-audit` contract and deleted the obsolete schema-maintenance help baselines. - Updated schema operator integration coverage so promotion and audit exercise the devtools entrypoints. ## Verification - `pytest -q tests/unit/devtools/test_schema_lab_commands.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_command_catalog.py tests/unit/cli/test_cli_error_boundaries.py::TestSchemaErrorBoundaries tests/unit/showcase/test_exercise_catalog.py` - `pytest -q tests/integration/test_schema_operator_workflow.py` - `devtools render-all` - `devtools verify-showcase --update` - `pytest -q tests/unit/devtools/test_schema_lab_commands.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_command_catalog.py tests/unit/cli/test_cli_error_boundaries.py::TestSchemaErrorBoundaries tests/unit/cli/test_terminal_snapshots.py tests/unit/showcase/test_exercise_catalog.py` - `devtools verify-showcase` - `devtools render-all --check` - `devtools verify` - pre-push `devtools verify --quick` Closes #338
Schema commands mixed user-facing package inspection with provider package generation, evidence-cluster promotion, and committed-package audit gates. That made package-maintenance operations look like normal archive usage and kept the surface taxonomy from #331/#337 blurry. Keeps `polylogue schema` focused on package inspection: `list`, `compare`, and `explain`. Moves provider schema maintenance to devtools via `schema-generate`, `schema-promote`, and `schema-audit`. Adds devtools entrypoints over the existing schema operator workflow (`devtools/schema_generate.py`, `schema_promote.py`, `schema_audit.py`). Removes `generate`, `promote`, and `audit` from `polylogue/cli/commands/schema.py` without aliases. Registers the moved commands in `devtools/command_catalog.py` and the verification-lab surface. Removes the product showcase `json-schema-audit` contract; deletes the obsolete schema-maintenance help baselines. Updates schema operator integration coverage so promotion and audit exercise the devtools entrypoints. Regenerates CLI / devtools / quality / verification docs and showcase baselines. Verification: pytest over schema-lab-commands / devtools-main / command-catalog / schema-error-boundaries / terminal-snapshots / exercise-catalog / schema-operator-workflow suites; devtools render-all --check, verify-showcase, verify and --quick green. Closes #338
Schema commands mixed user-facing package inspection with provider package generation, evidence-cluster promotion, and committed-package audit gates. That made package-maintenance operations look like normal archive usage and kept the surface taxonomy from #331/#337 blurry. Keeps `polylogue schema` focused on package inspection: `list`, `compare`, and `explain`. Moves provider schema maintenance to devtools via `schema-generate`, `schema-promote`, and `schema-audit`. Adds devtools entrypoints over the existing schema operator workflow (`devtools/schema_generate.py`, `schema_promote.py`, `schema_audit.py`). Removes `generate`, `promote`, and `audit` from `polylogue/cli/commands/schema.py` without aliases. Registers the moved commands in `devtools/command_catalog.py` and the verification-lab surface. Removes the product showcase `json-schema-audit` contract; deletes the obsolete schema-maintenance help baselines. Updates schema operator integration coverage so promotion and audit exercise the devtools entrypoints. Regenerates CLI / devtools / quality / verification docs and showcase baselines. Verification: pytest over schema-lab-commands / devtools-main / command-catalog / schema-error-boundaries / terminal-snapshots / exercise-catalog / schema-operator-workflow suites; devtools render-all --check, verify-showcase, verify and --quick green. Closes #338
Schema commands mixed user-facing package inspection with provider package generation, evidence-cluster promotion, and committed-package audit gates. That made package-maintenance operations look like normal archive usage and kept the surface taxonomy from #331/#337 blurry. Keeps `polylogue schema` focused on package inspection: `list`, `compare`, and `explain`. Moves provider schema maintenance to devtools via `schema-generate`, `schema-promote`, and `schema-audit`. Adds devtools entrypoints over the existing schema operator workflow (`devtools/schema_generate.py`, `schema_promote.py`, `schema_audit.py`). Removes `generate`, `promote`, and `audit` from `polylogue/cli/commands/schema.py` without aliases. Registers the moved commands in `devtools/command_catalog.py` and the verification-lab surface. Removes the product showcase `json-schema-audit` contract; deletes the obsolete schema-maintenance help baselines. Updates schema operator integration coverage so promotion and audit exercise the devtools entrypoints. Regenerates CLI / devtools / quality / verification docs and showcase baselines. Verification: pytest over schema-lab-commands / devtools-main / command-catalog / schema-error-boundaries / terminal-snapshots / exercise-catalog / schema-operator-workflow suites; devtools render-all --check, verify-showcase, verify and --quick green. Closes #338
Summary
polylogue schemafocused on package inspection:list,compare, andexplain.schema-generate,schema-promote, andschema-audit.Problem
Schema commands mixed user-facing package inspection with provider package generation, evidence-cluster promotion, and committed-package audit gates. That made package-maintenance operations look like normal archive usage and kept the surface taxonomy from #331/#337 blurry.
Solution
devtools/schema_generate.py,devtools/schema_promote.py, anddevtools/schema_audit.py.generate,promote, andauditfrompolylogue/cli/commands/schema.pywithout aliases.devtools/command_catalog.pyand the verification-lab surface.json-schema-auditcontract and deleted the obsolete schema-maintenance help baselines.Verification
pytest -q tests/unit/devtools/test_schema_lab_commands.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_command_catalog.py tests/unit/cli/test_cli_error_boundaries.py::TestSchemaErrorBoundaries tests/unit/showcase/test_exercise_catalog.pypytest -q tests/integration/test_schema_operator_workflow.pydevtools render-alldevtools verify-showcase --updatepytest -q tests/unit/devtools/test_schema_lab_commands.py tests/unit/devtools/test_devtools_main.py tests/unit/devtools/test_command_catalog.py tests/unit/cli/test_cli_error_boundaries.py::TestSchemaErrorBoundaries tests/unit/cli/test_terminal_snapshots.py tests/unit/showcase/test_exercise_catalog.pydevtools verify-showcasedevtools render-all --checkdevtools verifydevtools verify --quickCloses #338