Commit Graph
11 Commits
Author SHA1 Message Date
Charles CunninghamandCodex bbb827666f Align ephemeral context with fragment conventions
Co-authored-by: Codex <noreply@openai.com>
2026-03-13 12:22:26 -07:00
Charles CunninghamandCodex 72d53a2c9b Add ephemeral turn context support
Introduce app-server ephemeralContext, render it as additional_context_for_this_turn fragments, and strip it correctly across contextual-user diffing and compaction flows.

Regenerate app-server schema fixtures and add coverage for model-visible layout, compaction, oversize validation, and resumed/forked context reconstruction.

Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:41:35 -07:00
Charles CunninghamandCodex 105c20a522 Split aggregated user instructions into contextual fragments
Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:01:49 -07:00
Charles CunninghamandCodex 0be022063b Tighten model-visible context guide
Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:01:48 -07:00
Charles CunninghamandCodex 85880b4495 Document model-visible fragment rules
Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:01:30 -07:00
Charles CunninghamandCodex 5edd095068 Standardize model-visible fragment registration
Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:01:30 -07:00
Charles CunninghamandCodex fc3caab095 Remove expect from contextual fragment wrapper
Replace the expect call in ContextualUserFragment::wrap_contextual_user_body with an explicit pattern match so the code stays compatible with the repo's clippy policy.

Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:01:13 -07:00
Charles CunninghamandCodex 0e77d775e0 Simplify contextual fragment registry imports
Import the registered contextual-user fragment types at the top of model_visible_context.rs so the registry reads directly without repeated inline crate paths.

Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:01:13 -07:00
Charles CunninghamandCodex fff5f28ce1 Unify contextual user fragment detection
Collapse the contextual-user detection APIs into a single ContextualUserFragment trait with default marker-based matching and wrapping. Update the fragment docs and registry naming to match the new blessed path, and fix the stale arc monitor test reference exposed by the refactor.

Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:01:13 -07:00
Charles CunninghamandCodex 4f554b902a Clarify contextual user fragment registry docs
Document the contextual user registry with the same level of guidance as the developer registry, including detection-only fragments versus turn-state diff fragments.

Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:01:12 -07:00
Charles CunninghamandCodex 3954e00f53 Restack context fragment standardization
Reapply the standardized model-visible context fragment work on top of the latest origin/main as a clean squashed restack.

Co-authored-by: Codex <noreply@openai.com>
2026-03-13 11:01:12 -07:00