Skip to content

fix(core): a removal of a recorded version that is no longer installed says none is installed - #267

Merged
V3RON merged 3 commits into
mainfrom
bug/263
Oct 2, 2026
Merged

V3RON merged 3 commits into
mainfrom
bug/263

Conversation

@V3RON

@V3RON V3RON commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Closes #263

component remove of a version whose record outlived the component said "The ios 18.5 installed now is not the one Simlock installed", although no 18.5 was installed. The record survives a removal that failed after the driver deleted the component, which ADR 0010 §5 allows.

ComponentInstaller#removable now tells the two refusals apart when no listed component has the record's receipt:

  • no listed component has that version: "No ios 18.5 is installed now, so there is nothing to remove";
  • one does, with another receipt: the old "not the one Simlock installed" text.

Same COMPONENT_NOT_OWNED code. The receipt check runs first, so a component whose receipt matches is still removed even when the listing spells its version differently. The stale record is kept, as the triage report recommends. docs/CLI.md, docs/HTTP-API.md and docs/CLIENT.md describe the code as "did not install it, or it changed on disk since", which stays true; no doc change.

Checklist

  • Regression test (the triage test, now passing): src/core/component-installer.test.ts "refuses a record whose version is no longer installed saying none is installed, and a record whose version was installed again saying that one is not Simlock's, in a removal and a dry run alike".
  • Added "removes a component whose receipt matches the record even when the listing names its version differently"; it fails if the version check runs before the receipt check.
  • pnpm check passes: lint, unit, and the fake-driver e2e lane.

Review

Spec review: 0 findings, 0 fixed. Code review: 2 findings, 1 fixed.

Rejected:

  • When the record says 26.5.0, its receipt matches nothing, and 26.5 is installed with another receipt, the refusal says none is installed instead of "not Simlock's" — the agreed fix compares versions as exact strings, as everything else in the core does, and the triage report names this risk. Both texts are the same refusal with the same code, and nothing is removed either way.

Written by an agent.

@V3RON
V3RON merged commit 7127abf into main Oct 2, 2026
14 checks passed
@V3RON
V3RON deleted the bug/263 branch November 6, 2026 07:09
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.

component remove says another version is "installed now" when Simlock's record matches nothing and none is installed

1 participant