sync_workspace_changes
After code edits, update Entroly's beliefs and verification: detect changed files, recompile, verify, and write a bounded sync report.
Instructions
Reconcile workspace changes into Entroly's local belief and verification layers.
Use this for one explicit synchronization pass after edits. It detects
new, modified, and deleted supported source files, marks affected
beliefs stale, recompiles changed files, runs verification, and writes
a bounded sync report plus listener state under the local Entroly vault.
It never writes source files. force requests a full rescan and
max_files limits changed files processed in this pass; unprocessed
changes remain pending for a later pass. Invalid or outside-root
directories return a structured error.
Use start_workspace_listener for periodic background polling,
refresh_beliefs when only invalidation is needed, and
verify_beliefs when files are already compiled and only verification
is required. The JSON result includes status, counts, verification
summary, action path, and per-file errors.
Args: directory: Optional root-confined workspace directory. force: Whether to ignore the saved snapshot and rescan. max_files: Positive per-pass changed-file limit (1-10000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Rescan all discovered source files even when the saved snapshot reports no changes. | |
| directory | No | Workspace directory to scan; empty uses the server project root and paths stay root-confined. | |
| max_files | No | Maximum changed files processed in this pass; use later passes for the remaining backlog. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |