Skip to content

feat(extensions): configure installed extensions by platform name - #108

Closed
korolevpavel wants to merge 2 commits into
IngvarConsulting:masterfrom
korolevpavel:feat/issue-43-installed-extension-v09
Closed

korolevpavel wants to merge 2 commits into
IngvarConsulting:masterfrom
korolevpavel:feat/issue-43-installed-extension-v09

Conversation

@korolevpavel

@korolevpavel korolevpavel commented Sep 13, 2026 •

Copy link
Copy Markdown

extensions --name selects configured source-sets, so it cannot disable the safety flags of a separately loaded CFE such as YAXUNIT. Add repeatable --installed-name to address the installed extension by its exact platform name through the existing IBCMD operation.

Closes #43.

v8-runner extensions --installed-name YAXUNIT --dry-run
v8-runner extensions --name TESTS --installed-name YAXUNIT
  • Either selector limits execution to explicit targets. Mixed selection runs configured targets first, then installed names, deduplicating exact matches. Unknown --name remains a validation error; apply disables safe mode and unsafe-action protection and retains existing failure receipts.
  • Parent --dry-run reports planned steps, the infobase/account and located utility without starting the platform or creating workPath. Full project validation is shared with apply; preview cannot establish whether the extension is installed.
  • Parent options conflict with composition subcommands before config loading; global options retain their supported positions. Preview/cleanup conflicts retain the actual command identity and typed invalid_argument / validation errors through the shared CLI renderer.
  • Preview checks workspace structure for both Designer and EDT sources without creating directories, rejecting non-directory targets and invalid ancestors. Path validation resolves missing workspace components, .. and symlink aliases through the existing canonical-path helper. Apply retains its original validation order, and dangling links, file traversal and access errors fail closed.
  • Update ADR-0027, architecture invariants, CLI documentation and the external-use skill. The interface remains CLI-only.

Validation:

  • Full cargo test --locked --offline: 1154 passed, zero failed or ignored (829 unit + 325 integration); local sockets enabled for test MCP servers.
  • 15 new CLI regressions cover direct/mixed selection, exact argv/order, invalid selectors, platform failures, preview effects, global options, workspace locks and path aliases. Additional unit guards cover target resolution and canonical paths.
  • The final Designer preview matrix also checks existing/missing directories, parent components, a file reached after .., directory aliases, dangling links and symlink loops.
  • Formatting and diff checks passed. Independent reviewer and fresh Rust expert passes applied rust-expert-best-practices-code-review; all findings were fixed and re-reviewed. The unavailable codebase-design skill was replaced by the explicit repository checklist.
  • Live 1C validation passed on macOS with platform 8.3.27.2214, using a binary built from 09db98c and an isolated copy of a CPM 3.3.3 demo file infobase. The original database's final SHA-256 and file metadata were unchanged.
  • YaXUnit 25.12 was installed as a separate CFE with no extension source-set. Both safety flags were enabled on YAXUNIT and a control extension before the test.
  • extensions --installed-name YAXUNIT --dry-run returned provider_dispatched=false, created no work directory, and preserved the copied database's SHA-256 and extension inventory.
  • Apply changed exactly YAXUNIT's safe_mode and unsafe_action_protection from true to false. Every control-extension field, the remaining YAXUNIT fields, and extension composition were preserved.
  • An absent installed name previewed successfully as specified; apply returned CLI exit 4 / IBCMD exit 1 with platform_failure and the requested target preserved. Inventory remained unchanged.
  • An independent reviewer compared before/after evidence and confirmed the final flags with a direct IBCMD inventory read, bypassing the CLI parser; no findings. Seven additional independent CLI checks passed, including a dispatch sentinel and preview error envelopes.
  • Windows, execution of YaXUnit tests, and general CPM functional behavior were not covered by this live run. Existing compiler warnings remain.

Merge is pending an authorized maintainer; the submitting account does not have write access to the upstream repository.

- 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
- 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
@zeegin

zeegin commented Sep 20, 2026

Copy link
Copy Markdown
Member

Закрываю как поглощённый #133.

Это не два решения одной задачи, а одно решение дважды. Коммит 629bcc6 в #133 несёт дословный трейлер (cherry picked from commit 804d3abe…), называющий feat-коммит отсюда; src/support/path.rs совпадает побайтово, а tests/cli_extensions.rs — тот же файл целиком. Авторство сохранено в трейлерах там.

#133 сверх этого содержит перенос на текущий master, которого здесь не хватает:

  • квитанция провайдера в превью — ExtensionsResult на master требует поле provider (DEC.2026-09-14.RECEIPT-EXPLAINS-PROVIDER-CHOICE), без него не собирается;
  • метка исполнителя называет ibcmd или агента, а не путь к двоичному файлу — configure_extensions теперь ведёт один SafetySetter над обоими;
  • нормативные правила перенесены в действующий реестр spec/arch/. Эта ветка ветвится от базы, где ещё жили нумерованные ADR, и при слиянии git по переименованию положил бы её правила внутрь замороженного spec/archive/adr-v1/ — без конфликта и незаметно для поиска.

Функциональность никуда не девается: она выйдет через #133. Спасибо, задача #43 закрывается вашим кодом.

@zeegin zeegin closed this Sep 20, 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