@fourier-labs/harbour-contracts 0.35.0 → 0.42.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 +4 -0
- package/contract-release.json +25 -25
- package/dist/gen-ts/artifact-contract.d.ts +1 -1
- package/dist/gen-ts/contract-release.d.ts +6 -6
- package/dist/gen-ts/contract-release.js +6 -6
- package/dist/gen-ts/data-source.d.ts +5 -1
- package/dist/gen-ts/deploy-request.d.ts +21 -0
- package/dist/gen-ts/deployment-status-failure.d.ts +6 -1
- package/dist/gen-ts/deployment-status-response.d.ts +5 -0
- package/dist/gen-ts/error-category-registry.d.ts +14 -0
- package/dist/gen-ts/error-category-registry.js +30 -1
- package/dist/gen-ts/transform-report.d.ts +131 -14
- package/dist/gen-ts/transform-report.js +11 -1
- package/dist/gen-ts/well-defined-app-manifest.d.ts +1 -1
- package/gen-ts/artifact-contract.ts +1 -1
- package/gen-ts/contract-release.ts +6 -6
- package/gen-ts/data-source.ts +5 -1
- package/gen-ts/deploy-request.ts +21 -0
- package/gen-ts/deployment-status-failure.ts +6 -1
- package/gen-ts/deployment-status-response.ts +5 -0
- package/gen-ts/error-category-registry.ts +30 -1
- package/gen-ts/transform-report.ts +141 -14
- package/gen-ts/well-defined-app-manifest.ts +1 -1
- package/package.json +1 -1
- package/schema/artifact-contract.schema.json +1 -1
- package/schema/data-source.schema.json +7 -1
- package/schema/deploy-request.schema.json +39 -0
- package/schema/deployment-status-failure.schema.json +15 -1
- package/schema/deployment-status-response.schema.json +12 -0
- package/schema/error-category.enum.json +13 -2
- package/schema/transform-report.schema.json +323 -19
- package/schema/well-defined-app-manifest.schema.json +1 -1
package/gen-ts/deploy-request.ts
CHANGED
|
@@ -54,6 +54,12 @@ export interface DeployRequest {
|
|
|
54
54
|
*/
|
|
55
55
|
idempotencyKey?: string;
|
|
56
56
|
environmentBindings?: DeployRequestEnvironmentBindings;
|
|
57
|
+
/**
|
|
58
|
+
* Approved external sources available only during validation. Entries refer to names in environmentBindings and never contain credential values.
|
|
59
|
+
*
|
|
60
|
+
* @maxItems 32
|
|
61
|
+
*/
|
|
62
|
+
validationSources?: DeployRequestValidationSource[];
|
|
57
63
|
/**
|
|
58
64
|
* Preview-only. When true, the transformed code is NOT committed back to the source branch (benchmark deploys). Ignored outside preview.
|
|
59
65
|
*/
|
|
@@ -80,6 +86,21 @@ export interface DeployRequestEnvironmentBindings {
|
|
|
80
86
|
*/
|
|
81
87
|
bindings: DeployRequestEnvironmentBinding[];
|
|
82
88
|
}
|
|
89
|
+
export interface DeployRequestValidationSource {
|
|
90
|
+
sourceId: string;
|
|
91
|
+
connector: 'mysql';
|
|
92
|
+
/**
|
|
93
|
+
* Explicit role for each referenced environment binding. Names must be unique within and across validation sources; consumers enforce that semantic constraint.
|
|
94
|
+
*
|
|
95
|
+
* @minItems 1
|
|
96
|
+
* @maxItems 32
|
|
97
|
+
*/
|
|
98
|
+
bindings: DeployRequestValidationSourceBinding[];
|
|
99
|
+
}
|
|
100
|
+
export interface DeployRequestValidationSourceBinding {
|
|
101
|
+
name: string;
|
|
102
|
+
role: 'host' | 'port' | 'database' | 'credential';
|
|
103
|
+
}
|
|
83
104
|
/**
|
|
84
105
|
* Optional transformation-engine selection. New preview deployments default to branch_select; set sequential explicitly for the legacy engine.
|
|
85
106
|
*/
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
// Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Frontend-safe failure projection nested in a failed DeploymentStatusResponse.
|
|
5
|
+
* Frontend-safe failure projection nested in a failed DeploymentStatusResponse. Raw provider errors are excluded; a digest-bound diagnosticRef locates the complete redacted terminal diagnostic.
|
|
6
6
|
*/
|
|
7
7
|
export interface DeploymentStatusFailure {
|
|
8
8
|
category: string;
|
|
9
9
|
retryable: boolean;
|
|
10
10
|
message: string;
|
|
11
11
|
remediationHint: string;
|
|
12
|
+
diagnosticRef?: FailureDiagnosticRef;
|
|
13
|
+
}
|
|
14
|
+
export interface FailureDiagnosticRef {
|
|
15
|
+
key: string;
|
|
16
|
+
sha256: string;
|
|
12
17
|
}
|
|
@@ -47,6 +47,11 @@ export interface StatusFailureProjection {
|
|
|
47
47
|
retryable: boolean;
|
|
48
48
|
message: string;
|
|
49
49
|
remediationHint: string;
|
|
50
|
+
diagnosticRef?: StatusDiagnosticRef;
|
|
51
|
+
}
|
|
52
|
+
export interface StatusDiagnosticRef {
|
|
53
|
+
key: string;
|
|
54
|
+
sha256: string;
|
|
50
55
|
}
|
|
51
56
|
export interface StatusProgressEvent {
|
|
52
57
|
/**
|
|
@@ -6,6 +6,7 @@ export const ErrorCategories = {
|
|
|
6
6
|
IntakeUnsupportedRuntime: "intake.unsupported-runtime",
|
|
7
7
|
IntakeAttestationMissing: "intake.attestation-missing",
|
|
8
8
|
IntakeMultiAppRepo: "intake.multi-app-repo",
|
|
9
|
+
IntakeSourceInvalid: "intake.source-invalid",
|
|
9
10
|
SecretsUnresolvable: "secrets.unresolvable",
|
|
10
11
|
SecretsReferenceUnresolvable: "secrets.reference-unresolvable",
|
|
11
12
|
SecretsPlaceholderUnresolved: "secrets.placeholder-unresolved",
|
|
@@ -13,8 +14,19 @@ export const ErrorCategories = {
|
|
|
13
14
|
StorageSqliteMisclassified: "storage.sqlite-misclassified",
|
|
14
15
|
StorageMappingDrift: "storage.mapping-drift",
|
|
15
16
|
StorageUnavailable: "storage.unavailable",
|
|
17
|
+
AiPlanBlocked: "ai.plan-blocked",
|
|
16
18
|
TransformDeadlineExceeded: "transform.deadline-exceeded",
|
|
19
|
+
TransformAttemptsExhausted: "transform.attempts-exhausted",
|
|
20
|
+
TransformNonRetryable: "transform.non-retryable",
|
|
17
21
|
TransformValidationFailed: "transform.validation-failed",
|
|
22
|
+
AuthValidationSeedUnsupported: "auth.validation-seed-unsupported",
|
|
23
|
+
AuthIdentityEntityUnresolvable: "auth.identity-entity-unresolvable",
|
|
24
|
+
DependencyPythonRuntimeUnsupported: "dependency.python-runtime-unsupported",
|
|
25
|
+
DependencyResolverUnavailable: "dependency.resolver-unavailable",
|
|
26
|
+
DependencyResolutionFailed: "dependency.resolution-failed",
|
|
27
|
+
DependencyLockfileStale: "dependency.lockfile-stale",
|
|
28
|
+
AuroraBundleInvalid: "aurora.bundle-invalid",
|
|
29
|
+
CapabilityUnsupported: "capability.unsupported",
|
|
18
30
|
FrontendEnvInlinedUnfixable: "frontend.env-inlined-unfixable",
|
|
19
31
|
BuildRecipeFailed: "build.recipe-failed",
|
|
20
32
|
BuildImageTooLarge: "build.image-too-large",
|
|
@@ -51,6 +63,7 @@ const retryableExact: Record<string, boolean> = {
|
|
|
51
63
|
"intake.unsupported-runtime": false,
|
|
52
64
|
"intake.attestation-missing": false,
|
|
53
65
|
"intake.multi-app-repo": false,
|
|
66
|
+
"intake.source-invalid": false,
|
|
54
67
|
"secrets.unresolvable": false,
|
|
55
68
|
"secrets.reference-unresolvable": false,
|
|
56
69
|
"secrets.placeholder-unresolved": false,
|
|
@@ -58,8 +71,19 @@ const retryableExact: Record<string, boolean> = {
|
|
|
58
71
|
"storage.sqlite-misclassified": false,
|
|
59
72
|
"storage.mapping-drift": false,
|
|
60
73
|
"storage.unavailable": true,
|
|
74
|
+
"ai.plan-blocked": false,
|
|
61
75
|
"transform.deadline-exceeded": true,
|
|
76
|
+
"transform.attempts-exhausted": false,
|
|
77
|
+
"transform.non-retryable": false,
|
|
62
78
|
"transform.validation-failed": true,
|
|
79
|
+
"auth.validation-seed-unsupported": false,
|
|
80
|
+
"auth.identity-entity-unresolvable": false,
|
|
81
|
+
"dependency.python-runtime-unsupported": false,
|
|
82
|
+
"dependency.resolver-unavailable": true,
|
|
83
|
+
"dependency.resolution-failed": false,
|
|
84
|
+
"dependency.lockfile-stale": false,
|
|
85
|
+
"aurora.bundle-invalid": false,
|
|
86
|
+
"capability.unsupported": false,
|
|
63
87
|
"frontend.env-inlined-unfixable": false,
|
|
64
88
|
"build.recipe-failed": false,
|
|
65
89
|
"build.image-too-large": false,
|
|
@@ -92,11 +116,16 @@ const retryableExact: Record<string, boolean> = {
|
|
|
92
116
|
};
|
|
93
117
|
const retryableFamilies: Record<string, boolean> = {
|
|
94
118
|
"storage.unsupported-engine": false,
|
|
95
|
-
"transform.non-retryable": false,
|
|
96
119
|
"quota.exceeded": false,
|
|
97
120
|
"uncategorized": false,
|
|
98
121
|
};
|
|
99
122
|
|
|
123
|
+
/** True for an exact registry entry or a concrete member of a documented family. */
|
|
124
|
+
export function isKnownErrorCategory(category: string): boolean {
|
|
125
|
+
if (category in retryableExact) return true;
|
|
126
|
+
return Object.keys(retryableFamilies).some(prefix => category === prefix || category.startsWith(prefix + '.'));
|
|
127
|
+
}
|
|
128
|
+
|
|
100
129
|
/** Retryable lookup for a concrete or family-suffixed category. Unknown → false (fail closed). */
|
|
101
130
|
export function isRetryable(category: string): boolean {
|
|
102
131
|
if (category in retryableExact) return retryableExact[category];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Structured output an agent must return from one Harbour transformation attempt. Handed to the agent as its output schema, then decoded and semantically re-validated by the control plane, which remains the authority. The enum on applied_playbooks.items is the one dynamic part: the adapter injects the names of the playbooks supplied for that invocation before writing the document, so the model is structurally prevented from naming a playbook it was not given. Application-secret handling was removed platform-wide, so this document carries no redactions and no secrets fields. A deployable report must also carry preservation_plan: the agent's own grounded smoke tests (one to three happy_path user journeys plus a boundary_check per behaviour its playbooks or edits could regress) that the validation cell executes after transformation, and an uncovered list naming every boundary it could not test and why. An unsupported report carries only application.unsupported and no plan.
|
|
5
|
+
* Structured output an agent must return from one Harbour transformation attempt. Handed to the agent as its output schema, then decoded and semantically re-validated by the control plane, which remains the authority. The enum on applied_playbooks.items is the one dynamic part: the adapter injects the names of the playbooks supplied for that invocation before writing the document, so the model is structurally prevented from naming a playbook it was not given. Application-secret handling was removed platform-wide, so this document carries no redactions and no secrets fields. A deployable report must also carry preservation_plan: the agent's own grounded smoke tests (one to three happy_path user journeys plus a boundary_check per behaviour its playbooks or edits could regress) that the validation cell executes after transformation, and an uncovered list naming every boundary it could not test and why. It also carries validation_fixtures: null when no external fixture is needed, or a bounded generic HTTP/WebSocket fixture declaration for that one run. An unsupported report carries only application.unsupported and no plan or fixtures.
|
|
6
6
|
*/
|
|
7
7
|
export type TransformReport = {
|
|
8
8
|
/**
|
|
@@ -32,11 +32,10 @@ export type TransformReport = {
|
|
|
32
32
|
}[];
|
|
33
33
|
};
|
|
34
34
|
database?: {
|
|
35
|
-
mode: 'none' | 'sql'
|
|
35
|
+
mode: 'none' | 'sql';
|
|
36
36
|
changeType: 'none' | 'code_only' | 'schema_only' | 'code_and_schema';
|
|
37
37
|
requiresCodeChanges: boolean;
|
|
38
38
|
requiresSchemaMigration: boolean;
|
|
39
|
-
desiredSchemaPath: string;
|
|
40
39
|
/**
|
|
41
40
|
* @maxItems 128
|
|
42
41
|
*/
|
|
@@ -171,11 +170,61 @@ export type TransformReport = {
|
|
|
171
170
|
detail?: string;
|
|
172
171
|
}[];
|
|
173
172
|
};
|
|
173
|
+
/**
|
|
174
|
+
* A bounded, non-secret fixture program for this transformation's throwaway validation cell. Null means the application needs no external fixture. Bindings use application-owned logical names and explicitly inject only generated fixture URLs; fixtures describe deterministic HTTP or WebSocket exchanges without naming an application or provider and without executable code. The deployment plane semantically verifies unique fixture ids, template references, operation coverage, JSON text and safe config updates before forwarding the spec to the data plane.
|
|
175
|
+
*/
|
|
176
|
+
validation_fixtures?: {
|
|
177
|
+
version: 1;
|
|
178
|
+
/**
|
|
179
|
+
* Bounded per-run fixture requirements. logical_name is an arbitrary application-owned binding name; deployment-plane semantic validation requires it to be unique within this array.
|
|
180
|
+
*
|
|
181
|
+
* @minItems 1
|
|
182
|
+
* @maxItems 32
|
|
183
|
+
*/
|
|
184
|
+
bindings: ValidationFixtureBinding[];
|
|
185
|
+
/**
|
|
186
|
+
* @minItems 1
|
|
187
|
+
* @maxItems 32
|
|
188
|
+
*/
|
|
189
|
+
fixtures: (
|
|
190
|
+
| {
|
|
191
|
+
id: string;
|
|
192
|
+
type: 'http';
|
|
193
|
+
http: ValidationHttpFixture;
|
|
194
|
+
websocket: null;
|
|
195
|
+
}
|
|
196
|
+
| {
|
|
197
|
+
id: string;
|
|
198
|
+
type: 'websocket';
|
|
199
|
+
http: null;
|
|
200
|
+
websocket: ValidationWebSocketFixture;
|
|
201
|
+
}
|
|
202
|
+
)[];
|
|
203
|
+
} | null;
|
|
174
204
|
application: {
|
|
175
205
|
unsupported?: {
|
|
206
|
+
/**
|
|
207
|
+
* Closed machine category selected independently from the human explanation.
|
|
208
|
+
*/
|
|
209
|
+
category: 'auth.validation-seed-unsupported' | 'auth.identity-entity-unresolvable' | 'capability.unsupported';
|
|
176
210
|
capability: string;
|
|
211
|
+
/**
|
|
212
|
+
* The exact source operation that cannot be preserved, such as a cross-document transactional write. Name a concrete operation, not an engine or product.
|
|
213
|
+
*/
|
|
214
|
+
operation: string;
|
|
177
215
|
constraint: string;
|
|
178
216
|
reason: string;
|
|
217
|
+
/**
|
|
218
|
+
* Exact source locations proving the required operation and the unsupported platform capability. Environment failures and unfinished conversion work are not evidence.
|
|
219
|
+
*
|
|
220
|
+
* @minItems 1
|
|
221
|
+
* @maxItems 32
|
|
222
|
+
*/
|
|
223
|
+
evidence: {
|
|
224
|
+
path: string;
|
|
225
|
+
line: number;
|
|
226
|
+
reason: string;
|
|
227
|
+
}[];
|
|
179
228
|
};
|
|
180
229
|
runtime?: string;
|
|
181
230
|
/**
|
|
@@ -186,22 +235,15 @@ export type TransformReport = {
|
|
|
186
235
|
* Optional bounded workload requirements, carried into the deployment plan and artifact. Null or omitted preserves standard HTTP serving. SQS jobs require platform-selected Kubernetes compute.
|
|
187
236
|
*/
|
|
188
237
|
workload?: {
|
|
189
|
-
resourceProfile: 'standard' | 'memory-1g';
|
|
238
|
+
resourceProfile: 'standard' | 'memory-1g' | 'memory-2g';
|
|
190
239
|
backgroundJobs: 'none' | 'sqs';
|
|
191
240
|
} | null;
|
|
192
241
|
/**
|
|
193
|
-
* Build-only bootstrap for authenticated browser validation. Use null when the application does not require a
|
|
242
|
+
* Build-only PostgreSQL bootstrap for authenticated browser validation. Use null when the application does not require a pre-existing database identity. The SQL file runs only in Harbour's throwaway validation database after migrations and before candidate boot. Harbour supplies the fixed probe subject and lowercased email as transaction-local settings.
|
|
194
243
|
*/
|
|
195
244
|
validationSeed?: {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
* @maxItems 64
|
|
199
|
-
*/
|
|
200
|
-
command: string[];
|
|
201
|
-
/**
|
|
202
|
-
* Existing application-owned environment variable that receives the trusted browser probe email, for example ADMIN_EMAIL.
|
|
203
|
-
*/
|
|
204
|
-
identityEmailEnvironmentVariable: string;
|
|
245
|
+
kind: 'sql';
|
|
246
|
+
path: string;
|
|
205
247
|
} | null;
|
|
206
248
|
buildKind?: 'container' | 'static';
|
|
207
249
|
topology?: 'static' | 'backend' | 'frontend_and_backend';
|
|
@@ -257,3 +299,88 @@ export type TransformReport = {
|
|
|
257
299
|
};
|
|
258
300
|
}
|
|
259
301
|
);
|
|
302
|
+
/**
|
|
303
|
+
* @maxItems 32
|
|
304
|
+
*/
|
|
305
|
+
export type ValidationFixtureNameValuePairs = {
|
|
306
|
+
name: string;
|
|
307
|
+
value: string;
|
|
308
|
+
}[];
|
|
309
|
+
|
|
310
|
+
export interface ValidationFixtureBinding {
|
|
311
|
+
logical_name: string;
|
|
312
|
+
/**
|
|
313
|
+
* Optional explicit fixture association for a binding that has no URL mapping, such as a credential-only binding.
|
|
314
|
+
*/
|
|
315
|
+
fixture_id?: string;
|
|
316
|
+
/**
|
|
317
|
+
* @minItems 1
|
|
318
|
+
* @maxItems 5
|
|
319
|
+
*/
|
|
320
|
+
operations: ('http' | 'websocket' | 'email' | 'webhook' | 'ai')[];
|
|
321
|
+
/**
|
|
322
|
+
* Environment variables that receive a generated fixture URL. Values cannot carry arbitrary configuration or secrets.
|
|
323
|
+
*
|
|
324
|
+
* @maxItems 32
|
|
325
|
+
*/
|
|
326
|
+
environment: {
|
|
327
|
+
[k: string]: unknown;
|
|
328
|
+
}[];
|
|
329
|
+
/**
|
|
330
|
+
* Structured JSON or YAML keys that receive a generated fixture URL in a bounded relative application config file.
|
|
331
|
+
*
|
|
332
|
+
* @maxItems 32
|
|
333
|
+
*/
|
|
334
|
+
config: {
|
|
335
|
+
path: string;
|
|
336
|
+
format: 'json' | 'yaml';
|
|
337
|
+
key: string;
|
|
338
|
+
value: string;
|
|
339
|
+
}[];
|
|
340
|
+
}
|
|
341
|
+
export interface ValidationHttpFixture {
|
|
342
|
+
base_path: string;
|
|
343
|
+
/**
|
|
344
|
+
* @minItems 1
|
|
345
|
+
* @maxItems 64
|
|
346
|
+
*/
|
|
347
|
+
routes: {
|
|
348
|
+
operation: 'http' | 'email' | 'webhook' | 'ai';
|
|
349
|
+
request: {
|
|
350
|
+
method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
351
|
+
path: string;
|
|
352
|
+
query: ValidationFixtureNameValuePairs;
|
|
353
|
+
headers: ValidationFixtureNameValuePairs;
|
|
354
|
+
body: string;
|
|
355
|
+
};
|
|
356
|
+
response: {
|
|
357
|
+
status: number;
|
|
358
|
+
headers: ValidationFixtureNameValuePairs;
|
|
359
|
+
body: string;
|
|
360
|
+
};
|
|
361
|
+
}[];
|
|
362
|
+
}
|
|
363
|
+
export interface ValidationWebSocketFixture {
|
|
364
|
+
path: string;
|
|
365
|
+
/**
|
|
366
|
+
* Exact JSON value the fixture expects as the first client message, or null when no client message is required. JSON parsing is a semantic check.
|
|
367
|
+
*/
|
|
368
|
+
expected_json: string | null;
|
|
369
|
+
/**
|
|
370
|
+
* @minItems 1
|
|
371
|
+
* @maxItems 64
|
|
372
|
+
*/
|
|
373
|
+
send_messages: string[];
|
|
374
|
+
close: {
|
|
375
|
+
code: number;
|
|
376
|
+
reason: string;
|
|
377
|
+
} | null;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
/** True iff validation_fixtures.bindings contains no repeated logical_name values. */
|
|
382
|
+
export function hasUniqueTransformReportValidationFixturesBindings(input: TransformReport): boolean {
|
|
383
|
+
const seen = new Set<string>();
|
|
384
|
+
for (const item of input.validation_fixtures?.bindings ?? []) { const value = item.logical_name; if (seen.has(value)) return false; seen.add(value); }
|
|
385
|
+
return true;
|
|
386
|
+
}
|
|
@@ -17,7 +17,7 @@ export type Workload = {
|
|
|
17
17
|
* @maxItems 32
|
|
18
18
|
*/
|
|
19
19
|
export type Command = string[];
|
|
20
|
-
export type ResourceProfile = 'standard' | 'memory-1g';
|
|
20
|
+
export type ResourceProfile = 'standard' | 'memory-1g' | 'memory-2g';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Versioned provisioning input emitted by Harbour Transform. It describes runtime wiring and workload lifecycle only; PostgreSQL grants and RLS remain the database authorization authority.
|
package/package.json
CHANGED
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"properties": {
|
|
131
131
|
"resource_profile": {
|
|
132
132
|
"type": "string",
|
|
133
|
-
"enum": ["standard", "memory-1g"],
|
|
133
|
+
"enum": ["standard", "memory-1g", "memory-2g"],
|
|
134
134
|
"description": "Reviewed CPU/memory profile selected for the application container."
|
|
135
135
|
},
|
|
136
136
|
"background_jobs": {
|
|
@@ -70,6 +70,11 @@
|
|
|
70
70
|
"type": "boolean",
|
|
71
71
|
"description": "Whether builders may request grants against this source."
|
|
72
72
|
},
|
|
73
|
+
"allowValidation": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"default": false,
|
|
76
|
+
"description": "Explicit tenant-admin permission to use this source during application validation. A source must also be active and granted to the app."
|
|
77
|
+
},
|
|
73
78
|
"status": {
|
|
74
79
|
"$ref": "#/definitions/DataSourceStatus"
|
|
75
80
|
}
|
|
@@ -77,7 +82,7 @@
|
|
|
77
82
|
"definitions": {
|
|
78
83
|
"DataSourceConnector": {
|
|
79
84
|
"type": "string",
|
|
80
|
-
"enum": ["postgres", "redshift", "bigquery", "databricks"],
|
|
85
|
+
"enum": ["postgres", "redshift", "bigquery", "databricks", "mysql"],
|
|
81
86
|
"description": "Closed connector set for the Data-Access MVP."
|
|
82
87
|
},
|
|
83
88
|
"DataSourceEndpoint": {
|
|
@@ -145,6 +150,7 @@
|
|
|
145
150
|
"allowedScope": ["public.orders", "public.customers"],
|
|
146
151
|
"observedScope": ["public.orders", "public.customers", "public.internal_audit"],
|
|
147
152
|
"requestableByBuilders": true,
|
|
153
|
+
"allowValidation": false,
|
|
148
154
|
"status": "ACTIVE"
|
|
149
155
|
}
|
|
150
156
|
]
|
|
@@ -34,6 +34,12 @@
|
|
|
34
34
|
"environmentBindings": {
|
|
35
35
|
"$ref": "#/definitions/DeployRequestEnvironmentBindings"
|
|
36
36
|
},
|
|
37
|
+
"validationSources": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"maxItems": 32,
|
|
40
|
+
"items": { "$ref": "#/definitions/DeployRequestValidationSource" },
|
|
41
|
+
"description": "Approved external sources available only during validation. Entries refer to names in environmentBindings and never contain credential values."
|
|
42
|
+
},
|
|
37
43
|
"benchRun": {
|
|
38
44
|
"type": "boolean",
|
|
39
45
|
"default": false,
|
|
@@ -102,6 +108,39 @@
|
|
|
102
108
|
],
|
|
103
109
|
"description": "One environment-variable binding: exactly one of secretRef (secret, resolved at runtime) or value (plain literal)."
|
|
104
110
|
},
|
|
111
|
+
"DeployRequestValidationSource": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": ["sourceId", "connector", "bindings"],
|
|
115
|
+
"properties": {
|
|
116
|
+
"sourceId": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"minLength": 1,
|
|
119
|
+
"maxLength": 255,
|
|
120
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
|
|
121
|
+
},
|
|
122
|
+
"connector": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"enum": ["mysql"]
|
|
125
|
+
},
|
|
126
|
+
"bindings": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"minItems": 1,
|
|
129
|
+
"maxItems": 32,
|
|
130
|
+
"items": { "$ref": "#/definitions/DeployRequestValidationSourceBinding" },
|
|
131
|
+
"description": "Explicit role for each referenced environment binding. Names must be unique within and across validation sources; consumers enforce that semantic constraint."
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"DeployRequestValidationSourceBinding": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": ["name", "role"],
|
|
139
|
+
"properties": {
|
|
140
|
+
"name": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$" },
|
|
141
|
+
"role": { "type": "string", "enum": ["host", "port", "database", "credential"] }
|
|
142
|
+
}
|
|
143
|
+
},
|
|
105
144
|
"DeployRequestSource": {
|
|
106
145
|
"type": "object",
|
|
107
146
|
"additionalProperties": false,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "https://schemas.harbour.dev/deployment-status-failure.schema.json",
|
|
4
4
|
"title": "DeploymentStatusFailure",
|
|
5
|
-
"description": "Frontend-safe failure projection nested in a failed DeploymentStatusResponse.
|
|
5
|
+
"description": "Frontend-safe failure projection nested in a failed DeploymentStatusResponse. Raw provider errors are excluded; a digest-bound diagnosticRef locates the complete redacted terminal diagnostic.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"required": ["category", "retryable", "message", "remediationHint"],
|
|
@@ -23,6 +23,20 @@
|
|
|
23
23
|
"type": "string",
|
|
24
24
|
"minLength": 1,
|
|
25
25
|
"maxLength": 1000
|
|
26
|
+
},
|
|
27
|
+
"diagnosticRef": {
|
|
28
|
+
"$ref": "#/definitions/FailureDiagnosticRef"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"definitions": {
|
|
32
|
+
"FailureDiagnosticRef": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": ["key", "sha256"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"key": { "type": "string", "minLength": 1, "maxLength": 1024, "pattern": "^runs/[A-Za-z0-9._/-]+\\.json$" },
|
|
38
|
+
"sha256": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
|
|
39
|
+
}
|
|
26
40
|
}
|
|
27
41
|
}
|
|
28
42
|
}
|
|
@@ -105,9 +105,21 @@
|
|
|
105
105
|
},
|
|
106
106
|
"remediationHint": {
|
|
107
107
|
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"diagnosticRef": {
|
|
110
|
+
"$ref": "#/definitions/StatusDiagnosticRef"
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
},
|
|
114
|
+
"StatusDiagnosticRef": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"required": ["key", "sha256"],
|
|
118
|
+
"properties": {
|
|
119
|
+
"key": { "type": "string", "minLength": 1, "maxLength": 1024, "pattern": "^runs/[A-Za-z0-9._/-]+\\.json$" },
|
|
120
|
+
"sha256": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
|
|
121
|
+
}
|
|
122
|
+
},
|
|
111
123
|
"StatusProgressEvent": {
|
|
112
124
|
"type": "object",
|
|
113
125
|
"additionalProperties": false,
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
{ "id": "intake.unsupported-runtime", "retryable": false, "description": "Detected runtime has no Harbour build recipe." },
|
|
17
17
|
{ "id": "intake.attestation-missing", "retryable": false, "description": "Required auth attestation absent." },
|
|
18
18
|
{ "id": "intake.multi-app-repo", "retryable": false, "description": "Repo contains more than one deployable app." },
|
|
19
|
+
{ "id": "intake.source-invalid", "retryable": false, "description": "The submitted source tree fails its own clean install, build, import, boot, schema-presence, or pristine-lineage checks before Harbour transformation begins." },
|
|
19
20
|
{ "id": "secrets.unresolvable", "retryable": false, "retired": true, "description": "RETIRED 2026-08-08 and no longer emittable: the secret-materializer stack, its reconciler and the secret-reference playbook were all removed, so nothing can reach this state. Kept rather than deleted because historical failure records still carry it and a dropped id would decode to nothing. Do not emit in new code." },
|
|
20
21
|
{ "id": "secrets.reference-unresolvable", "retryable": false, "description": "A governance secret reference supplied on the deploy request could not be resolved to a stored value — the secret does not exist, the read was denied, or the secretref:// URI is malformed. Not retryable: no amount of waiting produces the value, a human must set it (or fix the reference) before the deploy can proceed." },
|
|
21
22
|
{ "id": "secrets.placeholder-unresolved", "retryable": false, "description": "The built workspace still contains a ${HARBOUR_REDACTED_<KEY>} substitution placeholder after transformation, meaning the transform never converted it into a runtime secret lookup and the artifact would ship a literal placeholder where a secret belongs. Not retryable: the workspace is already built, so the same input yields the same placeholder until the transform is corrected." },
|
|
@@ -24,14 +25,24 @@
|
|
|
24
25
|
{ "id": "storage.unsupported-engine", "retryable": false, "family": true, "description": "Storage engine with no Harbour mapping; concrete token names the engine, e.g. storage.unsupported-engine.mongodb." },
|
|
25
26
|
{ "id": "storage.mapping-drift", "retryable": false, "description": "Declared storage binding diverged from detected usage." },
|
|
26
27
|
{ "id": "storage.unavailable", "retryable": true, "description": "The platform's shared application database could not be reached while preparing or provisioning the deploy — e.g. the Aurora cluster dial timing out during a scale-from-zero cold start. Says nothing about the app, so it IS retryable: the same deploy submitted again is expected to succeed once the database is awake. Previously surfaced as uncategorized.deploy (errorType wrapError)." },
|
|
28
|
+
{ "id": "ai.plan-blocked", "retryable": false, "description": "The governance control plane's AI PLAN verdict was BLOCKED: the app makes AI calls that cannot be governed as the tenant is configured today — no provider connected or enabled, no credential, no budget, an SDK or provider the gateway cannot intercept, or a scan that could not cover the whole app. The analyzer's maker message carries the plain-English reason and the governance reason codes. NOT retryable: the same deploy re-earns the same verdict until a person changes the tenant's AI configuration or the app. Previously surfaced as uncategorized.deploy (errorType wrapError)." },
|
|
27
29
|
{ "id": "transform.deadline-exceeded", "retryable": true, "description": "The transform wall deadline was reached before a passing candidate was found. A fresh deployment attempt is safe and may resume from the latest saved transformation checkpoint." },
|
|
28
|
-
{ "id": "transform.
|
|
30
|
+
{ "id": "transform.attempts-exhausted", "retryable": false, "description": "The bounded transformation attempt count was exhausted before a passing candidate was found." },
|
|
31
|
+
{ "id": "transform.non-retryable", "retryable": false, "retired": true, "description": "RETIRED 2026-09-06. Historical agent declines used a prose-derived suffix in this family. New reports must select one of the fixed structured categories below." },
|
|
29
32
|
{ "id": "transform.validation-failed", "retryable": true, "description": "Transform candidate failed validation with iterable feedback; re-enters TRANSFORMING while deadline remains." },
|
|
33
|
+
{ "id": "auth.validation-seed-unsupported", "retryable": false, "description": "The application requires authenticated validation setup that Harbour cannot express with its supported validation seed contract." },
|
|
34
|
+
{ "id": "auth.identity-entity-unresolvable", "retryable": false, "description": "The application identity model cannot deterministically resolve the trusted Harbour subject to one application entity." },
|
|
35
|
+
{ "id": "dependency.python-runtime-unsupported", "retryable": false, "description": "The application requires a Python minor version for which Harbour has no approved resolver and runtime image." },
|
|
36
|
+
{ "id": "dependency.resolver-unavailable", "retryable": true, "description": "The approved dependency resolver image or restricted registry lane was unavailable." },
|
|
37
|
+
{ "id": "dependency.resolution-failed", "retryable": false, "description": "The application dependency manifest could not be resolved by its approved package manager." },
|
|
38
|
+
{ "id": "dependency.lockfile-stale", "retryable": false, "description": "The final dependency manifest and lockfile disagree after dependency resolution." },
|
|
39
|
+
{ "id": "aurora.bundle-invalid", "retryable": false, "description": "The candidate's Harbour-managed Aurora migration bundle is missing, malformed, or inconsistent." },
|
|
40
|
+
{ "id": "capability.unsupported", "retryable": false, "description": "A required application capability has no supported equivalent under the Harbour platform contract." },
|
|
30
41
|
{ "id": "frontend.env-inlined-unfixable", "retryable": false, "description": "Client code inlined build-time env/self-URLs in a way transformation cannot rewrite." },
|
|
31
42
|
{ "id": "build.recipe-failed", "retryable": false, "description": "The Harbour build recipe failed for the detected runtime." },
|
|
32
43
|
{ "id": "build.image-too-large", "retryable": false, "description": "Built image exceeded the size limit." },
|
|
33
44
|
{ "id": "browser.probe-failed", "retryable": true, "description": "The app built and produced its declared outputs, but the browser probe found it does not serve them — typically assets emitted at the root instead of under the app base path. Retryable because it is fed back to the transform agent, which is the component that can fix it; the merged job retries in-loop and the state machine retries the job. Distinct from build.recipe-failed, which means the build itself did not succeed: here it did." },
|
|
34
|
-
{ "id": "browser.probe-unavailable", "retryable": false, "description": "The browser probe could not reach a verdict — Chromium crashed or disconnected, or it wrote no result document. Says nothing about the app, so it is
|
|
45
|
+
{ "id": "browser.probe-unavailable", "retryable": false, "description": "The browser probe could not reach a verdict — Chromium crashed or disconnected, or it wrote no result document. Says nothing about the app, so it is not fed back to the agent. Replaces the uncategorized.browser-probe token the merged job emitted while this entry did not exist." },
|
|
35
46
|
{ "id": "verify.smoke-failed", "retryable": false, "description": "Candidate smoke/health check failed (boot, routes, storage, secret refs, response shape)." },
|
|
36
47
|
{ "id": "verify.characterization-diverged", "retryable": false, "description": "Post-MVP: recorded req/res replay diverged beyond thresholds." },
|
|
37
48
|
{ "id": "verify.migration-from-zero-failed", "retryable": false, "description": "Post-MVP: from-zero migration chain failed on scratch DB." },
|