docs/plans/extension-management-v2.md
ExtensionStore, policy migration, global generation, artifact journals,
rollback/forward recovery, and V1 projection. Route all ExtensionManager
mutations through it and make install activation atomic.extension_management_v2 is advertised only when all three layers are wired.
state.json is the only commit point and generation never decreases.extension_conflict; unrelated
artifact and activation commits do not invalidate prepared work.Targeted unit tests cover store migration, policy precedence, concurrent store
instances, journal recovery, CLI scope behavior, daemon routing/trust/fanout,
two-slot preparation, preparation-ready commit ordering, queued abort,
same-artifact conflicts, watcher polling, SDK paths, and operation polling.
Repository completion gates are package builds, typecheck, lint, integration
daemon route tests, and the E2E plan in
.qwen/e2e-tests/extension-management-v2.md.
Before completion, audit architecture boundaries, crash/error paths, compatibility, concurrency, redaction, tests, maintainability, and simpler alternatives repeatedly until no new actionable issue is found.