Skip to content

Commit 37e7778

Browse files
thymikeeclaude
andcommitted
chore(gates): register fold in the exports snapshot, coverage tables, and conformance tables
The contracts export snapshot names the new `fold-runtime` subpath, the six-platform coverage declaration and its Android evidence row classify the command, the runtime-binding conformance table resolves it, and the provider output guard drives it. Co-Authored-By: Claude Fable 5.1 <[email protected]>
1 parent 26635d9 commit 37e7778

5 files changed

Lines changed: 45 additions & 0 deletions

File tree

‎scripts/layering/contracts-exports.snapshot.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@agent-device/contracts/durable-resource-envelope",
4747
"@agent-device/contracts/element-text-runtime",
4848
"@agent-device/contracts/focus-runtime",
49+
"@agent-device/contracts/fold-runtime",
4950
"@agent-device/contracts/gesture-admission",
5051
"@agent-device/contracts/gesture-input",
5152
"@agent-device/contracts/gesture-normalization",

‎src/daemon/__tests__/runtime-binding-conformance.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { resolveBoundActionButtonRuntime } from '../action-button-runtime.ts';
1515
import { resolveBoundAppSwitcherRuntime } from '../app-switcher-runtime.ts';
1616
import { resolveBoundBackRuntime } from '../back-runtime.ts';
1717
import { resolveBoundFocusRuntime } from '../focus-runtime.ts';
18+
import { resolveBoundFoldRuntime } from '../fold-runtime.ts';
1819
import { resolveBoundGestureRuntime } from '../gesture-runtime.ts';
1920
import { resolveBoundHomeRuntime } from '../home-runtime.ts';
2021
import { resolveBoundOrientationRuntime } from '../orientation-runtime.ts';
@@ -89,6 +90,10 @@ export const conformedRuntimeBindings = {
8990
resolve: async (device, bindings) =>
9091
refusable(await resolveBoundAppSwitcherRuntime({ device, ...bindings })),
9192
},
93+
fold: {
94+
resolve: async (device, bindings) =>
95+
refusable(await resolveBoundFoldRuntime({ device, positionals: ['open'], ...bindings })),
96+
},
9297
focus: {
9398
resolve: async (device, bindings) =>
9499
refusable(await resolveBoundFocusRuntime({ device, positionals: ['40', '90'], ...bindings })),

‎test/integration/command-coverage/declarations.ts‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
import {
1717
ANDROID_ACTION_BUTTON_RUNTIME_CONTRACT_EVIDENCE,
1818
ANDROID_APPLICATION_LIFECYCLE_CONTRACT_EVIDENCE,
19+
ANDROID_FOLD_RUNTIME_CONTRACT_EVIDENCE,
1920
ANDROID_HOVER_RUNTIME_CONTRACT_EVIDENCE,
2021
ANDROID_TV_REMOTE_RUNTIME_CONTRACT_EVIDENCE,
2122
ANDROID_VIEWPORT_RUNTIME_CONTRACT_EVIDENCE,
@@ -1326,6 +1327,37 @@ const COMMAND_COVERAGE_DECLARATIONS = {
13261327
'the exact-owner runtime fact refuses an Action Button press on the Linux desktop',
13271328
),
13281329
},
1330+
[C.fold]: {
1331+
androidEmulator: androidEmulator.contract(
1332+
ANDROID_FOLD_RUNTIME_CONTRACT_EVIDENCE,
1333+
'the Android runtime fact refuses a foldable hinge pose on every kind',
1334+
),
1335+
iosSimulator: iosSimulator.contract(
1336+
'packages/platform-apple/src/runtime.test.ts',
1337+
'classifies the fold fact for the %s leaf',
1338+
'the iOS simulator leaf advertises the hinge pose and binds it; a single-panel simulator is refused by the operation itself',
1339+
),
1340+
macos: macos.contract(
1341+
'packages/platform-apple/src/runtime.test.ts',
1342+
'classifies the fold fact for the %s leaf',
1343+
'the exact-owner runtime fact refuses fold on the macOS host leaf, which is not a simulator',
1344+
),
1345+
tvos: tvos.contract(
1346+
'packages/platform-apple/src/runtime.test.ts',
1347+
'classifies the fold fact for the %s leaf',
1348+
'the exact-owner runtime fact refuses fold on the tvOS leaf, which has no hinge',
1349+
),
1350+
web: web.contract(
1351+
'packages/platform-web/src/runtime.test.ts',
1352+
'clipboard, the app switcher, app events, settings and alerts carry no web bucket',
1353+
'the exact-owner runtime fact refuses a hinge pose on the web target',
1354+
),
1355+
linux: linux.contract(
1356+
LINUX_RUNTIME_EVIDENCE.path,
1357+
LINUX_RUNTIME_EVIDENCE.test,
1358+
'the exact-owner runtime fact refuses a hinge pose on the Linux desktop',
1359+
),
1360+
},
13291361
[C.installFromSource]: {
13301362
androidEmulator: androidEmulator.contract(
13311363
ANDROID_INSTALL_SOURCE_CONTRACT_EVIDENCE,

‎test/integration/command-coverage/evidence.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export const ANDROID_ACTION_BUTTON_RUNTIME_CONTRACT_EVIDENCE: AndroidContractEvi
4444
[C.actionButton],
4545
'Android refuses the action-button fact on every kind',
4646
);
47+
export const ANDROID_FOLD_RUNTIME_CONTRACT_EVIDENCE: AndroidContractEvidence =
48+
defineAndroidContractEvidence(
49+
'packages/platform-android/src/runtime.test.ts',
50+
[C.fold],
51+
'Android refuses the fold fact on every kind',
52+
);
4753
export const ANDROID_VIEWPORT_RUNTIME_CONTRACT_EVIDENCE: AndroidContractEvidence =
4854
defineAndroidContractEvidence(
4955
'src/daemon/__tests__/viewport-runtime.test.ts',

‎test/integration/provider-scenarios/apple-platform-output-guard.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ const DRIVEN_COMMANDS: Record<string, DriveSpec> = {
127127
[PUBLIC_COMMANDS.tvRemote]: () => one(['select']),
128128
[PUBLIC_COMMANDS.appSwitcher]: () => one(),
129129
[PUBLIC_COMMANDS.actionButton]: () => one(),
130+
[PUBLIC_COMMANDS.fold]: () => one(['open']),
130131

131132
// -- orchestration (drive to an error response; still scanned) --
132133
[PUBLIC_COMMANDS.artifacts]: () => one(),

0 commit comments

Comments
 (0)