mirror of
https://github.com/storytold/cadcraft.git
synced 2026-11-22 13:57:08 -06:00
Bring the rest of the file access under the roots: - Image references had no check at all, and the loader threads lost the roots, which are per thread. Both are held to them now. - The xref and image search looked outside the roots before any check, listing folders and answering whether a file exists. It now skips those places. - setvar SAVEFILEPATH could point autosave and recovery anywhere, so it is refused under roots, and so is drawingrecovery. - A command runs under roots only if file_access/commands.rs classifies it. Anything else is refused, whichever route starts it. every_command_is_classified walks the registry for the table. mcp_roots_walk.rs walks it through the real server with paths outside the roots, seeing reads by access time and writes by metadata. The same walk with no roots is the control: it has to find the same commands escaping. Also drops two duplicated checks the rebase left in template.rs and compare.rs.