Repository navigation
Conversation
Each job of Validate package, and each Windows test shard, classifies the change with scripts/fast_path.py. A change that touches only the allowlist (.code-cycle.yml, root Markdown except README.md, docs/**, .github/ISSUE_TEMPLATE/**) runs the privacy and metadata-sidecar scan plus the tests that read an allowlisted file, and reports both required checks green. Anything else, a manifest, a CHANGELOG release heading, either workflow, the classifier, an error or an empty diff runs in full. validate-package.py exposes the existing scan as scan_for_private_data() and --scan-only. A static guard test fails when a test reads an allowlisted file without being registered in fast-path-tests.json.
[CCR-20261023-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2Initial review: CHANGES_REQUESTEDHead reviewed: Summary. The design meets the issue. The classifier runs inside each required job, so no required check goes unreported. It fails closed on errors, empty diffs, unknown events, bad SHAs and unreadable mappings. Every expensive step is gated on Findings[REV-001] · medium · open · - · blocks:yes —
|
| Command | Result |
|---|---|
python3 scripts/validate-package.py |
exit 0, VALID: 16 skills (7 cycle, 9 supporting), shared sections in sync, cross-agent manifests aligned |
python3 -m unittest discover -s tests |
exit 0, Ran 1811 tests in 211.153s, OK (this includes tests.test_fast_path and tests.test_validate_workflow) |
python3 -m unittest |
exit 0, Ran 0 tests. tests/ is not a package, so top-level discovery finds nothing. This predates the PR and is not a finding. |
I checked the following by reading the code: the validator reads no docs/ or allowlisted root-Markdown file (README.md stays outside the allowlist), no runtime script reads an allowlisted path, release.yml builds its notes from ## [x.y.z] headings (which the heading rule covers), and the guard's mapping matches the tests that read .code-cycle.yml, docs/telemetry.md, docs/configuration.md and docs/spikes/**.
Not verified
- Windows behaviour: I have no Windows host. REV-001 comes from code inspection and a repository precedent. The shard log could not be read (
gh run viewwas denied by the stage policy). - The fast path on GitHub Actions: this PR changes
validate.ymland the classifier, so its own run takes the full path. The fast path will first run on the next allowlisted-only change, and so will the under-2-minute target in acceptance criterion 1.
CI (policy: parallel; read once, not waited on)
Workflow Validate package, run 39988855834, on head 1808ccf:
| Check | State |
|---|---|
Skills, manifests, and Bash installer (required) |
pass |
Windows test shard (windows-1) |
pass |
Windows test shard (windows-2) |
pass |
Windows test shard (windows-3) |
pass |
Windows test shard (windows-4) |
fail |
PowerShell installer (required) |
fail (its shard-requirement step fails while a shard fails) |
The cycle's CI gate decides what to do with these states. They are reported here, not as findings.
Documentation
CONTRIBUTING.md documents the allowlist, the fast path, the fail-closed rule and how to register a test (acceptance criterion 6), and CHANGELOG.md has an Unreleased entry. No docs/ page describes the Validate package workflow; README.md mentions it only in the badge. So the missing docs/ update is not a finding.
Residual risks
- The test-dependency guard is static. A test that reads an allowlisted file through runtime code (for example a function that finds
.code-cycle.ymlfrom the working directory) or through a path assembled from a string is not detected.CONTRIBUTING.mddocuments this limitation. _coverscallsfnmatchcase(pattern, probe), so a glob probe such asROOT.glob('*.md')counts as covered by any group whose path matches the glob. Because*also matches/,docs/telemetry.mdmatches it. A test globbing root Markdown and registered only under that group would not run for aCONTRIBUTING.mdchange. No current test does this.- The admin bypass on the
Protect mainruleset is outside this change. The issue asks to review it after merge.
Verdict
CHANGES_REQUESTED. REV-001 is open and blocks approval.
Resolution summaryStatus: RESOLVED. REV-001 was valid and is fixed in commit [CCR-20261023-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2[CCT-20261023-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:1808ccf5412071408de659d2d968d994d332c8ce · schema:2[REV-001] · medium · resolved · valid · blocks:yes —
|
[CCR-20261023-002] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2Rereview: REVIEW_PASSED_AWAITING_CIHead reviewed: Earlier run lines on this change request: [CCR-20261023-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2[CCT-20261023-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:1808ccf5412071408de659d2d968d994d332c8ce · schema:2What changed since the previous reviewOne commit,
No other file changed. Previous findings[REV-001] · medium · resolved · valid · blocks:yes —
|
| Command | Result |
|---|---|
python3 scripts/validate-package.py |
exit 0, VALID: 16 skills (7 cycle, 9 supporting), shared sections in sync, cross-agent manifests aligned |
python3 -m unittest discover -s tests |
exit 0, Ran 1811 tests in 299.392s, OK |
python3 -m unittest tests.test_fast_path -v |
exit 0, Ran 42 tests, OK |
python3 -m unittest |
exit 0, Ran 0 tests. tests/ is not a package, so top-level discovery finds nothing. This predates the PR and is not a finding. |
Not verified
- Windows behaviour: I have no Windows host to run it locally. The Windows evidence for REV-001 is the CI result of
windows-4on this head, not a local run. - The fast path on GitHub Actions: this PR changes
validate.ymland the classifier, so its own run takes the full path. The fast path, and the under-2-minute target, will first run on the next allowlisted-only change.
CI (policy: parallel; read once, not waited on)
Read once with gh pr checks 318. Workflow Validate package, run 39999325038, on head 8a3ed41:
| Check | State |
|---|---|
Skills, manifests, and Bash installer (required) |
pass (4m3s) |
Windows test shard (windows-1) |
pass |
Windows test shard (windows-2) |
pass |
Windows test shard (windows-3) |
pending |
Windows test shard (windows-4) |
pass |
PowerShell installer (required) |
not reported yet (it runs after the Windows shards) |
The cycle's CI gate decides what to do with these states. They are not findings.
Documentation
This is unchanged from the initial review. CONTRIBUTING.md documents the allowlist, the fast path, the fail-closed rule and how to register a test, and CHANGELOG.md has an Unreleased entry. No docs/ page owns the Validate package workflow, so the missing docs/ update is not a finding. The fix delta changes no visible behaviour.
Residual risks
These carry over from the initial review and do not block approval:
- The test-dependency guard is static. A test that reads an allowlisted file through runtime code, or through a path assembled from a string, is not detected.
CONTRIBUTING.mddocuments this limitation. _coversusesfnmatchcase(pattern, probe), so a glob probe such asROOT.glob('*.md')counts as covered by any group whose path the glob matches. No current test does this.- The admin bypass on the
Protect mainruleset is outside this change. The issue asks to review it after merge.
Verdict
REVIEW_PASSED_AWAITING_CI. REV-001 is resolved and no open finding blocks approval. This is not an approval: the required PowerShell installer check has not reported for this head yet, and windows-3 is still pending. The cycle's CI gate decides.
Closes #236
Summary
Validate packagenow classifies each change before doing expensive work. A pull request or push that touches only the allowlist reports both required checks (and the four Windows shards) green after a privacy/sidecar scan and the few tests that read an allowlisted file. Anything else runs the full validation exactly as before. The two required job names are unchanged.Issue: #236 (implemented with the owner's 2026-10-23 decisions on the Windows shards, the privacy scan and the tests that read allowlisted files).
Diagnosis
pushandpull_request.paths-ignorefilter would leave required checks unreported, so classification happens inside the jobs.Work units
WU-1scripts/fast_path.py,scripts/fast-path-tests.json,scripts/validate-package.py,scripts/windows-test-shards.json,.github/workflows/validate.yml,CONTRIBUTING.md,CHANGELOG.mdtests/test_fast_path.py,tests/test_validate_workflow.py,tests/test_install_runtime.pyDesign
scripts/fast_path.py):.code-cycle.yml; root Markdown exceptREADME.md;docs/**;.github/ISSUE_TEMPLATE/**. Everything else runs in full. Both plugin manifests,release.yml,validate.yml, the classifier and its mapping are named as never skippable, and aCHANGELOG.mdedit to a##heading runs in full (release.ymlcuts releases from those).validate, of each of the four Windows shards, and ofpowershell-installer. Pull requests diff against the merge base (base...head), pushes usebefore..after; checkouts usefetch-depth: 0.full; the step iscontinue-on-error, and every later step is gated onmode != 'fast', so a classifier that never ran also runs in full.validate-package.py --scan-only(the existing privacy and metadata-sidecar scan, nowscan_for_private_data(); no second scanner) and the tests mapped to the changed files. Windows shards run the mapped tests that belong to their shard and skip the rest;powershell-installerruns the scan. The summary showsSKIPPED_NON_CODEversusTESTS_PASSED, the validations run and skipped, and the paths that caused a full run.scripts/fast-path-tests.json(four path groups;test_run_cycleis mapped by test method because the module takes minutes).tests/test_fast_path.pyparses every test module and fails when one builds a path from the repository root that is or may be allowlisted without being registered. Writing it, the guard found a second read of.code-cycle.ymlintest_run_cyclethat a text search had missed.Protect mainis a repository ruleset setting, not part of this change. After this lands, review whether it is still needed, as the issue asks.Documentation
CONTRIBUTING.mddocuments the allowlist, the fast path and the fail-closed rule (acceptance criterion 6) and how to register a new test;CHANGELOG.mdhas an Unreleased entry. No otherdocs/page owns CI workflow behaviour, so none changes.README.mdis unchanged.Verification (agent-reported)
python3 scripts/validate-package.py: exit 0,VALID: 16 skills ....python3 -m unittest discover -s tests: 1811 tests, one failure (fast_path.pynot declared as tooling intest_install_runtime); fixed, thenpython3 -m unittest tests.test_install_runtime tests.test_fast_path tests.test_validate_workflow tests.test_validate_package: 136 tests OK. The full suite was not re-run after that one-line fix.python3 -m unittest tests.test_fast_path tests.test_validate_workflow: 51 OK, covering allowlisted-only, mixed, workflow-changing, manifest-changing, empty and unreadable diffs, each of the four mapped path groups, an unregistered new dependency, and the workflow's gating.