Skip to content

fix(e2e): bind Copilot runtime links to cold install receipts - #1147

Merged
777genius merged 1 commit into
mainfrom
fix/e2e-copilot-receipted-runtime-links-20261128
Nov 28, 2026
Merged

777genius merged 1 commit into
mainfrom
fix/e2e-copilot-receipted-runtime-links-20261128

Conversation

@777genius

@777genius 777genius commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Problem

The instrumented main21b Copilot job and R13 Copilot job passed all preflight tests except the unrelated explicit Claude availability skip, then passed the first four public stages and stopped at the cold Project preservation guard.

The rejected entry was the pinned Playwright npm runtime's .bin/playwright-mcp link. The first job exported its link representation and a typed value digest matching the canonical relative target; the second exported the legacy symlink file representation. Neither job qualified cold refusal, later scopes or fresh profile E. Raw receipt and link metadata remain unexported.

Change

Reuse the existing exact Playwright runtime-link authority for this Copilot checkpoint, with additional joins to the validated four-installation cold receipt set:

  • The one Playwright installation ID must derive the exact physical Project data path.
  • Signed package identity, data receipt, owner marker and the single nonretained Copilot Project binding must agree.
  • The state and owner document bodies read for authority must match their hashes in the complete protected snapshot.
  • The existing immutable lock hash, exact three bin names and relative targets, ordinary ancestors, safe regular target reader and captured link identity checks remain in force.
  • Only the verified link, legacy file sentinel and matching metadata entries are admitted. Every snapshot entry remains present.
  • Changed or deleted baseline state refuses before any new-link allowance. Invalid authority retains the original refusal and typed diagnostic.

Default Claude behavior and PR1146's child 077 creation setting remain unchanged. This changes the E2E preservation check, not CLI consent, installation, ownership or activation behavior.

Verification

Four new inert test methods cover complete cold-refusal orchestration, 16 authority/namespace negatives, two substituted-document image cases, and seven baseline mutation cases. They reuse the existing pinned lock and filesystem fixture. All 17 existing Copilot test methods are unchanged.

The four-file candidate was reconstructed and reversed exactly against main 4e68de5cbf579e28a8304487882e73a17e5f7302. Relevant callers and open overlapping PR patches were checked. No unrelated source was imported.

Tests are unrun locally because the executor is unavailable. Concrete independent source review and ordinary CI/genuine Copilot validation remain pending. The target digest match is not raw filesystem ownership evidence; actual admission still requires all checks above.

Follow-up to #1087. No workflow, runner, dependency, release or frozen VS Code changes.

Summary by CodeRabbit

  • Bug Fixes
    • Improved checks that a project remains unchanged when setup is declined, including when runtime links are created.
    • Unrecognized or altered runtime state and prior project changes are now rejected during these checks.
    • Added verification for consent-refusal records and approved runtime-link details.

E2E follow-up — final verification

The finite E2E follow-up for #1087 is complete. The original PR and all required corrections are merged. The final corrected Copilot scenario completed successfully at 2026-11-28T13:34:29Z; its own complete report and the source-dependent refusal, ownership, recovery and cleanup checks were independently reviewed.

