bed2c1d1

Created Started Finished

By: ValentinHirschi <valentin.hirschi@gmail.com>

vakint sweep: the route per key, by the library node of its sector (RustRedPSweepSettings::node_policy)

RustRedPSweepSettings gains `node_policy: BTreeMap<usize, RustRedPSweepPolicy>` (empty by default), keyed
by the library node index of a key's sector (the DAG node of the census class that owns the key's set of
positive lines; not a presentation id: keys reach the sweep on top-frame presentations, and one frame holds
keys of many sectors). A key of a listed node takes its policy, every other key the policy of the settings.

Inside a channel the keys of one presentation are split by policy: the Always keys form the channel's
right-hand side of the presentation's sweep, the WhenRefused keys take the tables first and join that
right-hand side when the tables refuse, the Off keys go to the tables; the partial reductions add per
channel. A split demand has its own digest, so packages and stored results made for a whole presentation
are not used for it. The node is found as the reduction finds it: a mirror of RustRed's
PEngine::sector_owner on the public census (owner sectors of census.classes, then census.sectors), made
only while the map has entries.

Stored data are looked up for a batch when the policy is not Off or a key of the batch is mapped to a
policy other than Off. A node index the library does not have is ignored. Any entry other than Off puts the
call on the sweep's route; the route line of a capture records the strongest policy in force; a level-1
checkpoint key adds the listed nodes that change a key's policy. With an empty map values, packages,
errors and statistics are unchanged; the Debug text of the settings gains `, node_policy: {}`.

Tests: an empty map is the policy alone; a node mapped to Always under Off sweeps only its sector, beside
another sector of the same frame in the same channel; a node mapped to Off under Always stays with the
tables; a mapped WhenRefused (covered keys, and the refused keys of an open node); an unknown node is
ignored; the Debug text; the sector lookup against RustRed's own sector owner; the per-channel sum of the
two routes equals the tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 of 1 jobs done 1 Passed