Skip to content

doctor.sh: the new verdict arm sits above the no-usable-Python arm, so a broken interpreter reads as an oversized store #359

Closed

Description

@fdaviddpt

Found by the release audit of v0.20.0..HEAD before tagging 0.21.0. Ranked misreports: non-blocking, filed rather than held. Reasoned, not observed — the settling run is named below.

The ordering rule, and the arm that breaks it

scripts/doctor.sh:545-549 states the ladder's rule in the file itself: "Specific causes are named before the general one," added because a generic remedy "fixes neither, on a line commands/doctor.md tells the operator not to second-guess."

The arm #348 added tests _STORE_NEEDS_A_HUMAN at scripts/doctor.sh:567, above the _PYTHON_OK -eq 0 arm at :571. But staging over the cap on its own is the effect of consolidation not running; no usable Python is one cause of it not running.

What the user sees

A user whose Python broke on an already-large store — the Microsoft Store python3 alias this repo documents at scripts/post-tool-hook.sh:461-470 is the realistic route — gets:

VERDICT: problem — memory is being captured but never consolidated; the staging files are over the prompt cap on their own (see above)

with The oversized today-*.md files under $REMEMBER_DIR are the thing to look at. (:458) above it, while the Tools section's Python failure scrolls past on the line the file itself tells operators not to scroll to.

What settles it

One run with _PYTHON_OK=0 and staging over the cap. I did not construct that store.

Shape of a fix

Move the new arm below the _PYTHON_OK arm. Worth a test that pins the ordering rather than the arm, since the rule is now three arms old and stated only in a comment.

Activity

  1. added
    priority:medium
    on Aug 18, 2026
  2. added
    cohort-1
    on Aug 27, 2026
  3. self-assigned this
    on Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cohort-1priority:medium

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions