Skip to content

Remove the extension API version, its snapshot, its push check and its release-notes section (ADR-082 §8) #3651

Closed

Description

@malibio

Overview

ADR-082 §8, as amended on 2026-10-05, says core's extension points carry no version and core makes no compatibility promise about them: core and the app built on it come from one team and one pinned core revision. The code still carries the version and everything that enforces it. This issue removes that, and keeps every extension point and every fixture test that uses one.

Problem Statement

  • EXTENSION_API_VERSION exists twice (TypeScript and Rust), with a test that the two agree, and every extension must declare a matching apiVersion.
  • A recorded snapshot of the host API's export lists and type declarations fails the frontend tier when it changes without a bump. It covers core's own everyday types (Node, DatabaseInfo, PluginDefinition, NodeComponentProps), so ordinary core changes trip it.
  • A push check (scripts/check-extension-api-version.ts) fails a push when a watched fixture or the snapshot changed and the version did not.
  • bun run release writes an "Extension API" section into the release notes from the constant.
  • The version changed in 9 commits and the snapshot was re-recorded 8 times in five days.

Proposed Solution

Delete the version constants, apiVersion, the surface snapshot and its test and helper, the version-agreement test, the push check and its test and gate wiring, and the release-notes section. Keep the extension points, the host API module, the import boundary and the fixture tests.

Documentation

  • ADR-082 §8 - the decision: no version; a change reaches the consuming build through its core pin; the fixtures of §9 are tests, not a compatibility surface.
  • ADR-082 §3.1 - registration rules, without apiVersion.
  • ADR-082 §9 - the fixture tests that stay.
  • ADR-047 - the push check list, which loses one entry.
  • Updates, in the same change: extension-points.md (the Versioning section is rewritten to §8's rule; the version mentions elsewhere in the guide go); the testing guide's list of push checks; ADR-047 if it lists the check; this repo's CLAUDE.md (the Component Architecture paragraph on EXTENSION_API_VERSION, WATCHED_PATHS and the release-notes section, and the push-check list in the gate description).

Architecture Impact

Implements the 2026-10-05 amendment to ADR-082 §8, which withdrew the version. ADR-081's wording was amended with it. No further decision change.

Acceptance Criteria

  • EXTENSION_API_VERSION is gone from packages/desktop-app/src/lib/plugins/ui-extensions.ts, from the host API's exports (packages/desktop-app/src/lib/extension-api/index.ts) and from packages/desktop-app/app-lib/src/extensions/mod.rs.
  • NodespaceExtension has no apiVersion, and registration no longer checks or skips on it. An extension is still refused for a duplicate id.
  • Deleted: packages/desktop-app/src/tests/extension-api/extension-api-surface.json, extension-api-surface.test.ts, extension-api-surface.ts and extension-api-version-agreement.test.ts.
  • Deleted: scripts/check-extension-api-version.ts and its test; scripts/test-gate.ts no longer runs it.
  • scripts/release.ts writes no "Extension API" section; its test follows.
  • The header comment of extension-api/index.ts no longer describes a compatibility policy, bumps or a snapshot. It still says extension code imports core only through this module and that core modules never import it.
  • Every fixture test that uses an extension point still exists and passes, with its version pins removed: app-lib/src/extensions/fixture_tests.rs, core/src/extensions/fixture_tests.rs, daemon/tests/it/extension_points_fixture.rs, the test extension under src/tests/fixtures/, ui-extensions.test.ts, extension-lifecycle.test.ts, and the build-plugin tests.
  • The explicit-exports rule for the host API (no export *) and the import-boundary test (extension-api-boundary.test.ts) stay.
  • No remaining mention of the version, the snapshot, UPDATE_EXTENSION_API_SURFACE or WATCHED_PATHS in code, comments or scripts (grep is empty outside git history).
  • CLAUDE.md and the docs listed above are updated.
  • bun run test:changed passes with every tier (this touches the gate itself, so it runs them all); code passes bun run quality:fix.

Technical Specifications

Reference Files

  • packages/desktop-app/src/lib/plugins/ui-extensions.ts: the constant, apiVersion, the registration check.
  • packages/desktop-app/src/lib/extension-api/index.ts: the re-export and the policy comment.
  • packages/desktop-app/app-lib/src/extensions/mod.rs, app-lib/src/lib.rs, app-lib/src/window_capability.rs, packages/daemon/src/services/extensions.rs: the Rust constant and comments that refer to bumps.
  • packages/desktop-app/src/tests/extension-api/: the snapshot, its test and helper, the agreement test; extension-api-facades.svelte.test.ts stays.
  • scripts/check-extension-api-version.ts, scripts/check-extension-api-version.test.ts, scripts/test-gate.ts, scripts/release.ts, scripts/release.test.ts.
  • Tests that set apiVersion on a fixture extension: ui-extensions.test.ts, extension-lifecycle.test.ts, labs-collaboration-entry.test.ts, settings-categories.test.ts, virtual-extensions-module.test.ts, nodespace-extensions-plugin.test.ts, src/tests/fixtures/sample-extension-entry.ts, src/tests/fixtures/test-extension/index.ts.

Implementation Details

  • No compatibility code: nothing accepts or ignores a leftover apiVersion; the field is removed from the type, so a stale one is a type error.
  • Open PRs that touch extension-point fixtures will conflict on the version constant; land this after them or rebase them, whichever is shorter.

Related Issues

Non-Goals

  • Removing or renaming any extension point, the host API module or its package alias.
  • Changing which slots or hooks exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions