pstack eval playbook: isolate each candidate's plugin copy and user state

Aperta
#877 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Find the eval playbook and read steps 2 and 6. Update them to disable the installed plugin copy for Claude Code and Codex, verify which copy loaded from each run's record, probe once before running all candidates, and restore changed user state by subtracting candidate Skill calls. Done means both steps explain these safeguards and stop the run if the variant did not load.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The eval playbook's step 2 gives each candidate its own working directory with the variant in
place. Candidates still run in the user's own harness, though, where the installed copy of the
plugin under test and user-level state can leak into a run:

  • The installed copy loads too. With the variant loaded through --plugin-dir (Claude Code) or a
    workspace .agents/skills (Codex), the installed plugin of the same name also loads unless it is
    turned off. Runs then measure the wrong text, or both texts.
  • Runs write user state. Claude Code counts each skill call in ~/.claude.json (skillUsage).
    When the skill listing is over budget, it uses those counts, weighted by how recent they are, to
    choose which skills keep their descriptions. Each eval run that calls the variant's skills raises
    the user's counts, and they stay raised after the eval.

Proposal. Add to step 2 and step 6:

  • Turn the installed copy off for each candidate: in Claude Code,
    --settings '{"enabledPlugins":{"<plugin>@<marketplace>":false}}' beside --plugin-dir; in Codex,
    -c plugins.<plugin>@<marketplace>.enabled=false (the key unquoted) beside the workspace skills.
  • Before grading, check from each run's own record which copy loaded: the plugins list in Claude
    Code's stream-json init event, and the skill paths in the skills section of the Codex rollout.
    Probe once before starting all candidates, and stop if the variant didn't load.
  • Snapshot user state the runs change and restore it afterwards. For skillUsage, subtract the
    candidates' Skill calls, counted from their transcripts, so counts other sessions added
    meanwhile stay.
Lingua principale
TypeScript
Stelle
18.2k
Fork
2k
Merge medio
3h 56m
PR unite (30g)
96

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cursor/plugins

Tutte le issue di cursor/plugins

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.