diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-02 00:43:15 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-02 00:43:15 -0400 |
| commit | 7c120073a7de96e67a4f51e539c45d2d22d74f81 (patch) | |
| tree | 88dbf98445eff382e28f9219437468781940127c /scripts/audit.sh | |
| parent | 21639cb395bd363f9406694adebd9a3675bf1096 (diff) | |
| download | rulesets-7c120073a7de96e67a4f51e539c45d2d22d74f81.tar.gz rulesets-7c120073a7de96e67a4f51e539c45d2d22d74f81.zip | |
feat(routing): wire the wrap-up cross-project router end to end
This closes the build half of the wrap-up routing spec: Phases 2 and 4 here, with the engine and discovery already shipped.
inbox.org's "File as TODO" disposition now runs route_recommend on each keeper and stamps :ROUTE_CANDIDATE: <destination> on strong and weak matches, so the wrap-up router has a candidate set without ever scanning the standing backlog. wrap-it-up.org Step 3 gains the optional router after the inbox sanity check, with the gate-vs-optional split named in the prose: surface the batch with destinations and confidence labels, then go or skip. An empty set stays silent.
The go path is mechanical rather than prose-driven: the new route-batch helper lists candidates read-only, and on go extracts each subtree (children ride along, markers stripped, headings promoted), delivers it via inbox-send for provenance, and removes the local copy only after a successful send, rewriting todo.org per send so a crash never strands an already-sent task locally. Overlapping candidate spans (a tagged child inside a tagged parent) are a loud conflict, left in place with a non-zero exit, because routing either span would silently take the other along.
A 13-test bats suite covers list/backlog exclusion, empty-set silence, delivery with provenance and children, promotion, drawer pruning, the no-todo.org destination, failed-send recovery with the marker intact, the nested-candidate conflict, and duplicate-marker dedupe. cross-project.md notes the router as a sanctioned cross-project write path.
Diffstat (limited to 'scripts/audit.sh')
0 files changed, 0 insertions, 0 deletions
