topos_begin_refactor
Capture a file's baseline snapshot before editing when git revision is unavailable. Returns a snapshot ID for quality assessment after edits.
Instructions
Persist the file's current source as a baseline snapshot before you
edit it (writes a snapshot record — its only side effect).
Returns a snapshot_id; edit the file in place, then call
topos_assess_snapshot(snapshot_id, filepath). Use this when the
baseline is not a committed git revision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | File path to snapshot. | |
| preferences | No | Optional generator ranking. | |
| gitnexus_dir | No | .gitnexus directory. |