Final source and Copilot evidence

  • #1147 is merged as ff6c507ddcefd23d41d2f26a6fd0b545ab7b6022. Its reviewed head 6c8c7204bf373bb7a18bba8399e3da22c19825ed, PR checkout c4b10375c289aca8865981ade108ef2aaed23770 and signed squash merge share tree 3cf4e32118ec43ad66e64efb21ee2a1eee027b3b. No known fix remains unmerged.
  • The actual corrected Copilot job checked out that exact PR commit and used published UAP 0.1.116 with declared npm package @github/copilot@1.0.105. Its complete preflight selected 296 tests: 295 passed, one unrelated unavailable-Claude test skipped. All 21 Copilot regression tests passed, zero skips, in 1.629 seconds.
  • The complete lifecycle has 18 stages: 14 exit-zero operations and four expected exit-one refusals. Both Project and User scopes passed. The virgin Project D correctly refused missing remembered folder consent with exactly four bindings; the protected-state/receipt guards passed. The separate Project B restored cold UAP state with an explicitly authored native-folder prerequisite and a 0600 config. Accordingly, cold_native_restore_qualified=false, virgin_native_trust_qualified=false, ui_consent_observed=false and product_trust_grant_claimed=false remain correct. This does not claim a positive virgin, unconsented native restore.
  • Both signed-lock corruptions refused before installation. Later add/repeat/update/repair/restore/removal stages completed. Fresh User A/C native observations changed from four installed managed registrations to zero; retained settings were restricted to the exact four disabled closure entries, with no true/nonboolean values or reference matches. Source-mandated foreign/peer preservation checks passed. Cleanup ran before aggregate passed and two_scope_lifecycle_qualified=true.
  • Fresh, never-installed Project E reproduced the initial production policy 49 (f54f905f55d05477ee01ae6028a8d32e10b8b8db58784f81f624642ae71f2452) and the complete four-package signed closure. The separate current-production VS Code User boundary correctly refused saved_management_capability with unsupported_saved_target; no separate VS Code binding or Editor runtime qualification is claimed.
  • Own decoded log: 108,056 UTF-8 bytes, SHA256 fdc88c9b82c938d81ebed121c494dbe6577fee93c5a12cb1caaf46c6fb9aa728. The complete extracted console JSON is 26,761 bytes, SHA256 e0438b6529630194133f5a9615943024d2a7f83253d6dbb97e75c58e66957a6e. The uploaded artifact 15265905862 is 5,748 bytes; official API metadata and the own upload log agree on SHA256 8523128fde0b03850a0bce8d5a78b727c4150d14bddaa65203dba8ca05842e48. The official download returned a file reference, but the unavailable executor prevented independent ZIP-byte hashing, member CRC checks and an archive/console byte join. Those archive checks remain explicitly unverified; completion is based on the complete own console report, source-mandated assertions and independent semantic review, not a claimed ZIP verification.

Required checks and affected regressions

Both current PR Required and merged-main Required were independently qualified from their full logs on the exact checkouts above. Each passed 176 unique Go packages, 1,231 Node tests and all 133 conformance fixtures, plus generated checks and vet. Six explicit Node skips remain recorded. PR/main staged tests each passed one test with zero skips; all three merged-main SDK platforms and all nine executable main Required checks are green. Relevant lint, Polyglot and cross-platform checks also passed. Intentional classifier/path skips are not counted as passes.

The current 21-method Copilot module also passed independently in the R16 Cursor CI job and once locally on verified exact source. The current 11-method Claude discovery module and unchanged 30-method probe module each passed locally with zero skips: 62 focused inert local passes in total. The ordinary R15 Plugin pilot independently ran all 30 probe tests successfully, including both new child-mask controls. The new strict-mode retirement control passed in ordinary CI. No local native/vendor/compiler/build campaign was used.

Other completed corrections and original coverage

  • #1146 confines the private-child 077 mask to the genuine Claude fixture and private observer, preserving the strict 0600 reader and public CLI behavior. The genuine post-fix Claude job passed 381 preflight tests with zero skips, all 16 lifecycle stages and 25 native observations. All 50 exported raw-stream size/SHA joins and strict JSON checks passed. Its downloaded 72,308-byte ZIP independently matched SHA256 bb7f45935297a244b5ce2d30bbbc7786d1c967e1399f39acf8c8de44a8f26ccf, all CRCs and the report/console join. Relevant R15-to-current Claude default-path source equivalence and the current 11-test discovery suite were checked explicitly. Finite custody/registration claims retain their own limits; full physical absence and writer closure are not claimed.
  • #1145 adds the package-specific OpenCode postinstall allowance and bounded exact-version check. The actual fixed-source job printed 1.18.34 and passed that gate, then all 16 selected public/file lifecycle stages. Its 4,516-byte ZIP independently matched SHA256 47c896351b298ee21bb11eeae9a57e59ff86fa4fd9a5cf1e96384ce77d5b9f40, all CRCs and its own report/console join. This establishes the selected executable/version and lifecycle contract; native model/MCP/inventory claims are not added.
  • All 18 original R9 full-live cells and nine remaining-target cells remain qualified with their original producers and individual native, registration, preparation and refusal boundaries. The R12 cross-platform correction and R13 preflight correction are merged and verified. Later changes are joined only through explicit relevant-source/default-semantics checks. Automatically queued duplicate/follow-up matrix executions do not replace these proofs or create an additional acceptance campaign.
  • Earlier Copilot link/sentinel/metadata refusals and the earlier Claude 0644 failure remain attributed to their pre-fix sources. They are not current-code failures. The current complete Copilot run validates the correction after all three snapshot representations were covered by the focused regression suite.

No skipped, cancelled, queued, metadata-only or Prepared observation is promoted to a native pass. Unexported raw receipt/readlink bodies and an independently probed Copilot native version/binary digest are not claimed. No new authentication, model, MCP tools-call, Editor-runtime or host-writer-closure coverage is implied. No CI reruns, dispatches, manual cancellations, runner/protection changes, release publication or unrelated source changes were used.

@strix-security

Copy link
Copy Markdown

Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here.

So far, Strix has reviewed 392 pull requests, surfaced 113 security issues (1 critical/high) and blocked 3 risky merges across this workspace.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Copilot cold Project refusal checks now validate receipted runtime links against installation and ownership evidence. The check rejects existing Project mutations before considering new links, then compares the resulting Project state with its original snapshot.

Changes: Copilot refusal verification

Layer / File(s) Summary
Runtime ownership and link validation
scripts/marketing_kit_claude_discovery.py, scripts/test_marketing_kit_claude_discovery.py
Copilot ownership checks validate installation identity, project scope, authority hashes, client binding, and eligible runtime links. Test setup now accepts selected client and installation IDs.
Cold Project refusal validation
scripts/marketing-kit-project-release-e2e.py, scripts/test_marketing_kit_copilot_refusal.py
The cold Project check validates receipts and authorizes matching runtime links after rejecting changes to existing Project entries. Tests cover valid links, invalid authority and state, and mutation ordering.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant check_copilot_cold_project_unchanged
  participant claude_owned_runtime_links
  participant ProjectSnapshot
  check_copilot_cold_project_unchanged->>claude_owned_runtime_links: Validate receipts and authorize runtime links
  claude_owned_runtime_links-->>check_copilot_cold_project_unchanged: Return authorized runtime links
  check_copilot_cold_project_unchanged->>ProjectSnapshot: Compare Project state before and after refusal
Loading

Possibly related PRs

Merge Risk: Minimal · up to 6c8c7

This change tightens the Copilot cold-refusal preservation check in the E2E scripts. It does not touch product runtime behavior, and no concrete defect was established. The author reports that the new tests were not run locally and that CI plus genuine Copilot validation are pending, so confirm those pass before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the Copilot E2E change: binding Copilot runtime links to cold install receipts. The changeset does this through the cold Project preservation check, the Playwright runtime-link authori…
Description check Passed The description follows the repository's general structure with a Problem section, a Change section, and a Verification section. It gives the reasons for the change, the scope, and the test coverage. …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the Copilot E2E change: binding Copilot runtime links to cold install receipts. The changeset does this through the cold Project preservation check, the Playwright runtime-link authority and the four-installation receipt set. The title is specific and clear. It is an accurate summary, though it omits the baseline-mutation refusal and test additions.

Full details: Description check

Explanation

The description follows the repository's general structure with a Problem section, a Change section, and a Verification section. It gives the reasons for the change, the scope, and the test coverage. It also states that tests were not run locally and that CI and genuine Copilot validation remain pending. The template's Summary and Release Impact headings are not used, and the checkboxes for go test, make lint, make vet, make generated-check, and docs/release-path review are not addressed. These gaps are non-critical for this check because the description is mostly complete, but the author should map the content to the template headings and state which verification items were run or not run.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4e68de5 and 6c8c720.

Files selected for processing: 4

  • scripts/marketing-kit-project-release-e2e.py
  • scripts/marketing_kit_claude_discovery.py
  • scripts/test_marketing_kit_claude_discovery.py
  • scripts/test_marketing_kit_copilot_refusal.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@777genius
777genius merged commit ff6c507 into main Nov 28, 2026
28 checks passed
@777genius
777genius deleted the fix/e2e-copilot-receipted-runtime-links-20261128 branch November 28, 2026 10:00
777genius added a commit that referenced this pull request Nov 28, 2026
Import the accepted #1147 correction for the reproduced cold Project
runtime-link refusal. Preserve the existing branch test ordering and all
prior assertions while adding the four accepted authority regressions.

Default Claude behavior and its private-child mask remain unchanged.
@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.43%. Comparing base (4e68de5) to head (6c8c720).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1147      +/-   ##
==========================================
- Coverage   64.44%   64.43%   -0.01%     
==========================================
  Files        2356     2356              
  Lines      143429   143429              
==========================================
- Hits        92426    92423       -3     
+ Misses      37909    37907       -2     
- Partials    13094    13099       +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant