discovery: turns-to-complete reads the fleet store instead of local sources only

Ouverte
#19,264 4 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é
4/5
Temps estimé
3-5 jours
Accessibilité débutants
42/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
python, shell

Piste de recherche

Start with plugins/discovery/scripts/turns-to-complete.py, lib/session_record.py, and plugins/session-flow/scripts/collect.py, then read ADR 0135 for the existing transcript source flow. Trace how session records are written and how the skill reads sources. Done means the versioned record stores per-dispatch data, existing records remain readable, and the skill reports store-backed sources when available and local sources otherwise.

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

Description

needs-triage
Context

The fleet transcript ingest (ADR 0135, branch feat/fleet-transcript-sources) lets mining skills read every transcript source in a person's sources file through session-flow's store. turns-to-complete (discovery) ships in that change reading only the local sources, through the resolver, and its report header names every source it did not read. The store cannot feed it yet: the skill counts turns per subagent dispatch (distinct assistant message ids, stop reason, ceiling, resume), and session-record/v2 holds per-session totals with no per-dispatch rows.

Owner decision, 2026-11-26: local-only in that change, store-backed reach as this follow-up.

Proposed work
  • Add per-dispatch rows to the session record (agent type, turns, finished or ceiling, resumed) and have collect.py write them.
  • Have turns-to-complete read session-flow's store through a session-flow script (the way corrections' codify preferences reads /session-flow:audit-sessions excerpts), falling back to local sources when session-flow is absent, with the header saying which it read.
Acceptance criteria
  • With a sources file listing several hosts, one run of turns-to-complete reports dispatches from every source collected into the store, and its header names no unread source.
  • Without session-flow installed, it reads local sources and the header says so.
  • The record change is versioned and the store migration keeps existing records readable.
References
  • plugins/discovery/scripts/turns-to-complete.py
  • docs/adr/0135-mine-every-fleet-transcript-source-through-one-shared-ingest.md
  • lib/session_record.py, plugins/session-flow/scripts/collect.py
Langage dominant
Shell
Étoiles
22
Forks
2
Merge moyen
2 h
PR mergées (30 j)
960

Préparer son environnement

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 melodic-software/claude-code-plugins

Toutes les issues de melodic-software/claude-code-plugins

Issues similaires

Plus d'issues Shell/Bash

Recevez les nouvelles issues par e-mail

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