Skip to content

Propose independent bug diagnosis - #312

Open
vshvedov wants to merge 13 commits into
google:mainfrom
vshvedov:docs/independent-bug-diagnosis
Open

vshvedov wants to merge 13 commits into
google:mainfrom
vshvedov:docs/independent-bug-diagnosis

Conversation

@vshvedov

@vshvedov vshvedov commented Nov 5, 2026 •

Copy link
Copy Markdown

Contribution Type

Track: Feature / Architectural Change -- Stage 1: Design Doc PR

Refs #294. Scope approval and design-ready are pending. Implementation stays in draft #292 until the design merges and the issue receives pr-ready.

Summary of Key Changes

Separates the design proposal from #292, as requested in review. It defines how a fresh reviewer investigates a bug without seeing the parent agent's suspected cause, then compares the evidence before any fix.

Adds only docs/designs/diagnose.md and its index entry, covering goals, non-goals, host limits and validation. Adapted from my elephant-goldfish and ClaudeFlows workflows.

Aligned the artifact filenames, host boundaries and verification plan with the diagnosis workflow.

Suggested label: docs.

The formal review led to a stricter hypothesis boundary, explicit outcomes and a file-level implementation plan. The parent saves its hypothesis only after the Goldfish has stopped.

Updated implementation targets for the current homepage and skill reference, canonical archive packaging and Windsurf routing.

Human Accountability Affirmation

  • I am a human contributor. I have personally reviewed, understood, and can explain every line of this change in review (using AI tools to write code is welcome, but human understanding of the submitted change is required).

Verification

  • Passed: python -m pytest tests/unit: 340 passed, 2 optional native-host probes skipped, including relative-link checks.
  • Passed: git diff --check; only the proposal and design index differ from the base.
  • Not applicable: live harness tests for this documentation-only PR. Implementation validation is recorded in Add independent bug diagnosis #292.

Formal egm-review completed all five stages on 27f6cae. The revision addresses the main findings. Documentation checks pass, and the file plan matches #292.

Latest validation: relative-link checks (2) and git diff --check passed. Only the design proposal and its index entry differ from current main.

Added the concrete cache-key example from the retained Claude fixture, including the parent's initial expiration theory, the independent cache-key evidence and the proposed distinguishing check. It is explicitly identified as a seeded test, so a real development-bug pilot remains required. Further packaging and host work stays deferred.

Updated against main 7d1b721. Latest validation: 388 unit tests passed, two optional native-host probes skipped; Ruff 0.17.4 and git diff --check passed. Only the design proposal and its index entry differ from main.

@vshvedov vshvedov mentioned this pull request Nov 5, 2026
1 task done
@vshvedov
vshvedov marked this pull request as ready for review November 5, 2026 19:14

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 99bc5da. Track 2 Stage 1 fits the template: Refs #294, the design doc and the index row, and the design matches what I asked for in #292, including the stop on Cursor, Copilot CLI and OpenCode. #294 has no design-ready yet and the Stage 1 /egm-review pass has not run, as the description says. Seven [P3] items inline.

I ran tests/unit at this head on Python 3.15 (336 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass.

Comment thread docs/designs/README.md Resolved
Comment thread docs/designs/diagnose.md Resolved
Comment thread docs/designs/diagnose.md Resolved
Comment thread docs/designs/diagnose.md Resolved
Comment thread docs/designs/diagnose.md Resolved
Comment thread docs/designs/diagnose.md Resolved
Comment thread docs/designs/diagnose.md Resolved
@vshvedov vshvedov mentioned this pull request Nov 5, 2026
1 task done

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 27f6cae. My seven 99bc5da threads are addressed, including the host names in the non-goals and the file list in step 3 of the plan. No new findings at this head.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #294 still has no design-ready, as the description says.

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 7222c59. The document is restructured since 27f6cae into problem, architecture, an outcome table, risks, a plan, target files and verification, the same shape as #313. My earlier threads still hold in the new structure, and the target-files table matches the 35 files and actions in #292. Three [P3] items and one nit inline.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #294 still has no design-ready, as the description says.

Comment thread docs/designs/diagnose.md Resolved
Comment thread docs/designs/diagnose.md Resolved
Comment thread docs/designs/diagnose.md Resolved
Comment thread docs/designs/diagnose.md Resolved

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at a9f2253. My four 7222c59 threads are addressed: the adapter and its namespace are named, not compared says original hypothesis, the run directory is named and step 2 excludes every earlier run, and line 51 wraps. The new earlier-run boundary in the goals, risks, plan and verification matches #292 at d988f01, and the target-files table matches its 35 files. One [P3] and one nit inline.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #294 still has no design-ready, as the description says.

Comment thread docs/designs/diagnose.md Resolved
Comment thread docs/designs/diagnose.md Resolved

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at a8fc924. Both a9f2253 threads are addressed: step 1 now lists the blocking run directories and the move the developer makes, which matches the prior-run case in test_claude_diagnosis.py at #292 d988f01, and the verification terms are unified. One nit inline.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #294 still has no design-ready, as the description says.

Comment thread docs/designs/diagnose.md Resolved
@n3wth n3wth added the docs Improvements or additions to documentation label Nov 6, 2026
@vshvedov
vshvedov requested a review from n3wth November 6, 2026 14:22

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-reviewed at 741de00. The only change since a8fc924 is the one-word fix from my nit: step 1 now says repeat run, which matches line 120 and the commit title. No earlier-run or exclusion term drifts remain in the file. No new findings at this head.

I ran tests/unit at this head on Python 3.15 (340 passed, 2 skipped), git diff --check is clean, this is on top of current main, and cla/google, check-changes and the scope/template check pass. #294 still has no design-ready, as the description says.

@vshvedov
vshvedov requested a review from a team as a code owner November 7, 2026 17:30
@briansuchy
briansuchy removed request for a team and drensin November 11, 2026 20:04
@briansuchy
briansuchy requested review from a team and briansuchy and removed request for a team, briansuchy, eewing314, quinnjim and tearseb November 11, 2026 20:04
@n3wth n3wth changed the title docs(design): propose independent bug diagnosis Propose independent bug diagnosis Nov 12, 2026
@vshvedov
vshvedov requested a review from n3wth November 12, 2026 14:51

@n3wth n3wth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 752f8df.

One update against current main: the target-files table lists site/src/components/Skills.astro, which no longer exists. Please point it at the current skill listing in site/src/components/Home.astro. This prevents the implementation plan from naming a deleted write target.

@n3wth

n3wth commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

@vshvedov, I’d try this one first. Could you add one bug example where the fresh reviewer found evidence the parent missed or ruled out a plausible cause? That would help us decide whether this needs a dedicated skill.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants