Skip to content

Commit 7b48531

Browse files
authored
refactor: retire ADR-0019 cutover scaffolding (#2081)
1 parent 4cf1165 commit 7b48531

47 files changed

Lines changed: 884 additions & 5067 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ task procedures only when needed:
1414
| Selector capture, polling, or interaction fast paths | `docs/agents/selector-capture.md` |
1515
| Adding or changing a CLI flag | `docs/agents/cli-flags.md` |
1616
| Opening or reviewing a PR | `docs/agents/pull-requests.md` |
17-
| Migrating an ADR 0019 command | `docs/agents/adr-0019-unit.md` |
1817
| Running against a real device | `docs/agents/device-verification.md` |
1918
| Issues, PRDs, and triage labels | `docs/agents/issue-tracker.md`, `docs/agents/triage-labels.md` |
2019
| Web backend setup or diagnostics | `docs/agents/web-backend.md` |

docs/adr/0019-request-bound-platform-runtime.md

Lines changed: 66 additions & 125 deletions
Large diffs are not rendered by default.

docs/agents/adr-0019-unit.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

packages/contracts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@
335335
"types": "./src/facades/progress.ts",
336336
"default": "./src/facades/progress.ts"
337337
},
338-
"./record-runtime-cutover": {
339-
"types": "./src/record-runtime-cutover.ts",
340-
"default": "./src/record-runtime-cutover.ts"
338+
"./record-runtime-execution": {
339+
"types": "./src/record-runtime-execution.ts",
340+
"default": "./src/record-runtime-execution.ts"
341341
},
342342
"./recording": {
343343
"types": "./src/facades/recording.ts",

packages/contracts/src/command-platform-execution.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { assertCommandPlatformExecution } from './command-platform-execution.ts'
66
describe('command platform execution declaration', () => {
77
test.each([
88
{ kind: 'none' },
9-
{ kind: 'legacy' },
9+
{ kind: 'host' },
1010
{ kind: 'inventory', use: inventoryUse },
1111
{ kind: 'device-runtime', use: { required: ['capture'], preferred: [] } },
1212
{
@@ -20,6 +20,7 @@ describe('command platform execution declaration', () => {
2020
test.each([
2121
{},
2222
{ kind: 'none', use: inventoryUse },
23+
{ kind: 'legacy' },
2324
{ kind: 'legacy', use: inventoryUse },
2425
{ kind: 'inventory' },
2526
{ kind: 'inventory', use: inventoryUse, legacy: true },

packages/contracts/src/command-platform-execution.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { runtimeUseIdentity } from './platform-runtime-use.ts';
44

55
export type CommandPlatformExecution =
66
| Readonly<{ kind: 'none' }>
7-
| Readonly<{ kind: 'legacy' }>
87
/**
98
* Host-scoped platform work (ADR 0019): diagnostics, owner cleanup, or managed tooling runs
109
* through a neutral typed host service. The command binds no device runtime as its own
@@ -27,7 +26,6 @@ export function assertCommandPlatformExecution(
2726
const declaration = value as Record<string, unknown>;
2827
const keys = Object.keys(declaration).sort();
2928
if (declaration['kind'] === 'none' && sameKeys(keys, ['kind'])) return;
30-
if (declaration['kind'] === 'legacy' && sameKeys(keys, ['kind'])) return;
3129
if (declaration['kind'] === 'host' && sameKeys(keys, ['kind'])) return;
3230
if (
3331
declaration['kind'] === 'inventory' &&
@@ -110,6 +108,6 @@ function sameKeys(actual: readonly string[], expected: readonly string[]): boole
110108

111109
function invalidPlatformExecution(): TypeError {
112110
return new TypeError(
113-
'Command platform execution must declare exactly one of none, legacy, host, inventory, or device-runtime',
111+
'Command platform execution must declare exactly one of none, host, inventory, or device-runtime',
114112
);
115113
}

packages/contracts/src/logs-runtime-cutover.test.ts

Lines changed: 0 additions & 39 deletions
This file was deleted.

packages/contracts/src/logs-runtime-cutover.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/contracts/src/record-runtime-cutover.test.ts renamed to packages/contracts/src/record-runtime-execution.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'node:assert/strict';
22
import { test } from 'vitest';
3-
import { assertRecordRuntimeExecution } from './record-runtime-cutover.ts';
3+
import { assertRecordRuntimeExecution } from './record-runtime-execution.ts';
44
import {
55
screenRecordingRuntimePlanUses,
66
resolveScreenRecordingRuntimePlan,
File renamed without changes.

0 commit comments

Comments
 (0)