Editing safely
Follow these steps in order. Report a step you skip as skip: <reason>.
Operations lists each mutation's preview, apply,
and reconcile rules.
- Resolve the exact symbol. Refuse an ambiguous name rather than choosing a
same-named declaration.
- Inspect what the edit touches: callers for a signature change, constructor
and write sites for a field change. Graph results can miss public consumers,
macros, generated code, and string-keyed dispatch; inspect those boundaries
when relevant.
- Preview the mutation (
tracedecay_rename_previewfor a rename). A preview is
evidence, not an applied edit. skip: the operation has no preview and its
anchor is unique.
- Apply with the identity and expected state the preview or read returned.
When the expected state no longer matches, stop and preserve the peer's
change.
- If an edit was interrupted, inspect its receipt and current files before
retrying. Reconciliation records committed, unchanged, or partial effects.
It never restores source files.
- Verify the changed behavior with the native build or tests; use
assessing-impact to select them.
Report: what changed, the operation identity of each applied mutation, the
references inspected, and the verification that ran. Do not report a preview as
an applied edit.