You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wiki/plans/2026-07-29-pi-omp-native-extension-design.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,26 +38,26 @@ The integration must preserve Headroom's safety invariant: never drop user or as
38
38
39
39
### Golden path
40
40
41
-
**Given** Headroom is deployed locally, the extension is enabled, and a Pi or OMP session has a large eligible tool result,
42
-
**when** the result becomes older than the protected working set and a later model turn is assembled,
41
+
**Given** Headroom is deployed locally, the extension is enabled, and a Pi or OMP session has a large eligible tool result,
42
+
**when** the result becomes older than the protected working set and a later model turn is assembled,
43
43
**then** the provider receives a validated Headroom-compressed text block, the raw transcript remains unchanged, and every CCR marker resolves to the exact original content.
44
44
45
45
### Provider switch
46
46
47
-
**Given** a session switches from Anthropic to OpenAI Codex, Gemini, or another Pi-supported provider,
48
-
**when** the next context is assembled,
47
+
**Given** a session switches from Anthropic to OpenAI Codex, Gemini, or another Pi-supported provider,
48
+
**when** the next context is assembled,
49
49
**then** the same cached transformation applies without changing endpoint, credential, or provider configuration.
50
50
51
51
### Headroom unavailable
52
52
53
-
**Given** Headroom is stopped, unhealthy, or times out,
54
-
**when** Pi or OMP assembles context,
53
+
**Given** Headroom is stopped, unhealthy, or times out,
54
+
**when** Pi or OMP assembles context,
55
55
**then** the original context is returned immediately and the agent request proceeds normally.
56
56
57
57
### Retrieval miss
58
58
59
-
**Given** a compressed result refers to a hash that is no longer present in Headroom's process cache,
60
-
**when** the model calls `headroom_retrieve`,
59
+
**Given** a compressed result refers to a hash that is no longer present in Headroom's process cache,
60
+
**when** the model calls `headroom_retrieve`,
61
61
**then** the extension checks its bounded in-memory original map, then Headroom's `/v1/retrieve` endpoint, and otherwise returns an explicit miss that tells the model to rerun the originating tool.
0 commit comments