Skip to content

installer: reflect model refusals in the support badge - #256

Draft
johnturek wants to merge 1 commit into
omacom:mainfrom
johnturek:fix/catalog-refusal-support-badge
Draft

johnturek wants to merge 1 commit into
omacom:mainfrom
johnturek:fix/catalog-refusal-support-badge

Conversation

@johnturek

Copy link
Copy Markdown

What: Show Not supported when planning rejects a Mac model, rather than displaying Supported above the model-refusal message. Observed on Mac16,13 / apple,j715 with installer 2.3.17.

Tested: Mac16,13 / J715 at 21a7d18: strict Swift formatting passes; three supplemental production-library harness scenarios pass in debug and release. Full XCTest execution is blocked locally by missing XCTest in Command Line Tools.

Risk: Two-way door · presentation only on all Macs. No changes to installation admission, signed catalogs, engine pins, helpers, partitions, or boot policy.

Not yet: Full debug/release XCTest suites, packaged-app checks, and visual review. This remains a draft pending those checks.

Details

The engine can recognize a Mac before the signed catalog refuses its model during plan preparation. That refusal enters the failed phase, but modelSupported currently defaults to true there.

Return false for failed phases explicitly classified as blocked models. Leave non-model failures and all installation/trust gates unchanged.

Add a regression covering a missing catalog model, a planner refusal, and a network failure. Reinspection must clear the refusal.

Evidence

Base: e0aa53fdf4fcf8eb5cbd68bbeb3a255a37bc5028.
Candidate: 21a7d18.

  • swift-format lint --strict --recursive Package.swift Sources Tests: pass.
  • A supplemental standalone executable importing the actual production libraries reproduced both false Supported results before the change.
  • The same harness passes all three scenarios in debug and release after the change, including the installation gate and reinspection checks.
  • git diff --check: pass.

The standard XCTest runner could not build on this host because only Command Line Tools is installed and XCTest is unavailable. The standalone harness is supplemental evidence, not a substitute for the full suites.

The installed app was not replaced. No physical installation or boot test was performed.

A signed catalog can reject an engine-recognized Mac during plan preparation. Treat blocked-model failures as unsupported in the header instead of showing Supported above the model refusal.

Cover catalog and planner refusals, a non-model network failure, and reinspection without changing installation admission gates.

Signed-off-by: JT Turek <jt@dweeb.net>

This branch has not been deployed

No deployments
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