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.
Sensitive gate skipped when a package publish restores a soft-deleted page
The sensitive-page gate (#143) did not apply to a package publish that brings back a soft-deleted page.
What happened: the gate on a republish looked up only the live page. A publish to the same owner and slug as a soft-deleted page restores that page, and the restored page keeps its visibility and its sensitive flag. So a sensitive page that was deleted and then republished with visibility, release_visibility or pkg_visibility set to "public" came back widened, with no approval request. Reproduced in a test: the republish with release_visibility: "public" returned 201 and the restored page had public releases.
Fix: https://github.com/adom-inc/git-wiki/pull/335 (stacked on https://github.com/adom-inc/git-wiki/pull/334). The gate now reads the page the publish writes, the live page or else the soft-deleted one it restores, the same way the hero gate does since git-wiki PR 334. A widening restore is refused with APPROVAL_REQUIRED, and the page stays deleted. The refusal says the page is deleted and has to be restored without widening first (adom-wiki repo undelete <ref>, or the same publish without the wider fields), because a deleted page's Visibility panel cannot be opened. The request keeps working after the restore: the page comes back with the same id, its Visibility panel links the request, and approving it widens the page.
Status: open PR, not deployed.