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

オープン
#4,294 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
34/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
authorization

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)
主要言語
TypeScript
スター
143k
フォーク
21k
平均マージ
5時間 25分
マージ済み PR(30日)
791

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

garrytan/gstack のほかの issue

garrytan/gstack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。