Cached supplemental draws reuse the primary Stage 7 result

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
63/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start with src/pipeline/lens-runner.ts at lines 309 and 532, then trace the cache key in src/llm/pi-runner.ts around line 1380. Reproduce the reported case: cache on yields one provider call for the primary and supplemental draws, while cache off yields two. Done when retained supplemental modes make the second draw call the provider and the existing cache behavior is covered by a focused test.

Written by the indexing model from the issue text.

Description

bug

Problem: With cache enabled and one deep packet, K=2 at concurrency one reports two supplemental passes but calls the provider once, reusing the primary draw. Scope any fix to retained supplemental modes.
File:line: src/pipeline/lens-runner.ts:309,532; src/llm/pi-runner.ts:1380.
Evidence: Production scheduler and Pi runner with scripted adapter verified a cache write/hit versus two provider calls with cache off; @architect confirmed the cache key. Related existing issue: #30.
Suggested fix size: M.
Found during #44 (workstream C, challenged by @architect).

Dominant language
TypeScript
Stars
8
Forks
1
Avg merge
5m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 0xPolygon/codegenie

All issues in 0xPolygon/codegenie

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.