Skip to content

feat: privacy-safe routed stream diagnostics and xAI catalog classification - #30

Merged
yansigit merged 6 commits into
devfrom
codex/routed-model-diagnostics
Aug 25, 2026
Merged

yansigit merged 6 commits into
devfrom
codex/routed-model-diagnostics

Conversation

@yansigit

Copy link
Copy Markdown
Owner

Summary

  • Adds privacy-safe structural stream diagnostics across routed adapters and the Responses bridge (stage: "adapter" | "bridge").
  • Emits process-local HMAC fingerprints for content deltas without retaining raw text, prompt, reasoning, or secrets.
  • Classifies xAI tool-catalog omissions (declared, emitted, omitted, xai_schema_not_lossless) without leaking schema structures.
  • Deduplicates adapter-stage diagnostic logging across image runTurn sidecar queues and consumeIterationEvents.
  • Correctly propagates attempt and recovery kind (connection-reset, rate-limit-429, etc.) through continuation and retry paths.
  • Documents diagnostic capture CLI flow and the 5-way root-cause decision matrix in docs-site/src/content/docs/reference/cli/agents.md.

Verification

  • bun test tests/images/loop.test.ts tests/web-search.test.ts tests/bridge.test.ts tests/debug.test.ts tests/openai-chat-hardening.test.ts tests/terminal-continuation-owner-rotation.test.ts tests/core-lab-boundary.test.ts (252 passed, 0 failed)
  • bun run typecheck (strict pass across proxy and integration gateway)
  • bun run privacy:scan (passed, zero secrets or raw logs detected)
  • cd docs-site && bun run build (401 pages rendered)

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

@github-actions

Copy link
Copy Markdown

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the enhancement New feature or request label Aug 25, 2026
@yansigit
yansigit merged commit e1a5a52 into dev Aug 25, 2026
24 checks passed
@yansigit
yansigit deleted the codex/routed-model-diagnostics branch August 25, 2026 02:59
cursor Bot pushed a commit that referenced this pull request Oct 12, 2026
…ge-jun#6091) (lidge-jun#6172)

* fix(devin): resolve models through catalog family metadata

Parse ClientModelConfig #23 ModelInfo, #30 ModelFamilyMetadata and #31
default flag. A family id with no effort now selects the family's default
member (swe-1-7 -> swe-1-7-medium, not the Max row), an effort moves only
the effort axis to the nearest rung, Fast Mode and 1M Context follow only
explicit requests, and resolution never leaves the family. The suffix
fallback's variant scan matches the collapsed base instead of a string
prefix, so claude-opus-5 no longer lands on claude-opus-5-5-*.

The picker collapses by family, reads ladders from the effort axis, and
advertises the family default as defaultReasoningEffort; swe-1-6-fast
stays its own row. swe-1-6 is marked text-only (live: it drops images
silently) so the vision fallback applies.

Uncapped turns send the selected row's catalog maxOutputTokens instead of
8192. CompletionConfiguration #3 is max_newlines, now a fixed value; the
input-ceiling plumbing that fed it a context window is removed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 09b9e6d)

* fix(devin): round a missing effort rung up, never down

An effort a family lacks now selects the lowest rung at or above it, then
the highest below. Nearest-rung sent `high` on SWE-1.7 (Medium, Max) to
Medium; it now selects the Max row. A disabled default rounds up the same
way and falls back down only when nothing above it is enabled.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit ed6449e)

* fix(devin): keep a named disabled row and never lower effort for a toggle

A disabled exact uid asked for with an effort that still selects it (swe-2-max
at max) is now sent as named, so the preflight reports that row's refusal
instead of quietly serving swe-2-high. Family selection now ranks "effort not
lowered" ahead of the non-effort axes: a Fast anchor asked for at a rung the
Fast rows lack falls back to the regular row at or above that rung, and an
unranked member counts as lower. none is exempt, so Thinking-off still wins.

Co-authored-by: Sayo <[email protected]>

* fix(devin): advertise minimal family effort

Co-authored-by: Sayo <[email protected]>

* fix(devin): publish effective family default effort

Co-authored-by: Sayo <[email protected]>

---------

Co-authored-by: Sayo <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant