@defrex/autobuild 1.14.0 → 1.16.0
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.
- package/README.md +1 -1
- package/SPEC.md +44 -5
- package/docs/architecture.md +43 -6
- package/docs/configuration.md +8 -3
- package/docs/dispatcher-hosting.md +13 -0
- package/docs/remote-store-protocol.md +1 -1
- package/docs/troubleshooting.md +33 -3
- package/docs/workspaces.md +2 -1
- package/package.json +3 -3
- package/packages/core/src/cli/dispatch.ts +171 -5
- package/packages/core/src/cli/repository-status.ts +15 -0
- package/packages/core/src/events/policy.ts +1 -0
- package/packages/core/src/events/repository.ts +95 -6
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/23d33121de6d3325.json +107 -0
- package/packages/core/src/kernel/__snapshots__/reducer-identity-records/e28c68e63cbd265f.json +108 -0
- package/packages/core/src/kernel/reducer-revisions.ts +3 -0
- package/packages/core/src/kernel/repository-read-facts.ts +9 -0
- package/packages/core/src/ports/types.ts +10 -4
- package/packages/core/src/ports/workspace/vercel-sandbox.ts +281 -75
- package/packages/core/src/processes/dispatcher.ts +1142 -265
- package/packages/core/src/processes/invocation-budget.ts +6 -0
- package/packages/core/src/processes/launch-cut.ts +37 -0
- package/packages/core/src/processes/pass-stages.ts +294 -0
- package/packages/core/src/store/reducer-value-shapes.json +5285 -5003
- package/packages/core/src/store/remote/released-clients.json +22 -0
- package/packages/core/src/store/remote/released-reducer-values/1.15.0.json +36354 -0
- package/packages/core/src/store/remote/released-reducer-values/1.16.0.json +36358 -0
- package/packages/core/src/store/remote/released-reducer-values/index.ts +20 -16
- package/packages/core/src/store/remote/released-value-policy.ts +7 -0
- package/packages/core/src/store/repo-state-events.ts +1 -0
- package/packages/core/src/testing/reduced-read-budget.ts +285 -8
- package/skills/guide/SKILL.md +25 -3
- package/skills/guide/references/remote-store-protocol.md +1 -1
- package/skills/operate/SKILL.md +16 -4
- package/templates/hosted-service/package.json +2 -2
|
@@ -329,6 +329,7 @@ export const repositoryEventPolicy = {
|
|
|
329
329
|
'dispatcher.tick-completed': 'advisory',
|
|
330
330
|
'dispatcher.ticket-scan-completed': 'advisory',
|
|
331
331
|
'dispatcher.work-deferred': 'advisory',
|
|
332
|
+
'dispatcher.pass-cursors': 'advisory',
|
|
332
333
|
'dispatcher.ticket-source-dependency-limited': 'decisive',
|
|
333
334
|
'dispatcher.forge-degraded': 'decisive',
|
|
334
335
|
'dispatcher.forge-recovered': 'decisive',
|
|
@@ -53,8 +53,74 @@ const dispatcherSetting = z.strictObject({ enabled: z.boolean(), run: dispatchRu
|
|
|
53
53
|
const boundedDiagnostics = z.array(z.string().min(1)).max(1_000)
|
|
54
54
|
export { forgeRequestCountsSchema } from '../ports/forge-telemetry'
|
|
55
55
|
import { forgeRequestCountsSchema } from '../ports/forge-telemetry'
|
|
56
|
+
/** The stages of one bounded dispatcher pass, in run order (#1409). */
|
|
57
|
+
export const PASS_STAGE_NAMES = [
|
|
58
|
+
'deferred',
|
|
59
|
+
'settlement',
|
|
60
|
+
'preparations',
|
|
61
|
+
'janitor',
|
|
62
|
+
'recovery',
|
|
63
|
+
'sweep',
|
|
64
|
+
'admission',
|
|
65
|
+
'intake',
|
|
66
|
+
] as const
|
|
67
|
+
/** The per-item loops and single-call helpers a pass stage groups. */
|
|
68
|
+
export const PASS_STAGE_PART_NAMES = [
|
|
69
|
+
'deferred',
|
|
70
|
+
'executions',
|
|
71
|
+
'harvest',
|
|
72
|
+
'sandboxes',
|
|
73
|
+
'preparations',
|
|
74
|
+
'janitor',
|
|
75
|
+
'handbacks',
|
|
76
|
+
'dispatches',
|
|
77
|
+
'resume',
|
|
78
|
+
'waits',
|
|
79
|
+
'sweep',
|
|
80
|
+
'nodes',
|
|
81
|
+
'starts',
|
|
82
|
+
'tickets',
|
|
83
|
+
'parked',
|
|
84
|
+
'harvest-trigger',
|
|
85
|
+
'context',
|
|
86
|
+
] as const
|
|
87
|
+
/** The loops that continue from a saved position on the next bounded pass:
|
|
88
|
+
* handling one of their items does not remove it. */
|
|
89
|
+
export const ROTATED_PASS_PARTS = [
|
|
90
|
+
'executions',
|
|
91
|
+
'harvest',
|
|
92
|
+
'sandboxes',
|
|
93
|
+
'janitor',
|
|
94
|
+
'handbacks',
|
|
95
|
+
'dispatches',
|
|
96
|
+
'resume',
|
|
97
|
+
'sweep',
|
|
98
|
+
] as const
|
|
99
|
+
const passCount = z.number().int().nonnegative()
|
|
100
|
+
const passStopSchema = z.enum(['share', 'deadline'])
|
|
101
|
+
const passStageRecordSchema = z.strictObject({
|
|
102
|
+
stage: z.enum(PASS_STAGE_NAMES),
|
|
103
|
+
ms: passCount,
|
|
104
|
+
items: passCount,
|
|
105
|
+
total: passCount.optional(),
|
|
106
|
+
stopped: passStopSchema.optional(),
|
|
107
|
+
parts: z
|
|
108
|
+
.array(
|
|
109
|
+
z.strictObject({
|
|
110
|
+
part: z.enum(PASS_STAGE_PART_NAMES),
|
|
111
|
+
items: passCount,
|
|
112
|
+
total: passCount.optional(),
|
|
113
|
+
stopped: passStopSchema.optional(),
|
|
114
|
+
}),
|
|
115
|
+
)
|
|
116
|
+
.max(8)
|
|
117
|
+
.optional(),
|
|
118
|
+
})
|
|
56
119
|
const tickCountersSchema = z.strictObject({
|
|
57
120
|
forgeRequests: forgeRequestCountsSchema.optional(),
|
|
121
|
+
/** Per-stage time and items of a bounded pass (#1409); display only.
|
|
122
|
+
* Optional so historical tick facts replay. */
|
|
123
|
+
stages: z.array(passStageRecordSchema).max(16).optional(),
|
|
58
124
|
merged: z.number().int().nonnegative(),
|
|
59
125
|
closed: z.number().int().nonnegative(),
|
|
60
126
|
conflicted: z.number().int().nonnegative(),
|
|
@@ -86,7 +152,9 @@ const tickCountersSchema = z.strictObject({
|
|
|
86
152
|
* provisioning estimate. Optional so historical tick facts replay. */
|
|
87
153
|
provisioningDeferred: z.number().int().nonnegative().optional(),
|
|
88
154
|
/** Builds whose stopped-sandbox recovery (or a launch waiting on one) the
|
|
89
|
-
* invocation budget deferred
|
|
155
|
+
* invocation budget deferred, or whose launch the work deadline cut after
|
|
156
|
+
* its execution lease was claimed. Optional so historical tick facts
|
|
157
|
+
* replay. */
|
|
90
158
|
recoveryDeferred: z.number().int().nonnegative().optional(),
|
|
91
159
|
/** Operator sandboxes idly stopped this tick. Added with the operator
|
|
92
160
|
* sandbox; optional so historical tick facts replay. */
|
|
@@ -504,20 +572,40 @@ export const orchestratorSandboxEventPayloadSchemas = {
|
|
|
504
572
|
|
|
505
573
|
export const dispatcherStatusEventPayloadSchemas = {
|
|
506
574
|
/** A latest-only scheduling hint: the builds whose deadline-gated work
|
|
507
|
-
* (a provision or a stopped-sandbox
|
|
508
|
-
* deferred for budget. The next tick
|
|
509
|
-
* every decision from fresh build
|
|
510
|
-
* list clears it.
|
|
575
|
+
* (a provision, a runner launch the work deadline cut, or a stopped-sandbox
|
|
576
|
+
* recovery step) a bounded invocation deferred for budget. The next tick
|
|
577
|
+
* serves these builds first, re-deriving every decision from fresh build
|
|
578
|
+
* state; it is never authority. An empty list clears it. `instance` names a
|
|
579
|
+
* deadline-cut execution whose exact-holder lease teardown could not
|
|
580
|
+
* settle: the next tick fences it first (step `fence`) or only releases it
|
|
581
|
+
* (step `launch`), and only while that instance still holds the lease. */
|
|
511
582
|
'dispatcher.work-deferred': z.strictObject({
|
|
512
583
|
builds: z
|
|
513
584
|
.array(
|
|
514
585
|
z.strictObject({
|
|
515
586
|
slug: z.string().min(1),
|
|
516
|
-
step: z.enum(['provision', 'resume', 'fence', 'preserve', 'cleanup']),
|
|
587
|
+
step: z.enum(['provision', 'launch', 'resume', 'fence', 'preserve', 'cleanup']),
|
|
588
|
+
instance: z.string().min(1).optional(),
|
|
517
589
|
}),
|
|
518
590
|
)
|
|
519
591
|
.max(64),
|
|
520
592
|
}),
|
|
593
|
+
/** A latest-only scheduling hint: where each rotated loop of a bounded
|
|
594
|
+
* pass continues on the next pass, the key of the last item it started.
|
|
595
|
+
* Never authority; every visit re-derives its decision from fresh state.
|
|
596
|
+
* An empty `cursors` object clears every position. */
|
|
597
|
+
'dispatcher.pass-cursors': z.strictObject({
|
|
598
|
+
cursors: z.strictObject({
|
|
599
|
+
executions: z.string().min(1).optional(),
|
|
600
|
+
harvest: z.string().min(1).optional(),
|
|
601
|
+
sandboxes: z.string().min(1).optional(),
|
|
602
|
+
janitor: z.string().min(1).optional(),
|
|
603
|
+
handbacks: z.string().min(1).optional(),
|
|
604
|
+
dispatches: z.string().min(1).optional(),
|
|
605
|
+
resume: z.string().min(1).optional(),
|
|
606
|
+
sweep: z.string().min(1).optional(),
|
|
607
|
+
}),
|
|
608
|
+
}),
|
|
521
609
|
/** Completed ticket-source measurement, independent of dispatcher runs. */
|
|
522
610
|
'dispatcher.ticket-scan-completed': z.strictObject({
|
|
523
611
|
startedAt: z.iso.datetime(),
|
|
@@ -1266,6 +1354,7 @@ const allowedActorKinds: Record<RepositoryEventType, readonly ActorKind[]> = {
|
|
|
1266
1354
|
'dispatcher.tick-completed': ['dispatcher'],
|
|
1267
1355
|
'dispatcher.ticket-scan-completed': ['dispatcher'],
|
|
1268
1356
|
'dispatcher.work-deferred': ['dispatcher'],
|
|
1357
|
+
'dispatcher.pass-cursors': ['dispatcher'],
|
|
1269
1358
|
'dispatcher.ticket-source-dependency-limited': ['dispatcher'],
|
|
1270
1359
|
'dispatcher.forge-degraded': ['dispatcher', 'kernel'],
|
|
1271
1360
|
'dispatcher.forge-recovered': ['dispatcher', 'kernel', 'human'],
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"records": [
|
|
3
|
+
{
|
|
4
|
+
"name": "repositoryReadFacts",
|
|
5
|
+
"identity": "repositoryReadFacts",
|
|
6
|
+
"revisions": [
|
|
7
|
+
"repositoryAttention/fold/u6bhzf2af0",
|
|
8
|
+
"repositoryReadFacts/fold/0xl1c98cpy",
|
|
9
|
+
"repositoryReadFacts/fold/4gnmhbji3n",
|
|
10
|
+
"repositoryReadFacts/fold/5porrk9y1h",
|
|
11
|
+
"repositoryReadFacts/fold/fk3ka9gb3z",
|
|
12
|
+
"repositoryReadFacts/fold/vvcfmd23zp",
|
|
13
|
+
"repositoryReadFacts/shape/5yo149tiqz",
|
|
14
|
+
"repositoryReadFacts/shape/7hbgb52kw8",
|
|
15
|
+
"repositoryReadFacts/shape/e2u2pgiup3",
|
|
16
|
+
"repositoryReadFacts/shape/ez3eddcdoo",
|
|
17
|
+
"repositoryReadFacts/shape/hgw4spz5c0",
|
|
18
|
+
"repositoryReadFacts/shape/mggr8x6l5z",
|
|
19
|
+
"repositoryReadFacts/shape/o7791nz2gt",
|
|
20
|
+
"repositoryReadFacts/shape/se5kk44boc",
|
|
21
|
+
"repositoryReadFacts/shape/xyn7875cxw",
|
|
22
|
+
"sandboxStates/fold/hjdgop7xoh",
|
|
23
|
+
"sandboxStates/shape/gbrf8k4qxq",
|
|
24
|
+
"ticketStarts/fold/8fp156vze2",
|
|
25
|
+
"ticketStarts/fold/eglrhnb0ta",
|
|
26
|
+
"ticketStarts/shape/dzxrbuuq7e",
|
|
27
|
+
"ticketStarts/shape/eecofz22vy"
|
|
28
|
+
],
|
|
29
|
+
"entries": {
|
|
30
|
+
"017d8dd5bb6dd80b": "9b19c8eb254d503fbe74d8de7039566f",
|
|
31
|
+
"10a4657408d4e121": "218f9c92364c4b9176b70c9bee8a29f8",
|
|
32
|
+
"1411d1cdbdd9911e": "a5b60fa55d3c1d3999e4ee947878bd23",
|
|
33
|
+
"1444fe1fa7fc802c": "81c89822174d63012aa06ad744fae9e6",
|
|
34
|
+
"178e12f1759b7552": "61197c43eb41d8451ce5182402f23373",
|
|
35
|
+
"1921f86f752428c9": "abf8d370c9d94b6a50ab70d52d33454b",
|
|
36
|
+
"1972c1d66008ef6b": "56c634f6d1a0076256c385b2a9feab7c",
|
|
37
|
+
"19e8e43e7f3f1a06": "b18b2ccd2d11b39684f2fc991526b0d6",
|
|
38
|
+
"21ce2c0bf58318e1": "8eedb8f516b89cb65230c9cedb1bd903",
|
|
39
|
+
"293dcb3a94fb3470": "203e641af713b42a0e5369f9486f2301",
|
|
40
|
+
"2ab7436356267118": "fc4031327a07006ccdc946bf07aba04f",
|
|
41
|
+
"2d084641735caaff": "1061299214f493d5d51f9c11afae68ab",
|
|
42
|
+
"3237bcecf68e5db9": "79f6d09249036fd77dc5d3400e18124a",
|
|
43
|
+
"33d0cc593610e56f": "bd88ed40c1ada79d8657af1b339a6a9f",
|
|
44
|
+
"35cf9ccc4478b2d2": "5a2279bc99403d0f7d40cede4c8bb573",
|
|
45
|
+
"3649e7bd1203f154": "9d3742c0e29c7a3e999c9c9a8c6eac27",
|
|
46
|
+
"38c75099d9191471": "203e641af713b42a0e5369f9486f2301",
|
|
47
|
+
"431c9bb2ee8838e0": "0715d441ad523323105867bf09108797",
|
|
48
|
+
"49064fc079964a5c": "844ca8b44174ab640ce17a713b580d7d",
|
|
49
|
+
"4932c70a2af97faf": "0c732c6ead43fcb8d5f34159ac5e0e0b",
|
|
50
|
+
"4f00c0f2c8afd159": "9688f560966f37d57b4177bf5aa4b7f0",
|
|
51
|
+
"516a5a7aadf97587": "e63f56f546ed51d4e04df1e86c9fc476",
|
|
52
|
+
"536085773daf6b58": "57901f1d28ee614272cc8915a80e38ff",
|
|
53
|
+
"59ffaa6974094c72": "d1757ea5344f9164aca22e3ca6ca165a",
|
|
54
|
+
"5f0ca42af862c4ee": "840d8a2c1947ef0941e1ab8bf3afd42e",
|
|
55
|
+
"6118031132db9bfc": "8c44d3ef5b8a0241b5c712f994d56907",
|
|
56
|
+
"643d70429ce03dad": "c2b7bfc98da1427b6a3858d814d3f57b",
|
|
57
|
+
"677ea92572c29082": "4067b95ee98f33bc298d71c7489fabba",
|
|
58
|
+
"6ae5bf60504d6467": "58975765e668c4f361659977261d56ed",
|
|
59
|
+
"6bd6275061aaffa5": "c84c2528779e3ecc21e549e0ef2adedd",
|
|
60
|
+
"6efdc8defc75fccb": "d5b512d4f4c16b9d4bcadbee8f8206ad",
|
|
61
|
+
"7833e42d16301424": "b32c86839cd9044a4d7757d51b62db14",
|
|
62
|
+
"7d4edad0614adaf1": "54a48a0b441082d54a07d786c217153e",
|
|
63
|
+
"837365898d04f45a": "54a48a0b441082d54a07d786c217153e",
|
|
64
|
+
"85f9f0c921b8b5bb": "0926918433e11ebd637e34dae2a2d615",
|
|
65
|
+
"8879f57a24733897": "58975765e668c4f361659977261d56ed",
|
|
66
|
+
"88cb9e71bdec972d": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
67
|
+
"89625654b02e9ac1": "bac4fc52c015d8cb7b9f833dda540b85",
|
|
68
|
+
"8cc15eb1807c0157": "10c221f0b9db3782b1dca2ed6eb1f5c9",
|
|
69
|
+
"8ced97c44bc0af3a": "d998291081ba51e1bef3205aae7595ef",
|
|
70
|
+
"8d4144004720b9f8": "ef6389a96f072b54e91a0e0f19c827b8",
|
|
71
|
+
"8db633ead1807f8b": "c4fe43ef3276b5877db1b08a38d607cb",
|
|
72
|
+
"8e42cdbd0994ab0c": "e12aa5b2f6373eceb51f303a929e8d5a",
|
|
73
|
+
"9539b995af5c54a9": "1061299214f493d5d51f9c11afae68ab",
|
|
74
|
+
"9ee3919fbd4f9458": "a553618f38080bfcb814cb4a5416cfb1",
|
|
75
|
+
"a0b32c12e4e6edb6": "d323237478cd65b159eda1faab172bcf",
|
|
76
|
+
"a55218252707bdd3": "54a48a0b441082d54a07d786c217153e",
|
|
77
|
+
"a98af134be2da8a9": "9a0830cc47de7a66b3c2f1a85a7eb852",
|
|
78
|
+
"af953392d81911da": "58975765e668c4f361659977261d56ed",
|
|
79
|
+
"b0d877c44810ecb0": "64a155224f6c8526212f92f64e7ef575",
|
|
80
|
+
"be211f0e31a65006": "64a155224f6c8526212f92f64e7ef575",
|
|
81
|
+
"c68b7ee2e2610f30": "05034ebd16ae9bf93b398663b30aea92",
|
|
82
|
+
"c7f7e0378aeea237": "1061299214f493d5d51f9c11afae68ab",
|
|
83
|
+
"c98cb1659eb142b6": "64a155224f6c8526212f92f64e7ef575",
|
|
84
|
+
"ca830adf06ed55a1": "54a48a0b441082d54a07d786c217153e",
|
|
85
|
+
"cb3a219f33e437ca": "feab7b027da5be2ecf041dd93fb55f1d",
|
|
86
|
+
"cf1e0c0d82567e0c": "cac9aba9f25adeb55568e902396839a4",
|
|
87
|
+
"d1432a819d8e48c5": "203e641af713b42a0e5369f9486f2301",
|
|
88
|
+
"d185ed6aa9192aff": "235467b1c87a46b383a7fa8550d8a2f8",
|
|
89
|
+
"d5d5ccca80a893d8": "0fdfd82c7426fd151bbb7544cd415187",
|
|
90
|
+
"d873fad29d6c7e55": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
91
|
+
"e2f18fa32fe1f6d0": "e5878dff98f5f30c5f82c1656fa82737",
|
|
92
|
+
"e37393fed29e84c5": "b32c86839cd9044a4d7757d51b62db14",
|
|
93
|
+
"e6a8585e2a054ff6": "ed2947f48b407a9a4f3bbfd151d8bc63",
|
|
94
|
+
"eb7ddd5319d09e27": "e7fa56dec140a7688e4a7d470b419aba",
|
|
95
|
+
"eca4959b2b87ae15": "5d66240a5fdec0ca59deafae16615bc5",
|
|
96
|
+
"ee10d7959ec4843c": "7a0b8bf4fb7a11ea26c5431bc205f96d",
|
|
97
|
+
"ef1b68347966ab26": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
98
|
+
"f3e55425cc41f230": "54a48a0b441082d54a07d786c217153e",
|
|
99
|
+
"f5b9ace9b59351e7": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
100
|
+
"f8155387eb5f375c": "5c119a1b47ade210ed5517f68b3babfc",
|
|
101
|
+
"fa8f1475a55be935": "8ecd3e416726e4af9b75f8eaa983f171",
|
|
102
|
+
"fb21116a15d0b1f1": "22c5ba7ef2445e8d6a9e7bbeb1b06d52",
|
|
103
|
+
"fe95444fbeabe592": "4b033ccb2ce1d4edc32bb44601049293"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"records": [
|
|
3
|
+
{
|
|
4
|
+
"name": "repositoryReadFacts",
|
|
5
|
+
"identity": "repositoryReadFacts",
|
|
6
|
+
"revisions": [
|
|
7
|
+
"repositoryAttention/fold/u6bhzf2af0",
|
|
8
|
+
"repositoryReadFacts/fold/0xl1c98cpy",
|
|
9
|
+
"repositoryReadFacts/fold/4gnmhbji3n",
|
|
10
|
+
"repositoryReadFacts/fold/5porrk9y1h",
|
|
11
|
+
"repositoryReadFacts/fold/fk3ka9gb3z",
|
|
12
|
+
"repositoryReadFacts/fold/vvcfmd23zp",
|
|
13
|
+
"repositoryReadFacts/shape/5yo149tiqz",
|
|
14
|
+
"repositoryReadFacts/shape/70jpyc3nd3",
|
|
15
|
+
"repositoryReadFacts/shape/7hbgb52kw8",
|
|
16
|
+
"repositoryReadFacts/shape/e2u2pgiup3",
|
|
17
|
+
"repositoryReadFacts/shape/ez3eddcdoo",
|
|
18
|
+
"repositoryReadFacts/shape/hgw4spz5c0",
|
|
19
|
+
"repositoryReadFacts/shape/mggr8x6l5z",
|
|
20
|
+
"repositoryReadFacts/shape/o7791nz2gt",
|
|
21
|
+
"repositoryReadFacts/shape/se5kk44boc",
|
|
22
|
+
"repositoryReadFacts/shape/xyn7875cxw",
|
|
23
|
+
"sandboxStates/fold/hjdgop7xoh",
|
|
24
|
+
"sandboxStates/shape/gbrf8k4qxq",
|
|
25
|
+
"ticketStarts/fold/8fp156vze2",
|
|
26
|
+
"ticketStarts/fold/eglrhnb0ta",
|
|
27
|
+
"ticketStarts/shape/dzxrbuuq7e",
|
|
28
|
+
"ticketStarts/shape/eecofz22vy"
|
|
29
|
+
],
|
|
30
|
+
"entries": {
|
|
31
|
+
"017d8dd5bb6dd80b": "9b19c8eb254d503fbe74d8de7039566f",
|
|
32
|
+
"10a4657408d4e121": "218f9c92364c4b9176b70c9bee8a29f8",
|
|
33
|
+
"1411d1cdbdd9911e": "a5b60fa55d3c1d3999e4ee947878bd23",
|
|
34
|
+
"1444fe1fa7fc802c": "81c89822174d63012aa06ad744fae9e6",
|
|
35
|
+
"178e12f1759b7552": "61197c43eb41d8451ce5182402f23373",
|
|
36
|
+
"1921f86f752428c9": "abf8d370c9d94b6a50ab70d52d33454b",
|
|
37
|
+
"1972c1d66008ef6b": "56c634f6d1a0076256c385b2a9feab7c",
|
|
38
|
+
"19e8e43e7f3f1a06": "b18b2ccd2d11b39684f2fc991526b0d6",
|
|
39
|
+
"21ce2c0bf58318e1": "8eedb8f516b89cb65230c9cedb1bd903",
|
|
40
|
+
"293dcb3a94fb3470": "203e641af713b42a0e5369f9486f2301",
|
|
41
|
+
"2ab7436356267118": "fc4031327a07006ccdc946bf07aba04f",
|
|
42
|
+
"2d084641735caaff": "1061299214f493d5d51f9c11afae68ab",
|
|
43
|
+
"3237bcecf68e5db9": "79f6d09249036fd77dc5d3400e18124a",
|
|
44
|
+
"33d0cc593610e56f": "bd88ed40c1ada79d8657af1b339a6a9f",
|
|
45
|
+
"35cf9ccc4478b2d2": "5a2279bc99403d0f7d40cede4c8bb573",
|
|
46
|
+
"3649e7bd1203f154": "9d3742c0e29c7a3e999c9c9a8c6eac27",
|
|
47
|
+
"38c75099d9191471": "203e641af713b42a0e5369f9486f2301",
|
|
48
|
+
"431c9bb2ee8838e0": "0715d441ad523323105867bf09108797",
|
|
49
|
+
"49064fc079964a5c": "844ca8b44174ab640ce17a713b580d7d",
|
|
50
|
+
"4932c70a2af97faf": "0c732c6ead43fcb8d5f34159ac5e0e0b",
|
|
51
|
+
"4f00c0f2c8afd159": "9688f560966f37d57b4177bf5aa4b7f0",
|
|
52
|
+
"516a5a7aadf97587": "e63f56f546ed51d4e04df1e86c9fc476",
|
|
53
|
+
"536085773daf6b58": "57901f1d28ee614272cc8915a80e38ff",
|
|
54
|
+
"59ffaa6974094c72": "d1757ea5344f9164aca22e3ca6ca165a",
|
|
55
|
+
"5f0ca42af862c4ee": "840d8a2c1947ef0941e1ab8bf3afd42e",
|
|
56
|
+
"6118031132db9bfc": "8c44d3ef5b8a0241b5c712f994d56907",
|
|
57
|
+
"643d70429ce03dad": "c2b7bfc98da1427b6a3858d814d3f57b",
|
|
58
|
+
"677ea92572c29082": "4067b95ee98f33bc298d71c7489fabba",
|
|
59
|
+
"6ae5bf60504d6467": "58975765e668c4f361659977261d56ed",
|
|
60
|
+
"6bd6275061aaffa5": "c84c2528779e3ecc21e549e0ef2adedd",
|
|
61
|
+
"6efdc8defc75fccb": "d5b512d4f4c16b9d4bcadbee8f8206ad",
|
|
62
|
+
"7833e42d16301424": "b32c86839cd9044a4d7757d51b62db14",
|
|
63
|
+
"7d4edad0614adaf1": "54a48a0b441082d54a07d786c217153e",
|
|
64
|
+
"837365898d04f45a": "54a48a0b441082d54a07d786c217153e",
|
|
65
|
+
"85f9f0c921b8b5bb": "0926918433e11ebd637e34dae2a2d615",
|
|
66
|
+
"8879f57a24733897": "58975765e668c4f361659977261d56ed",
|
|
67
|
+
"88cb9e71bdec972d": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
68
|
+
"89625654b02e9ac1": "bac4fc52c015d8cb7b9f833dda540b85",
|
|
69
|
+
"8cc15eb1807c0157": "10c221f0b9db3782b1dca2ed6eb1f5c9",
|
|
70
|
+
"8ced97c44bc0af3a": "d998291081ba51e1bef3205aae7595ef",
|
|
71
|
+
"8d4144004720b9f8": "ef6389a96f072b54e91a0e0f19c827b8",
|
|
72
|
+
"8db633ead1807f8b": "c4fe43ef3276b5877db1b08a38d607cb",
|
|
73
|
+
"8e42cdbd0994ab0c": "e12aa5b2f6373eceb51f303a929e8d5a",
|
|
74
|
+
"9539b995af5c54a9": "1061299214f493d5d51f9c11afae68ab",
|
|
75
|
+
"9ee3919fbd4f9458": "a553618f38080bfcb814cb4a5416cfb1",
|
|
76
|
+
"a0b32c12e4e6edb6": "d323237478cd65b159eda1faab172bcf",
|
|
77
|
+
"a55218252707bdd3": "54a48a0b441082d54a07d786c217153e",
|
|
78
|
+
"a98af134be2da8a9": "9a0830cc47de7a66b3c2f1a85a7eb852",
|
|
79
|
+
"af953392d81911da": "58975765e668c4f361659977261d56ed",
|
|
80
|
+
"b0d877c44810ecb0": "64a155224f6c8526212f92f64e7ef575",
|
|
81
|
+
"be211f0e31a65006": "64a155224f6c8526212f92f64e7ef575",
|
|
82
|
+
"c68b7ee2e2610f30": "05034ebd16ae9bf93b398663b30aea92",
|
|
83
|
+
"c7f7e0378aeea237": "1061299214f493d5d51f9c11afae68ab",
|
|
84
|
+
"c98cb1659eb142b6": "64a155224f6c8526212f92f64e7ef575",
|
|
85
|
+
"ca830adf06ed55a1": "54a48a0b441082d54a07d786c217153e",
|
|
86
|
+
"cb3a219f33e437ca": "feab7b027da5be2ecf041dd93fb55f1d",
|
|
87
|
+
"cf1e0c0d82567e0c": "cac9aba9f25adeb55568e902396839a4",
|
|
88
|
+
"d1432a819d8e48c5": "203e641af713b42a0e5369f9486f2301",
|
|
89
|
+
"d185ed6aa9192aff": "235467b1c87a46b383a7fa8550d8a2f8",
|
|
90
|
+
"d5d5ccca80a893d8": "0fdfd82c7426fd151bbb7544cd415187",
|
|
91
|
+
"d873fad29d6c7e55": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
92
|
+
"e2f18fa32fe1f6d0": "e5878dff98f5f30c5f82c1656fa82737",
|
|
93
|
+
"e37393fed29e84c5": "b32c86839cd9044a4d7757d51b62db14",
|
|
94
|
+
"e6a8585e2a054ff6": "ed2947f48b407a9a4f3bbfd151d8bc63",
|
|
95
|
+
"eb7ddd5319d09e27": "e7fa56dec140a7688e4a7d470b419aba",
|
|
96
|
+
"eca4959b2b87ae15": "5d66240a5fdec0ca59deafae16615bc5",
|
|
97
|
+
"ee10d7959ec4843c": "7a0b8bf4fb7a11ea26c5431bc205f96d",
|
|
98
|
+
"ef1b68347966ab26": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
99
|
+
"f3e55425cc41f230": "54a48a0b441082d54a07d786c217153e",
|
|
100
|
+
"f5b9ace9b59351e7": "3f7ed5a476e6457efedb7cdf6412fd23",
|
|
101
|
+
"f8155387eb5f375c": "5c119a1b47ade210ed5517f68b3babfc",
|
|
102
|
+
"fa8f1475a55be935": "8ecd3e416726e4af9b75f8eaa983f171",
|
|
103
|
+
"fb21116a15d0b1f1": "22c5ba7ef2445e8d6a9e7bbeb1b06d52",
|
|
104
|
+
"fe95444fbeabe592": "4b033ccb2ce1d4edc32bb44601049293"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
@@ -96,4 +96,7 @@ export const REDUCER_REVISIONS: Readonly<Record<string, string>> = {
|
|
|
96
96
|
'doneEscalationEntry/fold/9mnmr74oat': '#1387 the first abort closes the escalations open then',
|
|
97
97
|
'repositoryReadFacts/shape/e2u2pgiup3': '#1406 deferred work hint and recoveryDeferred counter',
|
|
98
98
|
'repositoryReadFacts/fold/5porrk9y1h': '#1406 latest dispatcher.work-deferred is carried forward',
|
|
99
|
+
'repositoryReadFacts/shape/ez3eddcdoo': '#1409 pass cursors and stage timings',
|
|
100
|
+
'repositoryReadFacts/fold/0xl1c98cpy': '#1409 latest dispatcher.pass-cursors is carried forward',
|
|
101
|
+
'repositoryReadFacts/shape/70jpyc3nd3': '#1415 launch step, cut instance in deferred hint',
|
|
99
102
|
}
|
|
@@ -94,6 +94,12 @@ export interface RepositoryReadAcc {
|
|
|
94
94
|
seq: number
|
|
95
95
|
builds: Extract<RepositoryEvent, { type: 'dispatcher.work-deferred' }>['payload']['builds']
|
|
96
96
|
}
|
|
97
|
+
/** The latest `dispatcher.pass-cursors` hint: where each rotated loop of
|
|
98
|
+
* the next bounded pass continues. */
|
|
99
|
+
passCursors?: {
|
|
100
|
+
seq: number
|
|
101
|
+
cursors: Extract<RepositoryEvent, { type: 'dispatcher.pass-cursors' }>['payload']['cursors']
|
|
102
|
+
}
|
|
97
103
|
recentRuns: [string, DispatcherRunFacts][]
|
|
98
104
|
latestRun?: string
|
|
99
105
|
latestStoppedRun?: string
|
|
@@ -254,6 +260,8 @@ export const repositoryReadFactsReducer = defineReducer({
|
|
|
254
260
|
}
|
|
255
261
|
if (event.type === 'dispatcher.work-deferred')
|
|
256
262
|
acc.deferredWork = { seq: event.seq, builds: event.payload.builds }
|
|
263
|
+
if (event.type === 'dispatcher.pass-cursors')
|
|
264
|
+
acc.passCursors = { seq: event.seq, cursors: event.payload.cursors }
|
|
257
265
|
if (event.type === 'dispatcher.run-started') acc.latestRun = event.payload.run
|
|
258
266
|
if (event.type === 'dispatcher.run-stopped') acc.latestStoppedRun = event.payload.run
|
|
259
267
|
if (
|
|
@@ -322,6 +330,7 @@ export const repositoryReadFactsReducer = defineReducer({
|
|
|
322
330
|
scan: acc.scan,
|
|
323
331
|
scanSeq: acc.scanSeq,
|
|
324
332
|
deferredWork: acc.deferredWork === undefined ? undefined : structuredClone(acc.deferredWork),
|
|
333
|
+
passCursors: acc.passCursors === undefined ? undefined : structuredClone(acc.passCursors),
|
|
325
334
|
recentRuns: structuredClone(acc.recentRuns),
|
|
326
335
|
latestRun: acc.latestRun,
|
|
327
336
|
latestStoppedRun: acc.latestStoppedRun,
|
|
@@ -665,8 +665,12 @@ export interface WorkspaceReapOutcome {
|
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
export interface WorkspaceRecovery {
|
|
668
|
-
/** Stops execution without deleting the workspace or its snapshots.
|
|
669
|
-
|
|
668
|
+
/** Stops execution without deleting the workspace or its snapshots.
|
|
669
|
+
* `teardown`: the dispatcher calls it during a bounded invocation's
|
|
670
|
+
* teardown, after the work deadline, to settle a launch that deadline cut.
|
|
671
|
+
* Bound the calls by the provider's own operation timeout and the ambient
|
|
672
|
+
* teardown scope, not by the invocation's work deadline. */
|
|
673
|
+
fence?(handle: WorkspaceHandle, opts?: { teardown?: boolean }): Promise<WorkspaceFenceOutcome>
|
|
670
674
|
|
|
671
675
|
/** Fence an unavailable environment. Unknown outcomes must reject so the
|
|
672
676
|
* dispatcher retains the lease/workspace fact and retries after its fence. */
|
|
@@ -746,8 +750,10 @@ export interface WorkspaceProvider {
|
|
|
746
750
|
generation?: number
|
|
747
751
|
/** The previous attempt at this exact generation was abandoned at a
|
|
748
752
|
* recorded dispatcher teardown and its lease is gone. A provider that can
|
|
749
|
-
* verify the partial environment may finish it in place
|
|
750
|
-
*
|
|
753
|
+
* verify the partial environment may finish it in place, resuming from
|
|
754
|
+
* its own verified progress and keeping the commit the environment
|
|
755
|
+
* already holds, which the restack later advances. Otherwise, or on any
|
|
756
|
+
* doubt, it throws `WorkspaceCleanupRequired` as for any incomplete
|
|
751
757
|
* environment. Never expose an unverified environment. */
|
|
752
758
|
adoptAbandoned?: boolean
|
|
753
759
|
/** The leaf build has no prior `workspace.provisioned` or cleanup-required
|