Skip to content

fix(server): correct sandbox log bus attribution and lifecycle - #3096

Open
krishicks wants to merge 1 commit into
mainfrom
hicks/push-qkprrpqmxulu
Open

fix(server): correct sandbox log bus attribution and lifecycle#3096
krishicks wants to merge 1 commit into
mainfrom
hicks/push-qkprrpqmxulu

Conversation

@krishicks

Copy link
Copy Markdown
Collaborator

Summary

Fix five related defects in how gateway log lines are associated with a sandbox and delivered to subscribers.

Related Issue

Refs #1055

Changes

  • Treat an empty sandbox id as no sandbox association rather than as a sandbox literally named "".
  • Make sandbox teardown authoritative for the log bus. Reject late publishers and subscribers, and serialize removal against sender and tail creation so a race cannot resurrect discarded state.
  • Route ocsf_emit! events into the sandbox log bus; they previously reached the JSONL file but never openshell logs.
  • Emit gateway OCSF events through ocsf_emit! so every emitter uses one path.
  • Attribute pre-resolution service HTTP failures to their sandbox, which were previously unattributed and so invisible in that sandbox log.

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

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

Five related defects in how gateway log lines are associated with a
sandbox and delivered to subscribers.

- Treat an empty sandbox id as no sandbox association rather than as a
  sandbox literally named "".
- Make sandbox teardown authoritative for the log bus. Reject late
  publishers and subscribers, and serialize removal against sender and tail
  creation so a race cannot resurrect discarded state.
- Route ocsf_emit! events into the sandbox log bus; they previously
  reached the JSONL file but never `openshell logs`.
- Emit gateway OCSF events through ocsf_emit! so every emitter uses one
  path.
- Attribute pre-resolution service HTTP failures to their sandbox, which
  were previously unattributed and so invisible in that sandbox log.

Refs #1055

Signed-off-by: Kris Hicks <khicks@nvidia.com>
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