Skip to content

feat(openshell): record native model response receipts - #9

Open
afourniernv wants to merge 2 commits into
NousResearch:feat/openshellfrom
afourniernv:codex/openshell-response-receipts-20261123
Open

afourniernv wants to merge 2 commits into
NousResearch:feat/openshellfrom
afourniernv:codex/openshell-response-receipts-20261123

Conversation

@afourniernv

@afourniernv afourniernv commented Nov 24, 2026 •

Copy link
Copy Markdown

Summary

Record OpenShell's request ID and HTTP status as a Relay mark beneath the native Hermes model call that caused the request. Operators can use the ID to find the corresponding OpenShell request span and OCSF records.

Uses the Hermes response hook. No customer adapter, HTTP client patch or new Relay code is needed.

Related Issue

OpenShell #5210. Targets feat/openshell, where the plugin lives.

Changes

  • Enable only inside the sandbox with plugins.entries.openshell.settings.relay_receipts: true.
  • Validate the receipt and record only request ID and status using existing Relay APIs.
  • Warn and skip when Relay is unavailable or incompatible. Recording failures do not change the model result.
  • Document setup and limits. No new dependencies or exporter configuration.

Testing

  • Nine focused tests pass; Ruff and diff checks pass.
  • Live OpenShell/Phoenix: five HTTP 200 receipts and one 403 receipt matched the correct model parents and OpenShell records. Disabled capture produced none; policy was unchanged.
  • Earlier full suite: 2,145 passed, 61 skipped, two switch-route failures. Both reproduced on unchanged plugin base 42d1c9a (expected 422, received 409).

Limits

Requires the companion Hermes change and a compatible Relay release; the live test used a source-built Relay 1.0.0. Release selection remains before normal packaging.

In-process plugins and native model HTTP calls only, not tool-subprocess REST/MCP requests. A receipt confirms response headers arrived, not completed delivery or authorization. Use Relay's full or openinference export mode to retain the marks.

Checklist

  • Opt-in, tests and setup guidance included.
  • Conventional Commit with DCO sign-off.

Signed-off-by: Alex Fournier <afournier@nvidia.com>
Signed-off-by: Alex Fournier <afournier@nvidia.com>
@afourniernv
afourniernv marked this pull request as ready for review November 24, 2026 03:20
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