Skip to content

Envelope split: three small consistency items (built-worker guard, recall by content, the search worker's origin gate) #715

Closed

Description

@SSFSKIM

Three small consistency items left by ticket 704 (the envelope split), each accepted as minor by its reviews (the task review and a reviewer-high on the fix wave). None is known to be reachable by a message a current producer writes.

  1. A guard that runs the built search-text worker. The worker (src/engine-host/fs/search-text.ts) is built by interpolating functions' sources (the backfill's parseBash among them). A function that reached outside its arguments would fail only inside the worker at call time. 704 checked this once with a script that was not committed. To do: a test beside bundle-guard.test.ts that loads the built worker chunk and runs it over a small invented transcript, asserting the text it returns.

  2. The up-arrow recall classifies by joined text. The recall (src/renderer/src/composer/editor/history.ts) applies the envelope test to a row's joined text, so two text blocks that each fall short of an envelope but form one when joined would be drawn as a bubble yet skipped by the up-arrow. It records nothing and hides nothing. To do: classify the row by its content through answerEnvelopeOf (in src/shared/engine/persons-message.ts), with a case for that shape.

  3. The search worker's origin gate differs from the backfill's for an unknown origin kind. The worker keeps the envelope in a row whose origin names a kind it does not know; the backfill lowers such an origin to null and splits the message, so the search text and the transcript can differ for that row. To do: the worker treats an unknown origin kind as the backfill does, with a row-level regression case run through both.

Acceptance: each item has its test; the guard test src/shared/engine/envelope-readers.test.ts still passes with no new allowance.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 16, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  3. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

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

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

    @SSFSKIM
    OwnerAuthor

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

  6. 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

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions