@cat-factory/server 0.314.0 → 0.314.2

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.
@@ -1,8 +1,8 @@
1
- import type { AgentContextRecorder, BootstrapJobHandle, BootstrapJobRepository, BootstrapJobUpdate, BootstrapRepoOutcome, BootstrapRepoRequest, GitHubClient, MonorepoTargetRepo, GitHubInstallationRepository, GitHubRepo, GroupCacheHandle, ModelRef, RepoBootstrapper, RepoProjectionRepository } from '@cat-factory/kernel';
1
+ import type { AgentContextRecorder, BootstrapJobHandle, BootstrapJobRepository, BootstrapJobUpdate, BootstrapRepoOutcome, BootstrapRepoRequest, GitHubClient, MonorepoTargetRepo, ReferenceRepoAccess, GitHubInstallationRepository, GitHubRepo, GroupCacheHandle, ModelRef, RepoBootstrapper, RepoProjectionRepository, VcsProvider } from '@cat-factory/kernel';
2
2
  import type { ContainerSessionService } from '../containers/ContainerSessionService.js';
3
3
  import { type ToolTrajectoryDeps } from './toolTrajectory.js';
4
4
  import type { JobPackageRegistrySpec } from './ContainerAgentExecutor.js';
5
- import type { MintInstallationToken } from './repoTargeting.js';
5
+ import { type MintInstallationToken } from './repoTargeting.js';
6
6
  import { type ResolveRunnerTransport } from './RunnerJobClient.js';
7
7
  export interface ContainerRepoBootstrapperDependencies extends ToolTrajectoryDeps {
8
8
  /**
@@ -24,6 +24,18 @@ export interface ContainerRepoBootstrapperDependencies extends ToolTrajectoryDep
24
24
  repoProjectionCache?: GroupCacheHandle<GitHubRepo[]>;
25
25
  /** Resolves/validates the pre-created target repository (existence + emptiness). */
26
26
  githubClient: GitHubClient;
27
+ /**
28
+ * The provider {@link githubClient} speaks (`engineVcsProvider`), so a workspace whose
29
+ * connection is on ANOTHER one is refused rather than probed with the wrong client.
30
+ *
31
+ * Required rather than defaulted, for the reason `makeResolveRepoFilesForCoords` states it:
32
+ * a deployment serving a GitHub App beside per-workspace GitLab connections binds the App
33
+ * client here, and a GitLab workspace's installation id means nothing to it. Reading the
34
+ * template through it anyway answers 404, which this component would then report as "your
35
+ * reference architecture names the wrong repository" for an entry that is perfectly correct.
36
+ * A facade that forgets to state it must fail to typecheck rather than inherit a guess.
37
+ */
38
+ clientProvider: VcsProvider;
27
39
  /**
28
40
  * Mints a short-lived GitHub installation token for clone + push, scoped to the single repo
29
41
  * being bootstrapped. Bootstrap has no run initiator, so it names no `initiatedBy` and always
@@ -76,6 +88,43 @@ export declare class ContainerRepoBootstrapper implements RepoBootstrapper {
76
88
  constructor(deps: ContainerRepoBootstrapperDependencies);
77
89
  /** An active (non-soft-deleted) installation means the workspace is connected. */
78
90
  isWorkspaceConnected(workspaceId: string): Promise<boolean>;
91
+ /**
92
+ * Resolve the reference template through the workspace's INSTALLATION, which is the same reach
93
+ * the run's clone has.
94
+ *
95
+ * Deliberately NOT the workspace's repo projection (`resolveRepoFilesForCoords`), the way every
96
+ * other checkout-free read here is scoped. A reference architecture is an admin-managed entry
97
+ * naming `owner/name`, not a repository the board has linked, so the projection answers "no such
98
+ * repo" for a template the run then clones without trouble: the survey used to report the
99
+ * template as unsurveyed on every deployment whose template is not also a board service. What
100
+ * scopes this instead is the entry itself plus the installation's own grant, which is the pair
101
+ * that decides whether the clone works.
102
+ *
103
+ * A 404 is the provider's answer that this credential cannot see the repository, which on GitHub
104
+ * covers both "no such repo" and "the App was not granted it", and it is one verdict because
105
+ * they take the same fix. Any other failure is reported as UNREADABLE rather than as an absence,
106
+ * so an outage cannot be presented to an operator as a typo in their configuration.
107
+ *
108
+ * NEVER throws, which is a contract two callers depend on (the survey, whose whole phase is
109
+ * "park with what we know", and the pre-flight, which owes a 503). So the installation read sits
110
+ * INSIDE the try as well: on a mothership-mode node the repository read is an RPC to a process
111
+ * that can be a restart away, and a throw from there would arrive as a platform bug about
112
+ * somebody's own template.
113
+ */
114
+ resolveReferenceRepo(workspaceId: string, ref: {
115
+ owner: string;
116
+ name: string;
117
+ }): Promise<ReferenceRepoAccess>;
118
+ /**
119
+ * The one provider read behind every reference-template question: the pre-flight's verdict, the
120
+ * survey's reader and the dispatch's clone spec are all this, mapped three ways.
121
+ *
122
+ * Shared because the two callers used to ask it differently: one 404-aware and returning a
123
+ * verdict, the other collapsing every failure into one disposition. So the same rate limit was
124
+ * reported as the entry being wrong at one moment and as an outage at another. One probe, one
125
+ * set of causes, and each caller decides only what to DO about them.
126
+ */
127
+ private readTemplate;
79
128
  /**
80
129
  * Resolve a monorepo bootstrap target out of the WORKSPACE's own repo projection.
81
130
  *
@@ -160,17 +209,46 @@ export declare class ContainerRepoBootstrapper implements RepoBootstrapper {
160
209
  * Resolve the reference template a run reads from: its clone spec, plus the numeric id the
161
210
  * run's installation token has to be scoped to.
162
211
  *
163
- * ONE resolution for both dispatch shapes, because both CLONE the template and both mint the
212
+ * ONE resolution for every dispatch shape, because they all CLONE the template and all mint the
164
213
  * token that clone runs on. Two copies is what left the force-push path granting only its push
165
214
  * target while cloning the template with that same token, so a PRIVATE reference architecture
166
215
  * 404s on clone under one delivery and works under the other, and what left it assuming the
167
216
  * template's base branch was `main`.
168
217
  *
169
- * A template the installation cannot read resolves to no id and the conventional branch rather
170
- * than refusing the run: the clone then fails inside the harness naming the repository, which
171
- * is a better report than a pre-flight throw here, and the warning says which read failed.
218
+ * It THROWS on a template it cannot resolve, rather than dispatching with no id and the
219
+ * conventional branch: the container is about to clone it, so the run is over either way, and
220
+ * the difference is whether the report names the reference architecture and what to do about it
221
+ * or arrives as a git error from inside a container that had to be started first.
222
+ *
223
+ * The MESSAGE follows the cause the shared probe reported. "Point the reference architecture at
224
+ * a repository this workspace can reach" is the wrong instruction for a rate limit or a 500,
225
+ * and a monorepo apply dispatches days after a human settled its review, so the failure read
226
+ * here is as likely to be an outage as a typo. The provider error rides as `cause`, so a log
227
+ * describer walking the chain can still see which it was.
228
+ *
229
+ * Re-read rather than carried over from the run-start pre-flight, deliberately: this is the
230
+ * moment the clone happens, and on a monorepo run the pre-flight sits on the other side of a
231
+ * human review. An id plumbed through the request would be a claim about the repository as it
232
+ * was, dispatched against the repository as it is.
172
233
  */
173
234
  private resolveReferenceTemplate;
235
+ /**
236
+ * Mint the job's clone/push token, scoped to the repos this dispatch resolved.
237
+ *
238
+ * The scope goes through the SHARED `jobTokenRepoIds` rather than a hand-built array, for the
239
+ * case the hand-built one got wrong: a reference architecture naming the run's own target (or
240
+ * its monorepo) is one repository asked for twice, and a `repository_ids` list is a set.
241
+ *
242
+ * A refusal is re-thrown NAMING the template, because a scoped mint has one failure mode this
243
+ * component cannot pre-flight away. GitHub narrows a token only to repositories the
244
+ * installation was GRANTED, while a PUBLIC repository reads perfectly well through the API
245
+ * without being one, so a template outside the App's repository access resolves cleanly above
246
+ * and is refused here. There is no read on this port that separates the two cheaply and
247
+ * correctly on every provider (`getRepoById` answers from a bounded listing on the GitLab
248
+ * adapter, so a null there is not evidence of anything), and dropping the leg would only move
249
+ * the failure to the clone. What is left is to make the refusal say which repository to grant.
250
+ */
251
+ private mintDispatchToken;
174
252
  /**
175
253
  * The model-locked LLM-proxy session token a bootstrap container runs under.
176
254
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ContainerRepoBootstrapper.d.ts","sourceRoot":"","sources":["../../src/agents/ContainerRepoBootstrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAGpB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EAEZ,kBAAkB,EAClB,4BAA4B,EAC5B,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAEhB,wBAAwB,EACzB,MAAM,qBAAqB,CAAA;AAI5B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAA;AAEvF,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAA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;YACW,sBAAsB;IAqDpC;;;;;;;;OAQG;YACW,mBAAmB;IAuGjC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;YACW,wBAAwB;IAqCtC;;;;;;;;;;;;;;;OAeG;YACW,iBAAiB;IA6B/B;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAUxB,+EAA+E;IAC/E,OAAO,CAAC,OAAO;IAIf,mFAAmF;IAC7E,aAAa,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAgE3E;IAED;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAWjB;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAIrB;;;;;;;OAOG;YACW,qBAAqB;IAenC;;;;;;OAMG;IACG,aAAa,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ7D;IAED;;;;;OAKG;IACG,uBAAuB,CAC3B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAoBvD;IAED;;;;;;;;;;;OAWG;YACW,YAAY;IA8B1B,+DAA+D;YACjD,aAAa;CAK5B"}
@@ -1,8 +1,10 @@
1
- import { failureKindFromHarnessCause, runBestEffort } from '@cat-factory/kernel';
1
+ import { failureKindFromHarnessCause, getErrorMessage, runBestEffort, VcsApiError, } from '@cat-factory/kernel';
2
2
  import { isProxyableProvider } from '@cat-factory/agents';
3
3
  import { bootstrapStepIds, REPO_BOOTSTRAP_AGENT_KIND } from '@cat-factory/contracts';
4
4
  import { recordBootstrapContextSnapshot } from './agentContextRecord.js';
5
5
  import { drainToolCalls } from './toolTrajectory.js';
6
+ import { makeRepoFiles } from './repoFiles.js';
7
+ import { jobTokenRepoIds } from './repoTargeting.js';
6
8
  import { RunnerJobClient } from './RunnerJobClient.js';
7
9
  import { logger } from '../observability/logger.js';
8
10
  /** The role prompt when adapting a cloned reference architecture. */
@@ -130,6 +132,87 @@ export class ContainerRepoBootstrapper {
130
132
  const installation = await this.deps.installationRepository.getByWorkspace(workspaceId);
131
133
  return !!installation && !installation.deletedAt;
132
134
  }
135
+ /**
136
+ * Resolve the reference template through the workspace's INSTALLATION, which is the same reach
137
+ * the run's clone has.
138
+ *
139
+ * Deliberately NOT the workspace's repo projection (`resolveRepoFilesForCoords`), the way every
140
+ * other checkout-free read here is scoped. A reference architecture is an admin-managed entry
141
+ * naming `owner/name`, not a repository the board has linked, so the projection answers "no such
142
+ * repo" for a template the run then clones without trouble: the survey used to report the
143
+ * template as unsurveyed on every deployment whose template is not also a board service. What
144
+ * scopes this instead is the entry itself plus the installation's own grant, which is the pair
145
+ * that decides whether the clone works.
146
+ *
147
+ * A 404 is the provider's answer that this credential cannot see the repository, which on GitHub
148
+ * covers both "no such repo" and "the App was not granted it", and it is one verdict because
149
+ * they take the same fix. Any other failure is reported as UNREADABLE rather than as an absence,
150
+ * so an outage cannot be presented to an operator as a typo in their configuration.
151
+ *
152
+ * NEVER throws, which is a contract two callers depend on (the survey, whose whole phase is
153
+ * "park with what we know", and the pre-flight, which owes a 503). So the installation read sits
154
+ * INSIDE the try as well: on a mothership-mode node the repository read is an RPC to a process
155
+ * that can be a restart away, and a throw from there would arrive as a platform bug about
156
+ * somebody's own template.
157
+ */
158
+ async resolveReferenceRepo(workspaceId, ref) {
159
+ let installation;
160
+ try {
161
+ installation = await this.deps.installationRepository.getByWorkspace(workspaceId);
162
+ }
163
+ catch (error) {
164
+ // A connection we cannot READ is not a connection we know to be absent: `not_connected`
165
+ // would tell the operator to install an App that may well already be installed.
166
+ return { status: 'unreadable', detail: getErrorMessage(error) };
167
+ }
168
+ if (!installation || installation.deletedAt)
169
+ return { status: 'not_connected' };
170
+ // The row's own provider, falling back to this client's for a row predating the column. A
171
+ // connection on another provider is not reachable from here whatever it holds, and reporting
172
+ // that as `not_found` is the misattribution the verdict split exists to prevent.
173
+ if ((installation.provider ?? this.deps.clientProvider) !== this.deps.clientProvider) {
174
+ return { status: 'not_connected' };
175
+ }
176
+ const read = await this.readTemplate(installation.installationId, ref);
177
+ if (read.status === 'not_found')
178
+ return { status: 'not_found' };
179
+ // Mapped field by field rather than passed through: the verdict crosses a port and becomes an
180
+ // HTTP `details.detail`, and the thrown value the probe kept for its own `cause` chain has no
181
+ // business on a wire shape.
182
+ if (read.status === 'unreadable')
183
+ return { status: 'unreadable', detail: read.detail };
184
+ return {
185
+ status: 'reachable',
186
+ files: makeRepoFiles(this.deps.githubClient, installation.installationId, {
187
+ owner: ref.owner,
188
+ repo: ref.name,
189
+ }),
190
+ defaultBranch: defaultBranchOf(read.repo),
191
+ };
192
+ }
193
+ /**
194
+ * The one provider read behind every reference-template question: the pre-flight's verdict, the
195
+ * survey's reader and the dispatch's clone spec are all this, mapped three ways.
196
+ *
197
+ * Shared because the two callers used to ask it differently: one 404-aware and returning a
198
+ * verdict, the other collapsing every failure into one disposition. So the same rate limit was
199
+ * reported as the entry being wrong at one moment and as an outage at another. One probe, one
200
+ * set of causes, and each caller decides only what to DO about them.
201
+ */
202
+ async readTemplate(installationId, ref) {
203
+ try {
204
+ const repo = await this.deps.githubClient.getRepo(installationId, {
205
+ owner: ref.owner,
206
+ repo: ref.name,
207
+ });
208
+ return { status: 'reachable', repo };
209
+ }
210
+ catch (error) {
211
+ if (error instanceof VcsApiError && error.status === 404)
212
+ return { status: 'not_found' };
213
+ return { status: 'unreadable', detail: getErrorMessage(error), cause: error };
214
+ }
215
+ }
133
216
  /**
134
217
  * Resolve a monorepo bootstrap target out of the WORKSPACE's own repo projection.
135
218
  *
@@ -193,23 +276,19 @@ export class ContainerRepoBootstrapper {
193
276
  // With a reference architecture the container clones + adapts it; without one
194
277
  // it scaffolds an empty repo from the freeform instructions alone.
195
278
  const reference = await this.resolveReferenceTemplate(request, installation.installationId, log);
279
+ const webBase = this.webBase();
280
+ const targetCloneUrl = `${webBase}/${owner}/${repoName}.git`;
281
+ const defaultBranch = defaultBranchOf(target);
196
282
  // Scoped to the repos this run touches: the target it force-pushes, and the template it
197
283
  // CLONES. The template belongs on the scope even though nothing pushes to it, because the
198
284
  // clone runs on this same token: leaving it off works only for a public reference
199
285
  // architecture and 404s on a private one, with nothing in the failure naming the cause.
200
286
  // `target` came from the pre-flight `getRepo` above, which is why it costs no extra read.
201
- const ghToken = await this.deps.mintInstallationToken(installation.installationId, {
202
- executionId: request.jobId,
203
- workspaceId: request.workspaceId,
204
- repoIds: [String(target.githubId), ...(reference?.githubId ? [reference.githubId] : [])],
205
- });
287
+ const ghToken = await this.mintDispatchToken(request, installation.installationId, { owner, name: repoName, repoId: String(target.githubId), baseBranch: defaultBranch }, reference);
206
288
  // Private-registry auth for the scaffolder's installs, exactly as the
207
289
  // implementation executor forwards it.
208
290
  const packageRegistries = (await this.deps.resolvePackageRegistries?.(request.workspaceId)) ?? [];
209
291
  const sessionToken = await this.mintSessionToken(request);
210
- const webBase = this.webBase();
211
- const targetCloneUrl = `${webBase}/${owner}/${repoName}.git`;
212
- const defaultBranch = defaultBranchOf(target);
213
292
  const targetSpec = { owner, name: repoName, cloneUrl: targetCloneUrl, defaultBranch };
214
293
  // The generic agent `repo` is the clone source: the reference when adapting one, or the
215
294
  // (uncloned) target placeholder when scaffolding from scratch. The real push destination
@@ -447,14 +526,10 @@ export class ContainerRepoBootstrapper {
447
526
  * carrying a branch but no PR pushes work onto a branch nobody is told about.
448
527
  */
449
528
  async dispatchCodingShape(request, installation, log, spec) {
450
- // Scoped to the repos this run touches: the one it pushes to, and the template it reads. A
451
- // template outside the installation simply is not cloneable, which the harness reports as a
452
- // clone failure rather than silently running without it.
529
+ // Re-flighted here for the same reason the monorepo's target directory is: an apply dispatch
530
+ // can be days after the review, and a template that has since moved out of reach is a clone
531
+ // this run is about to fail.
453
532
  const reference = await this.resolveReferenceTemplate(request, installation.installationId, log);
454
- const repoIds = [
455
- String(spec.repoGithubId),
456
- ...(reference?.githubId ? [reference.githubId] : []),
457
- ];
458
533
  const referenceRepos = reference
459
534
  ? [
460
535
  {
@@ -467,11 +542,13 @@ export class ContainerRepoBootstrapper {
467
542
  },
468
543
  ]
469
544
  : [];
470
- const ghToken = await this.deps.mintInstallationToken(installation.installationId, {
471
- executionId: request.jobId,
472
- workspaceId: request.workspaceId,
473
- repoIds,
474
- });
545
+ // Scoped to the repos this run touches: the one it pushes to, and the template it reads.
546
+ const ghToken = await this.mintDispatchToken(request, installation.installationId, {
547
+ owner: spec.repo.owner,
548
+ name: spec.repo.name,
549
+ repoId: String(spec.repoGithubId),
550
+ baseBranch: spec.repo.baseBranch,
551
+ }, reference);
475
552
  const packageRegistries = (await this.deps.resolvePackageRegistries?.(request.workspaceId)) ?? [];
476
553
  const sessionToken = await this.mintSessionToken(request);
477
554
  // The delivery decides the two fields TOGETHER: with `newBranch` and `pr` the harness pushes
@@ -520,31 +597,93 @@ export class ContainerRepoBootstrapper {
520
597
  * Resolve the reference template a run reads from: its clone spec, plus the numeric id the
521
598
  * run's installation token has to be scoped to.
522
599
  *
523
- * ONE resolution for both dispatch shapes, because both CLONE the template and both mint the
600
+ * ONE resolution for every dispatch shape, because they all CLONE the template and all mint the
524
601
  * token that clone runs on. Two copies is what left the force-push path granting only its push
525
602
  * target while cloning the template with that same token, so a PRIVATE reference architecture
526
603
  * 404s on clone under one delivery and works under the other, and what left it assuming the
527
604
  * template's base branch was `main`.
528
605
  *
529
- * A template the installation cannot read resolves to no id and the conventional branch rather
530
- * than refusing the run: the clone then fails inside the harness naming the repository, which
531
- * is a better report than a pre-flight throw here, and the warning says which read failed.
606
+ * It THROWS on a template it cannot resolve, rather than dispatching with no id and the
607
+ * conventional branch: the container is about to clone it, so the run is over either way, and
608
+ * the difference is whether the report names the reference architecture and what to do about it
609
+ * or arrives as a git error from inside a container that had to be started first.
610
+ *
611
+ * The MESSAGE follows the cause the shared probe reported. "Point the reference architecture at
612
+ * a repository this workspace can reach" is the wrong instruction for a rate limit or a 500,
613
+ * and a monorepo apply dispatches days after a human settled its review, so the failure read
614
+ * here is as likely to be an outage as a typo. The provider error rides as `cause`, so a log
615
+ * describer walking the chain can still see which it was.
616
+ *
617
+ * Re-read rather than carried over from the run-start pre-flight, deliberately: this is the
618
+ * moment the clone happens, and on a monorepo run the pre-flight sits on the other side of a
619
+ * human review. An id plumbed through the request would be a claim about the repository as it
620
+ * was, dispatched against the repository as it is.
532
621
  */
533
622
  async resolveReferenceTemplate(request, installationId, log) {
534
623
  const reference = request.referenceRepo;
535
624
  if (!reference)
536
625
  return undefined;
537
- const template = await runBestEffort(log, 'bootstrap: read reference template repo', () => this.deps.githubClient.getRepo(installationId, {
538
- owner: reference.owner,
539
- repo: reference.name,
540
- }), { reference: `${reference.owner}/${reference.name}` });
541
- return {
542
- owner: reference.owner,
543
- name: reference.name,
544
- cloneUrl: `${this.webBase()}/${reference.owner}/${reference.name}.git`,
545
- baseBranch: template ? defaultBranchOf(template) : 'main',
546
- githubId: template ? String(template.githubId) : null,
547
- };
626
+ const repo = `${reference.owner}/${reference.name}`;
627
+ const read = await this.readTemplate(installationId, reference);
628
+ if (read.status === 'reachable') {
629
+ return {
630
+ owner: reference.owner,
631
+ name: reference.name,
632
+ repoId: String(read.repo.githubId),
633
+ baseBranch: defaultBranchOf(read.repo),
634
+ cloneUrl: `${this.webBase()}/${reference.owner}/${reference.name}.git`,
635
+ };
636
+ }
637
+ log.warn('bootstrap: reference template could not be resolved', {
638
+ reference: repo,
639
+ verdict: read.status,
640
+ });
641
+ if (read.status === 'not_found') {
642
+ throw new Error(`The reference template ${repo} cannot be seen through this workspace's source-control ` +
643
+ `connection, so it cannot be cloned. Point the reference architecture at a repository ` +
644
+ `this workspace can reach, or grant the App access to it, then retry.`);
645
+ }
646
+ throw new Error(`The reference template ${repo} could not be read just now, so this run was not dispatched ` +
647
+ `rather than dispatched against a template it may be unable to clone. Nothing here is ` +
648
+ `misconfigured: retry once the source-control connection recovers. Cause: ${read.detail}`, { cause: read.cause });
649
+ }
650
+ /**
651
+ * Mint the job's clone/push token, scoped to the repos this dispatch resolved.
652
+ *
653
+ * The scope goes through the SHARED `jobTokenRepoIds` rather than a hand-built array, for the
654
+ * case the hand-built one got wrong: a reference architecture naming the run's own target (or
655
+ * its monorepo) is one repository asked for twice, and a `repository_ids` list is a set.
656
+ *
657
+ * A refusal is re-thrown NAMING the template, because a scoped mint has one failure mode this
658
+ * component cannot pre-flight away. GitHub narrows a token only to repositories the
659
+ * installation was GRANTED, while a PUBLIC repository reads perfectly well through the API
660
+ * without being one, so a template outside the App's repository access resolves cleanly above
661
+ * and is refused here. There is no read on this port that separates the two cheaply and
662
+ * correctly on every provider (`getRepoById` answers from a bounded listing on the GitLab
663
+ * adapter, so a null there is not evidence of anything), and dropping the leg would only move
664
+ * the failure to the clone. What is left is to make the refusal say which repository to grant.
665
+ */
666
+ async mintDispatchToken(request, installationId, primary, template) {
667
+ const asTarget = (leg) => ({ installationId, ...leg });
668
+ try {
669
+ return await this.deps.mintInstallationToken(installationId, {
670
+ // The RUN, not this phase's drive id: see the session mint below.
671
+ executionId: request.jobId,
672
+ workspaceId: request.workspaceId,
673
+ repoIds: jobTokenRepoIds(asTarget(primary), template ? [asTarget(template)] : []),
674
+ });
675
+ }
676
+ catch (error) {
677
+ if (!template)
678
+ throw error;
679
+ throw new Error(`The source-control token for this run could not be issued for both ` +
680
+ `${primary.owner}/${primary.name} and the reference template ` +
681
+ `${template.owner}/${template.name}. A GitHub App token can only cover repositories ` +
682
+ `the installation has been GRANTED, and a public repository reads through the API ` +
683
+ `without being one. Grant the App access to ${template.owner}/${template.name}, or ` +
684
+ `point the reference architecture at a repository it already covers, then retry. ` +
685
+ `Cause: ${getErrorMessage(error)}`, { cause: error });
686
+ }
548
687
  }
549
688
  /**
550
689
  * The model-locked LLM-proxy session token a bootstrap container runs under.
@@ -1 +1 @@
1
- {"version":3,"file":"ContainerRepoBootstrapper.js","sourceRoot":"","sources":["../../src/agents/ContainerRepoBootstrapper.ts"],"names":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