Skip to content

feat(supervisor): prototype Pi conversation middleware - #2657

Draft
matthewgrossman wants to merge 2 commits into
mainfrom
codex/pi-conversation-middleware-prototype
Draft

feat(supervisor): prototype Pi conversation middleware#2657
matthewgrossman wants to merge 2 commits into
mainfrom
codex/pi-conversation-middleware-prototype

Conversation

@matthewgrossman

Copy link
Copy Markdown
Contributor

DO NOT MERGE THIS

Summary

Build a narrow working prototype that lets a Pi extension send complete conversation hooks through a stable supervisor bridge to operator-run gRPC middleware. The middleware redacts sandbox, signs the sanitized conversation, and fail-closed egress verification permits only the matching OpenAI Chat Completions request.

Related Issue

No issue required: this is an explicitly requested disposable demonstration PR and is not intended for merge.

Changes

  • Add typed agent-conversation middleware bindings and a supervisor-owned loopback bridge
  • Add deterministic stateless attestation signing and fail-closed HTTP verification
  • Add the Pi adapter, NVIDIA Inference API model configuration, Docker example, and sandbox policy
  • Log original and replacement conversations as formatted JSON for the demo
  • Publish the design at architecture/pi-conversation-middleware.md
  • Publish the validated walkthrough at examples/pi-conversation-middleware/TESTING.md

Testing

  • mise run pre-commit passes
  • Focused middleware and sandbox unit tests pass
  • Local Docker gateway and sandbox demo completed
  • Pi returned REDACTED and egress logged engine:middleware failed:false transformed:true
  • Missing-attestation egress fails closed

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Aug 8, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

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