You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend the central base-commit Python dependency materializer so repositories that rely on uv.lock can produce an offline, fully hash-pinned dependency closure even when the GitHub runner does not already expose a trusted uv executable.
This draft initially carries bounded staging chunks and a self-removing verification workflow. The workflow reconstructs the reviewed source and regression suite, verifies exact SHA-256 receipts, runs focused tests, 100% statement/branch coverage and docstring checks, then commits only the canonical materializer and its tests. The draft must not become ready or merge until that cleanup commit exists.
Why
BandScope Python PRs currently pass their repository CI but fail the central OpenCode coverage sandbox because the validated base tree contains uv.lock dependency contracts and the coverage runner silently omits them when uv is absent. That turns missing environment materialization into misleading source-review failures.
Trust boundary
Read uv.lock and sibling pyproject.toml only from the exact validated base SHA.
Bootstrap one fixed official Astral uv archive through HTTPS.
Verify the archive SHA-256, exact tar member, regular-file type, bounded archive/binary size, executable mode, and exact version.
Run uv export --frozen --offline --no-emit-project --no-editable in an isolated temporary project.
Reject nonempty exports that are not fully hash-pinned.
Fail closed on trusted-tool download, extraction, version, execution, or export failures.
Never expose PR-mutable dependency metadata to the networked image-build stage.
Verification completed locally
Focused materializer tests: 36 passed.
Materializer: 193 statements and 58 branches, 100% coverage.
Relevant central contracts: 76 passed.
Production docstrings: 100%.
Python compile and git diff --check: passed.
Exact BandScope base-tree integration: services/analysis-engine/uv.lock exported to a hash-pinned requirements closure; the dependency-free root project correctly emitted no installable closure.
Stack
This PR is intentionally stacked on #703 (fix/npm-workspace-coverage-root). It must be rebased or retargeted after #703 merges, and all exact-head security/review checks remain authoritative.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 421ed87d-a3d8-4c17-9da6-cea3cf55fd3b
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
🔍 Trigger review
Comment @coderabbitai help to get the list of available commands.
The bounded bootstrap completed successfully and produced the verified canonical source/test pair at head bcd06d6b24777edcf56013975ea30fce37815d41. Because this branch is stacked on the closed #703 ancestry, the final two-file change has been reconstructed directly from main as clean replacement PR #743. Closing this stacked transport PR prevents unrelated ancestry from entering the default branch.
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
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.
What
Extend the central base-commit Python dependency materializer so repositories that rely on
uv.lockcan produce an offline, fully hash-pinned dependency closure even when the GitHub runner does not already expose a trusteduvexecutable.This draft initially carries bounded staging chunks and a self-removing verification workflow. The workflow reconstructs the reviewed source and regression suite, verifies exact SHA-256 receipts, runs focused tests, 100% statement/branch coverage and docstring checks, then commits only the canonical materializer and its tests. The draft must not become ready or merge until that cleanup commit exists.
Why
BandScope Python PRs currently pass their repository CI but fail the central OpenCode coverage sandbox because the validated base tree contains
uv.lockdependency contracts and the coverage runner silently omits them whenuvis absent. That turns missing environment materialization into misleading source-review failures.Trust boundary
uv.lockand siblingpyproject.tomlonly from the exact validated base SHA.uvarchive through HTTPS.uv export --frozen --offline --no-emit-project --no-editablein an isolated temporary project.Verification completed locally
git diff --check: passed.services/analysis-engine/uv.lockexported to a hash-pinned requirements closure; the dependency-free root project correctly emitted no installable closure.Stack
This PR is intentionally stacked on #703 (
fix/npm-workspace-coverage-root). It must be rebased or retargeted after #703 merges, and all exact-head security/review checks remain authoritative.