Skip to content

refactor(m5i): cumin, salsa and fond steps named on their own - #1597

Open
rudolphpienaar wants to merge 1 commit into
mainfrom
sec/m5i
Open

rudolphpienaar wants to merge 1 commit into
mainfrom
sec/m5i

Conversation

@rudolphpienaar

@rudolphpienaar rudolphpienaar commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

M-5i: the cumin, salsa and fond lane of the complexity and nesting pass. All 53 functions that failed a shape measure there now pass all three (cognitive ≤ 15, cyclomatic ≤ 15, depth ≤ 3), and so does every helper split from them; the three packages leave the shape baseline.

Worst before → after (cognitive / cyclomatic / depth):

  • salsa proc text_read 56/29/6 → 6/10/1;
  • cumin resources_getAll 40/20/4 → 15/9/3;
  • salsa link_checkAndResolve 34/24/4 → 15/14/3;
  • fond dispatcher list 32/17/4 → 8/8/2;
  • salsa dicomSlice_gray 28/30/3 → 8/13/2.

Two new salsa modules follow ownership: retrieve/task.ts and proc/subtree.ts. The atomic-write code that S4's durable-records work will replace is untouched.

Pins first, passing on the unsplit code: cumin 15 new test files, salsa 10, fond's in its existing files.

For review:

  • six helpers now await a whole awaited block that moved into them (one microtask at the end of each);
  • cumin's windowed page walk hands off with yield*, yields in order;
  • three salsa diagnostics carry the new helper's name in their [fn] | label, with the same text after it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant