Skip to content

fix(conformance): repair protected tool bootstrap - #93

Merged
BunsDev merged 6 commits into
mainfrom
fix/protected-conformance-tool-bootstrap
Sep 4, 2026
Merged

fix(conformance): repair protected tool bootstrap#93
BunsDev merged 6 commits into
mainfrom
fix/protected-conformance-tool-bootstrap

Conversation

@BunsDev

@BunsDev BunsDev commented Sep 4, 2026

Copy link
Copy Markdown
Member

Repairs the failures observed in protected run 33888933482.

  • copies the reviewed canonical rustup target into the isolated trusted root as root-owned rustup, cargo, and rustc proxy commands instead of exposing the runner private home
  • keeps the ordinary child PATH limited to reviewed node/corepack and fixed OS directories
  • handles clean Windows git status output as an empty array instead of accessing a missing .Count property
  • repins Phase 1 harness authority to behavior commit c4d0bf31763b70e1266439ff2ef1984b543e04fd and tree f4bb14af2e0f2a503bb78153645a67e7f7a76f63

Validation: workflow tests, executable-resolution tests, 92-test heavy authority-lock suite, lint, typecheck, shell syntax, and copied rustup/cargo/rustc proxy execution. Privileged native UID containment remains covered by Linux/macOS CI.

BunsDev and others added 4 commits September 4, 2026 10:32
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 4, 2026 16:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The workflow currently exports rustup_executable using resolveExecutableInvocation(...).executable (symlink-preserving), which can conflict with the supervisor’s “no symlink” safety checks and cause avoidable failures.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR repairs protected conformance workflow bootstrap by tightening how trusted tools are introduced into the supervised environment (notably Rust toolchain entrypoints), fixing a PowerShell cleanliness check on Windows, and repinning the Phase 1 harness authority to a new behavior commit/tree.

Changes:

  • Update Unix producer supervisor to optionally accept and copy a reviewed rustup proxy into the trusted root as rustup/cargo/rustc, and prepend that trusted root to the restricted PATH.
  • Fix Windows PowerShell git status cleanliness checks by forcing command output to an array before reading .Count.
  • Repin Phase 1 conformance authority (tests, lock file, and docs) to the new revision/tree and updated trusted file digests.
File summaries
File Description
src/phase1-conformance-lock.test.ts Updates expected harness authority revision/tree and file digests to match the repin.
src/client-v1-conformance-workflow.test.ts Adjusts workflow assertions for the Windows bootstrap change and new Unix rustup handling.
scripts/unix-producer-supervisor.test.sh Adds coverage for passing a trusted rustup multicall proxy via --rustup-executable.
scripts/unix-producer-supervisor.sh Adds --rustup-executable, copies it into the trusted root as rustup/cargo/rustc, and updates restricted PATH.
phase1-conformance.lock.json Repins harness revision/tree and updates trusted file digests.
docs/phase1-conformance.md Updates documented byte sizes and SHA-256s for repinned trusted files.
.github/workflows/client-v1-conformance.yml Updates Windows git status .Count usage; updates Unix tool-path step to export a rustup executable path and pass it into the supervisor.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/client-v1-conformance.yml Outdated
Comment on lines 2169 to +2173
expect(toolPathStep).toContain('resolveUnixToolPath');
expect(toolPathStep).toContain("[''node'', ''corepack'', ''rustup'']");
expect(toolPathStep).toContain("resolveExecutableInvocation(''rustup''");
expect(toolPathStep).toContain("[''node'', ''corepack'']");
expect(toolPathStep).toContain("''tool_path='' + toolPath");
expect(toolPathStep).toContain("rustup_executable='' + rustupExecutable");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in c4d0bf3: the workflow test now requires .resolvedCommand and rejects the prior .executable export.

@BunsDev BunsDev added the ci:full Run the macOS and Windows CI jobs on this pull request label Sep 4, 2026
@BunsDev BunsDev closed this Sep 4, 2026
@BunsDev BunsDev reopened this Sep 4, 2026
BunsDev and others added 2 commits September 4, 2026 11:33
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@BunsDev
BunsDev merged commit 0488a86 into main Sep 4, 2026
10 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Run the macOS and Windows CI jobs on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants