Ack Gate
Path:
_archive/loom-stale-pre-sprint-snapshot/src/execution/ack-gate.tsRelative: loom-stale-pre-sprint-snapshot/src/execution/ack-gate.tsSubproject: _archiveCategory: archivedLines: 55Bytes: 2,076Imports: 0Exports: 2
Content Preview
- /**
- * H3.1 — Observation acknowledgment gate (P1 feedback closure).
- * After tool results are re-injected, the NEXT assistant turn must open its
- * first text block with <ack obs="h1[,h2,...]"> covering exactly the hashes
- * of the re-injected batch. A turn that ignores its observations never
- * reaches the tool executor.
- */
- const ACK_RE = /^\s*<ack\s+obs="([a-f0-9]{64}(?:\s*,\s*[a-f0-9]{64})*)"\s*\/?>/;
- export type AckCheck =
- | { ok: true }
- | { ok: false; reason: "missing" | "hash_misma