Skip to content

fix(e2e): retain complete npm runtime custody - #1124

Merged
777genius merged 10 commits into
mainfrom
fix/shared-native-audit-20261126
Nov 26, 2026
Merged

777genius merged 10 commits into
mainfrom
fix/shared-native-audit-20261126

Conversation

@777genius

@777genius 777genius commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Why

The saved Windsurf lifecycle compared the qualified node_modules subtree across checkpoints, but omitted the enclosing runtime directory and its locked input files. Identical-byte replacement of the runtime marker, package manifest or lockfile—and a runtime-root mode change—could therefore escape the continuity check.

Changes

  • Extend the existing runtime_authority snapshot slice to the parent of each already-qualified node_modules root.
  • Preserve forward-slash snapshot keys with as_posix() on every platform.
  • Add four real-filesystem causal controls for identical-byte file replacement and runtime-root metadata change, alongside the unchanged positive control.

Receipt, original-source, lock and bin-link qualification are unchanged. This is a two-file, 26-insertion/one-deletion correction using the existing snapshot and lifecycle comparisons.

Integration with #1125

Merged main 23545646d558e45cc0642c8eedec098fa74b9854 already contains the earlier Copilot, Claude and Windsurf corrections. The integration commit adopts that exact upstream tree, then applies only the continuity correction above. No duplicate implementation from this PR's earlier history remains.

Published head: 977070c6393ecf388cc2b02cf0c721967d878d4f
Reviewed tree: 9e71e29068552ad941ce6f3e62a901c64264cd9b

Validation and review

  • All four causal mutations reproduced the missing continuity check on the upstream source, then passed with the correction.
  • The full installation contract suite passed: 55 tests, no skips, before the final one-line portable-key normalization, which preserves the same POSIX behavior.
  • On the final source, all four filesystem subcases passed; both changed files passed py_compile; git diff --check is clean.
  • Independent source review approved the exact final tree. Root review caught the key-framing portability issue before publication; it is corrected.

This verifies the bounded observer correction. Hosted native lifecycle results remain separately tracked; queued, skipped and cancelled work is not claimed as a native product pass.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2354564 and 977070c.

Files selected for processing: 2

  • scripts/test_windsurf_installation_audit.py
  • scripts/windsurf_installation_audit.py
  • 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

@777genius 777genius added the ci:github-hosted Use original GitHub-hosted Linux runners for this PR label Nov 26, 2026 — with ChatGPT Codex Connector
@777genius
777genius marked this pull request as ready for review November 26, 2026 22:05
@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.

The Ready transition did not create a ready-event workflow wave. Trigger the ordinary synchronize checks with the unchanged reviewed tree and current ready state.

@777genius 777genius left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Independent source review: approved the receipt-bound npm cache adapter and its strictly typed marker checks, the fresh private Copilot refusal-log boundary, and the exact 17 valid / 9 invalid Skill partition while retaining all 26 raw documents and immutable source digests. Existing held-file/tree custody is reused and source/delivery framing remains strict. Component regressions passed, including independent Copilot rechecks. The final ready-state synchronization commit has the same reviewed tree eea7dedc9720c97f2c7c80a81139ad0d9f960f84. Actual Marketing/Windsurf jobs are now created but pending; the known HOME/residual cases remain unqualified until actual execution.

Upstream #1125 supersedes the overlapping Copilot, Claude and Windsurf implementations. Adopt its exact reviewed tree before the remaining runtime continuity correction.
Include each qualified runtime's root, marker and locked input files in the existing cross-checkpoint authority comparison. Preserve portable forward-slash keys. Keep original receipt, source, lock and bin-link qualification unchanged.
@777genius 777genius changed the title fix(e2e): correct source and diagnostic custody in client audits fix(e2e): retain complete npm runtime custody Nov 26, 2026

@777genius 777genius left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Final independent source review and root review approve the two-file continuity correction, exact tree 9e71e29068552ad941ce6f3e62a901c64264cd9b. All overlapping implementations were replaced by the exact merged #1125 tree. The change widens only the existing comparison slice to already-qualified runtime roots and retains portable forward-slash keys; receipt/source/lock/link admission is unchanged. Four real filesystem mutations reproduced the upstream omission, the 55-test installation suite passed, and the final portable-key follow-up passed the four causal subcases, pycompile and diff checks. This bounded observer correction has sufficient local causal verification to merge under the requested fast workflow. Hosted native lifecycle qualification remains pending and is not credited as passing; no enforced gate is bypassed.

@777genius
777genius merged commit 96d4c11 into main Nov 26, 2026
45 of 50 checks passed
@777genius
777genius deleted the fix/shared-native-audit-20261126 branch November 26, 2026 23:02
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.32%. Comparing base (2354564) to head (977070c).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1124      +/-   ##
==========================================
- Coverage   64.32%   64.32%   -0.01%     
==========================================
  Files        2341     2341              
  Lines      142595   142595              
==========================================
- Hits        91725    91723       -2     
- Misses      37860    37864       +4     
+ Partials    13010    13008       -2     

☔ 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

ci:github-hosted Use original GitHub-hosted Linux runners for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant