Skip to content

feat(extensions): configure an installed extension by its platform name (#43) - #133

Merged
zeegin merged 5 commits into
masterfrom
feat/extensions-installed-name
Sep 20, 2026
Merged

zeegin merged 5 commits into
masterfrom
feat/extensions-installed-name

Conversation

@zeegin

@zeegin zeegin commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Closes #43.

This is @korolevpavel's work from #108, carried onto current master. Both of their commits keep their authorship; what I added is the third commit, which does the porting. #108 can be closed in favour of this one once this lands.

What the command gains

extensions --installed-name <platform name> disables safe mode and unsafe action protection for an extension the infobase knows by name, with no matching source-set required — the case of a .cfe installed separately (a test framework, a vendor extension). --name keeps meaning a configured source-set and an unknown one is refused rather than looked up in the infobase; all configured source-sets are taken only when neither selector is given. The parent command also gains --dry-run.

What the porting took

  • The normative part had to move. The contributor wrote it into spec/architecture/invariants.md and spec/decisions/0027-…, and that layer went into spec/archive/ on 14.09 and is frozen. The same meaning is now an atomic record: DEC.2026-09-16.A-PROPERTY-UPDATE-ADDRESSES-AN-INSTALLED-EXTENSION-BY-NAME establishing INV.CLI.EXTENSION-TARGETS-ARE-SELECTED-EXPLICITLY. No preview rule was needed: --dry-run here obeys the ones the registry has held since 11.09.
  • Three code conflicts, all from work that landed after the branch was written: the capabilities table is the provider matrix now, validate gained provider checks inside the contributor's validate_read_only split, and configure_extensions runs one SafetySetter over ibcmd or the agent — the preview now sits before the executor is opened and names either.
  • A contributor test used BuilderBackend, removed with the builder key; it moved to the provider map.
  • ARCHITECTURE.md stopped naming ADR-0027; the guard against returning numbers exists for exactly this.

Verification

  • tests/cli_extensions.rs: 28 tests, 15 of them the contributor's — mixed selectors preserve exact names and dispatch order, an invalid installed name never dispatches or cleans, a platform failure keeps target and exit code in JSON, the parent preview is read-only and redacts credentials.
  • Live on 8.3.27.2074 through the agent (the executor the contributor could not have covered — it did not exist then): --installed-name Зонд2 --dry-run names target, infobase and executor and touches nothing; the same without --dry-run disables both flags; --installed-name НетТакого comes back as a typed ExtensionNotFound from the platform with the target and its own error type, not a verdict read from prose; --name НетТакого is refused as an unknown source-set without reaching the infobase.
  • Full suite green, registry --check, cargo fmt.

korolevpavel and others added 3 commits September 16, 2026 08:24
- add explicit installed-name selection and side-effect-free security previews
- preserve source-set validation, global CLI flags and platform failure receipts
- share full read-only config checks and canonical resolution of missing parent paths
- document the contract and guard selection, preview and symlink regressions

(cherry picked from commit 804d3ab)
- keep command identity and typed errors when preview conflicts with cleanup
- reject invalid workspace paths in Designer previews without filesystem writes
- guard canonical path candidates and shared preview errors with CLI regressions

(cherry picked from commit 09db98c)
Перенос нормативной части вклада: у автора она легла в снятый слой
(spec/architecture/invariants.md и spec/decisions/0027), а он с 14.09 в архиве и
заморожен. Смысл тот же, запись атомарная:
DEC.2026-09-16.A-PROPERTY-UPDATE-ADDRESSES-AN-INSTALLED-EXTENSION-BY-NAME с
правилом INV.CLI.EXTENSION-TARGETS-ARE-SELECTED-EXPLICITLY.

Правила превью заводить не пришлось: у команды --dry-run подчиняется общим, они в
реестре с 11.09 — ничего не запускает, не берёт замок, возвращается после поиска
утилиты.

Заодно ARCHITECTURE.md перестаёт ссылаться на номер ADR-0027: страж против
возврата номеров на это и рассчитан. Тест автора, опиравшийся на снятый
BuilderBackend, переведён на матрицу провайдеров.
@zeegin
zeegin merged commit 11c85cf into master Sep 20, 2026
5 checks passed
@zeegin
zeegin deleted the feat/extensions-installed-name branch September 20, 2026 12:54
@zeegin zeegin added this to the v0.12 milestone Nov 10, 2026
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.

feat(extensions): configure an installed extension absent from source-sets

2 participants