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>
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>
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>
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>
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>
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>