Skip to content

chore(distribution): retire the pyright component - #1139

Merged
kyle-sexton merged 1 commit into
mainfrom
chore/retire-pyright
Nov 25, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
chore/retire-pyright

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No linked issue: the owner decided that dotfiles owns its whole pyright config and standards retires the pyright component.

Depends on melodic-software/dotfiles#1810, which moves the reader first. Merge that one before this.

Summary

Retires the pyright component (components/pyright/pyrightconfig.json -> .github/standards/pyright/pyrightconfig.json). Pyright's extends takes 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 drops extends.

This is the manifest step of the retirement procedure (distribution/README.md Lifecycle "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:

  • dotfiles: pyrightconfig.json extends the copy; moved by dotfiles#1810.
  • claude-code-plugins (managed): holds the copy, but no pyrightconfig.json or [tool.pyright] extends it. Only .github/CODEOWNERS and .github/scripts/apply-patch/protected-paths.test.mjs name its path.
  • claude-code-proxy (managed): holds the copy; nothing runs pyright against it (docs/development.md: "Types (pyright) have no local gate"), only that doc names the path.
  • medley (locally-owned): no reference to the path.
  • ci-workflows' pyright action defaults to the caller's root pyrightconfig.json; nothing outside this repository reads components/pyright/.

Fix

  • distribution/sync-manifest.yml: removes the pyright component; the managed entry in claude-code-plugins, claude-code-proxy and dotfiles; medley's locally-owned entry and its comment; and the mention in claude-code-proxy's adoption comment. No component requires pyright, 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 and pyright from the dotfiles Python enrollment loop; the retired-component loop gains pyright.
  • Deletes 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.yml check-python: drops the Pyright type-check step, the pyright install and version lines, PYRIGHT_VERSION, the Pyright contract test, and the components/pyright/** and **/pyrightconfig.json filters.
  • 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, including PASS: [167] no component named pyright exists (retired).
  • The new retired assertion fails if the name returns: its expression counts pyright components as 0 on this branch and 1 on origin/main's manifest.
  • actionlint on pr-require-checks.yml: clean. markdownlint-cli2 on the overlay: 0 issues.

Loosened checks

  • Removed: Pyright materializes as an inheritable base below the consumer root, and pyright from dotfiles enrolls the managed Python component exactly once. Both asserted the component this PR retires; the retired-component loop now asserts its absence instead.
  • Removed: CI's Pyright type-check step and Pyright contract test, which tested components/pyright/, deleted here.

Related

  • Reader moved first: melodic-software/dotfiles#1810.
  • Same procedure as #1136.
  • Next, once this merges: deletion PRs for .github/standards/pyright/ in dotfiles, claude-code-plugins (plus its CODEOWNERS line and protected-paths.test.mjs entry) and claude-code-proxy (plus the docs/development.md line).

🤖 Generated with Claude Code

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]>
@kyle-sexton
kyle-sexton enabled auto-merge (squash) November 25, 2026 12:26
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T12:27:53.411401Z c44ff48 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kyle-sexton
kyle-sexton merged commit 745db78 into main Nov 25, 2026
32 checks passed
@kyle-sexton
kyle-sexton deleted the chore/retire-pyright branch November 25, 2026 12:28
@github-actions

Copy link
Copy Markdown

claude-security-review reviewed c44ff484a022a878e4251f4a80149420f2a60804: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

This pull request retires the pyright component. I read every hunk in all six listed files and the five deletions under components/pyright/. None of the changes has a security-relevant effect.

  • .github/workflows/pr-require-checks.yml (check-python job): The change removes the Pyright type-check step, the PYRIGHT_VERSION pin and the uv tool install pyright line. It also removes the Pyright contract-test step and the components/pyright/** and **/pyrightconfig.json change filters. It leaves alone:

    • the job's permissions:
    • persist-credentials: false on checkout
    • the SHA-pinned astral-sh/setup-uv step
    • the Ruff steps

    No new run: expression reads the github context; the only one left is ${RUFF_VERSION}, a static env value. This job is a lint and type check, not one of the ci-status hold steps listed as a trust control, so removing it narrows no merge hold or trust gate.

  • distribution/sync-manifest.yml and sync-manifest.test.sh: The pyright component and its managed and locally-owned target entries are removed, and the test now asserts the component is gone. Per the PR's stated procedure, deselection never deletes, so no target gets new or changed content. No component requires pyright. No trust-control file, token scope, trusted-actor list or kill-switch path is touched.

  • docs/conventions/ecosystems/python.yaml, standards/review/overlays/python.md and .cursor/install.sh: These are documentation, comment and command-string changes that drop pyright. The test-cmd and install-hint values only got shorter; no new command or input was added. The overlay edit changes descriptive text, not a standing instruction that forbids something, so the instruction-surface lens finds no removed guardrail.

No plugin manifest changed and no trusted path matched. The PR context contains no embedded directives. This is a full review (blocking only: no, no prior findings).

critical-findings: 0

@github-actions

Copy link
Copy Markdown

claude-review reviewed c44ff484a022a878e4251f4a80149420f2a60804: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Code review: retire the pyright component

No findings. The change does what the PR body describes:

  • Manifest: distribution/sync-manifest.yml drops the pyright component, along with its managed entries in claude-code-plugins, claude-code-proxy and dotfiles, and medley's locally-owned entry and comment.
  • Test: distribution/sync-manifest.test.sh moves pyright into the retired-component loop. That loop asserts the component no longer exists, so it would fail if pyright came back. Its comment gives the reason for the retirement.
  • CI: In pr-require-checks.yml, the check-python job loses the Pyright step, its install, PYRIGHT_VERSION and the components/pyright/** and **/pyrightconfig.json filters. Ruff is still wired up correctly, and the "Verify toolchain" step collapses cleanly to ruff --version.
  • Docs: docs/conventions/ecosystems/python.yaml, the Python review overlay and the .cursor/install.sh comment are consistent with the removal.
  • Leftover references: I searched the head tree and nothing still points at components/pyright/ or PYRIGHT_VERSION. Three files still mention Pyright as a tool: components/ruff/README.md:9, components/lefthook-python/README.md:11 and components/lefthook-python/lefthook.yml:6. They describe each consumer's own type checker, not this component, so they are not stale.

Loosened checks. "Fail a change that loosens a check" applies to two removals:

  • the "Pyright materializes…" test assertion and the pyright entry in the dotfiles enrollment loop;
  • the CI Pyright type-check step and the Pyright contract test.

The PR body's ## Loosened checks section names both and says why. The reason holds: both checks tested components/pyright/, which this PR deletes. Both pass.

Loosened checks would be marked: fail (default; the prompt supplied no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The prompt had no loosened_check_decision_record: line, so I did not check whether a decision record is cited.

Closing issue. There is none. The body says "No linked issue: the owner decided…", so there are no acceptance criteria to check.

Unverified (author's claims). I could not check these myself:

  • the zero-consumer adoption audit that docs/component-lifecycle.md "Retirement" requires;
  • that melodic-software/dotfiles#1810 merges first. The body says it must, so the one reader moves off the synced copy before this lands;
  • the reported sync-manifest.sh validate and test-suite results.

Plugin manifests: none changed. Paved paths: none resolved.

Verifier dropped 0 of 0 candidates.

kyle-sexton added a commit that referenced this pull request Nov 25, 2026
)

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]>
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