Repository navigation
Description
version check holds every id a published version carried, and only a settled widget's retirement licenses dropping one. lf-suggestion is the only family in the vocabulary that declares a retirement (lf-old retires under accept), so an accepted deletion is the one route by which words leave a page.
That route does not reach a widget item, because a suggestion cannot stand inside an items container.
Repro
v1 carries a metrics group with two items:
<lf-metrics id="k-set">
<lf-metric id="k-visits" value="312" delta="+41" direction="up-good">daily visits</lf-metric>
<lf-metric id="k-refills" value="2.1/wk" delta="+0.4" direction="up-bad">refills</lf-metric>
</lf-metrics>Publish it. The reader comments on k-refills, the agent agrees the metric is measuring the refill round rather than the birds, and the reader resolves the thread. v2 drops the item:
✗ v2.html: 1 issue(s)
- ids present in v1.html but dropped in v2.html (anchors on them will break): ['k-refills']
The resolution buys nothing: the rule refuses an id no comment ever anchored to just the same. Proposing the deletion instead:
<lf-metrics id="k-set">
<lf-metric id="k-visits" value="312" delta="+41" direction="up-good">daily visits</lf-metric>
<lf-suggestion id="sug-drop-refills">
<lf-old><lf-metric id="k-refills" value="2.1/wk" delta="+0.4" direction="up-bad">refills</lf-metric></lf-old>
</lf-suggestion>
</lf-metrics>✗ v2.html: 2 issue(s)
- <lf-metrics> (line 17): admits only ['lf-metric'] children, found ['lf-suggestion']
- <lf-metric> (line 20): must be a direct child of <lf-metrics>, found <lf-old>
Two things pass, and both cost something:
- Move the item into a
<details>at the foot. The words stay on the page, now needing a line to explain why they are still there. - Wrap the whole group in a suggestion, rebuild it in
lf-newunder fresh ids, and drop the old ids once the reader accepts. This works, but every surviving item is re-idded, so the anchors break on the item nobody objected to. That is what the rule exists to protect.
Why it matters
A claim the page has retracted cannot leave it, so pages accumulate an archive of withdrawn claims. page-authoring.md asks for the opposite: drop the journey once the conclusion replaces it, and move concluded work to a Settled <details>. A withdrawn claim is not concluded work. It is a wrong turn the reader already rejected, and every version after it carries a sentence saying so.
lf-options has settled for the neighbouring case, and it keeps the words too: the record "keeps its ids and its anchors". Nothing covers an element being withdrawn.
Two shapes that would fix it
- A resolved thread releases its anchor, so an id nothing unresolved points at may be dropped.
- An explicit retirement the author states in the version. The id stays resolvable for the log and the comment panel; its words leave the page. The registry already carries this relation for a decided widget (
x-retired-when,x-withdrawn-as), and the gap is the case where no widget was ever asked.
Seen on leaf 39d10ea.
This was written by Claude Code on behalf of max-sixty
Activity
leaf-agent commentedon Aug 26, 2026
Reproduced both halves verbatim on
cd5e8ca, including the part that reads as surprising: the resolved thread buys nothing, and neither does having no thread at all — dropping an uncommented<p id="lede">from the same page is refused identically.The thing I'd want on the table before picking between the two shapes: a resolved thread already releases its anchor.
retirable_idshedges the unanswered-withdrawal path onanchored_ids, which is unresolved threads only. Same v2 file, byte for byte, withdrawing an undecided suggestion whoself-newholdsnew-line:So shape 1 isn't a new rule so much as that hedge moved one level up, to
checking.pywheregone - retirable_ids(…)is taken. What puts it out of reach ofk-refillsisn't the anchor rule — it's that the license is keyed to a retirement declaration, andlf-old/lf-neware the only tags in the merged vocabulary carrying one.Two things I'd weigh that the issue doesn't raise:
The id rule is also the only gate on a dropped decision. Both
restatement_errorsandreport_errorsskip any unit a version lacks — "A unit either version lacks is id-survival's business, not this gate's" — so anchors are half of what that rule is holding. Stated as "an id nothing unresolved points at may be dropped", shape 1 lets an id carrying a standing action or a live report leave the page with nothing adjudicating it. The withdrawal path bounds that surface to one unanswered proposal's own half; the general rule widens it to every id on the page, so it likely wants the fold consulted besideanchored_ids, notanchored_idsalone.Shape 2 can't ride
restated. Retraction floors are read off the new version's markup (retracts = sorted(parser.restated)), and a withdrawn element has no element there to carry an attribute — which is exactly whyx-withdrawn-asis read off the previous version instead. The precedent for an assertion about a version its markup can't hold isversion publish --completesplus the note's typedsettleslist ({kind, id}overreportandworktoday); a third kind would sit in it directly. The wrinkle is thatversion checkis what refuses the drop, and it runs both inside publish and standalone — so unlike--completes, whose seat check lives only in publish, this one has to reachcmd_checktoo.Worth noting the scope is the whole item vocabulary, not metrics.
lf-suggestiondeclares nox-parent, so all ninex-content: itemscontainers reject it, and the twelve tags that declare one (lf-card,lf-option,lf-tab,lf-milestone,lf-event,lf-variant,lf-chip,lf-note,lf-column,lf-metric, plus the two suggestion slots) can't be wrapped where they stand. Whichever shape lands is also what lets a card leave a board.I've stopped at the analysis rather than opening a PR — the choice between the two changes what the log contract promises a reader, and that's yours to make. Happy to implement either once you've picked one.
Repro and notes
Both halves, on a fresh
page initatcd5e8ca, v1 published and the thread onk-refillsresolved:The uncommented-id control: dropping
<p id="lede">Two numbers from the week.</p>, which no thread ever touched, givesids present in v1.html but dropped in v2.html … ['lede']. The rule is unconditional atchecking.py#L200—gone = prev.ids - parser.ids, minus only what a retirement licenses.The A/B above is a second page: v1 carries an undecided
lf-suggestionwithold-lineinlf-oldandnew-lineinlf-new; v2 withdraws the wrapper and keepsold-line. The only thing changing between the two runs is aleaf resolve --toon the thread anchored atnew-line.Both container errors come from
widget_errors— thex-parentcheck at L519 and thex-content: itemsadmission at L543, whose allowed set is "tags declaring this one asx-parent".Ask workspaces to keep each decision in view in a 720px-tall window (#…
Read the render check's desktop at the user's window, else 1280×720 (#…