canvas-gestures-and-hit-testing
Warn
Audited by Gen Agent Trust Hub on Oct 18, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The helper script
scripts/check-lib.mjscontains arunNodefunction that usesspawnSyncto execute other Node.js scripts during self-testing and architectural validation workflows. - [DYNAMIC_EXECUTION]: The
importPackagefunction inscripts/check-lib.mjsutilizes the dynamicimport()statement to load packages from file paths computed at runtime, facilitating the use of pinned tooling. - [INDIRECT_PROMPT_INJECTION]: The skill defines an ingestion surface for untrusted user input via canvas touch gestures (taps, swipes, drags).
- Ingestion points: Raw touch events enter the agent context through the
useCanvasGestureshook insrc/canvas/gestures/use-canvas-gestures.ts. - Boundary markers: Events are translated into a strictly typed
CanvasIntentobject, providing clear delimiters between user input and system instructions. - Capability inventory: Processing logic is restricted to pure
intentToActionfunctions (e.g.,src/features/tasks/canvas/intent-to-action.ts) that are prohibited from performing network operations or accessing sensitive state directly. - Sanitization: Inputs are validated against a shared
CanvasLayoutusing ahitTestmechanism to ensure they map only to legitimate UI regions and domain actions.
Audit Metadata