[docs] Define agent platform instruction layers - #6365
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🤖 The AI agent says: Please review three decisions before implementation: (1) SDK-owned |
Context
Agent-owned instructions currently travel through different SDK, runner, and harness paths. Ownership, persistence, invalidation, and native-session continuity therefore vary between Pi, Claude, and Codex.
Changes
This docs-only design defines one internal
platformInstructionscontract for SDK-owned text and a separate runner-owned runtime layer. It documents native delivery per harness, the required Codex late-runtime overlay, deterministic composition, lifecycle and continuity digests, Pi operator-file precedence, and a two-phase rollout that avoids mixed-version prompt loss.Tests / notes
git diff --check -- docs/design/agent-platform-instructions