Skip to content

feat: add parametric synthetic trace generator#14

Open
stmatengss wants to merge 1 commit into
mainfrom
feat/synthetic-traces
Open

feat: add parametric synthetic trace generator#14
stmatengss wants to merge 1 commit into
mainfrom
feat/synthetic-traces

Conversation

@stmatengss

Copy link
Copy Markdown
Collaborator

Summary

  • Add src/kvcache_upper_bound/synthetic/generator.py with configurable trace generation (sessions, turns, prefix diversity, block sizes)
  • Add generate-trace CLI command to produce JSONL traces from parameters
  • Add "Synthetic Trace Generator" card to web calculator with generate, analyze, download, and apply-to-calculator functionality

Test plan

  • Python tests: pytest tests/test_synthetic_generator.py tests/test_cli_generate_trace.py -v
  • JS parity: node tests/validate_js_parity.mjs (178 checks pass)
  • Web calculator: generate synthetic trace, verify stats, download JSONL

🤖 Generated with Claude Code

… calculator

Adds a synthetic trace generator that creates JSONL-compatible trace records
modeling multi-session, multi-turn conversations with configurable prefix
sharing. Supports both the Python CLI (`generate-trace` subcommand) and an
interactive card in the web calculator with Generate & Analyze, Download JSONL,
and Apply to Calculator functionality.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant