@capybara-hq/kernel 0.1.0-rc.145 → 0.1.0-rc.147

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 (185) hide show
  1. package/dist/admin/extensions.controller.d.ts +0 -11
  2. package/dist/admin/extensions.controller.js +0 -28
  3. package/dist/admin/health.service.d.ts +25 -1
  4. package/dist/admin/health.service.js +50 -18
  5. package/dist/audit/full-access.d.ts +78 -0
  6. package/dist/audit/full-access.js +283 -0
  7. package/dist/automations/automations.service.d.ts +1 -0
  8. package/dist/automations/automations.service.js +3 -1
  9. package/dist/automations/calendar.js +3 -1
  10. package/dist/automations/grant-rules.d.ts +2 -1
  11. package/dist/automations/grant-rules.js +8 -1
  12. package/dist/automations/unattended.d.ts +13 -1
  13. package/dist/automations/unattended.js +13 -1
  14. package/dist/catalog/admin-catalog.controller.d.ts +8 -0
  15. package/dist/catalog/admin-catalog.controller.js +8 -2
  16. package/dist/catalog/admin-catalog.schemas.d.ts +10 -0
  17. package/dist/catalog/admin-catalog.schemas.js +8 -1
  18. package/dist/catalog/catalog-content.d.ts +6 -0
  19. package/dist/catalog/catalog-scope.service.d.ts +22 -2
  20. package/dist/catalog/catalog-scope.service.js +27 -3
  21. package/dist/catalog/catalog.service.js +19 -2
  22. package/dist/catalog/marketplaces.service.d.ts +1 -1
  23. package/dist/catalog/org-catalog.service.d.ts +8 -1
  24. package/dist/catalog/org-catalog.service.js +36 -3
  25. package/dist/catalog/platform-components.js +3 -2
  26. package/dist/catalog/platform-import-update.d.ts +2 -0
  27. package/dist/catalog/platform-import-update.js +8 -1
  28. package/dist/catalog/plugin-connectors.d.ts +11 -0
  29. package/dist/catalog/plugin-connectors.js +33 -0
  30. package/dist/catalog/plugin-import.d.ts +35 -15
  31. package/dist/catalog/plugin-import.js +110 -35
  32. package/dist/catalog/plugin-install.js +6 -0
  33. package/dist/catalog/provenance.d.ts +71 -0
  34. package/dist/catalog/provenance.js +112 -0
  35. package/dist/config/auto-approve.d.ts +16 -0
  36. package/dist/config/auto-approve.js +24 -0
  37. package/dist/config/capacity-presets.d.ts +243 -0
  38. package/dist/config/capacity-presets.js +195 -0
  39. package/dist/config/env.d.ts +2 -1
  40. package/dist/config/env.js +6 -1
  41. package/dist/config/load.js +15 -0
  42. package/dist/config/schema.d.ts +46 -9
  43. package/dist/config/schema.js +154 -30
  44. package/dist/ctx/create-ctx.d.ts +16 -0
  45. package/dist/ctx/create-ctx.js +269 -34
  46. package/dist/ctx/net.d.ts +5 -1
  47. package/dist/ctx/net.js +62 -12
  48. package/dist/db/kernel-schema.d.ts +31 -0
  49. package/dist/db/migrator.js +0 -36
  50. package/dist/dial-in/routes.js +1 -1
  51. package/dist/erasure/org-batches.js +1 -6
  52. package/dist/erasure/org-catalog.js +6 -2
  53. package/dist/erasure/org-rules.js +1 -0
  54. package/dist/erasure/org-worker.js +0 -13
  55. package/dist/errors.d.ts +6 -0
  56. package/dist/errors.js +6 -0
  57. package/dist/extensions/admin-ops.d.ts +14 -1
  58. package/dist/extensions/admin-ops.js +30 -3
  59. package/dist/extensions/admin-view.d.ts +21 -1
  60. package/dist/extensions/admin-view.js +43 -0
  61. package/dist/extensions/bootstrap-packages.d.ts +5 -0
  62. package/dist/extensions/bootstrap-packages.js +1 -1
  63. package/dist/extensions/bootstrap-review.d.ts +251 -0
  64. package/dist/extensions/bootstrap-review.js +676 -0
  65. package/dist/extensions/bootstrap.d.ts +21 -1
  66. package/dist/extensions/bootstrap.js +72 -2
  67. package/dist/extensions/cli.d.ts +6 -0
  68. package/dist/extensions/cli.js +4 -0
  69. package/dist/extensions/enabled.d.ts +3 -0
  70. package/dist/extensions/execution-realm.d.ts +96 -0
  71. package/dist/extensions/execution-realm.js +141 -0
  72. package/dist/extensions/extensions.module.js +12 -0
  73. package/dist/extensions/full-access-disclosure.d.ts +15 -0
  74. package/dist/extensions/full-access-disclosure.js +57 -0
  75. package/dist/extensions/grant-epoch.d.ts +9 -2
  76. package/dist/extensions/grant-epoch.js +13 -2
  77. package/dist/extensions/host.d.ts +96 -4
  78. package/dist/extensions/host.js +411 -33
  79. package/dist/extensions/installs.d.ts +18 -0
  80. package/dist/extensions/installs.js +28 -0
  81. package/dist/extensions/instance.d.ts +2 -0
  82. package/dist/extensions/instance.js +1 -0
  83. package/dist/extensions/isolated/admission.d.ts +23 -2
  84. package/dist/extensions/isolated/admission.js +32 -7
  85. package/dist/extensions/isolated/authorization.d.ts +8 -2
  86. package/dist/extensions/isolated/authorization.js +11 -3
  87. package/dist/extensions/isolated/broker.d.ts +3 -0
  88. package/dist/extensions/isolated/broker.js +50 -14
  89. package/dist/extensions/isolated/configured-package.d.ts +5 -0
  90. package/dist/extensions/isolated/configured-package.js +2 -0
  91. package/dist/extensions/isolated/lanes.d.ts +44 -3
  92. package/dist/extensions/isolated/lanes.js +263 -80
  93. package/dist/extensions/isolated/metrics.d.ts +146 -0
  94. package/dist/extensions/isolated/metrics.js +304 -0
  95. package/dist/extensions/isolated/revision.d.ts +7 -1
  96. package/dist/extensions/isolated/revision.js +26 -5
  97. package/dist/extensions/isolated/rpc.d.ts +5 -0
  98. package/dist/extensions/isolated/rpc.js +7 -2
  99. package/dist/extensions/isolated/sandbox.d.ts +23 -0
  100. package/dist/extensions/isolated/sandbox.js +50 -0
  101. package/dist/extensions/isolated/status.d.ts +79 -0
  102. package/dist/extensions/isolated/status.js +216 -0
  103. package/dist/extensions/isolated/tier.d.ts +127 -2
  104. package/dist/extensions/isolated/tier.js +266 -7
  105. package/dist/extensions/isolated/usage.d.ts +134 -0
  106. package/dist/extensions/isolated/usage.js +322 -0
  107. package/dist/extensions/ledger.d.ts +5 -0
  108. package/dist/extensions/ledger.js +16 -0
  109. package/dist/extensions/lifecycle.d.ts +42 -2
  110. package/dist/extensions/lifecycle.js +100 -4
  111. package/dist/extensions/org-config.js +11 -0
  112. package/dist/extensions/package.d.ts +14 -0
  113. package/dist/extensions/package.js +23 -0
  114. package/dist/extensions/permission-view.d.ts +2 -2
  115. package/dist/extensions/permissions.controller.d.ts +35 -0
  116. package/dist/extensions/permissions.controller.js +98 -0
  117. package/dist/extensions/permissions.schemas.d.ts +288 -0
  118. package/dist/extensions/permissions.schemas.js +96 -0
  119. package/dist/extensions/permissions.service.d.ts +116 -0
  120. package/dist/extensions/permissions.service.js +428 -0
  121. package/dist/extensions/realm-retirement.d.ts +65 -0
  122. package/dist/extensions/realm-retirement.js +150 -0
  123. package/dist/extensions/registry.d.ts +6 -0
  124. package/dist/extensions/registry.js +8 -0
  125. package/dist/extensions/review-hash.d.ts +114 -0
  126. package/dist/extensions/review-hash.js +145 -0
  127. package/dist/extensions/revision-approvals.d.ts +58 -3
  128. package/dist/extensions/revision-approvals.js +135 -14
  129. package/dist/extensions/revision-grants.d.ts +10 -0
  130. package/dist/extensions/revision-review.d.ts +144 -0
  131. package/dist/extensions/revision-review.js +297 -0
  132. package/dist/extensions/revocation-leases.d.ts +273 -0
  133. package/dist/extensions/revocation-leases.js +533 -0
  134. package/dist/extensions/revocation.d.ts +78 -0
  135. package/dist/extensions/revocation.js +205 -0
  136. package/dist/extensions/state.module.js +12 -0
  137. package/dist/git/run-end.d.ts +35 -7
  138. package/dist/git/run-end.js +87 -38
  139. package/dist/http/api.module.js +2 -0
  140. package/dist/identity/audit.d.ts +2 -1
  141. package/dist/identity/audit.js +4 -17
  142. package/dist/index.d.ts +10 -2
  143. package/dist/index.js +10 -2
  144. package/dist/infra/config/kernel-config.service.d.ts +6 -0
  145. package/dist/infra/config/kernel-config.service.js +21 -0
  146. package/dist/infra/outbox/registry.d.ts +13 -0
  147. package/dist/infra/outbox/registry.js +8 -0
  148. package/dist/lifecycle/kernel-lifecycle.d.ts +27 -1
  149. package/dist/lifecycle/kernel-lifecycle.js +83 -22
  150. package/dist/net/private-endpoint-preflight.d.ts +159 -0
  151. package/dist/net/private-endpoint-preflight.js +417 -0
  152. package/dist/net/private-endpoints.d.ts +68 -0
  153. package/dist/net/private-endpoints.js +164 -0
  154. package/dist/net/public-address.d.ts +14 -0
  155. package/dist/net/public-address.js +15 -1
  156. package/dist/net/safe-fetch.d.ts +2 -1
  157. package/dist/net/safe-fetch.js +10 -3
  158. package/dist/overrides.d.ts +9 -1
  159. package/dist/overrides.js +4 -0
  160. package/dist/packages/official-publisher.d.ts +65 -1
  161. package/dist/packages/official-publisher.js +171 -46
  162. package/dist/packages/provenance.d.ts +11 -0
  163. package/dist/packages/provenance.js +24 -0
  164. package/dist/platform/exclusions.js +4 -4
  165. package/dist/platform/ops/automations.ops.js +1 -1
  166. package/dist/platform/ops/catalog-admin.ops.js +25 -4
  167. package/dist/platform/ops/extension-permissions.ops.d.ts +11 -0
  168. package/dist/platform/ops/extension-permissions.ops.js +159 -0
  169. package/dist/platform/platform-ops.module.d.ts +2 -1
  170. package/dist/platform/platform-ops.module.js +2 -0
  171. package/dist/platform/route-schemas.js +2 -0
  172. package/dist/retention/purge-batch.js +10 -14
  173. package/dist/runtime/maintenance.d.ts +4 -2
  174. package/dist/runtime/maintenance.js +16 -3
  175. package/dist/runtime/run-finish.d.ts +3 -3
  176. package/dist/runtime/run-finish.js +7 -3
  177. package/dist/sandbox/permission-availability.d.ts +17 -2
  178. package/dist/sandbox/permission-availability.js +22 -1
  179. package/dist/sandbox/permission-facts.js +7 -1
  180. package/dist/tools/builtins/sandbox/common.js +2 -0
  181. package/dist/tools/pipeline.d.ts +2 -1
  182. package/dist/tools/pipeline.js +7 -2
  183. package/package.json +4 -3
  184. package/src/migrations/0238_extension_usage.sql +40 -0
  185. package/src/migrations/0239_extension_replica_isolation.sql +28 -0
@@ -0,0 +1,251 @@
1
+ import { KernelConfigService } from "../infra/config/kernel-config.service.js";
2
+ import { KernelDb } from "../infra/database/kernel-db.js";
3
+ import { TransactionHost } from "../infra/database/transaction-host.js";
4
+ import { XactLock } from "../infra/database/xact-lock.js";
5
+ import type { KernelLogger } from "../log.js";
6
+ import { ExtensionBlobs } from "./blobs.js";
7
+ import type { MergedBootstrapEntry, MergedBootstrapManifest } from "./bootstrap-extra.js";
8
+ import type { HostIsolation } from "./execution-realm.js";
9
+ import { type ExtensionPackage } from "./package.js";
10
+ import { type ReviewDisplay } from "./review-hash.js";
11
+ import { ExtensionRevisionApprovals } from "./revision-approvals.js";
12
+ import { type ApprovalScope, ExtensionRevisionGrants, type GrantAuthority, type RevisionGrant } from "./revision-grants.js";
13
+ /**
14
+ * The bootstrap review (extension permission model spec, "Bootstrap and offline installs"; plan
15
+ * task 1.3c). One batch covers every bootstrap pin of the merged manifest (built-in and extra
16
+ * entries, required, builtin and optional) and every config-declared extension (the archive the
17
+ * `extensions` config list captures). Each revision with an extension gets the same reviewed
18
+ * display as a catalog review (`review-hash.ts`: rows, purposes, realms and forcing keys, scope,
19
+ * operator authority, pin-only publisher evidence, the previous approval), and the batch hash binds
20
+ * the exact ordered batch, each revision's identity and display hash, and the host profile.
21
+ *
22
+ * - `capybara bootstrap review` shows it; `--print-review` prints the hash and the
23
+ * `bootstrap.approvedReviews` entry an operator can preseed.
24
+ * - `capybara bootstrap approve --review-hash <hash>` exchanges the hash for the revision grants in
25
+ * one transaction (source `operator_cli`, a fresh human review: it may reopen a revoked or retired
26
+ * revision). A hash that no longer matches the recomputed review is refused as stale.
27
+ * - A matching `bootstrap.approvedReviews` preseed does the same with source `operator_config`
28
+ * (never reviving a revoked or retired revision), from `capybara bootstrap approve` without a hash
29
+ * and from the kernel start; audited as operator (config).
30
+ * - `extensionPermissions.autoApprove` (outside production only, `config/auto-approve.ts`) grants
31
+ * the batch at start with source `auto`, logging a banner that names the revisions and realms.
32
+ * - The start gate computes "missing required approval" (a required pin, a config-declared
33
+ * extension or a required install without a live grant of its own). Shadow mode until plan task
34
+ * 1.5a: it is logged with the batch hash and the approve command, and never refuses.
35
+ *
36
+ * The batch hash is deployment-specific where approvals exist: each display binds its previous
37
+ * approval (the live grant of the install's approved revision, else of another revision of the
38
+ * plugin). A preseed hash published
39
+ * for a release (plan task 1.3f) therefore matches deployments without such a grant (fresh
40
+ * installs); an existing deployment recomputes it (`--print-review`, the P1.4 runbook).
41
+ *
42
+ * The review reads static archives only: the package store in PostgreSQL, the offline directory,
43
+ * then (the CLI only) npm or git, so it works without an object store and offline.
44
+ */
45
+ /** Bump when the batch's shape or the meaning of a field changes. */
46
+ export declare const BOOTSTRAP_REVIEW_CONTRACT = 1;
47
+ /** Where a reviewed revision comes from. */
48
+ export type BootstrapRevisionOrigin = "manifest" | "extra" | "config";
49
+ /** A revision's archive as the review read it. */
50
+ export type BootstrapArtifact = {
51
+ kind: "extension";
52
+ pkg: ExtensionPackage;
53
+ } | {
54
+ kind: "declarative";
55
+ } | {
56
+ kind: "unavailable";
57
+ problem: string;
58
+ };
59
+ /** One revision of the batch before the grants are consulted. */
60
+ export interface BootstrapRevisionInput {
61
+ name: string;
62
+ version: string;
63
+ origin: BootstrapRevisionOrigin;
64
+ required: boolean;
65
+ builtin: boolean;
66
+ /** The org scope its grant is bounded by: `all` for required, builtin and config-declared. */
67
+ scope: "all" | "optional";
68
+ /** Lowercase hex sha512 of the archive (the pin's integrity for a pin). */
69
+ sha512: string;
70
+ artifact: BootstrapArtifact;
71
+ }
72
+ export type BootstrapEntryStatus =
73
+ /** A live grant of its own. */
74
+ "granted"
75
+ /** Approving the batch grants it. */
76
+ | "approvable"
77
+ /** Its grant was revoked or retired: only a fresh operator review (the CLI) restores it. */
78
+ | "revoked"
79
+ /** Declared keys without bilingual purposes: Republish with purposes. */
80
+ | "missing_purposes"
81
+ /** A key no catalog row matches: the review cannot be confirmed. */
82
+ | "unconfirmable"
83
+ /** No extension: nothing to grant. */
84
+ | "declarative"
85
+ /** The archive could not be read here. */
86
+ | "unavailable";
87
+ export interface BootstrapReviewEntry {
88
+ name: string;
89
+ version: string;
90
+ sha512: string;
91
+ origin: BootstrapRevisionOrigin;
92
+ required: boolean;
93
+ builtin: boolean;
94
+ scope: "all" | "optional";
95
+ status: BootstrapEntryStatus;
96
+ display?: ReviewDisplay;
97
+ reviewHash?: string;
98
+ /** The live grant's generation, when granted. */
99
+ generation?: number;
100
+ /**
101
+ * The newest grant when it is no longer live (revoked or retired): bound by the batch hash, so a
102
+ * hash taken before a revocation cannot reopen the revision without a new review.
103
+ */
104
+ terminal?: {
105
+ generation: number;
106
+ state: string;
107
+ };
108
+ problem?: string;
109
+ }
110
+ export interface BootstrapReview {
111
+ /** `bootstrap:v<contract>:<sha256 hex>`. */
112
+ hash: string;
113
+ host: HostIsolation;
114
+ entries: BootstrapReviewEntry[];
115
+ /** Every archive was read: only a complete review can be approved. */
116
+ complete: boolean;
117
+ }
118
+ /** The kernel's start gate in shadow mode: computed and logged, never refused. */
119
+ export interface BootstrapStartGate {
120
+ /** Required pins, config-declared extensions and required installs without a live grant. */
121
+ missingRequired: string[];
122
+ /** The batch hash to approve, when the review is complete. */
123
+ hash?: string;
124
+ /** The command that clears it. */
125
+ command: string;
126
+ }
127
+ export type ApprovalVia = "cli" | "config" | "auto";
128
+ export interface BootstrapApproval {
129
+ hash: string;
130
+ /** Revisions granted now. */
131
+ granted: {
132
+ name: string;
133
+ version: string;
134
+ generation: number;
135
+ }[];
136
+ /** Revisions left without a grant, with why. */
137
+ skipped: {
138
+ name: string;
139
+ version: string;
140
+ reason: string;
141
+ }[];
142
+ }
143
+ export declare class BootstrapReviewError extends Error {
144
+ readonly code: "stale" | "incomplete";
145
+ constructor(code: "stale" | "incomplete", message: string);
146
+ }
147
+ /** `sha512-<base64>` (a pin's integrity) as lowercase hex. */
148
+ export declare function integrityHex(integrity: string): string;
149
+ /** The reviewed display of one revision with an extension, under the given authority. */
150
+ export declare function bootstrapRevisionDisplay(input: BootstrapRevisionInput & {
151
+ artifact: {
152
+ kind: "extension";
153
+ };
154
+ }, o: {
155
+ host: HostIsolation;
156
+ authority: GrantAuthority;
157
+ previous: RevisionGrant | undefined;
158
+ /** The scope the grant records, when narrower than the entry's (a `named` grant). */
159
+ approvalScope?: ApprovalScope;
160
+ }): ReviewDisplay;
161
+ /**
162
+ * The batch inputs of a manifest's pins from their archives (by entry name), without a database:
163
+ * what a fresh deployment's review reads (plan task 1.3f, the release-time preseed). An archive
164
+ * whose sha512 is not its pin's is refused like a missing one.
165
+ */
166
+ export declare function bootstrapPinInputs(manifest: MergedBootstrapManifest, archives: ReadonlyMap<string, Uint8Array>, maxBytes: number): Promise<BootstrapRevisionInput[]>;
167
+ /**
168
+ * The review of a fresh deployment (no grants, no previous approval), without a database: its
169
+ * hash is the one {@link BootstrapReviewService.review} computes for the same inputs and host on
170
+ * a deployment where no pinned plugin has a live grant on another revision. The
171
+ * release publishes it as the quickstart's `bootstrap.approvedReviews` preseed (plan task 1.3f).
172
+ */
173
+ export declare function freshBootstrapReview(inputs: readonly BootstrapRevisionInput[], host: HostIsolation): BootstrapReview;
174
+ /** The batch hash: the ordered batch, each revision's identity and display hash, the host. */
175
+ export declare function bootstrapBatchHash(host: HostIsolation, entries: readonly Pick<BootstrapReviewEntry, "name" | "version" | "sha512" | "origin" | "required" | "builtin" | "scope" | "status" | "reviewHash" | "terminal">[]): string;
176
+ /** The pin's archive read as an extension, a declarative plugin, or unavailable. */
177
+ export declare function classifyBootstrapArchive(e: Pick<MergedBootstrapEntry, "source">, bytes: Uint8Array, maxBytes: number): Promise<BootstrapArtifact>;
178
+ export declare class BootstrapReviewService {
179
+ private readonly kdb;
180
+ readonly txHost: TransactionHost;
181
+ private readonly xactLock;
182
+ private readonly grants;
183
+ private readonly approvals;
184
+ private readonly blobs;
185
+ private readonly config;
186
+ private readonly log;
187
+ constructor(kdb: KernelDb, txHost: TransactionHost, xactLock: XactLock, grants: ExtensionRevisionGrants, approvals: Pick<ExtensionRevisionApprovals, "startGate">, blobs: Pick<ExtensionBlobs, "get">, config: KernelConfigService, log: KernelLogger);
188
+ /** The host profile the review is computed for: whether the isolation supervisor is configured. */
189
+ host(): HostIsolation;
190
+ /**
191
+ * Reads the batch's archives: the bootstrap pins (the package store, then the offline `dir`,
192
+ * then npm or git when `network`) and the config-declared archives (`declared`; resolved against
193
+ * `resolveFrom`). Nothing is written; an archive that cannot be read is `unavailable`.
194
+ */
195
+ collect(o: {
196
+ manifest?: MergedBootstrapManifest | undefined;
197
+ dir?: string | undefined;
198
+ network: boolean;
199
+ declared: boolean;
200
+ resolveFrom?: string | undefined;
201
+ signal?: AbortSignal | undefined;
202
+ }): Promise<BootstrapRevisionInput[]>;
203
+ /**
204
+ * A pin already in PostgreSQL: an extension package stored with this sha512 (its bytes from the
205
+ * package store), or a declarative catalog version imported with this integrity.
206
+ */
207
+ private storedArtifact;
208
+ /** The review of the collected batch against the grants as they are now (reads only). */
209
+ review(inputs: readonly BootstrapRevisionInput[]): Promise<BootstrapReview>;
210
+ private entry;
211
+ /** The live grant of the install's approved revision when that is another revision. */
212
+ /**
213
+ * The previous approval a revision's display binds: the live grant of the install's approved
214
+ * revision when that is another revision, else the newest live grant of another revision of the
215
+ * plugin. Bootstrap pins are granted without being promoted (and installs from before the grant
216
+ * store have no approved revision), so without the fallback an upgraded pin would review like a
217
+ * fresh one and match the release's fresh-deployment preseed (plan task 1.3f).
218
+ */
219
+ private previous;
220
+ /**
221
+ * Exchanges the batch hash for the revision grants, in one transaction: the review is computed
222
+ * again inside it (the grants and previous approvals as they are now), a hash that differs is
223
+ * refused as stale, and every approvable revision is granted and audited
224
+ * (`extension.permissions_approved`, actor operator). `cli` may reopen a revoked or retired
225
+ * revision (a fresh human review); `config` (a preseed) never does.
226
+ */
227
+ approve(inputs: readonly BootstrapRevisionInput[], hash: string, via: "cli" | "config"): Promise<BootstrapApproval>;
228
+ /**
229
+ * `extensionPermissions.autoApprove` (outside production only): grants every grantable revision
230
+ * of the batch with source `auto`, each with its own display under the `auto` authority, in one
231
+ * transaction.
232
+ */
233
+ autoApprove(inputs: readonly BootstrapRevisionInput[]): Promise<BootstrapApproval>;
234
+ private grantAll;
235
+ /**
236
+ * The kernel start's step (shadow mode until plan task 1.5a). Reads the batch without network,
237
+ * applies a matching `bootstrap.approvedReviews` preseed (operator config), grants the batch when
238
+ * `autoApprove` is on (with the banner), then computes the start gate and logs a missing required
239
+ * approval with the batch hash and the command. Never throws and never refuses the start.
240
+ */
241
+ atStart(o: {
242
+ manifest?: MergedBootstrapManifest | undefined;
243
+ dir?: string | undefined;
244
+ declared: boolean;
245
+ resolveFrom?: string | undefined;
246
+ }): Promise<(BootstrapStartGate & {
247
+ granted: number;
248
+ }) | undefined>;
249
+ /** The start gate's facts (shadow mode: shown and logged, never refused). */
250
+ gate(review: BootstrapReview): Promise<BootstrapStartGate>;
251
+ }