fix(workflow): revoke delegated access with membership

Signed-off-by: tornquist <tornquist@squareup.com>
This commit is contained in:
tornquist
2026-08-21 13:52:03 +00:00
committed by Luke Tornquist
parent eae24fa1fa
commit f665a607f4
3 changed files with 125 additions and 31 deletions

View File

@@ -38,7 +38,7 @@ The relay evaluates elevated workflow actions and executes future runs using the
## Deletion request
A workflow deletion is a kind `5` event with one `a` tag targeting the original owner's kind `30620` coordinate and an `expected-revision` tag naming the state the actor loaded. The relay rejects the deletion if a newer workflow revision has already been accepted. Legacy same-author deletions without the revision tag retain NIP-09 timestamp fencing.
A workflow deletion is a kind `5` event with one `a` tag targeting the original owner's kind `30620` coordinate and an `expected-revision` tag naming the state the actor loaded. The relay rejects the deletion if a newer workflow revision has already been accepted. Legacy same-author deletions without the revision tag retain NIP-09 timestamp fencing. A delegated human manager must still be a current member of the workflow's channel when deleting or manually triggering it; removing that membership immediately revokes the delegated capability.
## Current state