A-381 grants-account-lists-stream-names: grants' account may ask the names of the bus's streams, which creating a kept event's stream asks first
Builds: design 47 G A-381 (G-22-lead-answers-2.md) Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
@@ -99,6 +99,9 @@ func theGrantsPartCreatesOnlyDeclaredStreams(t *testing.T) {
|
||||
{GrantsModule, "$JS.API.CONSUMER.DELETE.OBJ_mesh-grants-user-list.abc", true},
|
||||
{GrantsModule, "$JS.FC.OBJ_mesh-grants-user-list.abc.def.ghi", true},
|
||||
{GrantsModule, "$JS.API.CONSUMER.CREATE.OBJ_declaration-files-novox.abc.$O.declaration-files-novox.C.abc", false},
|
||||
// A-381: creating a kept event's stream asks the names of the bus's streams first.
|
||||
{GrantsModule, "$JS.API.STREAM.NAMES", true},
|
||||
{"mesh-delivery-builder", "$JS.API.STREAM.NAMES", false},
|
||||
{GrantsModule, "$O.declaration-files-novox.C.abc", false},
|
||||
{GrantsModule, "$JS.API.STREAM.DELETE.OBJ_mesh-grants-user-list", false},
|
||||
{"mesh-delivery-builder", "$O.mesh-grants-user-list.C.abc", false},
|
||||
|
||||
@@ -961,6 +961,8 @@ func permissionsFor(p Principal) (Permissions, error) {
|
||||
// And creating each stream a manifest declares, by its own name (the operator, 2026-10-26 08:54; issue
|
||||
// 1790): the create and the read of that one stream, never an update, a delete or a stream not declared.
|
||||
pub = append(pub, CreateStreamGrants(p.CreatesStreams)...)
|
||||
// And the names of the bus's streams, which creating a stream whose messages are sourced from another asks first (design 47 G A-381).
|
||||
pub = append(pub, "$JS.API.STREAM.NAMES")
|
||||
// And creating each durable consumer an account needs, by its stream and name (ADR 0561 §6).
|
||||
pub = append(pub, CreateConsumerGrants(p.CreatesConsumers)...)
|
||||
// And the purge of the build seats' named asks and the delete of their named workers (design 47 G §544).
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user