Skip to content

Correct AUDIT.md Section 0's Account of What the Audit Checks - #4413

Merged
ptr727 merged 4 commits into
developfrom
burndown/audit-section-0-defects
Nov 24, 2026
Merged

ptr727 merged 4 commits into
developfrom
burndown/audit-section-0-defects

Conversation

@ptr727

@ptr727 ptr727 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

This pull request addresses items 1 to 8 of #1613, and item 9's surface in AUDIT.md section 0 only. Item 9's other surfaces (GOVERNANCE.md, STANDUP.md, and the skill files) are left for a later change. So #1613 stays open, and this pull request carries no closing line for it.

AUDIT.md section 0, "When to Run and What "Done" Means":

  • Items 1 and 3. The verbatim-unit sentence no longer names a github-release workflow job region, which no spec/files.json entry declares. It names the Markdown section region instead, the verbatim class that runs in every carrier (AGENTS.md and GOVERNANCE.md sections). The dead verbatimJobs branch in spec/audit.py is not edited here, since another group holds that file.
  • Item 2. The interface-workflow sentence drops the artifact-name handoff and the forbidden artifact-ids: fork, neither of which any contract declares. It names what the contracts and the caller checks do read: required jobs, the ruleset-bound check name, required and forbidden tokens, event types, the concurrency group, and the workflow-model and python-directories inputs.
  • Item 4. The verbatim hash is stated as after line-ending, action-pin, and job-needs: normalization, matching normalize() and spec/fidelity-model.md "Normalization".
  • Item 5. The intent advisory no longer says content is never judged. A copy hashing equal to the hub's file for it is cleared however old its last commit, and the advisory does not run against the hub.
  • Item 6. The host-gate paragraph adds that an explicit --repo at a wrong path is just as silent, and points the reader at the layered N local entry(s) note as the only sign the target's declaration was read.
  • Item 7. The membership-check sentence leads with the token-scope hazard the reader must act on, and says the runner already refuses a login other than the registry owner.
  • Item 8. The premise no longer holds. spec/files.json carries catalog/snippets/configs/AUDIT.md at the AUDIT.md path, so no carrier holds the hub's own AUDIT.md and the bare path does not reach a downstream copy. The rewritten interface sentence renders the path as a code span, matching the unit's other mention of it.
  • Item 9, section 0 surface. The onboarding bullet points at section 8 for how <repo> in reports/<repo>/audit.md is spelled, per the maintainer's answer on Decide: Item 9: should the reports/<repo>/audit.md placeholder (AUDIT.md sections 0 and 8, GOVERNANCE.md, STANDUP.md, audit-a-repo and standup-a-repo) be defined as the lowercased registry name, or the regi? #3755.

spec/fidelity-model.md drops the same undeclared claims: the github-release job region under verbatim, the artifact handoff under interface, the github-release, get-version, artifact-name, and artifact-ids: enforcement in "The Workflow Override Seam Contract", and the github-release example in "Normalization". Its verbatim bullet also names the GOVERNANCE.md sections beside the AGENTS.md ones. Its intent bullet says a copy hashing equal to its canonical is current. Its interface bullet names the site-deploy workflow and the other tokens a contract requires or forbids. Each keeps the file in agreement with section 0.

Local review

  • Round 1 asked to add a [fidelity-model] absolute hub link for item 8. Declined: the hub's AUDIT.md is not what a carrier holds, since its spec/files.json entry carries catalog/snippets/configs/AUDIT.md, a separate file with no section 0. So no downstream copy holds the pointer.
  • Round 2 asked to qualify "Content is never judged beyond the version-literal scan" in spec/fidelity-model.md "What a Local Edit Looks Like". Declined: that section describes detecting a local edit, and an edited copy never hashes equal to its canonical, so the hash match that clears a copy never applies there. Round 3 raised it again as a contradiction with line 14, and the same reason answers it.
  • Round 3 raised item 8 again and agreed its premise is false. The decline above stands.
  • Round 3 also raised two introduced findings, both fixed in the following push. The intent wording now names the hub's own copy at a unit's path, which intent_trail also matches where the unit names no reference. The interface bullet in spec/fidelity-model.md now lists the concurrency: block and the workflow-model and python-directories inputs section 0 names.

Pre-existing findings, not filed

  • RESYNC.md:82 and .agents/skills/resync-a-repo/SKILL.md:101 list "the artifact-name handoff" among the interface contract a resync honors, a sibling of item 2 outside this change's claimed files. Class: pre-existing, contract restatement.
  • spec/section-model.md:15 states a verbatim section is byte-identical "after EOL and action-pin normalization", omitting the job-needs: masking normalize() also applies, a sibling of item 4 outside this change's claimed files. Class: pre-existing, incomplete statement.
  • RESYNC.md:113 says an intent copy's content is never judged, while the advisory clears a copy hashing equal to the hub's file. A sibling of item 5 outside this change's claimed files. Class: pre-existing, false statement.
  • README.md:113 names the artifact handoff as part of the fixed orchestration seam, which no interface contract declares. A sibling of item 2 outside this change's claimed files. Class: pre-existing, contract restatement.

🤖 Generated with Claude Code

ptr727 and others added 3 commits November 24, 2026 01:04
Section 0 named a verbatim workflow job region and interface checks
(the artifact-name handoff, the forbidden artifact-ids: fork) that no
spec/files.json entry declares, so they never fire, and it omitted the
verbatim Markdown section regions that do. It also stated one of the
three normalizations, overstated the intent advisory, and left the
explicit --repo and fine-grained token hazards unstated.
spec/fidelity-model.md drops the same undeclared claims.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The verbatim bullet in "Why Each Unit Sits Where It Does" listed only
the AGENTS.md sections, while spec/files.json declares most
GOVERNANCE.md sections verbatim too and AUDIT.md section 0 now says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The intent bullet now says a copy hashing equal to its canonical is
current, matching the advisory's early return, and the interface bullet
names the site-deploy workflow and the other required or forbidden
tokens a contract declares.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 24, 2026 09:18
@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 85e4f606e94b48c1d8ef7f9a46b15b9a87168e98, the content this pull request carries at that commit against develop, and it recorded 4 findings.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 988b6ef and 66fe817.

Files selected for processing: 2

  • AUDIT.md
  • spec/fidelity-model.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

The intent advisory also clears a copy hashing equal to the hub's own
file at its path where the unit names no reference, and the interface
bullet now lists the concurrency and input checks AUDIT.md section 0
names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change still has active documentation gaps: AUDIT.md and spec/fidelity-model.md omit valid no-reference hash matches and fail to fully document concurrency and caller-input checks.

4 open issues
What changed in this PR

This pull request corrects AUDIT.md section 0 and aligns spec/fidelity-model.md with the current audit implementation and declared contracts.

Changes:

  • Removes undeclared workflow, artifact-handoff, and artifact-ID claims.
  • Clarifies verbatim hashing, normalization, intent advisories, interface checks, host validation, authentication, and report naming.
  • Updates the fidelity model to reflect current workflow inputs and contract behavior.
File Description
spec/​fidelity-model.md Aligns fidelity definitions, workflow contract descriptions, intent behavior, and normalization rules with the current audit implementation.
AUDIT.md Updates section 0 to accurately describe audit coverage, membership and interface checks, intent advisories, host validation, authentication, and report paths.

Review effort: Lite

Comment thread AUDIT.md Resolved
Comment thread AUDIT.md Resolved
Comment thread spec/fidelity-model.md Resolved
Comment thread spec/fidelity-model.md Resolved
@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 66fe817d98242920ee1c22fea14ab45e027ef512, the content this pull request carries at that commit against develop, and it recorded 2 findings.

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.58%. Comparing base (b38e084) to head (66fe817).
⚠️ Report is 332 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4413      +/-   ##
===========================================
- Coverage    81.60%   79.58%   -2.03%     
===========================================
  Files           26       47      +21     
  Lines         9070    16222    +7152     
===========================================
+ Hits          7402    12910    +5508     
- Misses        1668     3312    +1644     
Flag Coverage Δ
python-3.13 79.58% <ø> (-2.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit fb44364 into develop Nov 24, 2026
14 checks passed
@ptr727
ptr727 deleted the burndown/audit-section-0-defects branch November 24, 2026 10:00
ptr727 added a commit that referenced this pull request Nov 24, 2026
## Summary

Part of #1613 item 9. Per the maintainer's answer on #3755, the `<repo>`
placeholder in `reports/<repo>/audit.md` is the lowercased registry
name, defined once in `AUDIT.md` section 8, and every other surface
points there rather than restating it.

Surfaces this covers:

- `STANDUP.md` section 5, "Verify: Run the Audit". It left `<repo>`
unstated, and now points at `AUDIT.md` section 8.
- `.agents/skills/standup-a-repo/SKILL.md` step 9. Its restatement ("the
repository name in lowercase") becomes a pointer to `AUDIT.md` section
8.
- `.agents/skills/audit-a-repo/SKILL.md` "Reporting". Its restatement is
deleted, since the same bullet already ends "All of this is in
`AUDIT.md` section 8."
- The generated copies under `.github/skills/` and
`.claude-plugin/fleet-skills/`, regenerated with `scripts/build_dist.py`
(`--check` passes).

Not covered here, so #1613 stays open:

- `GOVERNANCE.md` "Definition of done is the audit" (near line 148),
held by a parked group.
- `AUDIT.md` section 0 already points at section 8, landed in #4413.

## Verification

- `uv run --no-project --script scripts/build_dist.py --check`:
generated skill distributions are current.
- `python3 scripts/prose_lint.py --diff <merge-base>`: clean.
- The pre-commit hook passed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Documentation**
* Updated audit and standup guidance to define the `<repo>` component of
`reports/<repo>/audit.md` by section 8 of `AUDIT.md`.
* Removed the instruction that `<repo>` must be the repository name in
lowercase.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Claude Opus 5.5 <[email protected]>
ptr727 added a commit that referenced this pull request Nov 24, 2026
## Summary

This pull request sweeps the classes of items 2, 4 and 5 of #1613
outside the files #4413 fixed. #4413 corrected `AUDIT.md` section 0 and
`spec/fidelity-model.md`, and its body listed these copies as
pre-existing siblings outside its claimed files. #1613 stays open for
its other surfaces, so this pull request carries no closing line for it.

- **Item 2.** `RESYNC.md` step 4 and the `resync-a-repo` skill's step 4
drop "the artifact-name handoff" from the interface contract a resync
honors. No `spec/files.json` entry declares `artifactNameToken`, so the
check that would read it never fires. Rather than list a subset of the
remaining checks, step 4 points at `AUDIT.md` section 0, which #4413
made complete.
- **Item 4.** `spec/section-model.md` states a verbatim section is
hashed after EOL, action-pin, and job-`needs:` normalization.
`normalize()` in `spec/fidelity_text.py` masks all three, and the
section compare reaches it through `content_hash()`.
- **Item 5.** `RESYNC.md` section 5 no longer says an intent copy's
content is never judged. `intent_trail()` clears a copy hashing equal to
the hub's file for it, which the new sentence states in #4413's wording.
The paragraph points at `spec/fidelity-model.md` "What a Local Edit
Looks Like" for the prose checks that also read intent content.

The generated `resync-a-repo` copies under `.github/skills/` and
`.claude-plugin/` are regenerated with `scripts/build_dist.py`, and
`--check` passes.

## Local review

- Round 1 found that step 4's remaining list omitted the contract's
required tokens and event types, and that "Content only ever clears"
missed the version-literal scan. Both fixed.
- Round 2 found the version-literal wording named only `CODESTYLE.md`
and `WORKFLOW.md`, while the scans also read `AGENTS.md`,
`GOVERNANCE.md` and the Copilot instructions. Fixed by pointing at
`spec/fidelity-model.md` "What a Local Edit Looks Like".
- Round 3 found the changed text true and raised one sibling, listed
below.

## Declined

- `README.md:114`, listed in #4413's body as an item 2 sibling, is left
as it stands. That sentence describes the behavioral contract in
`WORKFLOW.md`, not what the audit checks. `WORKFLOW.md` "The Seam
Contract" and D6.1 name the `release-asset-<branch>-<target>` artifact
handoff as part of that seam, so the claim is true there.

## Pre-existing findings, not filed

- `spec/fidelity_honesty.py:15` says its promotion question finds intent
units content-identical "after EOL normalization", while it compares
through `content_hash()`, which also masks action pins and job `needs:`
lists. A sibling of item 4 outside this change's claimed files. Class:
pre-existing, incomplete statement.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
ptr727 added a commit that referenced this pull request Nov 24, 2026
…lts, Secret Sync Fields, and Audit Account Fixes (#4428)

Promotes the 28 pull requests that landed on develop since the last
promotion (#4388), from the away-mode backlog burndown run.

- #4391: Drop the false XML comment suppression claim from the .NET
conventions.
- #4390: Blank quotations after a heredoc label on its opening line in
the paste-safe rule.
- #4392: Carry attention lists, cut lists, and opt-in billing in the
`backlog_metrics.py` JSON.
- #4393: Gate `configure.sh apply`'s interaction limit on a committed
bot verification record.
- #4394: Make the gh and node report note say a one-line vendor source
is configured.
- #4395: Add ShellCheck and shfmt lint tasks to the VS Code task
snippets.
- #4396: Count a CodeRabbit clean pass on the head in the digest's
`other_reviewed`.
- #4401: Date the line-ending intentRefs by the skill and trim advisory
restatements.
- #4399: Share one any-level heading region primitive between
`heading_body` and `extract_anchored`.
- #4398: Name the hub pull requests a standup lands through, and add
HACS first-run guidance.
- #4404: Add a PowerShell section to CODESTYLE.md and narrow the shell
rule.
- #4405: Close AUDIT.md section 10's convergence loop and fix three
skill pointers.
- #4409: Route CODESTYLE.md's General section to the language skills
(part of #1153, which stays open).
- #4410: Detect a C# test project by its own text rather than its file
name.
- #4411: Drop the unruled "working gate is not drift" sentence from
CODESTYLE.md.
- #4412: Track the newest upstream line of each pinned host tool.
- #4413: Correct AUDIT.md section 0's account of what the audit checks.
- #4416: Add a required coverage shield class to the README audit.
- #4414: Tie drive-pr's merge to its authorization and align the pass
moments.
- #4417: Pass over a second SIGTERM in `pr_review.py` so an interrupt
prints one line.
- #4418: Point the report-path placeholder at AUDIT.md section 8.
- #4419: Correct the audit account copies outside AUDIT.md section 0.
- #4422: Drop the archived DevKitCIoT from the rollout checklists.
- #4423: Report a stale `pullRequestCheck: false` and correct AUDIT.md
section 6.
- #4424: Add a `prune` subcommand to retire orphaned canonical review
passes.
- #4425: Drop the archived DevKitCIoT from the reusable-workflows
checklists and fix a normalization docstring.
- #4427: Store secret sync metadata in item fields, not 1Password tags.
- #4426: Declare and apply the Actions workflow token defaults through
`configure.sh` (the `configure.sh` part of #1783, which stays open).

## Owed by the maintainer

- #4412: A live run of the new host-tool line tracker. Scheduled runs
start only once this reaches `main`, and a `workflow_dispatch` would
prove it sooner.
- #4426: A fleet `configure.sh apply` for the workflow token defaults,
after the per-repository read the 2026-11-01 answer requires. Please
also confirm the new `--lower-workflow-token` option, which a `write`
repository needs for the apply to lower its default.
- #4427: Run `python3 scripts/secrets_sync.py selftest`, then the
cleanup script in that pull request's body (`move_sync_tags.py`, dry run
first, then `--apply`). Until that runs, every un-migrated secret item
refuses to sync.
- #4393: The pilot's first interaction limit is set by hand in its
settings and its bots verified there. The verification record is
committed afterwards through a hub pull request, and only then does
`apply` set the limit fleet-wide.
- A fleet resync is owed, because carried text changed: AGENTS.md,
GOVERNANCE.md, CODESTYLE.md, and several skills.

Fixes #4387
Fixes #4383
Fixes #4284
Fixes #1095
Fixes #4299
Fixes #4370
Fixes #4364
Fixes #4173
Fixes #4064
Fixes #3536
Fixes #3929
Fixes #3808
Fixes #3812
Fixes #3810
Fixes #4320
Fixes #4232
Fixes #1748
Fixes #1607
Fixes #1270
Fixes #1170
Fixes #3692
Fixes #4415
Fixes #3908
Fixes #1648
Fixes #4276

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

2 participants