@wildo-ai/platform-config-lib 1.1.2 → 1.1.4

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 (130) hide show
  1. package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
  2. package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
  3. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  4. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +129 -1
  5. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  6. package/dist/esm/bootstrap/bootstrap.schemas.js +105 -2
  7. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  8. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +6 -3
  9. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  10. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +18 -3
  11. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  12. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
  13. package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
  14. package/dist/esm/bootstrap/runtime-network-topology.d.ts +0 -1
  15. package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
  16. package/dist/esm/bootstrap/runtime-network-topology.js +0 -2
  17. package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
  18. package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
  19. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
  20. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
  21. package/dist/esm/config-authoring.entry.d.ts +1 -2
  22. package/dist/esm/config-authoring.entry.d.ts.map +1 -1
  23. package/dist/esm/config-authoring.entry.js +35 -2
  24. package/dist/esm/config-authoring.entry.js.map +1 -1
  25. package/dist/esm/index.d.ts.map +1 -1
  26. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
  27. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
  28. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +0 -20
  29. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
  30. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +0 -1
  31. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
  32. package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
  33. package/dist/esm/project-config/define-infra-env-config.d.ts +3 -39
  34. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  35. package/dist/esm/project-config/define-infra-env-config.js +2 -2
  36. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  37. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  38. package/dist/esm/project-config/define-saas-config.d.ts +366 -14
  39. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  40. package/dist/esm/project-config/define-saas-config.js +121 -11
  41. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  42. package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
  43. package/dist/esm/project-config/index.d.ts.map +1 -1
  44. package/dist/esm/project-config/loader.d.ts.map +1 -1
  45. package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
  46. package/dist/esm/project-config/provider-companion-discovery.d.ts +88 -1
  47. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  48. package/dist/esm/project-config/provider-companion-discovery.js +275 -6
  49. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  50. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +42 -16
  51. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  52. package/dist/esm/project-config/provider-runtime-artifacts.js +132 -12
  53. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  54. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
  55. package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
  56. package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
  57. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
  58. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +32 -43
  59. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  60. package/dist/esm/project-config/shared/backing-services.schemas.js +38 -30
  61. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  62. package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -1
  63. package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
  64. package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
  65. package/dist/esm/project-config/shared/csp-emit.d.ts +36 -5
  66. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
  67. package/dist/esm/project-config/shared/csp-emit.js +65 -5
  68. package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
  69. package/dist/esm/project-config/shared/csp.schemas.d.ts +46 -10
  70. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
  71. package/dist/esm/project-config/shared/csp.schemas.js +45 -10
  72. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
  73. package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
  74. package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
  75. package/dist/esm/project-config/shared/environment.schemas.d.ts +8 -6
  76. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  77. package/dist/esm/project-config/shared/environment.schemas.js +7 -5
  78. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  79. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +29 -3
  80. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  81. package/dist/esm/project-config/shared/infra-providers.schemas.js +34 -2
  82. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  83. package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
  84. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +0 -2
  85. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  86. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +0 -2
  87. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  88. package/dist/esm/project-config/shared/k8s-utils.d.ts +70 -10
  89. package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
  90. package/dist/esm/project-config/shared/k8s-utils.js +75 -11
  91. package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
  92. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts +15 -15
  93. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
  94. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js +15 -15
  95. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
  96. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +76 -0
  97. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
  98. package/dist/esm/project-config/shared/minion-resource-access.validation.js +76 -1
  99. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
  100. package/dist/esm/project-config/shared/platform-services.schemas.d.ts +30 -0
  101. package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
  102. package/dist/esm/project-config/shared/platform-services.schemas.js +31 -0
  103. package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
  104. package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -1
  105. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
  106. package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
  107. package/dist/esm/registry/companion-api.schemas.d.ts.map +1 -1
  108. package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
  109. package/dist/esm/registry/index.d.ts.map +1 -1
  110. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
  111. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  112. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  113. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
  114. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
  115. package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
  116. package/dist/esm/release/framework-release.constants.js.map +1 -1
  117. package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
  118. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  119. package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
  120. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
  121. package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
  122. package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
  123. package/dist/esm/workspace-scope/index.d.ts.map +1 -1
  124. package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
  125. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +14 -0
  126. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
  127. package/dist/esm/workspace-scope/workspace-homes.schemas.js +2 -0
  128. package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
  129. package/dist/tsconfig.build.tsbuildinfo +1 -1
  130. package/package.json +7 -7
@@ -3,22 +3,22 @@
3
3
  *
4
4
  * ## Why it lives under `project-config` and not beside its derivation
5
5
  *
6
- * An authored `wildo.saas.config.ts` does NOT see the package root barrel. The
7
- * config loader resolves `@wildo-ai/platform-config-lib` to
8
- * `src/config-authoring.entry.ts`, which exports `./project-config` and
9
- * `./workspace-scope` and nothing else — so a symbol under `bootstrap/` is
10
- * invisible to the very file that has to name it.
6
+ * The split is by AUDIENCE: the vocabulary an app author writes lives with the
7
+ * other authoring vocabularies; {@link buildOwnCronRecordFilter} and the
8
+ * declaration type stay in `bootstrap/`, because a runtime derivation is not
9
+ * something an authored config should be reaching for.
11
10
  *
12
- * This was measured, not guessed. With the enum in `bootstrap/`, an app config
13
- * importing it alongside `AppFrontendType` — same package, same import statement
14
- * — got `AppFrontendType` fine and `undefined` for this one, and
15
- * `wildo config sync` failed with `Cannot read properties of undefined (reading
16
- * 'OWN_CRON_RECORDS')`. Nothing in that message points at an entrypoint.
17
- *
18
- * So the split is by AUDIENCE: the vocabulary an app author writes lives where
19
- * app authors can reach it; {@link buildOwnCronRecordFilter} and the declaration
20
- * type stay in `bootstrap/`, because a runtime derivation is not something an
21
- * authored config should be able to call.
11
+ * It first moved here for a worse reason, kept as history because the defect
12
+ * shape recurred. Until 2026-09-09 the config loader resolved
13
+ * `@wildo-ai/platform-config-lib` to a `config-authoring.entry.ts` that exported
14
+ * `./project-config` and `./workspace-scope` and nothing else, so an app config
15
+ * importing this enum from `bootstrap/` beside `AppFrontendType` — same package,
16
+ * same statement — got `AppFrontendType` and `undefined` for this one, and
17
+ * `wildo config sync` died on `reading 'OWN_CRON_RECORDS'`. Moving the enum cured
18
+ * that name; the next symbol the engine composed at module load from the same
19
+ * package hit the same wall. The entry now re-exports the whole root (see its
20
+ * header), so placement under `project-config` is a statement about who authors
21
+ * the value, no longer about what the loader can see.
22
22
  */
23
23
  export declare enum MinionPlatformAccessScope {
24
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"minion-platform-access.vocabulary.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/minion-platform-access.vocabulary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,oBAAY,yBAAyB;IACnC;;;;OAIG;IACH,gBAAgB,qBAAqB;CACtC"}
1
+ {"version":3,"file":"minion-platform-access.vocabulary.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/minion-platform-access.vocabulary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,oBAAY,yBAAyB;IACnC;;;;OAIG;IACH,gBAAgB,qBAAqB;CACtC"}
@@ -3,22 +3,22 @@
3
3
  *
4
4
  * ## Why it lives under `project-config` and not beside its derivation
5
5
  *
6
- * An authored `wildo.saas.config.ts` does NOT see the package root barrel. The
7
- * config loader resolves `@wildo-ai/platform-config-lib` to
8
- * `src/config-authoring.entry.ts`, which exports `./project-config` and
9
- * `./workspace-scope` and nothing else — so a symbol under `bootstrap/` is
10
- * invisible to the very file that has to name it.
6
+ * The split is by AUDIENCE: the vocabulary an app author writes lives with the
7
+ * other authoring vocabularies; {@link buildOwnCronRecordFilter} and the
8
+ * declaration type stay in `bootstrap/`, because a runtime derivation is not
9
+ * something an authored config should be reaching for.
11
10
  *
12
- * This was measured, not guessed. With the enum in `bootstrap/`, an app config
13
- * importing it alongside `AppFrontendType` — same package, same import statement
14
- * — got `AppFrontendType` fine and `undefined` for this one, and
15
- * `wildo config sync` failed with `Cannot read properties of undefined (reading
16
- * 'OWN_CRON_RECORDS')`. Nothing in that message points at an entrypoint.
17
- *
18
- * So the split is by AUDIENCE: the vocabulary an app author writes lives where
19
- * app authors can reach it; {@link buildOwnCronRecordFilter} and the declaration
20
- * type stay in `bootstrap/`, because a runtime derivation is not something an
21
- * authored config should be able to call.
11
+ * It first moved here for a worse reason, kept as history because the defect
12
+ * shape recurred. Until 2026-09-09 the config loader resolved
13
+ * `@wildo-ai/platform-config-lib` to a `config-authoring.entry.ts` that exported
14
+ * `./project-config` and `./workspace-scope` and nothing else, so an app config
15
+ * importing this enum from `bootstrap/` beside `AppFrontendType` — same package,
16
+ * same statement — got `AppFrontendType` and `undefined` for this one, and
17
+ * `wildo config sync` died on `reading 'OWN_CRON_RECORDS'`. Moving the enum cured
18
+ * that name; the next symbol the engine composed at module load from the same
19
+ * package hit the same wall. The entry now re-exports the whole root (see its
20
+ * header), so placement under `project-config` is a statement about who authors
21
+ * the value, no longer about what the loader can see.
22
22
  */
23
23
  export var MinionPlatformAccessScope;
24
24
  (function (MinionPlatformAccessScope) {
@@ -1 +1 @@
1
- {"version":3,"file":"minion-platform-access.vocabulary.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/minion-platform-access.vocabulary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,CAAN,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC;;;;OAIG;IACH,kEAAqC,CAAA;AACvC,CAAC,EAPW,yBAAyB,KAAzB,yBAAyB,QAOpC","sourcesContent":["/**\n * The PLATFORM-ACCESS vocabulary a minion declaration is authored with (R4 / R5).\n *\n * ## Why it lives under `project-config` and not beside its derivation\n *\n * An authored `wildo.saas.config.ts` does NOT see the package root barrel. The\n * config loader resolves `@wildo-ai/platform-config-lib` to\n * `src/config-authoring.entry.ts`, which exports `./project-config` and\n * `./workspace-scope` and nothing else — so a symbol under `bootstrap/` is\n * invisible to the very file that has to name it.\n *\n * This was measured, not guessed. With the enum in `bootstrap/`, an app config\n * importing it alongside `AppFrontendType` — same package, same import statement\n * — got `AppFrontendType` fine and `undefined` for this one, and\n * `wildo config sync` failed with `Cannot read properties of undefined (reading\n * 'OWN_CRON_RECORDS')`. Nothing in that message points at an entrypoint.\n *\n * So the split is by AUDIENCE: the vocabulary an app author writes lives where\n * app authors can reach it; {@link buildOwnCronRecordFilter} and the declaration\n * type stay in `bootstrap/`, because a runtime derivation is not something an\n * authored config should be able to call.\n */\n\nexport enum MinionPlatformAccessScope {\n /**\n * The minion's OWN cron/schedule records. There is deliberately no\n * `ALL_CRON_RECORDS` member: a scope that could name another minion is a scope\n * somebody will eventually grant.\n */\n OWN_CRON_RECORDS = 'own_cron_records',\n}\n"]}
1
+ {"version":3,"file":"minion-platform-access.vocabulary.js","sourceRoot":"","sources":["../../../../src/project-config/shared/minion-platform-access.vocabulary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,CAAN,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC;;;;OAIG;IACH,kEAAqC,CAAA;AACvC,CAAC,EAPW,yBAAyB,KAAzB,yBAAyB,QAOpC","sourcesContent":["/**\n * The PLATFORM-ACCESS vocabulary a minion declaration is authored with (R4 / R5).\n *\n * ## Why it lives under `project-config` and not beside its derivation\n *\n * The split is by AUDIENCE: the vocabulary an app author writes lives with the\n * other authoring vocabularies; {@link buildOwnCronRecordFilter} and the\n * declaration type stay in `bootstrap/`, because a runtime derivation is not\n * something an authored config should be reaching for.\n *\n * It first moved here for a worse reason, kept as history because the defect\n * shape recurred. Until 2026-09-09 the config loader resolved\n * `@wildo-ai/platform-config-lib` to a `config-authoring.entry.ts` that exported\n * `./project-config` and `./workspace-scope` and nothing else, so an app config\n * importing this enum from `bootstrap/` beside `AppFrontendType` — same package,\n * same statement — got `AppFrontendType` and `undefined` for this one, and\n * `wildo config sync` died on `reading 'OWN_CRON_RECORDS'`. Moving the enum cured\n * that name; the next symbol the engine composed at module load from the same\n * package hit the same wall. The entry now re-exports the whole root (see its\n * header), so placement under `project-config` is a statement about who authors\n * the value, no longer about what the loader can see.\n */\n\nexport enum MinionPlatformAccessScope {\n /**\n * The minion's OWN cron/schedule records. There is deliberately no\n * `ALL_CRON_RECORDS` member: a scope that could name another minion is a scope\n * somebody will eventually grant.\n */\n OWN_CRON_RECORDS = 'own_cron_records',\n}\n"]}
@@ -139,4 +139,80 @@ export declare function deriveMinionResourceGrants(resourceAccess: {
139
139
  * function would silently merge two declarations into one grant.
140
140
  */
141
141
  export declare function resolveGrantStorageNames(resourceTypes: readonly ResourceType[]): string[];
142
+ /**
143
+ * What the ENGINE reads and writes for every runtime principal, whatever that
144
+ * principal declared — the floor a database role must hold before any authored
145
+ * `resourceAccess` is considered at all.
146
+ *
147
+ * ## Why this is not declarable, and must not become so
148
+ *
149
+ * `resourceAccess` answers "what application data may this minion touch". These
150
+ * two entries answer a different question: "what does the framework itself touch
151
+ * in order to run a repository operation at all". No author decides them, no
152
+ * author can opt out of them, and asking one to write them down would be asking
153
+ * a human for an answer the mechanism already knows — the exact shape
154
+ * `.claude/rules/derive-before-you-ask.md` refuses. They are derived here, once,
155
+ * from the engine paths that actually perform them:
156
+ *
157
+ * - **`APPLICATION`, read.** `ExecutionContextCreatorBackendService.getApplicationId`
158
+ * resolves the singleton APPLICATION row for EVERY `ResourcePrimaryScope.APPLICATION`
159
+ * operation, through `repositoriesRegistry` directly. That read is structural:
160
+ * a minion declaring `read: ['todos']` is declaring an APPLICATION-scoped read,
161
+ * so it triggers this one before it ever reaches `todos`.
162
+ * - **`AUDIT_LOGS`, append.** `AuditLogsBackendService` writes one row per audited
163
+ * operation, including the `system_context_read` it emits for the read above.
164
+ *
165
+ * Both bypass the in-process `resourceAccess` whitelist by construction —
166
+ * `MinionScopedServicesRegistryHandlerBackendService` decorates the minion's
167
+ * SERVICES registry, and these go through the repositories registry — so the
168
+ * database grant was the only gate they ever met, and it refused them. That
169
+ * asymmetry is the defect: the in-process policy already permits these reads,
170
+ * and the credential did not.
171
+ *
172
+ * ## Why AUDIT_LOGS is APPEND and not WRITE
173
+ *
174
+ * The `write` axis grants `INSERT, UPDATE, DELETE`. Putting the audit table there
175
+ * would let every minion rewrite or delete the evidence of its own actions, which
176
+ * is not a smaller version of the right answer — it is the opposite of one. An
177
+ * audit trail a principal can delete is not an audit trail. The append axis exists
178
+ * so this floor can be satisfied without handing out that capability.
179
+ *
180
+ * assurance-control: WILDO.AUDIT.TAMPER_RESISTANCE — a runtime principal may add
181
+ * audit rows and may never modify or remove them.
182
+ */
183
+ export declare const MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES: readonly ResourceType[];
184
+ /** @see MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES — the append-only half. */
185
+ export declare const MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES: readonly ResourceType[];
186
+ /**
187
+ * A minion's grants as a DATABASE role must hold them: what the author declared,
188
+ * plus the engine floor above.
189
+ *
190
+ * The third axis is what keeps the floor honest — see
191
+ * {@link MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES}.
192
+ */
193
+ export interface MinionDatabaseGrants {
194
+ readonly read: readonly ResourceType[];
195
+ readonly write: readonly ResourceType[];
196
+ /** Insert-only. Never update, never delete. */
197
+ readonly append: readonly ResourceType[];
198
+ }
199
+ /**
200
+ * Add the engine floor to an authored derivation — the ONE place database grants
201
+ * acquire it.
202
+ *
203
+ * ## Why here and not in {@link deriveMinionResourceGrants}
204
+ *
205
+ * That function answers "what did the author declare", and it has a THIRD
206
+ * consumer that must not receive this floor: the object-storage credential path
207
+ * turns the same grants into blob key prefixes. Widening it there would confine a
208
+ * minion's storage credential to an `applications/` prefix nobody asked for and
209
+ * nothing writes. The floor is a property of holding a DATABASE role, so it is
210
+ * applied at the boundary where a database role is minted — and both database
211
+ * adapters call this one function, so they cannot drift apart the way the mint
212
+ * and revoke halves of those adapters already have once
213
+ * (`.claude/rules/invariant-call-site-enumeration.md` #18).
214
+ *
215
+ * Idempotent: a floor entry the author also declared appears once.
216
+ */
217
+ export declare function deriveMinionDatabaseGrants(grants: MinionResourceGrants): MinionDatabaseGrants;
142
218
  //# sourceMappingURL=minion-resource-access.validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"minion-resource-access.validation.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/minion-resource-access.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,yCAAyC,EAAE,SAAS,MAAM,EACV,CAAC;AAE9D,8EAA8E;AAC9E,MAAM,WAAW,6BAA6B;IAC5C,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kCAAkC,CAAC,cAAc,EAAE;IACjE,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CACvC,GAAG,6BAA6B,EAAE,CA+ClC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,YAAY,EAAE,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,EAAE;IAAE,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,EAC3G,2BAA2B,GAAE,SAAS,MAAM,EAAO,GAClD,oBAAoB,GAAG,IAAI,CAuB7B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,SAAS,YAAY,EAAE,GAAG,MAAM,EAAE,CAEzF"}
1
+ {"version":3,"file":"minion-resource-access.validation.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/minion-resource-access.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,yCAAyC,EAAE,SAAS,MAAM,EACV,CAAC;AAE9D,8EAA8E;AAC9E,MAAM,WAAW,6BAA6B;IAC5C,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,sEAAsE;IACtE,QA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C,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,oBAAoB,GAAG,oBAAoB,CAiB7F"}
@@ -1,4 +1,4 @@
1
- import { RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES, resolveSharedPersistenceCollectionName, } from '@wildo-ai/saas-models';
1
+ import { CoreResourceType, RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES, resolveSharedPersistenceCollectionName, } from '@wildo-ai/saas-models';
2
2
  /**
3
3
  * The two safety gates that must hold BEFORE a minion's `resourceAccess` may be
4
4
  * turned into database grants (Step 3 shared prerequisites, R11 + the F1 guard).
@@ -156,4 +156,79 @@ export function deriveMinionResourceGrants(resourceAccess, transitiveReadResourc
156
156
  export function resolveGrantStorageNames(resourceTypes) {
157
157
  return [...new Set(resourceTypes.map((resourceType) => resolveSharedPersistenceCollectionName(resourceType)))].sort();
158
158
  }
159
+ /**
160
+ * What the ENGINE reads and writes for every runtime principal, whatever that
161
+ * principal declared — the floor a database role must hold before any authored
162
+ * `resourceAccess` is considered at all.
163
+ *
164
+ * ## Why this is not declarable, and must not become so
165
+ *
166
+ * `resourceAccess` answers "what application data may this minion touch". These
167
+ * two entries answer a different question: "what does the framework itself touch
168
+ * in order to run a repository operation at all". No author decides them, no
169
+ * author can opt out of them, and asking one to write them down would be asking
170
+ * a human for an answer the mechanism already knows — the exact shape
171
+ * `.claude/rules/derive-before-you-ask.md` refuses. They are derived here, once,
172
+ * from the engine paths that actually perform them:
173
+ *
174
+ * - **`APPLICATION`, read.** `ExecutionContextCreatorBackendService.getApplicationId`
175
+ * resolves the singleton APPLICATION row for EVERY `ResourcePrimaryScope.APPLICATION`
176
+ * operation, through `repositoriesRegistry` directly. That read is structural:
177
+ * a minion declaring `read: ['todos']` is declaring an APPLICATION-scoped read,
178
+ * so it triggers this one before it ever reaches `todos`.
179
+ * - **`AUDIT_LOGS`, append.** `AuditLogsBackendService` writes one row per audited
180
+ * operation, including the `system_context_read` it emits for the read above.
181
+ *
182
+ * Both bypass the in-process `resourceAccess` whitelist by construction —
183
+ * `MinionScopedServicesRegistryHandlerBackendService` decorates the minion's
184
+ * SERVICES registry, and these go through the repositories registry — so the
185
+ * database grant was the only gate they ever met, and it refused them. That
186
+ * asymmetry is the defect: the in-process policy already permits these reads,
187
+ * and the credential did not.
188
+ *
189
+ * ## Why AUDIT_LOGS is APPEND and not WRITE
190
+ *
191
+ * The `write` axis grants `INSERT, UPDATE, DELETE`. Putting the audit table there
192
+ * would let every minion rewrite or delete the evidence of its own actions, which
193
+ * is not a smaller version of the right answer — it is the opposite of one. An
194
+ * audit trail a principal can delete is not an audit trail. The append axis exists
195
+ * so this floor can be satisfied without handing out that capability.
196
+ *
197
+ * assurance-control: WILDO.AUDIT.TAMPER_RESISTANCE — a runtime principal may add
198
+ * audit rows and may never modify or remove them.
199
+ */
200
+ export const MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES = [CoreResourceType.APPLICATION];
201
+ /** @see MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES — the append-only half. */
202
+ export const MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES = [CoreResourceType.AUDIT_LOGS];
203
+ /**
204
+ * Add the engine floor to an authored derivation — the ONE place database grants
205
+ * acquire it.
206
+ *
207
+ * ## Why here and not in {@link deriveMinionResourceGrants}
208
+ *
209
+ * That function answers "what did the author declare", and it has a THIRD
210
+ * consumer that must not receive this floor: the object-storage credential path
211
+ * turns the same grants into blob key prefixes. Widening it there would confine a
212
+ * minion's storage credential to an `applications/` prefix nobody asked for and
213
+ * nothing writes. The floor is a property of holding a DATABASE role, so it is
214
+ * applied at the boundary where a database role is minted — and both database
215
+ * adapters call this one function, so they cannot drift apart the way the mint
216
+ * and revoke halves of those adapters already have once
217
+ * (`.claude/rules/invariant-call-site-enumeration.md` #18).
218
+ *
219
+ * Idempotent: a floor entry the author also declared appears once.
220
+ */
221
+ export function deriveMinionDatabaseGrants(grants) {
222
+ const normalize = (resourceTypes) => [...new Set(resourceTypes)].sort();
223
+ // A floor entry the author declared on a WIDER axis keeps that axis rather than
224
+ // being demoted: declaring `write: ['auditLogs']` is an explicit, reviewed
225
+ // decision, and silently narrowing it here would make the declaration stop
226
+ // describing the outcome.
227
+ const declaredElsewhere = new Set([...grants.read, ...grants.write]);
228
+ return {
229
+ read: normalize([...grants.read, ...MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES]),
230
+ write: normalize(grants.write),
231
+ append: normalize(MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES.filter((resourceType) => !declaredElsewhere.has(resourceType))),
232
+ };
233
+ }
159
234
  //# sourceMappingURL=minion-resource-access.validation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"minion-resource-access.validation.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/minion-resource-access.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8CAA8C,EAC9C,sCAAsC,GAEvC,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,yCAAyC,GACpD,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;AAW9D;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,kCAAkC,CAAC,cAGlD;IACC,MAAM,UAAU,GAAoC,EAAE,CAAC;IACvD,MAAM,IAAI,GAAiD;QACzD,CAAC,MAAM,EAAE,cAAc,CAAC,IAAI,IAAI,EAAE,CAAC;QACnC,CAAC,OAAO,EAAE,cAAc,CAAC,KAAK,IAAI,EAAE,CAAC;KACtC,CAAC;IAEF,KAAK,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;QACpC,KAAK,MAAM,YAAY,IAAI,QAAQ,EAAE,CAAC;YACpC,IAAI,yCAAyC,CAAC,QAAQ,CAAC,YAAY,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DAAoD;QACpD,MAAM,IAAI,KAAK,CACb,4EAA4E;cAC1E,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CACtF,CAAC;IACJ,CAAC;IAED,2EAA2E;IAC3E,oEAAoE;IACpE,MAAM,SAAS,GAAG,CAAC,aAAgC,EAAkB,EAAE,CACrE,CAAC,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,EAAoB,CAAC;IAEvD,OAAO;QACL,IAAI,EAAE,SAAS,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,IAAI,EAAE,CAAC,EAAE,GAAG,2BAA2B,CAAC,CAAC;QACjF,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,IAAI,EAAE,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,wBAAwB,CAAC,aAAsC;IAC7E,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,sCAAsC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACxH,CAAC","sourcesContent":["import {\n RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES,\n resolveSharedPersistenceCollectionName,\n type ResourceType,\n} from '@wildo-ai/saas-models';\n\n/**\n * The two safety gates that must hold BEFORE a minion's `resourceAccess` may be\n * turned into database grants (Step 3 shared prerequisites, R11 + the F1 guard).\n *\n * Both exist because of the same asymmetry: `resourceAccess` is a RESOURCE-TYPE\n * whitelist, while a database grant is a COLLECTION grant. The two only line up\n * when the mapping between them is injective over the declarable set — and the\n * alias map is exactly where it is not.\n */\n\n/**\n * Resource types a minion may never declare (D15 / R11).\n *\n * A self-door type addresses \"MY row\" — it is meaningless for a principal that\n * has no row. `APPLICATION_MACHINE` carries no `userId`; a minion is not a user\n * and cannot become one. So the rejection is a SEMANTIC rule that happens to\n * also dissolve F1, not a convenience rule adopted because it was easier.\n *\n * That ordering matters for anyone tempted to relax this later. The alias map\n * holds exactly three entries, and all three are self→admin pairs onto the SAME\n * rows. Remove the self doors from the declarable set and resource-type →\n * collection becomes INJECTIVE, which is what lets a grant derived per resource\n * type mean exactly what the author wrote. Relaxing D15 for convenience would\n * silently restore the coarser floor: declaring `USER_SELF` would grant the\n * whole `users` collection — every user's row, through a door that promises\n * only one.\n *\n * Derived from the alias map rather than listed, so a fourth self door added\n * there is forbidden here on the same commit instead of quietly becoming\n * declarable.\n */\nexport const MINION_FORBIDDEN_SELF_DOOR_RESOURCE_TYPES: readonly string[] =\n Object.keys(RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES);\n\n/** One reason a `resourceAccess` declaration cannot be turned into grants. */\nexport interface MinionResourceAccessViolation {\n /** `read` or `write` — the axis the offending entry was declared on. */\n readonly axis: 'read' | 'write';\n readonly resourceType: string;\n /** Operator-facing explanation naming the consequence and the fix. */\n readonly message: string;\n}\n\n/**\n * Reject self-door types, and refuse any declaration whose types collapse onto\n * one collection.\n *\n * Returns every violation rather than throwing on the first: an author fixing a\n * config wants the whole list, and a caller that wants to fail closed can do so\n * on a non-empty result.\n *\n * ## The injectivity check is NOT redundant with the self-door rejection\n *\n * It is tempting to think removing the self doors makes collisions impossible —\n * that is true of TODAY's alias map and is exactly why this must be checked\n * rather than assumed. The alias map is data: a future entry that aliases two\n * ADMIN types onto one collection would reintroduce the collapse without\n * touching a self door, and the grant derived for one type would silently carry\n * the other's rows. Failing closed here makes that a build failure instead of a\n * containment that quietly widened.\n */\nexport function findMinionResourceAccessViolations(resourceAccess: {\n read?: readonly string[] | undefined;\n write?: readonly string[] | undefined;\n}): MinionResourceAccessViolation[] {\n const violations: MinionResourceAccessViolation[] = [];\n const axes: Array<['read' | 'write', readonly string[]]> = [\n ['read', resourceAccess.read ?? []],\n ['write', resourceAccess.write ?? []],\n ];\n\n for (const [axis, declared] of axes) {\n for (const resourceType of declared) {\n if (MINION_FORBIDDEN_SELF_DOOR_RESOURCE_TYPES.includes(resourceType)) {\n violations.push({\n axis,\n resourceType,\n message:\n `'${resourceType}' is a SELF door and cannot be granted to a minion (D15). `\n + 'A self door addresses \"my row\", and a minion has no row — it is a machine principal '\n + `carrying no userId. Granting it would give access to the whole `\n + `'${resolveSharedPersistenceCollectionName(resourceType as ResourceType)}' collection — `\n + 'every user\\'s row — through a door that promises only one. Declare the ADMIN resource '\n + 'type explicitly if the minion genuinely needs that breadth.',\n });\n }\n }\n\n // Injectivity, per AXIS: two declared types resolving to one collection make\n // the derived grant wider than either declaration reads.\n const collectionOwners = new Map<string, string>();\n for (const resourceType of declared) {\n const collection = resolveSharedPersistenceCollectionName(resourceType as ResourceType);\n const existing = collectionOwners.get(collection);\n if (existing !== undefined && existing !== resourceType) {\n violations.push({\n axis,\n resourceType,\n message:\n `'${resourceType}' and '${existing}' both resolve to the '${collection}' collection, `\n + 'so a grant derived from either carries the other\\'s rows. Refusing to derive grants '\n + 'from a declaration whose types are not injective over collections (F1 guard) — '\n + 'declare exactly one of them.',\n });\n continue;\n }\n collectionOwners.set(collection, resourceType);\n }\n }\n\n return violations;\n}\n\n/**\n * What a minion may touch, per axis — expressed in RESOURCE TYPES, the\n * vocabulary the rest of the platform speaks.\n *\n * ## Why not collection names\n *\n * An earlier revision returned collection names, which quietly made storage the\n * API of a security decision. `resourceAccess` is AUTHORED in resource types,\n * `ResourceType` is what every other Wildo surface passes around, and a\n * collection is one adapter's rendering of where those rows happen to live —\n * MongoDB calls it a collection, PostgreSQL a table, and a future adapter will\n * call it something else again. Naming the security contract after one of them\n * would force every reader to translate back, and would make the grant set look\n * different depending on which database an application chose.\n *\n * The translation therefore happens at the ADAPTER boundary — see\n * {@link resolveGrantStorageNames} — which is the only place that legitimately\n * knows about storage, exactly as external protocol literals are confined to the\n * thin adapter that speaks them.\n *\n * `null` means **no access was declared at all**, which is NOT the same as an\n * empty declaration and must not be flattened into one. Absent ⇒ mint no\n * database user whatsoever (D11 / R3: application-data access is an OPTIONAL\n * capability). Declared-but-empty ⇒ the author asked for a principal with no\n * access, a different and legitimate statement. One \"empty list\" for both would\n * make \"I forgot\" indistinguishable from \"I meant none\".\n */\nexport interface MinionResourceGrants {\n readonly read: readonly ResourceType[];\n readonly write: readonly ResourceType[];\n}\n\n/**\n * Derive a minion's grants from an authored `resourceAccess`.\n *\n * ## `write` does NOT imply `read`, deliberately\n *\n * It is tempting to add read wherever write is granted — most write paths in the\n * backend pipeline do read first (validation, FK resolution, read-modify-write),\n * so a `write: ['todos']` minion will often need `read: ['todos']` too.\n *\n * It is still refused, for the reason this entire workstream exists: a grant the\n * author did not write is a grant nobody reviewed. An insert-only minion is a\n * real shape, and silently widening every writer to a reader would make the\n * declaration stop describing the outcome — the precise property that made\n * `resourceAccess` non-binding before it produced real credentials.\n *\n * The cost is stated rather than hidden: a minion that writes without declaring\n * read will fail at RUNTIME on its first read, with the database naming the\n * action it lacked. A loud, local failure with an obvious fix (declare the read)\n * is the trade this prefers over a silent widening.\n *\n * ## The F2 transitive read path is the CALLER's to supply\n *\n * A declared type can pull in others through nested reads — the closure rule is\n * *declared ∪ child-direction targets declaring nested `onRead`, transitively*.\n * Computing it needs the resource graph, which this layer does not have, so it\n * arrives as `transitiveReadResourceTypes`. Omitting it is correct ONLY when the\n * application declares no nested `onRead` (true of Wonder Todos, measured\n * 2026-08-05); omitting it elsewhere yields a credential that is denied on a\n * path which works today.\n */\nexport function deriveMinionResourceGrants(\n resourceAccess: { read?: readonly string[] | undefined; write?: readonly string[] | undefined } | undefined,\n transitiveReadResourceTypes: readonly string[] = [],\n): MinionResourceGrants | null {\n if (!resourceAccess) return null;\n\n const violations = findMinionResourceAccessViolations(resourceAccess);\n if (violations.length > 0) {\n // Fail closed. Reaching here means the parse-time gate was bypassed (a\n // hand-built object, a future caller); deriving anyway would issue exactly\n // the over-broad grant those gates exist to refuse.\n throw new Error(\n `Refusing to derive minion resource grants from an invalid resourceAccess: `\n + violations.map((violation) => `[${violation.axis}] ${violation.message}`).join(' '),\n );\n }\n\n // Deduped and ordered so a grant set is stable between syncs — an unstable\n // one reads as a change and would re-issue credentials for nothing.\n const normalize = (resourceTypes: readonly string[]): ResourceType[] =>\n [...new Set(resourceTypes)].sort() as ResourceType[];\n\n return {\n read: normalize([...(resourceAccess.read ?? []), ...transitiveReadResourceTypes]),\n write: normalize(resourceAccess.write ?? []),\n };\n}\n\n/**\n * Translate a grant axis into the STORAGE names one adapter will grant on.\n *\n * The single, explicitly-named boundary between the platform vocabulary and a\n * database dialect. A Mongo module builds collection privileges from it; a\n * PostgreSQL module builds table grants; both call the same function so the two\n * cannot disagree about which rows a resource type addresses.\n *\n * Safe to collapse duplicates here ONLY because the F1 guard already refused any\n * declaration whose types share a collection — see\n * {@link findMinionResourceAccessViolations}. Without that guarantee this\n * function would silently merge two declarations into one grant.\n */\nexport function resolveGrantStorageNames(resourceTypes: readonly ResourceType[]): string[] {\n return [...new Set(resourceTypes.map((resourceType) => resolveSharedPersistenceCollectionName(resourceType)))].sort();\n}\n"]}
1
+ {"version":3,"file":"minion-resource-access.validation.js","sourceRoot":"","sources":["../../../../src/project-config/shared/minion-resource-access.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,8CAA8C,EAC9C,sCAAsC,GAEvC,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,yCAAyC,GACpD,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;AAW9D;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,kCAAkC,CAAC,cAGlD;IACC,MAAM,UAAU,GAAoC,EAAE,CAAC;IACvD,MAAM,IAAI,GAAiD;QACzD,CAAC,MAAM,EAAE,cAAc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W,CAAuC,CAAC;AAEvE,+EAA+E;AAC/E,MAAM,CAAC,MAAM,6CAA6C,GACxD,CAAC,gBAAgB,CAAC,UAAU,CAAuC,CAAC;AAgBtE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,0BAA0B,CAAC,MAA4B;IACrE,MAAM,SAAS,GAAG,CAAC,aAAsC,EAAkB,EAAE,CAC3E,CAAC,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAErC,gFAAgF;IAChF,2EAA2E;IAC3E,2EAA2E;IAC3E,0BAA0B;IAC1B,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAS,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAE7E,OAAO;QACL,IAAI,EAAE,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,GAAG,2CAA2C,CAAC,CAAC;QACjF,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC;QAC9B,MAAM,EAAE,SAAS,CACf,6CAA6C,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAC7G;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n CoreResourceType,\n RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES,\n resolveSharedPersistenceCollectionName,\n type ResourceType,\n} from '@wildo-ai/saas-models';\n\n/**\n * The two safety gates that must hold BEFORE a minion's `resourceAccess` may be\n * turned into database grants (Step 3 shared prerequisites, R11 + the F1 guard).\n *\n * Both exist because of the same asymmetry: `resourceAccess` is a RESOURCE-TYPE\n * whitelist, while a database grant is a COLLECTION grant. The two only line up\n * when the mapping between them is injective over the declarable set — and the\n * alias map is exactly where it is not.\n */\n\n/**\n * Resource types a minion may never declare (D15 / R11).\n *\n * A self-door type addresses \"MY row\" — it is meaningless for a principal that\n * has no row. `APPLICATION_MACHINE` carries no `userId`; a minion is not a user\n * and cannot become one. So the rejection is a SEMANTIC rule that happens to\n * also dissolve F1, not a convenience rule adopted because it was easier.\n *\n * That ordering matters for anyone tempted to relax this later. The alias map\n * holds exactly three entries, and all three are self→admin pairs onto the SAME\n * rows. Remove the self doors from the declarable set and resource-type →\n * collection becomes INJECTIVE, which is what lets a grant derived per resource\n * type mean exactly what the author wrote. Relaxing D15 for convenience would\n * silently restore the coarser floor: declaring `USER_SELF` would grant the\n * whole `users` collection — every user's row, through a door that promises\n * only one.\n *\n * Derived from the alias map rather than listed, so a fourth self door added\n * there is forbidden here on the same commit instead of quietly becoming\n * declarable.\n */\nexport const MINION_FORBIDDEN_SELF_DOOR_RESOURCE_TYPES: readonly string[] =\n Object.keys(RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES);\n\n/** One reason a `resourceAccess` declaration cannot be turned into grants. */\nexport interface MinionResourceAccessViolation {\n /** `read` or `write` — the axis the offending entry was declared on. */\n readonly axis: 'read' | 'write';\n readonly resourceType: string;\n /** Operator-facing explanation naming the consequence and the fix. */\n readonly message: string;\n}\n\n/**\n * Reject self-door types, and refuse any declaration whose types collapse onto\n * one collection.\n *\n * Returns every violation rather than throwing on the first: an author fixing a\n * config wants the whole list, and a caller that wants to fail closed can do so\n * on a non-empty result.\n *\n * ## The injectivity check is NOT redundant with the self-door rejection\n *\n * It is tempting to think removing the self doors makes collisions impossible —\n * that is true of TODAY's alias map and is exactly why this must be checked\n * rather than assumed. The alias map is data: a future entry that aliases two\n * ADMIN types onto one collection would reintroduce the collapse without\n * touching a self door, and the grant derived for one type would silently carry\n * the other's rows. Failing closed here makes that a build failure instead of a\n * containment that quietly widened.\n */\nexport function findMinionResourceAccessViolations(resourceAccess: {\n read?: readonly string[] | undefined;\n write?: readonly string[] | undefined;\n}): MinionResourceAccessViolation[] {\n const violations: MinionResourceAccessViolation[] = [];\n const axes: Array<['read' | 'write', readonly string[]]> = [\n ['read', resourceAccess.read ?? []],\n ['write', resourceAccess.write ?? []],\n ];\n\n for (const [axis, declared] of axes) {\n for (const resourceType of declared) {\n if (MINION_FORBIDDEN_SELF_DOOR_RESOURCE_TYPES.includes(resourceType)) {\n violations.push({\n axis,\n resourceType,\n message:\n `'${resourceType}' is a SELF door and cannot be granted to a minion (D15). `\n + 'A self door addresses \"my row\", and a minion has no row — it is a machine principal '\n + `carrying no userId. Granting it would give access to the whole `\n + `'${resolveSharedPersistenceCollectionName(resourceType as ResourceType)}' collection — `\n + 'every user\\'s row — through a door that promises only one. Declare the ADMIN resource '\n + 'type explicitly if the minion genuinely needs that breadth.',\n });\n }\n }\n\n // Injectivity, per AXIS: two declared types resolving to one collection make\n // the derived grant wider than either declaration reads.\n const collectionOwners = new Map<string, string>();\n for (const resourceType of declared) {\n const collection = resolveSharedPersistenceCollectionName(resourceType as ResourceType);\n const existing = collectionOwners.get(collection);\n if (existing !== undefined && existing !== resourceType) {\n violations.push({\n axis,\n resourceType,\n message:\n `'${resourceType}' and '${existing}' both resolve to the '${collection}' collection, `\n + 'so a grant derived from either carries the other\\'s rows. Refusing to derive grants '\n + 'from a declaration whose types are not injective over collections (F1 guard) — '\n + 'declare exactly one of them.',\n });\n continue;\n }\n collectionOwners.set(collection, resourceType);\n }\n }\n\n return violations;\n}\n\n/**\n * What a minion may touch, per axis — expressed in RESOURCE TYPES, the\n * vocabulary the rest of the platform speaks.\n *\n * ## Why not collection names\n *\n * An earlier revision returned collection names, which quietly made storage the\n * API of a security decision. `resourceAccess` is AUTHORED in resource types,\n * `ResourceType` is what every other Wildo surface passes around, and a\n * collection is one adapter's rendering of where those rows happen to live —\n * MongoDB calls it a collection, PostgreSQL a table, and a future adapter will\n * call it something else again. Naming the security contract after one of them\n * would force every reader to translate back, and would make the grant set look\n * different depending on which database an application chose.\n *\n * The translation therefore happens at the ADAPTER boundary — see\n * {@link resolveGrantStorageNames} — which is the only place that legitimately\n * knows about storage, exactly as external protocol literals are confined to the\n * thin adapter that speaks them.\n *\n * `null` means **no access was declared at all**, which is NOT the same as an\n * empty declaration and must not be flattened into one. Absent ⇒ mint no\n * database user whatsoever (D11 / R3: application-data access is an OPTIONAL\n * capability). Declared-but-empty ⇒ the author asked for a principal with no\n * access, a different and legitimate statement. One \"empty list\" for both would\n * make \"I forgot\" indistinguishable from \"I meant none\".\n */\nexport interface MinionResourceGrants {\n readonly read: readonly ResourceType[];\n readonly write: readonly ResourceType[];\n}\n\n/**\n * Derive a minion's grants from an authored `resourceAccess`.\n *\n * ## `write` does NOT imply `read`, deliberately\n *\n * It is tempting to add read wherever write is granted — most write paths in the\n * backend pipeline do read first (validation, FK resolution, read-modify-write),\n * so a `write: ['todos']` minion will often need `read: ['todos']` too.\n *\n * It is still refused, for the reason this entire workstream exists: a grant the\n * author did not write is a grant nobody reviewed. An insert-only minion is a\n * real shape, and silently widening every writer to a reader would make the\n * declaration stop describing the outcome — the precise property that made\n * `resourceAccess` non-binding before it produced real credentials.\n *\n * The cost is stated rather than hidden: a minion that writes without declaring\n * read will fail at RUNTIME on its first read, with the database naming the\n * action it lacked. A loud, local failure with an obvious fix (declare the read)\n * is the trade this prefers over a silent widening.\n *\n * ## The F2 transitive read path is the CALLER's to supply\n *\n * A declared type can pull in others through nested reads — the closure rule is\n * *declared ∪ child-direction targets declaring nested `onRead`, transitively*.\n * Computing it needs the resource graph, which this layer does not have, so it\n * arrives as `transitiveReadResourceTypes`. Omitting it is correct ONLY when the\n * application declares no nested `onRead` (true of Wonder Todos, measured\n * 2026-08-05); omitting it elsewhere yields a credential that is denied on a\n * path which works today.\n */\nexport function deriveMinionResourceGrants(\n resourceAccess: { read?: readonly string[] | undefined; write?: readonly string[] | undefined } | undefined,\n transitiveReadResourceTypes: readonly string[] = [],\n): MinionResourceGrants | null {\n if (!resourceAccess) return null;\n\n const violations = findMinionResourceAccessViolations(resourceAccess);\n if (violations.length > 0) {\n // Fail closed. Reaching here means the parse-time gate was bypassed (a\n // hand-built object, a future caller); deriving anyway would issue exactly\n // the over-broad grant those gates exist to refuse.\n throw new Error(\n `Refusing to derive minion resource grants from an invalid resourceAccess: `\n + violations.map((violation) => `[${violation.axis}] ${violation.message}`).join(' '),\n );\n }\n\n // Deduped and ordered so a grant set is stable between syncs — an unstable\n // one reads as a change and would re-issue credentials for nothing.\n const normalize = (resourceTypes: readonly string[]): ResourceType[] =>\n [...new Set(resourceTypes)].sort() as ResourceType[];\n\n return {\n read: normalize([...(resourceAccess.read ?? []), ...transitiveReadResourceTypes]),\n write: normalize(resourceAccess.write ?? []),\n };\n}\n\n/**\n * Translate a grant axis into the STORAGE names one adapter will grant on.\n *\n * The single, explicitly-named boundary between the platform vocabulary and a\n * database dialect. A Mongo module builds collection privileges from it; a\n * PostgreSQL module builds table grants; both call the same function so the two\n * cannot disagree about which rows a resource type addresses.\n *\n * Safe to collapse duplicates here ONLY because the F1 guard already refused any\n * declaration whose types share a collection — see\n * {@link findMinionResourceAccessViolations}. Without that guarantee this\n * function would silently merge two declarations into one grant.\n */\nexport function resolveGrantStorageNames(resourceTypes: readonly ResourceType[]): string[] {\n return [...new Set(resourceTypes.map((resourceType) => resolveSharedPersistenceCollectionName(resourceType)))].sort();\n}\n\n/**\n * What the ENGINE reads and writes for every runtime principal, whatever that\n * principal declared — the floor a database role must hold before any authored\n * `resourceAccess` is considered at all.\n *\n * ## Why this is not declarable, and must not become so\n *\n * `resourceAccess` answers \"what application data may this minion touch\". These\n * two entries answer a different question: \"what does the framework itself touch\n * in order to run a repository operation at all\". No author decides them, no\n * author can opt out of them, and asking one to write them down would be asking\n * a human for an answer the mechanism already knows — the exact shape\n * `.claude/rules/derive-before-you-ask.md` refuses. They are derived here, once,\n * from the engine paths that actually perform them:\n *\n * - **`APPLICATION`, read.** `ExecutionContextCreatorBackendService.getApplicationId`\n * resolves the singleton APPLICATION row for EVERY `ResourcePrimaryScope.APPLICATION`\n * operation, through `repositoriesRegistry` directly. That read is structural:\n * a minion declaring `read: ['todos']` is declaring an APPLICATION-scoped read,\n * so it triggers this one before it ever reaches `todos`.\n * - **`AUDIT_LOGS`, append.** `AuditLogsBackendService` writes one row per audited\n * operation, including the `system_context_read` it emits for the read above.\n *\n * Both bypass the in-process `resourceAccess` whitelist by construction —\n * `MinionScopedServicesRegistryHandlerBackendService` decorates the minion's\n * SERVICES registry, and these go through the repositories registry — so the\n * database grant was the only gate they ever met, and it refused them. That\n * asymmetry is the defect: the in-process policy already permits these reads,\n * and the credential did not.\n *\n * ## Why AUDIT_LOGS is APPEND and not WRITE\n *\n * The `write` axis grants `INSERT, UPDATE, DELETE`. Putting the audit table there\n * would let every minion rewrite or delete the evidence of its own actions, which\n * is not a smaller version of the right answer — it is the opposite of one. An\n * audit trail a principal can delete is not an audit trail. The append axis exists\n * so this floor can be satisfied without handing out that capability.\n *\n * assurance-control: WILDO.AUDIT.TAMPER_RESISTANCE — a runtime principal may add\n * audit rows and may never modify or remove them.\n */\nexport const MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES: readonly ResourceType[] =\n [CoreResourceType.APPLICATION] as unknown as readonly ResourceType[];\n\n/** @see MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES — the append-only half. */\nexport const MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES: readonly ResourceType[] =\n [CoreResourceType.AUDIT_LOGS] as unknown as readonly ResourceType[];\n\n/**\n * A minion's grants as a DATABASE role must hold them: what the author declared,\n * plus the engine floor above.\n *\n * The third axis is what keeps the floor honest — see\n * {@link MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES}.\n */\nexport interface MinionDatabaseGrants {\n readonly read: readonly ResourceType[];\n readonly write: readonly ResourceType[];\n /** Insert-only. Never update, never delete. */\n readonly append: readonly ResourceType[];\n}\n\n/**\n * Add the engine floor to an authored derivation — the ONE place database grants\n * acquire it.\n *\n * ## Why here and not in {@link deriveMinionResourceGrants}\n *\n * That function answers \"what did the author declare\", and it has a THIRD\n * consumer that must not receive this floor: the object-storage credential path\n * turns the same grants into blob key prefixes. Widening it there would confine a\n * minion's storage credential to an `applications/` prefix nobody asked for and\n * nothing writes. The floor is a property of holding a DATABASE role, so it is\n * applied at the boundary where a database role is minted — and both database\n * adapters call this one function, so they cannot drift apart the way the mint\n * and revoke halves of those adapters already have once\n * (`.claude/rules/invariant-call-site-enumeration.md` #18).\n *\n * Idempotent: a floor entry the author also declared appears once.\n */\nexport function deriveMinionDatabaseGrants(grants: MinionResourceGrants): MinionDatabaseGrants {\n const normalize = (resourceTypes: readonly ResourceType[]): ResourceType[] =>\n [...new Set(resourceTypes)].sort();\n\n // A floor entry the author declared on a WIDER axis keeps that axis rather than\n // being demoted: declaring `write: ['auditLogs']` is an explicit, reviewed\n // decision, and silently narrowing it here would make the declaration stop\n // describing the outcome.\n const declaredElsewhere = new Set<string>([...grants.read, ...grants.write]);\n\n return {\n read: normalize([...grants.read, ...MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES]),\n write: normalize(grants.write),\n append: normalize(\n MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES.filter((resourceType) => !declaredElsewhere.has(resourceType)),\n ),\n };\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import { PlatformApplicationType } from '@wildo-ai/platform-core-shared';
1
2
  /**
2
3
  * Platform microservices. All use the same Docker image (wildo-platform)
3
4
  * differentiated at runtime via PLATFORM_SERVICE env var.
@@ -18,6 +19,35 @@ export declare enum PlatformWildoServices {
18
19
  }
19
20
  export declare const BOOTSTRAP_PLATFORM_SERVICES: readonly [PlatformWildoServices.CRONTABS_BATCHES_MANAGER, PlatformWildoServices.MODULE_REGISTRY];
20
21
  export type BootstrapPlatformService = (typeof BOOTSTRAP_PLATFORM_SERVICES)[number];
22
+ /**
23
+ * The platform-application TYPES the platform provisions credentials for — the same three the
24
+ * apps-manager provisioner iterates. Named here so the runtime-slug ledger below can be REQUIRED per
25
+ * member: a fourth provisioned service that is not mapped fails to compile before it provisions a
26
+ * grant nobody can use.
27
+ */
28
+ export type ProvisionedPlatformApplicationType = PlatformApplicationType.PLATFORM_APPS_MANAGER | PlatformApplicationType.PLATFORM_CRONTABS_BATCHES_MANAGER | PlatformApplicationType.PLATFORM_MODULE_REGISTRY;
29
+ /**
30
+ * ONE service, TWO spellings — and this is the join between them.
31
+ *
32
+ * `PlatformApplicationType` (`platform_crontabs_batches_manager`, underscores) is the platform-
33
+ * application RECORD type: the row in `platformApplications`, the Redis ACL USERNAME, the RabbitMQ
34
+ * user. `PlatformWildoServices` (`platform-crontabs-batches-manager`, hyphens) is the RUNTIME SLUG:
35
+ * the Docker/K8s service name and, since 2026-09-09, the `appSlug` each service process boots with.
36
+ *
37
+ * Why the join matters: every Redis key a platform process writes is rooted at its runtime slug —
38
+ * the engine's `RedisService` roots at `${appSlug}:`, the platform's `PlatformRedisService` at the
39
+ * same slug through this ledger — and the ACL grant minted for the service must therefore be
40
+ * `~<runtime slug>:*`. Two writers rooted at the USERNAME instead (the provisioner's grant, then the
41
+ * platform Redis service's prefix) each produced `NOPERM` on the service's first key, one after the
42
+ * other, once the other side was corrected. Both sides now read this one table.
43
+ */
44
+ export declare const PLATFORM_SERVICE_RUNTIME_SLUG: Record<ProvisionedPlatformApplicationType, PlatformWildoServices>;
45
+ /**
46
+ * The runtime slug for a platform-application type name, or `undefined` when the name is not a
47
+ * provisioned platform service — a caller then reports or refuses rather than rooting a key
48
+ * namespace, or a grant, on a guess.
49
+ */
50
+ export declare function resolvePlatformServiceRuntimeSlug(serviceName: string | undefined): PlatformWildoServices | undefined;
21
51
  export declare enum AppsManagerMode {
22
52
  NORMAL = "normal",
23
53
  INIT = "init"
@@ -1 +1 @@
1
- {"version":3,"file":"platform-services.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/platform-services.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,oBAAY,qBAAqB;IAC/B,aAAa,kBAAkB;IAC/B,YAAY,0BAA0B;IACtC,wBAAwB,sCAAsC;IAC9D;;;;OAIG;IACH,eAAe,6BAA6B;CAC7C;AA4BD,eAAO,MAAM,2BAA2B,kGAGyB,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAepF,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"platform-services.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/platform-services.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;;;GAMG;AACH,oBAAY,qBAAqB;IAC/B,aAAa,kBAAkB;IAC/B,YAAY,0BAA0B;IACtC,wBAAwB,sCAAsC;IAC9D;;;;OAIG;IACH,eAAe,6BAA6B;CAC7C;AA4BD,eAAO,MAAM,2BAA2B,kGAGyB,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpF;;;;;GAKG;AACH,MAAM,MAAM,kCAAkC,GAC1C,uBAAuB,CAAC,qBAAqB,GAC7C,uBAAuB,CAAC,iCAAiC,GACzD,uBAAuB,CAAC,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,kCAAkC,EAAE,qBAAqB,CAI3G,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,qBAAqB,GAAG,SAAS,CAGpH;AAeD,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
@@ -1,3 +1,4 @@
1
+ import { PlatformApplicationType } from '@wildo-ai/platform-core-shared';
1
2
  /**
2
3
  * Platform microservices. All use the same Docker image (wildo-platform)
3
4
  * differentiated at runtime via PLATFORM_SERVICE env var.
@@ -21,6 +22,36 @@ export const BOOTSTRAP_PLATFORM_SERVICES = [
21
22
  PlatformWildoServices.CRONTABS_BATCHES_MANAGER,
22
23
  PlatformWildoServices.MODULE_REGISTRY,
23
24
  ];
25
+ /**
26
+ * ONE service, TWO spellings — and this is the join between them.
27
+ *
28
+ * `PlatformApplicationType` (`platform_crontabs_batches_manager`, underscores) is the platform-
29
+ * application RECORD type: the row in `platformApplications`, the Redis ACL USERNAME, the RabbitMQ
30
+ * user. `PlatformWildoServices` (`platform-crontabs-batches-manager`, hyphens) is the RUNTIME SLUG:
31
+ * the Docker/K8s service name and, since 2026-09-09, the `appSlug` each service process boots with.
32
+ *
33
+ * Why the join matters: every Redis key a platform process writes is rooted at its runtime slug —
34
+ * the engine's `RedisService` roots at `${appSlug}:`, the platform's `PlatformRedisService` at the
35
+ * same slug through this ledger — and the ACL grant minted for the service must therefore be
36
+ * `~<runtime slug>:*`. Two writers rooted at the USERNAME instead (the provisioner's grant, then the
37
+ * platform Redis service's prefix) each produced `NOPERM` on the service's first key, one after the
38
+ * other, once the other side was corrected. Both sides now read this one table.
39
+ */
40
+ export const PLATFORM_SERVICE_RUNTIME_SLUG = {
41
+ [PlatformApplicationType.PLATFORM_APPS_MANAGER]: PlatformWildoServices.APPS_MANAGER,
42
+ [PlatformApplicationType.PLATFORM_CRONTABS_BATCHES_MANAGER]: PlatformWildoServices.CRONTABS_BATCHES_MANAGER,
43
+ [PlatformApplicationType.PLATFORM_MODULE_REGISTRY]: PlatformWildoServices.MODULE_REGISTRY,
44
+ };
45
+ /**
46
+ * The runtime slug for a platform-application type name, or `undefined` when the name is not a
47
+ * provisioned platform service — a caller then reports or refuses rather than rooting a key
48
+ * namespace, or a grant, on a guess.
49
+ */
50
+ export function resolvePlatformServiceRuntimeSlug(serviceName) {
51
+ if (serviceName === undefined)
52
+ return undefined;
53
+ return PLATFORM_SERVICE_RUNTIME_SLUG[serviceName];
54
+ }
24
55
  const _assertExhaustiveBootstrapCoverage = true;
25
56
  void _assertExhaustiveBootstrapCoverage;
26
57
  export var AppsManagerMode;
@@ -1 +1 @@
1
- {"version":3,"file":"platform-services.schemas.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/platform-services.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC/B,wDAA+B,CAAA;IAC/B,+DAAsC,CAAA;IACtC,uFAA8D,CAAA;IAC9D;;;;OAIG;IACH,qEAA4C,CAAA;AAC9C,CAAC,EAVW,qBAAqB,KAArB,qBAAqB,QAUhC;AA4BD,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,qBAAqB,CAAC,wBAAwB;IAC9C,qBAAqB,CAAC,eAAe;CAC0B,CAAC;AAclE,MAAM,kCAAkC,GAAuC,IAAI,CAAC;AACpF,KAAK,kCAAkC,CAAC;AAExC,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","sourcesContent":["/**\n * Platform microservices. All use the same Docker image (wildo-platform)\n * differentiated at runtime via PLATFORM_SERVICE env var.\n *\n * For app developers: deployed as Docker containers.\n * For framework developers: run natively from source (hot-reload).\n */\nexport enum PlatformWildoServices {\n PLATFORM_INIT = 'platform-init',\n APPS_MANAGER = 'platform-apps-manager',\n CRONTABS_BATCHES_MANAGER = 'platform-crontabs-batches-manager',\n /**\n * Module-registry server (`platform-module-registry`, KD-7).\n * Hosts the central `wildo registry *` HTTP surface; pinned port\n * `PLATFORM_DEFAULT_PORTS.MODULE_REGISTRY` (5154).\n */\n MODULE_REGISTRY = 'platform-module-registry',\n}\n\n/**\n * Bootstrap platform services — long-running platform microservices that boot\n * from the same env contract via `PlatformEnvVarsBuilder.buildBootstrapEnv`.\n *\n * Excludes:\n * - `PLATFORM_INIT` — one-shot initialization job, not a long-running service.\n * - `APPS_MANAGER` — has its own dedicated full-env builder\n * (`PlatformEnvVarsBuilder.buildAppsManagerFullEnv`) with extra wiring\n * (Atlas creds, GitHub provisioning keys, etc.).\n *\n * Single source of truth for everything that iterates \"all bootstrap services\":\n * K8s Secret/ConfigMap emit (`k8s-secrets-generator.service.ts`), Compose\n * runtime catalog, and tests asserting cross-service env contracts.\n *\n * The `satisfies` clause below forces this list to cover every member of\n * `PlatformWildoServices` other than the two explicitly excluded ones —\n * adding a new enum member without listing it here is a compile error.\n * Without that coupling, the previous `Exclude<…>`-based local type alias\n * silently widened to include any future enum member, which masked the\n * \"service in enum but not yet handled by the bootstrap path\" drift class.\n */\ntype BootstrapPlatformServiceCandidate = Exclude<\n PlatformWildoServices,\n PlatformWildoServices.PLATFORM_INIT | PlatformWildoServices.APPS_MANAGER\n>;\n\nexport const BOOTSTRAP_PLATFORM_SERVICES = [\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n PlatformWildoServices.MODULE_REGISTRY,\n] as const satisfies readonly BootstrapPlatformServiceCandidate[];\n\nexport type BootstrapPlatformService = (typeof BOOTSTRAP_PLATFORM_SERVICES)[number];\n\n/**\n * Compile-time assertion: every non-excluded `PlatformWildoServices` member\n * MUST appear in `BOOTSTRAP_PLATFORM_SERVICES`. Adding a new member to the\n * enum without listing it above triggers a `Type 'X' is not assignable to\n * type 'never'` error pointing here, so the exhaustiveness check the\n * `addServiceExtras` switch used to provide for `Exclude<…>`-derived types\n * is preserved.\n */\ntype _AssertExhaustiveBootstrapCoverage =\n Exclude<BootstrapPlatformServiceCandidate, BootstrapPlatformService> extends never ? true : never;\nconst _assertExhaustiveBootstrapCoverage: _AssertExhaustiveBootstrapCoverage = true;\nvoid _assertExhaustiveBootstrapCoverage;\n\nexport enum AppsManagerMode {\n NORMAL = 'normal',\n INIT = 'init',\n}\n\n"]}
1
+ {"version":3,"file":"platform-services.schemas.js","sourceRoot":"","sources":["../../../../src/project-config/shared/platform-services.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAC/B,wDAA+B,CAAA;IAC/B,+DAAsC,CAAA;IACtC,uFAA8D,CAAA;IAC9D;;;;OAIG;IACH,qEAA4C,CAAA;AAC9C,CAAC,EAVW,qBAAqB,KAArB,qBAAqB,QAUhC;AA4BD,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,qBAAqB,CAAC,wBAAwB;IAC9C,qBAAqB,CAAC,eAAe;CAC0B,CAAC;AAelE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAsE;IAC9G,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC,YAAY;IACnF,CAAC,uBAAuB,CAAC,iCAAiC,CAAC,EAAE,qBAAqB,CAAC,wBAAwB;IAC3G,CAAC,uBAAuB,CAAC,wBAAwB,CAAC,EAAE,qBAAqB,CAAC,eAAe;CAC1F,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,iCAAiC,CAAC,WAA+B;IAC/E,IAAI,WAAW,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAChD,OAAQ,6BAAmF,CAAC,WAAW,CAAC,CAAC;AAC3G,CAAC;AAYD,MAAM,kCAAkC,GAAuC,IAAI,CAAC;AACpF,KAAK,kCAAkC,CAAC;AAExC,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","sourcesContent":["import { PlatformApplicationType } from '@wildo-ai/platform-core-shared';\n\n/**\n * Platform microservices. All use the same Docker image (wildo-platform)\n * differentiated at runtime via PLATFORM_SERVICE env var.\n *\n * For app developers: deployed as Docker containers.\n * For framework developers: run natively from source (hot-reload).\n */\nexport enum PlatformWildoServices {\n PLATFORM_INIT = 'platform-init',\n APPS_MANAGER = 'platform-apps-manager',\n CRONTABS_BATCHES_MANAGER = 'platform-crontabs-batches-manager',\n /**\n * Module-registry server (`platform-module-registry`, KD-7).\n * Hosts the central `wildo registry *` HTTP surface; pinned port\n * `PLATFORM_DEFAULT_PORTS.MODULE_REGISTRY` (5154).\n */\n MODULE_REGISTRY = 'platform-module-registry',\n}\n\n/**\n * Bootstrap platform services — long-running platform microservices that boot\n * from the same env contract via `PlatformEnvVarsBuilder.buildBootstrapEnv`.\n *\n * Excludes:\n * - `PLATFORM_INIT` — one-shot initialization job, not a long-running service.\n * - `APPS_MANAGER` — has its own dedicated full-env builder\n * (`PlatformEnvVarsBuilder.buildAppsManagerFullEnv`) with extra wiring\n * (Atlas creds, GitHub provisioning keys, etc.).\n *\n * Single source of truth for everything that iterates \"all bootstrap services\":\n * K8s Secret/ConfigMap emit (`k8s-secrets-generator.service.ts`), Compose\n * runtime catalog, and tests asserting cross-service env contracts.\n *\n * The `satisfies` clause below forces this list to cover every member of\n * `PlatformWildoServices` other than the two explicitly excluded ones —\n * adding a new enum member without listing it here is a compile error.\n * Without that coupling, the previous `Exclude<…>`-based local type alias\n * silently widened to include any future enum member, which masked the\n * \"service in enum but not yet handled by the bootstrap path\" drift class.\n */\ntype BootstrapPlatformServiceCandidate = Exclude<\n PlatformWildoServices,\n PlatformWildoServices.PLATFORM_INIT | PlatformWildoServices.APPS_MANAGER\n>;\n\nexport const BOOTSTRAP_PLATFORM_SERVICES = [\n PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n PlatformWildoServices.MODULE_REGISTRY,\n] as const satisfies readonly BootstrapPlatformServiceCandidate[];\n\nexport type BootstrapPlatformService = (typeof BOOTSTRAP_PLATFORM_SERVICES)[number];\n\n/**\n * The platform-application TYPES the platform provisions credentials for — the same three the\n * apps-manager provisioner iterates. Named here so the runtime-slug ledger below can be REQUIRED per\n * member: a fourth provisioned service that is not mapped fails to compile before it provisions a\n * grant nobody can use.\n */\nexport type ProvisionedPlatformApplicationType =\n | PlatformApplicationType.PLATFORM_APPS_MANAGER\n | PlatformApplicationType.PLATFORM_CRONTABS_BATCHES_MANAGER\n | PlatformApplicationType.PLATFORM_MODULE_REGISTRY;\n\n/**\n * ONE service, TWO spellings — and this is the join between them.\n *\n * `PlatformApplicationType` (`platform_crontabs_batches_manager`, underscores) is the platform-\n * application RECORD type: the row in `platformApplications`, the Redis ACL USERNAME, the RabbitMQ\n * user. `PlatformWildoServices` (`platform-crontabs-batches-manager`, hyphens) is the RUNTIME SLUG:\n * the Docker/K8s service name and, since 2026-09-09, the `appSlug` each service process boots with.\n *\n * Why the join matters: every Redis key a platform process writes is rooted at its runtime slug —\n * the engine's `RedisService` roots at `${appSlug}:`, the platform's `PlatformRedisService` at the\n * same slug through this ledger — and the ACL grant minted for the service must therefore be\n * `~<runtime slug>:*`. Two writers rooted at the USERNAME instead (the provisioner's grant, then the\n * platform Redis service's prefix) each produced `NOPERM` on the service's first key, one after the\n * other, once the other side was corrected. Both sides now read this one table.\n */\nexport const PLATFORM_SERVICE_RUNTIME_SLUG: Record<ProvisionedPlatformApplicationType, PlatformWildoServices> = {\n [PlatformApplicationType.PLATFORM_APPS_MANAGER]: PlatformWildoServices.APPS_MANAGER,\n [PlatformApplicationType.PLATFORM_CRONTABS_BATCHES_MANAGER]: PlatformWildoServices.CRONTABS_BATCHES_MANAGER,\n [PlatformApplicationType.PLATFORM_MODULE_REGISTRY]: PlatformWildoServices.MODULE_REGISTRY,\n};\n\n/**\n * The runtime slug for a platform-application type name, or `undefined` when the name is not a\n * provisioned platform service — a caller then reports or refuses rather than rooting a key\n * namespace, or a grant, on a guess.\n */\nexport function resolvePlatformServiceRuntimeSlug(serviceName: string | undefined): PlatformWildoServices | undefined {\n if (serviceName === undefined) return undefined;\n return (PLATFORM_SERVICE_RUNTIME_SLUG as Record<string, PlatformWildoServices | undefined>)[serviceName];\n}\n\n/**\n * Compile-time assertion: every non-excluded `PlatformWildoServices` member\n * MUST appear in `BOOTSTRAP_PLATFORM_SERVICES`. Adding a new member to the\n * enum without listing it above triggers a `Type 'X' is not assignable to\n * type 'never'` error pointing here, so the exhaustiveness check the\n * `addServiceExtras` switch used to provide for `Exclude<…>`-derived types\n * is preserved.\n */\ntype _AssertExhaustiveBootstrapCoverage =\n Exclude<BootstrapPlatformServiceCandidate, BootstrapPlatformService> extends never ? true : never;\nconst _assertExhaustiveBootstrapCoverage: _AssertExhaustiveBootstrapCoverage = true;\nvoid _assertExhaustiveBootstrapCoverage;\n\nexport enum AppsManagerMode {\n NORMAL = 'normal',\n INIT = 'init',\n}\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"schema-version.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/schema-version.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,aAGpC,CAAC"}
1
+ {"version":3,"file":"schema-version.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/schema-version.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,aAGpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"service-definitions.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/service-definitions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,oBAAoB,sCAAuC,CAAC;AACzE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,C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AM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEnF,eAAO,MAAM,0BAA0B;;;kBAG5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY;;kBAEvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"service-definitions.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/service-definitions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,oBAAoB,sCAAuC,CAAC;AACzE,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;GAkBG;AACH,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,4BAA4B;IACvC,0CAA0C;;IAE1C,iEAAiE;;IAEjE,iCAAiC;;IAEjC,+BAA+B;;IAE/B,kEAAkE;;kBAElE,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAIlF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;8BA2B5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,yBAAyB;;IAEpC,6DAA6D;;IAE7D,yEAAyE;;;;;;;;;;;;;;;;;;;;IAEzE,iCAAiC;;kBAEjC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;CAK5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAE0C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAE0C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"lockfile-modules-section.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/lockfile-modules-section.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC;;;;EAAyC,CAAC;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,8BAA8B;IACzC,oEAAoE;;IAEpE,uEAAuE;;IAEvE,wEAAwE;;IAExE,uDAAuD;;IAEvD,gDAAgD;;IAEhD,oEAAoE;;IAEpE;;;;;OAKG;;IAEH,sDAAsD;;IAEtD,gEAAgE;;IAEhE,oDAAoD;;;;;;kBAEpD,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;QAnC3C,oEAAoE;;QAEpE,uEAAuE;;QAEvE,wEAAwE;;QAExE,uDAAuD;;QAEvD,gDAAgD;;QAEhD,oEAAoE;;QAEpE;;;;;WAKG;;QAEH,sDAAsD;;QAEtD,gEAAgE;;QAEhE,oDAAoD;;;;;;;kBAcpD,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
1
+ {"version":3,"file":"lockfile-modules-section.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/lockfile-modules-section.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC;;;;EAAyC,CAAC;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,8BAA8B;IACzC,oEAAoE;;IAEpE,uEAAuE;;IAEvE,wEAAwE;;IAExE,uDAAuD;;IAEvD,gDAAgD;;IAEhD,oEAAoE;;IAEpE;;;;;OAKG;;IAEH,sDAAsD;;IAEtD,gEAAgE;;IAEhE,oDAAoD;;;;;;kBAEpD,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;QAnC3C,oEAAoE;;QAEpE,uEAAuE;;QAEvE,wEAAwE;;QAExE,uDAAuD;;QAEvD,gDAAgD;;QAEhD,oEAAoE;;QAEpE;;;;;WAKG;;QAEH,sDAAsD;;QAEtD,gEAAgE;;QAEhE,oDAAoD;;;;;;;kBAcpD,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-artifact.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/module-artifact.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIpC,iEAAiE;;IAEjE,4DAA4D;;IAE5D,gEAAgE;;;IAGhE;;;;;;;OAOG;;IAEH,6EAA6E;;;IAG7E;;;;OAIG;;kBAEH,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"module-artifact.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/module-artifact.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIpC,iEAAiE;;IAEjE,4DAA4D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AIG;AACH,eAAO,MAAM,0BAA0B;;kBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAiC9E;;;;;;;;;GASG;AACH,eAAO,MAAM,8BAA8B;;;;;;;kBAOzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;kCAeT,CAAC;AACzB,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;IACpC,qEAAqE;;IAErE,+DAA+D;;kBAE/D,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;IAP/B,qEAAqE;;IAErE,+DAA+D;;oBAKiB,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"registry-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;IACpC,qEAAqE;;IAErE,+DAA+D;;kBAE/D,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;IAP/B,qEAAqE;;IAErE,+DAA+D;;oBAKiB,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-section-schemas.constants.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-section-schemas.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;CAEnC,CAAC;AAEX,MAAM,MAAM,6BAA6B,GAAG,OAAO,gCAAgC,CAAC"}
1
+ {"version":3,"file":"registry-section-schemas.constants.d.ts","sourceRoot":"","sources":["../../../src/registry/registry-section-schemas.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;CAEnC,CAAC;AAEX,MAAM,MAAM,6BAA6B,GAAG,OAAO,gCAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"framework-release.constants.d.ts","sourceRoot":"","sources":["../../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,cAAc,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,sCAAsC,cAAc,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,YAAY,CAAC"}
1
+ {"version":3,"file":"framework-release.constants.d.ts","sourceRoot":"","sources":["../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,cAAc,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,sCAAsC,cAAc,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"framework-release.constants.js","sourceRoot":"","sources":["../../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,WAAW,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,WAAW,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,SAAS,CAAC","sourcesContent":["export const FRAMEWORK_RELEASE_NPM_SCOPE = '@wildo-ai';\n\n/**\n * Container registry that hosts the published framework images.\n *\n * Declared EXPLICITLY rather than left to Docker's default resolution: a bare\n * `<namespace>/<image>` reference silently means Docker Hub, and naming the host\n * makes the choice reviewable and a future move a config change instead of an\n * archaeology exercise. Every consumer-side reference (the compose template's\n * `platformImageRef`) is built from these two constants, and the publish lane\n * refuses any framework config that names a different pair.\n *\n * ## History, because it moved twice\n *\n * Docker Hub (`wildoai`) was the original home; the images `wildoai/wildo-platform:0.2.0`\n * and `:1.0.1` were pushed there in April 2026. On 2026-08-26 the lane was moved to GHCR\n * (`ghcr.io/wildo-ai`) for two reasons: publication could authenticate with a workflow's\n * own run-scoped `GITHUB_TOKEN`, and public GHCR pulls carry no anonymous pull-rate limit.\n * Neither reason was ever exercised — no publish CI exists, and the lane runs from a\n * developer machine — while the only container credential the framework holds is the\n * Docker Hub one. The first real GHCR publish (2026-09-04) was refused for exactly that.\n * Paul decided on 2026-09-05 to go BACK to Docker Hub rather than mint a second credential.\n *\n * If the lane ever moves to CI, the GHCR argument returns; move both constants and the\n * framework config together, and the publish-lane pin and the compose pins will say so.\n */\nexport const FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST = 'docker.io';\n\n/**\n * Owner namespace under {@link FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST} — the Docker Hub\n * organization (`wildoai`, no hyphen: Docker Hub namespaces cannot carry one, which is why\n * it differs from the GitHub organization `wildo-ai` and the npm scope `@wildo-ai`).\n */\nexport const FRAMEWORK_RELEASE_DOCKER_NAMESPACE = 'wildoai';\n"]}
1
+ {"version":3,"file":"framework-release.constants.js","sourceRoot":"","sources":["../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,WAAW,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,WAAW,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,SAAS,CAAC","sourcesContent":["export const FRAMEWORK_RELEASE_NPM_SCOPE = '@wildo-ai';\n\n/**\n * Container registry that hosts the published framework images.\n *\n * Declared EXPLICITLY rather than left to Docker's default resolution: a bare\n * `<namespace>/<image>` reference silently means Docker Hub, and naming the host\n * makes the choice reviewable and a future move a config change instead of an\n * archaeology exercise. Every consumer-side reference (the compose template's\n * `platformImageRef`) is built from these two constants, and the publish lane\n * refuses any framework config that names a different pair.\n *\n * ## History, because it moved twice\n *\n * Docker Hub (`wildoai`) was the original home; the images `wildoai/wildo-platform:0.2.0`\n * and `:1.0.1` were pushed there in April 2026. On 2026-08-26 the lane was moved to GHCR\n * (`ghcr.io/wildo-ai`) for two reasons: publication could authenticate with a workflow's\n * own run-scoped `GITHUB_TOKEN`, and public GHCR pulls carry no anonymous pull-rate limit.\n * Neither reason was ever exercised — no publish CI exists, and the lane runs from a\n * developer machine — while the only container credential the framework holds is the\n * Docker Hub one. The first real GHCR publish (2026-09-04) was refused for exactly that.\n * Paul decided on 2026-09-05 to go BACK to Docker Hub rather than mint a second credential.\n *\n * If the lane ever moves to CI, the GHCR argument returns; move both constants and the\n * framework config together, and the publish-lane pin and the compose pins will say so.\n */\nexport const FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST = 'docker.io';\n\n/**\n * Owner namespace under {@link FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST} — the Docker Hub\n * organization (`wildoai`, no hyphen: Docker Hub namespaces cannot carry one, which is why\n * it differs from the GitHub organization `wildo-ai` and the npm scope `@wildo-ai`).\n */\nexport const FRAMEWORK_RELEASE_DOCKER_NAMESPACE = 'wildoai';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"framework-info.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/framework-info.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"framework-info.schemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/framework-info.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}