Skip to content

Occam ObserverOut-of-band Git telemetry

Agent-friendly health signals, severity-graded checks, and pluggable analyzers for any local repository.

What it does

Occam Observer runs the bash engine against any local Git repository and emits a single JSON payload per analysis covering:

  • Five metric vectors — security, mass, entropy, testing, debt
  • An intelligence block — infrastructure/schema/network changes, signatures, dependencies, per-line violations with git blame provenance
  • Analyzer findings — merged results from Semgrep, the built-in Python AST walker, and any custom plugin you drop in
  • A derived check verdictnone / low / medium / high / critical with machine-parseable reasons
  • Self-metrics — engine duration, diff size, analyzers run, prometheus scrape on the gateway side

The Go HTTP gateway (api/main.go) fronts the engine with /, /analyze, /trend, /healthz, /readyz, /metrics. Every request is traced with X-Trace-Id, so engine logs and gateway logs correlate without extra work.

What it is not

  • Not a CI replacement. It's a local telemetry daemon and pre-commit gate.
  • Not a full tree-sitter engine yet — the Python AST analyzer is a POC showing the pluggable protocol; extend via analyzers/.
  • Not multi-user. Single-node, single-writer against the cache file and DB.

Released under the MIT License.