mesh-grants: a grant waits only for what the loaded list does not allow #223

Merged
mesh-tools merged 1 commits from fix/grants-waits-by-coverage into main 2026-11-16 16:30:42 +00:00
Member

Since 15:43 on 2026-11-16 all 182 wanted grants waited (made visible by #222): 'waits for the bus to load a list carrying what it adds: (1 permissions)', for every account, though the loaded list gives every account '>' to publish and subscribe. GrantWaits compared permissions by text. It now compares by what they allow: a composed subject a loaded one covers (NATS wildcards) is carried, and allow-responses is carried where the loaded user may publish every subject. Unit test added (table of cases and subject coverage).

Quick vs thorough: thorough here, since the kind (comparing grants by text) can hold any grant; the comparison is the one place all grants pass.

Recovery mode: merged directly; placed on novox by hand (pack17).

Since 15:43 on 2026-11-16 all 182 wanted grants waited (made visible by #222): 'waits for the bus to load a list carrying what it adds: <account> (1 permissions)', for every account, though the loaded list gives every account '>' to publish and subscribe. GrantWaits compared permissions by text. It now compares by what they allow: a composed subject a loaded one covers (NATS wildcards) is carried, and allow-responses is carried where the loaded user may publish every subject. Unit test added (table of cases and subject coverage). Quick vs thorough: thorough here, since the kind (comparing grants by text) can hold any grant; the comparison is the one place all grants pass. Recovery mode: merged directly; placed on novox by hand (pack17).
mesh-tools added 1 commit 2026-11-16 16:30:38 +00:00
GrantWaits compared permissions by their text, so a composed subject or allow-responses counted as
missing though the loaded list's '>' already allowed it: all 182 grants waited on '1 permissions'
from 15:43 on 2026-11-16 and no want moved. A subject a loaded one covers is carried now, and
answering is carried where the loaded user may publish every subject.
mesh-tools merged commit cdcab2370d into main 2026-11-16 16:30:42 +00:00
mesh-tools deleted branch fix/grants-waits-by-coverage 2026-11-16 16:30:42 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_965_62131b05/1b17831c79d3030a",
"sequence": 9275,
"bytes": 840,
"of-bytes": 262144,
"waits": "its difference is not known yet",
"record": {
"milestone": "main.965",
"heads": {
"novox/mesh-delivery@223": "cdcab2370dbc09ea7c63bdb0337fdf0dd55be8c5"
},
"opened": "2026-11-16T16:32:56.650269339Z",
"form": 1,
"group": {
"group": "",
"members": [
"novox/mesh-delivery@223"
],
"pulls": [
{
"repository": "novox/mesh-delivery",
"number": 223,
"head": "cdcab2370dbc09ea7c63bdb0337fdf0dd55be8c5",
"state": "merged",
"commit": "cdcab2370dbc09ea7c63bdb0337fdf0dd55be8c5",
"base": "main"
}
]
},
"entries": {
"mesh-grants|src2:eb86357be98a48d01c2896c77fed5aee04835f66dc654b2c55e0217b474aa669|": {
"key": "mesh-grants|src2:eb86357be98a48d01c2896c77fed5aee04835f66dc654b2c55e0217b474aa669|",
"module": "mesh-grants",
"fingerprint": "src2:eb86357be98a48d01c2896c77fed5aee04835f66dc654b2c55e0217b474aa669"
}
},
"outcomes": {
"|||take-in": {
"key": "|||take-in",
"module": "",
"step": "take-in",
"outcome": "taken-in",
"at": "2026-11-16T16:32:56.649303138Z"
}
}
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_965_62131b05/1b17831c79d3030a", "sequence": 9275, "bytes": 840, "of-bytes": 262144, "waits": "its difference is not known yet", "record": { "milestone": "main.965", "heads": { "novox/mesh-delivery@223": "cdcab2370dbc09ea7c63bdb0337fdf0dd55be8c5" }, "opened": "2026-11-16T16:32:56.650269339Z", "form": 1, "group": { "group": "", "members": [ "novox/mesh-delivery@223" ], "pulls": [ { "repository": "novox/mesh-delivery", "number": 223, "head": "cdcab2370dbc09ea7c63bdb0337fdf0dd55be8c5", "state": "merged", "commit": "cdcab2370dbc09ea7c63bdb0337fdf0dd55be8c5", "base": "main" } ] }, "entries": { "mesh-grants|src2:eb86357be98a48d01c2896c77fed5aee04835f66dc654b2c55e0217b474aa669|": { "key": "mesh-grants|src2:eb86357be98a48d01c2896c77fed5aee04835f66dc654b2c55e0217b474aa669|", "module": "mesh-grants", "fingerprint": "src2:eb86357be98a48d01c2896c77fed5aee04835f66dc654b2c55e0217b474aa669" } }, "outcomes": { "|||take-in": { "key": "|||take-in", "module": "", "step": "take-in", "outcome": "taken-in", "at": "2026-11-16T16:32:56.649303138Z" } } } } ] } <!-- mesh-act:view.record/main_965_62131b05/1b17831c79d3030a.novox/mesh-delivery#223@1794846780392973860.f06c37e1 -->
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-delivery#223