DSH familySearch GitHub

Behavior

Hook

60  hook on 7  seam, in the order a conversation reaches them.
Hook
60
Two releases
Seam
7
Distinct events
Classic
30
Effect-TS
30

Trajectory

One turn, seam by seam. The lens names what the hooks at that seam see and change.

  1. 01

    system-prompt/assemble

    Prompt 2 hook +4 arm
    Model 2 rewrite
  2. 02

    llm/stream

    Text 12 hook
    Model 12 rewrite

    Normalizes the dash, ellipsis, fullwidth, invisible, quotes, spaces classes

  3. 03

    tools/pre-execute

    Tool 4 hook +4 arm
    Model 2 rewrite / 2 advise
  4. 04

    tools/post-execute

    Tool 20 hook +16 arm
    Model 4 rewrite / 16 advise
  5. 05

    batch/proposed

    Batch 2 hook
    Model 2 record
  6. 06

    fs/observed

    File 18 hook
    Model 8 rewrite / 10 record
  7. 07

    agent/status

    State 2 hook
    Model 2 advise

Seam

The same order, as one path.

system-prompt/assemble2 hooksllm/stream12 hookstools/pre-execute4 hookstools/post-execute20 hooksbatch/proposed2 hooksfs/observed18 hooksagent/status2 hooks
The seven seams a turn reaches, and the hooks at each.

Transform

What the model emits on the left, what the transcript stores on the right.

  1. normalize-dash U+2014 — - the dash family: em, en, and seventeen exotic relatives
  2. normalize-ellipsis U+2026 … ... the single ellipsis character, default replacement
  3. normalize-quotes U+201C “ " eight typographic quotes to their straight ASCII counterpart
  4. normalize-spaces U+00A0   exotic spaces to the plain ASCII space
  5. normalize-fullwidth U+FF21 A A the fullwidth ASCII block back to halfwidth
  6. normalize-invisible U+200B ​ removed zero-width, joiner, bidi, and BOM characters removed

One character, end to end follows the dash from the model to the ledger.