T2 fan-out · personal / research:for_eachfans onenika:fetchwithmode: metadataper URL — the page’s OG/meta head as typed data, not a scrape — withretry:for transient blips andon_error: recover:so a dead link degrades to a{ dead: true }row instead of failing the batch.nika:jqrenders the triage table;nika:writepersists it.
The job
Every bookmark pile has the same two questions: what is this, and is it even alive? Answering them by hand means opening every tab. This workflow answers both in one run — title/description/site from each page’s own metadata, dead links marked as dead — and leaves a table you can sort, grep, and prune from.The shape
The file
bookmark-triage.nika
The resilience ladder, in order
retry: { max_attempts: 2, backoff_ms: 500 }— a transient blip gets a second chance BEFORE any verdict.on_error: recover:— a link that still fails becomes{ dead: true }and the batch keeps walking.recover:takes a YAML value, not a JSON string: quote it and jq downstream sees an unindexable string instead of an object.- The table renders both worlds — the jq step escapes pipes and
newlines from page-controlled metadata (a
|in someone’s OG title must not break your markdown table), and dead rows print asDEADinstead of vanishing.
mode: metadata fetches the page’s head, typed —
when all you need is identity, don’t ask for the body.
Run it
What it needs: Network access to
example.com and github.com. No model and no key. With no network the run still succeeds: every row takes the recover: path and the table lists it as dead.1
Rehearse it
nika try names those hosts: may reach: example.com · github.com · this-domain-does-not-exist-0000.invalid — the mock replaces the model, not the network.2
Get your own copy
Save the file above as
bookmark-triage.nika in a new folder. It reads no sample file.3
Check it, then run it
out/bookmarks.md.Replace const.bookmarks with your own list (most browsers export bookmarks as HTML; one jq pass turns that into the URL list this file expects), and add each new host to permits.net.http.