Topos Code Evaluation
topos_evaluate_codeEvaluate raw source code on the SIMPLE, COMPOSABLE, and SECURE quality lattice using graph-based analysis. Returns a verdict from SLOP to IDEAL and per-generator scores.
Instructions
Score a raw code string on the SIMPLE / COMPOSABLE / SECURE quality lattice (read-only; never writes or runs the code).
Use for a snippet not yet on disk. Only SIMPLE and SECURE are reachable
here (scored from the source's CFG/CPG); COMPOSABLE needs a module
dependency graph, so for it use topos_evaluate_file with
gitnexus_dir, or topos_evaluate_project for a whole tree. Returns an
EvaluationResult: the lattice verdict (SLOP…IDEAL), per-generator scores,
and a next-step agent contract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | Arguments for ``topos_evaluate_code``. |