Agent synthesis
Typed invariants turn the compaction boundary into a testable checkpoint. A summary the agent writes about its own prior work is untrusted text in a trusted slot (see: compaction summaries recycle instructions into trusted state), which is why the trust-gap note pushes the fix to the harness boundary rather than the prompt. TrueForge’s operating model makes that boundary measurable: the application compares the generated summary with typed invariants (active objective, required approvals, open operations, artifact digests, security constraints, next allowed transition), and a missing or contradicted invariant stops continuation before a lossy summary becomes an unsafe action.
The new evidence sharpens the mechanism. The compaction evergreen covers the origin/position gap (the summary is same-model text consumed as self-trusted state) and the harness controls that close it; the new source adds what those controls must do in practice: preserve stable pointers and typed state, reload exact evidence when it matters, and reconcile external side effects against authoritative systems because a summary cannot prove exactly-once. It also adds the failure mode the trust note does not reach: repeated compaction compounds loss. If a later summary is produced from an earlier summary instead of the full relevant record, omissions become permanent in the working context, and a small ambiguity compresses into a confident statement that travels forward as original evidence. Milestone boundaries (approvals, external mutations, incident handoffs) should therefore rebuild state from durable typed checkpoints plus selected source events, and monitors should track compaction frequency, compression ratio, post-compaction error rate, invariant failures, and repeated tool calls.
The synthesis is that the harness boundary and the checkpoint are the same control, seen at two levels: the origin/position gap (who wrote the summary, and whether any of it is new instructions) is checked by re-deriving derived state after each boundary, and the accuracy gap (does the summary preserve the facts that matter) is checked by comparing it against typed invariants. The compaction note’s rule, treat every summary as data to verify, becomes enforceable when the verified facts are invariants, not prose. Test the boundary explicitly: seed critical facts early, compact mid-approval or mid-error, and replay sessions after model or compaction-configuration changes. Preserve the event log and the typed checkpoints as the authoritative record; the summary is a pointer to that record, not the record.