Skip to content

Claude Reflect live-gate case fails honest runs that verify the opener with a hash-only read #166

Closed

Description

@ericlitman

Outcome

The Claude Reflect live-gate case passes every honest run that resolves the fixture transcript correctly, and still fails a run that never read the transcript.

Why

On 2026-10-12, claude/skill-invocation:reflect/locate-transcript failed with reflect-transcript-not-read in 2 of 3 live-gate runs on PR #165, and passed in the third. In both failures the Claude parent read transcript-home/projects/fixture/known.jsonl with a Python script that printed each line's type and keys, plus the opener's character count and SHA-256. It found the opener on line 2 with the matching hash and wrote the correct result.json.

The assertion at .claude/skills/verify-open-pstack/features/recipes.ts:187 requires some completed top-level tool result to contain the run's nonce. A hash-only read never prints the record, so an honest, correct run fails. REVIEW.md says the live gate must reach a correct gate decision on every honest run.

Introduced by: #151

Files: .claude/skills/verify-open-pstack/features/recipes.ts, .claude/skills/verify-open-pstack/scripts/reflect.test.ts

Acceptance criteria

  • Given a Claude session whose tools read the fixture transcript and print only the opener's line, length and SHA-256, and whose result.json is correct, when the recipe asserts, then it passes.
  • Given a session that writes a correct-looking result.json without reading the transcript, when the recipe asserts, then it fails.
  • The evidence stays within the standard in REVIEW.md (Usage facts): a harness-recorded command plus a receipt or output that carries this run's paths, markers or results. No report-text scanning and no shell parsing (PR fix(reflect): resolve known Codex transcripts at the harness boundary (#140) #151 step-back decision).
  • The live gate runs claude:skill-invocation:reflect with --self-test from the candidate head.

Design

See the 2026-10-12 design-pass comment: the per-run nonce goes in the fixture transcript's file name, and the assertion pairs a read naming that file with output showing the opener or its SHA-256.

Source: batch 153 infrastructure ledger, 2026-10-12.

Activity

  1. ericlitman commented on Oct 12, 2026

    @ericlitman
    OwnerAuthor

    Design pass (2026-10-12, Astra high, read-only at 1ee999b)

    Record: ~/projects/docs/projects/open-pstack/records/2026-10-12-batch-153/design-166.md (private docs repo).

    Accepted

    • The three recorded sessions explain the split. Both failing sessions printed line 2, 54 characters and the correct SHA-256 with match True, and one used a relative path. The passing session printed the whole user record, UUID included, which is what the current predicate needs.
    • The design suggestion in the body is withdrawn. The prompt gives the opener verbatim, so a nonce in the opener makes its hash computable without reading the file, and withholding the nonce makes the fixture opener differ from the requested one.
    • New design: put the existing per-run nonce in the Claude fixture transcript's file name, and keep both opener strings unchanged. Keep the file name out of the prompt. Accept a completed, successful top-level Read or Bash call that names that file name in its path or command, and whose output contains the actual opener or its SHA-256. For the fallback case, check the unrelated opener. Matching is literal, with no shell parsing.
    • Tests: both read forms, absolute and relative paths, both cases. Rejection of report-only, metadata-only, failed, pending, child-agent and stale evidence. Direct Codex coverage for the equal-length openers from verify-open-pstack: accept only the resolver launcher in the Reflect recipe, and give the fixture openers equal length #152.
    • Limit, stated in the PR: literal matching does not prove execution, which is REVIEW.md's evidence standard.

    Rejected

    • Removing the unrelated 5,000-byte report cap. No outcome of this issue names it.

    Delivery

    This builds on PR #164's branch, because it edits the same two files. If PR #164 merges first, it opens as its own PR. Otherwise it folds into PR #164 after Unfret's verdict on that PR's current head.

  2. ericlitman commented on Oct 12, 2026

    @ericlitman
    OwnerAuthor

    The fix (5248ae5) rides in PR #164, which edits the same two verifier files. PR #164 now closes both #152 and #166.

  3. ericlitman commented on Oct 12, 2026

    @ericlitman
    OwnerAuthor

    Eric decided on 2026-10-12 to remove the 5,000-byte report cap. That one-line change rides in the #127 PR (f7c9c3a), because PR #164 was already under review.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions