Skip to content

feat(dedup-program): open Track B config distribution + dogfood stubs - #53

Merged
kyle-sexton merged 10 commits into
mainfrom
track-b-config-distribution
Jul 3, 2026
Merged

kyle-sexton merged 10 commits into
mainfrom
track-b-config-distribution

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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)

  • Two-track reframing of the program (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 (native extends/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 a github-iac GitHub 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 shipped base.yml can't be overridden from a root lefthook.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).
  • Unstubbable tools (markdown ships cli2-format; typos/shellcheck/editorconfig-checker/psscriptanalyzer have no extend) documented as reference-mode; markdown module refactor deferred with a trigger.

Validation

  • markdownlint clean (module config and stricter default rules); actionlint clean; new files pass editorconfig/typos; manifest structurally cross-checked (every include is a defined files key); links resolve.

Gated / not in this PR (need explicit go)

  • GitHub Packages publish (@melodic/*, .NET) — public/free path chosen.
  • GitHub App + token via github-iac (Pulumi), per-account.
  • Pin the caller @SHA and activate once the engine merges.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GbDWhcUtduCejgi7mcbMfy

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

claude Bot commented Jun 28, 2026 •

Copy link
Copy Markdown

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


Review

  • Gather context
  • Review extend-stubs (ruff.toml, .gitleaks.toml, biome.json)
  • Review distribution/sync-manifest.yml
  • Review documentation changes
  • Post findings

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

All three stubs correctly reference modules that exist, and the extend semantics are right:

  • ruff.toml: extend = "modules/python/ruff.toml" — ruff's extend is additive, so the stub inherits without replacing.
  • .gitleaks.toml: [extend] path = "..." — chains correctly through stub → module → gitleaks defaults.
  • biome.json: "root": true overrides the module's "root": false — stops biome from walking further up, which is the right call here.

The $schema version (2.5.1) matches between the stub and modules/typescript/biome.json. Worth noting: the stub comment says "Edit the ruleset in the module, never here", but the schema URL would need updating in both files when Biome bumps its schema version. A one-liner note in the stub (e.g. # keep $schema in sync with modules/typescript/biome.json) would make this obvious to a future editor.


Sync manifest

Source paths verified — every files.<key>.source in the manifest resolves to a real file in the current tree. No phantom references.

Include-key cross-check — all keys referenced in targets[*].include are defined under files. The manifest header's "structurally cross-checked" claim holds.

One activation-time gap to flag: kyle-sexton/github-iac (modules layout) includes ruff-stub but not ruff. The stub distributes ruff.toml, which contains extend = "modules/python/ruff.toml". If modules/python/ruff.toml doesn't exist in the consumer (a C# Pulumi repo, unlikely to have Python), ruff would error when auto-discovering from the root stub. At activation, either pair ruff-stub with ruff in that target's include list, or drop ruff-stub if the consumer has no Python tooling. This is low urgency since the manifest is already marked as "confirm at activation", but worth a comment inline to pre-empt the question.

Missing manifest version field — as the schema grows (new files keys, new layout names, new engine behavior), there's no version field for the sync engine to validate against. A version: 1 at the top is a small addition that makes backward-compatibility handling explicit once the engine is built.


Workflow snippet (in config-distribution-plan.md)

The dry-run expression ${{ inputs.dry-run || false }} is correct: inputs.dry-run is undefined on a schedule trigger (not false), so || false correctly makes scheduled runs real. The comment explains the intent and guards against the easy inversion mistake — good.


Documentation

README, plan, rollout, research, and plan doc are internally consistent. The Track A / Track B framing is clear, the motivation (hand re-sync of four repos) is grounded, and the gating decisions (GitHub Packages visibility, cross-account App, @SHA pin) are explicit with rationale. The "re-verify before building" section in the research doc is useful — the [re-verify] flags on fast-moving claims (Biome npm extends version-gating, markdownlint package resolution, Ruff remote extend) are honest about harness confidence limits.

One small thing: the cross-account caveat in config-distribution-plan.md (org App vs. personal account App) is well-explained, but the activation checklist item GitHub App + access doesn't surface the "install on both accounts" requirement at the checklist level — it's only in the prose above. Worth adding a sub-bullet so it's not missed during activation.


Summary

The stubs are correctly implemented and verified against CI parity. The manifest is a sound draft. Main pre-activation action: confirm ruff-stub pairing for C# consumers, and surface the dual-account App installation in the checklist. Everything else is minor polish or deferred-until-build.

@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: 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".

Comment thread distribution/sync-manifest.yml Resolved
- 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

claude Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

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


Review

  • Gather context
  • Read CLAUDE.md guidelines
  • Review PR diff (fixup commit bb60cdd addresses prior findings)
  • Check what the fixup commit addressed from previous review
  • Review changed files in detail
  • Post findings

The fixup commit (bb60cdd) correctly addressed every finding from the prior review. One bug remains — flagged by Codex — that was not in the fixup scope.


One bug to fix before activation

distribution/sync-manifest.yml L105:

- repo: melodic-software/provisioning           # PowerShell

Should be kyle-sexton/provisioning. The rollout.md adoption table and the per-repo scope section both confirm provisioning lives in the personal account. At activation, the sync engine would attempt to install the App on melodic-software for a repo that doesn't exist there while kyle-sexton/provisioning stays unsynced.

This also affects the auth: the kyle-sexton/provisioning and kyle-sexton/github-iac targets both require the personal-account App installation, so the pairing in the manifest should be consistent. With melodic-software/provisioning, the engine would try the org installation for a non-existent repo. Fix this →


Prior findings — all addressed

The fixup commit resolved every open item from the first review:

biome.json → biome.jsonc — correct. Biome silently ignores a commented .json file (falls back to defaults, no error); .jsonc is the only safe extension for a commented stub. The commit message confirms the verification path (good fixture clean, bad fixture flags, CI --config-path lane unperturbed). The $schema-in-sync note was added (Keep $schema in lockstep with modules/typescript/biome.json on a bump). ✅

version: 1 in the manifest — present with a comment explaining the forward-compatibility intent. ✅

PAIRING RULE documented + ruff-stub removed from kyle-sexton/github-iac — the comment block at the stub definition explains the rule clearly, and the C# Pulumi target's inline comment (No Python here, so / no ruff / ruff-stub (would break the extend)) makes the exclusion legible to a future editor. ✅

"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)

  • ruff.toml: extend = "modules/python/ruff.toml" — additive, no duplication. ✅
  • .gitleaks.toml: [extend] path = "modules/gitleaks/.gitleaks.toml" — chains correctly through stub → module → defaults. ✅
  • biome.jsonc: "extends": ["./modules/typescript/biome.json"], "root": true, .jsonc extension. $schema version (2.5.1) matches the module. ✅

Summary

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

@kyle-sexton

Copy link
Copy Markdown
Member Author

Thanks — addressed in bb60cdd:

  • biome stub $schema sync note → done, but it surfaced a real gotcha: a commented biome.json is silently ignored by Biome (no error, falls back to defaults, so extends never applies — the good fixture started failing formatting). Switched the stub to biome.jsonc, which carries the explanatory header + the # keep $schema in lockstep note and verifies clean (good fixture passes, bad flags, CI --config-path lane unperturbed).
  • ruff-stub without ruff on the C# repo → fixed: dropped ruff-stub from kyle-sexton/github-iac (no Python) and documented the pairing rule inline (include a *-stub only where the base tool is used + its entry is included).
  • Manifest version field → added version: 1.
  • Dual-account App install in the checklist → it's already at checklist level ("Install on both the org and the personal account…"), so no change there.

@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: 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
@kyle-sexton

Copy link
Copy Markdown
Member Author

Good catch (via Codex) — fixed in 46c47e9: provisioning corrected to kyle-sexton/provisioning (personal account). All four prior findings confirmed resolved in the re-review. Thanks!

@claude

claude Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 29s —— View job


Review

  • Gather context
  • Read CLAUDE.md guidelines (none present)
  • Review latest commit (46c47e9) — provisioning fix
  • Check Codex finding: missing push trigger in workflow snippet
  • Post findings

Provisioning fix — confirmed correct

distribution/sync-manifest.yml L105 now reads kyle-sexton/provisioning # PowerShell (personal acct) — matches rollout.md L28 exactly. The inline comment also makes the personal-account context visible to a future editor. ✅


One open finding (Codex, not yet addressed)

config-distribution-plan.md L74–75 says the caller workflow "triggers on push to main (paths: the distributed files) and on a schedule", but the ready-to-paste YAML snippet immediately below (L81–106) only has workflow_dispatch and schedule:

on:
  workflow_dispatch:
    inputs:
      dry-run:
        type: boolean
        default: true
  schedule:
    - cron: "0 6 * * 1"

The push/paths trigger is absent. Copying this snippet at activation means config changes merged to main won't open downstream sync PRs until the next weekly cron or a manual dispatch — the consumers stay stale for up to a week. Adding it before activation:

    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 →


Summary

All three commits' findings are clean. The provisioning owner (46c47e9) is correct. The one remaining item is the missing push trigger in the workflow snippet — low urgency since the workflow is explicitly gated, but worth fixing before the doc is used at activation.

@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: 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".

Comment thread distribution/sync-manifest.yml Resolved
…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
@kyle-sexton

Copy link
Copy Markdown
Member Author

Fixed in the latest commit: added the paths-filtered push trigger to the caller snippet so it matches the prose (push-to-main + schedule). On push, inputs.dry-run is unset so || false keeps it a real run — consistent with the schedule path. That clears the last item.

@claude

claude Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 59s —— View job


Review

  • Gather context
  • Read CLAUDE.md guidelines (none present)
  • Review latest commit (4960330) — push trigger fix
  • Check Codex finding: editorconfig-checker missing from target syncs
  • Post findings

Push trigger — confirmed correct

config-distribution-plan.md L84–90 now includes:

push:
  branches: [main]
  paths:  # cascade when a distributed file changes upstream
    - modules/**
    - .editorconfig
    - .gitattributes
    - distribution/sync-manifest.yml

This matches the prose and covers every manifest files[*].source path:

  • modules/** → all module configs (gitleaks, typos, shellcheck, ruff, pyright, editorconfig-checker, psscriptanalyzer, lychee, markdown, comment-hygiene)
  • .editorconfig, .gitattributes → the always-root entries
  • distribution/sync-manifest.yml → manifest changes that add/remove targets

One minor observation: ruff.toml and .gitleaks.toml at root are also distributed (as ruff-stub and gitleaks-stub sources), but aren't in the paths filter. Since stub content is intentionally minimal and unlikely to change independently of the module files they extend, the weekly cron covers any drift. Not worth adding noise to the paths list. ✅


Codex finding — editorconfig-checker absent from all target include lists

This one is valid and worth addressing before activation.

distribution/sync-manifest.yml L49–52 defines the editorconfig-checker file entry:

editorconfig-checker:
  source: modules/editorconfig/.editorconfig-checker.json
  root: .editorconfig-checker.json
  modules: modules/editorconfig/.editorconfig-checker.json

But none of the four targets include it. The plan doc (L32) explicitly lists .editorconfig-checker.json as a Layer-2 sync candidate, and rollout.md confirms all four targets run the editorconfig lane (which reads this file). The Version: "" fix propagated to medley manually in its first wave would be exactly the kind of drift that goes undetected without this entry in the include lists.

The fix is straightforward — add editorconfig-checker to each target's include list (all four targets run the lane). Since the manifest is already draft/inert and carries the "CONFIRM at activation" header, this can be a pre-activation addition rather than a blocker today. Worth noting inline alongside the existing "CONFIRM" language so it isn't missed.

Fix this →


Summary

The push trigger commit is correct — this PR is ready to merge. The one remaining item (missing editorconfig-checker in target include lists) is low urgency since the manifest is inert, but clean to fix now rather than catching it at activation.

#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

claude Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 12s —— View job


Review

  • Gather context
  • Read CLAUDE.md guidelines (none present)
  • Review latest commit (d8a2883) — editorconfig-checker fix
  • Post findings

editorconfig-checker fix — confirmed correct

distribution/sync-manifest.yml L108, L121, L133, L143 — editorconfig-checker added immediately after editorconfig in all four active targets:

Target Layout Added at
kyle-sexton/provisioning root L109
kyle-sexton/github-iac modules L121
melodic-software/github-iac root L133
melodic-software/claude-code-plugins root L143

Source file verified: modules/editorconfig/.editorconfig-checker.json exists. The definition at L49–52 maps correctly (root: .editorconfig-checker.json, modules: modules/editorconfig/.editorconfig-checker.json). ✅

Push trigger covers this file — modules/** at config-distribution-plan.md L85 captures modules/editorconfig/.editorconfig-checker.json, so upstream changes will cascade. ✅

The two commented-out targets (medley, ci-workflows) are correctly left unannotated — they're explicitly deferred with notes explaining why. ✅


Summary

This commit closes the last open finding from the review series. All five commits' findings are resolved:

  • f8e90ca — initial scaffolding ✅
  • bb60cdd — biome stub → .jsonc, ruff-stub pairing rule, manifest version: 1, dual-account checklist item ✅
  • 46c47e9 — provisioning owner corrected to kyle-sexton ✅
  • 4960330 — push/paths trigger added to caller snippet ✅
  • d8a2883 — editorconfig-checker included in all four targets ✅

Merge-ready. No remaining findings.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Added editorconfig-checker to all four starter targets (the .editorconfig-checker.json companion to .editorconfig). Note the manifest is a "confirm at activation" starter, so the precise per-target include lists get a final pass against the live repos before the engine is wired — but good to land the obvious ones now.

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

claude Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 44s —— View job


Review

  • Gather context
  • Read CLAUDE.md / REVIEW.md guidelines (none present)
  • Review latest merge commit (3eb841d) — main sync
  • Check Codex finding: root stub sources absent from push filter
  • Post findings

Merge commit — clean

3eb841d merges only CI infrastructure from main:

No conflicts with the Track B changes. Branch content is unchanged from the last reviewed commit (d8a2883). ✅


Codex P2 — root stub sources absent from push filter

This is the one open item carried from the prior Codex review and worth a final call.

config-distribution-plan.md L86 reads:

paths:  # cascade when a distributed file changes upstream
  - modules/**
  - .editorconfig
  - .gitattributes
  - distribution/sync-manifest.yml

The manifest's ruff-stub (source: ruff.toml) and gitleaks-stub (source: .gitleaks.toml) are distributed Layer-2 files, but their sources aren't in the paths filter. The previous review called this intentional ("stubs change rarely; weekly cron covers drift"), but the inline comment claims this cascades for all distributed files — that claim is technically inaccurate for stubs.

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

Option 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 gitleaks-stub is already active on kyle-sexton/github-iac, Option A is the cleaner fix — it costs two lines and removes the inconsistency cleanly. Option B is also acceptable if you'd rather keep the paths list minimal and make the exclusion explicit.

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 →


Summary

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

kyle-sexton and others added 2 commits June 29, 2026 09:52
…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

claude Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

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


Review

  • Gather context
  • Review latest commits (3fe0899 — Codex P2 fix; 9a5d0f1 — remote sync merge)
  • Verify Codex P2 fix: root stub sources in push filter
  • Post findings

Codex P2 fix — confirmed correct

config-distribution-plan.md L90–91 now includes both stub sources in the push filter:

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

The inline comments make the intent legible to a future editor. The paths list now covers every files[*].source in the manifest — no distributed file changes on push without triggering a cascade. ✅


Merge commit (9a5d0f1) — clean

The remote sync brings in only CI infrastructure from the 3eb841d main-merge:

  • .github/dependabot.yml — scope additions
  • .github/workflows/ci.yml — action version bumps
  • .github/workflows/link-check.yml / pr-title.yml — action pinning

No conflicts with Track B content. ✅


All findings resolved — complete series

Commit Finding Status
bb60cdd biome stub → .jsonc, ruff-stub pairing rule, manifest version: 1, dual-account checklist ✅
46c47e9 provisioning owner corrected to kyle-sexton ✅
4960330 Push/paths trigger added to caller snippet ✅
d8a2883 editorconfig-checker included in all four targets ✅
3fe0899 Root stub sources (ruff.toml, .gitleaks.toml) added to push filter ✅

Merge-ready. No remaining findings.

@kyle-sexton

Copy link
Copy Markdown
Member Author

All Codex (P2) threads on this PR are addressed in code — mapping for quick resolution:

Thread Fix
Target provisioning under right owner 46c47e9 — corrected to kyle-sexton/provisioning
Add push trigger to caller 4960330 — push/paths added
Include editorconfig-checker in targets d8a2883 — added to all 4 targets
Include root stub sources in push filter latest — added ruff.toml, .gitleaks.toml to paths

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.

@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: 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".

Comment thread distribution/sync-manifest.yml Resolved
kyle-sexton added a commit to melodic-software/ci-workflows that referenced this pull request Jun 29, 2026
…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

claude Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 57s —— View job


Claude finished @kyle-sexton's task —


  • Gather context
  • Read CLAUDE.md / REVIEW.md guidelines (none present)
  • Review latest commit (396784f) — lychee sync fix
  • Verify Codex P2 fix: lychee handling in manifest
  • Post findings

Lychee fix — confirmed correct (and better than the Codex suggestion)

The Codex P2 finding asked to add lychee to melodic-software/claude-code-plugins. The commit instead took the right path: investigate first, then act.

What the commit actually does (distribution/sync-manifest.yml):

  1. Removes lychee from kyle-sexton/provisioning's include list — provisioning had it, but this was incorrect: provisioning calls link-check without overriding args, so it uses ci-workflows' bundled modules/lychee/lychee.toml (Track A). A synced local copy would be inert.

  2. Adds a block comment at L57–63 documenting the distribution rule:

    Only sync to a consumer that passes its own --config <root>/lychee.toml … No current consumer overrides args (verified 2026-07-03), hence lychee is in no target include below.

  3. Inline comment on the provisioning target explaining why lychee was removed — makes the omission legible to a future editor.

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 claude-code-plugins would have been wrong — it would have distributed a config that consumers don't read. The commit fixes the one target that did have it incorrectly and documents the rule for all four.

Minor observation (not a blocker): Only provisioning gets the per-target inline comment; the other three targets are silent on lychee. The top-level block comment at L57–63 covers all targets with "hence lychee is in no target include below", so the intent is clear globally. The per-target comment on provisioning is there specifically because lychee was actively removed from that target — appropriate signal.

All source paths verified, include cross-check holds. ✅


Complete series — all findings resolved

Commit Finding Status
bb60cdd biome stub → .jsonc, ruff-stub pairing rule, manifest version: 1, dual-account checklist ✅
46c47e9 provisioning owner corrected to kyle-sexton ✅
4960330 Push/paths trigger added to caller snippet ✅
d8a2883 editorconfig-checker included in all four targets ✅
3fe0899 Root stub sources (ruff.toml, .gitleaks.toml) added to push filter ✅
396784f Lychee removed from provisioning (Track A consumer); distribution rule documented ✅

Merge-ready. No remaining findings.

@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: 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".

Comment thread distribution/sync-manifest.yml Resolved
…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

claude Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

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


Review

  • Gather context
  • Review latest commit (2a036a5) — lychee sync fix
  • Verify Codex P2 finding resolution: lychee for link-check consumers
  • Post findings

Lychee fix — confirmed correct (and corrects the prior correction)

The Codex P2 finding was right: the previous commit (396784f) removed lychee from all targets based on the wrong conclusion that consumers use ci-workflows' bundled config. This commit (2a036a5) reverses that and lands the correct state.

What changed (distribution/sync-manifest.yml):

  1. Root destination corrected — lychee.root changed from lychee.toml → modules/lychee/lychee.toml. This is the key insight: the ci-workflows link-check reusable workflow checks out the caller (no repository: override) and defaults to --config modules/lychee/lychee.toml, so the file must land at that path in both root- and modules-layout consumers. This is the one file where root and modules destinations are identical. ✅

  2. lychee restored to kyle-sexton/provisioning — rollout.md L75 confirms provisioning runs the lychee (offline) lane. Was correctly present in the pre-396784f state; correctly restored here. ✅

  3. lychee added to melodic-software/claude-code-plugins — rollout.md L82 confirms it runs scheduled advisory link-check. Was missing from the manifest entirely; correctly added here. ✅

  4. kyle-sexton/github-iac and melodic-software/github-iac — neither includes lychee. Both are C# Pulumi repos; rollout.md enumerates their lanes (dotnet-build, dotnet-format, editorconfig, typos, gitleaks, actionlint, check-jsonschema, markdown, hygiene, zizmor, osv-scanner) — no link-check. Correct omission. ✅

Push filter already correct — modules/** at config-distribution-plan.md L87 covers modules/lychee/lychee.toml. No change needed. ✅


Complete series — all findings resolved

Commit Finding Status
bb60cdd biome stub → .jsonc, ruff-stub pairing rule, manifest version: 1, dual-account checklist ✅
46c47e9 provisioning owner corrected to kyle-sexton ✅
4960330 Push/paths trigger added to caller snippet ✅
d8a2883 editorconfig-checker included in all four targets ✅
3fe0899 Root stub sources (ruff.toml, .gitleaks.toml) added to push filter ✅
396784f Lychee channel investigation (initial conclusion superseded) —
2a036a5 Lychee correctly fixed: root dest → modules/lychee/lychee.toml; restored to provisioning; added to claude-code-plugins ✅

Merge-ready. No remaining findings.

@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: 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".

Comment thread ruff.toml Resolved
@kyle-sexton
kyle-sexton merged commit 4c53e4c into main Jul 3, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the track-b-config-distribution branch July 3, 2026 18:54
kyle-sexton added a commit that referenced this pull request Jul 4, 2026
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]>
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