@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,390 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://nextcommerce.com/schemas/campaign-runtime-assembly-report.v0.schema.json",
|
|
4
|
+
"title": "Campaigns OS Assembly Report v0",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"run_id",
|
|
10
|
+
"generated_at",
|
|
11
|
+
"status",
|
|
12
|
+
"identity",
|
|
13
|
+
"inputs",
|
|
14
|
+
"template_family",
|
|
15
|
+
"stages",
|
|
16
|
+
"decisions",
|
|
17
|
+
"evidence",
|
|
18
|
+
"blockers",
|
|
19
|
+
"warnings",
|
|
20
|
+
"next"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"schema_version": { "const": "campaign-runtime-assembly-report/v0" },
|
|
24
|
+
"run_id": { "type": "string", "minLength": 1 },
|
|
25
|
+
"generated_at": { "type": "string", "minLength": 1 },
|
|
26
|
+
"status": { "type": "string", "minLength": 1 },
|
|
27
|
+
"identity": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": true,
|
|
30
|
+
"required": ["map_id", "public_route_slug", "campaign_directory", "live_url_path", "spec_hash"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"map_id": { "type": "string", "minLength": 1 },
|
|
33
|
+
"public_route_slug": { "type": "string", "minLength": 1 },
|
|
34
|
+
"campaign_directory": { "type": "string", "minLength": 1 },
|
|
35
|
+
"live_url_path": { "type": "string", "minLength": 1 },
|
|
36
|
+
"spec_hash": { "type": "string", "minLength": 1 },
|
|
37
|
+
"spec_material_hash": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^sha256:[0-9a-f]{64}$",
|
|
40
|
+
"description": "Canonical semantic identity used to correlate QA with the authored spec. spec_hash remains exact raw-byte integrity."
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"inputs": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": true,
|
|
47
|
+
"required": ["packet_path", "context_path", "spec_path", "source", "target_repo"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"packet_path": { "type": "string", "minLength": 1 },
|
|
50
|
+
"context_path": { "type": "string", "minLength": 1 },
|
|
51
|
+
"spec_path": { "type": "string", "minLength": 1 },
|
|
52
|
+
"source": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": ["kind", "root"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"kind": { "enum": ["html_funnel", "figma_sections", "figma_freeform"] },
|
|
57
|
+
"root": { "type": "string", "minLength": 1 }
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"target_repo": { "type": "string", "minLength": 1 }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"template_family": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": true,
|
|
66
|
+
"required": ["value", "locked"],
|
|
67
|
+
"properties": {
|
|
68
|
+
"value": { "type": "string", "minLength": 1 },
|
|
69
|
+
"locked": { "type": "boolean" },
|
|
70
|
+
"locked_by": { "type": ["string", "null"] },
|
|
71
|
+
"commerce_catalog_version": { "type": ["string", "null"] },
|
|
72
|
+
"candidates": { "type": "array" }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"stages": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"required": ["prepare_build", "doctor", "setup", "assembly", "polish", "deploy", "qa"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"prepare_build": { "$ref": "#/$defs/stage" },
|
|
80
|
+
"doctor": { "$ref": "#/$defs/stage" },
|
|
81
|
+
"setup": { "$ref": "#/$defs/stage" },
|
|
82
|
+
"assembly": { "$ref": "#/$defs/stage" },
|
|
83
|
+
"polish": { "$ref": "#/$defs/stage" },
|
|
84
|
+
"deploy": { "$ref": "#/$defs/stage" },
|
|
85
|
+
"qa": { "$ref": "#/$defs/stage" }
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"checklists": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": true,
|
|
91
|
+
"properties": {
|
|
92
|
+
"polish": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": true,
|
|
95
|
+
"properties": {
|
|
96
|
+
"anchor_screenshots": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"items": { "$ref": "#/$defs/evidenceCheck" }
|
|
99
|
+
},
|
|
100
|
+
"state_screenshots": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"items": { "$ref": "#/$defs/evidenceCheck" }
|
|
103
|
+
},
|
|
104
|
+
"runtime_smoke": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": { "$ref": "#/$defs/evidenceCheck" }
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"template_family": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": true,
|
|
113
|
+
"required": ["family", "invariants"],
|
|
114
|
+
"properties": {
|
|
115
|
+
"family": { "type": "string", "minLength": 1 },
|
|
116
|
+
"invariants": {
|
|
117
|
+
"type": "array",
|
|
118
|
+
"items": { "$ref": "#/$defs/invariant" }
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"decisions": { "type": "array" },
|
|
125
|
+
"build_brief": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"additionalProperties": true,
|
|
128
|
+
"required": ["schema_version", "mode", "status", "normalized_path", "question_count", "gate_count"],
|
|
129
|
+
"properties": {
|
|
130
|
+
"schema_version": { "const": "campaigns-os-build-brief/v1" },
|
|
131
|
+
"mode": { "enum": ["prepared", "guided_draft"] },
|
|
132
|
+
"status": { "enum": ["complete", "needs_answers", "invalid"] },
|
|
133
|
+
"normalized_path": { "type": "string", "minLength": 1 },
|
|
134
|
+
"question_count": { "type": "integer", "minimum": 0 },
|
|
135
|
+
"gate_count": { "type": "integer", "minimum": 0 }
|
|
136
|
+
},
|
|
137
|
+
"allOf": [
|
|
138
|
+
{
|
|
139
|
+
"if": {
|
|
140
|
+
"properties": { "status": { "const": "needs_answers" } },
|
|
141
|
+
"required": ["status"]
|
|
142
|
+
},
|
|
143
|
+
"then": {
|
|
144
|
+
"anyOf": [
|
|
145
|
+
{
|
|
146
|
+
"properties": {
|
|
147
|
+
"question_count": { "type": "integer", "minimum": 1 }
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"properties": {
|
|
152
|
+
"gate_count": { "type": "integer", "minimum": 1 }
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"description": "Campaign Build Brief summary mirrored from Build Context for build/polish/QA handoff continuity."
|
|
160
|
+
},
|
|
161
|
+
"design_source_package": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"additionalProperties": true,
|
|
164
|
+
"properties": {
|
|
165
|
+
"path": { "type": "string", "minLength": 1 },
|
|
166
|
+
"schema_version": { "const": "campaign-design-source-package/v0" },
|
|
167
|
+
"sha256": { "type": "string", "minLength": 1 },
|
|
168
|
+
"material_fingerprint": { "type": "string", "minLength": 1 }
|
|
169
|
+
},
|
|
170
|
+
"description": "Reference to the normalized Design Source Package used by Build and Polish. sha256 is the full artifact hash; material_fingerprint drives freshness gates."
|
|
171
|
+
},
|
|
172
|
+
"adapter_decisions": { "$ref": "#/$defs/adapterDecisions" },
|
|
173
|
+
"proof_policy": {
|
|
174
|
+
"type": "object",
|
|
175
|
+
"additionalProperties": true,
|
|
176
|
+
"properties": {
|
|
177
|
+
"browser_qa_required": { "type": "boolean" },
|
|
178
|
+
"typed_card_depth": { "type": "string", "minLength": 1 },
|
|
179
|
+
"localhost_development_domain_allowed": { "type": "boolean" },
|
|
180
|
+
"non_localhost_origin_allowlist_required": { "type": "boolean" },
|
|
181
|
+
"order_path_depth": { "type": "string", "minLength": 1 },
|
|
182
|
+
"operator_approval_state": { "type": "string", "minLength": 1 },
|
|
183
|
+
"qa_portal_publish_default": { "type": "boolean" }
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"waivers": {
|
|
187
|
+
"type": "array",
|
|
188
|
+
"items": { "$ref": "#/$defs/checkpointWaiver" },
|
|
189
|
+
"description": "Structured readiness exceptions approved by an operator/run decision. Stages may recommend waivers, but accepted waivers must be explicit and attributed."
|
|
190
|
+
},
|
|
191
|
+
"theme": {
|
|
192
|
+
"type": ["object", "null"],
|
|
193
|
+
"additionalProperties": true,
|
|
194
|
+
"properties": {
|
|
195
|
+
"status": { "enum": ["applied", "skipped", "blocked", "needs_review"] },
|
|
196
|
+
"css_path": { "type": ["string", "null"] },
|
|
197
|
+
"load_order": { "enum": ["after-next-core", "not-applied", "unknown"] },
|
|
198
|
+
"commerce_pages": {
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": { "type": "string" }
|
|
201
|
+
},
|
|
202
|
+
"evidence": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": { "type": "string" }
|
|
205
|
+
},
|
|
206
|
+
"warnings": {
|
|
207
|
+
"type": "array",
|
|
208
|
+
"items": { "$ref": "#/$defs/themeIssue" }
|
|
209
|
+
},
|
|
210
|
+
"repair_loop_defect": {
|
|
211
|
+
"oneOf": [
|
|
212
|
+
{ "type": "null" },
|
|
213
|
+
{ "$ref": "#/$defs/themeIssue" }
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"waiver": {
|
|
217
|
+
"description": "Explicit operator waiver of the theme gate (ship commerce pages without the generatable brand layer), with a recorded reason. Written by `campaigns-os theme waive`.",
|
|
218
|
+
"oneOf": [
|
|
219
|
+
{ "type": "null" },
|
|
220
|
+
{
|
|
221
|
+
"type": "object",
|
|
222
|
+
"additionalProperties": true,
|
|
223
|
+
"required": ["reason"],
|
|
224
|
+
"properties": {
|
|
225
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
226
|
+
"waived_by": { "type": ["string", "null"] },
|
|
227
|
+
"waived_at": { "type": ["string", "null"] }
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"evidence": { "type": "array" },
|
|
235
|
+
"blockers": { "type": "array" },
|
|
236
|
+
"warnings": { "type": "array" },
|
|
237
|
+
"next": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"additionalProperties": true,
|
|
240
|
+
"required": ["stage", "owner", "action"],
|
|
241
|
+
"properties": {
|
|
242
|
+
"stage": { "type": "string", "minLength": 1 },
|
|
243
|
+
"owner": { "type": "string", "minLength": 1 },
|
|
244
|
+
"action": { "type": "string", "minLength": 1 },
|
|
245
|
+
"blocked_stages": { "type": "array" }
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"$defs": {
|
|
250
|
+
"checkpointWaiver": {
|
|
251
|
+
"type": "object",
|
|
252
|
+
"additionalProperties": true,
|
|
253
|
+
"required": ["scope", "reason"],
|
|
254
|
+
"properties": {
|
|
255
|
+
"scope": { "type": "string", "minLength": 1 },
|
|
256
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
257
|
+
"applies_to": {
|
|
258
|
+
"type": "array",
|
|
259
|
+
"items": { "type": "string", "minLength": 1 }
|
|
260
|
+
},
|
|
261
|
+
"waived_by": { "type": ["string", "null"] },
|
|
262
|
+
"owner": { "type": ["string", "null"] },
|
|
263
|
+
"waived_at": { "type": ["string", "null"] },
|
|
264
|
+
"created_at": { "type": ["string", "null"] },
|
|
265
|
+
"expires_at": {
|
|
266
|
+
"type": ["string", "null"],
|
|
267
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
|
|
268
|
+
"description": "ISO 8601 date or date-time — a deliberate canonical subset: date, or date-time with optional Z/±HH:MM offset. Exotic Date.parse-accepted forms (date-only with a timezone, hour-only offsets) are rejected here even though the runtime tolerates them. The pattern is syntactic only: calendar-invalid values (e.g. month 13) can pass the schema and are still rejected at runtime. The polish gate parses this value: an unparseable string blocks with polish.waiver_expires_at_invalid, and an expiry at or before the evaluation instant (inclusive boundary) means the waiver is not honored."
|
|
269
|
+
},
|
|
270
|
+
"review_condition": { "type": ["string", "null"] },
|
|
271
|
+
"evidence_refs": { "type": "array" }
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"adapterDecisions": {
|
|
275
|
+
"type": "object",
|
|
276
|
+
"additionalProperties": true,
|
|
277
|
+
"required": [
|
|
278
|
+
"raw_html_conversion_status",
|
|
279
|
+
"source_asset_strategy",
|
|
280
|
+
"commerce_shell_adoption",
|
|
281
|
+
"route_rewrite_policy",
|
|
282
|
+
"template_files_copied",
|
|
283
|
+
"config_script_strategy",
|
|
284
|
+
"wrapper_policy",
|
|
285
|
+
"frontmatter_policy",
|
|
286
|
+
"script_style_reference_policy",
|
|
287
|
+
"cta_rewrite_policy",
|
|
288
|
+
"layout_choice"
|
|
289
|
+
],
|
|
290
|
+
"properties": {
|
|
291
|
+
"raw_html_conversion_status": { "enum": ["pending", "in_progress", "completed", "not_required", "blocked"] },
|
|
292
|
+
"source_asset_strategy": { "enum": ["pagekit_campaign_asset_root", "external_cdn", "raw_passthrough", "not_applicable", "unknown"] },
|
|
293
|
+
"commerce_shell_adoption": { "enum": ["not_required", "template_clone_first_required", "template_clone_first_verified", "sdk_surfaces_preserved", "custom_html_experimental"] },
|
|
294
|
+
"route_rewrite_policy": { "enum": ["campaignspec_routes_via_campaign_link", "pagekit_public_routes", "raw_passthrough", "not_applicable", "unknown"] },
|
|
295
|
+
"config_script_strategy": { "enum": ["campaign_asset", "frontmatter_script", "inline", "not_required", "unknown"] },
|
|
296
|
+
"wrapper_policy": { "enum": ["strip_document_wrappers", "preserve_document_wrappers", "not_required", "unknown"] },
|
|
297
|
+
"frontmatter_policy": { "enum": ["pagekit_yaml_frontmatter", "raw_passthrough", "not_required", "unknown"] },
|
|
298
|
+
"script_style_reference_policy": { "enum": ["frontmatter_or_campaign_asset", "frontmatter", "campaign_asset", "inline", "raw_passthrough", "not_required", "unknown"] },
|
|
299
|
+
"cta_rewrite_policy": { "enum": ["campaignspec_routes_via_campaign_link", "pagekit_public_routes", "raw_passthrough", "not_applicable", "unknown"] },
|
|
300
|
+
"layout_choice": { "enum": ["campaign_layout", "page_layout", "raw_passthrough", "not_applicable", "unknown"] },
|
|
301
|
+
"template_files_copied": {
|
|
302
|
+
"type": "object",
|
|
303
|
+
"additionalProperties": true,
|
|
304
|
+
"required": ["status", "required_groups", "groups", "paths"],
|
|
305
|
+
"properties": {
|
|
306
|
+
"status": { "enum": ["pending", "complete", "verified_existing_slice", "partial", "not_applicable"] },
|
|
307
|
+
"required_groups": { "type": "array", "items": { "type": "string" } },
|
|
308
|
+
"groups": { "type": "array", "items": { "type": "string" } },
|
|
309
|
+
"paths": { "type": "array", "items": { "type": "string" } }
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"stage": {
|
|
315
|
+
"type": "object",
|
|
316
|
+
"additionalProperties": true,
|
|
317
|
+
"required": ["stage", "status"],
|
|
318
|
+
"properties": {
|
|
319
|
+
"stage": { "type": "string", "minLength": 1 },
|
|
320
|
+
"status": { "type": "string", "minLength": 1 },
|
|
321
|
+
"required_by": { "type": "string", "minLength": 1 },
|
|
322
|
+
"required_for": {
|
|
323
|
+
"type": "array",
|
|
324
|
+
"items": { "type": "string", "minLength": 1 }
|
|
325
|
+
},
|
|
326
|
+
"performed_by": { "type": "string", "minLength": 1 },
|
|
327
|
+
"source_build_fingerprint": { "type": "string", "minLength": 1 },
|
|
328
|
+
"source_package_material_fingerprint": { "type": "string", "minLength": 1 },
|
|
329
|
+
"build_fingerprint": { "type": "string", "minLength": 1 },
|
|
330
|
+
"artifact_fingerprint": { "type": "string", "minLength": 1 },
|
|
331
|
+
"completed_at": { "type": "string", "minLength": 1 },
|
|
332
|
+
"evidence": {
|
|
333
|
+
"description": "Stage-owned structured evidence. For stages.polish, this must include visual_review, brand_review, checkout_review, template_residue_review, commerce_flow_review, issues, and commands before QA.",
|
|
334
|
+
"oneOf": [
|
|
335
|
+
{ "type": "array" },
|
|
336
|
+
{ "type": "object", "additionalProperties": true }
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
"inputs": { "type": "array", "default": [] },
|
|
340
|
+
"outputs": { "type": "array", "default": [] },
|
|
341
|
+
"commands": { "type": "array", "default": [] },
|
|
342
|
+
"blockers": { "type": "array", "default": [] },
|
|
343
|
+
"warnings": { "type": "array", "default": [] }
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"evidenceCheck": {
|
|
347
|
+
"type": "object",
|
|
348
|
+
"additionalProperties": true,
|
|
349
|
+
"required": ["page_type", "evidence"],
|
|
350
|
+
"properties": {
|
|
351
|
+
"page_type": { "type": "string", "minLength": 1 },
|
|
352
|
+
"anchor": { "type": "string" },
|
|
353
|
+
"state": { "type": "string" },
|
|
354
|
+
"viewports": {
|
|
355
|
+
"type": "array",
|
|
356
|
+
"items": { "type": "string" }
|
|
357
|
+
},
|
|
358
|
+
"evidence": {
|
|
359
|
+
"type": "array",
|
|
360
|
+
"items": { "type": "string", "minLength": 1 }
|
|
361
|
+
},
|
|
362
|
+
"status": { "type": "string" }
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"invariant": {
|
|
366
|
+
"type": "object",
|
|
367
|
+
"additionalProperties": true,
|
|
368
|
+
"required": ["id", "status", "evidence"],
|
|
369
|
+
"properties": {
|
|
370
|
+
"id": { "type": "string", "minLength": 1 },
|
|
371
|
+
"status": { "enum": ["passed", "failed", "blocked", "skipped"] },
|
|
372
|
+
"evidence": {
|
|
373
|
+
"type": "array",
|
|
374
|
+
"items": { "type": "string", "minLength": 1 }
|
|
375
|
+
},
|
|
376
|
+
"notes": { "type": ["string", "null"] }
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"themeIssue": {
|
|
380
|
+
"type": "object",
|
|
381
|
+
"additionalProperties": true,
|
|
382
|
+
"properties": {
|
|
383
|
+
"code": { "type": "string", "minLength": 1 },
|
|
384
|
+
"message": { "type": "string", "minLength": 1 },
|
|
385
|
+
"path": { "type": "string", "minLength": 1 },
|
|
386
|
+
"detail": { "type": "object", "additionalProperties": true }
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|