@stigmer/server 3.15.2 → 3.15.3-dev.20260914121148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/boot/compose.d.ts.map +1 -1
  2. package/dist/boot/compose.js +103 -9
  3. package/dist/boot/compose.js.map +1 -1
  4. package/dist/domain/iampolicy/access-lists.d.ts +27 -0
  5. package/dist/domain/iampolicy/access-lists.d.ts.map +1 -0
  6. package/dist/domain/iampolicy/access-lists.js +124 -0
  7. package/dist/domain/iampolicy/access-lists.js.map +1 -0
  8. package/dist/domain/iampolicy/constants.d.ts +135 -0
  9. package/dist/domain/iampolicy/constants.d.ts.map +1 -0
  10. package/dist/domain/iampolicy/constants.js +203 -0
  11. package/dist/domain/iampolicy/constants.js.map +1 -0
  12. package/dist/domain/iampolicy/controller.d.ts +29 -0
  13. package/dist/domain/iampolicy/controller.d.ts.map +1 -0
  14. package/dist/domain/iampolicy/controller.js +451 -0
  15. package/dist/domain/iampolicy/controller.js.map +1 -0
  16. package/dist/domain/iampolicy/display-resolver.d.ts +6 -0
  17. package/dist/domain/iampolicy/display-resolver.d.ts.map +1 -0
  18. package/dist/domain/iampolicy/display-resolver.js +90 -0
  19. package/dist/domain/iampolicy/display-resolver.js.map +1 -0
  20. package/dist/domain/iampolicy/grant-path.d.ts +42 -0
  21. package/dist/domain/iampolicy/grant-path.d.ts.map +1 -0
  22. package/dist/domain/iampolicy/grant-path.js +183 -0
  23. package/dist/domain/iampolicy/grant-path.js.map +1 -0
  24. package/dist/domain/iampolicy/grant-scope.d.ts +4 -0
  25. package/dist/domain/iampolicy/grant-scope.d.ts.map +1 -0
  26. package/dist/domain/iampolicy/grant-scope.js +34 -0
  27. package/dist/domain/iampolicy/grant-scope.js.map +1 -0
  28. package/dist/domain/iampolicy/membership.d.ts +111 -0
  29. package/dist/domain/iampolicy/membership.d.ts.map +1 -0
  30. package/dist/domain/iampolicy/membership.js +152 -0
  31. package/dist/domain/iampolicy/membership.js.map +1 -0
  32. package/dist/domain/iampolicy/permissions.d.ts +19 -0
  33. package/dist/domain/iampolicy/permissions.d.ts.map +1 -0
  34. package/dist/domain/iampolicy/permissions.js +27 -0
  35. package/dist/domain/iampolicy/permissions.js.map +1 -0
  36. package/dist/domain/iampolicy/resource-store.d.ts +4 -0
  37. package/dist/domain/iampolicy/resource-store.d.ts.map +1 -0
  38. package/dist/domain/iampolicy/resource-store.js +135 -0
  39. package/dist/domain/iampolicy/resource-store.js.map +1 -0
  40. package/dist/domain/iampolicy/role-lifecycle.d.ts +9 -0
  41. package/dist/domain/iampolicy/role-lifecycle.d.ts.map +1 -0
  42. package/dist/domain/iampolicy/role-lifecycle.js +106 -0
  43. package/dist/domain/iampolicy/role-lifecycle.js.map +1 -0
  44. package/dist/domain/iampolicy/roles.d.ts +11 -0
  45. package/dist/domain/iampolicy/roles.d.ts.map +1 -0
  46. package/dist/domain/iampolicy/roles.js +78 -0
  47. package/dist/domain/iampolicy/roles.js.map +1 -0
  48. package/dist/domain/iampolicy/specs.d.ts +7 -0
  49. package/dist/domain/iampolicy/specs.d.ts.map +1 -0
  50. package/dist/domain/iampolicy/specs.js +45 -0
  51. package/dist/domain/iampolicy/specs.js.map +1 -0
  52. package/dist/domain/iampolicy/steps.d.ts +18 -0
  53. package/dist/domain/iampolicy/steps.d.ts.map +1 -0
  54. package/dist/domain/iampolicy/steps.js +117 -0
  55. package/dist/domain/iampolicy/steps.js.map +1 -0
  56. package/dist/domain/iampolicy/store-contract.d.ts +8 -0
  57. package/dist/domain/iampolicy/store-contract.d.ts.map +1 -0
  58. package/dist/domain/iampolicy/store-contract.js +258 -0
  59. package/dist/domain/iampolicy/store-contract.js.map +1 -0
  60. package/dist/domain/iampolicy/store.d.ts +78 -0
  61. package/dist/domain/iampolicy/store.d.ts.map +1 -0
  62. package/dist/domain/iampolicy/store.js +13 -0
  63. package/dist/domain/iampolicy/store.js.map +1 -0
  64. package/dist/domain/iampolicy/wire-refusals.d.ts +25 -0
  65. package/dist/domain/iampolicy/wire-refusals.d.ts.map +1 -0
  66. package/dist/domain/iampolicy/wire-refusals.js +76 -0
  67. package/dist/domain/iampolicy/wire-refusals.js.map +1 -0
  68. package/dist/domain/identityaccount/constants.d.ts +33 -0
  69. package/dist/domain/identityaccount/constants.d.ts.map +1 -1
  70. package/dist/domain/identityaccount/constants.js +2 -48
  71. package/dist/domain/identityaccount/constants.js.map +1 -1
  72. package/dist/domain/identityaccount/controller.d.ts +8 -1
  73. package/dist/domain/identityaccount/controller.d.ts.map +1 -1
  74. package/dist/domain/identityaccount/controller.js +54 -29
  75. package/dist/domain/identityaccount/controller.js.map +1 -1
  76. package/dist/domain/identityaccount/operator.d.ts.map +1 -1
  77. package/dist/domain/identityaccount/operator.js +2 -4
  78. package/dist/domain/identityaccount/operator.js.map +1 -1
  79. package/dist/domain/identityaccount/provisioning.d.ts +20 -1
  80. package/dist/domain/identityaccount/provisioning.d.ts.map +1 -1
  81. package/dist/domain/identityaccount/provisioning.js +17 -3
  82. package/dist/domain/identityaccount/provisioning.js.map +1 -1
  83. package/dist/domain/identityaccount/resolve.d.ts +23 -0
  84. package/dist/domain/identityaccount/resolve.d.ts.map +1 -1
  85. package/dist/domain/identityaccount/resolve.js +17 -0
  86. package/dist/domain/identityaccount/resolve.js.map +1 -1
  87. package/dist/domain/identityaccount/store-contract.d.ts +4 -18
  88. package/dist/domain/identityaccount/store-contract.d.ts.map +1 -1
  89. package/dist/domain/identityaccount/store-contract.js +12 -47
  90. package/dist/domain/identityaccount/store-contract.js.map +1 -1
  91. package/dist/extensions/authorization-queries.d.ts +81 -0
  92. package/dist/extensions/authorization-queries.d.ts.map +1 -0
  93. package/dist/extensions/authorization-queries.js +2 -0
  94. package/dist/extensions/authorization-queries.js.map +1 -0
  95. package/dist/extensions/drivers.d.ts +49 -2
  96. package/dist/extensions/drivers.d.ts.map +1 -1
  97. package/dist/extensions/identity.d.ts +14 -0
  98. package/dist/extensions/identity.d.ts.map +1 -1
  99. package/dist/extensions/identity.js +18 -1
  100. package/dist/extensions/identity.js.map +1 -1
  101. package/dist/extensions/list-read-scope.d.ts +41 -4
  102. package/dist/extensions/list-read-scope.d.ts.map +1 -1
  103. package/dist/extensions/list-read-scope.js +44 -7
  104. package/dist/extensions/list-read-scope.js.map +1 -1
  105. package/dist/extensions/policy-grant-scope.d.ts +50 -0
  106. package/dist/extensions/policy-grant-scope.d.ts.map +1 -0
  107. package/dist/extensions/policy-grant-scope.js +2 -0
  108. package/dist/extensions/policy-grant-scope.js.map +1 -0
  109. package/dist/extensions/registry.d.ts +23 -1
  110. package/dist/extensions/registry.d.ts.map +1 -1
  111. package/dist/extensions/registry.js +30 -0
  112. package/dist/extensions/registry.js.map +1 -1
  113. package/dist/extensions/resource-authorization.d.ts +63 -0
  114. package/dist/extensions/resource-authorization.d.ts.map +1 -1
  115. package/dist/index.d.ts +7 -1
  116. package/dist/index.d.ts.map +1 -1
  117. package/dist/index.js +2 -0
  118. package/dist/index.js.map +1 -1
  119. package/dist/pipeline/apiresource-meta.d.ts +77 -1
  120. package/dist/pipeline/apiresource-meta.d.ts.map +1 -1
  121. package/dist/pipeline/apiresource-meta.js +183 -1
  122. package/dist/pipeline/apiresource-meta.js.map +1 -1
  123. package/dist/pipeline/interceptors/auth.d.ts +12 -0
  124. package/dist/pipeline/interceptors/auth.d.ts.map +1 -1
  125. package/dist/pipeline/interceptors/auth.js +13 -1
  126. package/dist/pipeline/interceptors/auth.js.map +1 -1
  127. package/dist/pipeline/steps/authorization-tuples.d.ts.map +1 -1
  128. package/dist/pipeline/steps/authorization-tuples.js +7 -26
  129. package/dist/pipeline/steps/authorization-tuples.js.map +1 -1
  130. package/dist/pipeline/steps/authorize.d.ts +20 -5
  131. package/dist/pipeline/steps/authorize.d.ts.map +1 -1
  132. package/dist/pipeline/steps/authorize.js +37 -17
  133. package/dist/pipeline/steps/authorize.js.map +1 -1
  134. package/dist/pipeline/steps/defaults.d.ts +10 -0
  135. package/dist/pipeline/steps/defaults.d.ts.map +1 -1
  136. package/dist/pipeline/steps/defaults.js +39 -0
  137. package/dist/pipeline/steps/defaults.js.map +1 -1
  138. package/dist/pipeline/steps/shapes.d.ts +18 -0
  139. package/dist/pipeline/steps/shapes.d.ts.map +1 -1
  140. package/dist/pipeline/steps/shapes.js +29 -0
  141. package/dist/pipeline/steps/shapes.js.map +1 -1
  142. package/dist/store/port-contract.d.ts +61 -0
  143. package/dist/store/port-contract.d.ts.map +1 -0
  144. package/dist/store/port-contract.js +67 -0
  145. package/dist/store/port-contract.js.map +1 -0
  146. package/package.json +4 -4
  147. package/src/boot/compose.ts +107 -10
  148. package/src/domain/iampolicy/__tests__/access-lists.test.ts +238 -0
  149. package/src/domain/iampolicy/__tests__/constants.test.ts +388 -0
  150. package/src/domain/iampolicy/__tests__/controller.test.ts +960 -0
  151. package/src/domain/iampolicy/__tests__/display-resolver.test.ts +138 -0
  152. package/src/domain/iampolicy/__tests__/grant-path.test.ts +474 -0
  153. package/src/domain/iampolicy/__tests__/grant-scope.test.ts +61 -0
  154. package/src/domain/iampolicy/__tests__/iampolicy.test.ts +532 -0
  155. package/src/domain/iampolicy/__tests__/membership.test.ts +447 -0
  156. package/src/domain/iampolicy/__tests__/permissions.test.ts +41 -0
  157. package/src/domain/iampolicy/__tests__/resource-store.test.ts +165 -0
  158. package/src/domain/iampolicy/__tests__/role-lifecycle.test.ts +361 -0
  159. package/src/domain/iampolicy/__tests__/roles.test.ts +53 -0
  160. package/src/domain/iampolicy/__tests__/specs.test.ts +41 -0
  161. package/src/domain/iampolicy/__tests__/steps.test.ts +278 -0
  162. package/src/domain/iampolicy/__tests__/support.ts +195 -0
  163. package/src/domain/iampolicy/__tests__/wire-refusals.test.ts +117 -0
  164. package/src/domain/iampolicy/access-lists.ts +191 -0
  165. package/src/domain/iampolicy/constants.ts +243 -0
  166. package/src/domain/iampolicy/controller.ts +798 -0
  167. package/src/domain/iampolicy/display-resolver.ts +123 -0
  168. package/src/domain/iampolicy/grant-path.ts +270 -0
  169. package/src/domain/iampolicy/grant-scope.ts +36 -0
  170. package/src/domain/iampolicy/membership.ts +298 -0
  171. package/src/domain/iampolicy/permissions.ts +35 -0
  172. package/src/domain/iampolicy/resource-store.ts +186 -0
  173. package/src/domain/iampolicy/role-lifecycle.ts +132 -0
  174. package/src/domain/iampolicy/roles.ts +95 -0
  175. package/src/domain/iampolicy/specs.ts +53 -0
  176. package/src/domain/iampolicy/steps.ts +178 -0
  177. package/src/domain/iampolicy/store-contract.ts +450 -0
  178. package/src/domain/iampolicy/store.ts +103 -0
  179. package/src/domain/iampolicy/wire-refusals.ts +110 -0
  180. package/src/domain/identityaccount/__tests__/provisioning.test.ts +19 -7
  181. package/src/domain/identityaccount/__tests__/resolve.test.ts +113 -2
  182. package/src/domain/identityaccount/constants.ts +16 -31
  183. package/src/domain/identityaccount/controller.ts +65 -35
  184. package/src/domain/identityaccount/operator.ts +5 -5
  185. package/src/domain/identityaccount/provisioning.ts +43 -5
  186. package/src/domain/identityaccount/resolve.ts +43 -0
  187. package/src/domain/identityaccount/store-contract.ts +22 -70
  188. package/src/extensions/__tests__/composed-support.ts +87 -0
  189. package/src/extensions/__tests__/iam-policy-composed.test.ts +373 -0
  190. package/src/extensions/__tests__/iam-policy-points.test.ts +169 -0
  191. package/src/extensions/__tests__/identity-account-composed.test.ts +12 -78
  192. package/src/extensions/__tests__/identity.test.ts +62 -0
  193. package/src/extensions/__tests__/list-read-scope.test.ts +138 -0
  194. package/src/extensions/__tests__/tier-truthfulness.test.ts +8 -0
  195. package/src/extensions/authorization-queries.ts +97 -0
  196. package/src/extensions/drivers.ts +49 -2
  197. package/src/extensions/identity.ts +21 -0
  198. package/src/extensions/list-read-scope.ts +87 -9
  199. package/src/extensions/policy-grant-scope.ts +50 -0
  200. package/src/extensions/registry.ts +62 -1
  201. package/src/extensions/resource-authorization.ts +65 -0
  202. package/src/index.ts +20 -0
  203. package/src/pipeline/__tests__/grantable-roles-for.test.ts +87 -0
  204. package/src/pipeline/__tests__/inherited-authorization-parent.test.ts +51 -0
  205. package/src/pipeline/__tests__/kind-by-enum-name.test.ts +107 -0
  206. package/src/pipeline/__tests__/kind-served-by-edition.test.ts +107 -0
  207. package/src/pipeline/apiresource-meta.ts +218 -1
  208. package/src/pipeline/interceptors/auth.ts +14 -1
  209. package/src/pipeline/steps/__tests__/authorize-annotation-completeness.test.ts +73 -3
  210. package/src/pipeline/steps/__tests__/authorize.test.ts +134 -9
  211. package/src/pipeline/steps/__tests__/derived-id.test.ts +49 -0
  212. package/src/pipeline/steps/authorization-tuples.ts +7 -28
  213. package/src/pipeline/steps/authorize.ts +46 -21
  214. package/src/pipeline/steps/defaults.ts +42 -0
  215. package/src/pipeline/steps/shapes.ts +31 -0
  216. package/src/store/__tests__/port-contract.test.ts +123 -0
  217. package/src/store/port-contract.ts +102 -0
@@ -1 +1 @@
1
- {"version":3,"file":"store-contract.js","sourceRoot":"","sources":["../../../src/domain/identityaccount/store-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,OAAO,EAAE,+BAA+B,EAAE,MAAM,2DAA2D,CAAC;AAE5G,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA0BnD,0FAA0F;AAC1F,SAAS,aAAa,CAAC,SAItB;IACC,OAAO,MAAM,CAAC,qBAAqB,EAAE;QACnC,UAAU,EAAE,mBAAmB;QAC/B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE;YACR,EAAE,EAAE,YAAY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CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,GAAG,IAAI,CAAC;QACd,MAAM,KAAK,CAAC;IACd,CAAC;YAAS,CAAC;QACT,IAAI,CAAC;YACH,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC;QAAC,OAAO,YAAY,EAAE,CAAC;YACtB,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,YAAY,CAAC;YACrB,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,4BAA4B,CAC1C,WAA+D;IAE/D,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAClC,IAAI;QACJ,GAAG,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,IAAI,CAAC;KAC1C,CAAC,CAAC,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"store-contract.js","sourceRoot":"","sources":["../../../src/domain/identityaccount/store-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAEtH,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,OAAO,EAAE,+BAA+B,EAAE,MAAM,2DAA2D,CAAC;AAE5G,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAMjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AASnD,0FAA0F;AAC1F,SAAS,aAAa,CAAC,SAItB;IACC,OAAO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D,OAAO,iBAAiB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * The authorization-query capability (20260913.01, T01_1_review.md Q-OR-8):
3
+ * the TUPLE half of the IamPolicy query surface — the questions only an
4
+ * authorization engine can answer over its own graph, as opposed to the
5
+ * ROW half (who holds which role on what) that every edition answers from
6
+ * IamPolicy rows. Single instance, registered as
7
+ * `drivers.authorizationQueries` (the identityFederation shape: a driver
8
+ * point that is open source's own behaviour when absent).
9
+ *
10
+ * Absent, the IamPolicy query controller refuses `checkAuthorization`,
11
+ * `listAuthorizedResourceIds`, `listAuthorizedPrincipalIds`, and a
12
+ * `checkMyPermission` that carries contextual policies, UNIMPLEMENTED with
13
+ * the edition reason (domain/iampolicy/constants.ts
14
+ * AUTHORIZATION_QUERIES_UNIMPLEMENTED_MESSAGE) — never INTERNAL, the
15
+ * organization directory's absent-method precedent. Present, the
16
+ * controller still owns everything that is not the graph question: the
17
+ * annotation's Authorize step, `checkAuthorization`'s principal-trust rule
18
+ * (a user asks only about their own account; machine and internal about
19
+ * anyone), the UNAUTHENTICATED refusal, and the plain
20
+ * `checkMyPermission` that rides the composed Authorizer instead. The
21
+ * engine receives boundary-validated refs and never asks who is calling.
22
+ *
23
+ * The engine speaks the CONTRACT's vocabulary, not a backend's (Q-S3-1,
24
+ * 2026-09-13): `ApiResourceRef` for a principal or resource (kind = the
25
+ * enum member name, id, and for a principal an optional relation — the
26
+ * userset form `organization:X#member`), `IamPolicySpec` for a policy and
27
+ * for the what-if policies every query may carry, and the relation and
28
+ * kind strings as the wire sends them. The cloud's driver renders these to
29
+ * OpenFGA's `type:id#relation` strings itself; that grammar belongs to the
30
+ * store that runs it and never enters this library.
31
+ *
32
+ * Semantics the controller and the conformance suite rely on (the Java
33
+ * check-handler posture the cloud's client already implements):
34
+ *
35
+ * - `check` answers a public grant (a wildcard principal resolves), so
36
+ * "may I read this public agent" is true for anyone.
37
+ * - the two listings never expand wildcards, and `listPrincipalIds`
38
+ * answers DIRECT principals only — a listing is an inventory of who
39
+ * was named, never a resolution of who could reach.
40
+ * - contextual policies are evaluated as if held, and nothing is written.
41
+ *
42
+ * Error doctrine (the ListReadScope rule, verbatim in spirit: a seam that
43
+ * cannot answer THROWS — never an empty set, never false): `false` and
44
+ * `[]` are REAL answers. A backend outage surfaces as a throw; a
45
+ * ConnectError keeps its code (the cloud maps its three OpenFGA wire arms —
46
+ * DEADLINE_EXCEEDED, UNAVAILABLE, INTERNAL — before throwing), any other
47
+ * throw is INTERNAL through the pipeline's boundary. A denial dressed as
48
+ * an outage, or an outage dressed as a denial, is the fail-open class this
49
+ * contract exists to refuse.
50
+ *
51
+ * Why this is not `ListReadScope`: the read scope narrows the server's OWN
52
+ * list lanes for the calling identity with no what-if input; this engine
53
+ * answers the wire's explicit queries about an ARBITRARY principal with
54
+ * contextual policies. Both are ratified seams with distinct consumers;
55
+ * a cloud driver may wrap one client for both, and that is its business.
56
+ */
57
+ import type { ApiResourceRef, IamPolicySpec } from "@stigmer/protos/ai/stigmer/iam/iampolicy/v1/spec_pb";
58
+ /** The query-engine contract (single-instance point, ExtensionDrivers.authorizationQueries). */
59
+ export interface AuthorizationQueryEngine {
60
+ /**
61
+ * Whether `policy` is effectively held — its principal has its relation
62
+ * on its resource — given `contextualPolicies` evaluated as if held.
63
+ * The proto's CheckAuthorizationInput shape; `checkMyPermission` builds
64
+ * the spec from the caller's account ref. The spec's refs are present
65
+ * (boundary-validated, or controller-built).
66
+ */
67
+ check(policy: IamPolicySpec, contextualPolicies: ReadonlyArray<IamPolicySpec>): Promise<boolean>;
68
+ /**
69
+ * The ids of `resourceKind` resources on which `principal` holds
70
+ * `relation` (ListAuthorizedResourceIdsInput's field order). Wildcards
71
+ * are not expanded.
72
+ */
73
+ listResourceIds(principal: ApiResourceRef, relation: string, resourceKind: string, contextualPolicies: ReadonlyArray<IamPolicySpec>): Promise<ReadonlyArray<string>>;
74
+ /**
75
+ * The ids of `principalKind` principals holding `relation` on `resource`
76
+ * (ListAuthorizedPrincipalIdsInput's field order). Direct principals
77
+ * only; wildcards are not expanded.
78
+ */
79
+ listPrincipalIds(resource: ApiResourceRef, relation: string, principalKind: string, contextualPolicies: ReadonlyArray<IamPolicySpec>): Promise<ReadonlyArray<string>>;
80
+ }
81
+ //# sourceMappingURL=authorization-queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorization-queries.d.ts","sourceRoot":"","sources":["../../src/extensions/authorization-queries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACd,MAAM,qDAAqD,CAAC;AAE7D,gGAAgG;AAChG,MAAM,WAAW,wBAAwB;IACvC;;;;;;OAMG;IACH,KAAK,CACH,MAAM,EAAE,aAAa,EACrB,kBAAkB,EAAE,aAAa,CAAC,aAAa,CAAC,GAC/C,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB;;;;OAIG;IACH,eAAe,CACb,SAAS,EAAE,cAAc,EACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,aAAa,CAAC,aAAa,CAAC,GAC/C,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAClC;;;;OAIG;IACH,gBAAgB,CACd,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,aAAa,CAAC,aAAa,CAAC,GAC/C,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;CACnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=authorization-queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorization-queries.js","sourceRoot":"","sources":["../../src/extensions/authorization-queries.ts"],"names":[],"mappings":""}
@@ -26,6 +26,11 @@
26
26
  * - identity-account store + identity federation (the first domain
27
27
  * whose persistence is a PORT, and the four federated RPC arms only
28
28
  * one edition serves) — landed with 20260911.11, gate ruling Q-IA-9
29
+ * - IamPolicy store + policy grant scope + authorization queries (the
30
+ * IamPolicy domain's row half served in every edition; the store
31
+ * port, which kinds an edition grants on, and the tuple-half query
32
+ * engine only an authorization backend can answer) — landed with
33
+ * 20260913.01, gate ruling Q-OR-10
29
34
  *
30
35
  * Merge rules (enforced by resolveExtensions, DD-006 §2b): the two
31
36
  * provider kinds are single-instance points — a second declaring unit is
@@ -40,14 +45,17 @@
40
45
  import type { ArtifactStorageDriverFactory } from "../artifactstorage/artifact-storage.js";
41
46
  import type { ChannelRuntime } from "../domain/agentchannel/channel-runtime.js";
42
47
  import type { IdentityAccountStore } from "../domain/identityaccount/store.js";
48
+ import type { IamPolicyStore } from "../domain/iampolicy/store.js";
43
49
  import type { SecretCodec } from "../encryption/codec.js";
44
50
  import type { ModelCatalogProvider } from "../domain/workflow/registry/model-catalog-provider.js";
45
51
  import type { VisitorErrorPolicy } from "../pipeline/interceptors/error-boundary.js";
46
52
  import type { RunnerCredentialProvider } from "../runnerauth/runner-credential-provider.js";
47
53
  import type { SandboxProvisionerFactory } from "../sandbox/provisioner.js";
54
+ import type { AuthorizationQueryEngine } from "./authorization-queries.js";
48
55
  import type { IdentityFederation } from "./identity-federation.js";
49
56
  import type { ListReadScope } from "./list-read-scope.js";
50
57
  import type { OrganizationDirectory } from "./organization-directory.js";
58
+ import type { PolicyGrantScope } from "./policy-grant-scope.js";
51
59
  import type { ResourceAuthorizationLifecycle } from "./resource-authorization.js";
52
60
  import type { ScheduleFireCallerMint } from "./schedule-fire-caller.js";
53
61
  /** The driver contributions of one extension unit. */
@@ -83,8 +91,13 @@ export interface ExtensionDrivers {
83
91
  * The resource-authorization lifecycle seam (C2, ruling Q2;
84
92
  * single-instance point). When composed, the three shared tuple steps
85
93
  * (CreateAuthorizationTuples / CleanupIamPolicies /
86
- * UpdateVisibilityTuples) deliver resolved events to it; when absent,
87
- * those steps no-op — OSS behavior byte-identical.
94
+ * UpdateVisibilityTuples) deliver resolved events to it, and the
95
+ * IamPolicy grant path delivers the two policy hooks. Corrected
96
+ * 2026-09-13 (20260913.01 Q-OR-6): when absent, the steps no-op, but
97
+ * open source is no longer record-less — the composition root installs
98
+ * the built-in role lifecycle (domain/iampolicy/role-lifecycle.ts, the
99
+ * entry's slice 4), which writes IamPolicy rows, whenever no extension
100
+ * registers an Authorizer (resource-authorization.ts header).
88
101
  */
89
102
  readonly resourceAuthorizationLifecycle?: ResourceAuthorizationLifecycle;
90
103
  /**
@@ -162,5 +175,39 @@ export interface ExtensionDrivers {
162
175
  * edition reason — the organizationDirectory absent-method shape.
163
176
  */
164
177
  readonly identityFederation?: IdentityFederation;
178
+ /**
179
+ * The IamPolicy store driver (20260913.01, Q-OR-10; single-instance
180
+ * point). The IamPolicy domain's persistence is a PORT like the
181
+ * identity-account domain's: when composed, every row the one grant
182
+ * path writes, deletes or reads — user grants, the structural
183
+ * bootstrap lanes, the access lists and counts — goes through this
184
+ * driver (the cloud serves the domain over its own `cloud.iam_policy`
185
+ * table this way, legacy random ids included). When absent, the OSS
186
+ * adapter over the generic Store installs at the compose.ts
187
+ * consumption site — OSS behavior byte-identical.
188
+ */
189
+ readonly iamPolicyStore?: IamPolicyStore;
190
+ /**
191
+ * The policy grant scope (20260913.01, Q-OR-3; single-instance point):
192
+ * which kinds a user may grant a role on in this edition, with which
193
+ * roles. Narrows the proto's `grantable_roles`, total over the enum,
194
+ * synchronous (policy-grant-scope.ts carries the reasons). When
195
+ * composed, ValidateGrantableRole and checkMyPermission's
196
+ * `can_grant_access` arm read it; when absent, open source's
197
+ * organization-only default installs at the compose.ts consumption
198
+ * site — the organization grants its four proto roles, nothing else
199
+ * grants anything.
200
+ */
201
+ readonly policyGrantScope?: PolicyGrantScope;
202
+ /**
203
+ * The authorization-query engine (20260913.01, Q-OR-8; single-instance
204
+ * point): the tuple-half questions — checkAuthorization, the two
205
+ * listAuthorized*Ids, a checkMyPermission with contextual policies —
206
+ * only an authorization backend can answer over its own graph. When
207
+ * composed, the IamPolicy query controller dispatches to it after its
208
+ * own trust checks; when absent, those RPC arms refuse UNIMPLEMENTED
209
+ * with the edition reason — the identityFederation absent shape.
210
+ */
211
+ readonly authorizationQueries?: AuthorizationQueryEngine;
165
212
  }
166
213
  //# sourceMappingURL=drivers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drivers.d.ts","sourceRoot":"","sources":["../../src/extensions/drivers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAClG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAExE,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B;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B,CAAC;IACF;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,8BAA8B,CAAC,EAAE,8BAA8B,CAAC;IACzE;;;;;OAKG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IACvD;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;IACzC;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IACvC;;;;;;OAMG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACjD;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACzD;;;;;;;OAOG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;IACrD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IACrD;;;;;;;OAOG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACjD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;IACzC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAC7C;;;;;;;;OAQG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;CAC1D"}
@@ -88,4 +88,18 @@ export interface IdentityVerifier {
88
88
  */
89
89
  verify(token: string): Promise<CallerIdentity | null>;
90
90
  }
91
+ /**
92
+ * Whether `caller` is one of the platform's own pipelines — the admission
93
+ * rule of the RPCs a person must never reach directly, stated ONCE
94
+ * (20260911.11 A7 for the identity-account `create` RPC; 20260913.01
95
+ * Q-OR-7 and Q-S5-10 for the three IamPolicy system RPCs): a `machine`
96
+ * account (the platform's service accounts), the `internal` class (the
97
+ * server acting as itself over the in-process transport) or ANY identity
98
+ * that entered through that transport (a propagated user the server is
99
+ * composing a request for). A wire `user`, a `runner` and a composition's
100
+ * own classes are refused by the RPC that reads this — under the
101
+ * permissive Authorizer the annotation alone would admit anyone, so the
102
+ * rule is load-bearing in open source.
103
+ */
104
+ export declare function isPlatformPipelineCaller(caller: CallerIdentity): boolean;
91
105
  //# sourceMappingURL=identity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/extensions/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,SAAS,GACT,QAAQ,GACR,UAAU,GACV,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,YAAY,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,uEAAuE;IACvE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,wEAAwE;IACxE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACvD"}
1
+ {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/extensions/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,SAAS,GACT,QAAQ,GACR,UAAU,GACV,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,YAAY,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,uEAAuE;IACvE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,wEAAwE;IACxE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACvD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAMxE"}
@@ -12,5 +12,22 @@
12
12
  * HandlerContext.values (never ambient state — the every-dependency-
13
13
  * explicit doctrine).
14
14
  */
15
- export {};
15
+ /**
16
+ * Whether `caller` is one of the platform's own pipelines — the admission
17
+ * rule of the RPCs a person must never reach directly, stated ONCE
18
+ * (20260911.11 A7 for the identity-account `create` RPC; 20260913.01
19
+ * Q-OR-7 and Q-S5-10 for the three IamPolicy system RPCs): a `machine`
20
+ * account (the platform's service accounts), the `internal` class (the
21
+ * server acting as itself over the in-process transport) or ANY identity
22
+ * that entered through that transport (a propagated user the server is
23
+ * composing a request for). A wire `user`, a `runner` and a composition's
24
+ * own classes are refused by the RPC that reads this — under the
25
+ * permissive Authorizer the annotation alone would admit anyone, so the
26
+ * rule is load-bearing in open source.
27
+ */
28
+ export function isPlatformPipelineCaller(caller) {
29
+ return (caller.callerClass === "machine" ||
30
+ caller.callerClass === "internal" ||
31
+ caller.origin === "in-process");
32
+ }
16
33
  //# sourceMappingURL=identity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/extensions/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../src/extensions/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAuFH;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAsB;IAC7D,OAAO,CACL,MAAM,CAAC,WAAW,KAAK,SAAS;QAChC,MAAM,CAAC,WAAW,KAAK,UAAU;QACjC,MAAM,CAAC,MAAM,KAAK,YAAY,CAC/B,CAAC;AACJ,CAAC"}
@@ -71,19 +71,49 @@
71
71
  * untouched with the org unconsulted (the first line above). Two lanes
72
72
  * have no org on the wire (`session.list`, `apiKey.findAll`) and offer
73
73
  * the kind until P1 entry 12 pages them.
74
+ * - A KIND WHOSE AUTHORIZATION IS ITS PARENT'S CARRIES THAT PARENT ON
75
+ * EVERY CANDIDATE (stigmer-cloud 20260913.04 T04, Q-LB-33..36). When
76
+ * `kind_meta` declares PARENT scope with INHERITED owner
77
+ * (`inheritedAuthorizationParentOf`; today agent_execution → session),
78
+ * the helper fills `ListEntryMeta.authorizationParent` from the row's
79
+ * spec through the same read the tuple lifecycle wrote the parent link
80
+ * with. A driver MAY answer the parent's question in place of the
81
+ * child's: by the model's construction the two answers are identical
82
+ * (the child's `owner`, `viewer` and `can_view` are all `from` the
83
+ * parent), and the parent's resolution is direct tuples where the
84
+ * child's walks the parent's whole set (OpenFGA's learned `weight2`
85
+ * strategy read the founder's 423 sessions per execution; that is what
86
+ * rolled back twice on 2026-09-14). A driver that ignores the field is
87
+ * still correct. The one observable difference is stated, not hidden:
88
+ * a row whose parent tuple never landed (the create chain's "row
89
+ * survives, tuple write failed" state, healed by retry) is hidden by
90
+ * the child's check and shown by the parent's — the row's truth, read
91
+ * from the field the tuple was derived from, and no widening: nobody
92
+ * reaches a parent through it who could not create the row in it.
74
93
  */
75
94
  import type { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
76
95
  import type { CallerIdentity } from "./identity.js";
96
+ import type { ResolvedParentLink } from "./resource-authorization.js";
77
97
  /**
78
98
  * The candidate metadata a post-scan lane offers the scope — the three
79
99
  * fields the cloud driver's rules key on (id for the FGA intersection,
80
100
  * labels for the guest cookie rule; org rides along for symmetry with
81
- * the consumer-owned intersection, so a driver can log or assert on it).
101
+ * the consumer-owned intersection, so a driver can log or assert on it),
102
+ * plus the parent for kinds whose authorization is their parent's.
82
103
  */
83
104
  export interface ListEntryMeta {
84
105
  readonly id: string;
85
106
  readonly org: string;
86
107
  readonly labels: Readonly<Record<string, string>>;
108
+ /**
109
+ * OPTIONAL (added 20260913.04 T04): the parent this row's authorization
110
+ * IS — present only for a kind whose `kind_meta` is PARENT scope with
111
+ * INHERITED owner (the header's last contract line), the same
112
+ * `ResolvedParentLink` the tuple lifecycle wrote for the row. Absent for
113
+ * every other kind, and absent when the row's spec does not name its
114
+ * parent — a driver then asks about the row itself, never drops it.
115
+ */
116
+ readonly authorizationParent?: ResolvedParentLink;
87
117
  }
88
118
  /** The scope contract (single-instance point, ExtensionDrivers.listReadScope). */
89
119
  export interface ListReadScope {
@@ -105,7 +135,10 @@ export interface ListReadScope {
105
135
  }
106
136
  /**
107
137
  * The shape every stored API resource message presents to the shared
108
- * helper — the metadata fields the scope's candidates are built from.
138
+ * helper — the metadata fields the scope's candidates are built from, and
139
+ * the spec the parent is read from (structurally, by `kind_meta`'s
140
+ * `spec_field`; typed loosely because the field differs per kind and the
141
+ * read is `parentIdOf`'s).
109
142
  */
110
143
  export interface ScopedListResource {
111
144
  metadata?: {
@@ -113,6 +146,7 @@ export interface ScopedListResource {
113
146
  org?: string;
114
147
  labels?: Record<string, string>;
115
148
  };
149
+ spec?: object;
116
150
  }
117
151
  /**
118
152
  * The ONE consumption idiom for post-scan lanes (the shared-step
@@ -128,8 +162,11 @@ export interface ScopedListResource {
128
162
  * permission-bounded across orgs, verified per lane in the entry's
129
163
  * census — lanes Java does not org-narrow pass ""), then to the kept
130
164
  * ids. The same set either way (both are per-row predicates); the
131
- * order is the header's last contract line: the scope sees the org's
132
- * rows, not the kind's.
165
+ * order is the header's second-to-last contract line: the scope sees
166
+ * the org's rows, not the kind's;
167
+ * - the candidates of a kind whose authorization is its parent's carry
168
+ * `authorizationParent` (the header's last line), resolved once per
169
+ * call from `kind_meta` and once per row from the spec.
133
170
  */
134
171
  export declare function restrictListByReadScope<T extends ScopedListResource>(scope: ListReadScope | undefined, caller: CallerIdentity, kind: ApiResourceKind, resources: ReadonlyArray<T>, requestOrg: string): Promise<T[]>;
135
172
  //# sourceMappingURL=list-read-scope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-read-scope.d.ts","sourceRoot":"","sources":["../../src/extensions/list-read-scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAE3H,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,WAAW,a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tB,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAC3B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,CAAC,EAAE,CAAC,CAsBd"}
@@ -1,3 +1,9 @@
1
+ // The first VALUE imports from extensions/ into pipeline/ (every other
2
+ // crossing is a type): two pure leaf modules that import nothing but
3
+ // protos, so there is no cycle. Deliberate — one resolver for the tuple
4
+ // writer and the list reader beats a copy in the seam.
5
+ import { getKindEnum, inheritedAuthorizationParentOf, } from "../pipeline/apiresource-meta.js";
6
+ import { parentIdOf } from "../pipeline/steps/shapes.js";
1
7
  /**
2
8
  * The ONE consumption idiom for post-scan lanes (the shared-step
3
9
  * discipline of pipeline/steps/authorization-tuples.ts, rendered as a
@@ -12,8 +18,11 @@
12
18
  * permission-bounded across orgs, verified per lane in the entry's
13
19
  * census — lanes Java does not org-narrow pass ""), then to the kept
14
20
  * ids. The same set either way (both are per-row predicates); the
15
- * order is the header's last contract line: the scope sees the org's
16
- * rows, not the kind's.
21
+ * order is the header's second-to-last contract line: the scope sees
22
+ * the org's rows, not the kind's;
23
+ * - the candidates of a kind whose authorization is its parent's carry
24
+ * `authorizationParent` (the header's last line), resolved once per
25
+ * call from `kind_meta` and once per row from the spec.
17
26
  */
18
27
  export async function restrictListByReadScope(scope, caller, kind, resources, requestOrg) {
19
28
  if (scope === undefined) {
@@ -22,12 +31,40 @@ export async function restrictListByReadScope(scope, caller, kind, resources, re
22
31
  const offered = requestOrg === ""
23
32
  ? resources
24
33
  : resources.filter((resource) => resource.metadata?.org === requestOrg);
25
- const entries = offered.map((resource) => ({
26
- id: resource.metadata?.id ?? "",
27
- org: resource.metadata?.org ?? "",
28
- labels: resource.metadata?.labels ?? {},
29
- }));
34
+ const parentOf = authorizationParentReader(kind);
35
+ const entries = offered.map((resource) => {
36
+ const entry = {
37
+ id: resource.metadata?.id ?? "",
38
+ org: resource.metadata?.org ?? "",
39
+ labels: resource.metadata?.labels ?? {},
40
+ };
41
+ const authorizationParent = parentOf(resource);
42
+ return authorizationParent === undefined
43
+ ? entry
44
+ : { ...entry, authorizationParent };
45
+ });
30
46
  const keptIds = await scope.restrictListEntries(caller, kind, entries);
31
47
  return offered.filter((resource) => keptIds.has(resource.metadata?.id ?? ""));
32
48
  }
49
+ /**
50
+ * The per-row parent reader for `kind`: a constant `undefined` for the 27
51
+ * kinds whose authorization is their own, and for the kind whose
52
+ * authorization is its parent's, the `ResolvedParentLink` the tuple
53
+ * lifecycle wrote — or undefined for a row whose spec does not name it
54
+ * (never a throw: a list is not a create). `kind_meta` is consulted once
55
+ * per call, not once per row.
56
+ */
57
+ function authorizationParentReader(kind) {
58
+ const parent = inheritedAuthorizationParentOf(kind);
59
+ if (parent === undefined) {
60
+ return () => undefined;
61
+ }
62
+ const parentKind = getKindEnum(parent.kind);
63
+ return (resource) => {
64
+ const parentId = parentIdOf(resource, parent.specField);
65
+ return parentId === ""
66
+ ? undefined
67
+ : { relation: parent.relation, parentKind, parentId };
68
+ };
69
+ }
33
70
  //# sourceMappingURL=list-read-scope.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-read-scope.js","sourceRoot":"","sources":["../../src/extensions/list-read-scope.ts"],"names":[],"mappings":"AAiIA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,KAAgC,EAChC,MAAsB,EACtB,IAAqB,EACrB,SAA2B,EAC3B,UAAkB;IAElB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;IACxB,CAAC;IACD,MAAM,OAAO,GACX,UAAU,KAAK,EAAE;QACf,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,KAAK,UAAU,CAAC,CAAC;IAC5E,MAAM,OAAO,GAAoB,OAAO,CAAC,GAAG,C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AAC,SAAS;YACX,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;IAC1D,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The policy-grant-scope driver point (20260913.01; the P1 gate's Q7 iii,
3
+ * T01_1_review.md Q-OR-3): WHICH kinds a user may grant a role on in this
4
+ * edition, and with which roles. Single instance, registered as
5
+ * `drivers.policyGrantScope` (the identityFederation shape: a driver point
6
+ * whose absence is open source's own behaviour). Absent, the composition
7
+ * root installs `newOrganizationOnlyGrantScope()`
8
+ * (domain/iampolicy/grant-scope.ts): the organization grants the roles its
9
+ * `kind_meta` lists — owner, admin, member, viewer (Q-OR-4) — and no other
10
+ * kind grants anything. Per-resource grants (a viewer on one agent) are
11
+ * what the Enterprise and Cloud editions add by registering a wider scope;
12
+ * the cloud registers every kind's `kind_meta` roles.
13
+ *
14
+ * Who reads it: the IamPolicy command controller's ValidateGrantableRole on
15
+ * `create` — AFTER the proto (`grantableRolesFor` in
16
+ * pipeline/apiresource-meta.ts, the source of "what can be granted at
17
+ * all"; a kind that lists no roles is system-managed in every edition and
18
+ * refused before the scope is asked) and never on `bootstrapPolicy`, the
19
+ * structural lane — and `checkMyPermission`'s second arm, which answers
20
+ * `can_grant_access` false for a kind outside the scope so the console's
21
+ * existing PermissionGate hides grant controls without a new SDK surface
22
+ * (Q-OR-5).
23
+ *
24
+ * The contract every scope is held to (Q-S3-3, 2026-09-13):
25
+ *
26
+ * - It NARROWS the proto, never widens it. A scope's answer for a kind is
27
+ * read as a subset of `kind_meta.authorization.grantable_roles`;
28
+ * ValidateGrantableRole intersects the two, so a driver cannot admit a
29
+ * role the contract does not list by accident.
30
+ * - It is TOTAL over ApiResourceKind, the unknown kind included: a kind
31
+ * it does not admit answers the empty list, never a throw.
32
+ * checkMyPermission asks about a kind that came off the wire and was
33
+ * resolved by `kindByEnumName`, which yields the unknown kind rather
34
+ * than failing (apiresource-meta.ts header).
35
+ * - It is SYNCHRONOUS: an edition's grant scope is a fact about the
36
+ * edition, a proto read at most, never I/O. A scope that would need a
37
+ * network to answer is a different seam.
38
+ */
39
+ import type { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
40
+ import type { IamRole } from "@stigmer/protos/ai/stigmer/iam/v1/enum_pb";
41
+ /** The grant-scope contract (single-instance point, ExtensionDrivers.policyGrantScope). */
42
+ export interface PolicyGrantScope {
43
+ /**
44
+ * The roles a user may grant on a resource of `kind` in this edition — a
45
+ * subset of the kind's proto `grantable_roles`; empty when the edition
46
+ * grants nothing on the kind (or the kind is unknown). Never throws.
47
+ */
48
+ grantableRoles(kind: ApiResourceKind): ReadonlyArray<IamRole>;
49
+ }
50
+ //# sourceMappingURL=policy-grant-scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policy-grant-scope.d.ts","sourceRoot":"","sources":["../../src/extensions/policy-grant-scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAC3H,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAEzE,2FAA2F;AAC3F,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,eAAe,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;CAC/D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=policy-grant-scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policy-grant-scope.js","sourceRoot":"","sources":["../../src/extensions/policy-grant-scope.ts"],"names":[],"mappings":""}
@@ -34,7 +34,10 @@
34
34
  * points (20260911.11) at the identity-accounts stage (the store driver,
35
35
  * ahead of the boot-time operator ensure) and the routes stage (the
36
36
  * federation capability and the provision slot's steps, into the
37
- * identity-account controller).
37
+ * identity-account controller); the IamPolicy points (20260913.01) at
38
+ * the same two stages — the store driver where the grant path is built,
39
+ * beside the identity-account store, and the grant scope and the query
40
+ * engine into the IamPolicy controller at the routes stage.
38
41
  */
39
42
  import type { DescMessage } from "@bufbuild/protobuf";
40
43
  import type { ConnectRouter } from "@connectrpc/connect";
@@ -42,9 +45,12 @@ import { ServerEdition } from "@stigmer/protos/ai/stigmer/platform/v1/server_inf
42
45
  import type { ArtifactStorageDriverFactory } from "../artifactstorage/artifact-storage.js";
43
46
  import type { ChannelRuntime } from "../domain/agentchannel/channel-runtime.js";
44
47
  import type { IdentityAccountStore } from "../domain/identityaccount/store.js";
48
+ import type { IamPolicyStore } from "../domain/iampolicy/store.js";
45
49
  import type { SecretCodec } from "../encryption/codec.js";
50
+ import type { AuthorizationQueryEngine } from "./authorization-queries.js";
46
51
  import type { IdentityFederation } from "./identity-federation.js";
47
52
  import type { ListReadScope } from "./list-read-scope.js";
53
+ import type { PolicyGrantScope } from "./policy-grant-scope.js";
48
54
  import type { ModelCatalogProvider } from "../domain/workflow/registry/model-catalog-provider.js";
49
55
  import type { VisitorErrorPolicy } from "../pipeline/interceptors/error-boundary.js";
50
56
  import type { PipelineStep } from "../pipeline/pipeline.js";
@@ -227,6 +233,22 @@ export interface ResolvedExtensionDrivers {
227
233
  * four federated RPCs refuse UNIMPLEMENTED with the edition reason.
228
234
  */
229
235
  readonly identityFederation: IdentityFederation | undefined;
236
+ /**
237
+ * The 20260913.01 IamPolicy store driver — undefined = the compose.ts
238
+ * stage that builds the grant path installs the OSS adapter over the
239
+ * generic Store, OSS behavior byte-identical.
240
+ */
241
+ readonly iamPolicyStore: IamPolicyStore | undefined;
242
+ /**
243
+ * The 20260913.01 policy grant scope — undefined = compose.ts installs
244
+ * open source's organization-only default.
245
+ */
246
+ readonly policyGrantScope: PolicyGrantScope | undefined;
247
+ /**
248
+ * The 20260913.01 authorization-query engine — undefined = the
249
+ * tuple-half RPC arms refuse UNIMPLEMENTED with the edition reason.
250
+ */
251
+ readonly authorizationQueries: AuthorizationQueryEngine | undefined;
230
252
  }
231
253
  /**
232
254
  * Merges the composed units, enforcing the §2b loud-fail rules. Runs
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/extensions/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AAEtF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAE3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAClG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAA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