feat: wire role revocation and detachment into the space About tab - #644
Merged
Conversation
Support for deactivating roles (issue #639), building on nanopub-query's server-side role revocation (nanopub-query #129): - KPXL_TERMS: add gen:RevokedRoleInstantiation and gen:detachedRole. - PostPublishRefresh: treat revocations and detachments as structural, so publishing one refreshes the page structure (a revoked role can change which role-gated views the target sees). - AboutSpacePanel: pass the space as entitlement/context resource to the members and observers table builders, so the views' per-row "revoke role" entry actions can render and pre-fill param_space; bump the roles/members/observers view constants to the current heads so the exact-version fallback of View.get can no longer surface stale titles or queries. - QueryApiAccess: bump the ref-scoped roles/members/observers query constants to the versions carrying the action-feed columns (detachRole, revokeAgent); grlc serves by exact artifact code, so supersedes alone do not redirect the endpoints. The published counterparts (revocation/detachment templates, query and view supersedes adding the per-row "detach role" and "revoke role" actions) are live on the nanopub network; verified end-to-end on an isolated instance. Closes #639 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Closes #639.
Code side of deactivation support for roles, building on nanopub-query's server-side revocation model (knowledgepixels/nanopub-query#129):
gen:RevokedRoleInstantiationrevokes one(space, agent, role)assignment (admins keyed ongen:hasRole gen:AdminRole), andgen:detachedRoleremoves a role from a space altogether, cascading to its holders.Code changes
REVOKED_ROLE_INSTANTIATIONandDETACHED_ROLE.View.get's exact-version fallback can no longer surface stale titles or queries.detachRole,revokeAgent) — grlc serves by exact artifact code, so supersedes alone don't redirect the endpoints.Published counterparts (already live)
RAgP7Hztxe…) and "Detaching a role from a space" (RAVnwxKE…).detachRole/revokeAgentaction-feed columns (IRI-keyed + ref-scoped variants).Verified end-to-end on an isolated jetty with headless Chrome: correct view titles, no leaked action-feed columns, detach only on non-admin role rows, and click-through confirms each action opens its intended template with
param_space+param_role/param_agentpre-filled.🤖 Generated with Claude Code