add_constraint
Add a constraint to enforce narrative consistency, such as forbidding actions after a terminal state or ensuring numerical monotonicity.
Instructions
[constraint] 制約を1件追加する(作者の指示でルールを微調整)。template:
forbid_after_state: 終端状態の後に特定属性を禁止(EC慣性)。params={terminal_attr, terminal_value, forbidden_attrs}。例: 死後の行為禁止。
monotone: 数値の単調性。params={attr, direction("nondecreasing"|"nonincreasing")}。例: 台帳の増加。
acyclic: 順序の無循環。params={order_attr}。例: 時間順序。
release: 終端状態の解放(EC Release)=forbid_after_stateの例外。params={terminal_attr, terminal_value, subject?}。例: 派生作で死者復活を許可。 scope={subject:..} で対象主体を限定可。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| scope | No | ||
| branch | Yes | ||
| params | Yes | ||
| template | Yes |