swg_read
Read a workspace text file under coherence tracking, returning content and version to detect stale views and enable safe write-after-read.
Instructions
Read a workspace text file under coherence tracking. Returns {content, version}; the version is the comparand you pass to swg_write_cas. A sticky-INVALID view returns fresh bytes but stays INVALID — use swg_reacquire to recover before writing. SINGLE-HOST only. Out of guarantee and NOT detected in v1: writers on different hosts or across a synced/network mount, divergent-history reconciliation, semantic correctness, server-enforced auto-merge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |