Skip to content

verify-open-pstack: accept only the resolver launcher in the Reflect recipe, and give the fixture openers equal length #152

Closed

Description

@ericlitman

Outcome

The Reflect live-gate recipe checks the documented resolver route, and its fallback case cannot pass on a character-count comparison.

Context

PR #151 (#140) merged under an exact-head waiver on reviewed head 4 (65101cd), which Eric approved on 2026-10-11. Two of the waived Unfret findings are small, real gaps that we decided to fix as follow-up work:

  • v1:49f896b and v1:8afb6f2. .claude/skills/verify-open-pstack/features/recipes.ts accepts a Codex command that names either the sh launcher plugins/pstack/skills/poteto-mode/scripts/resolve-codex-transcript or the .ts file. Running the .ts file directly with bare bun skips the launcher's --no-env-file --config=/dev/null, so a project's .env or bunfig.toml preload could affect that route. The mapping (codex-tools.md#active-transcripts) documents only the launcher.
  • v1:0c2c1cb. The fixture's requested opener and its unrelated opener have different character counts. A parent that compares only characters would choose the right outcome in both cases without using the SHA-256.

Acceptance criteria

  • The Codex Reflect evidence accepts only a command that names the launcher's path as a whole pathname, either as installed or as its realpath. A command that names only the .ts file fails, even though the launcher path is a prefix of it. Retired 2026-10-12, accepted as unmet by Eric. The live gate cannot attest which executable ran without parsing shell, which the PR fix(reflect): resolve known Codex transcripts at the harness boundary (#140) #151 step-back decision rules out. Three reviewed heads of PR fix(verify): accept only the resolver launcher and equalize the Reflect fixture openers (#152) #164 each drew new shell spellings. The launcher's isolation from project Bun config and .env stays proven by resolve-codex-transcript.test.ts:313. The Codex evidence stays as on main: a completed command naming the launcher or the .ts file, with the exact run-specific resolver output. Record: ~/projects/docs/projects/open-pstack/records/2026-10-12-batch-153/stepback-164b/decision.md.
  • The unrelated opener in the fallback fixture has exactly the same character count as the requested opener. A test asserts that the two counts are equal.
  • The live gate runs claude:skill-invocation:reflect and codex:skill-invocation:reflect with --self-test from the candidate head.

Constraints

Do not reintroduce shell parsing or report-text scanning. The step-back decision on PR #151 records why, at ~/projects/docs/projects/open-pstack/records/2026-10-11-batch-146/stepback-151/decision.md.

Introduced by: #151

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

Activity

  1. ericlitman commented on Oct 12, 2026

    @ericlitman
    OwnerAuthor

    Design pass (2026-10-12, Astra high, read-only at 748a9bc)

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

    Accepted

    • Removing the .ts path from the accepted list is not enough. recipes.ts:178-181 matches with includes(), and the launcher path is a prefix of resolve-codex-transcript.ts, so a .ts command would still pass. Match the launcher path as a whole pathname: bounded by a quote, whitespace, a shell separator or the string's end. This is a lexical boundary check, not shell parsing.
    • "Accepts only the launcher" means the captured command names the launcher and produced this fixture's expected output. It does not prove which executable ran. That is the existing evidence standard.
    • Replace the unrelated opener with a different ASCII sentence of exactly the same length, with different content and hash. Assert equal length with the same .length convention the recipe uses.
    • Tests: a launcher-positive case and a .ts-negative case with identical valid output, quoted and wrapped spellings, and genuinely distinct installed and realpath paths through a temporary symlink.

    Rejected

    • None.
  2. added a commit that references this issue on Oct 12, 2026
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