Repository navigation
Conversation
Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
| if (shouldEmitSentryLog(level)) { | ||
| const options = Sentry.getClient()?.getOptions() | ||
| Sentry.logger[level]("OpenWork inference terminal", { ...report, release: options?.release ?? "unknown", environment: options?.environment ?? "unknown" }) | ||
| } |
There was a problem hiding this comment.
Terminal Sentry log exposes outside-party identity data
The terminal Sentry event forwards organization and membership identifiers with outcome data, allowing an external artifact to identify an outside party. Emit only outcome and operational fields in this event, and retain correlation identifiers in the tenant-scoped internal telemetry store. Clear when terminal Sentry events contain no customer, membership, or other outside-party identifiers. Existing disclosures remain unaffected by removing this event.
Evidence
request-log.tsconstructs a terminal receipt with organization and membership identity from the authenticated request.sentryInferenceReporter.terminalforwards the complete receipt to the Sentry logger.instrumentation.tsenables Sentry log delivery when configured; no terminal-specific identity filter is applied.
Also found at 2 additional locations
ee/apps/gateway/src/request-log.ts:277-278ee/apps/gateway/src/inference-reporting.ts:13-14
Identified by Warden · confidentiality-review · ZF6-7EU
Warden review summary — BlockedNative findings: 2. Blocking policy matches before consolidation: 1. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (217092 ms), confidentiality-review (64064 ms), spec-provenance-review (274756 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
Overnight dev-integration verificationHead: Merged current dev, preserving uncountable-usage and diagnostic model provenance. The PR-only terminal migration is now generated 0102 after shipped 0098–0101; earlier SQL/snapshots are unchanged from dev. Generation was offline; no database migration was applied. Verdict: Scoped transport proof Passed: 36 Testkit tests. Overall migration verification remains Incomplete: targeted DB checks were 48 passed / 5 skipped because disposable MySQL test configuration was not supplied. Related gateway/request-log unit checks: 97 passed / 0 skipped. Skips are not passes. All commands below exited 0 on this committed head. Local lane, deliberately isolated fixtures. pnpm --dir ee/packages/den-db exec tsc --noEmit
pnpm --dir ee/apps/gateway exec tsc --noEmit
pnpm --dir evals typecheck
pnpm evals:pr specs/inference-gateway-transport-security.test.tsHead-matching Testkit records36 passed tests; 3617 passed recorded expectations, zero failed/pending/unvalidated expectation artifacts. Each test has its own section below. These are assertion summaries from actual Testkit receipts, not screenshot judgments. No screenshots or hosted review were uploaded. Complete local receipts remain under native Google/Azure headers authenticate Gateway keys; conflicting credentials never reach the provider
Gateway keeps operator routes and separates Models keys; new admin and webhook config replaces deprecated aliases
empty canonical Gateway credentials disable legacy tokens rather than silently restoring access
Gateway timeout takes precedence and invalid canonical numbers cannot fall back to valid legacy config
Gateway egress config overrides rather than unions legacy exceptions; an empty canonical list fails closed
credential retry yields a correlated 503 without forwarding tokens or asking the member to reconnect
both routes record semantic stream errors; Models sanitizes the provider error while Gateway preserves native bytes
managed Chat JSON and SSE preserve bytes and independent generation outcomes
org-provider Anthropic JSON and SSE terminals retain native bytes and transport-ok accounting
malformed and truncated managed SSE retain partial output and distinct protocol errors, never an invented content_filter
permitted inline JSON retains exact bytes; files, multipart, unknown endpoints and oversized invocation bodies are rejected
model metadata stays local and forbidden operations or provider resources never load credentials or dispatch
native inline client tools retain their schemas, arguments and results without provider resource access
JSON-labelled 204 stays bodyless with its upstream status and completed log
JSON bytes arrive before EOF, with first-byte time preceding completion
JSON body read failures preserve headers and finalize an error row without leaking exception text
incoming cancellation before headers stops the upstream socket and finalizes the request
operator upstream timeout also stops a provider that never sends headers
error responses are not buffered for logging and response cancellation closes the provider
invalid UTF-8 JSON and malformed event-stream responses retain every original byte
OpenWork rejects bodyless or broken completions and supports cancellation before headers
public-only egress rejects private literals, DNS answers, host injection, unsafe bases and redirects
access logs and reporters omit query secrets, prompts and free-text transport/storage errors
OpenWork Models requires enabled metadata independently of bucket gating; org providers do not require a tier
Responses JSON and SSE classify structured completion, limits and refusal without inspecting prose
every Chat choice contributes with bounded precedence; repeated terminals and empty output emit once
unsupported, missing and overflowing native terminals remain unknown and IDs are validated
concurrent requests across both routes and identities retain their own gateway and upstream IDs
partial-output timeout, disconnect and cancellation retain transport failures and exactly one unknown terminal
Sentry SDK local sink receives warning Logs and low-cardinality counters with trace sampling zero
Sentry terminal error codes distinguish malformed, missing, disconnected and timed-out managed streams
transport failures after content_filter remain error-level Sentry Logs on both routes
Chat DONE freezes semantic terminals on both routes without changing native bytes or trailing usage
managed invalid JSON, missing terminals and unknown reasons never manufacture filtering
terminal observation preserves backpressure, exact bytes and cancellation even when observers throw
optional observers cannot alter ordinary inference bytes
CI and Warden must reassess this new head. No merge or approval is requested by this evidence comment. |
Problem
HTTP-200 refusals persisted as transport
ok, losing their generation outcome.Changes
0098_gateway_generation_terminal; correlated metadata-only terminal receipts.Matrix: Chat / Anthropic / Responses × JSON / SSE × completion, limits, tools, filtering/refusal, unknown; multi-choice, repeated/DONE frames, failures and cancellation.
Verification — Passed (local)
pnpm evals:pr specs/inference-gateway-transport-security.test.ts: baseline 25; final 36 passed.pnpm --filter @openwork-ee/gateway test: 299 passed (MySQL/Helm enabled).pnpm --filter @openwork-ee/gateway exec tsc --noEmit -p tsconfig.json: passed.pnpm --filter @openwork-ee/den-db test: 71 passed, including migration replay/readiness.Handoff:
reports/content-filter-observability-gap-2026-09-12.mdin the source investigation worktree; recommended contract and acceptance 1–9 implemented.Follow-ups: session-ID join for
ipr_…, client acceptance 10, post-deployment Sentry ingestion. Disabled telemetry limits coverage. Ben owns deployment; do not merge/deploy automatically.