Skip to content

Fix the Pre-Existing Defects Later Whole-Unit Reads of AUDIT.md Section 6 Found #1606

Closed

Description

@ptr727

Whole-unit carried-content passes over AUDIT.md section 6, run while #1599's fix was in flight, raised findings that predate that change and were classed pre-existing per local-strict-review "Disposing of Findings". They are filed here as one issue because they are one unit's worth of defects and are worked as one bundle. The introduced findings from the same passes were fixed on the #1599 branch and are not listed here.

Each claim below was checked against repo-config/configure.sh, spec/audit.py, registry/repos.json, and GOVERNANCE.md, and the measured ones against live GitHub.

Bullet 1, configure.sh check

  1. The bullet names apply twice and never says it is the script's default verb. configure.sh sets cmd=apply and only apply|check shifts it, so dropping the single word check from the invocation the bullet gives runs a five-group write against the repository being audited: a PATCH of the repository settings, the two Dependabot security PUTs, the label create-or-update, both ruleset create-or-updates, and the fleet project link. Section 10 of the same file guarantees that sections 0-9 "are read-only and never touch the target", so a reader has no warning that the audit's one command is one word away from mutating what it measures.

  2. "The token needs project access as well as the admin the ruleset endpoints require" names the wrong endpoints, and the consequence is a false clean rather than an error. A non-admin read of GET /repos/{o}/{r}/rulesets and /rulesets/{id} succeeds, measured against five foreign public repositories carrying 18 rulesets between them, and it returns bypass_actors: [] rather than failing. The next sentence promises that the command "reports the live bypass_actors list", so on a non-admin token that note prints none and reads as the repository's real bypass state. The endpoints that actually require admin are vulnerability-alerts and automated-security-fixes, which the sentence does not name.

  3. "Pass the target repository and its registry workflowModel explicitly" tells the reader to read a per-entry field that 17 of the 22 non-archived registry entries do not carry. Only Blog, HomeAutomation-Config, ESPHome-Config, HomeAssistant-Config and Vantage-Config declare one, and every other repository resolves through defaults.workflowModel, which reads release and which the unit never names.

Bullet 2, Secrets

  1. The runner is invoked as spec/audit.py [RepoName] with no interpreter, where section 0 of the same file writes python3 scripts/host_gate.py and the bullet immediately above establishes that python3 is not a universal name and that py -3 may be the only one that resolves. The file carries a #!/usr/bin/env python3 shebang and the executable bit, so the bare form works on Linux and macOS and fails on exactly the host the preceding sentence was written for.

Bullet 3, Dependabot ecosystem coverage

  1. "confirm by inspection that each declared ecosystem dual-targets main + develop per the [Branching Model][governance-branching-model]" cites a section that does not carry that rule. GOVERNANCE.md "Branching Model" names the dual-target bot wiring only among the things it defers to the hub-local operational-vs-release-workflow Skill, which a carrying repository does not hold. The rule a downstream reader can actually reach sits in GOVERNANCE.md "Foundational Principles".

  2. The snippet makes five separate gh api reads, each resolving ?ref=main independently, so a push landing between them assembles one verdict from two trees, and an ecosystem added in the same commit as the workflow that implies it can read as missing. It also emits no commit id, where section 8 requires that anything derived from a run quote the run stamp naming the exact commit read. The mechanical check spec/audit.py reads by branch ref the same way, which is why this was declined rather than fixed on the Fix the Pre-Existing Defects a Whole-Unit Read of AUDIT.md Section 6 Found #1599 branch, but the two together are worth settling once: either both read a resolved SHA, or the file says why a branch read is sufficient.

Bullet 4, Dependabot on self-hosted runners

  1. The bullet has no check id. spec/project-types.json declares setup.dependabot.ecosystems for bullet 3 and nothing for this one, and reports/_template.md's dimensions table has no row for an account-level check, so the bullet's own instructions to record the check as N/A on a public repository and to report the remedy as a maintainer action both name a destination the report shape does not have.

Activity

  1. added
    pre-existing
    prose
    on Sep 14, 2026
  2. added a commit that references this issue on Sep 14, 2026
    bf3b629
  3. ptr727 commented on Sep 14, 2026

    @ptr727
    OwnerAuthor

    One more for this bundle, raised by a pass over the same bullet and severe enough to lead the list when it is worked.

    1. The registry description is named among what configure.sh check asserts, and it is asserted for 1 of the 22 cataloged entries. The bullet reads "The command checks what configure.sh apply writes: the declared settings, the derived settings and the registry description, ...". check_settings compares a description only where the registry entry declares a description key, and exactly one entry does. For the other 21 it takes the else branch and emits a note saying the description falls back to the README tagline and should be verified by hand, and note() does not set FAILED, so the run still ends "Configuration matches". Confirmed live: python3 spec/resolve_description.py registry/repos.json Utilities prints nothing and exits 0, so the compared value is empty and nothing is asserted. Absence is the designed default rather than drift, since STANDUP.md's list of what a registry entry carries does not include description at all.

      The bullet is otherwise scrupulous about exactly this distinction, flagging bypass_actors as reported without being asserted and an undeclared environment as reported rather than asserted, so a reader takes the unqualified listing at face value and records the About panel as verified when it was not. AUDIT.md is carried at appliesTo: "*", so this ships fleet-wide.

      Note on provenance, since this issue's finding 3 is adjacent: the branch closing Fix the Pre-Existing Defects a Whole-Unit Read of AUDIT.md Section 6 Found #1599 added "the registry description" to the bullet's bolded group list, because finding 3 of that issue observed the bolded list under-stated the body, which already named it. The body's claim predates that change and is the one that is wrong, so the fix is to qualify both rather than to revert the bolded list.

    2. repo-config/configure.sh's cmd_check ends by printing run spec/audit.py [RepoName] (the registry name, not owner/repo) .... The bracket form is a glob, so a reader copying that line out of the terminal in a directory holding a one-character file named R, e, p, o, N, a or m silently audits a different target. Settle Unquoted Placeholders in Copy-and-Run Commands, and Gate the Class #1615 removed the same form from AUDIT.md; this is the surface AUDIT.md routes the auditor to, and repo-config/ is hub-only so it does not ship, which is why it sits here rather than there.

    3. repo-config/configure.sh is the only hub-hosted artifact named in the bullet with no reference link, where spec/audit.py, spec/resolve_description.py, spec/secrets.json and registry/repos.json all resolve through one. A [repo-config] definition already exists in the file and is used twice elsewhere. In a carried AUDIT.md the reader is handed a relative path their repository does not hold, with no route to the file.

  4. ptr727 commented on Sep 14, 2026

    @ptr727
    OwnerAuthor

    Five more from the terminal pass on the #1615 branch. The first is severe and is about the section's routing rather than its wording.

    1. The unit routes four groups to configure.sh check alone, and spec/audit.py checks all four itself on the same run. Bullet 1 sends the auditor to configure.sh check for settings, the description and both rulesets, and bullet 2 sends them to spec/audit.py for secrets. The runner also asserts the eight keys of repo-config/settings.json plus has_discussions and default_branch, emits description: findings about the About description, and checks both rulesets by whole-object diff, including reporting a stray ruleset, which configure.sh never reports at all.

      The two ruleset comparisons can disagree on live data. configure.sh's jq normalizer sorts set-like arrays inside a rule's parameters, on the stated grounds that the API guarantees no order, while the runner's sorts only the top-level rules list and leaves required_status_checks in API order, so an API reordering reads as a defect from the runner and clean from the script. The runner additionally compares target and conditions, which the script never looks at.

      So an auditor following this unit runs two tools over four overlapping groups without being told they overlap, discards the live settings:, description: and ruleset: lines the run just printed because bullet 2 told them to read the secrets: ones, and has nothing saying which verdict wins when the two disagree.

    2. "and devcontainers when a .devcontainer is present" misses the single-file layout. The devcontainer spec also allows a root .devcontainer.json, which Dependabot's devcontainers ecosystem covers. Neither the rule as written, nor the snippet's exact-line has .devcontainer, nor the mechanical check's contents/.devcontainer sees it, so such a repository reads clean while owing the ecosystem, and GOVERNANCE.md "Devcontainer" mandates no path shape that would close the gap.

    3. "read the audited repo's visibility first with gh repo view "<owner>/<repo>" --json visibility and treat a public one as N/A" gives a command whose output is the uppercase GraphQL enum, measured as {"visibility":"PUBLIC"}, where the fleet's own script reads visibility through the REST boolean instead. An auditor scripting the stated test against public matches nothing and takes every public repository down the private path. The unit also gives no reading for INTERNAL, which is neither case it names.

    4. The Secrets bullet's command is split typographically across a link and a code span, so the only contiguous selectable span is spec/audit.py, which is itself a valid command. Run with no argument it starts the whole-fleet sweep, including section 0's GitHub-wide membership listing, rather than the one-repo read the bullet asked for. This is the read-only twin of finding 1 of this issue, and the fix is the same shape: put the whole invocation in one span.

    5. "A declared type claims nothing where the entry's profile for it reads lint-only, and claims no coverage token where the tree carries no tests for it, so a repo declaring a language can still owe nothing beyond the baseline" holds only where the entry also declares no requiredSecrets, since those names are applied unconditionally, after and independently of both exemptions. Of the twelve csharp and python entries in the registry, eleven list CODECOV_TOKEN in requiredSecrets, and the one that reaches the stated outcome does so through the lint-only leg rather than the no-tests leg. An auditor can therefore read a genuine missing-token defect on a test-less C# repository as exempted by this sentence when the runner will keep reporting 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

    pre-existingprose

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions