Skip to content

The sweep's page list and gating modes each have one source - #103

Merged
jmgirard merged 9 commits into
mainfrom
m090-sweep-records-one-source
Sep 12, 2026
Merged

The sweep's page list and gating modes each have one source#103
jmgirard merged 9 commits into
mainfrom
m090-sweep-records-one-source

Conversation

@jmgirard

Copy link
Copy Markdown
Collaborator

benchmarks/sweep-prose.R gains two listing modes. --list-pages prints the page list and --list-gating prints the six gating sweep commands, one per line.

The real-pages block of tests/testthat/test-sweep-prose.R now reads both lists from the script instead of keeping its own copies. It still checks their shape: six unique pages that exist, and six unique invocations, one with no flag and three reading the roxygen sources. The profile's gate line points at --list-gating, and the comment in .github/workflows/prose-sweep.yaml says the script owns the list its six steps copy.

Local checks: devtools::test() passes 9862 with 0 failures, devtools::check() reports 0 errors, 0 warnings and 0 notes, and the six gating sweeps print clean.

`--list-pages` prints the page list the run sweeps, one path per line, so
`--pages` replaces it there as in every other mode. `--list-gating` prints
the six gating invocations as full command lines, from a new `gating`
vector that is now the one declaration of them. Both exit 0 and the
header's Modes block documents them.
The block held its own copy of the six page paths and of the six gating
invocations. It now takes both from `--list-pages` and `--list-gating` and
names no page path. What it states on its own is their shape: six pages
that exist on disk, six invocations, one carrying no flag and three
reading the roxygen sources, so a list that emptied or lost a mode is
still a failure.

Both reads were shown able to fail. Swapping `--plain` for `--openings`
in the script's `gating` vector turned the block red naming that mode,
and dropping a page from `pages` turned it red on the count.
The `consistency-gate` slot spelled the six gating sweeps out. It now
tells the reader to run each command `--list-gating` prints and says the
script owns the list. The `verify` slot's two plain modes stay as they
are, a deliberate subset rather than a copy.
Compared `--list-gating` against the workflow's `run:` lines: the two
outputs are identical, six lines in the same order, and the job carries no
other sweep step. The step comment now names the script's `gating` vector
as the one declaration and these steps as its one accepted copy, kept so a
red run names the mode on the job summary.
`devtools::test()` clean at 9862 passing. `devtools::check()` reports
0 errors, 0 warnings and 0 notes. The six gating sweeps each print
`clean` and exit 0, and `air format --check` passes on both touched R
files. Claim audit not owed: internal surface tier.
@jmgirard
jmgirard merged commit 7498b63 into main Sep 12, 2026
15 checks passed
@jmgirard
jmgirard deleted the m090-sweep-records-one-source branch September 12, 2026 19:59
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