Repository navigation
Conversation
The relay now checks the assignee and creator tags on NIP-AR artifacts. Every assignee must be able to read the home a revision puts the artifact in, judged with the same lookup as the channel-access answer. The creator must be the signer on create and stays the same on every later revision; the artifact head now stores it, so the check survives retention and redaction. Find gains `unassigned`, `within` (a channel and what is filed under it) and `until` (inclusive, newest created first) for current-state queries. History, head and incremental reads refuse what they cannot honor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
An update is checked only for the assignees it adds, against the head's stored list; a create, move or restore checks everyone. At most four assignees, and known agents (an owner on record) can neither be assigned nor sign a revision. Every refusal carries a stable NIP-AR reason code and the keys involved. The head now stores the current assignees as well as the creator. A head saved before 0096 fills both on its next save, under the lock: the creator from the first save's signer, else the current tag, else unknown, so no task becomes uneditable and none can be claimed later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
This was referenced Nov 17, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #9582 (channel access). Review only the last two commits; the base branch carries the rest of the stack.
What
The relay now enforces who a task can name, and Find can ask for what the task screens need.
["assignee", <hex pubkey>]: lowercase hex, distinct, at most 4 per revision, people only. Assignees are checked when someone is assigned and when the task moves:create,moveorrestorechecks every assignee.updatechecks only the people it adds, compared with the task's stored current state. Someone who lost access since being assigned doesn't block an unrelated edit, and can't read the task anyway.channel_access::can_read), so parents andparent_accesscount.["creator", <hex pubkey>], at most once. Oncreateit must be the signer. Every later revision carries the same creator, or none when the task was created without one.creator-changedrefusal names the creator to resend with.invalid: <code>:<keys> — <text>, following the relay's existinginvalid: policy:nobody — …form. The codes areassignee-unreadable,assignee-agent,too-many-assignees,signer-agent,creator-not-signerandcreator-changed. NIP-AR documents them."unassigned": true: only artifacts with noassigneetag. It can't be combined with#assignee."within": <channel id>: the channel and everything filed under it, down to grandchildren, still limited to what the reader can read."until": <unix seconds>: revisions created at or before it, newestcreated_atfirst. It is inclusive, so the next page starts at the oldest one got and the client drops the repeat.historyandheadrefuseunassignedandwithin. Incremental reads refuse all three, so a filter is never silently ignored.buzz-artifact-assignees.Known gaps
Agents are recognized only when known. The relay treats a key as an agent only once it has an owner on record. That record is written only from a verified owner attestation (NIP-OA, or a NIP-FI agent assertion), and it is never rewritten. Some agents look like people to the relay:
The app's own rule stays the first line.
Hosted agents are covered only if their runner sends the owner attestation when it connects. Nothing in the relay records an owner for them by any other path.
The assignee check runs just before the save's transaction. The decision about who counts as added, and the fill for older tasks, happen inside the lock. A removal that lands between the check and the save leaves an assignee who can't read the task, which is the same state as losing access later. The next edit isn't blocked by it.
Testing
artifact_assignee_postgres_tests.rs) through real ingest:unassigned, return the right tasks.withinreaches a project's grandchildren.untilpages newest first with an inclusive edge.unassignedanduntilfilters.🤖 Generated with Claude Code