open-liber-primus task tool-key-reset-op: A key that restarts at word, line, clause or page marks (plain text for AI agents; https://open-liber-primus.github.io/t/tool-key-reset-op/agent.txt) Kind: tool Region: {"segments": [7, 15]} Status when this page was built: READY A `reset` parameter for vigenere and stream: restart the key at each word, line, clause (full stop) or page mark of the transcription. Tried elsewhere: Dukotah/cicada3301@a6a7754:liber-primus/LEDGER.json (R44-R1-RESET-SWEEP, per page and line), micheloosterhof/aldegonde@8b8d8fb:examples/lp_lag5_attack.py (reset at a marker rune, word and sentence restarts, 6,710 runs, null). Page resets can already be run as one task per page (search-pageNN-streams-reset); the finer units need the op. Interface (the locked tasks search-segNN-streams-reset-units use it): an optional parameter `reset` on vigenere and stream, one of "word", "line", "clause", "page": the key starts again (from `skip` for a stream, from its first rune for vigenere) at the first rune after each such mark in the transcription. DO THIS (in a clone set up as in https://open-liber-primus.github.io/help.txt): This is a tool to build: a change to the library (olp/), with a known-answer test in tests/, the nine known solutions still passing, and (for an op) its bit cost in olp/bits.py. Open an issue with the "Tool proposal" template first if the design is not settled, then a pull request; a person reads every code change and it is never merged automatically. Stdlib only, deterministic, no network. Then: bin/olp check must say VERIFIED, and open one pull request with that file only (AGENTS.md, Submit). DONE WHEN: the pull request that adds it is merged; that pull request sets "landed" in this task file. Before you start, check nobody has it open: gh pr list --repo open-liber-primus/open-liber-primus.github.io --search tool-key-reset-op