Repository navigation
Description
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_VERSIONexists twice (TypeScript and Rust), with a test that the two agree, and every extension must declare a matchingapiVersion.- 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 releasewrites 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 onEXTENSION_API_VERSION,WATCHED_PATHSand 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_VERSIONis gone frompackages/desktop-app/src/lib/plugins/ui-extensions.ts, from the host API's exports (packages/desktop-app/src/lib/extension-api/index.ts) and frompackages/desktop-app/app-lib/src/extensions/mod.rs. -
NodespaceExtensionhas noapiVersion, and registration no longer checks or skips on it. An extension is still refused for a duplicateid. - Deleted:
packages/desktop-app/src/tests/extension-api/extension-api-surface.json,extension-api-surface.test.ts,extension-api-surface.tsandextension-api-version-agreement.test.ts. - Deleted:
scripts/check-extension-api-version.tsand its test;scripts/test-gate.tsno longer runs it. -
scripts/release.tswrites no "Extension API" section; its test follows. - The header comment of
extension-api/index.tsno 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 undersrc/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_SURFACEorWATCHED_PATHSin code, comments or scripts (grepis empty outside git history). -
CLAUDE.mdand the docs listed above are updated. -
bun run test:changedpasses with every tier (this touches the gate itself, so it runs them all); code passesbun 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.tsstays.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
apiVersionon 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
- Pro rebuild (after core release): finish core's extension points for typed subtypes, edge fields and Pro UI (ADR-082) #3414 (its "Versioning" criteria no longer apply)
Non-Goals
- Removing or renaming any extension point, the host API module or its package alias.
- Changing which slots or hooks exist.
Activity