Repository navigation
chore(distribution): retire the pyright component - #1139
Conversation
dotfiles, the one repository whose pyright read the synced base, now carries the whole config itself. Drop the component, every target's managed and locally-owned entry for it, its contract test, fixtures and CI steps, and the docs that named it. The retired-component assertion gains pyright. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: no security issues foundThis pull request retires the
No plugin manifest changed and no trusted path matched. The PR context contains no embedded directives. This is a full review ( critical-findings: 0 |
|
claude-review reviewed Code review: retire the
|
) No linked issue: phase F1 of moving the Dependabot policy readers to standards `main`, after the readers moved in the two pull requests under Related. ## Summary The sync stops copying `components/dependabot-policy/policy.json` to `.github/standards/dependabot-policy/policy.json`. The readers moved first and now read standards `main` and fail closed: [claude-code-plugins#18988](melodic-software/claude-code-plugins#18988) and [ci-workflows#1225](melodic-software/ci-workflows#1225), both merged. Every one of the 18 targets sets `standards_repository: melodic-software/standards` in `docs/conventions/source-control.yaml`, so every reader finds the policy. The component's source files stay at `components/dependabot-policy/`, because the readers read them there. Only the distribution stops. Deselection never deletes, so each target keeps its copy until its own F2 pull request deletes it. Reader paths, on each repository's `origin/main` after a fetch: - ci-workflows 427caa8: `automerge-dependabot/gate.cjs:91`, `bump-versions/bump.py:43`, `check-dependabot-policy/check-dependabot-policy.mjs:41` and `policy.sh:24` all read `components/dependabot-policy/policy.json`. - claude-code-plugins 9819a0f3397: `pr-unblock/dependency-classify.mjs:785`, `pr-unblock.yml:3314` (`DEPENDABOT_POLICY`) and `babysit_dependabot.py:86` read the same path. ## Fix - `distribution/sync-manifest.yml`: removes the `dependabot-policy` component, its `managed` entry in all 18 targets, and the `requires: dependabot-policy` edge on `dependabot-automerge-caller` and `dependabot-automerge-fleet-caller`. Rewords the comments that described the copy (the callers' block, architecture, knowledge-corpus, songwriting, pr-pipeline-sandbox, the Phase 4 note). The managed-files guard resolves destinations at run time and lists no paths, so it has no guard paths to prune. - `components/dependabot-automerge/dependabot-automerge.yml` and `-fleet.yml`: the header says the reusable reads the policy from standards `main` when `source-control.yaml` names it, not from a synced copy. - `components/dependabot-automerge/README.md`, `distribution/README.md`: same correction; drops the `requires` wording. - `components/dependabot-policy/README.md`: replaces the sync-component admission evidence and the stale `.github/standards/dependabot-policy/` install and gate snippets with a "Readers" section and a pointer to ci-workflows' `check-dependabot-policy` action. - `distribution/sync-manifest.test.sh`: the retired-component loop gains `dependabot-policy`. Also restores the two lefthook-powershell mapping assertions: they called `assert_component_mappings`, which #1126 deleted, so they printed `command not found` and never ran. - `components/dependabot-automerge/dependabot-automerge.test.sh`: "requires dependabot-policy" becomes "requires no component". Standards ships no `pr-check-managed-files.yml` with a `paths:` entry for the copy: both guard callers carry no `paths` filter. The `paths:` entries are repo-local in azure-iac and dotfiles (F2 below). ## Verification - `distribution/sync-manifest.sh validate`: `Manifest valid: 37 components, 19 targets` (38 before). - `harness/shell/run-tests.sh distribution/sync-manifest.test.sh components/dependabot-automerge/dependabot-automerge.test.sh components/managed-files-guard/managed-files-guard.test.sh`: 3 passed. sync-manifest.test.sh: 336 assertions pass, including `PASS: [170] no component named dependabot-policy exists (retired)` and the two restored lefthook-powershell mappings. - The new retired assertion fails if the name returns: its expression counts `dependabot-policy` components as 0 on this branch and 1 on `origin/main`'s manifest. - `node --test components/runner-policy/runner-policy.test.mjs components/dependabot-policy/automerge-lockstep.test.mjs components/dependabot-policy/dependabot-policy.test.mjs`: 315 passed, 0 failed, including both dependabot-automerge caller audits. - `npm run lint:dependabot-automerge-lockstep`: allowlist default at main matches `policy.json`. - `actionlint` on both callers: clean. markdownlint-cli2 on the three READMEs: 0 issues. ## Loosened checks - Removed: `<component> requires dependabot-policy` in `dependabot-automerge.test.sh`. It asserted the edge this PR removes; the replacement asserts the callers require no component. ## Related - Readers moved first: [melodic-software/claude-code-plugins#18988](melodic-software/claude-code-plugins#18988), [melodic-software/ci-workflows#1225](melodic-software/ci-workflows#1225). - Same F1 procedure as [#1127](#1127); retired-name assertion as in [#1136](#1136) and [#1139](#1139). - Next (F2), once this merges: each of the 18 targets deletes `.github/standards/dependabot-policy/policy.json`; pr-pipeline-sandbox also drops the pin in `scripts/lanes/check-sync.sh`, and azure-iac and dotfiles drop the `paths:` entry in `.github/workflows/pr-check-managed-files.yml`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
No linked issue: the owner decided that dotfiles owns its whole pyright config and standards retires the
pyrightcomponent.Depends on melodic-software/dotfiles#1810, which moves the reader first. Merge that one before this.
Summary
Retires the
pyrightcomponent (components/pyright/pyrightconfig.json->.github/standards/pyright/pyrightconfig.json). Pyright'sextendstakes a local file path, so a consumer could only use the base through the synced copy. dotfiles was the one repository whose pyright extended it; dotfiles#1810 inlines the settings and dropsextends.This is the manifest step of the retirement procedure (
distribution/README.mdLifecycle "Retire" row,docs/component-lifecycle.md"Retirement"). Deselection never deletes, so nothing changes in a target until its own deletion PR removes its copy.Adoption audit, on each repository's
origin/HEAD:pyrightconfig.jsonextendsthe copy; moved by dotfiles#1810.managed): holds the copy, but nopyrightconfig.jsonor[tool.pyright]extends it. Only.github/CODEOWNERSand.github/scripts/apply-patch/protected-paths.test.mjsname its path.managed): holds the copy; nothing runs pyright against it (docs/development.md: "Types (pyright) have no local gate"), only that doc names the path.locally-owned): no reference to the path.pyrightaction defaults to the caller's rootpyrightconfig.json; nothing outside this repository readscomponents/pyright/.Fix
distribution/sync-manifest.yml: removes thepyrightcomponent; themanagedentry in claude-code-plugins, claude-code-proxy and dotfiles; medley'slocally-ownedentry and its comment; and the mention in claude-code-proxy's adoption comment. No componentrequirespyright, and the managed-files guard resolves destinations at run time, so there are no edges or guard paths to prune.distribution/sync-manifest.test.sh: drops the "Pyright materializes as an inheritable base" assertion andpyrightfrom the dotfiles Python enrollment loop; the retired-component loop gainspyright.components/pyright/(README, base config, fixtures, contract test): with the component gone nothing reads them, and the lifecycle's Retirement section removes CI and documentation with the component..github/workflows/pr-require-checks.ymlcheck-python: drops the Pyright type-check step, the pyright install and version lines,PYRIGHT_VERSION, the Pyright contract test, and thecomponents/pyright/**and**/pyrightconfig.jsonfilters.docs/conventions/ecosystems/python.yaml: ruff only.standards/review/overlays/python.md: the type-checker posture is each repository's own config..cursor/install.sh: comment drops pyright.Verification
distribution/sync-manifest.sh validate:Manifest valid: 38 components, 19 targets(39 before).bash distribution/sync-manifest.test.sh: exit 0, 333 assertions pass, includingPASS: [167] no component named pyright exists (retired).pyrightcomponents as 0 on this branch and 1 onorigin/main's manifest.actionlintonpr-require-checks.yml: clean. markdownlint-cli2 on the overlay: 0 issues.Loosened checks
Pyright materializes as an inheritable base below the consumer root, andpyrightfromdotfiles enrolls the managed Python component exactly once. Both asserted the component this PR retires; the retired-component loop now asserts its absence instead.components/pyright/, deleted here.Related
.github/standards/pyright/in dotfiles, claude-code-plugins (plus itsCODEOWNERSline andprotected-paths.test.mjsentry) and claude-code-proxy (plus thedocs/development.mdline).🤖 Generated with Claude Code