Propose inactive Sites publish evidence transactions

Draft
SI
5d ago
+1070-0

Inactive Sites evidence persistence proposal for #2094. Executable SQL remains under proposals/sites-publish-evidence-2094/, outside migrations. Keep this PR draft and unmerged; no apply, runtime grants, schema exposure, retention activation or publication gate is authorized.

One immutable private record table, one publication evidence pointer, create-once capture, scoped read and stored-candidate publication transactions. Current proposal adds a required expected artist ID to publish_candidate, compared null-safely under its existing site row lock before publication writes. This closes the artist-ID race between the final API read and SQL while preserving current attribution; it does not authorize artist transitions. Capture/read signatures, assessment records and API canonical golden vectors are unchanged and remain compatible with API #1263. API #1265 supplies the companion unwired publication wrapper.

Validation at afd214aa73dfd70b0f2b860fce90c12ceb23f28b: 30 disposable Unix-socket tests on each PostgreSQL15.10/17.7 (29 proposal tests plus one inherited prerequisite test). The prior 27 tests remain; new tests cover stable/null artist matches, conflicting artist changes with unchanged publication fields, and publication waiting behind an artist writer then conflicting. Existing repository CI is separate from this proposal suite. General paid/Context/artist-access/fan-configuration/Workflow authority remains an API obligation and is not made atomic by this artist-ID fence. See PROTOCOL.md for legacy-writer, pointer-ABA, retention and release gates.