Skip to content

Latest commit

 

History

History
95 lines (84 loc) · 5.96 KB

macos-extension-composition.md

File metadata and controls

95 lines (84 loc) · 5.96 KB

Preparatory macOS ARM64 extension composition

macOS ARM64 now uses the ordinary production extension management, backend and hosted-view owners. Settings can install a local archive through captured-byte trust, or use the existing explicit HTTPS/catalog acquisition paths. Startup, installation and enablement remain dormant; an explicit shared menu/palette action activates an enabled package. Disable/uninstall and normal Quit retain the existing owned retirement joins. Linux x64 now shares these owners with a separate composition qualification boundary. Other unsupported targets retain the explicit unavailable result; infrastructure failure must not block terminal startup.

This is a bounded prerequisite under #712, not a stable SDK, publication or platform-cutover claim. The prior macOS module-native, hosted-view and exact-DMG store/lease/bootstrap receipts retain their separate scopes. They do not qualify this newly admitted production lifecycle. The original pre-cutover source-launched fixture passed on macOS 27.0.1 ARM64 with Electron 43.8.1, within its stated input and capture limits. The current minimal fixture's optional-Snippets assertion is a later change that was not rerun. The separate full Snippets campaign qualified its own nine scenarios, not that changed minimal-fixture assertion.

Preserved boundaries

  • The delivered composition prerequisite retained built-in Snippets and its starter kit. The subsequent qualified Snippets source transition selects the optional implementation through the same owners. Its native campaign passed; macOS host distribution remains a separate gate. The duplicate package action remains withheld and existing shortcut configuration is preserved.
  • The subsequent macOS ARM64 Files move prerequisite adds the native renameatx_np(RENAME_EXCL) operation through the existing bounded service. Host source now also implements optional Foundation trash in the same owned Node-child addon, with shared bounded asynchronous admission and conservative unknown outcomes. Bounded exact-package trash semantics passed on local and distinct APFS volumes, including final symlinks and recoverable identity; this is not full macOS Files lifecycle qualification. Files archive publication/catalog admission remains separate. See the primitive contract and evidence boundary.
  • Published archives/manifests and catalog target restrictions are unchanged. Broader host admission does not make a catalog release macOS-compatible.
  • Surviving-browser main-death package-file-read exclusion remains unqualified. Normal Quit is not a substitute for that experiment. Historical #746 diagnostics remain open; do not suppress their output or relax assertions.

The separate Files0.5.0 exact-DMG fixture passed its eleven bounded consumer checks against the compatible retained dev.21 host: local archive trust, real operations/recoverable trash, retained companion state, management and an active Files backend at normal Quit. Its exact identities and qualification limits remain separate from this minimal fixture and the qualified Snippets campaign. Public host/archive/catalog distribution is not established by that checkpoint.

Installed-package production fixture

On a logged-in, idle macOS ARM64 desktop (a VM is safest; see side effects on your desktop), Then build ordinary production output and run only the opt-in integration test:

npm run build
OMXTERM_EXTENSION_COMPOSITION=1 \
  OMXTERM_EXTENSION_COMPOSITION_EVIDENCE=/absolute/external/evidence \
  npm test -- test/integration/extension-production-composition.test.ts

The test uses the existing native fixture supervisor and existing PTY/backend/ consent observer. It imports dist/main/index.js unchanged, with ordinary production wiring, rather than rebuilding or substituting application owners. It installs a real minimal .omxext archive generated by test/fixtures/extension-composition-package.ts. The package contains a cooperative backend echo and a hosted editable page, no Files or Snippets implementation. The evidence directory retains its exact archive and supervisor receipt/captures.

Current assertions cover absent optional Snippets management without activation, exact-digest trust and dormant installation, explicit menu activation, actual installed backend response in a native hosted page, child editing isolation, joined disable/uninstall, the same usable Surface/PTY, and a second active backend joined by ordinary application Quit. Both backend exit/stream closure and original PTY exit are required before the successful receipt. No direct package-store installation, alternate platform switch, mocked backend or test-only production API is used.

Scope is source-launched production composition, synthetic Chromium input and controlled native consent, not physical keyboard/dialog interaction, exact-DMG GUI execution, notarization, macOS 12 execution or public-HTTPS consumption. The fixture does not change macOS Chromium sandboxing or select Linux graphics flags. The historical pre-cutover run (with built-in Snippets availability instead of optional management) completed all five lifecycle assertions with two exact-digest consents, normal exit, empty captured stderr and joined cleanup. Separate WebContents captures are not OS-compositor proof. Full formatting, typecheck and lint passed, with 4,196 headless passes and 66 skips. One complete independent review found a fixture setup-cleanup issue, corrected separately; production inputs and scenario assertions were unchanged in that delivery. Those historical results do not qualify the later Snippets transition or the changed minimal-fixture assertion; the transition has its own separate qualification. A skipped opt-in test is not a native pass, and these results do not clear historical diagnostics.