Skip to content

feat(inference): add attributed debug logging for inference.local#436

Closed
geelen wants to merge 1 commit intoNVIDIA:mainfrom
geelen:codex/inference-local-attribution-debug
Closed

feat(inference): add attributed debug logging for inference.local#436
geelen wants to merge 1 commit intoNVIDIA:mainfrom
geelen:codex/inference-local-attribution-debug

Conversation

@geelen
Copy link

@geelen geelen commented Mar 18, 2026

Summary

Add opt-in attributed debug logging for inference.local requests in the sandbox proxy. Just raising this for visibility/discussion

Related Issue

Changes

From Codex:

  • refactor socket-owner resolution into a reusable procfs identity snapshot
  • resolve process identity before the inference.local fast path and thread it through inference handling
  • add an internal append-only JSONL debug logger gated by OPENSHELL_INFERENCE_DEBUG_LOG
  • capture PID, binary path, ancestor binaries, cmdline paths, request metadata, selected route/provider/model, sanitized headers, capped body snippets, response metadata, timing, and outcome
  • preserve provider_type in resolved route metadata so the selected provider can be logged
  • add focused tests for JSONL serialization, truncation, and log-header redaction
  • document how to enable the debug log in the inference routing architecture note

Testing

Checklist

@github-actions
Copy link

Thank you for your interest in contributing to OpenShell, @geelen.

This project uses a vouch system for first-time contributors. Before submitting a pull request, you need to be vouched by a maintainer.

To get vouched:

  1. Open a Vouch Request discussion.
  2. Describe what you want to change and why.
  3. Write in your own words — do not have an AI generate the request.
  4. A maintainer will comment /vouch if approved.
  5. Once vouched, open a new PR (preferred) or reopen this one after a few minutes.

See CONTRIBUTING.md for details.

@github-actions
Copy link

Thank you for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text:


I have read the DCO document and I hereby sign the DCO.


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot.

@github-actions github-actions bot closed this Mar 18, 2026
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