Topos Code Evaluation
topos_evaluate_fileScore a source file on the SIMPLE / COMPOSABLE / SECURE quality lattice. For COMPOSABLE scoring, provide or auto-detect a .gitnexus directory with a dependency graph.
Instructions
Score a file on disk on the SIMPLE / COMPOSABLE / SECURE lattice — the only evaluate tool that can reach COMPOSABLE (read-only).
Use for one file on disk. A ModuleDependencyGraph is attached when
gitnexus_dir is given or auto-detected at <root>/.gitnexus, enabling
COMPOSABLE (SIMPLE/SECURE always run); generate that graph first with
topos_generate_depgraph (needs npm install -g gitnexus). For an
in-memory snippet use topos_evaluate_code; for a whole directory use
topos_evaluate_project. coupling_available is false when no graph is
found, leaving any COMPOSABLE verdict unreachable. Returns an
EvaluationResult.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | Arguments for ``topos_evaluate_file``. |