Skip to content

Propose inactive Sites publish evidence transactions - #136

Draft
sidneyswift wants to merge 3 commits into
mainfrom
codex/sites-evidence-contract
Draft

sidneyswift wants to merge 3 commits into
mainfrom
codex/sites-evidence-contract

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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.

@supabase

supabase Bot commented Nov 17, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project godremdqwajrwazhbrue because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant