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

Aperta
#4,295 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, typescript
Ambito
devtools

Direzione di ricerca

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.

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

Descrizione

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)
Lingua principale
TypeScript
Stelle
143k
Fork
21k
Merge medio
5h 25m
PR unite (30g)
791

Preparare l'ambiente

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 garrytan/gstack

Tutte le issue di garrytan/gstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.