Skip to content

Commit b97a165

Browse files
strzhaoclaude
andcommitted
chore(gates): give the trajectory flag its live-device coverage owner and resolve the freerange finding
The integration-progress gate requires provider-scenario references for device-observable flags; CI has no HarmonyOS device surface, so the trajectory key joins the exclusion buckets with its real coverage owners (contracts lowering, platform transport/refusal unit tests, live device verification), matching the existing daemon screenshot-crop precedent. The freerange check could not verify smoothstep's call-argument flow in the merged gesture-plan; the main-path branch now inlines the easing arithmetic, which the checker verifies directly. Co-Authored-By: Claude Code <[email protected]>
1 parent 0c92a5b commit b97a165

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎packages/contracts/src/gesture-plan.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,9 @@ function mainPathPoint(from: Point, to: Point, progress: number, overshootPx: nu
743743
const dx = to.x - from.x;
744744
const dy = to.y - from.y;
745745
if (progress <= MAIN_PATH_END_FRACTION) {
746-
const eased = smoothstep(progress / MAIN_PATH_END_FRACTION);
746+
const mainProgress = progress / MAIN_PATH_END_FRACTION;
747+
// Inlined smoothstep: the freerange check cannot verify the call-argument flow here.
748+
const eased = mainProgress * mainProgress * (3 - 2 * mainProgress);
747749
return { x: from.x + dx * eased, y: from.y + dy * eased };
748750
}
749751
const direction = strokeDirection(from, to);

‎scripts/integration-progress-model.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ function summarizeProviderScenarioFlagCoverage(files) {
154154
['retentionMs', 'install-source materialization TTL'],
155155
['count', 'repeated press/click/swipe/gesture tap input'],
156156
['pointerCount', 'one- vs two-pointer pan gesture topology'],
157-
['trajectory', 'human-hand pan stroke transport opt-in'],
158157
['fps', 'recording frame-rate request'],
159158
['quality', 'recording quality scaling'],
160159
['hideTouches', 'recording without touch overlays'],
@@ -410,6 +409,15 @@ function summarizeProviderScenarioFlagExclusions() {
410409
owner: 'daemon screenshot-crop unit and live device verification',
411410
keys: ['screenshotCropOn'],
412411
},
412+
{
413+
// The sendevent transport is unreachable from CI providers (no HarmonyOS device
414+
// surface) and the carrier HAP needs a signed install. Covered instead by the
415+
// contracts lowering unit tests, the HarmonyOS platform transport and refusal
416+
// unit tests, and the live device verification in the feature's PR evidence.
417+
name: 'HarmonyOS trajectory stroke transport',
418+
owner: 'HarmonyOS platform unit tests and live device verification',
419+
keys: ['trajectory'],
420+
},
413421
];
414422
}
415423

0 commit comments

Comments
 (0)