Repository navigation
feat(dedup-program): open Track B config distribution + dogfood stubs - #53
Conversation
Track B (config & file distribution) opens alongside Track A (CI execution): research, a build/activation plan, and a distribution manifest for automating the upstream->downstream config cascade that is manual today (the comment-hygiene hand re-sync of four repos is the motivating pain). Also fixes a self-dogfooding gap: configs vendored under modules/ were not found by local auto-discovery (lefthook / editors / agent edit hook), which fell back to tool defaults while CI used the module config via --config (the shipped base.yml cannot be overridden from a root lefthook.yml -- verified). Adds root extend-stubs that inherit the module SSOT, each verified to CI parity; the unstubbable tools (markdown is cli2-format; typos/shellcheck/editorconfig-checker/psscriptanalyzer have no extend) are documented as reference-mode. - docs/dedup-program: two-track reframing (README/plan/rollout) - docs/dedup-program/research/config-distribution.md: cited findings - docs/dedup-program/config-distribution-plan.md: build & activation plan - distribution/sync-manifest.yml: Layer-2 distribution manifest (draft) - ruff.toml, .gitleaks.toml, biome.json: dogfood extend-stubs Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy
|
Claude finished @kyle-sexton's task in 2m 41s —— View job Review
This is a well-structured PR. The extend-stubs are minimal and correctly wired; the manifest is sound architecture-in-draft. A few things worth flagging before activation. Extend-stubsAll three stubs correctly reference modules that exist, and the extend semantics are right:
The Sync manifestSource paths verified — every Include-key cross-check — all keys referenced in One activation-time gap to flag: Missing manifest version field — as the schema grows (new Workflow snippet (in
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f8e90ca597
ℹ️ 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".
- biome stub must be `.jsonc`, not `.json`: Biome SILENTLY ignores a commented biome.json (no error, falls back to defaults), so the commented dogfood stub uses the .jsonc extension. Verified: good fixture clean, bad flags, CI --config-path lane unperturbed. Adds the $schema-in-sync note the reviewer asked for. - manifest: add `version: 1` for forward-compatible engine validation. - manifest: document the stub PAIRING RULE (include a *-stub only where the base tool is used and its entry is included) and drop `ruff-stub` from kyle-sexton/github-iac (C#, no Python — the extend would have errored). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy
|
Claude finished @kyle-sexton's task in 2m 40s —— View job Review
The fixup commit ( One bug to fix before activation
- repo: melodic-software/provisioning # PowerShellShould be This also affects the auth: the Prior findings — all addressedThe fixup commit resolved every open item from the first review: biome.json → biome.jsonc — correct. Biome silently ignores a commented
PAIRING RULE documented + "Install on both accounts" surfaced in the activation checklist — the checklist item now reads: "Install on both the org and the personal account if targets span both (per-account App + secret; see the cross-account caveat above)." ✅ Extend-stubs (unchanged from first review — all correct)
SummaryMerge-ready after the provisioning owner is corrected. The manifest is already marked "DRAFT, NOT YET WIRED" so this is a pre-activation catch with no immediate blast radius, but it's clean to fix now while the manifest is being shaped. |
|
Thanks — addressed in
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bb60cdd6d7
ℹ️ 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".
…re-review) provisioning lives at kyle-sexton/provisioning (personal), not under the org -- the engine would otherwise try the org App on a non-existent repo and leave the real one unsynced. Caught by Codex via the review bot. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy
|
Good catch (via Codex) — fixed in |
|
Claude finished @kyle-sexton's task in 1m 29s —— View job Review
Provisioning fix — confirmed correct
One open finding (Codex, not yet addressed)
on:
workflow_dispatch:
inputs:
dry-run:
type: boolean
default: true
schedule:
- cron: "0 6 * * 1"The push:
branches: [main]
paths:
- "modules/**"
- "distribution/sync-manifest.yml"(Exact paths can be refined at build time; the point is to include the trigger in the snippet now so it isn't forgotten.) Since the snippet is in a planning doc and won't be activated until the engine merges, this doesn't block the PR — but updating the snippet now keeps the doc accurate and prevents the gap from persisting into the activation checklist. Fix this → SummaryAll three commits' findings are clean. The provisioning owner ( |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46c47e924c
ℹ️ 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".
…view) The prose says the caller triggers on push-to-main + schedule, but the ready-to-paste snippet only had workflow_dispatch + schedule. Add the push trigger (paths-filtered to the distributed files) so the cascade fires when a config changes upstream; on push, inputs.dry-run is unset so `|| false` makes it a real run, consistent with the schedule path. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy
|
Fixed in the latest commit: added the paths-filtered |
|
Claude finished @kyle-sexton's task in 1m 59s —— View job Review
Push trigger — confirmed correct
push:
branches: [main]
paths: # cascade when a distributed file changes upstream
- modules/**
- .editorconfig
- .gitattributes
- distribution/sync-manifest.ymlThis matches the prose and covers every manifest
One minor observation: Codex finding — editorconfig-checker absent from all target include listsThis one is valid and worth addressing before activation.
editorconfig-checker:
source: modules/editorconfig/.editorconfig-checker.json
root: .editorconfig-checker.json
modules: modules/editorconfig/.editorconfig-checker.jsonBut none of the four targets include it. The plan doc (L32) explicitly lists The fix is straightforward — add SummaryThe push trigger commit is correct — this PR is ready to merge. The one remaining item (missing |
#53) Targets carried `editorconfig` (.editorconfig) but not `editorconfig-checker` (.editorconfig-checker.json); every consumer running the editorconfig lane needs both. Added to all four starter targets. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy
|
Claude finished @kyle-sexton's task in 1m 12s —— View job Review
editorconfig-checker fix — confirmed correct
Source file verified: Push trigger covers this file — The two commented-out targets (medley, ci-workflows) are correctly left unannotated — they're explicitly deferred with notes explaining why. ✅ SummaryThis commit closes the last open finding from the review series. All five commits' findings are resolved:
Merge-ready. No remaining findings. |
|
Added |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d8a2883968
ℹ️ 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".
|
Claude finished @kyle-sexton's task in 1m 44s —— View job Review
Merge commit — clean
No conflicts with the Track B changes. Branch content is unchanged from the last reviewed commit ( Codex P2 — root stub sources absent from push filterThis is the one open item carried from the prior Codex review and worth a final call.
paths: # cascade when a distributed file changes upstream
- modules/**
- .editorconfig
- .gitattributes
- distribution/sync-manifest.ymlThe manifest's Two ways to resolve: Option A — add the two stub sources (2 lines): paths:
- modules/**
- ruff.toml # ruff-stub source
- .gitleaks.toml # gitleaks-stub source
- .editorconfig
- .gitattributes
- distribution/sync-manifest.ymlOption B — narrow the comment to clarify the exclusion is intentional: paths: # cascade when a module/manifest/always-root file changes; stub sources excluded (weekly cron covers drift)Given the snippet is ready-to-paste at activation and Not a blocker; the manifest is already marked "DRAFT, CONFIRM at activation" and the weekly cron ensures eventual consistency. But the snippet's own comment currently overstates what gets caught on push. Fix this → SummaryMerge commit is a clean CI sync — no conflicts. The one open Codex P2 (root stub sources missing from push paths) is a documentation accuracy issue, not a correctness bug. The PR is merge-ready as-is; addressing the inconsistency is a minor polish item (two lines or a comment tweak) if you'd like the snippet to match its own inline comment before it gets activated. |
…ex P2) The caller `push.paths` omitted the root stub sources (ruff.toml, .gitleaks.toml) that the manifest distributes (ruff-stub/gitleaks-stub), so a change to a stub would not cascade until the weekly cron. Added them to the paths filter. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy
…c-software/standards into track-b-config-distribution
|
Claude finished @kyle-sexton's task in 1m 1s —— View job Review
Codex P2 fix — confirmed correct
paths: # cascade when a distributed file changes upstream
- modules/**
- .editorconfig
- .gitattributes
- ruff.toml # root stub source (ruff-stub)
- .gitleaks.toml # root stub source (gitleaks-stub)
- distribution/sync-manifest.ymlThe inline comments make the intent legible to a future editor. The paths list now covers every Merge commit (9a5d0f1) — cleanThe remote sync brings in only CI infrastructure from the
No conflicts with Track B content. ✅ All findings resolved — complete series
Merge-ready. No remaining findings. |
|
All Codex (P2) threads on this PR are addressed in code — mapping for quick resolution:
All checks are green. I'm not permitted to self-resolve reviewer threads, so these 6 need a human to mark resolved (or an admin merge) — they're all genuinely handled. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a5d0f1b0b
ℹ️ 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".
…B) (#50) ## Summary The first-party **sync engine** for standards **Track B** (config & file distribution) — see the companion PR melodic-software/standards#53 for the program docs, manifest, and decisions. Reads a distribution manifest from `standards`, copies each included file to its per-layout destination in each target repo, and **opens a PR per target** (never pushes to a default branch). Upstream is authoritative; synced files are read-only-by-convention downstream. ## Inert by design — safe to merge before activation - `dry-run` **defaults true**: the `plan` job logs the full per-target plan from the manifest alone (no target checkout, no token), so it is useful and harmless before auth exists. - The writing `sync` job is gated (`if: !inputs.dry-run`) behind a **GitHub App token** that is not provisioned yet (a separate gated step via `github-iac`, per-account). - A missing per-layout destination is skipped, not an error (supports layout-specific files like the root extend-stubs). ## Security posture - All actions SHA-pinned per **D5** (`checkout`, `create-github-app-token`, `create-pull-request`); `persist-credentials: false`; the App token is scoped per-owner (`owner` + `repositories`); inputs passed via `env`, never inlined into `run`. - Please confirm it's clean against this repo's **actionlint + zizmor** lanes — `actionlint` is clean locally; zizmor I could not run locally. ## Not in this PR (gated) - The caller workflow in `standards` (added at activation, pinned to this workflow's `@SHA`). - GitHub App creation + secrets via `github-iac`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Verified no current link-check consumer overrides the reusable workflow's `args`, so each uses ci-workflows' bundled lychee config and tracks ruleset changes through its pinned ci-workflows @sha (Track A), not a synced local file. Drop lychee from provisioning's include (a synced copy would be inert) and document that lychee is only distributed to a consumer that adopts a local `--config`. Applies the manifest's own include-only-what-is-consumed rule with verified data; addresses the Track B review finding on lychee propagation. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XVpVGMxPqM8Kxaj2d9kcui
|
Claude finished @kyle-sexton's task in 1m 57s —— View job Claude finished @kyle-sexton's task —
Lychee fix — confirmed correct (and better than the Codex suggestion)The Codex P2 finding asked to add What the commit actually does (
The verification date is the key detail: this is a policy decision anchored to observed repo state, not an assumption, and it's dated so a future editor knows to re-verify if consumers change. The Codex suggestion to add lychee to Minor observation (not a blocker): Only All source paths verified, include cross-check holds. ✅ Complete series — all findings resolved
Merge-ready. No remaining findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 396784f4d6
ℹ️ 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".
…umers Corrects the previous lychee change. Verified against the source: the ci-workflows link-check reusable workflow checks out the caller (no `repository:` override) and defaults to `--config modules/lychee/lychee.toml`, so a consumer calling it without `args` reads its own vendored modules/lychee/lychee.toml — provisioning and claude-code-plugins both carry that file (identical sha). So lychee must sync to modules/lychee/ in both layouts (never repo root), and both link-check consumers include it. Restores lychee to provisioning and adds it to claude-code-plugins. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XVpVGMxPqM8Kxaj2d9kcui
|
Claude finished @kyle-sexton's task in 2m 50s —— View job Review
Lychee fix — confirmed correct (and corrects the prior correction)The Codex P2 finding was right: the previous commit ( What changed (
Push filter already correct — Complete series — all findings resolved
Merge-ready. No remaining findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a036a5a9d
ℹ️ 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".
Resolves the three deferred config-distribution review findings captured from the Track B scaffolding PR (#53), so they no longer block wiring the sync. ## 1. Ruff stub: per-file-ignore scope drift (verified empirically) Ruff resolves a config file's relative paths against **that file's own directory** when the file is reached via `extend`/auto-discovery, but against the **CWD** when it is passed via `--config` ([configuration docs](https://docs.astral.sh/ruff/configuration/)). Via the root stub, the module's `"tests/**"` ignores therefore resolved to `modules/python/tests/**`, so local auto-discovered Ruff flagged `S101` in repo-root test files that the CI run (`--config modules/python/ruff.toml`) accepts — reproduced with a synthetic `tests/test_synth.py` before the fix. - The root stub now re-anchors the path-anchored ignores via `[lint.extend-per-file-ignores]` (unanchored keys — `__init__.py`, `**/conftest.py` — match in both modes and are not repeated; also verified). - The module's downstream-extension example now shows `extend-per-file-ignores` and documents the anchoring semantics: a plain `[lint.per-file-ignores]` table in a child **replaces** the extended parent's map entirely (verified empirically — the parent's `__init__.py` F401 ignore was lost). - Parity re-verified both ways: bad fixture 8/8 findings, synthetic test file clean in discovery and `--config` modes; `modules/python/python.test.sh` passes. ## 2. Activation plan no longer assumes Pulumi creates the GitHub App The Pulumi GitHub provider only exposes [authentication as an existing App](https://www.pulumi.com/registry/packages/github/api-docs/provider/) and [`AppInstallationRepository`](https://www.pulumi.com/registry/packages/github/api-docs/appinstallationrepository/) for already-installed Apps; App creation is unsupported upstream ([terraform-provider-github#2389](integrations/terraform-provider-github#2389)). The plan's Auth section now records the limitation with sources and adds the one-time manual bootstrap per account (direct or [App-manifest registration](https://docs.github.com/en/apps/sharing-github-apps/registering-a-github-app-from-a-manifest)) that hands the IDs/private key off to `github-iac` (Pulumi) for everything the provider can express. ## 3. Explicit pre-activation target re-confirmation Per the manifest's own header, the gated activation checklist now opens with re-confirming every target's `layout` and `include` list against the live repos immediately before wiring — rollout.md (which seeded the manifest) is a dated snapshot, and the authoring-time manifest pass does not stand in for it. The sync workflow itself remains **inert / not wired** — no activation in this PR. Closes #55 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017K9RRMdUKD7HLExmHwMXAe <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation and Ruff stub configuration only; no sync wiring, auth secrets, or production runtime changes. > > **Overview** > Closes deferred Track B review items so config distribution can be wired later; **the sync workflow stays inert** in this PR. > > **Ruff local vs CI parity:** The root `ruff.toml` stub now adds `[lint.extend-per-file-ignores]` for `tests/**` so auto-discovered runs match CI (`--config modules/python/ruff.toml`). Ruff anchors relative ignore paths to the config file under `extend`, but to the CWD under `--config`, which had narrowed test ignores to `modules/python/tests/**` locally. `modules/python/ruff.toml` comments now document `extend-per-file-ignores`, replace-vs-merge behavior, and this anchoring; `config-distribution-plan.md` records the same for the dogfood stub. > > **Activation plan:** Auth no longer assumes Pulumi can **create** a GitHub App—manual bootstrap per account, then `github-iac` for repo grants and caller secrets. The gated checklist adds **re-confirm manifest targets against live repos** immediately before wiring (rollout snapshot is not enough). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 43c4f64. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Claude Fable 5 <[email protected]>
Summary
Opens Track B (config & file distribution) of the dedup program — automating the manual upstream→downstream config cascade — and fixes a self-dogfooding gap found along the way. Companion PR adds the inert sync engine in
ci-workflows.Track B scaffolding (inert)
README.md,plan.md,rollout.md): Track A = CI execution (existing), Track B = config/file distribution (new). The hand re-sync of four repos when the comment-hygiene policy changed is the motivating pain.research/config-distribution.md— cited findings: two-layer strategy (nativeextends/packages where supported; first-party sync for the rest).config-distribution-plan.md— build & activation plan: manifest schema, the first-party sync engine, auth via agithub-iacGitHub App (per-account), the GitHub Packages decision (public/free), and a gated activation checklist.distribution/sync-manifest.yml— the Layer-2 distribution manifest (draft; inert until the engine is wired). Encodes both consumer layouts (root/modules).Self-dogfooding fix
Configs vendored under
modules/weren't found by local auto-discovery (lefthook, editors, the agent edit hook), which used tool defaults while CI used the module config via--config. The shippedbase.ymlcan't be overridden from a rootlefthook.yml(verified), so the fix is root extend-stubs that inherit the module SSOT:ruff.toml(extend),.gitleaks.toml([extend] path),biome.json(extends,root:true) — each verified to exact CI parity, and confirmed not to perturb the existing ruff/gitleaks/biome CI lanes (they pass--config/--config-path).Validation
actionlintclean; new files pass editorconfig/typos; manifest structurally cross-checked (everyincludeis a definedfileskey); links resolve.Gated / not in this PR (need explicit go)
@melodic/*, .NET) — public/free path chosen.github-iac(Pulumi), per-account.@SHAand activate once the engine merges.🤖 Generated with Claude Code
https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy