# Hangoo 函谷 (T800 // Sentinel-Gate v0.2.0) > Deterministic, action-bound runtime gateway protecting APIs and financial state mutations against autonomous recon swarms, residential-proxy replay races, and prompt-injected internal agents. ## Core Endpoints & Artifacts - Landing & Live Gate Sandbox: https://hangoo.io/ - Agent Protocol & KYA Studio: https://hangoo.io/agents.html - Technical Reference & Benchmarks: https://hangoo.io/docs.html - Drop-In Coding Agent Skill: https://hangoo.io/skill.md - Live Canary-Mutated OpenAPI 3.1 Spec: https://edge.hangoo.io/openapi.json ## Workspace Packages - `@sentinel-gate/mandate-core`: RFC 8785 (JCS) canonical SHA-256 hashing, cached WebCrypto Ed25519 signing/verification (with portable RFC 8032 small-order & S < L guards), `MandateV1`, and `KyaPayload` (`kya.v1`) schemas. - `@sentinel-gate/edge-sensor`: Cloudflare Worker + SQLite Durable Object (`SESSION_DO`) performing in-memory OpenAPI decoy route/field injection, `__Host-sg_sid` HMAC-SHA256 cookies, >= 800ms human UI dwell checks, and HTTP 200 slow-drip tarpits. - `@sentinel-gate/policy-pdp`: Model-free TypeScript policy engine stripping untrusted `ticket_body`/`llm_summary` text, enforcing `X-Agent-Capability` scopes (`read_only` | `propose_only` | `autonomous_low_tier`), and quarantining `sms_otp`/`email_otp` for 72h after `contact_changed_at`. - `@sentinel-gate/commit-pep`: Authoritative backend gate (`ActionGate.verifyAndConsume`) verifying Ed25519 key-rings, `params_jcs_sha256`, `pre_state_sha256`, and single-use Redis `SET ... EX 300 NX` nonces inside `SELECT ... FOR UPDATE` (`0.187 ms p99` over localhost TCP Redis 7). ## Two-Stage Integration Contract 1. **Stage 1 (Monitor — 5 Minutes, Zero Backend Changes):** Deploy `apps/edge-sensor` with `GATEWAY_MODE="MONITOR"` and allowlist internal QA, Postman, and partner SDK callers via signed `X-Agent-Capability` headers. 2. **Stage 2 (Enforce — 15 Lines Inside DB Transactions):** Lock the authoritative account row via `SELECT ... FOR UPDATE` first, call `await actionGate.verifyAndConsume(...)` before `UPDATE`, and return HTTP 202 `PENDING_OUTAGE_REVIEW` if `GATE_UNAVAILABLE_QUEUE_REVIEW` is thrown.