Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Declare target effects and gate them at plan time

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

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

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

評価

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

調査の方向性

まず、対象モデル、計画、Runner のフローと describe --json エントリポイントを追跡し、エフェクト契約を選ぶ前に plugin SDK と issue #100 を確認します。完了の条件は、targets がエフェクトを宣言し、計画が実行前に許可されていない依存関係を target 固有のエラーで拒否し、describe --json がそれらのエフェクトを報告することです。

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

説明

enhancement target/backlog
Problem

Fallout targets range from writing into artifacts/ to publishing packages to nuget.org and tagging releases. Nothing in the target model distinguishes them. A caller that wants to run a build without changing anything outside the working tree has no way to ask which targets are safe.

For an automated caller the only safe policy is therefore to never run the build unattended, which removes most of the value. The Continuous Delivery direction (milestone #8) adds deployment targets, which widens the gap.

Outcome

A target declares the class of effect it has, and the runner refuses to reach a target whose effect class was not granted.

Sketch:

Target Compile => _ => _
    .Effect(Effects.LocalFilesystem)
    .Executes(...);

Target PushToNuGet => _ => _
    .Effect(Effects.RemoteMutation, Effects.Irreversible)
    .Executes(...);

fallout run Pack --allow local succeeds. A plan that reaches a RemoteMutation target fails during planning, before any target executes, naming the target and the grant it needs.

Acceptance criteria
  • Targets can declare one or more effect classes
  • Effect classes are checked at plan time, so a run stops before the first target executes
  • The error names the target and the grant required
  • Effect classes propagate through dependencies: depending on a remote-mutation target requires that grant
  • describe --json exposes each target's effect classes
Open questions
  • Is an undeclared target permissive or restrictive by default? Restrictive is safer, but changes behaviour for every existing build.
  • Fixed set of effect classes, or an open set that plugins can extend?
  • Does the contract belong in the plugin SDK, given #100 (plugin discovery and load model) has to settle a related trust question?
Notes

Useful outside automation too: --allow remote as a CI-only flag prevents accidental publishes from a developer machine.

主要言語
C#
スター
169
フォーク
21
平均マージ
3日 7時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

Fallout-build/Fallout のほかの issue

Fallout-build/Fallout の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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