Repository navigation
ci-gate --affected: a docs/ path counts for nothing, but docs/doperpowers/evidence - #102
Merged
Merged
Conversation
…wers/evidence, which suites read The follow-up the architect agreed at #101's landing. No unit suite, support module, spawned script or config reads under docs/ but docs/doperpowers/evidence (src/shared/plugins/cli.test.ts reads p1-e8; r3-labelled-set writes p4-b4); elsewhere docs/ appears in suites only as strings. So a docs path contributes no path to the selection (UNREAD): a docs-only change runs vitest related over nothing, and docs beside source select as the source alone. docs/doperpowers/evidence is a READ_AS_DATA directory, checked before the outside-the-trees rule, so a path there runs the full suite with the data reason. A rename across docs/'s border is decided by its other path. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
… rest of evidence counts for nothing The architect's choice on #102: cli.test.ts's g0-cli-probe.txt is the one file under docs/ a unit suite reads; r3-labelled-set only writes evidence/p4-b4. So the READ_AS_DATA entry narrows to evidence/p1-e8/, and a path elsewhere in evidence counts for nothing like the rest of docs/. The tests move with it: evidence paths outside p1-e8 in the docs-only case, p1-e8 paths in the fallback cases. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 21, 2026
… path counts for nothing under --affected; docs/doperpowers/evidence/p1-e8/ read as data, the narrow entry the architect chose) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the follow-up to #101 that the architect agreed at its landing (gate-offload Decision Log 82). With
--affected, a path underdocs/no longer sends the run to the full suite. The exception isdocs/doperpowers/evidence/p1-e8, the one directory underdocs/that a unit suite reads.What changed
.github/scripts/gate-affected.mjs:UNREAD = ['docs/']. A changed path underdocs/adds nothing to the selection. A docs-only change therefore runs vitest related over zero paths, and--passWithNoTestslets it pass with no suite run. When docs paths change beside source, the selection is what the source alone would select. A rename that crossesdocs/'s border is decided by its other path:docs/a.ts → src/x.tsis a renamed non-test file, so it runs the full suite.docs/doperpowers/evidence/p1-e8/is now aREAD_AS_DATAdirectory. That check now runs before the outside-the-trees rule, so a path under it runs the full suite and the summary gives the data reason, for exampleSelection: affected — full suite: read through fs, a glob or a query import (docs/doperpowers/evidence/p1-e8/g0-cli-probe.txt).docs/doperpowers/evidencecounts for nothing, like the rest ofdocs/. The architect chose this narrow entry on review (second commit,c51f62dbf); the first commit made the whole evidence directory data.scripts/ci-gate.sh: the--affectedusage text says the same.Who reads docs/
I checked this rather than taking the architect's grep on trust. I searched the suites, test support, the scripts the suites spawn (
e2e/support,spikes/protocol-probe/scenarios/pass2/common.mjs,apps/desk-hub/{fake-machine,local},test/support/*.{mjs,js}), the configs, and every non-test source module. The searches covered fs reads, path joins namingdocs,import.meta.glob, and?rawimports.Only two unit suites read under
docs/, and both read under evidence, which matches the architect's grep:src/shared/plugins/cli.test.tsreadsdocs/doperpowers/evidence/p1-e8/g0-cli-probe.txt.test/artifacts/r3-labelled-set.test.tswritesdocs/doperpowers/evidence/p4-b4.Everywhere else,
docs/appears in unit code only as a string: sample paths in the composer, git, file and review suites; provenance records; andpanel-child-fixture.ts's fixed list of paths, which it never reads. The e2e support reads and writes evidence, but no unit suite runs it.Tests
.github/scripts/gate-plan.test.mjs:related=[]), and its summary is5 paths, unit runs vitest related. The change mixes M, A, D, and a rename insidedocs/.p1-e8count for nothing, like the rest ofdocs/.p1-e8path, alone or beside docs, runs the full suite with the data reason.p1-e8path, a script added underp1-e8, a rename intop1-e8, and renames acrossdocs/'s border in both directions.node --test .github/scripts/*.test.mjs scripts/*.test.mjs: 74 pass.Runs
Landing evidence. Run 39580488094: class 1a on the pool at the head
c51f62dbf, without--affected, is green.ci-gate: c51f62db.First commit's class 1a. Run 39578144338: class 1a on the pool at
869ac0fad, without--affected, is green. static, unit and probes passed. The title isci-gate: 869ac0fa, and unit ran the whole suite, 1,615 files and 22,450 tests passed with 80 skipped, in a 542 s job.A docs-only change with
--affected. Run 39579740200, unit only on the pool, is green. It ran on the first commit; the narrowing does not change a docs-only decision. The scratch commit editsdocs/tech-debt-tracker.mdand addsdocs/m4-docs-proof.md. It was taken from this PR's head through the pinned-origin scratch clone, as ci-gate --affected: iteration runs test only what the change can reach (ci-kit test history, M4) #101's proofs were.ci-gate: f3ec6a03 affected.Selection: affected — 2 paths, unit runs vitest related.unit-related: vitest related over 0 paths, thenNo test files found, exiting with code 0.test-results-unit-1artifact is a 234-byte JUnit file with no cases.The replay, on the last 200 landings
I replayed each landing's whole diff,
ee9ecace6back to270072e79, through the plan's decision.p1-e8is data)Under this PR, the other 156 landings run the full suite. The first path that sends each one there:
e2e/60,apps/*outsidesrc/test27, mostlyapps/desk-web/e2e;spikes/9; other 5)docs/doperpowers/evidence/p1-e8Narrowing the entry moved most of the 24 earlier evidence fallbacks to
e2e/rather than into selection, because a landing that writes evidence almost always changes an e2e spec too. Only one more landing selects.Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)