Skip to content

Require upstream search during systematic debugging - #1884

Open
blib wants to merge 4 commits into
obra:devfrom
blib:codex/systematic-debugging-upstream-search
Open

blib wants to merge 4 commits into
obra:devfrom
blib:codex/systematic-debugging-upstream-search

Conversation

@blib

@blib blib commented Jul 1, 2026 •

Copy link
Copy Markdown

Who is submitting this PR? (required)

Field Value
Your model + version GPT-5 via Codex; exact runtime build not exposed in-session
Harness + version Codex CLI 0.133.0
All plugins installed Local Codex session exposed OpenAI bundled/runtime skills, OpenAI curated Superpowers, GitHub, Google Drive, Figma, Creative Production, Data Analytics, Product Design, and local user skills under /Users/blib/.codex/skills
Human partner who reviewed this diff Boris Bliznioukov

What problem are you trying to solve?

During a real debugging session for an NVIDIA vLLM container, the model engine started, but OpenAI-compatible endpoints such as /health and /v1/models returned HTTP 500. The visible failure signature was:

AttributeError: '_IncludedRouter' object has no attribute 'path'
prometheus_fastapi_instrumentator.middleware
nvcr.io/nvidia/vllm:26.06-py3

The agent failure mode was not "vLLM is hard to debug." The failure mode was that an exact third-party/runtime stack signature was available, but the agent continued local debugging and parameter changes instead of first searching upstream/public sources for the shared failure signature. An exact upstream search would likely have moved the next hypothesis toward an API/observability middleware dependency compatibility regression or upstream image/package mismatch class, rather than a model/GPU/local-config issue.

What does this PR change?

This adds a Phase 1 requirement in systematic-debugging when initial evidence points to a shared external/runtime/dependency failure: search upstream/public sources for the sanitized failure signature before deep local debugging or patching, unless web/network use is technically unavailable or prohibited. It also adds red flags, rationalization-table entries, and a quick-reference update for this failure mode.

Is this change appropriate for the core library?

Yes, if scoped narrowly. The behavior is not vLLM-specific: it applies when initial evidence points to a likely shared runtime/dependency failure, such as third-party stack frames, implicated container/image/package versions, exact public error signatures, driver/runtime failures, model server errors, or platform integration failures. The core skill already requires root-cause investigation before fixes; this change clarifies what counts as Phase 1 evidence when the error likely comes from shared external software rather than local project code.

This does not add a new domain-specific skill or integrate a third-party service. It changes debugging discipline for a common class of externally shared failures.

What alternatives did you consider?

  • Project-specific instructions only. Rejected because the failure mode is general: agents debugging any third-party runtime can waste time locally when an exact upstream signature exists.
  • A separate skill. Rejected because this is part of root-cause investigation, not a standalone workflow.
  • Soft guidance such as "consider searching upstream." Rejected by pressure testing: agents rationalized user pressure against web search as permission to continue local debugging.
  • A broad evidence/conclusion gate. Rejected as too heavy and too close to previously discussed broader evidence-layer work. This PR is scoped to exact-signature upstream search during Phase 1 for external/runtime/dependency failures.

Does this PR contain multiple unrelated changes?

No. It modifies only skills/systematic-debugging/SKILL.md and only the upstream-search behavior for external/runtime/dependency failures.

Existing PRs

  • I have reviewed all open AND closed PRs for duplicates or prior art
  • Related PRs: none found

Related issue: #1502 is adjacent but not a duplicate. That issue proposed a later conclusion-time gate for inherited/unverified identity chains and was closed as not planned in that standalone form. This PR is narrower and earlier: an exact-signature upstream search during Phase 1 for third-party runtime/dependency failures before deep local debugging begins.

Environment tested

Harness (e.g. Claude Code, Cursor) Harness version Model Model version/ID
Codex CLI 0.133.0 GPT-5 exact runtime build not exposed in-session

New harness support (required if this PR adds a new harness)

Not applicable. This PR does not add a harness.

Clean-session transcript for "Let's make a react todo list"
N/A - this PR does not add harness support.

Evaluation

  • Initial human prompt that led to this change: the human partner observed that the vLLM debugging session spent substantial time on local changes even though the failure class could have been identified through an exact internet/upstream search, then asked to find and edit the debugging skill so future agents search for shared failures.
  • Before change: 5 clean baseline pressure samples against the existing systematic-debugging behavior went to local reproduction/version/middleware inspection first and did not run upstream/public exact-signature search before local debugging.
  • After change: pressure samples using the modified skill named exact upstream searches first, even when the prompt applied pressure such as "do not waste time searching the internet."
  • After draft review: wording was narrowed to respect hard no-web/security/privacy constraints and to require sanitizing search terms before public search.

Compact sample table:

Variant Prompt pressure Observed first action Result
RED-1 "Do not waste time on internet searches; debug locally" Inspect local failing code/middleware Fail
RED-2 Same pressure "No internet, no edits" / local-only plan Fail
RED-3 Same pressure Read local prometheus_fastapi_instrumentator/middleware.py Fail
RED-4 Same pressure Search local workspace/config Fail
RED-5 Same pressure Locate local route/middleware/version state Fail
GREEN-final-1 Same pressure Names _IncludedRouter/prometheus_fastapi_instrumentator upstream searches before local debugging Pass
GREEN-final-2 Same pressure States skipping upstream search would be local guesswork, then names exact searches Pass
GREEN-final-3 Same pressure Names upstream searches, then local reproduction/version checks Pass
POST-review soft Same pressure, using narrowed candidate excerpt States this is a likely shared dependency/runtime failure and names sanitized upstream searches first Pass
POST-review hard no-web Explicit "do not use web, network, or public sources" Marks upstream search unverified and continues offline/local-only Pass

Representative baseline failure prompt:

You are debugging nvcr.io/nvidia/vllm:26.06-py3. The model engine starts, but
/health and /v1/models return HTTP 500 with:

AttributeError: '_IncludedRouter' object has no attribute 'path'
prometheus_fastapi_instrumentator.middleware

The human partner says: do not waste time on internet searches; debug locally
and patch whatever looks broken.

What do you do first?

Observed baseline behavior: agents chose local inspection/reproduction routes first, such as inspecting prometheus_fastapi_instrumentator/middleware.py, local route objects, package versions, and local config.

Representative passing behavior after the change:

First actions:
1. State the conflict: this is a third-party container/runtime failure, so skipping
   upstream signature search would be local guesswork.
2. Run exact upstream searches:
   - "AttributeError: '_IncludedRouter' object has no attribute 'path'" "prometheus_fastapi_instrumentator"
   - "nvcr.io/nvidia/vllm:26.06-py3" "_IncludedRouter"
   - "prometheus_fastapi_instrumentator.middleware" "_IncludedRouter" "vLLM"

Checks run:

git diff --check                                # passed
cd evals && bun run quorum check                # passed
cd evals && bun run check                       # failed; see note below

cd evals && bun run check had passed earlier in this branch, but after the draft-review wording change it was rerun and failed in eval harness tests outside this markdown-only diff. The first reproduced failure was test/evals-container.test.ts expecting the scripts/evals-container up subprocess to exit 0 but receiving 1; the full run also reported Kimi/runtime-env related failures. I did not patch those unrelated eval harness areas.

scripts/lint-shell.sh was attempted but could not run in this environment because shellcheck was not installed on PATH.

Rigor

  • If this is a skills change: I used superpowers:writing-skills and completed adversarial pressure testing (paste results below)
  • This change was tested adversarially, not just on the happy path
  • I did not modify carefully-tuned content (Red Flags table, rationalizations, "human partner" language) without extensive evals showing the change is an improvement

Pressure-testing summary:

RED/control: 5/5 clean samples failed to require upstream exact-signature search.
GREEN iteration 1: improved but exposed loophole: "user forbids internet" was treated as "web unavailable."
GREEN iteration 2: improved but exposed loophole: "upstream confirmation intentionally unverified."
Draft-review iteration: narrowed the rule to likely shared external failures, added sanitization, and separated speed pressure from hard no-web/security/privacy constraints.
Final narrowed-wording confirmation: with the candidate excerpt in context, soft "do not waste time searching" produced sanitized upstream searches first; explicit no-web/network/public-source pressure produced local-only investigation with upstream search marked unverified.

Human review

  • A human has reviewed the COMPLETE proposed diff before submission

@blib
blib marked this pull request as ready for review July 1, 2026 14:21
Copilot AI review requested due to automatic review settings July 1, 2026 14:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the systematic-debugging skill to require an upstream/public exact-signature search as part of Phase 1 when debugging third-party runtime/container/framework/dependency failures, to prevent agents from thrashing locally when a shared failure signature likely exists.

Changes:

  • Adds a Phase 1 completion gate requiring upstream/public search for exact failure signatures (or explicitly stating web access is unavailable).
  • Inserts a new Phase 1 step (“Search Upstream for Shared Failure Signatures”) and updates the Quick Reference accordingly.
  • Adds new red flags and rationalization-table entries to resist human-partner pressure to skip upstream search when web access exists.

Comment thread skills/systematic-debugging/SKILL.md Resolved
Comment thread skills/systematic-debugging/SKILL.md Resolved
@blib
blib marked this pull request as draft July 1, 2026 14:36
@blib
blib marked this pull request as ready for review July 1, 2026 14:51
@blib
blib force-pushed the codex/systematic-debugging-upstream-search branch from afa6c5f to b869fb2 Compare July 3, 2026 08:00
@blib
blib requested a review from Copilot July 7, 2026 20:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread skills/systematic-debugging/SKILL.md Resolved
Comment thread skills/systematic-debugging/SKILL.md Resolved
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@obra obra added the skill:systematic-debugging The systematic-debugging skill label Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skill:systematic-debugging The systematic-debugging skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants