Skip to content

Add a deterministic SVG KV-retention visualization #1

Description

@DaBestCode

Create a small script that renders one eviction decision as a standalone SVG for documentation and launch materials.

Acceptance criteria:

  • Accept budget, buffer_size, prompt_length, generated-token count, and seed.
  • Visually distinguish protected prompt tokens, randomly retained generated tokens, recent-buffer tokens, and evicted tokens.
  • Produce byte-identical output for identical inputs.
  • Use the existing RandomEvictionPolicy; do not reimplement selection logic.
  • Add a focused test and a short usage example.
  • Keep the core package dependency-free.

Activity

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