Each button's help stays current with the code behind it
ui_actions take docs: the help section of every control is attested with its handler, and a handler that changed without its help fails the check.
A new check that keeps a program's help in step with its buttons, and one fix.
Why. ui_actions already proved that every button reaches a handler and a route. The help article for that button lived on its own: the handler changed, the article went on describing the old behaviour, and nothing said so.
Help sections. An ui_actions entry can name its help file in docs, with a pattern that finds one section per control. The check then asks for:
- a section for every control, and a control for every section;
- an attestation that binds the code behind the control, each step of its chain, to the text of its section.
When the handler changes and its section does not, the check fails with ui:<id>:doc-stale:<control>. Read the section, fix it if it is wrong, and confirm with crossweft attest --ui <id> <control> --reason "...". A change on the code side alone is refused unless you say the help did not need one. Details are in docs/model-reference.md.
Fixed. load_model takes the repository root as well as a loaded config, so a script that passes the root no longer fails with 'WindowsPath' object has no attribute 'abs'.
Source: v0.5.0 · CHANGELOG.md