Repository navigation
test(e2e): preserve profile A during Marketing Kit peer initialization - #1111
Conversation
|
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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1111 +/- ##
=======================================
Coverage 64.03% 64.03%
=======================================
Files 2324 2324
Lines 141572 141572
=======================================
+ Hits 90651 90652 +1
Misses 37927 37927
+ Partials 12994 12993 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Postmerge acceptance — final Marketing matrix pending
Ordinary merge
26293e02is confirmed. Both parents and all 3 changed file blobs/statuses match the reviewed candidate.The actual-main Required run is now complete and successful. All nine applicable jobs executed successfully; the source classifier is an explicit conditional skip. Original logs bind the actual merge checkout and confirm:
Both CodeQL languages, all six Govulncheck modules, and Dependency Review also completed successfully. Source-bound original Govulncheck logs report no vulnerabilities.
Remaining acceptance is the latest applicable guarded Marketing main run on
d3cfbb6a, which includes this guard and #1021's later shared-helper merge. All six native lanes must actually execute and pass. The run is still waiting; the older unguarded main run and superseded or queued runs do not qualify the final guard.Copilot's cold restore uses the explicitly preauthorized native-folder fixture, with no virgin-folder UI consent or product-granted trust claim. Claude retains
writer_closure_claimed=false; only the recorded signed-cache retirement is established. This checkpoint supersedes older pending entries below.Summary
The published Marketing Kit E2E initialized the cold User profile C before recording the complete profile A snapshot. A native initializer could therefore add an unexpected file under A/HOME and have that change accepted into the later baseline. This is a gap in the E2E custody assertion; it is not evidence that a production client actually made that write.
Capture the existing complete A profile before all C initialization steps, and verify it in a
finallyblock. Cover new foreign writes on both normal and exceptional exits, and preserve the original initialization exception when A is unchanged. Run the regression explicitly before every native Marketing Kit lane and include its path in both PR and main-push workflow filters.This three-file follow-up supports the ongoing E2E qualification in #1095. It starts from main
7825d7edf48792566f15f99f7872238f547e7575; the existing #1095 head is unchanged.Verification
python3 -m unittest discover -s scripts -p 'test_marketing_kit_*.py': 43 passed, zero skips/failures; independently repeated on the same candidate.git diff --check.8b5a8a920c49d82b85434adfe7045a3161d463cf: primary tests, staged-hermetic and path classifier passed. Lint and management SDK were source-conditional skips, not executions. Both CodeQL languages and Dependency Review passed.9cc07184(exact head8b5a8a9plus base7825d7e) and executes the new peer initialization suite: regression groups of 142, 26, 11, 4 and 2 tests all pass. All six original archives were independently read; CRC and SHA-256 matched GitHub artifact digests, and workflow bindings identify this exact head. Each final receipt recordsstatus: passed,two_scope_lifecycle_qualified: true, actual User/Project lifecycle, expected corrupt-lock refusal, cold restore and removal with foreign preservation. Artifact IDs: Codex14988394533, Cursor14989281694, Claude14994754287, Gemini14995980362, OpenCode14997490961, Copilot14996229915. Earlier runs under the old assertion boundary remain separate evidence.26293e0293cd5c592c404fb313143afe0e70b6b8; all three reviewed blobs and both parents verified.The local regressions inject real temporary filesystem writes through the existing snapshot/refusal helpers. They do not substitute for hosted native lifecycle execution.
Release Impact
No product CLI or SDK behavior, policy refusals, public format, frozen VS Code behavior, signed closure, native-client pins or published CLI version is changed. This PR creates no release or tag. Existing containment and foreign-file preservation checks remain enforced.
Summary by CodeRabbit