Skip to content

Add deterministic agent context compiler - #6503

Draft
salman1993 wants to merge 1 commit into
mainfrom
codex/context-compiler-manifest
Draft

Add deterministic agent context compiler#6503
salman1993 wants to merge 1 commit into
mainfrom
codex/context-compiler-manifest

Conversation

@salman1993

Copy link
Copy Markdown
Contributor

Why

Agent adapters need a deterministic, auditable boundary between durable standing context, prior conversation, and the event authorizing the current turn.

What

  • Compile dynamic turns into a Buzz-owned semantic envelope with <ambient-context>, a current <event author="…">, and <delivery>, while standing sections use paired domain tags such as <workspace>, <base>, and <system>
  • Keep model-visible framing minimal: section position conveys instruction authority, nonessential source metadata remains manifest-only, and raw events stay available through buzz messages raw
  • Publish canonical hashed context-layer manifests, report channel metadata and session-start canvas freshness separately, and incorporate accepted native steers into the completed turn record
  • Escape arbitrary standing-context bodies so embedded closing tags cannot spoof boundaries; Desktop diagnostics decode them after parsing and retain legacy prompt-history compatibility

Risk Assessment

Medium — this changes ACP prompt serialization and turn telemetry, but preserves context ordering, keeps legacy observer parsing, and requires no relay storage migration.

Generated with Codex

Signed-off-by: Salman Mohammed <smohammed@squareup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant