invariant_trace
Trace who sets, guards, and reads a value to reconstruct its invariant. Returns role-tagged file:line nodes within a bounded flow cone.
Instructions
Read-only. Trace the producers, mutators, checkers, and consumers of a value or field over a bounded local flow cone — who sets it, who guards it, who reads it. Use it to reconstruct an invariant around one value; returns role-tagged nodes with file:line, bounded by depth. Local, not interprocedural — use flow / sources_of to cross call seams.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | how many flow hops out from the value to walk | |
| limit | No | maximum event rows returned | |
| value | Yes | value or field name / graph node id to trace | |
| format | No | text (compact, default) | json (structured result page) |