HanzoHIPs
Back to HIPs
HIP-1419DraftStandards TrackApplication

Hanzo Chat — Application Standard

Hanzo AI
Created: 2026-11-28
Requires: HIP-1418

HIP-1419: Hanzo Chat — Application Standard

Abstract

Hanzo Chat is the human and agent messaging application for direct messages, groups, communities and small organizations, alongside private AI-assistant conversations. The proposed public surface is hanzo.chat; hanzo.app/chat remains the application identity. 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 direct and group conversations, community discovery and membership, roles, invitations, message replies, reactions, attachments, read state, moderation, agent mentions and scoped agent participation. Private model threads, model selection, streamed responses, citations and export remain supported. Team owns organization-wide project collaboration; Bot owns durable agent runs. Reuse shared messaging and membership authority rather than creating independent chat databases. Its candidate source foundations are hanzoai/chat, hanzoai/engine. Repository-level license indications: review; MIT. 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 send message; cancel stream; export thread; create group; invite member; revoke membership; mention agent; moderate message; set notification preferences. 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

  • Two people and one explicitly admitted agent exchange messages in a group; reconnect and offline retry preserve ordering and deduplication.

  • Group membership and role changes are enforced on reads, sends, attachment access and agent context; removed members cannot receive new messages.

  • Agents are visibly identified and receive only authorized context. External actions require policy and approval; encryption guarantees must distinguish private human messages from explicitly shared agent inputs.

  • Community moderation, block/report, invite limits and notification controls are tested; private messages are not exposed through public discovery.

  • Reconnect to a streaming thread without duplicating the message; export preserves cited sources.

  • 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.