Status: done (2026-11-23)
Priority: 2
Size: S
Design ref: docs/architecture/target-v2.md 3.1 (the layers; Player and presentation); docs/architecture/modules.md
Goal: Second step of the terrain split: gen/rivers is two modules in one file, the tracing of rivers at generation (to line 260) and their curves on the map (from line 262). They part, in place: the drawing half becomes draw/rivers, still loaded before gen/bake, which the next task moves with the rest of the drawing.
Acceptance criteria:
gen/rivers keeps RIVERS, FORDS, minHeap, drainage, trace and what they call; draw/rivers (src/draw/rivers.js, with its @sys) holds the drawing: width, bend, lines, drawChunk, thin and what they call. The move is verbatim, a commit of its own.draw/rivers is listed in src/manifest.json where gen/rivers stood for the bake (before gen/bake), in the kernel layer for this task only: VB-1503 moves it after sim.js with the rest of the drawing.page/setup, gen/bake, tests/rivers.js and the pixel check read each half from its module.node tools/same.js --base REF prints same; the pixel check of VB-1500 prints same; npm run verify and node tests/smoke.js pass.
Notes:src/layers.json (kernel) beside gen/rivers; modules.md says who traces and who draws.drawChunk in gen/rivers at REF and in draw/rivers now. same.js and samepixels.js print same against a658140.