Skip to content

Stream repetition canceller — wayfinder map #53

Description

@weselben

Destination

The stream-repetition-canceller is merge-ready: every open design decision about the repetition guard prototype is resolved, so the prototype on feat/stream-repetition-canceller can be finalized, reviewed, and merged on the fork (weselben/GoModel; never upstream ENTERPILOT/GoModel without explicit user request).

Notes

  • Domain: GoModel AI gateway; prototype lives in worktree /home/agent/workspaces/gomodel/.worktrees/stream-repetition-canceller, branch feat/stream-repetition-canceller.
  • Prototype status: built and verified (unit tests + brown test). Commits 825d10e3..ae2c283a. Implementation follow-ups from decisions: remove holdback queue + straddling rewrite; per-chunk eager trigger; metric/log per Observability: log line only, or also a Prometheus metric on trigger? #61; kill switch per Kill-switch env + finish_reason on truncated SSE #63; tokenizer per Tokenizer library selection for the repetition guard #64.
  • Every grilling session must invoke the grilling and domain-modeling skills.
  • The user drives tickets from their phone; keep questions short and answerable in a reply.
  • Standing rule: Postel's law + KISS; default behavior unchanged when STREAM_REPETITION_LIMIT is unset/0.
  • Map hygiene: when ambiguity emerges, reopen closed tickets and record the why here. When a decision moves, update dependent tickets.

Decisions so far

Not yet specified

Build plan

All decisions landed. The remaining work is implementation, not decisions. Each step lists the ticket(s) it derives from.

  1. Token-based detection per chunk — task Replace byte-period detection with token-based per-chunk detection #66.
  2. Lazy tiktoken loader — task Add lazy tiktoken loader with byte-period fallback #67.
  3. Prometheus counter — task Add Prometheus counter for repetition triggers #68.
  4. Per-virtual-model field — task Per-virtual-model repetition_limit override field #69.
  5. Passthrough route coverage — task Extend repetition guard to passthrough routes #70.
  6. Obvious-code skip heuristic — task Add obvious-code and tool-call skip heuristic #71.
  7. Docs, YAML, smoke test — task Documentation, YAML example, and end-to-end smoke test #72.

Out of scope

Activity

  1. weselben commented on Sep 2, 2026

    @weselben
    OwnerAuthor

    Implementation status — stream-repetition-canceller worktree.

    Work completed and pushed to fork branch feat/stream-repetition-canceller:

    Branch has 8 Conventional Commits ahead of origin/main (825d10e..3c8414e). go build ./... and targeted tests green. Brown harness persisted at .tmp/stream-repetition-brown/.

    Still open:

    Loop paused by user on 2026-09-02 to draft a generalized cron/wayfinder skill.

    🤖 Written by Kimi Code (AI agent) from the stream-repetition-canceller worktree.

  2. weselben commented on Sep 3, 2026

    @weselben
    OwnerAuthor

    Map complete — all build-plan tasks done.

    Branch feat/stream-repetition-canceller on the fork: 10 Conventional Commits ahead of origin/main (825d10e..d6d49ab), pushed, working tree clean, all targeted tests green.

    Remaining open decision: the map destination says merge-ready on the fork — open a PR against the fork's main branch, or keep iterating on the branch first?


    This comment was generated with AI assistance.

  3. weselben commented on Sep 15, 2026

    @weselben
    OwnerAuthor

    Defered

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions