openlatch-client 0.1.5

The open-source security layer for AI agents — client forwarder
# AGENT.md — Instructions for AI coding agents

## Language & Tooling
- **Language**: Rust, 2021 edition
- **Build**: `cargo build`
- **Test**: `cargo test`
- **Lint**: `cargo clippy --all-targets -- -D warnings`
- **Format**: `cargo fmt`
- **Coverage**: `cargo tarpaulin --out xml`

## Architecture
- Thin forwarder — the client wraps raw hook events in envelopes and forwards to openlatch-platform
- **No local detection or scanning** — all intelligence is cloud-side
- The client does NOT normalize agent-specific formats; it wraps raw events as-is

## Performance
- Latency target: <200ms round-trip for hook events
- Binary size target: `openlatch` <30MB, `openlatch-hook` <20MB, minimal dependencies

## Key Constraints
- All hook event processing is envelope wrapping only (add agent_type, version, session_id)
- Privacy filtering is regex-based credential redaction, applied before forwarding
- Local logging to `~/.openlatch/logs/` for offline sync
- HTTP server runs on localhost:7443