feat(directives): harvest 6 directives from conductor/edit_workflow.md (Rules 1, 2, 6, 7, 8 contract-change, 8 EOL)

This commit is contained in:
ed
2026-07-02 23:56:18 -04:00
parent 8407742a14
commit 782530ba6d
12 changed files with 107 additions and 0 deletions
@@ -0,0 +1,7 @@
# verify_before_editing
## v1
**Why this iteration:** Lifted verbatim from `conductor/edit_workflow.md:14-24 (Rule 2)`.
**Source:** `conductor/edit_workflow.md:14-24 (Rule 2)`
**Lifted:** 2026-07-02 (Phase A expansion harvest; user directive 2026-07-02)
@@ -0,0 +1,9 @@
### Rule 2. Verify Before Editing
Before ANY edit to a function you haven't touched recently:
1. Run: `py_check_syntax` on `src/<file>.py`
2. Get current state with `get_file_slice` (the exact lines you're about to touch)
3. Read the contract: does this function/field/method's signature, yield shape, or return type have callers I need to update?
DO NOT use `git checkout` or `git restore` to revert your way to a clean state. That destroys in-progress work. If a previous edit left the file in a broken state, ask the user.