You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: julia-expert/references/recur-playbook.md
+115-1Lines changed: 115 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,29 @@ The same query-first workflow is portable to external projects (including Visual
19
19
20
20
**Key Principle:** Don't search manually or remember where things are. Use recur to discover what to work on, what to reference, and what's of interest.
21
21
22
+
## Search vs State (Use the Right Layer)
23
+
24
+
Recur solves two different problems. Pick the layer before you pick the command:
25
+
26
+
- Search and analysis (solve code and behavior issues): `find`, `id`, `callers`, `callees`, `trace`, `trace-stats`, `flatten`
27
+
- State and workflow tracking (manage active work): `files`, `tree`, `stats`, `related`, `children`, `merge`, suffix-based eventness files
28
+
29
+
When debugging or proving safety, use search tools first. Use state tools to track and hand off work.
30
+
31
+
## Skim-Then-Explore Rule
32
+
33
+
Before deep work in an unfamiliar subsystem, spend 5 minutes finding existing guidance and then explore organically:
**PowerShell tip:**`recur files` already outputs a JSON array by default in normal pipelines. Use `ConvertFrom-Json` before object operations; only add `--json` when you need to force machine format explicitly.
74
97
98
+
**Pipeline tip:** In non-terminal pipelines, recur output is machine-oriented. When scripting, assume JSON and parse it explicitly (`ConvertFrom-Json` or `jq`) unless you intentionally force text.
13.**Mirror lanes in the same session** - if code changed, add/update docs/tests/automation lane state before ending the session
569
648
570
649
## Creating Good Reference Files
571
650
@@ -736,6 +815,26 @@ cd julia-tests && julia runtests.jl
736
815
recur tree "main" --sep . --sep _ --show-sep
737
816
```
738
817
818
+
## Phase Lifecycle Checklist (Portable)
819
+
820
+
Use this for epics/phases in any project (not just this repo).
821
+
822
+
**Before phase start:**
823
+
1. Create a `.todo.current.md` for active scope.
824
+
2. Create a `.todo.current.reference.md` only if reusing an existing pattern.
825
+
3. Create lane markers/scripts for verification lanes (tests, automation, DB checks) you will need.
826
+
827
+
**During phase:**
828
+
1. Run discovery (`**.current`, tree for the epic prefix).
829
+
2. Keep implementation and validation tight (`cargo test`, lane-specific tests/scripts).
830
+
3. Update `.current` with concrete resume context after each significant checkpoint.
831
+
832
+
**After phase completion:**
833
+
1. Delete `.current*` ephemerals.
834
+
2. Add a concise `.complete.md` summary.
835
+
3. Fold durable findings into persistent `.todo.md` or readme artifacts.
836
+
4. Re-run discovery to confirm cleanup and expose the next visible gap.
837
+
739
838
## Cross-Lane Rule (Portable)
740
839
741
840
Treat code as canonical, then mirror intent across lanes in the same session:
@@ -758,6 +857,21 @@ When using a mirror lane (future/optional), keep the same order:
758
857
759
858
This prevents documentation-first drift and keeps eventness as durable evidence of real implementation state.
760
859
860
+
## Julia Verification Lane (Optional)
861
+
862
+
For data migration/verification-heavy projects, keep Julia scripts as a first-class lane:
863
+
864
+
- Prefer committed `.jl` scripts over inline shell snippets.
865
+
- Default scripts to read-only checks.
866
+
- Gate mutations behind `--fix`.
867
+
868
+
```bash
869
+
julia jl/<name>.check.jl
870
+
julia jl/<name>.check.jl --fix
871
+
```
872
+
873
+
When reading SQL results in Julia, prefer SQL-side null handling (`COALESCE(...)`) to avoid brittle null coercion patterns in script code.
874
+
761
875
## Summary
762
876
763
877
You are a recur expert. You use recur commands to discover state, track work, and maintain external memory through hierarchical file structures. You understand the eventness pattern, separator awareness, and gap analysis. You never try to remember what can be queried.
0 commit comments