Captain: nothing checks that a crew's CREW.md and AGENTS.md still match the templates

Abierto
#4,295 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github, typescript
Área
devtools

Línea de trabajo

Start by reading the existing gstack-doctor, gstack-ship-queue train doctor, and gstack-skill-contract checks, then inspect the templates under captain/templates/ and how they are versioned by SHA. Define how the proposed read-only check evaluates each of the five listed findings, including unavailable inputs. Done means it reports those findings without rewriting crew files.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement S3

What happened

Rules drifted in a crew's files over a few weeks: a Captain's rule files grew to several hundred KB of local rules before the crew reset them from the templates. After the reset, nothing in gstack checks that they stay aligned.

  • gstack-doctor checks the install, runtime and hooks.
  • gstack-ship-queue train doctor checks the merge setup.
  • gstack-skill-contract checks skill contracts against Claude Code transcripts.

None of them compares a crew's CREW.md and AGENTS.md with captain/templates/ at a known SHA.

Suggestion

A read-only check, for example gstack-crew-check --crew <drive dir> --base <policy>, that a Captain can run in the daily issue sweep and after each gstack upgrade:

  1. Rules 1–24 match the template at the checked SHA, and every Home path exists.
  2. Every parameter is filled and agrees with the base policy and the live branch rules (reusing train doctor).
  3. Every crew-specific rule carries an owner date and the owner's words; one without them is reported as the controller's call.
  4. No rule or open issue points at a path that is missing or archived.
  5. The files' sizes, with a warning when they grow past a threshold, since growth is how the drift showed up.

It would report findings only and never rewrite rules. A missing input would print as unavailable, never as a pass.

Environment

  • Host: Capy (claude-code threads), Captain workflow
  • gstack: 1.99.0.0 (main at 554390da387d97c8b93dc2337c2ab41d4271e9f4)
Lenguaje dominante
TypeScript
Estrellas
143k
Forks
21k
Merge medio
5 h 25 min
PR fusionados (30 d)
791

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de garrytan/gstack

Todos los issues de garrytan/gstack

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.