Repository navigation
fix(update): authorize complete batches before applying changes - #1116
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1116 +/- ##
=======================================
Coverage 64.12% 64.12%
=======================================
Files 2328 2328
Lines 141837 141851 +14
=======================================
+ Hits 90948 90962 +14
+ Misses 37901 37900 -1
- Partials 12988 12989 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Problem and change
update --all --yescould apply imperative tracked packages without the security authorization already enforced by targeted update. In a mixed batch, saved dependencies could be changed before the missing authorization became visible.This PR authorizes every changed imperative preparation with the actual command options before any saved or imperative apply. It reuses the existing security policy, preserves interactive consent and explicit
--accept-security-risk, and returns one batch JSON document containing the blocking assessment. The production correction is 21 added lines inupdate_all.go.Plan and review
The plan was published first and revised after two independent reviews before implementation. A separate stale-prepared-update hypothesis did not reproduce: the existing native-object digest check already rejects stale execution. This PR retains one public Engine regression for that protection and makes no corresponding production change.
Independent implementation and fixture review found no correctness issue. The change preserves #1115's overlapping apply/render/saved diagnostics; current main and overlapping work were checked again before merge. The later #1115 deltas through
0618ea955b6c9dee5d057af447a283aa3c840476were inspected: they change only terminal-ui scripts/tests and add no update/security, Go-fixture or package-manager-catalog overlap.Actual local evidence
998e0f0cc81654c4aa1ba3f48c4de01d934fa13e. On unchanged production, imperative and mixed batches incorrectly completed two and three updates with native effects; targeted refusal and read-only preview were valid. Both separate explicit-risk acceptance/cleanup controls passed after correcting the saved-Skill identity oracle.aa03de9cb7f235ce40d1724c3fd9f57c38bb8f16, blob7d37a95dbfba9d1029723c59c526056a80fd3385.update-all-security-batch-preflightandupdate-all-security-mixed-saved-preflight, including acceptance and cleanup (7 passing test/subtest events).The injected blocking assessment qualifies authorization routing; the existing unchanged-executable phase separately qualifies the pinned real scanner.
Final-head qualification
Final head:
e8da867d91c90bf34f8915cf9e8e46925c98d4cc; tree:f86199db4a1812b9a843d2a220be7e3d72db9b65.Full local
make lintpassed all four modules in both passes; the exclusion baseline remains 137 rules with no growth. The hosted core log was inspected and confirms completemake test-coreplus coverage on the final source, including installer, internal CLI and public CLI packages. Local full core encountered unavailable procfs process-tree and Unix-socket prerequisites; those local failures were not counted as passes. The first local changed-line lint lacked the shallow checkout's base object; normal Git history was fetched before the successful unchanged-gate retry.All four package-manager reports have
suite: full,status: pass,full_qualification: true, no excluded tests, unchanged clean source and all 16 phases passing. Their merge ref7fae09baade53ad1852e8f8d2179603e264e9241has exactly the final PR tree above. Each installation event stream contains actual run/pass events for both new security cases and their refusal/acceptance children, with no failure or skip. The cold pinned real-scanner binary lifecycle, ownership and crash/recovery phases also passed. Artifacts: Ubuntu15084315763, Windows15085327203, Apple Silicon15085163752, Intel15083956297.Every inspected native report records exact final head/tree,
status: passed, exit 0 and no skipped required test. These use genuine pinned clients with scripted loopback model endpoints and qualify the stated lifecycle, discovery, MCP and isolation behaviors. Vendor authentication and real-model behavior are outside those fixtures. Codex Linux also passed the actual browser/project Skills lifecycle. OpenCode V1 macOS additionally passed SDK → real Go engine → native OpenCode, with a complete SDK receipt and exact-source process receipt.Inspected native artifacts
Additional selected gates
Authoring completed all 7 jobs successfully. Aggregate job
139694775197checked out the exact head and passed mandatory graph validation, 28 negative-control tests, andcheck-packed-workflow.py --resultsrequiring every selected native and packed dependency to succeed.Remaining-client acceptance completed all 10 jobs successfully. The five final reports below each attempted all 30 cases, have full coverage and complete source selection, and contain zero unexpected errors. Each names PR head
e8da867…and source merge ref7fae09ba…, with the verified final tree above.Windsurf plugin qualifies prepared installation acceptance: 25 prepared lifecycles and five verified refusals, preserving binding/residue boundaries. Grok Skill explicitly uses the prepared-Skills contract and qualifies 30 prepared lifecycles. Their reports have
installation_acceptance_passed: true; they do not claim native activation or authentication. Grok plugin's negative is the documented unsupported source. ChatGPT plugin qualifies the canonical Codex bridge, not ChatGPT Desktop runtime or real-model behavior.Completed merge and post-merge acceptance
Merged by the ordinary merge API with expected head
e8da867d91c90bf34f8915cf9e8e46925c98d4ccon 2026-11-26 at 06:44:58 UTC. The actual merge commit is0cfb5655adcad430f2da3f581585320f0a47121f, with parentsce789138a393bffd7e6d001c0e4f8aec05e47773and the reviewed head. Its tree is exactlyf86199db4a1812b9a843d2a220be7e3d72db9b65, matching the qualified PR source.Before merge, the actual final-head check-runs scan read 138 checks: 110 successful, one neutral CodeRabbit rate-limit result, 26 expected skips and one superseded cancellation. There were no active checks, failures, timeouts or action-required results. Independent implementation review was complete, and no GitHub review or inline thread required resolution.
The actual merge commit's automatic push Package manager E2E run completed all six platform jobs successfully. Every retained artifact was downloaded and inspected.
Every report has
suite=full,status=pass,full_qualification=true,excluded_tests=[], exact merge commit/tree, correct OS/architecture,source.dirty=falseandsource_unchanged_during_run=true. All 192 persisted phase-stream SHA-256 values were recomputed and matched: 32 stdout/stderr streams per platform.Each installation stream contains exactly one real run/pass pair for both
update-all-security-batch-preflightandupdate-all-security-mixed-saved-preflight, plus theirrefusal-and-previewandexplicit-risk-acceptancechildren. There are zero failure or skip events in those complete installation streams.All six full jobs also passed their applicable supplementary ownership, native Git policy, project lock isolation, process crash/recovery and EOL checks. The Windows held-reader check passed on Windows x64; its existing workflow condition skips it on the other five platforms. The skipped draft evidence preflight is excluded from product proof.
The authorization cases use injected fixture assessments to verify routing. Separately, all six reports pass the cold unchanged production-binary installation with real pinned lintai 0.1.3,
scanner_evidence_source=local_scanandreal_cold_production_scan. Native sessions, authentication and model behavior are covered only to the explicit boundaries described in the earlier native evidence.Verified post-merge report SHA-256 values
2c8ac413ecfbbc5926495d6b24f3ae7e3004254136e25ffa041d1f9e6c534ae98371af8bca75d1bc3084f41e0c8dd22e4062ddf8c2d2b62170fafedf7ccb87152988d2ad98f21d87ab1770e474139ae03bf52c3c435331b7a826484633188647919b475f7a22401ebb60e21b656944c6375e40ed736b7b0b22f559f09d80d848ec37288a2f0af992554b11da42d04601e6f850afacd9b7cec6eecc1e76c958f891248c6a40a6de6f9cd6824145890163e5d42ae0355dbdad1ecf583d5112cedeThe final merge-commit check snapshot contains 63 checks: 61 successful and two skipped, with no active or failed result. Later main
4903e6794f29ce7f2c39bfd054bf37c5bf654f79contains this merge; its update preflight call and authorization helper were inspected and remain intact after #1115. The six-platform evidence above identifies this PR's actual merge commit explicitly.No release or publication is included; VS Code and deferred #1114 probes are unchanged.