aethis_set_bundle_contract
Stores a project's input invariants—consistency rules over inputs—to enforce them during generation and return field errors when decision inputs violate the contract.
Instructions
Store the bundle contract for a project: input invariants, which are author-declared consistency rules over the ruleset's inputs (for example member.renewal_date must not be before member.joined_date). Every later generation copies them into the compiled ruleset. When a decision's inputs break one, it returns undetermined with undetermined_reason input_errors and a field_errors message for each named field, and asks no further question; an invariant is skipped while any input it reads is missing. Each invariant is {id, expr, error_fields, message}: expr is exactly one comparison (=, !=, <, <=, >, >=) over field references and typed constants, and every error field must be read by it. At most 32 invariants. Replaces any stored contract; omit input_invariants, or pass null or [], to clear it. Field names and types are checked against the project's fields when generation starts. Use a test case's expectations.field_errors to assert the messages.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "aethis_set_bundle_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project ID | |
| input_invariants | No | Input invariants for the project: consistency rules over the ruleset's inputs, for example member.renewal_date must not be before member.joined_date. Omit, or pass null or [], to clear the stored contract. |