# Zudux-State V2 Feature Inventory

## Original state runtime

- Revocable copy-on-write drafts with structural sharing
- Forward and inverse patches for every changed path
- Protected published snapshots by default
- Patch-based bounded rewind instead of full historical clones
- Typed command names, payloads, and results
- Sync/async commands with cancellation and deadlines
- Idempotency-key deduplication
- Dry-run command preview with result, patches, inverse patches, and rejection capture
- Isolated command drafts and automatic rollback
- Dynamic command and lifecycle-module injection
- Queue, listener, module, history, and audit inspection metrics

## Transactions and recovery

- Multi-command atomic domain operations
- Speculative/optimistic commits with inverse-patch rollback
- Checkpoint, restore, and multi-step rewind
- Multi-domain coordination with automatic compensation
- Pre-commit runtime schema checks and invariants
- Listener and post-commit integration fault isolation

## Derived data and rendering

- Slice subscriptions with custom equality and immediate delivery
- Multi-input LRU selectors with hit/miss metrics
- Automatic property-access tracking
- Slow-computation warnings
- Flat-object shallow equality
- Immediate, interactive, and background notification lanes
- High-frequency frame-coalesced transient channels
- React external-store hooks, scoped Providers, SSR initial snapshots, and resource hooks

## Entities

- Normalized ID/record storage
- Single and bulk add, put, update, remove, and clear operations
- Stable sorting
- Multiple secondary indexes, including multi-valued indexes
- Generated record/count/index selectors
- Registry consistency auditing

## Resources and server state

- Endpoint catalog with runtime injection/code splitting
- Request deduplication and cancellation
- Freshness and retention controls
- Retry with configurable backoff
- Tag-based invalidation and active refetch
- Optimistic updates with rollback
- Persistent stream lifecycle
- Cache subscription and automatic eviction
- Dehydrate/hydrate for SSR or persistence
- Browser focus and reconnect refresh binding
- OpenAPI-like resource source generation

## Workflows and scheduling

- Parallel, serial, latest, leading, and drop modes
- Debounce and throttle
- Abort-aware delay and condition waiting
- Child task fork/cancel
- Retry policies
- Priority task scheduler
- Concurrency and queue limits
- Deadline expiry and overload backpressure
- Drain and graceful close
- Circuit breaker with half-open recovery

## Governance and integrity

- Actor identity, tags, request deadlines, and idempotency keys
- Async domain access policies
- Role/attribute policy rules with deny precedence and simulation
- Risk-scored state guard for approval-required or deny-threshold commands
- Runtime state/persistence schema validation
- Serializable-state diagnostics with exact paths
- Bounded audit trail
- SHA-256-linked tamper-evident audit entries
- Tag redaction before export
- Named redaction profiles for support, developer, compliance, or public audit views
- Custom telemetry integration
- Command SLA module for actor, tag, duration, and patch-count rules
- Policy replay for historical audit entries before governance changes

## Persistence

- Pluggable sync/async storage ports
- Versioned envelopes and migrations
- SHA-256 corruption checks
- Partial state persistence with independent types
- Custom current/persisted-state merge
- Runtime validation
- Custom encryption/compression codecs
- Skip/manual hydration
- Hydration lifecycle callbacks and subscriptions
- Runtime option updates
- Debounced writes, explicit flush, clear, and status APIs

## Event sourcing and distribution

- Versioned event definitions and event migration hook
- Deterministic state replay
- Idempotent event IDs
- SHA-256-linked event log
- Snapshot compaction
- Patch-based offline replica messages
- Per-source vector progress
- Outbox, retryable flush, duplicate suppression, validation, and conflict hooks
- Reusable replica conflict strategies for patch, server-authoritative, and last-write-wins flows
- Browser broadcast relay for simple same-origin synchronization

## Developer platform

- Transport-neutral Inspector protocol
- In-memory inspector for tests
- Browser bridge and included Manifest V3 DevTools panel
- Mutation profiler for command cost and rejection reporting
- Audit query and state timeline helpers
- Domain dependency graph for impact analysis
- Multi-tenant domain hub for isolated SaaS and SSR state boundaries
- Enterprise readiness score with missing-control guidance
- Deterministic clock and ID runtime
- Fault-injecting persistence
- Packet-drop/reordering replica test bus
- State-contract and resource-client source generation
- Strict TypeScript, ESM, generated declarations, and zero core runtime dependencies
