Skip to content

chore(distribution): delete the zero-target component defs - #430

Merged
kyle-sexton merged 2 commits into
mainfrom
chore/sync-audit-phase3-zero-target-defs
Aug 19, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
chore/sync-audit-phase3-zero-target-defs

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #429

Phase 3.1 of the standards-sync-audit remediation (plan: docs/topics/standards-sync-audit/PLAN.md, Phase 3 approved 2026-08-19).

What

Deletes the manifest component defs for concurrency-policy, dependabot-policy, and pin-comment-convention, and records the approved Phase 3 plan. All three components have zero target references and zero downstream payloads anywhere in the fleet (verified live); their standards-internal enforcement — the ci.yml jobs, npm lint/test scripts, dependabot roots, and the repin-caller fixture corpus — references the component DIRECTORIES, which stay as producer-internal lint per the audit's locked decision.

Verification

  • sync-manifest.sh validate → "Manifest valid: 34 components, 11 targets"; mjs validator green.
  • grep -c "concurrency-policy|dependabot-policy|pin-comment-convention" distribution/sync-manifest.yml → 0.
  • Note: the post-merge sync run currently fails at ATTEST for an unrelated pre-existing reason — the App installation covers 14 repos vs the manifest's 11 (PR feat(distribution): Phase 4 fleet expansion — three new sync targets #428 aftermath) — so the usual zero-new-PRs post-merge evidence is deferred until the installation set is reconciled.

Related

  • Audit topic: docs/topics/standards-sync-audit/ (Phase 3.1)

🤖 Generated with Claude Code

https://claude.ai/code/session_013NhxMDn7vZdbs7Cq32m56M

Remove the manifest defs for concurrency-policy, dependabot-policy, and
pin-comment-convention. All three have zero target references and zero
downstream payloads fleet-wide; every internal consumer (CI jobs, npm
scripts, dependabot roots, repin-caller fixtures) references the
component directories, which stay as producer-internal lint.

Also records the approved Phase 3 plan in the audit topic PLAN.md.

Closes #429

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013NhxMDn7vZdbs7Cq32m56M
@claude

claude Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 2m 58s —— View job


Claude finished the code review

  • Gather context (PR diff, description, repo instructions)
  • Run /review:code-review per custom instructions
  • Post inline findings
  • Post final summary

Summary

Reviewed both changed files against origin/main:

  • distribution/sync-manifest.yml — clean deletion of the three zero-target component defs (concurrency-policy, dependabot-policy, pin-comment-convention). Verified independently: grep confirms zero remaining references to these names anywhere in the manifest, YAML structure around the removed blocks is intact, and no other component's requires: list pointed at them. The PR's claim that these are genuinely zero-target/zero-payload fleet-wide is plausible from the manifest alone (I did not re-verify the "downstream payloads anywhere in the fleet" claim across other repos — that's outside this repo's diff).
  • docs/topics/standards-sync-audit/PLAN.md — new Phase 3 planning section (audit trail, not itself sync-behavior-affecting).

