On this page

0164: HTTP protocol code lives in a Harness plugin

Status: Accepted by maintainer 2026-11-07

Context

Parsing HTTP means parsing untrusted bytes. C parsers fail with undefined behavior; Harness code is bounds-checked, runs in both backends, and gets differential tests for free. mcp_server.serve_line, a2a.handle and agent/sse already keep protocol logic pure while the host owns the I/O (ADR-0004, ADR-0153, ADR-0154).

Decision

A plugin plugins/http with capabilities = []:

No router in v1.

Consequences

The kernel holds only socket mechanisms; protocol policy is Harness code agents can read and change. Parser speed in compiled Harness is unmeasured and is optimized only with a bench/ case. The plugin is a fuzz target for M16.2.

Alternatives