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

Aberta
#19,264 4 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
42/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python, shell
Domínio
data-engineering

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
Shell
Estrelas
22
Forks
2
Merge médio
2h
PRs com merge (30d)
960

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de melodic-software/claude-code-plugins

Todas as issues de melodic-software/claude-code-plugins

Issues semelhantes

Mais issues de Shell/Bash

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.