0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Agent instruction の `should` と `must` を「強弱」だけで読まない

0
Last updated at Posted at 2026-06-11

Agent instruction の wording をレビューしていると、should、must、may、required が、単なる強弱や丁寧さの違いのように並んでいることがあります。ただ、instruction では tone の違いに見える語が、そのまま obligation の違いになることがあります。

たとえば、レビューで次のような書き換えを見たとします。

The agent should ask before changing generated files.
The agent must not modify files outside the requested scope.
This field may be omitted.
A repository field is required.

should は、多くの場合「そうするのが望ましい」「期待される」という読み方になります。例外や判断余地が残ることもあります。must の柔らかい版としてだけ読むと、必要以上に強く、または弱く扱う可能性があります。

must は強い義務として読みます。違反したときに、単なる好みの違いではなく、「守るべき条件から外れた」と見なされる方向の表現です。

may は許可または可能性を示します。弱い推奨ではありません。may を「やったほうがいい」と読むと、任意の機能や選択肢を、望ましい振る舞いと取り違えることがあります。

required は必須条件や必須項目を示すことが多い表現です。強調のための語ではなく、満たすべき条件として扱う必要があります。

書き換える前に、まずこの対応を確認します。

  • recommendation なら should
  • hard obligation / prohibition なら must / must not
  • permission / possibility なら may
  • mandatory condition / field なら required

レビューでは、文の響きではなく、意図した obligation を先に名前にします。

次に instruction を直すときは、まず「これは推奨なのか、禁止・必須なのか、許可なのか、項目の条件なのか」を決めます。そのあとで should、must、may、required を選びます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?