topos_evaluate_file
Score a file on the SIMPLE/COMPOSABLE/SECURE lattice. Generates or refreshes .gitnexus for side-effecting composable evaluation and returns coupling and security metrics.
Instructions
Score a file on disk on the SIMPLE / COMPOSABLE / SECURE lattice —
the only evaluate tool that can reach COMPOSABLE (side-effecting).
Unless no_composable is set, this generates/refreshes .gitnexus
(given by gitnexus_dir or auto-detected at <root>/.gitnexus) when
it's missing or stale, then attaches the resulting
ModuleDependencyGraph — the same default behavior as the CLI's
topos evaluate. SIMPLE/SECURE always run. When GitNexus isn't
installed or generation fails, coupling_available is false and
warnings explains why; the rest of the evaluation still succeeds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow | No | One-off acknowledged dangerous-call patterns. | |
| verbose | No | Include raw metrics. | |
| filepath | Yes | Source file path. | |
| preferences | No | Optional generator ranking. | |
| gitnexus_dir | No | .gitnexus directory for COMPOSABLE scoring. When omitted, it is auto-detected at `<file root>/.gitnexus`; if missing or stale, this tool generates/refreshes it first (see `no_composable`). | |
| no_composable | No | Skip GitNexus detection/generation; score SIMPLE/SECURE only, exactly like a missing `.gitnexus` did before this tool started generating it automatically. | |
| refactor_targets | No | Ranked edit targets to return, gate failures first (default 3; 0 = off; capped at 25). | |
| include_security_findings | No | Include SECURE findings. |