[BUG] apm approve <key> for a bundle saves the grant, then exits 1 when another trust layer still denies it
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Start in src/apm_cli/commands/approve.py, the bundle-only path where the grant is written before the remaining denial from another trust layer is reported. Use the ordering fix in PR #4928 (refuse before writing apm.yml) as the pattern to follow, and check which approval state is saved before the exit. Done when a bundle-only approve that is still denied exits 1 with the same message and leaves the approvals and apm.yml bytes unchanged, shown by a test that fails before the change.
索引モデルが issue の本文から書いたものです。
説明
Summary
apm approve <key> for a local bundle saves the approval and only then exits 1 with "still denied by another trust layer". A failed command changes durable state, which breaks invariant I7 (a failed command changes nothing).
Details
#4923 (PR #4928) makes apm approve refuse an org-denied package before writing apm.yml. The bundle-only path in src/apm_cli/commands/approve.py has the same ordering problem: it records the grant, then reports the remaining denial from another trust layer.
Expected
When another trust layer will still deny the item, apm approve <key> refuses before any write: exit 1, the same message, and approvals and apm.yml bytes unchanged.
Acceptance
A failing-before cell: a bundle-only approve that is still denied by another layer exits 1 and leaves the approvals and apm.yml bytes unchanged.
Source: out-of-scope finding while fixing #4923 (PR #4928).
- 主要言語
- Python
- スター
- 4.4k
- フォーク
- 430
- 平均マージ
- 19時間 38分
- マージ済み PR(30日)
- 637
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/apm のほかの issue
-
bug status/accepted type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
microsoft/apm#4925 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[DOCS] Document Mode B waiver formatting/merge-queue requirements and post-approval issue editsオープンstatus/triage-pending type/docs
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/apm#4719 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement status/accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
microsoft/apm#4075 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Claude command transform drops frontmatter keys Claude Code supports on commands対応中かも @abhishekacharya200 が 7 日前に担当しました。 オープンarea/multi-target status/accepted theme/portability triage/recommended type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/apm#3067 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-design
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
DaoCloud/DaoCloud-docs#7839 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
sav-oss-org/ptusa_main#1610 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sagemathinc/sagebrush#1701 ·
メンテナーはふだん 1 日以内に返信
-
reasons-gate
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
benthomasson/reasonsforge#100 ·
メンテナーはふだん 1 日以内に返信