Skip to content

Commit d9db522

Browse files
committed
chore(gates): delete the R6, R9 and R10 pins the merge-base now supplies
TYPE_INVERSION_BASELINE, LARGEST_TYPE_CYCLE_ZONE_CEILINGS, TYPE_CYCLE_BASELINE and DAEMON_MODULARITY_BASELINE.sessionState were the hand-edited references these three ratchets compared against. The merge-base measurement replaces them, so there is no number left to leave above the tree and no entry to raise. externalDaemonTypesImporters stays: it names files, not a count.
1 parent 07fb878 commit d9db522

2 files changed

Lines changed: 0 additions & 27 deletions

File tree

‎scripts/layering/check.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,6 @@ function checkBackEdges(edges: readonly ResolvedImportEdge[]): LayeringViolation
232232
});
233233
}
234234

235-
// The R6 pin the merge-base measurement replaces; deleted in this change's enforcement commit.
236-
export const TYPE_INVERSION_BASELINE: Readonly<Record<string, number>> = {
237-
'commands -> client': 3,
238-
'commands -> daemon-server': 1,
239-
'mcp -> client': 1,
240-
};
241-
242235
function checkSessionStateOwnership(sources: ReadonlyMap<string, string>): LayeringViolation[] {
243236
const types = sources.get('src/daemon/types.ts');
244237
if (!types) {

‎scripts/layering/daemon-modularity.ts‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,16 @@ import {
1111
import { targetDagZone, type LayeringViolation, type ResolvedImportEdge } from './model.ts';
1212
import type { LayeringRatchets } from './ratchet-reference.ts';
1313

14-
const LARGEST_TYPE_CYCLE_ZONE_CEILINGS: Readonly<Record<string, number>> = {
15-
// co-defined-contract pair (`capabilities.ts` ↔ `runtime.ts` and the four files they
16-
// pull in). The standard shrink is a third module holding the shared type.
17-
'provider-webdriver': 6,
18-
};
19-
2014
// R7 ownership pressure and the largest type cycle (whole and per zone) are ratcheted against the
2115
// merge-base with origin/main (`ratchet-reference.ts`); the importer membership below stays a
2216
// recorded list, because it names files rather than counting them.
2317
export const DAEMON_MODULARITY_BASELINE = {
24-
sessionState: {
25-
// R60 moved `audioProbe` to store-owned. R64 does the same for the neutral `perfCapture`
26-
// and `lastPerfProfile` records after retiring the two platform-specific perf fields.
27-
writerOwnedFields: 19,
28-
ownerFileClaims: 22,
29-
},
30-
largestTypeCycle: {
31-
zoneMembers: LARGEST_TYPE_CYCLE_ZONE_CEILINGS,
32-
},
3318
externalDaemonTypesImporters: [
3419
'src/client/client-normalizers.ts',
3520
'src/remote/daemon-artifacts.ts',
3621
],
3722
} as const;
3823

39-
export const TYPE_CYCLE_BASELINE = Object.values(LARGEST_TYPE_CYCLE_ZONE_CEILINGS).reduce(
40-
(sum, count) => sum + count,
41-
0,
42-
);
43-
4424
const ENGINE_FILE_PREFIXES = [
4525
'packages/ad-replay/src/',
4626
'packages/maestro/src/',

0 commit comments

Comments
 (0)