Skip to content

Commit 20066f1

Browse files
committed
chore(gates): name retired session paths for their invariant
ADR 0033: session retired-path lists include both former handler paths and deleted barrels. Rename those lists to RETIRED_PATHS and update consumers without changing enforcement or moving owners out of internal/. Focused architecture/modularity/overlay tests: 58 passed. Restoring both tracked barrels in a disposable checkout: 2 failed, 7 passed; guards retained after the rename. Internal owner placement remains a follow-up.
1 parent f78ff82 commit 20066f1

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎scripts/layering/architecture-ownership.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
ARCHITECTURE_OWNERSHIP,
77
INTERACTION_RETIRED_HANDLER_PATHS,
88
matchesDeclaredRoot,
9-
SESSION_LIFECYCLE_RETIRED_HANDLER_PATHS,
10-
SESSION_OBSERVABILITY_RETIRED_HANDLER_PATHS,
9+
SESSION_LIFECYCLE_RETIRED_PATHS,
10+
SESSION_OBSERVABILITY_RETIRED_PATHS,
1111
} from './architecture-ownership.ts';
1212
import { readNamedExports } from './facade-exports.ts';
1313
import { resolveImportEdges } from './model.ts';
@@ -61,16 +61,16 @@ test('logical module façades pin their named command surfaces', () => {
6161
}
6262
});
6363

64-
test('session lifecycle retires its handler-owned helper paths', () => {
64+
test('session lifecycle retires its handler helpers and barrel paths', () => {
6565
const tracked = new Set(listTrackedTypeScriptFiles(repoRoot));
66-
for (const retiredPath of SESSION_LIFECYCLE_RETIRED_HANDLER_PATHS) {
66+
for (const retiredPath of SESSION_LIFECYCLE_RETIRED_PATHS) {
6767
assert.equal(tracked.has(retiredPath), false, `retired path was restored: ${retiredPath}`);
6868
}
6969
});
7070

71-
test('session observability retires its handler-owned paths', () => {
71+
test('session observability retires its handler and barrel paths', () => {
7272
const tracked = new Set(listTrackedTypeScriptFiles(repoRoot));
73-
for (const retiredPath of SESSION_OBSERVABILITY_RETIRED_HANDLER_PATHS) {
73+
for (const retiredPath of SESSION_OBSERVABILITY_RETIRED_PATHS) {
7474
assert.equal(tracked.has(retiredPath), false, `retired path was restored: ${retiredPath}`);
7575
}
7676
});

‎scripts/layering/architecture-ownership.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const DAEMON_SESSION_OBSERVABILITY_FACADES = [
4646
},
4747
] as const;
4848

49-
export const SESSION_LIFECYCLE_RETIRED_HANDLER_PATHS = [
49+
export const SESSION_LIFECYCLE_RETIRED_PATHS = [
5050
'packages/daemon/src/sessions/session-lifecycle/index.ts',
5151
'packages/daemon/src/handlers/session-device-utils.ts',
5252
'packages/daemon/src/handlers/session-runtime-admission.ts',
@@ -104,7 +104,7 @@ const DAEMON_INTERACTION_FACADE = {
104104
],
105105
} as const;
106106

107-
export const SESSION_OBSERVABILITY_RETIRED_HANDLER_PATHS = [
107+
export const SESSION_OBSERVABILITY_RETIRED_PATHS = [
108108
'packages/daemon/src/sessions/session-observability/index.ts',
109109
'packages/daemon/src/handlers/session-observability.ts',
110110
'packages/daemon/src/handlers/session-perf-runtime.ts',

‎scripts/layering/daemon-modularity.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {
44
INTERACTION_RETIRED_HANDLER_PATHS,
55
LOGICAL_MODULE_POLICIES,
66
matchesDeclaredRoot,
7-
SESSION_LIFECYCLE_RETIRED_HANDLER_PATHS,
8-
SESSION_OBSERVABILITY_RETIRED_HANDLER_PATHS,
7+
SESSION_LIFECYCLE_RETIRED_PATHS,
8+
SESSION_OBSERVABILITY_RETIRED_PATHS,
99
SNAPSHOT_EXECUTION_RETIRED_HANDLER_PATHS,
1010
type LogicalModulePolicy,
1111
} from './architecture-ownership.ts';
@@ -63,7 +63,7 @@ export function checkRetiredSessionLifecyclePaths(
6363
): LayeringViolation[] {
6464
return checkRetiredHandlerPaths(
6565
sourceFiles,
66-
SESSION_LIFECYCLE_RETIRED_HANDLER_PATHS,
66+
SESSION_LIFECYCLE_RETIRED_PATHS,
6767
/^packages\/daemon\/src\/handlers\/session-(?:open|close)(?:-[^/]+)?\.ts$/,
6868
'session lifecycle',
6969
);
@@ -74,7 +74,7 @@ export function checkRetiredSessionObservabilityPaths(
7474
): LayeringViolation[] {
7575
return checkRetiredHandlerPaths(
7676
sourceFiles,
77-
SESSION_OBSERVABILITY_RETIRED_HANDLER_PATHS,
77+
SESSION_OBSERVABILITY_RETIRED_PATHS,
7878
/^packages\/daemon\/src\/handlers\/session-(?:observability|perf|logs|events|network|audio)(?:-[^/]+)?\.ts$/,
7979
'session observability',
8080
);

0 commit comments

Comments
 (0)