fix(invariants): finish current-master ownership migration

This commit is contained in:
Tianyi Cui
2026-07-20 20:04:40 +08:00
parent f78b17a352
commit b8ad62eb35
10 changed files with 16 additions and 17 deletions

View File

@@ -66,6 +66,8 @@ function applyCompactionTransition(
}
/** Install compaction start/summary/end checks. */
// Event owners keep precommit staging local so their vocabularies never move into a central helper.
/* jscpd:ignore-start */
const install: InvariantInstaller = Object.assign((ctx: Context, fail: InvariantFailure) => {
const traces = new WeakMap<Session, CompactionTrace>()
const staged = new WeakMap<SessionEvent, { session: Session; transition: CompactionTransition }>()
@@ -98,6 +100,7 @@ const install: InvariantInstaller = Object.assign((ctx: Context, fail: Invariant
if (transition !== undefined) staged.set(event, { session, transition })
}, { global: true })
}, { inject: ['sessions'] })
/* jscpd:ignore-end */
/**
* Register the compact invariant companion.