Skip to content

fix(e2e): retain Claude initialize backup custody - #1140

Merged
777genius merged 1 commit into
mainfrom
fix/e2e-claude-initialize-backup-20261128
Nov 28, 2026
Merged

777genius merged 1 commit into
mainfrom
fix/e2e-claude-initialize-backup-20261128

Conversation

@777genius

@777genius 777genius commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

E2E follow-up status — 2026-11-28 04:39 UTC

  • Merged correction: #1144, head ef1bab9d8f612516564168b99e989d73f9f4d016, ordinary squash a927a6030be2a775e2541aa14e849ce8e7b945bb, tree 1829f58abb850416f46571176f39fade5b83e172. The one-test change accepts the three exact representations of the same rejected symlink. Independent source review is clear; local execution was unavailable, and normal CI execution is pending.
  • Actual preflight failure: PR1141 Claude job selected 377 tests: 376 passed and one Copilot diagnostic assertion failed. The genuine Claude unit passed twice; the Marketing lifecycle did not begin. PR1144 fixes that test expectation without changing production admission or refusal behavior.
  • Earlier native result remains distinct: PR1140 Claude job passed all 16 lifecycle stages, including the finite backup-custody fix, with published CLI 0.1.116 and genuine Claude 2.1.263. Its exported scope does not claim complete physical removal or global writer closure.
  • Still in progress: the genuine Marketing Copilot cold-Project failure awaits the instrumented native result. The corrected PR1143 macOS Terminal job has started and reached the affected CLI contracts; its final result is pending. PR1143 Required CI remains running, and PR1144/main checks are awaiting normal execution.
  • Completed evidence: PR1141 and main 21b5ea7 full Required lanes passed: 176 unique Go packages, 1,231 Node passes with six explicit skips, and 133 conformance passes. The original full live matrix has 13 of 18 cells qualified; the remaining-target matrix has all nine cells qualified within their individual native, prepared, and refusal limits. Five full live cells remain pending.

Queued, running, cancelled, skipped, metadata-only and prepared observations are not promoted to native passes. No CI reruns, dispatches, cancellations, runner changes or release publication were used.

Problem

The current genuine published 0.1.116 Claude Marketing run completed all 16 public lifecycle stages and all four fresh registration/Skill absence checks. Its final retained-profile check then refused one new .claude/backups/.claude.json.backup.<timestamp> file. Failed job and full evidence.

That old report does not export the backup bytes or creation window. Its presence diagnostic is not a file digest, so the backup cannot be accepted from its name or the old report alone.

Change

This two-file follow-up to #1087 and #1133 extends the existing Claude audit authority at its measured User initialize boundary:

  • Inventory the bounded backup namespace before the action through the existing rooted reader and held directory descriptor.
  • Admit at most one new backup in total across both User initialize actions. Require the exact timestamped filename within the actual action interval, strict owner/group/mode/single-link checks, and complete size/SHA256 equality with a continuously held authorized main image.
  • Keep the backup pending until the existing typed native Skill proof and outer guards pass. Retain its original descriptor and the exact namespace for every later checkpoint.
  • Preserve existing children and refuse rotation, replacement, deletion, extra files and changed original bytes. Keep temporary-file custody separate and leave the original Project residual allowance unchanged.
  • Report this finite retained-byte authority separately, with physical absence and writer closure still unqualified.

Reviewed source and verification

Head: 48c348bb832b9a57162bba40f986e7c3d6ac3745
Tree: 9390abe919d03114afa2e5634a285742ce3c3b9f
Base: c9e52bf95007e00c202de4e39aadfa93976e4d15

The isolated local worktree used the identical two input blobs on cd8faf…; publication applies only the reviewed helper/test blobs to current main. The published comparison contains exactly these two files, preserving #1139 and every other accepted main change.

  • 73 inert retirement tests passed with zero skips on the final production helper. The genuine native method was explicitly excluded from local execution.
  • Six focused backup controls passed. The actual immutable R9 helper produced four expected unowned-backup refusals in the same lifecycle fixture.
  • Independent review found and corrected one test observation gap: the ancestor-swap read spy now watches both the foreign directory and its actual file inode. That changed control passed afterward; production code was unchanged, and the larger suite was not repeated.
  • Root and independent frozen-code reviews are CLEAR. Source checks, log hashes and git diff --check were verified.

Helper blob: 79e9ff1c8a3635affa17e411bc5d210e637a6dd5. Test blob: 3175c9fbd046f296a5db29607115065d20ed7324.

Hosted completion boundary

A new genuine native run must establish whether the actual backup satisfies these conditional checks. An unsupported image or creation window still refuses. This PR does not turn the failed R9 lifecycle into a pass.

Continue ordinary merge and relevant final-source/main checks for the #1087 goal. Existing CI runs continue normally. No rerun, manual dispatch, cancellation, runner change, protection override or release is part of this change.

@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 →

Caution

Review failed

The pull request is closed.

  • 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

@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.40%. Comparing base (c9e52bf) to head (48c348b).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1140   +/-   ##
=======================================
  Coverage   64.40%   64.40%           
=======================================
  Files        2353     2353           
  Lines      143089   143089           
=======================================
+ Hits        92154    92160    +6     
+ Misses      37877    37874    -3     
+ Partials    13058    13055    -3     

☔ 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