On this page

0113: Content-addressed context store

Status: Proposed (default; pending owner confirmation)

Context

Agent contexts reuse message fragments and need stable request bytes, including tool schemas and cache-sensitive segment ordering.

Decision

Implement SHA-256 in Harness and store pre-encoded JSON fragment blobs keyed by their content hash; contexts are ordered lists of hashes. Canonicalize tool schemas with sorted keys, no whitespace and fixed number spelling. Assemble requests by concatenating stored fragments in cache-aware order: tools, system, shared task, then per-agent instructions; place breakpoints at segment ends within the provider limit.

Consequences

Identical fragments share stable identities and request assembly avoids re-encoding. Hash correctness and canonical bytes require vectors and golden tests.