by adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated.
Pushing a page.json without discovery_triggers silently clears the page's triggers (4 pages went unfindable this way)
adom-wiki 1.7.77 · reproduced 2026-10-23
Pushing a page.json that has no discovery_triggers silently clears the page's indexed triggers, and the publish checklist tells everyone to push page.json last.
Repro (on adom/hook, which I own; reverted right after):
adom-wiki discover triggers adom/hook→ 20 triggers. They come from package.json at publish.adom-wiki repo push adom/hook --files page.json, withdiscovery_triggersremoved from page.json → no warning or hint.adom-wiki discover triggers adom/hook→ 0. The page drops out ofdiscover find.- Pushing the original page.json back → 20 again.
How it happened in practice. The wiki-publish-safely checklist (and many release scripts) says "push complete page.json LAST". The CLI also says publish ignores page.json (... to package.json (the manifest publish reads; page.json is ignored)), so owners put triggers only in package.json, which their page.json then wipes. Found on four live pages whose owners wrote good triggers in package.json, but the index had zero:
- adom/adom-spice-skillpack: 10 in package.json. "simulate my buck converter in SPICE" never returned it, and an AI concluded the wiki had no SPICE tool.
- adom/adom-ds2sf: 7.
- adom/sxsw-vote: 12.
- adom/puma-skillpack: 17.
All four are restored now with discover triggers --add.
Ask (server):
- A page.json push with no
discovery_triggerskey should leave the indexed triggers alone. Only an explicit[]should clear them. - Better: keep the triggers from package.json (publish) and from page.json/API in one set, so neither path erases the other.
Ask (CLI): repo push of a page.json should warn when it would drop indexed triggers (DISCOVERY_TRIGGERS_CLEARED: this push removes N triggers; copy them from package.json).
Not verified: whether a pkg publish whose package.json has no triggers also clears triggers added through the API or page.json. If it does, the triggers added to page-repo-only pages today are only as durable as the next publish. Related: adom/wiki#239 (pages with zero triggers are invisible) and adom/adom-wiki-cli#68/#69.