Skip to content

Governance: no propagation path for CODESTYLE/AGENTS to the fleet (root of downstream divergence) #305

Closed

Description

@ptr727

Problem

CODESTYLE.md (and to a lesser extent AGENTS.md) has no propagation mechanism from this template to the fleet. Structural and rule changes made here never reach downstream repos, so divergence accumulates silently. Per the fleet philosophy, a repo's style doc should track its repo type and generally not diverge — divergence today exists mostly because updates were never propagated, not by intent.

Evidence (surfaced 2026-07-15)

  • 6 repos had clear gaps: 5 shipped no CODESTYLE at all (Financial-Modeling, EspDinIoT, DevKitCIoT, AudioCleaner, HolidayLights) and PhotoCleaner's predated the General/.NET/Python restructure. Now tracked per-repo:
  • A verbatim copy does NOT work: the template CODESTYLE describes the template's own specifics (pyright-strict, .NET task labels, specific analyzer settings, .vscode/tasks.json, example APIs). Dropping it verbatim into a repo produced 4-10 false claims each (broken links, wrong toolchain, wrong task casing). Propagation must be structure + rules, adapted per repo, not a file copy.
  • The ~14 repos that do have CODESTYLE each tailored it (e.g. item-2 wording differs) — acceptable per-type tailoring, but there's no way to push a genuinely-shared change (like the recent "Spelling CI scope" rule, Scope CI spell-check to README and HISTORY by default #302/Note the cspell gate scopes to whichever of README/HISTORY exists #303) to all of them systematically.

Toward a fix

  • Define what is canonical/shared vs per-repo-adapted in CODESTYLE (and AGENTS), so a change can be propagated without clobbering legitimate per-repo specifics.
  • A propagation/audit path (the fleet already does this for workflow rules) that flags downstream drift as issues for local agents to resolve with repo context — the model used for the 6 issues above.

This issue tracks the systemic gap; the per-repo issues track the immediate adoptions.

Activity

  1. ptr727 commented on Aug 15, 2026

    @ptr727
    OwnerAuthor

    Addressed by the carry machinery built since this was filed, verified in the tree at aa7bf78. Both bullets under "Toward a fix" now have an implementation:

    "Define what is canonical/shared vs per-repo-adapted." spec/files.json declares each carried unit with a fidelity, and spec/fidelity-model.md defines the four tiers. The two files this issue names are declared exactly as it argued they should be:

    • CODESTYLE.md is intent, whole, appliesTo: "*", with its one placeholder declared. That is "structure + rules, adapted per repo", and it is why a verbatim copy is not what propagates.
    • AGENTS.md is intent overall with three named sections pinned verbatim (Fleet Bootstrap, Context and Delegation Discipline, Where the Rules Live), so a genuinely shared rule is byte-locked fleet-wide while the repo-specific prose around it stays the repo's. spec/section-model.md assigns which content belongs in which document, and spec/scope-model.md decides which repos a unit reaches.

    "A propagation/audit path that flags downstream drift as issues." AUDIT.md is the measurement, spec/audit.py mechanizes the deterministic subset (file presence, per-section presence, verbatim hashes with stale-versus-modified classification, intent staleness), spec/audit.py --issue <repo> emits a convergence issue generated from live findings rather than composed by hand, and RESYNC.md sequences the remedies for a repo that has fallen behind. spec/divergences.json plus reports/divergences.md carry the fleet burn-down, and reports/<repo>/audit.md is the committed evidence per repo.

    The specific evidence this issue cited is also gone: CODESTYLE.md is now carried by every cataloged repo rather than missing from five, and the false-claim problem that made a verbatim copy fail is why the entry is intent rather than verbatim.

    Closing as the hub-side ask. The six per-repo tracking issues listed in the evidence are downstream and are not affected by this. If you read this issue as covering those too, reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions