Skip to content

Decision-state instability: expected ASK interrupted in ~1/3 of claude-code runs #2

Open

Description

@angel291592

In the 2026-09-22 Claude Code runs, the failure-behaviour question that should trigger ASK was skipped in 3-shot sampling: add-caching-explicit 1/3, two-turn 1/3, fully-specified 1/3, vague-no-ask 1/2.

Rules already added (enumerate failure paths, ask-order: behaviour/contract first and internal structure never asked, excluding an option ≠ resolving an unknown) moved things in the right direction but haven't fully converged.

Plan: add a positive-contrast fixture next to the §4.1 iron rule (a route.yaml/ask.yaml-style scenario showing what "fully specified" looks like), then re-verify on a clean channel (tracked in the clean-channel re-run issue).

Activity

  1. added
    bug
    help wanted
    on Oct 3, 2026
  2. angel291592 commented on Oct 3, 2026

    @angel291592
    OwnerAuthor

    Confirmed as a defect: an ASK that should fire and does not is the failure mode this skill exists to prevent, so the non-determinism is the finding, not the rate.

    What makes this hard to close is that the three rules already added (enumerate failure paths, ask-order with behaviour/contract first and internal structure never asked, excluding an option is not resolving an unknown) each moved the rate without converging it. The proposed next step — a positive-contrast fixture beside the §4.1 iron rule, showing a route.yaml/ask.yaml-style scenario where "fully specified" is visibly satisfied — is the right instrument, because the current cases only show what should trigger ASK, never a worked example of the silence check passing.

    Acceptance: with the fixture in place, a 3-shot run shows the expected ASK firing on add-caching-explicit, two-turn, fully-specified, and vague-no-ask, and the silence check still passes on the fully-specified arm.

    One thing to settle before the re-run, since it changes what a pass means: the rates quoted here (1/3, 1/3, 1/3, 1/2) came off the 2026-09-22 channel that forced thinking off and answered English prompts in Chinese. Those runs cannot separate a skill defect from a channel defect, which is exactly why the report was withdrawn and Claude Code dropped to spec-compatible. So the clean-channel re-run in #1 is a prerequisite for measuring this, not a parallel task — otherwise a fix that only works on the unrestricted channel will read as a regression.

  3. angel291592 commented on Oct 10, 2026

    @angel291592
    OwnerAuthor

    Checking the acceptance above against the current suite turned up two things, 2026-10-10.

    1. add-caching-explicit is not a case id any more. It was a duplicate of add-caching-two-turn — same prompt, mode and fixture, with the same assertions — and in 009c74b it was folded into that case's expect_turn1, where its assertions are still measured, on the first turn. Only the old id survives, as a leftover key in the runner's case-cost table, ordering nothing. The rates at the top of this issue are fine as history — that was the id when the 2026-09-22 runs were taken — but an acceptance written today has to name a case that can fire: add-caching-two-turn (turn 1), fully-specified, vague-no-ask.

    2. The fixture under Plan has a size cost that is not stated here. SKILL.md sits exactly at its 500-line budget, so a worked example beside the §4.1 iron law has to be paid for with an equal deletion elsewhere, or the budget itself has to be raised. That is a decision rather than a side effect of the fix, and it is worth settling before the example is written, because it decides how much of the example survives.

    On the dependency: the acceptance needs a run that can attribute a miss to the skill rather than to the channel, which is what #1 is for. The earlier comment's point still holds — a fix that only works on the unrestricted channel reads as a regression when measured on a constrained one.

    None of this changes the defect: an ASK that should fire and does not is the failure mode this skill exists to prevent.

  4. angel291592 commented on Oct 21, 2026

    @angel291592
    OwnerAuthor

    One input to the open question above changed, 2026-10-21.

    SKILL.md is 493 lines against its 500-line budget — it was at the cap when the 2026-10-10 comment was written. A worked example beside the §4.1 iron rule therefore now has 7 lines of headroom rather than zero: a compact example could land without deleting anything, while a longer one still needs an equal deletion or a raised budget.

    The rest of the 2026-10-10 reading stands, and measuring the fix still depends on the clean-channel run in #1.

  5. permadee commented on Nov 6, 2026

    @permadee
    Contributor

    Split the 1/3 into judge variance and model variance before adding fixtures

    The positive-contrast fixture is the right long-term intervention, but waiting for the clean-channel rerun leaves the current "~1/3 of runs" number undiagnosed. The transcripts that already exist can separate the causes without spending a single new session:

    a. Rescore the failing transcripts first. Run --rescore over the raw directory that produced the 1/3. If any run's verdict flips between the original judgment and the rescore, the instability is in judging or parsing, not in the model's decision. Issue #4 is one concrete path: a line starting with $ inside tool output is currently treated as a turn boundary, so the turn that carried the ASK can be dropped, and the case then reports "no ASK" for a run that actually asked. A parser fix is cheaper and more durable than another prompt tweak.

    b. Bucket the stable failures by last-turn status. For transcripts whose verdict does not move under rescore, at least four shapes are hiding behind "expected ASK interrupted":

    • no_fence with a prose question present — the model asked, but not in the yaml shape. That is a format-compliance problem.
    • no_fence with no question at all — true decision drift, which is what the contrast fixture is for.
    • degraded_output — the yaml was emitted but unparsable. That is a parser or prompt-format problem, not a decision problem.
    • harness_error / timeout — environment, and it should be excluded rather than counted.

    These have different fixes. Reporting them as one rate makes the skill look less deterministic than it may be, and makes the fixture's eventual effect impossible to attribute.

    c. Surface the evidence per run. question_evidence, question_maybe_missed, and the last-turn status already exist in meta.json and in the delivery snapshots. Put them in the per-run table (or at least in the appendix). Today a genuine "did not ask" and a parse failure look identical in the summary, which is exactly the ambiguity that produced this issue.

    On the fixture itself: SKILL.md is at 493/500 lines per the earlier comment, so the worked example has 7 lines of headroom. A compact contrast pair needs at most four:

    ASK when the goal is named but the success test is not:
      "make login faster"        → ASK which latency budget
      "make login < 200 ms p95"   → no ASK; implement
    

    It should contrast the two cases, not restate §4.1's rule — the rule is already there; the missing thing is a demonstration that the boundary is real. If it needs more than seven lines, something else has to leave the file first, otherwise the fixture lands by breaking the budget it is meant to protect.

    Acceptance: at least five runs per arm, report the ASK rate with raw counts (a confidence interval if there is room), and apply the same rescore-equivalence check proposed for #1, so the result is not dependent on the parser du jour.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions