Skip to content

v0.14.0 — Low-I/O Telemetry Architecture & OpenCode v2.3.0 Compatibility

Choose a tag to compare

@huseyincig huseyincig released this 16 Nov 20:32
· 5 commits to main since this release

Highlights

🚀 Low-I/O Telemetry Architecture & Bounded Rotation

  • Zero-I/O Benign Filtering: Introduced telemetry.level ("violations" | "all" | "off"), defaulting to "violations". High-frequency non-violation events (preflight-allowed, post-inspected) bypass disk writes entirely, reducing telemetry disk I/O by 90–95% and eliminating benchmark freezes.
  • In-Process Permission Caching: Caches verified .opencode-guardian state directory paths to eliminate redundant mkdirSync / lstatSync syscalls per event.
  • Strict Size Bounds: Telemetry log size is strictly capped at 512 KiB by default (configurable via telemetry.maxBytes), with bounded single-file rotation.
  • Environment Variable Overrides:
    • OPENCODE_GUARDIAN_LOG_LEVEL=violations|all|off
    • OPENCODE_GUARDIAN_TELEMETRY=true|false
    • OPENCODE_GUARDIAN_MAX_LOG_BYTES=<bytes>

⚡ OpenCode v2.2.7 – v2.3.0 Engine Compatibility

  • Exit Code Normalization: src/evidence.ts normalizes standardized "Exit code: N" lines across command outputs and tracks signal kills and timeouts (SIGTERM, SIGKILL, SIGINT).
  • Read-Only Git Tool Expansion: src/agent-capability.ts registers read-only Git tools (diff, git_diff, log, git_log, show, git_show) without triggering destructive write warnings.
  • Lifecycle Cleanliness: Unified telemetry and session teardown across OpenCode V1 (server) and V2 (setup / runtimeForDirectory) lifecycles.
  • V2 Hook Conformance: Aligned session hook registry with OpenCode v2.3.0 strict hook names.

🛡️ Production Verification & Quality

  • 100% Automated Test Suite: 797/797 tests passing (node --test).
  • End-to-End Scenarios: 18/18 end-to-end integration scenarios passing (sandbox/comprehensive-test.mjs).
  • Live OpenCode Host Acceptance: 6/6 live security acceptance tests passing on native OpenCode v2.3.0 binary (sandbox/v2-live-acceptance.mjs).
  • Zero Runtime Dependencies: npm audit --omit=dev confirms 0 vulnerabilities.