connect_project_source
Bind a project node to its local code folder, measure it, and write a source receipt. Use confirm:true to apply; omit rootPath to auto-detect the enclosing git repo or manifest.
Instructions
Bind a project node to the local code folder it describes, measure it, and write the source receipt. This is what nextAction: connect_source (and repair_source_binding / measure_source / remeasure_source) asks for. Omit rootPath and the server infers it: the git repository enclosing the vault wins, otherwise the nearest ancestor folder carrying a project manifest. Without confirm: true nothing is written — you get the proposed folder, how many declared path: claims actually land in it, and the exact confirming call. Re-running with a different rootPath replaces the binding; disconnect_project_source removes it. The absolute root stays in the local gitignored sidecar .ontology-atlas/project-sources.json and never enters the receipt, the graph markdown, or any handoff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repair | No | Discard a malformed .ontology-atlas/project-sources.json instead of refusing to write over it. | |
| confirm | No | Required to write. Default false returns the proposal and changes nothing. | |
| rootPath | No | Absolute local folder holding the code. Omit to auto-infer, or to re-measure an existing binding. | |
| projectSlug | Yes | Exact project node slug (or an unambiguous vault alias) to bind. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| mode | Yes | ||
| undo | No | ||
| remedy | No | ||
| binding | Yes | ||
| changed | Yes | ||
| contract | Yes | ||
| nextCall | No | ||
| confirmed | Yes | ||
| inference | No | ||
| projectSlug | Yes | ||
| projectSource | No | ||
| previewReceipt | No | ||
| previousBindingCount | No |