Repository navigation
Bound PR review inputs for native readers - #70058
Merged
Merged
Conversation
2 of 4 tasks
Project frozen GitHub metadata, externalize multiline required text with verified source references, and scope worker input consumption by role. Co-authored-by: Copilot App <[email protected]>
PureWeen
force-pushed
the
pureween-fix-pr-review-transport
branch
from
October 27, 2026 12:01
44edf70 to
5f3aa6f
Compare
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Require exact assigned file reads through native tools, prohibit worker shell use, and retain source-root-scoped native search. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The reuse checker rejects valid bundle paths with trailing separators and fails to enforce the 2,048-byte line-length limit on manifest.json.
2 open issues
What changed in this PR
This PR makes frozen review bundles easier to consume through native file readers, while keeping coordinator inputs separate from per-guide worker assignments. It also aligns the worker contract with the trace-grading work in #70055.
Changes:
- Projects compact metadata and externalizes required text into integrity-checked
.sourcefiles. - Adds exact per-guide assignments, native reads through EOF, and worker tool restrictions.
- Expands regression coverage for projections, input integrity, assignment isolation, and line-length limits.
| File | Description |
|---|---|
.github/workflows/pull-request-review.md |
Updates worker dispatch and native-read requirements. |
.github/workflows/pull-request-review.lock.yml |
Refreshes the generated workflow body hash. |
.github/skills/review-pull-request/tests/PrepareReviewTests.cs |
Adds projection, integrity, assignment, and read-bound tests. |
.github/skills/review-pull-request/SKILL.md |
Documents coordinator and worker input boundaries. |
.github/skills/review-pull-request/scripts/prepare-review.cs |
Produces and validates projected metadata, required text, and worker assignments. |
Review effort: Balanced
Comment on lines
+1734
to
+1736
| if (pair.Key.EndsWith(".json", StringComparison.Ordinal)) | ||
| { | ||
| RequireMaximumLineLength(bytes, pair.Key, "Prepared serialized JSON"); |
| && !path.Contains('\\', StringComparison.Ordinal) | ||
| && !path.Split('/').Contains("..", StringComparer.Ordinal), | ||
| $"Prepared {description} path is invalid: {path}"); | ||
| var fullOutput = Path.GetFullPath(output); |
akoeplinger
approved these changes
Oct 28, 2026
PureWeen
temporarily deployed
to
copilot-pat-pool
October 28, 2026 13:58 — with
GitHub Actions
Inactive
PureWeen
temporarily deployed
to
copilot-pat-pool
October 28, 2026 13:59 — with
GitHub Actions
Inactive
PureWeen
temporarily deployed
to
copilot-pat-pool
October 28, 2026 14:00 — with
GitHub Actions
Inactive
PureWeen
temporarily deployed
to
copilot-pat-pool
October 28, 2026 14:02 — with
GitHub Actions
Inactive
PureWeen
temporarily deployed
to
copilot-pat-pool
October 28, 2026 14:03 — with
GitHub Actions
Inactive
PureWeen
temporarily deployed
to
copilot-pat-pool
October 28, 2026 14:03 — with
GitHub Actions
Inactive
Contributor
|
✅ No documentation PR was created. Confidence that documentation is needed: 2% No docs needed: the PR changes only CI/repo automation (PR review skill, script, tests, workflow). Documentation surfaces considered
|
PureWeen
temporarily deployed
to
copilot-pat-pool
October 28, 2026 14:04 — with
GitHub Actions
Inactive
3 of 4 tasks
This was referenced Oct 31, 2026
This branch was previously deployed
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.

Bound PR review inputs for native readers
Project frozen review inputs for reliable native reads
Description
This projects GitHub review data into a compact frozen bundle, removes duplicate
files[].patch, externalizes multiline required text as integrity-checked.sourcefiles, and gives each routed guide a disjoint exact-file assignment. The latest replacement aligns worker consumption with the evaluator contract: workers trust producer/checker-validated assignment metadata, read every assigned non-source file to EOF through nativeview/read_file, never invokebash,shell, orpowershell, and use native search only beneath assigned frozen source roots.The complete coordinator bundle, frozen target identities, independent adjudication, source roles, routing provenance, tamper/reuse checks, diff reconstruction, and explicit
BLOCKEDfailures remain intact. This does not add trace parsing, a sandbox, worker receipts, generalized chunking, or a second live-read architecture; #70055 continues to own post-read native trace grading.Stable bundle and worker contract
diff.patchis authoritative; projectedfiles.jsoncontains changed-file metadata without duplicate patches..sourcefiles referenced by bundle-relative path, UTF-8 byte length, and SHA-256.guides[].assignment.files[]entry is exactly{ kind, path, utf8Bytes, sha256 };assignment.sourceRoles[]names only assigned frozen source roles.sources[role].rootmappings for assigned roles.view/read_file, paging withview_rangeor equivalent offset/limit until the final line; truncation is a required-input failure.bash,shell, orpowershell. Nativerg/grep/globis permitted only beneath assigned frozen source roots.required/guides/<guide-index>/...paths./reviewdispatch passes references rather than duplicated inline guide/policy/exclusion/diff/changed-file contents.Compatibility and bounded unresolved behavior
diff.patchand routed guide.sourcelong-line behavior remains an unresolved, unverified boundary and is not redesigned here.Deterministic red/green and validation evidence
Red-before focused controls failed for the expected missing contract clauses before each correction: native exact-file/no-shell wording, paging-to-final-line behavior, and the retained native-local-coordinator
--allow-all-pathsprohibition.Green results:
. .\activate.ps1; dotnet run --project .github\skills\review-pull-request\scripts\PrepareReview.Tests.csproj -- -preEnumerateTheories -reporter quiet.pull-request-review.validate pull-request-review --strict --no-check-update.body_hash:9fd5253a988aaa0f297951b838de12517d98fe7fd76fbb6a37bc69d0cdb527ac→3a4a75250d3317d54068adee130964598b1822736157c6d95a0db7eca13c941a.git diff --checkpassed.Retained reports:
worker-native-read-coordinator-guard-focused.xmlworker-native-read-coordinator-guard-full.xmlImmutable replacement evidence and independent review
68fa968990de2e6e991e75fd8debceb26fe3cf629ee702a5ed0b150e950207247a70ba62b35540b471b0131d7b170e1279f1a936946fc13cbec45eacf295645bf5d73afb014236f732aa52fff0925fe24ab46f1ea48b4402fefdef50+78/-23.#70055 migration contract
guides[].assignment.files[]exactly as{ kind, path, utf8Bytes, sha256 }andguides[].assignment.sourceRoles[]as frozen source-role names.bash,shell, andpowershellcalls.sources[role].rootvalues.required/coordinator/exclusions/..., guide policies underrequired/guides/<guide-index>/policies/..., and guide-specific exclusion copies underrequired/guides/<guide-index>/exclusions/....Fixes the native-reader transport failure observed while reviewing #69782.