Skip to content

Instantly share code, notes, and snippets.

@grahama1970
grahama1970 / codex_review_bundle.md
Created September 28, 2025 18:24
Codex Review Bundle (Single) 2025-09-28

Codex Review Bundle (Single File)

  • Repo root: /home/graham/workspace/experiments/codex
  • Date: 2025-09-28

Executive Verdict

Readiness: ✅ Generic pre‑hooks are correctly wired and tested.

Findings by Focus Area

@grahama1970
grahama1970 / litellm_review_bundle.md
Last active September 28, 2025 17:07
LiteLLM readiness smoke review bundle (single file) - 2025-09-28

LiteLLM Readiness Smoke Review — 2025-09-28

Overall Assessment

  • Strict readiness command: . .venv/bin/activate && READINESS_LIVE=1 STRICT_READY=1 READINESS_EXPECT=all_smokes_core python scripts/mvp_check.py (red).
  • Core deterministic tests pass; failure confined to all_smokes_core smoke suite.
  • ND-real coverage remains absent unless ND_REAL=1, so deploy readiness currently lacks variance checks.

Failures & Evidence

  • tests/smoke_optional/test_agent_proxy_validation_errors.py::test_agent_proxy_headers_precedence expects merged headers {'x-env': 'B', 'x-req': 'C'} but records {}.
  • tests/smoke_optional/test_agent_proxy_headers_and_errors.py runs earlier in the suite and replaces HttpToolsInvoker; it appears the override persists into the failing test.
  • Running the failing test in isolation inside .venv passes, supporting the shared-state hypothesis.
@grahama1970
grahama1970 / review_bundle__agent_proxy.py
Last active September 28, 2025 17:01
LiteLLM readiness smoke review bundle with code - 2025-09-28
# Source: litellm/experimental_mcp_client/mini_agent/agent_proxy.py (lines 160-239)
if bool(inv.get("ok")):
return inv
return None
except Exception:
return None
# Compute escalation metadata eagerly
escalated = bool(req.escalate_on_budget_exceeded and req.escalate_model)
used_model = req.escalate_model if escalated else req.model
@grahama1970
grahama1970 / review_bundle_prompt_response.md
Created September 28, 2025 16:55
LiteLLM readiness smoke review - 2025-09-28

Review Bundle Findings — LiteLLM Readiness Smokes

1. Regression Snapshot

  • Command: . .venv/bin/activate && READINESS_LIVE=1 STRICT_READY=1 READINESS_EXPECT=all_smokes_core python scripts/mvp_check.py
  • Failure: tests/smoke_optional/test_agent_proxy_validation_errors.py::test_agent_proxy_headers_precedence
  • Root symptom: headers recorded by the tool invoker are {} instead of request overrides ("X-Env": "B", "X-Req": "C").

2. Primary Root Cause

  • tests/smoke_optional/test_agent_proxy_headers_and_errors.py replaces litellm/experimental_mcp_client/mini_agent/agent_proxy.HttpToolsInvoker with _FakeInvoker and never restores it. Because pytest runs smoke_optional tests in a single process, the override survives into the next test and prevents the header precedence contract from being exercised with the real invoker.
  • Evidence:
@grahama1970
grahama1970 / codex_review_bundle.md
Created September 28, 2025 16:50
Codex Review Bundle (Single) 2025-09-28

Codex Review Bundle (Single File)

  • Repo root: /home/graham/workspace/experiments/codex
  • Date: 2025-09-28

Executive Verdict

Readiness: ✅ Top risks are low and localized to config and CLI glue.

Findings by Focus Area

@grahama1970
grahama1970 / REVIEW_BUNDLE_PROMPT.md
Created September 28, 2025 16:35
LiteLLM Smokes Review Bundle Prompt

External Review Prompt (Canonical v3)

Goal: Deliver a blunt, evidence‑backed production‑readiness assessment and a minimal patch set (unified diffs) with tests and doc updates. No broad refactors. Ship safety first.

Reviewer persona & tone

  • Principal SRE/DevOps + AppSec mindset; fluent with Linux userland (systemd, Docker/OCI, rsync/tar), CI, and Python/Node toolchains.
  • Be terse, specific, and fail‑closed. Unverified claims must be called out and marked 🔴 or 🟡.

Project context (declare at top of your report)

  • Project:
@grahama1970
grahama1970 / codex_review_bundle.md
Created September 28, 2025 16:11
Codex Review Bundle (Single) 2025-09-28

Codex Review Bundle (Single File)

  • Repo root: /home/graham/workspace/experiments/codex
  • Date: 2025-09-28

Executive Verdict

Readiness: ✅ Top risks are low and localized to config mapping and CLI glue.

Findings by Focus Area

@grahama1970
grahama1970 / REVIEW_BUNDLE_PROMPT.md
Created September 28, 2025 16:09
Codex Review Bundle 2025-09-28

Codex Review Bundle Prompt (Project‑Tailored)

Goal

  • Produce a concise, evidence‑backed technical review of Codex (Rust workspace: CLI/TUI/core), with minimal patches (unified diffs), tests, and docs. Return a single public Gist URL that contains the full review bundle.

Reviewer profile & tone

  • Senior Rust engineer with AppSec + CLI/TUI experience (cargo, clippy, ratatui, insta snapshots, MCP). Terse, specific, fail‑closed. Mark unverified claims 🔴/🟡.

Project anchors

  • Repo root:
@grahama1970
grahama1970 / review_bundle
Created September 28, 2025 15:11
Codex Review Bundle 2025-09-28
This file has been truncated, but you can view the full file.
# Project Bundle
- Generated: 2025-09-27T17:43:50Z
- Root: /home/graham/workspace/experiments/codex
- Git: 5c67dc3+dirty
- Files: 205
- Bundle Part: 1
- Context Tokens Limit: 400000
---
@grahama1970
grahama1970 / reviewbundle2.ahrcBc.md
Created September 27, 2025 21:43
All-smokes split still timing out: focused diffs (TTL 15m)

All‑Smokes Gate Still Timing Out/Fails in Split — Targeted Debug + Patch Requests Created: 2025-09-27 TTL: Private, delete within 15 minutes after review

Summary

  • We split the composite all_smokes gate into all_smokes_core + all_smokes_nd and added per‑check timeouts, xdist and PYTEST_ADDOPTS pass‑through.
  • The orchestrator no longer dies universally, but we still see:
    1. Harness timeouts under certain runs (improved but still possible on slow hosts).
    2. True FAILs in all_smokes_nd due to env/base mismatches (see below) — these are not red in isolation.