Skip to content

fix(update): improve existing installation reliability and guidance - #1118

Merged
777genius merged 9 commits into
mainfrom
fix/update-existing-installations-20261126
Nov 26, 2026
Merged

777genius merged 9 commits into
mainfrom
fix/update-existing-installations-20261126

Conversation

@777genius

@777genius 777genius commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Problem

Repeated installation and update need to explain the actual outcome. Public-command regressions reproduced three gaps: update --all counted a completed unchanged apply as updated, a changed-source repeat-add refusal omitted its effective project/target context, and ordinary update exposed the raw operation error while losing a simultaneous output failure.

Changes

  • Count an applied batch entry as skipped only when at least one selected target exists and every selected target explicitly reports NoChange && !Mutated.
  • Give the local repeat-add refusal contextual human advice from the resolved scope, project root and selected target. Preserve its typed cause and retained-revision handling.
  • Reuse existing update attention/diagnostic reporting; keep operation and output errors discoverable, including the existing preflight rendering boundary.
  • Register six public command integration cases in the existing package-manager catalog, including a real OS-lock contention/refusal/retry control.

The implementation uses four existing production files. It adds no installer, lock protocol, state engine, flags, automatic repair or retry mechanism.

Plan and review

Reviewed plan and evidence boundaries

Plan v1 was published before two independent review/revision rounds. The RED checkpoint 50dfb3eb preceded the fixes. Independent read-only production review found no blocking regression.

Validation

  • The executed RED checkpoint demonstrated the three user-visible gaps. Local host/compiler limits prevented full local qualification; normal source-bound CI supplied the final result.
  • Core fast checks and Required passed on final head 56e5468e, including core/full tests, all four lint modules, platform contracts and SDK qualification. The corrected existing regressions retain typed observation/finalization causes, durable committed receipts and actual recovery/rerun assertions.
  • Full PR package-manager E2E: 4/4 platforms accepted. Each artifact has all 16 phases, 118 required run/pass records, all six new cases, no failed/skipped required tests and 32 verified stream hashes. All bind clean unchanged PR test merge 4fa90bb545cdaf59442937e945adf49b66ec9a05, tree 015b02156fa746424a87f8aaefd0c66d2c05f4b6.
  • Native Client Runtime: 11/11 cells accepted, with 70/70 required top-level native test passes, no skips/failures, verified archive digests, 2,784 rehashed evidence files and 526 verified OpenCode captures. This workflow explicitly tests PR head 56e5468e52430bdd291edabc065b6730f63b5919, tree 7734b60a006da5669979707540cbf01a21acc036; it does not establish an actual-merge native run.
  • The additional Windsurf 30-case audit on the PR test merge failed on eight independent harness/evidence assertions. Read-only source and execution-path review found its workflow/assertion files unchanged from the pre-PR base; its JSON add/list/repeat/remove paths do not enter the four modified production branches. Its 17 verified lifecycles and five expected refusals do not establish full Windsurf qualification. This result is not relabeled as a pass.

Actual merge qualification — complete

Merged as 0f4fe8c33e50c0ac5b953345b4fed47722144bb0, tree 5748408a3c2717847aa3305de5b1bdaa187215aa.

  • Full package-manager E2E: 6/6 platform cells passed and their artifacts were accepted — Linux x64/ARM64, Windows x64/ARM64 and macOS Intel/ARM64. Every report binds this exact merge commit/tree with clean unchanged source, all 16 phases, 118 required test run/pass records and all six new regression cases. No required test failed or skipped; all 192 stdout/stderr stream hashes were independently checked.
  • Required: 9/9 execution jobs passed — full tests, staged hermetic tests, all four lint modules and SDK qualification on Linux, macOS and Windows. Both this workflow and the six-platform PM workflow concluded success on the actual merge.
  • The push-inapplicable classifier and draft preflight are excluded from those execution counts. Separate Hermes Project/Antigravity cancellations and the still-queued Kiro aggregate at the final snapshot are outside this bounded acceptance and are not represented as passes.
  • The latest inspected main f60cbdf8 contains this merge. The four modified production files and this PR's regressions remain intact; later catalog additions preserve all six new evolution cases. Qualification above remains bound to the exact merged source identified here.

The controlled adapter tests establish command integration. PM binary installation separately proves the real cold production scanner and owned installation lifecycle, with native_runtime_qualified: false. The native PR artifacts establish their pinned-client fixture contracts; vendor authentication, OAuth and real-model behavior remain outside those contracts. No release is requested.

Summary by CodeRabbit

  • New Features
    • Re-adding an existing installation that needs an update now provides guidance specific to the target and project or user scope.
  • Bug Fixes
    • update --all now counts installations as skipped when no changes were made, while still reporting updates to other installations.
    • Update results more clearly identify items needing attention, preserve successful results when peers fail, and retain useful error details when output also fails.
    • When update preparation fails, the CLI now reports the failure without losing related output errors.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CLI now reports unchanged, unmutated update targets as skipped, adds contextual guidance to qualifying local-add refusals, and preserves operation and output errors during updates. The changes add regression tests and document the work’s scope and qualification limits.

Changes: Installation update reliability

Layer / File(s) Summary
Update-all outcomes and diagnostics
cli/internal/agentpluginscli/update_all.go, cli/internal/agentpluginscli/update_all_diagnostics.go, cli/internal/agentpluginscli/update_all_outcomes_test.go, docs/plans/2026-11-26-update-existing-installations-reliability.md
update --all counts a target as skipped only when selected targets report no change and no mutation. Apply causes also inform per-agent diagnostic classification. The test checks unchanged and changed peers, preserved installation projections, and human and JSON counts. The plan records the related scope and evidence.
Add guidance and update errors
cli/internal/agentpluginscli/installer_facade.go, cli/internal/agentpluginscli/update_multi.go, cli/internal/agentpluginscli/cli_test.go, cli/internal/agentpluginscli/update_existing_presentation_test.go, cli/internal/agentpluginscli/package_manager_evolution_test.go, cli/internal/agentpluginscli/testdata/package_manager_e2e_cases.json, docs/plans/2026-11-26-update-existing-installations-reliability.md
Human-format local-add refusals for qualifying update-required errors include the target and installation scope. Grouped updates preserve apply and rendering errors. Tests cover repeat-add guidance, attention output, mixed results, and error causes. The evolution inventory adds six cases.
Contention and regression boundaries
cli/internal/agentpluginscli/update_contention_test.go, cli/internal/agentpluginscli/claude_interrupted_remove_test.go, docs/plans/2026-11-26-update-existing-installations-reliability.md
The contention test checks refusal while another process holds the mutation lock, unchanged state during refusal, and a successful retry after release. The interruption test checks the committed failure phase and persisted receipt. The plan records test boundaries and pending qualification steps.

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

Change: Bug fix

Merge Risk: Minimal · up to 56e54

This change makes update summaries count unchanged installs as skipped, adds project and target context to repeat-add refusals, and keeps both operation and output errors during updates. No merge-blocking risk was found, and regression tests cover the new behavior.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(update): improve existing installation reliability and guidance" matches the main change. The PR fixes three gaps in repeated installation and update: update --all counting an unchanged…
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.
Description check Passed The description follows the repository's template in substance. It gives a Problem statement and a Changes list, which cover what changed and why. It has a Validation section that reports test results…
Full details: Title check

Explanation

The title "fix(update): improve existing installation reliability and guidance" matches the main change. The PR fixes three gaps in repeated installation and update: update --all counting an unchanged apply as updated, missing project and target context in the repeat-add refusal, and raw operation errors hiding output failures. The title is a short, single conventional-commit line. It is broad, but it names the area and intent without vague terms.

Full details: Description check

Explanation

The description follows the repository's template in substance. It gives a Problem statement and a Changes list, which cover what changed and why. It has a Validation section that reports test results and gives the remaining qualification gaps. It does not use the template's exact headings (Summary, Verification, Release Impact), and it does not mark the template checkboxes. Release Impact is only partly covered: it says no release is requested, and it says no installer, lock protocol, state engine, flag, or automatic repair change was added. The description does not state whether the docs were updated, although the plan file is in the PR. The author also reports that final-source CI and full PM qualification are still pending. This is clear and specific, so it is not vague.

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 4b7f56e and 56e5468.

Files selected for processing: 1

  • cli/internal/agentpluginscli/installer_facade.go
Files skipped from review as they are similar to previous changes: 1

  • cli/internal/agentpluginscli/installer_facade.go

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

Record public command RED cases for actual unchanged batch outcomes,
repeat-add context, ordinary failure attention and joined output errors.
Include a passing real process-lock contention and retry control.
Reuse existing attention reporting for ordinary update, preserve operation
and output failures, and keep repeat-add advice in its effective context.
Register the six public command regressions in the existing PM catalog.
@777genius
777genius marked this pull request as ready for review November 26, 2026 14:17
@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.

Preserve exact finalization and recovery assertions behind human-friendly
errors, and additionally verify the durable state-committed receipt.
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.32%. Comparing base (4903e67) to head (56e5468).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...internal/agentpluginscli/update_all_diagnostics.go 73.33% 3 Missing and 1 partial ⚠️
cli/internal/agentpluginscli/update_all.go 86.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1118      +/-   ##
==========================================
+ Coverage   64.29%   64.32%   +0.03%     
==========================================
  Files        2338     2341       +3     
  Lines      142273   142595     +322     
==========================================
+ Hits        91468    91724     +256     
- Misses      37825    37861      +36     
- Partials    12980    13010      +30     

☔ 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.

@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 bounded review at head 56e5468: GO for ordinary merge. Independent source review covered the four production files and found no current-main overlap since merge-base. Required/Core, all lint/vet/cross-build/project contracts, four pre-merge PM hosts, selected native runtime cells, Dependency Review, CodeQL, Govulncheck and Polyglot Smoke passed. Three previously pending PM artifacts were independently checked against their original ZIP digests and required run/pass records.

The remaining Windsurf audit failure is a demonstrated baseline issue: all 30 statuses/error strings in job140072330407 match baseline job140066175528, including the Sanity Skill-map error and npm cache custody refusals. Those failures remain tracked in #1124 and are not counted as passing. The published Marketing audit installs fixed public0.1.116 and does not execute this PR's four changed files.

The documented actual six-platform post-merge PM qualification remains required. This review does not claim release readiness or waive any enforced GitHub check.

@777genius
777genius merged commit 0f4fe8c into main Nov 26, 2026
118 of 119 checks passed
@777genius
777genius deleted the fix/update-existing-installations-20261126 branch November 26, 2026 21:45

Copy link
Copy Markdown
Owner Author

Postmerge portable qualification is complete on the original exact merge commit 0f4fe8c (tree 5748408a3c2717847aa3305de5b1bdaa187215aa): run 45900305074 passed all six native OS/architecture cells — Linux AMD64/ARM64, Windows AMD64/ARM64 and macOS Intel/ARM64. Every artifact was independently checked for its exact clean unchanged source and catalog hashes, 16 passing phases, 32 matching stdout/stderr hashes, and all 118 required Go test entries actually run and passed with no Go skips. The final macOS ARM artifact is 15161577133, SHA-256 6c0670b9fbc7c0f9dedfc1c84e177284afbaad83f8469171845bf45f1764759f. Expected malformed-package/missing-lock refusals retain their intended nonzero exit codes.

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