|
| 1 | +# Task handover 39: task group 3 of gradual-refactoring-steps (declaration, functions, step plan) |
| 2 | + |
| 3 | +Written 2026-11-11, about 18:30 (Europe/Berlin). Predecessor: `.kiro/task_38_handover.md`. |
| 4 | + |
| 5 | +## What was done |
| 6 | + |
| 7 | +| Task | Commit | Result | |
| 8 | +| --- | --- | --- | |
| 9 | +| 3.1 declaration | `9e1fc28` | `native/src/step/declaration.rs`: read, validate, run configuration, revisions | |
| 10 | +| 3.2 functions | `0448cc0` | `native/src/step/functions.rs`: changed by token sequence, callers by name, faults per function; name scan covers `src/step` | |
| 11 | +| 3.3 `step plan` | `5ac36ab` and this commit | `lesscode-core step plan`; command group in `step/mod.rs`; `docs/steps.md` | |
| 12 | + |
| 13 | +374 tests pass; format, lints and budgets clean. `kiro-cli check`: 0 errors, 0 warnings. Design Amendment 2 |
| 14 | +records what was built differently. |
| 15 | + |
| 16 | +Real plan on `native/src/recording.rs` (tests of `tests/recording.rs` only): 191 faults, 91 noticed, 100 |
| 17 | +not, 13.8 minutes with three copies; a second run from the store is immediate. Receipt: |
| 18 | +`docs/experiments/gradual-steps/gate2/plan-recording.json`. The totals equal the whole-file run of R89. |
| 19 | + |
| 20 | +## Next: task group 4 (pins and the step check) |
| 21 | + |
| 22 | +- 4.1 `step pin`: composite copy (base code, test paths of the step revision) and `run --only N`; the |
| 23 | + three outcomes were shown by hand in R91. Needs: copy base with `revisions::copy_tree`, overlay the test |
| 24 | + paths from the step revision, a base fault run to number the faults. |
| 25 | +- 4.2 `step check` checks 1 to 4 (declaration and revisions, files outside the scope, pins and change in |
| 26 | + one commit, tests on base and step). `revisions.rs` still needs `log` with names of changed files. |
| 27 | +- 4.3 fault runs limited to changed functions and callers, comparison, size, frame. |
| 28 | +- 4.4 verdict and evidence; hashes of committed blobs (design Amendment 1). |
| 29 | + |
| 30 | +## Notes |
| 31 | + |
| 32 | +- `main.rs` ceilings were lowered to its measured size after its path helpers moved to `cli_paths.rs`; |
| 33 | + `lib.rs` is at its unit ceiling. New code goes under `native/src/step/`. |
| 34 | +- `run_run` is called as a library function by `step plan` and writes its receipt to |
| 35 | + `<work>/plan-run.json`. |
| 36 | +- The Python pack counts a call that is a statement of its own as a state write. |
| 37 | +- Work directories under `D:\BuildArtifacts\lesscode` (t11, t12, t13, t33, steps, step1, budget-case, |
| 38 | + figure-check) can be deleted; t12\whole is the copy used for the plan. |
| 39 | +- Model spend recorded: about 32.9 of 40 USD. Slice B is closed. No container of this project exists. |
| 40 | + |
| 41 | +## CI |
| 42 | + |
| 43 | +Filled in once the run for this commit has finished. |
0 commit comments