Pattern Atlas · 6 Cross-Case Primitives

Reusable interaction rules you can test and copy

Each pattern traces back to a real software or hardware bottleneck — pairing problem tension, anti-pattern toggles, a live micro-sandbox, accessibility guarantees, copyable code, and explicit evidence ceilings.

Category
Physical & HW · 01

Physical Key Commitment Gate

Bench / hardware verified

Decouple low-friction voice capture from irreversible approvals by binding execution strictly to deliberate physical hardware presses.

Problem Tension

Approving shell or write calls purely by spoken 'yes' fails as soon as background conversation or media audio triggers a false match.

Rule vs. Anti-Pattern
Chosen Interaction Rule

Asymmetric dual-button grammar on M5StickS3: hold Front Key for 16 kHz press-to-talk, press Front Key to approve queued tools, press Side Key to deny (+ optional spoken reason), and require a 30-second physical Front Key confirmation before writing pair.key.

Accessibility Guarantees
  • Tactile differentiation between approve (Front) and deny (Side) prevents spatial confusion without staring at the 1.14-inch screen.
  • Web simulator exposes equivalent keyboard bindings (Enter to approve, Backspace to deny) with visible focus rings and status output.
Live Interactive Micro-Sandbox
Transport priority
AES-256-GCM · PCM · Cable preempts
USB·PCMAES-256
WRIST IDLE

Trigger a request on the right

Optional spoken reason on deny:

1. Simulate Claude Code request

2. Closed-loop timeline (Watch -> Bridge -> Audio brief)

  1. IDLEM5StickS3 paired via pair.key · Trigger a Claude Code request to test wrist gating.
lib/ui/approval-gate.ts· Asymmetric approval state machine enforcing hardware button commitment and spoken denial capture.
export type HardwareKey = "front_press" | "side_press" | "voice_only";
export type GateState = "listening" | "awaiting_key" | "approved" | "denied";

export function reduceApprovalGate(
  state: GateState,
  event: HardwareKey,
  pendingToolId: string | null
): GateState {
  if (state !== "awaiting_key" || !pendingToolId) return state;
  // Voice transcripts can never authorize a pending tool call.
  if (event === "voice_only") return "awaiting_key";
  if (event === "front_press") return "approved";
  if (event === "side_press") return "denied";
  return state;
}
Evidence Ceiling & Honest Scope

Verified across 11 S3 hardware test scenes (gate-h), AES-GCM/pairing refusal checks (gate-p5), and 75s Fly.io keep-alive (gate-l); external multi-wearer ergonomics remain untested.

Interaction Pattern Atlas · Executable Rules & Specimens | Lewis Dong