@nextcommerce/campaigns-os 1.33.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/AGENTS.md +204 -0
- package/CHANGELOG.md +5002 -0
- package/CONTEXT.md +685 -0
- package/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +368 -0
- package/agents/claude/CLAUDE.md +32 -0
- package/agents/codex/AGENTS.md +27 -0
- package/agents/copilot/copilot-instructions.md +14 -0
- package/agents/cursor/campaigns-os.mdc +13 -0
- package/bin/campaigns-os.mjs +38 -0
- package/campaign-spec/README.md +138 -0
- package/campaign-spec/dist/analytics-vocabulary.d.ts +47 -0
- package/campaign-spec/dist/analytics-vocabulary.js +74 -0
- package/campaign-spec/dist/index.d.ts +40 -0
- package/campaign-spec/dist/index.js +77 -0
- package/campaign-spec/dist/normalize.d.ts +22 -0
- package/campaign-spec/dist/normalize.js +41 -0
- package/campaign-spec/dist/routing.d.ts +190 -0
- package/campaign-spec/dist/routing.js +263 -0
- package/campaign-spec/dist/rules/analytics-contract-shape.d.ts +42 -0
- package/campaign-spec/dist/rules/analytics-contract-shape.js +303 -0
- package/campaign-spec/dist/rules/assembly-hints-shape.d.ts +42 -0
- package/campaign-spec/dist/rules/assembly-hints-shape.js +191 -0
- package/campaign-spec/dist/rules/campaign-metadata.d.ts +14 -0
- package/campaign-spec/dist/rules/campaign-metadata.js +40 -0
- package/campaign-spec/dist/rules/checkout-has-success-url.d.ts +31 -0
- package/campaign-spec/dist/rules/checkout-has-success-url.js +66 -0
- package/campaign-spec/dist/rules/cycle-detection.d.ts +12 -0
- package/campaign-spec/dist/rules/cycle-detection.js +141 -0
- package/campaign-spec/dist/rules/design-source-shape.d.ts +29 -0
- package/campaign-spec/dist/rules/design-source-shape.js +142 -0
- package/campaign-spec/dist/rules/downsell-without-upsell.d.ts +11 -0
- package/campaign-spec/dist/rules/downsell-without-upsell.js +40 -0
- package/campaign-spec/dist/rules/exit-intent-validation.d.ts +23 -0
- package/campaign-spec/dist/rules/exit-intent-validation.js +147 -0
- package/campaign-spec/dist/rules/funnel-count.d.ts +9 -0
- package/campaign-spec/dist/rules/funnel-count.js +37 -0
- package/campaign-spec/dist/rules/funnel-hypothesis-length.d.ts +22 -0
- package/campaign-spec/dist/rules/funnel-hypothesis-length.js +60 -0
- package/campaign-spec/dist/rules/funnel-identity.d.ts +15 -0
- package/campaign-spec/dist/rules/funnel-identity.js +57 -0
- package/campaign-spec/dist/rules/funnel-weight-sum.d.ts +20 -0
- package/campaign-spec/dist/rules/funnel-weight-sum.js +66 -0
- package/campaign-spec/dist/rules/index.d.ts +69 -0
- package/campaign-spec/dist/rules/index.js +131 -0
- package/campaign-spec/dist/rules/offer-ref-integrity.d.ts +13 -0
- package/campaign-spec/dist/rules/offer-ref-integrity.js +59 -0
- package/campaign-spec/dist/rules/package-pricing-sanity.d.ts +12 -0
- package/campaign-spec/dist/rules/package-pricing-sanity.js +42 -0
- package/campaign-spec/dist/rules/page-count.d.ts +11 -0
- package/campaign-spec/dist/rules/page-count.js +31 -0
- package/campaign-spec/dist/rules/page-id-uniqueness.d.ts +14 -0
- package/campaign-spec/dist/rules/page-id-uniqueness.js +47 -0
- package/campaign-spec/dist/rules/promo-code-input-validation.d.ts +8 -0
- package/campaign-spec/dist/rules/promo-code-input-validation.js +126 -0
- package/campaign-spec/dist/rules/promo-codes-shape.d.ts +30 -0
- package/campaign-spec/dist/rules/promo-codes-shape.js +187 -0
- package/campaign-spec/dist/rules/route-field-ignored-for-page-type.d.ts +33 -0
- package/campaign-spec/dist/rules/route-field-ignored-for-page-type.js +81 -0
- package/campaign-spec/dist/rules/route-target-resolves.d.ts +32 -0
- package/campaign-spec/dist/rules/route-target-resolves.js +112 -0
- package/campaign-spec/dist/rules/schema-version.d.ts +21 -0
- package/campaign-spec/dist/rules/schema-version.js +53 -0
- package/campaign-spec/dist/rules/sdk-version.d.ts +26 -0
- package/campaign-spec/dist/rules/sdk-version.js +96 -0
- package/campaign-spec/dist/rules/shipping-countries-shape.d.ts +10 -0
- package/campaign-spec/dist/rules/shipping-countries-shape.js +30 -0
- package/campaign-spec/dist/rules/shipping-methods-present.d.ts +10 -0
- package/campaign-spec/dist/rules/shipping-methods-present.js +26 -0
- package/campaign-spec/dist/rules/store-profile-shape.d.ts +30 -0
- package/campaign-spec/dist/rules/store-profile-shape.js +127 -0
- package/campaign-spec/dist/rules/thank-you-requirement.d.ts +16 -0
- package/campaign-spec/dist/rules/thank-you-requirement.js +50 -0
- package/campaign-spec/dist/rules/unknown-top-level-fields.d.ts +28 -0
- package/campaign-spec/dist/rules/unknown-top-level-fields.js +114 -0
- package/campaign-spec/dist/rules/upsell-has-packages.d.ts +9 -0
- package/campaign-spec/dist/rules/upsell-has-packages.js +35 -0
- package/campaign-spec/dist/rules/upsell-routing-complete.d.ts +10 -0
- package/campaign-spec/dist/rules/upsell-routing-complete.js +45 -0
- package/campaign-spec/dist/rules/upsell-without-checkout.d.ts +11 -0
- package/campaign-spec/dist/rules/upsell-without-checkout.js +44 -0
- package/campaign-spec/dist/rules/variant-labels-shape.d.ts +28 -0
- package/campaign-spec/dist/rules/variant-labels-shape.js +86 -0
- package/campaign-spec/dist/sdk-version-parse.d.ts +43 -0
- package/campaign-spec/dist/sdk-version-parse.js +62 -0
- package/campaign-spec/dist/types.d.ts +674 -0
- package/campaign-spec/dist/types.js +40 -0
- package/campaign-spec/package.json +12 -0
- package/compatibility.json +25 -0
- package/contracts/agent-relevant-change-policy.v1.json +111 -0
- package/contracts/brand-theme-source-defaults.figma-sections-export.v0.json +32 -0
- package/contracts/brand-theme-target-tokens.next-core.v0.json +65 -0
- package/contracts/campaign-cart-checkout-field-contract.v0.json +45 -0
- package/contracts/campaign-cart-sdk-support-policy.v0.json +11 -0
- package/contracts/commerce-surface-catalog.json +2452 -0
- package/contracts/fixtures/orientation/canonicalization/v1.json +34 -0
- package/contracts/fixtures/orientation/envelope/current.json +95 -0
- package/contracts/fixtures/orientation/envelope/freshness_unknown.json +97 -0
- package/contracts/fixtures/orientation/envelope/legacy_baseline.json +95 -0
- package/contracts/fixtures/orientation/envelope/orientation_available.json +136 -0
- package/contracts/fixtures/orientation/envelope/recovered_interrupted_update.json +136 -0
- package/contracts/fixtures/orientation/envelope/refused.json +100 -0
- package/contracts/fixtures/orientation/envelope/restart_required.json +137 -0
- package/contracts/fixtures/orientation/envelope/updated.json +135 -0
- package/contracts/fixtures/orientation/hostile-target/README.md +61 -0
- package/contracts/fixtures/orientation/hostile-target/manifest.json +82 -0
- package/contracts/fixtures/orientation/hostile-target/repo/CHANGELOG.md +18 -0
- package/contracts/fixtures/orientation/hostile-target/repo/bin/intended.mjs +12 -0
- package/contracts/fixtures/orientation/hostile-target/repo/bin/tripwire.mjs +15 -0
- package/contracts/fixtures/orientation/hostile-target/repo/contracts/release-ledger.json +48 -0
- package/contracts/fixtures/orientation/hostile-target/repo/contracts/supported-surface.json +17 -0
- package/contracts/fixtures/orientation/hostile-target/repo/docs/example-contract.md +13 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hooks/post-checkout +5 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hooks/post-merge +5 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hooks/pre-commit +5 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hostile-dependency-tripwire/package.json +15 -0
- package/contracts/fixtures/orientation/hostile-target/repo/hostile-dependency-tripwire/tripwire.mjs +9 -0
- package/contracts/fixtures/orientation/hostile-target/repo/package.json +20 -0
- package/contracts/fixtures/orientation/hostile-target/repo/schemas/example.v0.schema.json +15 -0
- package/contracts/fixtures/orientation/release-gate/cases.json +1073 -0
- package/contracts/fixtures/runtime-recipe/accept/current.json +299 -0
- package/contracts/fixtures/runtime-recipe/accept/minimal.json +294 -0
- package/contracts/fixtures/runtime-recipe/dist-states.json +51 -0
- package/contracts/fixtures/runtime-recipe/manifest.json +85 -0
- package/contracts/fixtures/runtime-recipe/reject/advisory-enforcement.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/allowlist-without-hosts.json +297 -0
- package/contracts/fixtures/runtime-recipe/reject/committed-output-claim.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/engines-disagreement-warns.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/lifecycle-scripts-enabled.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/missing-required-field.json +251 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-kind.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-network-policy.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-output-check.json +310 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-revision.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unknown-step-id.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unperformable-check-skipped.json +299 -0
- package/contracts/fixtures/runtime-recipe/reject/unpinned-lockfile.json +299 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/.campaign-runtime/assembly-report.json +180 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/.campaign-runtime/build-context.json +115 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/.campaign-runtime/doctor-output.json +29 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/.campaign-runtime/qa-verdict.json +27 -0
- package/contracts/fixtures/sidecar-bundle/production-shaped/campaign-runtime.build.json +141 -0
- package/contracts/migration-sidecar-bundle.v0.json +149 -0
- package/contracts/orientation-limits.v1.json +41 -0
- package/contracts/orientation-reason-codes.v1.json +196 -0
- package/contracts/private-template-sources.json +8 -0
- package/contracts/release-ledger.json +4598 -0
- package/contracts/reserved-skill-names.json +13 -0
- package/contracts/runtime-recipe.campaigns-os-node-v1.json +299 -0
- package/contracts/supported-surface.json +180 -0
- package/contracts/template-brand-contract.apollo-mv-single-step.v0.json +27 -0
- package/contracts/template-brand-contract.apollo.v0.json +27 -0
- package/contracts/template-brand-contract.demeter.v0.json +27 -0
- package/contracts/template-brand-contract.olympus-mv-single-step.v0.json +27 -0
- package/contracts/template-brand-contract.olympus-mv-two-step.v0.json +28 -0
- package/contracts/template-brand-contract.olympus.v0.json +27 -0
- package/contracts/template-brand-contract.shared-commerce.v0.json +190 -0
- package/contracts/template-brand-contract.shop-single-step.v0.json +27 -0
- package/contracts/template-brand-contract.shop-three-step.v0.json +29 -0
- package/contracts/template-slot-manifest.apollo-mv-single-step.v0.json +14 -0
- package/contracts/template-slot-manifest.apollo.v0.json +12 -0
- package/contracts/template-slot-manifest.demeter.v0.json +30 -0
- package/contracts/template-slot-manifest.olympus-mv-single-step.v0.json +14 -0
- package/contracts/template-slot-manifest.olympus-mv-two-step.v0.json +15 -0
- package/contracts/template-slot-manifest.olympus.v0.json +12 -0
- package/contracts/template-slot-manifest.shared-content-core.v0.json +4254 -0
- package/contracts/template-slot-manifest.shop-single-step.v0.json +47 -0
- package/contracts/template-slot-manifest.shop-three-step.v0.json +33 -0
- package/docs/brand-theme-bridge.md +159 -0
- package/docs/build-packet.md +1300 -0
- package/docs/campaign-build-brief.md +145 -0
- package/docs/campaign-standardization-report.md +329 -0
- package/docs/campaigns-os-build-flow.md +117 -0
- package/docs/design-source-package.md +784 -0
- package/docs/legacy-migration.md +58 -0
- package/docs/migration-sidecar-bundle.md +139 -0
- package/docs/orientation-contract-reference.md +1220 -0
- package/docs/polish-evidence.md +502 -0
- package/docs/qa-and-test-orders.md +1691 -0
- package/docs/release-ledger-authoring-guide.md +274 -0
- package/docs/runtime-readiness.md +211 -0
- package/docs/supported-surface.md +83 -0
- package/docs/versioning.md +55 -0
- package/docs/workflow-findings-sidecar.md +588 -0
- package/package.json +135 -0
- package/prompts/first-build.md +27 -0
- package/prompts/friction-log.md +30 -0
- package/schemas/campaign-build-brief.v1.schema.json +149 -0
- package/schemas/campaign-design-source-package.v0.schema.json +697 -0
- package/schemas/campaign-runtime-assembly-report.v0.schema.json +390 -0
- package/schemas/campaign-runtime-build-context.v0.schema.json +339 -0
- package/schemas/campaign-runtime-build-packet.v0.schema.json +452 -0
- package/schemas/campaign-spec.v4.schema.json +582 -0
- package/schemas/campaigns-os-doctor-output.v0.schema.json +43 -0
- package/schemas/campaigns-os-legacy-migration-inventory.v0.schema.json +112 -0
- package/schemas/campaigns-os-legacy-provisioning-plan.v0.schema.json +38 -0
- package/schemas/campaigns-os-legacy-provisioning-receipt.v0.schema.json +57 -0
- package/schemas/campaigns-os-qa-verdict-sidecar.v0.schema.json +150 -0
- package/schemas/campaigns-os-qa-verdict.v0.schema.json +438 -0
- package/schemas/campaigns-os-release-ledger.v1.schema.json +162 -0
- package/schemas/campaigns-os-run-record.v0.schema.json +343 -0
- package/schemas/campaigns-os-runtime-recipe.v1.schema.json +313 -0
- package/schemas/campaigns-os-sidecar-bundle-conformance.v0.schema.json +78 -0
- package/schemas/campaigns-os-tooling-orientation.v1.schema.json +381 -0
- package/schemas/campaigns-os-workflow-finding.v0.schema.json +134 -0
- package/schemas/source-html-manifest.v0.schema.json +252 -0
- package/skills/next-campaigns-build/SKILL.md +73 -0
- package/skills/next-campaigns-os/SKILL.md +101 -0
- package/skills/next-campaigns-os/references/session-intake.md +160 -0
- package/skills/next-campaigns-os-setup/SKILL.md +22 -0
- package/skills/next-campaigns-polish/SKILL.md +145 -0
- package/skills/next-campaigns-qa/SKILL.md +92 -0
- package/skills.json +56 -0
- package/skills.sh +64 -0
- package/src/adapter-decision-contract.mjs +333 -0
- package/src/brand-theme.mjs +1151 -0
- package/src/browser-launch.mjs +79 -0
- package/src/build-brief.mjs +781 -0
- package/src/built-site-scope.mjs +312 -0
- package/src/campaign-ecosystem.mjs +734 -0
- package/src/campaign-identity.mjs +405 -0
- package/src/campaign-workspace.mjs +127 -0
- package/src/checkpoint-waiver.mjs +302 -0
- package/src/cli.mjs +13442 -0
- package/src/commercial-journey.mjs +1119 -0
- package/src/commercial-parity.mjs +965 -0
- package/src/consent.mjs +347 -0
- package/src/content-residue.mjs +322 -0
- package/src/deadline.mjs +81 -0
- package/src/design-source-package.mjs +2604 -0
- package/src/deviation.mjs +107 -0
- package/src/doctor-check-registry.mjs +49 -0
- package/src/doctor-sidecar.mjs +106 -0
- package/src/finding-cause.mjs +557 -0
- package/src/findings.mjs +326 -0
- package/src/fs-identity.mjs +68 -0
- package/src/gate-actions.mjs +105 -0
- package/src/html-scan.mjs +53 -0
- package/src/install-mode.mjs +272 -0
- package/src/legacy-migration.d.ts +128 -0
- package/src/legacy-migration.mjs +510 -0
- package/src/lifecycle.mjs +338 -0
- package/src/local-proof.mjs +401 -0
- package/src/map-pin-writeback.mjs +210 -0
- package/src/orchestration-stage-contract.mjs +81 -0
- package/src/package-install-fixture.mjs +33 -0
- package/src/page-kit-build-summary.mjs +175 -0
- package/src/page-kit-campaign-config.mjs +57 -0
- package/src/page-kit-sdk-version.mjs +392 -0
- package/src/page-kit-store-profile.mjs +369 -0
- package/src/page-kit-sync.mjs +162 -0
- package/src/polish-browser.mjs +867 -0
- package/src/polish-capture.mjs +1094 -0
- package/src/polish-deadline.mjs +51 -0
- package/src/polish-gate.mjs +739 -0
- package/src/polish-node.mjs +639 -0
- package/src/polish-page-load.mjs +1100 -0
- package/src/private-template-source.mjs +237 -0
- package/src/proof-policy.mjs +82 -0
- package/src/qa-analytics-correctness.mjs +307 -0
- package/src/qa-analytics-errors.mjs +38 -0
- package/src/qa-analytics-parity.mjs +699 -0
- package/src/qa-binding-evidence.mjs +140 -0
- package/src/qa-browser.mjs +6608 -0
- package/src/qa-cart-entry.mjs +406 -0
- package/src/qa-commercial-parity.mjs +641 -0
- package/src/qa-node.mjs +3620 -0
- package/src/qa-order-bump.mjs +381 -0
- package/src/qa-parity-capture.mjs +428 -0
- package/src/qa-parity-fixture.mjs +359 -0
- package/src/qa-publish.mjs +362 -0
- package/src/qa-purchase-data-layer.mjs +263 -0
- package/src/qa-route-probe.mjs +272 -0
- package/src/qa-sidecar.mjs +188 -0
- package/src/qa-test-order-topology.mjs +207 -0
- package/src/qa-url-privacy.mjs +13 -0
- package/src/qa-verdict-discovery.mjs +192 -0
- package/src/qa-verdict-publish.mjs +105 -0
- package/src/qa-verdict.mjs +287 -0
- package/src/remit.mjs +388 -0
- package/src/repo-scan.mjs +83 -0
- package/src/route-identity.mjs +133 -0
- package/src/run-record-closeout.mjs +229 -0
- package/src/run-record.mjs +839 -0
- package/src/run-session.mjs +226 -0
- package/src/runtime-state-ignore.mjs +113 -0
- package/src/sdk-attribute-index.mjs +212 -0
- package/src/sdk-markup.mjs +358 -0
- package/src/sdk-meta-tags.mjs +52 -0
- package/src/shell-token.mjs +7 -0
- package/src/sidecar-bundle.mjs +399 -0
- package/src/source-asset-crawl.mjs +469 -0
- package/src/source-html-intake.mjs +627 -0
- package/src/source-html-manifest.mjs +276 -0
- package/src/source-prep.mjs +284 -0
- package/src/spec-derive-store.mjs +431 -0
- package/src/spec-derive.mjs +514 -0
- package/src/spec-fetch.mjs +66 -0
- package/src/spec-hash.mjs +48 -0
- package/src/spec-identity.mjs +27 -0
- package/src/stage-ledger.mjs +509 -0
- package/src/standardization-report.mjs +1297 -0
- package/src/template-brand-contract.mjs +473 -0
- package/src/template-freshness.mjs +196 -0
- package/src/template-reference.mjs +81 -0
- package/src/template-slot-manifest.mjs +150 -0
- package/src/text-safety.mjs +62 -0
- package/src/theme-gate.mjs +185 -0
- package/src/upsell-selector-scope.mjs +299 -0
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://nextcommerce.com/schemas/campaign-design-source-package.v0.schema.json",
|
|
4
|
+
"title": "Campaigns OS Design Source Package v0",
|
|
5
|
+
"description": "Strict public contract for normalized upstream creative/provenance context. The schema identity carried by artifacts is campaign-design-source-package/v0.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schema_version",
|
|
10
|
+
"package_id",
|
|
11
|
+
"source_kind",
|
|
12
|
+
"generated_at",
|
|
13
|
+
"material_fingerprint",
|
|
14
|
+
"surface_identity",
|
|
15
|
+
"contributions",
|
|
16
|
+
"source_gaps",
|
|
17
|
+
"source_todos",
|
|
18
|
+
"waivers",
|
|
19
|
+
"divergences",
|
|
20
|
+
"proposed_exceptions",
|
|
21
|
+
"notes",
|
|
22
|
+
"readiness",
|
|
23
|
+
"readback"
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"schema_version": {
|
|
27
|
+
"const": "campaign-design-source-package/v0"
|
|
28
|
+
},
|
|
29
|
+
"package_id": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1
|
|
32
|
+
},
|
|
33
|
+
"source_kind": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1
|
|
36
|
+
},
|
|
37
|
+
"generated_at": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1
|
|
40
|
+
},
|
|
41
|
+
"material_fingerprint": {
|
|
42
|
+
"$ref": "#/$defs/prefixedSha256"
|
|
43
|
+
},
|
|
44
|
+
"surface_identity": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"minItems": 1,
|
|
47
|
+
"items": { "$ref": "#/$defs/surfaceIdentity" },
|
|
48
|
+
"contains": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"required": ["id", "kind"],
|
|
51
|
+
"properties": {
|
|
52
|
+
"id": { "const": "campaign" },
|
|
53
|
+
"kind": { "const": "campaign" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"minContains": 1,
|
|
57
|
+
"maxContains": 1
|
|
58
|
+
},
|
|
59
|
+
"contributions": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": { "$ref": "#/$defs/contribution" }
|
|
62
|
+
},
|
|
63
|
+
"source_gaps": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": { "$ref": "#/$defs/sourceGap" }
|
|
66
|
+
},
|
|
67
|
+
"source_todos": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": { "$ref": "#/$defs/sourceTodo" }
|
|
70
|
+
},
|
|
71
|
+
"waivers": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": { "$ref": "#/$defs/waiver" }
|
|
74
|
+
},
|
|
75
|
+
"divergences": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": { "$ref": "#/$defs/divergence" }
|
|
78
|
+
},
|
|
79
|
+
"proposed_exceptions": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": { "$ref": "#/$defs/proposedException" }
|
|
82
|
+
},
|
|
83
|
+
"notes": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": { "type": "string" },
|
|
86
|
+
"description": "Administrative context only. Notes never change source readiness or the material fingerprint."
|
|
87
|
+
},
|
|
88
|
+
"readiness": {
|
|
89
|
+
"$ref": "#/$defs/sourceReadiness"
|
|
90
|
+
},
|
|
91
|
+
"readback": {
|
|
92
|
+
"$ref": "#/$defs/readback"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"$defs": {
|
|
96
|
+
"checkpointStatus": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enum": [
|
|
99
|
+
"pending",
|
|
100
|
+
"blocked",
|
|
101
|
+
"ready",
|
|
102
|
+
"ready_with_gaps",
|
|
103
|
+
"ready_with_waivers",
|
|
104
|
+
"completed",
|
|
105
|
+
"completed_with_warnings",
|
|
106
|
+
"skipped"
|
|
107
|
+
],
|
|
108
|
+
"description": "Shared Campaigns OS Readiness Checkpoint vocabulary. Source readiness intentionally uses the narrower sourceReadinessStatus definition."
|
|
109
|
+
},
|
|
110
|
+
"sourceReadinessStatus": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"enum": ["pending", "blocked", "ready", "ready_with_gaps", "ready_with_waivers"],
|
|
113
|
+
"description": "Design Source Package readiness deliberately forbids ready_with_warnings."
|
|
114
|
+
},
|
|
115
|
+
"coverageRole": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"enum": [
|
|
118
|
+
"primary_design",
|
|
119
|
+
"partial_design",
|
|
120
|
+
"brand_tokens",
|
|
121
|
+
"asset_source",
|
|
122
|
+
"copy_source",
|
|
123
|
+
"template_baseline",
|
|
124
|
+
"reference_only",
|
|
125
|
+
"fallback_legacy"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"mappingConfidence": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"enum": ["high", "medium", "low", "unknown"]
|
|
131
|
+
},
|
|
132
|
+
"sha256": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"pattern": "^(?:sha256:)?[0-9a-f]{64}$"
|
|
135
|
+
},
|
|
136
|
+
"prefixedSha256": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
139
|
+
},
|
|
140
|
+
"stringList": {
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": { "type": "string", "minLength": 1 }
|
|
143
|
+
},
|
|
144
|
+
"pageKitProjection": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"additionalProperties": false,
|
|
147
|
+
"required": ["target_path", "output_path", "public_route", "page_type"],
|
|
148
|
+
"properties": {
|
|
149
|
+
"target_path": { "type": "string", "minLength": 1 },
|
|
150
|
+
"output_path": { "type": "string", "minLength": 1 },
|
|
151
|
+
"public_route": { "type": "string", "minLength": 1 },
|
|
152
|
+
"spec_route": { "type": ["string", "null"] },
|
|
153
|
+
"page_type": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"minLength": 1
|
|
156
|
+
},
|
|
157
|
+
"permalink_required": { "type": ["boolean", "null"] }
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"surfaceMappings": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"additionalProperties": false,
|
|
163
|
+
"properties": {
|
|
164
|
+
"campaign_map_id": { "type": ["string", "null"], "minLength": 1 },
|
|
165
|
+
"campaign_slug": { "type": ["string", "null"], "minLength": 1 },
|
|
166
|
+
"campaign_spec_page_id": { "type": ["string", "null"], "minLength": 1 },
|
|
167
|
+
"map_builder_label": { "type": ["string", "null"], "minLength": 1 },
|
|
168
|
+
"map_builder_custom_name": { "type": ["string", "null"], "minLength": 1 },
|
|
169
|
+
"public_route": { "type": ["string", "null"], "minLength": 1 },
|
|
170
|
+
"producer_page_type": { "type": ["string", "null"], "minLength": 1 },
|
|
171
|
+
"source_page_id": { "type": ["string", "null"], "minLength": 1 },
|
|
172
|
+
"source_path": { "type": ["string", "null"], "minLength": 1 },
|
|
173
|
+
"page_kit": {
|
|
174
|
+
"oneOf": [
|
|
175
|
+
{ "type": "null" },
|
|
176
|
+
{ "$ref": "#/$defs/pageKitProjection" }
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"parent_surface_id": { "type": ["string", "null"], "minLength": 1 },
|
|
180
|
+
"dom_selector": { "type": ["string", "null"], "minLength": 1 },
|
|
181
|
+
"runtime_surface": { "type": ["string", "null"], "minLength": 1 }
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"surfaceIdentity": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"additionalProperties": false,
|
|
187
|
+
"required": ["id", "kind", "label", "aliases", "mappings"],
|
|
188
|
+
"properties": {
|
|
189
|
+
"id": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"minLength": 1,
|
|
192
|
+
"pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$"
|
|
193
|
+
},
|
|
194
|
+
"kind": {
|
|
195
|
+
"enum": ["campaign", "page", "section", "runtime_surface"]
|
|
196
|
+
},
|
|
197
|
+
"label": { "type": "string", "minLength": 1 },
|
|
198
|
+
"aliases": {
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": { "type": "string", "minLength": 1 },
|
|
201
|
+
"uniqueItems": true
|
|
202
|
+
},
|
|
203
|
+
"mappings": { "$ref": "#/$defs/surfaceMappings" }
|
|
204
|
+
},
|
|
205
|
+
"allOf": [
|
|
206
|
+
{
|
|
207
|
+
"if": {
|
|
208
|
+
"properties": { "id": { "const": "campaign" } },
|
|
209
|
+
"required": ["id"]
|
|
210
|
+
},
|
|
211
|
+
"then": {
|
|
212
|
+
"properties": { "kind": { "const": "campaign" } },
|
|
213
|
+
"required": ["kind"]
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"if": {
|
|
218
|
+
"properties": { "kind": { "const": "campaign" } },
|
|
219
|
+
"required": ["kind"]
|
|
220
|
+
},
|
|
221
|
+
"then": {
|
|
222
|
+
"properties": { "id": { "const": "campaign" } },
|
|
223
|
+
"required": ["id"]
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"if": {
|
|
228
|
+
"properties": { "kind": { "const": "page" } },
|
|
229
|
+
"required": ["kind"]
|
|
230
|
+
},
|
|
231
|
+
"then": {
|
|
232
|
+
"properties": {
|
|
233
|
+
"mappings": {
|
|
234
|
+
"type": "object",
|
|
235
|
+
"properties": {
|
|
236
|
+
"campaign_spec_page_id": true,
|
|
237
|
+
"map_builder_label": true,
|
|
238
|
+
"map_builder_custom_name": true,
|
|
239
|
+
"public_route": true,
|
|
240
|
+
"producer_page_type": true,
|
|
241
|
+
"source_page_id": true,
|
|
242
|
+
"source_path": true,
|
|
243
|
+
"page_kit": true
|
|
244
|
+
},
|
|
245
|
+
"required": [
|
|
246
|
+
"campaign_spec_page_id",
|
|
247
|
+
"map_builder_label",
|
|
248
|
+
"map_builder_custom_name",
|
|
249
|
+
"public_route",
|
|
250
|
+
"producer_page_type",
|
|
251
|
+
"source_page_id",
|
|
252
|
+
"source_path",
|
|
253
|
+
"page_kit"
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
"sourceReference": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"additionalProperties": false,
|
|
264
|
+
"required": ["id", "kind"],
|
|
265
|
+
"properties": {
|
|
266
|
+
"id": { "type": "string", "minLength": 1 },
|
|
267
|
+
"kind": {
|
|
268
|
+
"enum": ["html_file", "manifest", "asset", "url", "export", "document", "other"]
|
|
269
|
+
},
|
|
270
|
+
"path": { "type": "string", "minLength": 1 },
|
|
271
|
+
"url": { "type": "string", "minLength": 1 },
|
|
272
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
273
|
+
"role": { "type": "string", "minLength": 1 },
|
|
274
|
+
"media_type": { "type": "string", "minLength": 1 },
|
|
275
|
+
"notes": { "type": ["string", "null"] }
|
|
276
|
+
},
|
|
277
|
+
"anyOf": [
|
|
278
|
+
{ "properties": { "path": true }, "required": ["path"] },
|
|
279
|
+
{ "properties": { "url": true }, "required": ["url"] }
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"visualReference": {
|
|
283
|
+
"type": "object",
|
|
284
|
+
"additionalProperties": false,
|
|
285
|
+
"required": ["id", "kind", "viewport", "availability"],
|
|
286
|
+
"properties": {
|
|
287
|
+
"id": { "type": "string", "minLength": 1 },
|
|
288
|
+
"kind": {
|
|
289
|
+
"enum": [
|
|
290
|
+
"source_screenshot",
|
|
291
|
+
"template_reference_screenshot",
|
|
292
|
+
"render_reference",
|
|
293
|
+
"export_reference",
|
|
294
|
+
"unavailable_render"
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
"viewport": { "enum": ["mobile", "desktop", "tablet"] },
|
|
298
|
+
"availability": { "enum": ["available", "unavailable"] },
|
|
299
|
+
"url": { "type": "string", "minLength": 1 },
|
|
300
|
+
"path": { "type": "string", "minLength": 1 },
|
|
301
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
302
|
+
"width": { "type": "integer", "minimum": 1 },
|
|
303
|
+
"height": { "type": "integer", "minimum": 1 },
|
|
304
|
+
"device_profile": { "type": "string", "minLength": 1 },
|
|
305
|
+
"scale_factor": { "type": "number", "exclusiveMinimum": 0 },
|
|
306
|
+
"browser": { "type": "string", "minLength": 1 },
|
|
307
|
+
"captured_at": { "type": "string", "minLength": 1 },
|
|
308
|
+
"source_ref_id": { "type": "string", "minLength": 1 },
|
|
309
|
+
"unavailable_reason": { "type": "string", "minLength": 1 },
|
|
310
|
+
"notes": { "type": ["string", "null"] }
|
|
311
|
+
},
|
|
312
|
+
"allOf": [
|
|
313
|
+
{
|
|
314
|
+
"if": {
|
|
315
|
+
"properties": { "availability": { "const": "available" } },
|
|
316
|
+
"required": ["availability"]
|
|
317
|
+
},
|
|
318
|
+
"then": {
|
|
319
|
+
"anyOf": [
|
|
320
|
+
{ "properties": { "path": true }, "required": ["path"] },
|
|
321
|
+
{ "properties": { "url": true }, "required": ["url"] }
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"if": {
|
|
327
|
+
"properties": { "availability": { "const": "unavailable" } },
|
|
328
|
+
"required": ["availability"]
|
|
329
|
+
},
|
|
330
|
+
"then": {
|
|
331
|
+
"properties": { "unavailable_reason": true },
|
|
332
|
+
"required": ["unavailable_reason"]
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"if": {
|
|
337
|
+
"type": "object",
|
|
338
|
+
"properties": {
|
|
339
|
+
"kind": { "enum": ["source_screenshot", "template_reference_screenshot"] },
|
|
340
|
+
"availability": { "const": "available" }
|
|
341
|
+
},
|
|
342
|
+
"required": ["kind", "availability"]
|
|
343
|
+
},
|
|
344
|
+
"then": {
|
|
345
|
+
"properties": { "source_ref_id": true },
|
|
346
|
+
"required": ["source_ref_id"]
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
"sourceScreenshotReference": {
|
|
352
|
+
"allOf": [
|
|
353
|
+
{ "$ref": "#/$defs/visualReference" },
|
|
354
|
+
{
|
|
355
|
+
"type": "object",
|
|
356
|
+
"properties": {
|
|
357
|
+
"kind": { "enum": ["source_screenshot", "unavailable_render"] }
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
"comparisonReference": {
|
|
363
|
+
"allOf": [
|
|
364
|
+
{ "$ref": "#/$defs/visualReference" },
|
|
365
|
+
{
|
|
366
|
+
"type": "object",
|
|
367
|
+
"properties": {
|
|
368
|
+
"kind": { "enum": ["render_reference", "export_reference", "template_reference_screenshot", "unavailable_render"] }
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"templateScreenshotReference": {
|
|
374
|
+
"allOf": [
|
|
375
|
+
{ "$ref": "#/$defs/visualReference" },
|
|
376
|
+
{
|
|
377
|
+
"type": "object",
|
|
378
|
+
"properties": {
|
|
379
|
+
"kind": { "enum": ["template_reference_screenshot", "unavailable_render"] }
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
"templateReference": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"additionalProperties": false,
|
|
387
|
+
"required": ["id", "family", "version", "standard_viewport_refs"],
|
|
388
|
+
"properties": {
|
|
389
|
+
"id": { "type": "string", "minLength": 1 },
|
|
390
|
+
"family": { "type": "string", "minLength": 1 },
|
|
391
|
+
"version": { "type": "string", "minLength": 1 },
|
|
392
|
+
"contract_path": { "type": "string", "minLength": 1 },
|
|
393
|
+
"artifact_path": { "type": "string", "minLength": 1 },
|
|
394
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
395
|
+
"standard_viewport_refs": {
|
|
396
|
+
"type": "array",
|
|
397
|
+
"items": { "$ref": "#/$defs/templateScreenshotReference" }
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"anyOf": [
|
|
401
|
+
{ "properties": { "contract_path": true }, "required": ["contract_path"] },
|
|
402
|
+
{ "properties": { "artifact_path": true }, "required": ["artifact_path"] }
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
"provenance": {
|
|
406
|
+
"type": "object",
|
|
407
|
+
"additionalProperties": false,
|
|
408
|
+
"required": ["source_type", "adapter"],
|
|
409
|
+
"properties": {
|
|
410
|
+
"source_type": { "type": "string", "minLength": 1 },
|
|
411
|
+
"adapter": { "type": "string", "minLength": 1 },
|
|
412
|
+
"producer": { "type": ["string", "null"], "minLength": 1 },
|
|
413
|
+
"generator": { "type": ["string", "null"], "minLength": 1 },
|
|
414
|
+
"generator_version": { "type": ["string", "null"], "minLength": 1 },
|
|
415
|
+
"source_root": { "type": ["string", "null"], "minLength": 1 },
|
|
416
|
+
"manifest_schema_version": { "type": ["string", "null"], "minLength": 1 },
|
|
417
|
+
"manifest_path": { "type": ["string", "null"], "minLength": 1 },
|
|
418
|
+
"manifest_sha256": {
|
|
419
|
+
"oneOf": [
|
|
420
|
+
{ "type": "null" },
|
|
421
|
+
{ "$ref": "#/$defs/sha256" }
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
"producer_material_fingerprint": { "type": ["string", "null"], "minLength": 1 },
|
|
425
|
+
"asset_crawl_schema_version": { "type": ["string", "null"], "minLength": 1 }
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"presentationIntent": {
|
|
429
|
+
"type": "object",
|
|
430
|
+
"additionalProperties": false,
|
|
431
|
+
"required": ["summary"],
|
|
432
|
+
"properties": {
|
|
433
|
+
"summary": { "type": "string", "minLength": 1 },
|
|
434
|
+
"composition": { "$ref": "#/$defs/stringList" },
|
|
435
|
+
"content_hierarchy": { "$ref": "#/$defs/stringList" },
|
|
436
|
+
"imagery": { "$ref": "#/$defs/stringList" },
|
|
437
|
+
"copy": { "$ref": "#/$defs/stringList" },
|
|
438
|
+
"brand": { "$ref": "#/$defs/stringList" },
|
|
439
|
+
"responsive_behavior": { "$ref": "#/$defs/stringList" }
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"coverageMapping": {
|
|
443
|
+
"type": "object",
|
|
444
|
+
"additionalProperties": false,
|
|
445
|
+
"required": [
|
|
446
|
+
"id",
|
|
447
|
+
"surface_id",
|
|
448
|
+
"coverage_role",
|
|
449
|
+
"confidence",
|
|
450
|
+
"source_refs",
|
|
451
|
+
"screenshot_refs",
|
|
452
|
+
"reference_refs"
|
|
453
|
+
],
|
|
454
|
+
"properties": {
|
|
455
|
+
"id": { "type": "string", "minLength": 1 },
|
|
456
|
+
"surface_id": { "type": "string", "minLength": 1 },
|
|
457
|
+
"coverage_role": { "$ref": "#/$defs/coverageRole" },
|
|
458
|
+
"confidence": { "$ref": "#/$defs/mappingConfidence" },
|
|
459
|
+
"source_refs": { "$ref": "#/$defs/stringList" },
|
|
460
|
+
"screenshot_refs": { "$ref": "#/$defs/stringList" },
|
|
461
|
+
"reference_refs": { "$ref": "#/$defs/stringList" },
|
|
462
|
+
"template_reference_id": { "type": "string", "minLength": 1 },
|
|
463
|
+
"notes": { "type": ["string", "null"] }
|
|
464
|
+
},
|
|
465
|
+
"allOf": [
|
|
466
|
+
{
|
|
467
|
+
"if": {
|
|
468
|
+
"properties": { "coverage_role": { "const": "template_baseline" } },
|
|
469
|
+
"required": ["coverage_role"]
|
|
470
|
+
},
|
|
471
|
+
"then": {
|
|
472
|
+
"properties": { "template_reference_id": true },
|
|
473
|
+
"required": ["template_reference_id"]
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
},
|
|
478
|
+
"contribution": {
|
|
479
|
+
"type": "object",
|
|
480
|
+
"additionalProperties": false,
|
|
481
|
+
"required": [
|
|
482
|
+
"id",
|
|
483
|
+
"kind",
|
|
484
|
+
"trust",
|
|
485
|
+
"renderable",
|
|
486
|
+
"provenance",
|
|
487
|
+
"presentation_intent",
|
|
488
|
+
"source_refs",
|
|
489
|
+
"screenshot_refs",
|
|
490
|
+
"reference_refs",
|
|
491
|
+
"mappings"
|
|
492
|
+
],
|
|
493
|
+
"properties": {
|
|
494
|
+
"id": { "type": "string", "minLength": 1 },
|
|
495
|
+
"kind": {
|
|
496
|
+
"enum": [
|
|
497
|
+
"html_funnel",
|
|
498
|
+
"figma_frames",
|
|
499
|
+
"figma_sections",
|
|
500
|
+
"page_kit",
|
|
501
|
+
"static_source",
|
|
502
|
+
"template_stock",
|
|
503
|
+
"agency_source",
|
|
504
|
+
"other"
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
"trust": { "enum": ["native", "structured", "rendered", "opaque"] },
|
|
508
|
+
"renderable": { "type": "boolean" },
|
|
509
|
+
"provenance": { "$ref": "#/$defs/provenance" },
|
|
510
|
+
"presentation_intent": { "$ref": "#/$defs/presentationIntent" },
|
|
511
|
+
"source_refs": {
|
|
512
|
+
"type": "array",
|
|
513
|
+
"items": { "$ref": "#/$defs/sourceReference" }
|
|
514
|
+
},
|
|
515
|
+
"screenshot_refs": {
|
|
516
|
+
"type": "array",
|
|
517
|
+
"items": { "$ref": "#/$defs/sourceScreenshotReference" }
|
|
518
|
+
},
|
|
519
|
+
"reference_refs": {
|
|
520
|
+
"type": "array",
|
|
521
|
+
"items": { "$ref": "#/$defs/comparisonReference" }
|
|
522
|
+
},
|
|
523
|
+
"template_reference": { "$ref": "#/$defs/templateReference" },
|
|
524
|
+
"mappings": {
|
|
525
|
+
"type": "array",
|
|
526
|
+
"items": { "$ref": "#/$defs/coverageMapping" }
|
|
527
|
+
},
|
|
528
|
+
"notes": { "type": ["string", "null"] }
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"sourceGap": {
|
|
532
|
+
"type": "object",
|
|
533
|
+
"additionalProperties": false,
|
|
534
|
+
"required": ["id", "kind", "scope", "applies_to", "reason", "status", "attributed_by"],
|
|
535
|
+
"properties": {
|
|
536
|
+
"id": { "type": "string", "minLength": 1 },
|
|
537
|
+
"kind": {
|
|
538
|
+
"enum": ["coverage_absence", "screenshot_absence", "reference_absence", "source_limitation", "other"]
|
|
539
|
+
},
|
|
540
|
+
"scope": { "type": "string", "minLength": 1 },
|
|
541
|
+
"applies_to": {
|
|
542
|
+
"type": "array",
|
|
543
|
+
"minItems": 1,
|
|
544
|
+
"items": { "type": "string", "minLength": 1 },
|
|
545
|
+
"uniqueItems": true
|
|
546
|
+
},
|
|
547
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
548
|
+
"status": { "enum": ["proposed", "accepted", "resolved"] },
|
|
549
|
+
"attributed_by": { "type": "string", "minLength": 1 },
|
|
550
|
+
"attributed_at": { "type": ["string", "null"] },
|
|
551
|
+
"evidence_refs": { "$ref": "#/$defs/stringList" }
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"sourceTodo": {
|
|
555
|
+
"type": "object",
|
|
556
|
+
"additionalProperties": false,
|
|
557
|
+
"required": ["id", "kind", "scope", "applies_to", "description", "status", "owner"],
|
|
558
|
+
"properties": {
|
|
559
|
+
"id": { "type": "string", "minLength": 1 },
|
|
560
|
+
"kind": {
|
|
561
|
+
"enum": [
|
|
562
|
+
"missing_source_screenshot",
|
|
563
|
+
"missing_template_reference",
|
|
564
|
+
"missing_template_viewport",
|
|
565
|
+
"missing_primary_design",
|
|
566
|
+
"low_confidence_primary_design",
|
|
567
|
+
"unreadable_reference",
|
|
568
|
+
"other"
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
"scope": { "type": "string", "minLength": 1 },
|
|
572
|
+
"applies_to": {
|
|
573
|
+
"type": "array",
|
|
574
|
+
"minItems": 1,
|
|
575
|
+
"items": { "type": "string", "minLength": 1 },
|
|
576
|
+
"uniqueItems": true
|
|
577
|
+
},
|
|
578
|
+
"description": { "type": "string", "minLength": 1 },
|
|
579
|
+
"status": { "enum": ["pending", "blocked", "completed", "skipped"] },
|
|
580
|
+
"owner": { "type": "string", "minLength": 1 },
|
|
581
|
+
"required_viewports": {
|
|
582
|
+
"type": "array",
|
|
583
|
+
"items": { "enum": ["mobile", "desktop", "tablet"] },
|
|
584
|
+
"uniqueItems": true
|
|
585
|
+
},
|
|
586
|
+
"source_ref_ids": { "$ref": "#/$defs/stringList" }
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"waiver": {
|
|
590
|
+
"type": "object",
|
|
591
|
+
"additionalProperties": false,
|
|
592
|
+
"required": ["id", "scope", "applies_to", "reason", "status", "waived_by", "waived_at"],
|
|
593
|
+
"properties": {
|
|
594
|
+
"id": { "type": "string", "minLength": 1 },
|
|
595
|
+
"scope": { "type": "string", "minLength": 1 },
|
|
596
|
+
"applies_to": {
|
|
597
|
+
"type": "array",
|
|
598
|
+
"minItems": 1,
|
|
599
|
+
"items": { "type": "string", "minLength": 1 },
|
|
600
|
+
"uniqueItems": true
|
|
601
|
+
},
|
|
602
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
603
|
+
"status": { "enum": ["proposed", "approved", "revoked", "expired"] },
|
|
604
|
+
"waived_by": { "type": "string", "minLength": 1 },
|
|
605
|
+
"waived_at": { "type": "string", "minLength": 1 },
|
|
606
|
+
"expires_at": { "type": "string", "minLength": 1 },
|
|
607
|
+
"review_condition": { "type": "string", "minLength": 1 },
|
|
608
|
+
"evidence_refs": { "$ref": "#/$defs/stringList" }
|
|
609
|
+
},
|
|
610
|
+
"anyOf": [
|
|
611
|
+
{ "properties": { "expires_at": true }, "required": ["expires_at"] },
|
|
612
|
+
{ "properties": { "review_condition": true }, "required": ["review_condition"] }
|
|
613
|
+
]
|
|
614
|
+
},
|
|
615
|
+
"divergence": {
|
|
616
|
+
"type": "object",
|
|
617
|
+
"additionalProperties": false,
|
|
618
|
+
"required": [
|
|
619
|
+
"id",
|
|
620
|
+
"scope",
|
|
621
|
+
"applies_to",
|
|
622
|
+
"summary",
|
|
623
|
+
"status",
|
|
624
|
+
"recorded_stage",
|
|
625
|
+
"readiness_affecting",
|
|
626
|
+
"attributed_by"
|
|
627
|
+
],
|
|
628
|
+
"properties": {
|
|
629
|
+
"id": { "type": "string", "minLength": 1 },
|
|
630
|
+
"scope": { "type": "string", "minLength": 1 },
|
|
631
|
+
"applies_to": {
|
|
632
|
+
"type": "array",
|
|
633
|
+
"minItems": 1,
|
|
634
|
+
"items": { "type": "string", "minLength": 1 },
|
|
635
|
+
"uniqueItems": true
|
|
636
|
+
},
|
|
637
|
+
"summary": { "type": "string", "minLength": 1 },
|
|
638
|
+
"status": { "enum": ["proposed", "accepted", "rejected", "resolved"] },
|
|
639
|
+
"recorded_stage": { "enum": ["prepare_build", "build", "polish", "qa", "operator"] },
|
|
640
|
+
"readiness_affecting": { "type": "boolean" },
|
|
641
|
+
"attributed_by": { "type": "string", "minLength": 1 },
|
|
642
|
+
"evidence_refs": { "$ref": "#/$defs/stringList" }
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"proposedException": {
|
|
646
|
+
"type": "object",
|
|
647
|
+
"additionalProperties": false,
|
|
648
|
+
"required": ["id", "scope", "applies_to", "reason", "status", "readiness_affecting", "proposed_by"],
|
|
649
|
+
"properties": {
|
|
650
|
+
"id": { "type": "string", "minLength": 1 },
|
|
651
|
+
"scope": { "type": "string", "minLength": 1 },
|
|
652
|
+
"applies_to": {
|
|
653
|
+
"type": "array",
|
|
654
|
+
"minItems": 1,
|
|
655
|
+
"items": { "type": "string", "minLength": 1 },
|
|
656
|
+
"uniqueItems": true
|
|
657
|
+
},
|
|
658
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
659
|
+
"status": { "enum": ["proposed", "accepted", "rejected"] },
|
|
660
|
+
"readiness_affecting": { "type": "boolean" },
|
|
661
|
+
"proposed_by": { "type": "string", "minLength": 1 },
|
|
662
|
+
"evidence_refs": { "$ref": "#/$defs/stringList" }
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"sourceReadiness": {
|
|
666
|
+
"type": "object",
|
|
667
|
+
"additionalProperties": false,
|
|
668
|
+
"required": ["status", "blocking_reasons", "gap_count", "todo_count", "waiver_count", "generated_at"],
|
|
669
|
+
"properties": {
|
|
670
|
+
"status": { "$ref": "#/$defs/sourceReadinessStatus" },
|
|
671
|
+
"blocking_reasons": {
|
|
672
|
+
"type": "array",
|
|
673
|
+
"items": { "type": "string", "minLength": 1 }
|
|
674
|
+
},
|
|
675
|
+
"gap_count": { "type": "integer", "minimum": 0 },
|
|
676
|
+
"todo_count": { "type": "integer", "minimum": 0 },
|
|
677
|
+
"waiver_count": { "type": "integer", "minimum": 0 },
|
|
678
|
+
"generated_at": { "type": "string", "minLength": 1 }
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"readback": {
|
|
682
|
+
"type": "object",
|
|
683
|
+
"additionalProperties": false,
|
|
684
|
+
"required": ["summary", "included_sources", "handled", "blockers", "gaps", "todos", "waivers", "next_actions"],
|
|
685
|
+
"properties": {
|
|
686
|
+
"summary": { "type": "string", "minLength": 1 },
|
|
687
|
+
"included_sources": { "$ref": "#/$defs/stringList" },
|
|
688
|
+
"handled": { "$ref": "#/$defs/stringList" },
|
|
689
|
+
"blockers": { "$ref": "#/$defs/stringList" },
|
|
690
|
+
"gaps": { "$ref": "#/$defs/stringList" },
|
|
691
|
+
"todos": { "$ref": "#/$defs/stringList" },
|
|
692
|
+
"waivers": { "$ref": "#/$defs/stringList" },
|
|
693
|
+
"next_actions": { "$ref": "#/$defs/stringList" }
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|