A-386 kept-runner-carries-a-module-known-by-its-bindings: a module placed on a node whose manifest is unreadable is carried by a kept runner by its kept bindings alone

Builds: design 47 G A-386 (G-22-lead-answers-2.md), live read of the gate's membership

Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
2026-11-14 01:42:00 +01:00
parent 89e36241cb
commit 6edfe1da8d
4 changed files with 91 additions and 6 deletions
@@ -726,11 +726,12 @@ func newEventStreams(kept []KeptEvent) []string {
// KeptRunnerGrants are the grants a tool runner that a pass keeps as it runs (no placed manifest says it is one, ADR 0601 §4) is composed
// as a carrying runner for: what the modules placed on its node that a runner carries, with their bindings and events, give it (design 47
// G A-386), never as a plain module. runner is the module the kept user is named for.
func KeptRunnerGrants(r Records, node, runner string) (Permissions, error) {
// G A-386), never as a plain module. runner is the module the kept user is named for; byBindings are the modules placed on the node
// whose manifest the pass cannot read, declared by the bindings kept for them alone (they carry nothing else).
func KeptRunnerGrants(r Records, node, runner string, byBindings []Declared) (Permissions, error) {
logs := DeclaredLogs(r)
var carried []Declared
for _, d := range r.Assigned[node] {
for _, d := range append(slices.Clone(r.Assigned[node]), byBindings...) {
if CarriedByRunner(d) {
d = withReadLogs(withAnnouncedReads(d, r.Announced), logs)
d.Hears = ComposedHears(d)