@agent-teams/engineering-foundation 1.4.2 → 1.5.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/dist/capabilities/public-api-compatibility/adapters/inbound/authority/growth-authority-contract.d.ts +10 -0
- package/dist/capabilities/public-api-compatibility/adapters/inbound/authority/growth-authority-contract.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/inbound/authority/growth-authority-contract.js +2 -0
- package/dist/capabilities/public-api-compatibility/adapters/inbound/authority/growth-authority-contract.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/crypto/node-change-fingerprint.d.ts +2 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/crypto/node-change-fingerprint.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/crypto/node-change-fingerprint.js +4 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/crypto/node-change-fingerprint.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/artifact-public-api-evidence.d.ts +7 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/artifact-public-api-evidence.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/artifact-public-api-evidence.js +16 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/artifact-public-api-evidence.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.d.ts +6 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.js +22 -2
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.d.ts +3 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.js +10 -7
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-invocation.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-metadata-root-sources.d.ts +13 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-metadata-root-sources.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-metadata-root-sources.js +38 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-metadata-root-sources.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-report-writer.d.ts +3 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-report-writer.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-report-writer.js +17 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/growth-report-writer.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js +6 -2
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-evidence-files.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-evidence-files.js +64 -26
- package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-evidence-files.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/reviewrouter-growth-authority-acl.d.ts +18 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/reviewrouter-growth-authority-acl.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/reviewrouter-growth-authority-acl.js +51 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/reviewrouter-growth-authority-acl.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/strict-json-response.d.ts +5 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/strict-json-response.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/strict-json-response.js +118 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/strict-json-response.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-input-context.d.ts +28 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-input-context.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-input-context.js +163 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-input-context.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.d.ts +8 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.js +59 -0
- package/dist/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/api.d.ts +1 -0
- package/dist/capabilities/public-api-compatibility/api.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/model/growth-admission-context.d.ts +9 -0
- package/dist/capabilities/public-api-compatibility/application/model/growth-admission-context.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/model/growth-authority.d.ts +243 -0
- package/dist/capabilities/public-api-compatibility/application/model/growth-authority.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/model/growth-authority.js +5 -0
- package/dist/capabilities/public-api-compatibility/application/model/growth-authority.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.d.ts +18 -2
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.js +35 -15
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.d.ts +4 -2
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.js +76 -9
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-initial-release.d.ts +15 -0
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-initial-release.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-initial-release.js +26 -0
- package/dist/capabilities/public-api-compatibility/application/policies/evaluate-initial-release.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/normalize-growth-observation.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/normalize-growth-observation.js +2 -1
- package/dist/capabilities/public-api-compatibility/application/policies/normalize-growth-observation.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/project-growth-report.js +47 -19
- package/dist/capabilities/public-api-compatibility/application/policies/project-growth-report.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority-primitives.d.ts +18 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority-primitives.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority-primitives.js +153 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority-primitives.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority.d.ts +24 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority.js +610 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-authority.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-installed-inventory.d.ts +8 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-installed-inventory.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-installed-inventory.js +11 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-installed-inventory.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-metadata-root.d.ts +13 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-metadata-root.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-metadata-root.js +121 -0
- package/dist/capabilities/public-api-compatibility/application/policies/validate-growth-metadata-root.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/ports/change-fingerprint.d.ts +2 -1
- package/dist/capabilities/public-api-compatibility/application/ports/change-fingerprint.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/ports/growth-authority.d.ts +17 -0
- package/dist/capabilities/public-api-compatibility/application/ports/growth-authority.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/ports/growth-authority.js +2 -0
- package/dist/capabilities/public-api-compatibility/application/ports/growth-authority.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/ports/growth-input-context.d.ts +11 -1
- package/dist/capabilities/public-api-compatibility/application/ports/growth-input-context.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-repository.d.ts +6 -0
- package/dist/capabilities/public-api-compatibility/application/ports/public-api-repository.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/admit-sdk-growth.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/admit-sdk-growth.js +31 -5
- package/dist/capabilities/public-api-compatibility/application/use-cases/admit-sdk-growth.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.d.ts +11 -2
- package/dist/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.js +11 -8
- package/dist/capabilities/public-api-compatibility/application/use-cases/check-sdk-growth.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.d.ts +2 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.js +16 -4
- package/dist/capabilities/public-api-compatibility/application/use-cases/preflight-public-api-promotions.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js +9 -7
- package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js.map +1 -1
- package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.d.ts +16 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.js +45 -0
- package/dist/capabilities/public-api-compatibility/application/use-cases/qualify-sdk-growth.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/authority-module.d.ts +30 -0
- package/dist/capabilities/public-api-compatibility/authority-module.d.ts.map +1 -0
- package/dist/capabilities/public-api-compatibility/authority-module.js +142 -0
- package/dist/capabilities/public-api-compatibility/authority-module.js.map +1 -0
- package/dist/capabilities/public-api-compatibility/module.d.ts +16 -0
- package/dist/capabilities/public-api-compatibility/module.d.ts.map +1 -1
- package/dist/capabilities/public-api-compatibility/module.js +6 -6
- package/dist/capabilities/public-api-compatibility/module.js.map +1 -1
- package/dist/composition/quality-coverage.d.ts +1 -1
- package/dist/composition/quality-coverage.d.ts.map +1 -1
- package/dist/composition/sdk-growth-authority.d.ts +13 -0
- package/dist/composition/sdk-growth-authority.d.ts.map +1 -0
- package/dist/composition/sdk-growth-authority.js +19 -0
- package/dist/composition/sdk-growth-authority.js.map +1 -0
- package/dist/features/validation-reporting/api.d.ts +1 -1
- package/dist/features/validation-reporting/api.d.ts.map +1 -1
- package/dist/features/validation-reporting/api.js.map +1 -1
- package/dist/features/validation-reporting/application/model.d.ts +2 -3
- package/dist/features/validation-reporting/application/model.d.ts.map +1 -1
- package/dist/sdk-growth-authority.d.ts +15 -0
- package/dist/sdk-growth-authority.d.ts.map +1 -0
- package/dist/sdk-growth-authority.js +2 -0
- package/dist/sdk-growth-authority.js.map +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GrowthObservationPort } from "../../../application/ports/growth-observation.js";
|
|
2
|
+
import type { ResolvedGrowthInputContextPort } from "../../../application/ports/growth-input-context.js";
|
|
3
|
+
import type { ChangeFingerprint } from "../../../application/ports/change-fingerprint.js";
|
|
4
|
+
/** The trusted observation boundary selects independently verified archive
|
|
5
|
+
* observations. Workspace snapshots supply compatibility evidence only; neither
|
|
6
|
+
* they nor a context payload may rewrite the selected S1 observation. */
|
|
7
|
+
export declare function createVerifiedGrowthObservation(local: GrowthObservationPort, context: ResolvedGrowthInputContextPort, fingerprint?: ChangeFingerprint): GrowthObservationPort;
|
|
8
|
+
//# sourceMappingURL=verified-growth-observation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verified-growth-observation.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAC9F,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AAKzG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAE1F;;yEAEyE;AACzE,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,qBAAqB,EAAE,OAAO,EAAE,8BAA8B,EACnH,WAAW,CAAC,EAAE,iBAAiB,GAAG,qBAAqB,CA8CxD"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { GrowthObservationInvariantError } from "../../../application/model/growth-observation.js";
|
|
2
|
+
import { growthCanonicalJson, normalizeGrowthObservation } from "../../../application/policies/normalize-growth-observation.js";
|
|
3
|
+
import { validateGrowthExecution } from "../../../application/policies/validate-growth-execution.js";
|
|
4
|
+
import { metadataRootObservation } from "../../../application/policies/validate-growth-metadata-root.js";
|
|
5
|
+
/** The trusted observation boundary selects independently verified archive
|
|
6
|
+
* observations. Workspace snapshots supply compatibility evidence only; neither
|
|
7
|
+
* they nor a context payload may rewrite the selected S1 observation. */
|
|
8
|
+
export function createVerifiedGrowthObservation(local, context, fingerprint) {
|
|
9
|
+
return { async observe(invocation, cancellation) {
|
|
10
|
+
const workspace = await local.observe(invocation, cancellation);
|
|
11
|
+
validateGrowthExecution(workspace, invocation);
|
|
12
|
+
if (workspace.surface.status !== "available") {
|
|
13
|
+
return workspace;
|
|
14
|
+
}
|
|
15
|
+
const candidates = context.packedCandidates();
|
|
16
|
+
const roots = context.resolution().grant.metadataRoots;
|
|
17
|
+
if (roots.length > 0 && fingerprint === undefined) {
|
|
18
|
+
throw new GrowthObservationInvariantError("growth-metadata-root-fingerprint-required");
|
|
19
|
+
}
|
|
20
|
+
const metadata = roots.map((root) => metadataRootObservation(root, "candidate", invocation, fingerprint));
|
|
21
|
+
const packages = [...candidates.map((row) => row.packageName), ...roots.map((root) => root.evidence.packageName)].toSorted();
|
|
22
|
+
if (new Set(packages).size !== packages.length
|
|
23
|
+
|| growthCanonicalJson(packages) !== growthCanonicalJson(workspace.surface.value.coverage.map((row) => row.packageName).toSorted())) {
|
|
24
|
+
throw new GrowthObservationInvariantError("growth-authority-candidate-scope-mismatch");
|
|
25
|
+
}
|
|
26
|
+
for (const candidate of candidates) {
|
|
27
|
+
validateGrowthExecution({ identity: invocation, surface: { status: "available", value: candidate.observation }, compatibilitySnapshots: workspace.compatibilitySnapshots.filter((row) => row.packageName === candidate.packageName) }, invocation);
|
|
28
|
+
}
|
|
29
|
+
const value = normalizeGrowthObservation({ ...invocation, contractRevision: "foundation:sdk-growth:c0:5",
|
|
30
|
+
observationVersion: "foundation:sdk-growth:observation:1",
|
|
31
|
+
coverage: [...candidates.flatMap((row) => row.observation.coverage), ...metadata.flatMap((row) => row.coverage)],
|
|
32
|
+
entries: [...candidates.flatMap((row) => row.observation.entries), ...metadata.flatMap((row) => row.entries)] });
|
|
33
|
+
const entries = new Map(value.entries.map((entry) => [growthCanonicalJson(entry.coordinate), entry]));
|
|
34
|
+
const workspaceEntries = new Map(workspace.surface.value.entries.map((entry) => [growthCanonicalJson(entry.coordinate), entry]));
|
|
35
|
+
const coverage = new Map(value.coverage.map((row) => [row.packageName, row]));
|
|
36
|
+
for (const [key, entry] of workspaceEntries) {
|
|
37
|
+
const candidate = entries.get(key);
|
|
38
|
+
if (candidate !== undefined && growthCanonicalJson(candidate.value) !== growthCanonicalJson(entry.value)) {
|
|
39
|
+
throw new GrowthObservationInvariantError("growth-authority-overlapping-observation-mismatch");
|
|
40
|
+
}
|
|
41
|
+
if (candidate === undefined && entry.value.state === "present"
|
|
42
|
+
&& coverage.get(entry.coordinate.packageName)?.dimensions.some((row) => row.dimension === "packed" && row.status === "complete") === true) {
|
|
43
|
+
throw new GrowthObservationInvariantError("growth-authority-packed-absence-mismatch");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
const compatibilitySnapshots = workspace.compatibilitySnapshots.map((row) => {
|
|
47
|
+
const missing = value.entries.filter((entry) => entry.coordinate.packageName === row.packageName && entry.value.state === "present"
|
|
48
|
+
&& !workspaceEntries.has(growthCanonicalJson(entry.coordinate)));
|
|
49
|
+
const unavailable = { status: "unavailable", reasons: ["growth-packed-compatibility-evidence-unavailable"] };
|
|
50
|
+
return { ...row,
|
|
51
|
+
typed: missing.some((entry) => entry.coordinate.subject.kind === "typed") ? { kind: "typed", snapshot: unavailable } : row.typed,
|
|
52
|
+
artifact: missing.some((entry) => entry.coordinate.subject.kind === "data" || entry.coordinate.subject.kind === "wildcard-member")
|
|
53
|
+
? { kind: "artifact", snapshot: unavailable } : row.artifact };
|
|
54
|
+
});
|
|
55
|
+
cancellation.throwIfCancelled();
|
|
56
|
+
return { identity: structuredClone(invocation), surface: { status: "available", value }, compatibilitySnapshots };
|
|
57
|
+
} };
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=verified-growth-observation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verified-growth-observation.js","sourceRoot":"","sources":["../../../../../../src/capabilities/public-api-compatibility/adapters/outbound/reviewrouter/verified-growth-observation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,+DAA+D,CAAC;AAChI,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AACrG,OAAO,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAC;AAGzG;;yEAEyE;AACzE,MAAM,UAAU,+BAA+B,CAAC,KAA4B,EAAE,OAAuC,EACnH,WAA+B;IAC/B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,YAAY;YAC7C,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;YAChE,uBAAuB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;YAC/C,IAAI,SAAS,CAAC,OAAO,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;gBAAC,OAAO,SAAS,CAAC;YAAC,CAAC;YACnE,MAAM,UAAU,GAAG,OAAO,CAAC,g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DAAkD,CAAC,EAAE,CAAC;gBAC9J,OAAO,EAAE,GAAG,GAAG;oBACb,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK;oBAChI,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,KAAK,iBAAiB,CAAC;wBAChI,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;YACrE,CAAC,CAAC,CAAC;YACH,YAAY,CAAC,gBAAgB,EAAE,CAAC;YAChC,OAAO,EAAE,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,sBAAsB,EAAE,CAAC;QACpH,CAAC,EAAE,CAAC;AACN,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type { PublicApiAuditRequest } from "./contract/public-api-audit.js";
|
|
2
2
|
export type { PublicApiAuditReport } from "./application/model/public-api-audit-report.js";
|
|
3
|
+
export type { GrowthDecisionAuthority, GrowthComparison, GrowthTransition, GrowthValueRef, growthPolicyVersion } from "./application/model/growth-admission.js";
|
|
3
4
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/capabilities/public-api-compatibility/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,YAAY,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC"}
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/capabilities/public-api-compatibility/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,YAAY,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,YAAY,EACV,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACpB,MAAM,yCAAyC,CAAC"}
|
package/dist/capabilities/public-api-compatibility/application/model/growth-admission-context.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ export interface GrowthReleasedPackage {
|
|
|
6
6
|
readonly observation?: GrowthEvidence<GrowthSurfaceObservation>;
|
|
7
7
|
readonly policy: PublicApiPackagePolicy;
|
|
8
8
|
readonly releaseEvidence: GrowthEvidence<PackageReleaseEvidence>;
|
|
9
|
+
/** Present only after trusted packed custody has qualified this row. */
|
|
10
|
+
readonly qualification?: {
|
|
11
|
+
readonly receiptDigest: GrowthDigest;
|
|
12
|
+
};
|
|
9
13
|
readonly evidence: {
|
|
10
14
|
readonly kind: "released";
|
|
11
15
|
readonly typed: GrowthEvidence<PublicApiSnapshot>;
|
|
@@ -19,6 +23,11 @@ export interface GrowthReleasedPackage {
|
|
|
19
23
|
* candidate compatibility snapshot is accepted here. Available history denotes
|
|
20
24
|
* a validated exact-target retained receipt, not a caller's initial flag. */
|
|
21
25
|
export interface GrowthInputContext {
|
|
26
|
+
/** Only the authenticated v3 adapter supplies these exact grant qualifications. */
|
|
27
|
+
readonly nonReleaseMetadataRoots?: readonly {
|
|
28
|
+
readonly packageName: string;
|
|
29
|
+
readonly receiptDigest: GrowthDigest;
|
|
30
|
+
}[];
|
|
22
31
|
readonly trustedBase: GrowthEvidence<GrowthSurfaceObservation>;
|
|
23
32
|
readonly trustedBaseReference: GrowthEvidence<GrowthObservationReference>;
|
|
24
33
|
readonly retainedHistory: GrowthEvidence<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"growth-admission-context.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/model/growth-admission-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAClI,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC,wBAAwB,CAAC,CAAC;IAChE,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC,sBAAsB,CAAC,CAAC;IACjE,QAAQ,CAAC,QAAQ,EACb;QAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAA;KAAE,GACtI;QAAE,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,CAAA;KAAE,CAAC;CAC7F;AAED;;6EAE6E;AAC7E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC,wBAAwB,CAAC,CAAC;IAC/D,QAAQ,CAAC,oBAAoB,EAAE,cAAc,CAAC,0BAA0B,CAAC,CAAC;IAC1E,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC;QACvC,QAAQ,CAAC,mBAAmB,EAAE,YAAY,CAAC;QAC3C,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC;KACtC,CAAC,CAAC;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACpD,QAAQ,CAAC,SAAS,EAAE,SAAS,OAAO,EAAE,CAAC;IACvC,QAAQ,CAAC,yBAAyB,EAAE,wBAAwB,CAAC;IAC7D,QAAQ,CAAC,SAAS,EACd;QAAE,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;QAAC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC;QAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAC9H;QAAE,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC;CAC5E;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;QAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,CAC5D;QAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;QAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;KAAE,GAC/D;QAAE,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;QAAC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAA;KAAE,CAC/E,CAAC,EAAE,CAAC;CACN"}
|
|
1
|
+
{"version":3,"file":"growth-admission-context.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/model/growth-admission-context.ts"],"names":[],"mappings":"AAAA,O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2
|
+
import type { GrowthContextRequest, GrowthInputContext } from "./growth-admission-context.js";
|
|
3
|
+
import type { GrowthCoverage, GrowthDigest, GrowthInvocation, GrowthObservationReference, GrowthSurfaceObservation } from "./growth-observation.js";
|
|
4
|
+
import type { PackageReleaseEvidence, PublicApiSnapshot } from "./public-api.js";
|
|
5
|
+
/** Version 3 distinguishes authenticated non-release metadata roots from
|
|
6
|
+
* package release obligations. Prior protocol bytes are not reinterpreted. */
|
|
7
|
+
export declare const growthAuthoritySchemaVersion: "reviewrouter:sdk-growth-authority:3";
|
|
8
|
+
export declare const growthAuthorityRequiredPhases: readonly ["topology", "observation", "packed", "decision", "trusted-base", "released", "authority"];
|
|
9
|
+
export interface GrowthAuthorityRepository {
|
|
10
|
+
readonly provider: string;
|
|
11
|
+
readonly repositoryId: string;
|
|
12
|
+
readonly owner: string;
|
|
13
|
+
readonly name: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GrowthAuthorityOwnerEvidence extends GrowthDecisionAuthority {
|
|
16
|
+
readonly authenticatedSubjectId: string;
|
|
17
|
+
readonly authorizationEvidenceDigest: GrowthDigest;
|
|
18
|
+
readonly approvalEvidenceDigest: GrowthDigest;
|
|
19
|
+
readonly sourceBindingDigest: GrowthDigest;
|
|
20
|
+
}
|
|
21
|
+
export interface GrowthAuthoritySource {
|
|
22
|
+
readonly commit: string;
|
|
23
|
+
readonly tree: string;
|
|
24
|
+
}
|
|
25
|
+
export interface GrowthAuthorityTarget {
|
|
26
|
+
readonly repository: GrowthAuthorityRepository;
|
|
27
|
+
readonly pullRequestNumber: number;
|
|
28
|
+
readonly head: GrowthAuthoritySource;
|
|
29
|
+
readonly base: GrowthAuthoritySource;
|
|
30
|
+
readonly mergeBase: GrowthAuthoritySource;
|
|
31
|
+
readonly evaluation: GrowthAuthoritySource;
|
|
32
|
+
readonly evaluationKind: "head" | "merge-result" | "release-preimage";
|
|
33
|
+
}
|
|
34
|
+
export interface GrowthAuthorityBinding {
|
|
35
|
+
readonly invocation: GrowthInvocation;
|
|
36
|
+
readonly target: GrowthAuthorityTarget;
|
|
37
|
+
readonly verifier: {
|
|
38
|
+
readonly identity: string;
|
|
39
|
+
readonly immutableRevision: string;
|
|
40
|
+
readonly artifactDigest: GrowthDigest;
|
|
41
|
+
};
|
|
42
|
+
readonly tool: {
|
|
43
|
+
readonly packageName: "@agent-teams/engineering-foundation";
|
|
44
|
+
readonly version: string;
|
|
45
|
+
readonly archiveDigest: GrowthDigest;
|
|
46
|
+
readonly archiveIntegrity: string;
|
|
47
|
+
readonly distributionDigest: GrowthDigest;
|
|
48
|
+
readonly extractorVersion: string;
|
|
49
|
+
};
|
|
50
|
+
readonly policy: {
|
|
51
|
+
readonly contractRevision: "foundation:sdk-growth:c0:5";
|
|
52
|
+
readonly policyVersion: "foundation:sdk-growth:policy:1";
|
|
53
|
+
readonly enrollmentRevision: string;
|
|
54
|
+
readonly configurationDigest: GrowthDigest;
|
|
55
|
+
readonly scopeDigest: GrowthDigest;
|
|
56
|
+
readonly commandDigest: GrowthDigest;
|
|
57
|
+
};
|
|
58
|
+
readonly historyDigest: GrowthDigest;
|
|
59
|
+
readonly evidenceManifestDigest: GrowthDigest;
|
|
60
|
+
}
|
|
61
|
+
export interface GrowthAuthorityRequest {
|
|
62
|
+
readonly schemaVersion: typeof growthAuthoritySchemaVersion;
|
|
63
|
+
readonly kind: "request";
|
|
64
|
+
readonly operation: "check" | "promote-release";
|
|
65
|
+
readonly admissionReceiptId: string | null;
|
|
66
|
+
readonly binding: GrowthAuthorityBinding;
|
|
67
|
+
readonly contextSelectors: GrowthContextRequest;
|
|
68
|
+
readonly decisionDigests: readonly GrowthDigest[];
|
|
69
|
+
readonly requiredPhases: typeof growthAuthorityRequiredPhases;
|
|
70
|
+
}
|
|
71
|
+
export interface GrowthAuthorityReleasedEvidence {
|
|
72
|
+
readonly packageName: string;
|
|
73
|
+
readonly releaseEvidence: PackageReleaseEvidence;
|
|
74
|
+
readonly observation?: GrowthSurfaceObservation;
|
|
75
|
+
readonly evidence: {
|
|
76
|
+
readonly kind: "released";
|
|
77
|
+
readonly typed: PublicApiSnapshot;
|
|
78
|
+
readonly artifact: PublicApiSnapshot;
|
|
79
|
+
} | {
|
|
80
|
+
readonly kind: "initial-unreleased";
|
|
81
|
+
readonly historyDigest: GrowthDigest;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/** Closed evidence for bytes that were actually packed and installed. The
|
|
85
|
+
* observation is separately digested so API-equivalent but byte-distinct
|
|
86
|
+
* archives retain distinct identities. */
|
|
87
|
+
export interface GrowthAuthorityPackedEvidence {
|
|
88
|
+
readonly packageName: string;
|
|
89
|
+
readonly packageVersion: string;
|
|
90
|
+
readonly source: GrowthAuthoritySource;
|
|
91
|
+
readonly archiveDigest: GrowthDigest;
|
|
92
|
+
readonly archiveIntegrity: string;
|
|
93
|
+
readonly observation: GrowthSurfaceObservation;
|
|
94
|
+
readonly observationDigest: GrowthDigest;
|
|
95
|
+
readonly coverage: GrowthCoverage;
|
|
96
|
+
readonly custodyEvidenceDigest: GrowthDigest;
|
|
97
|
+
readonly custodyEvidence: {
|
|
98
|
+
readonly archiveDigest: GrowthDigest;
|
|
99
|
+
readonly archiveIntegrity: string;
|
|
100
|
+
readonly archivePayload: string;
|
|
101
|
+
readonly archiveManifest: readonly {
|
|
102
|
+
readonly path: string;
|
|
103
|
+
readonly digest: GrowthDigest;
|
|
104
|
+
}[];
|
|
105
|
+
readonly installedFiles: readonly {
|
|
106
|
+
readonly path: string;
|
|
107
|
+
readonly digest: GrowthDigest;
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
110
|
+
readonly installedDistribution: {
|
|
111
|
+
readonly packageName: string;
|
|
112
|
+
readonly packageVersion: string;
|
|
113
|
+
readonly source: GrowthAuthoritySource;
|
|
114
|
+
readonly archiveDigest: GrowthDigest;
|
|
115
|
+
readonly archiveIntegrity: string;
|
|
116
|
+
readonly observationDigest: GrowthDigest;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
/** Consumer-owned classification, retained at both exact source checkpoints.
|
|
120
|
+
* These are source bytes, never a package archive or a release baseline. */
|
|
121
|
+
export interface GrowthAuthorityMetadataRoot {
|
|
122
|
+
readonly evidence: {
|
|
123
|
+
readonly kind: "non-release-metadata-root";
|
|
124
|
+
readonly packageName: string;
|
|
125
|
+
readonly rootPath: ".";
|
|
126
|
+
readonly manifestPath: "package.json";
|
|
127
|
+
readonly classificationPath: string;
|
|
128
|
+
readonly historyDigest: GrowthDigest;
|
|
129
|
+
readonly base: GrowthMetadataRootSource;
|
|
130
|
+
readonly candidate: GrowthMetadataRootSource;
|
|
131
|
+
};
|
|
132
|
+
readonly evidenceDigest: GrowthDigest;
|
|
133
|
+
readonly ownerEvidence: GrowthAuthorityOwnerEvidence;
|
|
134
|
+
}
|
|
135
|
+
export interface GrowthMetadataRootSource {
|
|
136
|
+
readonly source: GrowthAuthoritySource;
|
|
137
|
+
readonly manifestBytes: string;
|
|
138
|
+
readonly workspaceBytes: string;
|
|
139
|
+
readonly classificationBytes: string;
|
|
140
|
+
}
|
|
141
|
+
export interface GrowthAuthorityGrant {
|
|
142
|
+
readonly schemaVersion: typeof growthAuthoritySchemaVersion;
|
|
143
|
+
readonly kind: "grant";
|
|
144
|
+
readonly grantId: string;
|
|
145
|
+
readonly requestDigest: GrowthDigest;
|
|
146
|
+
readonly admissionReceipt: {
|
|
147
|
+
readonly kind: "none";
|
|
148
|
+
} | {
|
|
149
|
+
readonly kind: "receipt";
|
|
150
|
+
readonly receipt: GrowthAuthorityReceipt;
|
|
151
|
+
};
|
|
152
|
+
readonly binding: GrowthAuthorityBinding;
|
|
153
|
+
readonly workflowRef: string;
|
|
154
|
+
readonly runRef: string;
|
|
155
|
+
readonly issuedAt: string;
|
|
156
|
+
readonly expiresAt: string;
|
|
157
|
+
readonly trustedBase: GrowthSurfaceObservation;
|
|
158
|
+
readonly trustedBaseReference: GrowthObservationReference;
|
|
159
|
+
readonly retainedHistory: {
|
|
160
|
+
readonly targetSource: GrowthAuthoritySource;
|
|
161
|
+
readonly targetSurfaceDigest: GrowthDigest;
|
|
162
|
+
readonly receiptDigest: GrowthDigest;
|
|
163
|
+
readonly custodyEvidenceDigest: GrowthDigest;
|
|
164
|
+
readonly custodyEvidence: GrowthAuthorityPackedEvidence["custodyEvidence"];
|
|
165
|
+
};
|
|
166
|
+
readonly released: readonly GrowthAuthorityReleasedEvidence[];
|
|
167
|
+
readonly ownerEvidence: readonly GrowthAuthorityOwnerEvidence[];
|
|
168
|
+
/** Historical released archives. Initial-unreleased rows have no entry. */
|
|
169
|
+
readonly archives: readonly GrowthAuthorityPackedEvidence[];
|
|
170
|
+
/** Candidate archives, including every initial-unreleased package. */
|
|
171
|
+
readonly candidates: readonly GrowthAuthorityPackedEvidence[];
|
|
172
|
+
readonly metadataRoots: readonly GrowthAuthorityMetadataRoot[];
|
|
173
|
+
readonly requiredCoverageDigest: GrowthDigest;
|
|
174
|
+
readonly requiredPhases: typeof growthAuthorityRequiredPhases;
|
|
175
|
+
}
|
|
176
|
+
export interface GrowthPromotionPlan {
|
|
177
|
+
readonly binding: GrowthAuthorityBinding;
|
|
178
|
+
readonly writes: readonly {
|
|
179
|
+
readonly destination: string;
|
|
180
|
+
readonly operation: "create" | "replace";
|
|
181
|
+
readonly preimageDigest: GrowthDigest | null;
|
|
182
|
+
readonly proposedDigest: GrowthDigest;
|
|
183
|
+
}[];
|
|
184
|
+
}
|
|
185
|
+
export interface GrowthAuthorityCompletion {
|
|
186
|
+
readonly schemaVersion: typeof growthAuthoritySchemaVersion;
|
|
187
|
+
readonly kind: "completion";
|
|
188
|
+
readonly grantId: string;
|
|
189
|
+
readonly grantDigest: GrowthDigest;
|
|
190
|
+
readonly requestDigest: GrowthDigest;
|
|
191
|
+
readonly binding: GrowthAuthorityBinding;
|
|
192
|
+
readonly reportDigest: GrowthDigest;
|
|
193
|
+
readonly reportByteLength: number;
|
|
194
|
+
readonly coverageDigest: GrowthDigest;
|
|
195
|
+
readonly phasesDigest: GrowthDigest;
|
|
196
|
+
readonly verdict: "admitted" | "rejected" | "incomplete";
|
|
197
|
+
readonly releaseEligible: boolean;
|
|
198
|
+
readonly publication: "finalized";
|
|
199
|
+
readonly promotion: {
|
|
200
|
+
readonly kind: "none";
|
|
201
|
+
} | {
|
|
202
|
+
readonly kind: "plan";
|
|
203
|
+
readonly planDigest: GrowthDigest;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
export interface GrowthAuthorityReceipt {
|
|
207
|
+
readonly schemaVersion: typeof growthAuthoritySchemaVersion;
|
|
208
|
+
readonly kind: "receipt";
|
|
209
|
+
readonly receiptId: string;
|
|
210
|
+
readonly grantId: string;
|
|
211
|
+
readonly grantDigest: GrowthDigest;
|
|
212
|
+
readonly completionDigest: GrowthDigest;
|
|
213
|
+
/** Digest of the exact request that originated this operation. */
|
|
214
|
+
readonly requestDigest: GrowthDigest;
|
|
215
|
+
readonly binding: GrowthAuthorityBinding;
|
|
216
|
+
readonly reportDigest: GrowthDigest;
|
|
217
|
+
readonly coverageDigest: GrowthDigest;
|
|
218
|
+
readonly phasesDigest: GrowthDigest;
|
|
219
|
+
readonly verdict: "admitted" | "rejected" | "incomplete";
|
|
220
|
+
readonly releaseEligible: boolean;
|
|
221
|
+
readonly qualification: "qualified" | "not-qualified";
|
|
222
|
+
readonly operation: "check" | "promote-release";
|
|
223
|
+
readonly promotion: {
|
|
224
|
+
readonly kind: "none";
|
|
225
|
+
} | {
|
|
226
|
+
readonly kind: "plan";
|
|
227
|
+
readonly planDigest: GrowthDigest;
|
|
228
|
+
};
|
|
229
|
+
readonly custodyRef: string;
|
|
230
|
+
readonly issuedAt: string;
|
|
231
|
+
readonly provenance?: {
|
|
232
|
+
readonly grant: GrowthAuthorityGrant;
|
|
233
|
+
readonly completion: GrowthAuthorityCompletion;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
export interface ResolvedGrowthAuthority {
|
|
237
|
+
readonly request: GrowthAuthorityRequest;
|
|
238
|
+
readonly requestDigest: GrowthDigest;
|
|
239
|
+
readonly grant: GrowthAuthorityGrant;
|
|
240
|
+
readonly grantDigest: GrowthDigest;
|
|
241
|
+
readonly context: GrowthInputContext;
|
|
242
|
+
}
|
|
243
|
+
//# sourceMappingURL=growth-authority.d.ts.map
|
package/dist/capabilities/public-api-compatibility/application/model/growth-authority.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"growth-authority.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/model/growth-authority.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACpJ,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEjF;8EAC8E;AAC9E,eAAO,MAAM,4BAA4B,EAAG,qCAA8C,CAAC;AAC3F,eAAO,MAAM,6BAA6B,YAAI,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,CAAU,CAAC;AAEjJ,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA6B,SAAQ,uBAAuB;IAC3E,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,2BAA2B,EAAE,YAAY,CAAC;IACnD,QAAQ,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interpreted. */
|
|
3
|
+
export const growthAuthoritySchemaVersion = "reviewrouter:sdk-growth-authority:3";
|
|
4
|
+
export const growthAuthorityRequiredPhases = ["topology", "observation", "packed", "decision", "trusted-base", "released", "authority"];
|
|
5
|
+
//# sourceMappingURL=growth-authority.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"growth-authority.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/model/growth-authority.ts"],"names":[],"mappings":"AAKA;8EAC8E;AAC9E,MAAM,CAAC,MAAM,4BAA4B,GAAG,qCAA8C,CAAC;AAC3F,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,CAAU,CAAC"}
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
import type { GrowthAdmissionResult, GrowthComparison, GrowthDecision, GrowthDecisionAuthority } from "../model/growth-admission.js";
|
|
1
|
+
import type { GrowthAdmissionDiagnostic, GrowthAdmissionResult, GrowthComparison, GrowthDecision, GrowthDecisionAuthority } from "../model/growth-admission.js";
|
|
2
2
|
import type { GrowthDigest } from "../model/growth-observation.js";
|
|
3
3
|
import type { ChangeFingerprint } from "../ports/change-fingerprint.js";
|
|
4
|
-
export declare function growthDecisionDigest(decision:
|
|
4
|
+
export declare function growthDecisionDigest(decision: unknown, fingerprint: ChangeFingerprint): GrowthDigest;
|
|
5
|
+
export interface PreparedGrowthDecisions {
|
|
6
|
+
readonly budgetExceeded: boolean;
|
|
7
|
+
/** Every structurally valid original, including duplicate IDs. */
|
|
8
|
+
readonly decisions: readonly {
|
|
9
|
+
readonly decision: GrowthDecision;
|
|
10
|
+
readonly authorityEligible: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
/** The only proposals for which external authority may be requested. */
|
|
13
|
+
readonly authorityCandidates: readonly GrowthDecision[];
|
|
14
|
+
readonly diagnostics: readonly GrowthAdmissionDiagnostic[];
|
|
15
|
+
}
|
|
16
|
+
/** Shared bounded preparation for ordinary admission and trusted authority.
|
|
17
|
+
* No decision is hashed until the complete raw collection is within budget.
|
|
18
|
+
* Malformed and duplicate originals remain visible to admission diagnostics,
|
|
19
|
+
* while only valid unique IDs may be sent to an authority provider. */
|
|
20
|
+
export declare function prepareGrowthDecisions(rawDecisions: readonly unknown[]): PreparedGrowthDecisions;
|
|
5
21
|
/** Exact PR admission only. The independent released policy's failure is final;
|
|
6
22
|
* authority must bind the entire normalized decision, not merely its ID. */
|
|
7
23
|
export declare function evaluateGrowthAdmission(input: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluate-growth-admission.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"evaluate-growth-admission.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,cAAc,EAAE,uBAAuB,EAAoB,MAAM,8BAA8B,CAAC;AAElL,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAaxE,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,iBAAiB,GAAG,YAAY,CAEpG;AAqDD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,kEAAkE;IAClE,QAAQ,CAAC,SAAS,EAAE,SAAS;QAC3B,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;QAClC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;KACrC,EAAE,CAAC;IACJ,wEAAwE;IACxE,QAAQ,CAAC,mBAAmB,EAAE,SAAS,cAAc,EAAE,CAAC;IACxD,QAAQ,CAAC,WAAW,EAAE,SAAS,yBAAyB,EAAE,CAAC;CAC5D;AAED;;;uEAGuE;AACvE,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,SAAS,OAAO,EAAE,GAAG,uBAAuB,CAoChG;AAED;4EAC4E;AAC5E,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,SAAS,OAAO,EAAE,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,SAAS,uBAAuB,EAAE,CAAC;IACvD,QAAQ,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;CAChE,EAAE,WAAW,EAAE,iBAAiB,GAAG,qBAAqB,CAyCxD"}
|
package/dist/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.js
CHANGED
|
@@ -70,13 +70,18 @@ function withinDecisionBudget(rawDecisions) {
|
|
|
70
70
|
}
|
|
71
71
|
return true;
|
|
72
72
|
}
|
|
73
|
-
/**
|
|
74
|
-
|
|
73
|
+
/** Shared bounded preparation for ordinary admission and trusted authority.
|
|
74
|
+
* No decision is hashed until the complete raw collection is within budget.
|
|
75
|
+
* Malformed and duplicate originals remain visible to admission diagnostics,
|
|
76
|
+
* while only valid unique IDs may be sent to an authority provider. */
|
|
77
|
+
export function prepareGrowthDecisions(rawDecisions) {
|
|
75
78
|
if (!withinDecisionBudget(rawDecisions)) {
|
|
76
|
-
return
|
|
79
|
+
return { budgetExceeded: true, decisions: [], authorityCandidates: [], diagnostics: decisionBudgetExhausted().diagnostics };
|
|
77
80
|
}
|
|
81
|
+
const diagnostics = [];
|
|
78
82
|
const decisions = [];
|
|
79
83
|
const counts = new Map();
|
|
84
|
+
const claimCounts = new Map();
|
|
80
85
|
for (const raw of rawDecisions) {
|
|
81
86
|
let decision;
|
|
82
87
|
try {
|
|
@@ -89,6 +94,9 @@ function prepareDecisions(rawDecisions, diagnostics) {
|
|
|
89
94
|
}
|
|
90
95
|
decisions.push(decision);
|
|
91
96
|
counts.set(decision.decisionId, (counts.get(decision.decisionId) ?? 0) + 1);
|
|
97
|
+
for (const claim of decision.transitions) {
|
|
98
|
+
claimCounts.set(claim, (claimCounts.get(claim) ?? 0) + 1);
|
|
99
|
+
}
|
|
92
100
|
}
|
|
93
101
|
for (const [id, occurrences] of counts) {
|
|
94
102
|
if (occurrences > 1) {
|
|
@@ -96,8 +104,16 @@ function prepareDecisions(rawDecisions, diagnostics) {
|
|
|
96
104
|
remediation: "Use one exact decision record per decision ID." });
|
|
97
105
|
}
|
|
98
106
|
}
|
|
99
|
-
|
|
100
|
-
.
|
|
107
|
+
const overlapping = new Set(decisions
|
|
108
|
+
.filter((decision) => decision.transitions.some((claim) => (claimCounts.get(claim) ?? 0) > 1))
|
|
109
|
+
.map((decision) => decision.decisionId));
|
|
110
|
+
const prepared = decisions.map((decision) => ({
|
|
111
|
+
decision,
|
|
112
|
+
authorityEligible: counts.get(decision.decisionId) === 1 && !overlapping.has(decision.decisionId)
|
|
113
|
+
})).toSorted((left, right) => compareGrowthStrings(left.decision.decisionId, right.decision.decisionId));
|
|
114
|
+
return { budgetExceeded: false, decisions: prepared,
|
|
115
|
+
authorityCandidates: prepared.filter((entry) => entry.authorityEligible).map((entry) => entry.decision),
|
|
116
|
+
diagnostics };
|
|
101
117
|
}
|
|
102
118
|
/** Exact PR admission only. The independent released policy's failure is final;
|
|
103
119
|
* authority must bind the entire normalized decision, not merely its ID. */
|
|
@@ -116,24 +132,28 @@ export function evaluateGrowthAdmission(input, fingerprint) {
|
|
|
116
132
|
const transitions = validateTransitions(input.comparison.status === "complete" ? input.comparison.transitions : input.comparison.findings, fingerprint);
|
|
117
133
|
const actual = new Map(transitions.map((entry) => [entry.fingerprint, entry]));
|
|
118
134
|
const claimed = new Set(), admitted = new Set();
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
135
|
+
const prepared = prepareGrowthDecisions(input.decisions);
|
|
136
|
+
if (prepared.budgetExceeded) {
|
|
121
137
|
return decisionBudgetExhausted();
|
|
122
138
|
}
|
|
123
|
-
|
|
124
|
-
|
|
139
|
+
diagnostics.push(...prepared.diagnostics);
|
|
140
|
+
const authorityRows = growthUniqueSorted(input.authority, (entry) => entry.decisionId);
|
|
141
|
+
const authorities = new Map(authorityRows.map((entry) => [entry.decisionId, entry]));
|
|
142
|
+
for (const { decision, authorityEligible } of prepared.decisions) {
|
|
125
143
|
const subject = decision.decisionId;
|
|
126
144
|
const exactDiagnostics = exactDecisionDiagnostics(decision, actual, claimed, fingerprint);
|
|
127
145
|
diagnostics.push(...exactDiagnostics);
|
|
128
|
-
let valid = exactDiagnostics.length === 0;
|
|
146
|
+
let valid = exactDiagnostics.length === 0 && authorityEligible;
|
|
129
147
|
for (const entry of decision.transitions) {
|
|
130
148
|
claimed.add(entry);
|
|
131
149
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
150
|
+
if (authorityEligible) {
|
|
151
|
+
const authority = authorities.get(subject);
|
|
152
|
+
if (authority?.ownerRef !== decision.ownerRef || authority.decisionDigest !== growthDecisionDigest(decision, fingerprint)) {
|
|
153
|
+
add("growth-owner-evidence-unavailable", subject, "Supply independently validated owner evidence binding this complete decision and its exact transitions.");
|
|
154
|
+
incomplete = true;
|
|
155
|
+
valid = false;
|
|
156
|
+
}
|
|
137
157
|
}
|
|
138
158
|
if (valid) {
|
|
139
159
|
for (const entry of decision.transitions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluate-growth-admission.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAEjF,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAClH,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,+EAA+E;AAC/E,SAAS,uBAAuB,CAAC,KAAc;IAC7C,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,+BAA+B,CAAC,2BAA2B,CAAC,CAAC;IAAC,CAAC;IACzG,OAAO,EAAE,GAAG,KAAK;QACf,WAAW,EAAE,kBAAkB,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC;QACpE,WAAW,EAAE,kBAAkB,CAAC,KAAK,CAAC,WAAW,EAAE,mBAAmB,CAAC;QACvE,oBAAoB,EAAE,kBAAkB,CAAC,KAAK,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,EAAE,CAAC;AAChG,CAAC;AACD,MAAM,UAAU,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"evaluate-growth-admission.js","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/policies/evaluate-growth-admission.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAEjF,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAClH,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,+EAA+E;AAC/E,SAAS,uBAAuB,CAAC,KAAc;IAC7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5D,CAAC"}
|
|
@@ -9,12 +9,14 @@ export interface GrowthReleaseCompatibilityResult {
|
|
|
9
9
|
readonly reasons: readonly string[];
|
|
10
10
|
}
|
|
11
11
|
/** Existing v1 comparator and SemVer policy on each original snapshot branch.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* An initial history value needs the trusted S3 adapter's receipt qualification.
|
|
13
|
+
* It proves absence of published compatibility obligations; it does
|
|
14
|
+
* not synthesize a v1 baseline or waive first-surface admission. */
|
|
14
15
|
export declare function evaluateGrowthReleaseCompatibility(input: {
|
|
15
16
|
readonly current: readonly GrowthCompatibilityPackage[];
|
|
16
17
|
readonly released: readonly GrowthReleasedPackage[];
|
|
17
18
|
readonly extractorVersion: string;
|
|
18
19
|
readonly acceptedDecisions: AcceptedDecisionEvidence;
|
|
20
|
+
readonly authorityReceiptDigest?: string;
|
|
19
21
|
}, fingerprint: ChangeFingerprint): GrowthReleaseCompatibilityResult;
|
|
20
22
|
//# sourceMappingURL=evaluate-growth-release-compatibility.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluate-growth-release-compatibility.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,KAAK,EAAE,0BAA0B,EAAkB,MAAM,gCAAgC,CAAC;AAEjG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"evaluate-growth-release-compatibility.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/public-api-compatibility/application/policies/evaluate-growth-release-compatibility.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,KAAK,EAAE,0BAA0B,EAAkB,MAAM,gCAAgC,CAAC;AAEjG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAOxE,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;IACxD,QAAQ,CAAC,WAAW,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACtD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AA0ED;;;oEAGoE;AACpE,wBAAgB,kCAAkC,CAAC,KAAK,EAAE;IACxD,QAAQ,CAAC,OAAO,EAAE,SAAS,0BAA0B,EAAE,CAAC;IACxD,QAAQ,CAAC,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACpD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;IACrD,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CAC1C,EAAE,WAAW,EAAE,iBAAiB,GAAG,gCAAgC,CAyCnE"}
|