Skip to content

Four absence assertions in U1c's tests that their input cannot contradict #747

Closed

Description

@SSFSKIM

Four test cases of the "Approve and retry" landing (UX wave U1c) assert an absence that their input cannot contradict, or cannot contradict for the reason the case names. None is a product fault: in each, another assertion or another case carries the claim. They were found by a read of every absence assertion in batch 3's new tests (153 lines; two that held whatever the readers did were fixed before landing, in transcript/model/journals.test.ts and composer/editor/history.test.ts). Places are as of commit 5278e5793.

  1. src/renderer/src/blocked-call/ApproveAndRetry.test.tsx, "a blocked shell call with run_in_background: true, an MCP tool's blocked call, and a call the classifier could not judge draw no button": the assertion runs inside a loop over the cells whose classification holds a denial. If the derivation gave no such cell, the loop would assert nothing. Remedy: assert first that the loop's cell count is above zero (three cells here).

  2. src/shared/engine/arrival.test.ts, the forged inputs run over routes(): for a queued prompt whose content is text blocks, attachmentRow in src/shared/engine/arrival.ts reads the consent with readConsents on the whole joined text, so the input "two text blocks" reads none on that route whatever rule R (the reading of the person's lines) does. The same holds for the file route of blocked.test.ts on the recording u1c-b-1. Remedy: a forged input for that route that reaches rule R, or a comment saying which other case carries the claim for the route.

  3. src/renderer/src/transcript/model/journals.test.ts, "the one-writer rule: a ! command holding the consent sentence": on the live route the engine host drops the bash_command write and returns on the echo's shouldQuery: false before it reads arrivals (src/engine-host/normalizer.ts), so "the live route marks no consent" and "no approval drawn" cannot exercise rule R there. The case's last line (grantsReadFrom on each frame's content) carries the claim. Remedy: as for item 2.

  4. src/shared/engine/arrival.test.ts, "the grant on a row of another plugin, submitted as the user or appended, and in a peer's inbox message, is no approval": the appended row of plugin lint-helper reads none, and an appended row of any plugin would, so the line cannot fail on the plugin's name. Remedy: a positive beside it that only the intended plugin's name yields, in the appended form.

Size: one small test-only change. No behaviour changes.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    on Nov 17, 2026
  2. SSFSKIM commented on Nov 17, 2026

    @SSFSKIM
    OwnerAuthor

    A fifth item of the same kind, from the Send now landing (U4b), reported by the author of its pull request body and not yet checked: in src/renderer/src/composer/queue/take-back-lifecycle.test.tsx four assertions expect queryByText(TAKE_BACK_WORDS.taking) to be null; that string is the editor's disabled reason in Composer.tsx, and if it is never drawn as text the four assert nothing. Remedy: check where the reason is drawn and assert on that place, with one positive while the take-back is in flight.

  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  4. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: batch 7, group D

  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  6. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: batch 7, PR #804

  7. removed
    status:in-review
    on Nov 20, 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

    bugpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions