caller_context_set
Write · Ordinary
Annotate own caller instance with asserted runtime metadata (zero authority).
Arguments, result and boundaries
- Arguments
- Required: `instance_id`. Optional: `model`, `variation`, `workspace`. - `instance_id`. Note: Caller instance id (required). - `model`. Note: Model label. - `variation`. Note: Variation label. - `workspace`. Note: Workspace path.
- Result
- JSON object with instance_id and updated 1.
- Boundaries
- Project-scoped reads; foreign projects read empty. Caller-owned rows only where applicable.
- Lifecycle
- Owned upsert through a transaction; foreign instances read as not found.
- Errors
- Bad types are rejected (strict validator). Failures move nothing (atomic).
- Example
- ```json { "instance_id": "conn_x", "model": "m" } ``` Result shape: ```json { "instance_id": "conn_x", "updated": 1 } ```