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

Ouverte
#877 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
57/100
Type d'issue
Documentation
Clarté
Clairement spécifiée
Activité
Active
Stack technique
typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
TypeScript
Étoiles
18.2k
Forks
2k
Merge moyen
3 h 56 min
PR mergées (30 j)
96

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de cursor/plugins

Toutes les issues de cursor/plugins

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.