HIP-1448: Hanzo API — Application Standard
Abstract
Hanzo API is the Hanzo AI application for HTTP request collections, variables, secret references, response inspection and schema tests. This draft defines the application experience, not a second backend capability or a claim of production availability.
Motivation
Users and agents need a durable, typed, portable way to perform this workload rather than a disconnected website or a simulated demo.
Specification
1. Product boundary
The app MUST support HTTP request collections, variables, secret references, response inspection and schema tests. Its candidate source foundations are hanzoai/app. Repository-level license indications: Apache-2.0. The implementation MUST pin reviewed source revisions and audit dependencies, assets and model licenses; unknown or nonpermissive components MUST NOT be silently incorporated. Source mappings are proposed, not a fork receipt.
2. Application and command contract
The application MUST expose typed, permission-checked, versioned operations for save request; run request; assert response. Operations are conceptual command names, not new REST paths. Reuse existing capability APIs and data ownership under HIP-0139; record durable object identifiers and revisions, validate inputs and provide typed errors. Mutations MUST be idempotent where retried and preserve audit evidence; support undo where reversible. GUI, CLI, MCP and agents invoke the same operation semantics. Long-running work uses Tasks (HIP-1062) and composable Flow (HIP-1064) with cancellation and progress. Never require an agent to emulate mouse input for a supported command.
3. Execution and data
Use the universal shell and Mods (HIP-0528), design system (HIP-0504), generative UI (HIP-1415), and runtime profiles (HIP-1414). Use existing Base/Space and VFS for authoritative records and files, and IAM for user/org/project scope. Prefer portable Rust/WASM engines where useful; use existing Go/TypeScript services for business authority. Browser, native, mobile and headless support MUST be individually demonstrated; unsupported features are explicit. Local/offline features MUST make synchronization conflicts visible and never silently discard data. Shared creative/audio engines (HIP-1406 and HIP-1413) apply only where relevant. External calls, spending, publishing and sensitive actions require the existing policy and consent gates.
4. Acceptance gates
- Secrets are redacted; requests obey egress and approval rules.
- A user completes the primary workflow from a real launch target, then reopens persisted state after restart.
- An authorized agent completes the same workflow through typed operations; a foreign-tenant or insufficient-scope caller is denied.
- Errors, cancellation and retry are exercised with durable evidence, not simulated success.
- Release receipt records source commit, artifact digest, dependency and license audit, target support, test results, and user-facing limitations per HIP-1418.
Security Considerations
Enforce tenant scope server-side, least-privilege grants and explicit approval for irreversible actions; do not expose secrets in agent context, exports or logs. Generated UI and plugins must not bypass authorization.
References
HIP-1418, HIP-0528, HIP-0504, HIP-1414, HIP-1415, HIP-1062, HIP-1064, HIP-1337, HIP-0139.
Copyright
Released under CC0 1.0 Universal Public Domain Dedication.