Skip to content

feat(plugins): add structured turn context - #1089

Merged
dcramer merged 6 commits into
mainfrom
codex/typed-turn-context
Jul 28, 2026
Merged

dcramer merged 6 commits into
mainfrom
codex/typed-turn-context

Conversation

@dcramer

@dcramer dcramer commented Jul 28, 2026

Copy link
Copy Markdown
Member

Plugin user-prompt hooks can now return typed, versioned structured context with a plugin-owned prompt renderer. Junior validates and budgets the JSON content, renders it into the volatile user prompt, and atomically records the normalized turn_context alongside the native agent input without retaining the rendered labels in conversation history.

Memory recall uses this contract for conversation-scoped memories. Personal or mixed recall remains prompt-only so actor-scoped memory cannot be widened through conversation reporting. Existing text prompt contributions remain supported.

The dashboard attaches authorized context to its originating user turn, with native memory rendering, a generic versioned fallback, transcript search, and Markdown export. Regression coverage exercises prompt rendering, atomic persistence, reporting redaction, memory scoping, transcript projection, search, export, and the context popout.

Refs #1074

@vercel

vercel Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Jul 28, 2026 6:22am

Request Review

@dcramer
dcramer marked this pull request as ready for review July 28, 2026 04:41
@github-actions github-actions Bot added the risk: high PR risk score: high label Jul 28, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f334cab. Configure here.

@dcramer
dcramer merged commit d779d38 into main Jul 28, 2026
32 checks passed
@dcramer
dcramer deleted the codex/typed-turn-context branch July 28, 2026 06:36

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 543f55f1 Deployed Jul 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant