forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to tests/fuzz/test_fuzz_protocol.pyClear filter

2026-09-17

feat(bridge): migrate the dial-out client from hab/1 to hab/2Ahmet Kaan Gümüş · 394c54c
feat(bridge): migrate the dial-out client from hab/1 to hab/2

The backend rejects hab/1 at ALPN and again in Hello, so the service was dead
against production. This moves the wire to hab/2 and closes the gaps the new
wire exposes:

- PROTOCOL is hab/2 (one constant drives ALPN, Hello and --validate).
- School scoping: Request carries school, every Response echoes it verbatim,
  a school-less request is bad_request. Threaded into capability handlers and
  into the ApiRequest/ApiResponse pair, which hab/2 also scopes.
- Permanent rejects no longer exit 2 (that was an endless crash-loop under
  restart: unless-stopped). Exponential backoff with jitter, capped at
  AI_RECONNECT_MAX_SECS, and the certificate is refetched every reconnect.
- AI_TLS_FINGERPRINT pins the SHA-256 of the PEM's own DER; a mismatch logs and
  retries instead of silently trusting. Empty pin stays TOFU and warns loudly.

Callers migrated: capabilities dispatch/handler signatures, main.py validate,
tools/{fuzz_test,smoke_test,api_probe}.py, and the test suite.

2026-09-08

createMuhammet Ozdemir · d74d2fcBrowse files