gstack-approvals: no way to retire approvals after a crew resets its rules

Aperta
#4,294 0 commenti 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
34/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
authorization

Direzione di ricerca

Start by reading lib/approval-record.ts and tracing how render, plan-check, and approval resolution read the machine-local record, the Captain drive mirror, and READ_ALSO roots. The issue proposes a retirement row that makes earlier approvals history rather than authority, but leaves its format and behavior across these paths to design. Done means retired approvals no longer act as authority and CONTRACT_DATE can use a time precise enough to distinguish a reset from same-day approvals.

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

Descrizione

enhancement S3

What happened

A Captain rebuilt its crew's rules from the current templates in one sitting: a new CREW.md and AGENTS.md, and a new CONTRACT_DATE. The owner's principle for the reset was that no earlier approval carries over, whether a standing merge word, a standing spend grant or a plan approval.

gstack-approvals has no way to express that. It reads every approval root (the machine-local record, the Captain drive's approvals/ mirror and the READ_ALSO roots; lib/approval-record.ts unions them and can mirror rows back). So a standing row written before the reset still renders in a PR body and still resolves in plan-check as if it were current. Moving old files into an archive folder only works partly, because a lane machine's local record can carry them back, and nothing marks a row as retired.

What we did meanwhile

We added a crew-specific CREW.md rule: rows dated before CONTRACT_DATE grant nothing, and a lane asks through the controller instead. crew/docs/captain.md calls a rule that lives only in a crew's file a gap in gstack, so we're filing it here.

Suggestion

An approval epoch. For example, gstack-approvals retire --before <ISO time> --words <owner's words> --by <who> --reason <why> writes one retirement row that render, plan-check and resolution honour: earlier rows show as history and never as authority. It would help if CONTRACT_DATE carried a time, so rule 20's stale READYs and the epoch use the same instant. A date alone can't separate a morning receipt from an afternoon reset.

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.