Skip to content

Commit 7f36e4d

Browse files
committed
chore(gates): register action-button in the exports snapshot and coverage tables
The new export specifier, the six-platform coverage declaration and its evidence rows, the per-platform classification counts, the generic-route catalog, the runtime-binding conformance table, and the provider output guard's driven set all enumerate the public surface, so each one names `action-button`.
1 parent d0cec90 commit 7f36e4d

11 files changed

Lines changed: 56 additions & 10 deletions

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
2+
"@agent-device/contracts/action-button-runtime",
23
"@agent-device/contracts/alert-contract",
34
"@agent-device/contracts/alert-runtime",
45
"@agent-device/contracts/android-clipboard-support",

‎src/daemon/__tests__/request-handler-catalog.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ test('specialized daemon routes are claimed by their handler chain', async () =>
5454

5555
test('catalog commands use generic routing only when intentionally passthrough or projected', () => {
5656
const intentionalGenericCatalogCommands = [
57+
PUBLIC_COMMANDS.actionButton,
5758
PUBLIC_COMMANDS.appSwitcher,
5859
PUBLIC_COMMANDS.back,
5960
PUBLIC_COMMANDS.focus,

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { commandRuntimeUseRequirements } from '@agent-device/command-registry/re
1111
import { createUnavailableRuntimeFactsForTest } from '../../__tests__/test-utils/runtime-operation-facts.ts';
1212
import { makeSession } from '../../__tests__/test-utils/session-factories.ts';
1313
import { makeSessionStore } from '../../__tests__/test-utils/store-factory.ts';
14+
import { resolveBoundActionButtonRuntime } from '../action-button-runtime.ts';
1415
import { resolveBoundAppSwitcherRuntime } from '../app-switcher-runtime.ts';
1516
import { resolveBoundBackRuntime } from '../back-runtime.ts';
1617
import { resolveBoundFocusRuntime } from '../focus-runtime.ts';
@@ -80,6 +81,10 @@ export const conformedRuntimeBindings = {
8081
resolve: async (device, bindings) =>
8182
refusable(await resolveBoundHomeRuntime({ device, ...bindings })),
8283
},
84+
'action-button': {
85+
resolve: async (device, bindings) =>
86+
refusable(await resolveBoundActionButtonRuntime({ device, ...bindings })),
87+
},
8388
'app-switcher': {
8489
resolve: async (device, bindings) =>
8590
refusable(await resolveBoundAppSwitcherRuntime({ device, ...bindings })),

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
type PublicCommand,
1515
} from './entries.ts';
1616
import {
17+
ANDROID_ACTION_BUTTON_RUNTIME_CONTRACT_EVIDENCE,
1718
ANDROID_APPLICATION_LIFECYCLE_CONTRACT_EVIDENCE,
1819
ANDROID_HOVER_RUNTIME_CONTRACT_EVIDENCE,
1920
ANDROID_TV_REMOTE_RUNTIME_CONTRACT_EVIDENCE,
@@ -1294,6 +1295,37 @@ const COMMAND_COVERAGE_DECLARATIONS = {
12941295
'the exact-owner runtime fact rejects native app-switcher navigation on Linux',
12951296
),
12961297
},
1298+
[C.actionButton]: {
1299+
androidEmulator: androidEmulator.contract(
1300+
ANDROID_ACTION_BUTTON_RUNTIME_CONTRACT_EVIDENCE,
1301+
'the Android runtime fact refuses an iPhone Action Button press on every kind',
1302+
),
1303+
iosSimulator: iosSimulator.contract(
1304+
'packages/platform-apple/src/runtime.test.ts',
1305+
'classifies the action-button fact for the %s leaf',
1306+
'the iOS simulator leaf advertises the Action Button press and binds it',
1307+
),
1308+
macos: macos.contract(
1309+
'packages/platform-apple/src/runtime.test.ts',
1310+
'classifies the action-button fact for the %s leaf',
1311+
'the exact-owner runtime fact refuses action-button on the macOS host leaf',
1312+
),
1313+
tvos: tvos.contract(
1314+
'packages/platform-apple/src/runtime.test.ts',
1315+
'classifies the action-button fact for the %s leaf',
1316+
'the exact-owner runtime fact refuses action-button on the tvOS leaf, whose remote has no such control',
1317+
),
1318+
web: web.contract(
1319+
'packages/platform-web/src/runtime.test.ts',
1320+
'clipboard, the app switcher, app events, settings and alerts carry no web bucket',
1321+
'the exact-owner runtime fact refuses an Action Button press on the web target',
1322+
),
1323+
linux: linux.contract(
1324+
LINUX_RUNTIME_EVIDENCE.path,
1325+
LINUX_RUNTIME_EVIDENCE.test,
1326+
'the exact-owner runtime fact refuses an Action Button press on the Linux desktop',
1327+
),
1328+
},
12971329
[C.installFromSource]: {
12981330
androidEmulator: androidEmulator.contract(
12991331
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
@@ -38,6 +38,12 @@ export const ANDROID_TV_REMOTE_RUNTIME_CONTRACT_EVIDENCE: AndroidContractEvidenc
3838
[C.tvRemote],
3939
'classifies Android %s back/home/orientation/keyboard facts through the shared touch gate',
4040
);
41+
export const ANDROID_ACTION_BUTTON_RUNTIME_CONTRACT_EVIDENCE: AndroidContractEvidence =
42+
defineAndroidContractEvidence(
43+
'packages/platform-android/src/runtime.test.ts',
44+
[C.actionButton],
45+
'Android refuses the action-button fact on every kind',
46+
);
4147
export const ANDROID_VIEWPORT_RUNTIME_CONTRACT_EVIDENCE: AndroidContractEvidence =
4248
defineAndroidContractEvidence(
4349
'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
@@ -126,6 +126,7 @@ const DRIVEN_COMMANDS: Record<string, DriveSpec> = {
126126
[PUBLIC_COMMANDS.swipe]: () => one(['up']),
127127
[PUBLIC_COMMANDS.tvRemote]: () => one(['select']),
128128
[PUBLIC_COMMANDS.appSwitcher]: () => one(),
129+
[PUBLIC_COMMANDS.actionButton]: () => one(),
129130

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

‎test/integration/smoke-android-emulator-coverage.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ test('Android emulator coverage exhaustively classifies the public catalog', ()
4040
test('Android coverage report summary accounts for every manifest classification', () => {
4141
const summary = ANDROID_EMULATOR_COVERAGE_CLASSIFICATION_SUMMARY;
4242
assert.deepEqual(summary, {
43-
contract: 13,
43+
contract: 14,
4444
gap: 0,
4545
live: 41,
46-
total: 54,
46+
total: 55,
4747
});
4848
assert.equal(summary.live + summary.contract + summary.gap, summary.total);
4949
});

‎test/integration/smoke-linux-coverage.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ test('Linux coverage report has the expected classification counts', () => {
4848
// inventory remains a gap because local Linux screenshot paths are not daemon-downloadable.
4949
// Keyboard, orientation and tv-remote were already fact-owned command-contract rows rather
5050
// than catalog denials; R56 moves app-switcher the same way, for the same reason.
51-
contract: 28,
51+
contract: 29,
5252
gap: 9,
5353
live: 17,
54-
total: 54,
54+
total: 55,
5555
});
5656

5757
const { contract, gap, live, total } = LINUX_PLATFORM_COVERAGE_CLASSIFICATION_SUMMARY;

‎test/integration/smoke-macos-coverage.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ test('macOS coverage exhaustively classifies the public catalog', () => {
3939

4040
test('macOS coverage report counts every manifest classification', () => {
4141
assert.deepEqual(MACOS_PLATFORM_COVERAGE_CLASSIFICATION_SUMMARY, {
42-
contract: 21,
42+
contract: 22,
4343
gap: 15,
4444
live: 18,
45-
total: 54,
45+
total: 55,
4646
});
4747
assert.equal(
4848
MACOS_PLATFORM_COVERAGE_CLASSIFICATION_SUMMARY.live +

‎test/integration/smoke-tvos-platform-coverage.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ test('tvOS coverage exhaustively classifies the public catalog', () => {
4040

4141
test('tvOS coverage report has the expected classification counts', () => {
4242
assert.deepEqual(TVOS_PLATFORM_COVERAGE_CLASSIFICATION_SUMMARY, {
43-
contract: 16,
43+
contract: 17,
4444
gap: 38,
4545
live: 0,
46-
total: 54,
46+
total: 55,
4747
});
4848
});
4949

0 commit comments

Comments
 (0)