1 finding posted inline: the Phase 3.1 "Sanity Check" line (PLAN.md:355) states the expected sync-manifest.sh validate output as "34 components, 8 targets". The manifest actually has 11 targets right now — Phase 4 (#428, three new sync targets) merged to main before this PR, moving the count from 8 → 11. Notably, this PR's own description already states the correct figure ("34 components, 11 targets"), so this looks like the embedded plan text simply wasn't updated to match after Phase 4 landed. Anyone using this doc post-merge to verify the change will hit a mismatch against the documented expectation. Suggested fix included inline.

No other correctness or maintainability issues found in the diff.
· Branch

@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: a1df10c8dd

ℹ️ 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".

@github-actions

Copy link
Copy Markdown

Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count.

Review findings: the 3.1 sanity expected-output predates the Phase 4
roster (11 targets now, not 8), and the engine filter-flag description
is tightened to the exact per-command matrix the CLI enforces.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013NhxMDn7vZdbs7Cq32m56M
@kyle-sexton
kyle-sexton merged commit 68e4a96 into main Aug 19, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the chore/sync-audit-phase3-zero-target-defs branch August 19, 2026 15:25
kyle-sexton added a commit that referenced this pull request Nov 24, 2026
## Summary

Phase F1 for the `runner-policy` component: the sync stops copying the
runtime to `.github/standards/runner-policy/`. Every enrolled target
runs
the gate from a standards checkout, and no reader in any target needs
the
copy. `trusted-actors` and `github-actions-conventions` were checked in
the
same pass and stay synced: pr-pipeline-sandbox still has readers that
take
only the copy (listed under Verification).

## Fix

- `distribution/sync-manifest.yml`: drop the `runner-policy` component
  definition, including its `requires: node-runtime` edge, and its
  `managed` entry in the seven targets (claude-code-account-rotation,
claude-code-plugins, dotfiles, github-iac, medley, pr-pipeline-sandbox,
provisioning). Every one of them already lists `node-runtime` itself, so
  `.node-version` stays synced. No component `requires` runner-policy.
  Reworded the account-rotation and pr-pipeline-sandbox comments that
  described the copy.
- `components/managed-files-guard/managed-files-guard.yml` and
`-fleet.yml`:
drop the seven `.github/standards/runner-policy/*` paths, which the
guard
  contract test keeps equal to the union of managed destinations.
- `distribution/README.md` ("Runner-policy consumers"),
  `components/runner-policy/README.md`, `.github/dependabot.yml`: say
consumers run `components/runner-policy/` from a standards checkout,
show
the `download-standards` job shape, and drop the "no consumer Dependabot
  entry for the byte-exact copy" rule, which only applied to a copy.
- `components/runner-policy/runner-policy.mjs`, `policy-input.mjs`: drop
  the "SYNC-MANAGED FILE" header. No logic changed; the dual caller-map
  acceptance (D13, until 2027-01-22) is untouched.
- `distribution/sync-manifest.test.sh`: drop the assertions about the
  runner-policy component; the production executable-mode check now runs
for lefthook-dotnet alone; add an assertion that `runner-policy` is not
a
  sync component.

Dropping a component deletes no target copy (`distribution/README.md`,
"Deselection never implies deletion"). Each target's F2 PR deletes it.

## Loosened checks

- `distribution/sync-manifest.test.sh` no longer asserts the
runner-policy
  component's `requires`, file count, source-to-destination mappings,
  sibling imports, seven-target list, or the executable mode of
`runner-policy.mjs` through a production apply. Each of those checked a
  copy this PR stops producing. The executable-mode check still covers
  lefthook-dotnet. The source Dependabot assertion for
  `/components/runner-policy` stays.

## Verification

Readiness method: `git grep` of each target's `origin/HEAD` after a
fetch,
for `.github/standards/runner-policy`, `trusted-actors` and
`github-actions-conventions` paths. Heads read:
claude-code-account-rotation
989e5bf, claude-code-plugins d01edcc4536, dotfiles 6930b8d, github-iac
39184f1, medley bb807545, pr-pipeline-sandbox a9c575f, provisioning
807f419.

runner-policy, per target (no reader requires the copy):

- claude-code-plugins: the gate runs
`$STANDARDS_DIR/components/runner-policy`
  (`.github/workflows/pr-require-checks.yml:1968,1984`). Other hits are
  CODEOWNERS:17-21, the `dependabot.yml:85` directory entry (F2), a test
  fixture and docs.
- pr-pipeline-sandbox: no workflow, action or script reads the copy
after
#430. `scripts/lanes/check-sync.sh:148-151` pins the copies' blobs
against
  claude-code-plugins (a sync check; it is updated in the sandbox F2).
  `thread-scope.test.mjs:256` is a fixture.
- github-iac: the gate runs `$STANDARDS_PATH/components/runner-policy`
(`pr-require-checks.yml:161,174`); `:150` `cache-dependency-path` on the
  copy's lockfile, `.github/dependabot.yml:83`, and the local
  `docs/conventions/ecosystems/yaml.yaml:36,50` command are F2 items.
- provisioning: the gate runs from standards
(`pr-require-checks.yml:215,221`);
`:143-144` path filter, `:197` cache-dependency-path and `yaml.yaml:22`
are
  F2 items.
- medley: the gate runs from standards
(`pr-require-checks.yml:817-829`);
`dependabot.yml:105`, `detect-ecosystems.test.sh:158,374-375` fixtures
and
`list-ci-packages.sh` discovery (lists whatever package roots exist) are
  F2 items.
- dotfiles: `docs/conventions/ecosystems/yaml.yaml:23,33,37` and
`typescript.yaml:4` (local lint command) and `dependabot.yml:71` are F2
  items.
- claude-code-account-rotation:
`docs/conventions/ecosystems/yaml.yaml:11,15,18,21`
  and `typescript.yaml:17` (local lint command) are F2 items.

Not moved, for the record (pr-pipeline-sandbox readers that take only
the
copy):

- trusted-actors: `.github/workflows/pr-require-checks.yml:242`
(contents
API on the base commit's copy), `:576,:604,:644` (merge-group hold
config
  checkout), `.github/workflows/pr-refine.yml:161-169` (runs
`fix-ci-context.mjs` with no `STANDARDS_DIR`, so
`fix-ci-context.mjs:311`
reads the copy),
`.github/workflows/maintenance-delete-stale-branches.yml:118-125`
  (`branch-cleanup/cleanup.mjs:382` passes only `BASE_PATH`),
  `docs/conventions/work-items.yaml:9`.
- github-actions-conventions: the same `pr-refine.yml` and
  `maintenance-delete-stale-branches.yml` paths reach
`resolve-config.mjs:38` through `filesUnderBase` with no standards path.

Commands:

- `sync-manifest.sh validate`: `Manifest valid: 52 components, 19
targets`.
- `sync-manifest.sh plan --targets

melodic-software/pr-pipeline-sandbox,melodic-software/claude-code-plugins,melodic-software/medley`:
  no `runner-policy` line; sandbox keeps `node-runtime`.
- `harness/shell/run-tests.sh distribution/sync-manifest.test.sh
  components/managed-files-guard/managed-files-guard.test.sh`: 2 passed.
- `node --test components/runner-policy/runner-policy.test.mjs
  components/dependabot-policy/automerge-lockstep.test.mjs`: 266 passed,
  0 failed.

## Related

- #1123: the same retirement for `runner-policy-contract`.
- #1124: the same retirement for `zizmor` and `lychee`.
- melodic-software/pr-pipeline-sandbox#430: the lane resync that removed
  the sandbox's last copy-only runner-policy readers.

Refs: #1101

🤖 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.

Delete the zero-target component manifest defs (concurrency-policy, dependabot-policy, pin-comment-convention)

1 participant