Skip to content

Commit efd63d1

Browse files
committed
Merge origin/main into claude/audit-findings-remediation-62d6ky-transport
Keeps both sides' socket transport tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016qAu53rMak1bXMuR5U2gF4
2 parents a20e8fc + 5a836c0 commit efd63d1

201 files changed

Lines changed: 4332 additions & 1063 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.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'agent-device': patch
3+
---
4+
5+
Fix Android snapshots failing with "insufficient foreground app content" while a framework activity such as the share sheet (`ChooserActivity` or `ResolverActivity`) covers the app. Those activities run in an application window owned by the `android` package on Android 13 and older, so the snapshot now returns them as a system surface, the same way it returns the notification shade, and the agent can act on or dismiss them.

‎.fallowrc.json‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"packages/provider-revyl/src/plugin.ts",
1414
"packages/provider-webos/test/package-smoke.mjs",
1515
"packages/provider-webos/tsdown.config.ts",
16+
"packages/provider-tizen/test/package-smoke.mjs",
17+
"packages/provider-tizen/tsdown.config.ts",
1618
"vitest.mutation.config.ts",
1719
"src/sdk/index.ts",
1820
"src/sdk/io.ts",
@@ -76,6 +78,9 @@
7678
],
7779
"dynamicallyLoaded": [
7880
"packages/daemon/src/execution/interaction/index.ts",
81+
// The interaction-contract Vitest project loads these by path (globalSetup, setupFiles).
82+
"test/integration/interaction-contract/coverage-registration.global-setup.ts",
83+
"test/integration/interaction-contract/coverage-registration.ts",
7984
// The site's modules that Astro loads without an import Fallow can read: from an .astro
8085
// <script> block (hero.ts, dither-host.ts), as a worker URL (dither.worker.ts), by a path
8186
// in astro.config.mjs (routeData.ts) or by convention (ec.config.mjs, Expressive Code).
@@ -97,8 +102,9 @@
97102
// through this workspace link to core source so typecheck needs no build; Fallow then credits
98103
// the source files rather than the package.
99104
"agent-device",
100-
// Nothing in the root imports the webOS plugin or the tv-cdp package it bundles, but layering
105+
// Nothing in the root imports the TV plugins or the tv-cdp package they bundle, but layering
101106
// requires the root manifest to declare every workspace package.
107+
"@agent-device/tizen",
102108
"@agent-device/tv-cdp",
103109
"@agent-device/webos",
104110
// Oxlint resolves the shared config's JS plugins dynamically from their package names.

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ jobs:
304304
id: run-coverage
305305
env:
306306
OUTPUT_ECONOMY_BASE: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
307+
# A loopback-dependent test fails here instead of skipping when bind is denied.
308+
AGENT_DEVICE_REQUIRE_LOOPBACK_TESTS: '1'
307309
uses: ./.github/actions/run-gate
308310
with: { gate: unit-ci }
309311

@@ -388,10 +390,6 @@ jobs:
388390
uses: ./.github/actions/run-gate
389391
with: { gate: concurrency-torture }
390392

391-
- name: Run provider-backed integration tests
392-
uses: ./.github/actions/run-gate
393-
with: { gate: provider-integration }
394-
395393
- name: Check Provider-backed integration architecture progress
396394
uses: ./.github/actions/run-gate
397395
with: { gate: integration-progress }

‎.github/workflows/concurrency-torture-nightly.yml‎

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ on:
1818
workflow_dispatch:
1919
inputs:
2020
runs:
21-
description: 'Number of seeded interleavings to sweep'
21+
description: 'Number of seeded interleavings to sweep (at most 20000)'
2222
required: false
2323
default: '5000'
2424
seed-start:
25-
description: 'First seed in the sweep'
25+
description: 'First seed in the sweep (default: run number x 20000, a fresh range each run)'
2626
required: false
27-
default: '0'
27+
default: ''
2828

2929
permissions:
3030
contents: read
@@ -39,8 +39,11 @@ jobs:
3939
runs-on: blacksmith-4vcpu-ubuntu-2404
4040
timeout-minutes: 20
4141
env:
42-
TORTURE_RUNS: ${{ github.event.inputs.runs || '5000' }}
43-
TORTURE_SEED_START: ${{ github.event.inputs.seed-start || '0' }}
42+
# Job-level env would override a value written to GITHUB_ENV, so the step below sets both values.
43+
RUNS_INPUT: ${{ github.event.inputs.runs || '5000' }}
44+
SEED_START_INPUT: ${{ github.event.inputs.seed-start }}
45+
# Each run owns the seed range [run_number * stride, run_number * stride + runs).
46+
SEED_STRIDE: '20000'
4447
# Standard scheduled-lane artifact envelope (#1430) built via the shared
4548
# scripts/lib/lane-envelope.ts (commit, tool/configHash, seed range, result);
4649
# the seed sweep rides in the typed data payload. Emitted by the test and
@@ -53,6 +56,23 @@ jobs:
5356
- name: Setup toolchain
5457
uses: ./.github/actions/setup-node-pnpm
5558

59+
# A seed fully determines execution order, so a fixed range only re-proves old seeds.
60+
# Without an explicit start, each run sweeps its own disjoint range.
61+
- name: Choose the seed range
62+
run: |
63+
digits='^[0-9]+$'
64+
if [[ ! "$RUNS_INPUT" =~ $digits ]] || (( 10#$RUNS_INPUT < 1 || 10#$RUNS_INPUT > SEED_STRIDE )); then
65+
echo "::error::runs must be an integer from 1 to $SEED_STRIDE"
66+
exit 1
67+
fi
68+
if [[ -n "$SEED_START_INPUT" && ! "$SEED_START_INPUT" =~ $digits ]]; then
69+
echo "::error::seed-start must be a non-negative integer"
70+
exit 1
71+
fi
72+
seed_start="${SEED_START_INPUT:-$((GITHUB_RUN_NUMBER * SEED_STRIDE))}"
73+
echo "TORTURE_RUNS=$((10#$RUNS_INPUT))" >> "$GITHUB_ENV"
74+
echo "TORTURE_SEED_START=$((10#$seed_start))" >> "$GITHUB_ENV"
75+
5676
- name: Run concurrency torture sweep
5777
uses: ./.github/actions/run-gate
5878
with: { gate: concurrency-torture }

‎docs/adr/0012-interactive-replay.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ An inserted or removed wrapper ancestor changes identity.
6666
Replay classifies every annotated step before dispatch through six exact verification paths.
6767
Only a verified result sends the action.
6868
Anything that the evidence cannot isolate is an `identity-unverifiable` divergence, never a silent pick.
69-
The recorder must never emit a payload that its parser rejects. The writer downgrades oversized evidence to `verification: "unverifiable"` and drops its rect. Escape-heavy values can still exceed the serialized limit; the implementation does not recheck after dropping the rect.
69+
The recorder must never emit a payload that its parser rejects. The writer downgrades oversized evidence to `verification: "unverifiable"`, then drops optional fields and measures again after each drop until the serialized payload fits.
7070
The format is additive. Old readers ignore the comment, and new readers run unannotated actions without the check.
7171
An annotation binds only to the next physical action line.
7272

‎examples/sdk/tsconfig.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"agent-device/remote-config": ["../../src/sdk/remote-config.ts"],
1414
"agent-device/install-source": ["../../src/sdk/install-source.ts"],
1515
"agent-device/android-adb": ["../../src/sdk/android-adb.ts"],
16+
"agent-device/limrun": ["../../src/sdk/limrun.ts"],
17+
"agent-device/plugins": ["../../src/sdk/plugins.ts"],
18+
"agent-device/plugins/webdriver": ["../../src/sdk/plugin-webdriver.ts"],
1619
"agent-device/contracts": ["../../src/sdk/contracts.ts"],
1720
"agent-device/finders": ["../../src/sdk/finders.ts"],
1821
"agent-device/selectors": ["../../src/sdk/selectors.ts"],
@@ -62,6 +65,7 @@
6265
{ "path": "../../packages/provider-revyl" },
6366
{ "path": "../../packages/provider-testmu" },
6467
{ "path": "../../packages/provider-webos" },
68+
{ "path": "../../packages/provider-tizen" },
6569
{ "path": "../../packages/provider-webdriver" },
6670
{ "path": "../../packages/provision-kit" },
6771
{ "path": "../../packages/proxy" },

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@
380380
"yauzl": "^3.4.0",
381381
"@agent-device/testmu": "workspace:*",
382382
"@agent-device/revyl": "workspace:*",
383-
"@agent-device/webos": "workspace:*"
383+
"@agent-device/webos": "workspace:*",
384+
"@agent-device/tizen": "workspace:*"
384385
}
385386
}

‎packages/ad-script/docs/target-annotation.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ If per-field truncation still leaves more than 4 KiB, the writer removes `ancest
6666
This reduction is deterministic and uses the existing ancestry truncation direction.
6767
If only `ancestry[0]` remains and the payload still exceeds the limit, the writer sets `verification: "unverifiable"`.
6868
The limit measures serialized UTF-8 bytes, while field limits apply before JSON escaping.
69-
The writer drops `rect` if the downgraded payload still exceeds the limit, but does not recheck afterward.
70-
Escape-heavy values can therefore still produce an over-limit annotation that the parser rejects.
69+
Escape-heavy values can still exceed the limit after this downgrade.
70+
The writer then drops `rect`, `scrollRegion`, the remaining `ancestry`, and `label`, in that order.
71+
It measures the payload again after each drop and stops when the payload fits.
72+
Replay refuses recorded `"unverifiable"` evidence before it reads these fields, so the drops do not weaken replay.
73+
A capped field escapes to at most six times its limit, so `role` and `id` alone always fit and the writer never drops them.
74+
If a field limit change breaks that bound, the writer throws instead of writing a payload that exceeds the limit.
7175
When the reduced tuple fits, the record-time self-check uses that tuple.
7276
A `verified` claim therefore applies to exactly the written evidence.
7377

‎packages/capture-kit/docs/durable-resource-recovery.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ A durable start returns a process-local live handle and a bounded, JSON-safe, ve
44
The facet-specific handle provides idempotent `finish()` returning `FinishOutcome`, `forceCleanup()` returning `CleanupOutcome`, and an idempotent `[Symbol.asyncDispose]` adapter that carries no typed result.
55
The adapter resolves only for confirmed cleanup or already-missing outcomes.
66
Otherwise, it rejects with a normalized `ownership-lost` or `cleanup-pending` error.
7-
Known drift: today a rejected cleanup operation escapes the shared adapter without normalization (#4334).
87

98
Each destructive finish or cleanup holds the authoritative ownership lease across fence validation, native side effect, and persisted transition, or uses a token atomically enforced by the native or provider operation.
109
A preflight check alone is insufficient.

‎packages/capture-kit/src/app-log-live-handle.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function createAppLogLiveHandleFromFinish(
4848
});
4949
}
5050

51-
function assertConfirmedCleanup(outcome: CleanupOutcome): void {
51+
function assertConfirmedCleanup(outcome: CleanupOutcome, cause?: unknown): void {
5252
if (isConfirmedCleanup(outcome)) return;
5353
throw new AppError(
5454
'COMMAND_FAILED',
@@ -61,5 +61,6 @@ function assertConfirmedCleanup(outcome: CleanupOutcome): void {
6161
? 'Use the current resource owner or recovery record before retrying cleanup.'
6262
: 'Keep the recovery record and retry cleanup through the exact runtime owner.',
6363
},
64+
cause,
6465
);
6566
}

0 commit comments

Comments
 (0)