@nextcommerce/campaigns-os 1.50.0 → 1.52.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/CHANGELOG.md +426 -0
- package/agents/claude/CLAUDE.md +2 -2
- package/agents/codex/AGENTS.md +1 -1
- package/agents/copilot/copilot-instructions.md +1 -1
- package/agents/cursor/campaigns-os.mdc +1 -1
- package/campaign-spec/dist/rules/campaign-metadata.d.ts +5 -1
- package/campaign-spec/dist/rules/campaign-metadata.js +9 -2
- package/campaign-spec/dist/rules/design-source-shape.js +13 -3
- package/campaign-spec/dist/rules/sdk-version.js +2 -1
- package/compatibility.json +1 -1
- package/contracts/commerce-surface-catalog.json +26 -46
- package/contracts/effects.v1.json +81 -2
- package/contracts/release-ledger.json +906 -0
- package/contracts/supported-surface.json +2 -2
- package/contracts/template-brand-contract.shared-commerce.v0.json +2 -2
- package/contracts/template-slot-manifest.shared-content-core.v0.json +24 -0
- package/docs/build-packet.md +93 -9
- package/docs/campaign-build-brief.md +25 -1
- package/docs/effects.md +6 -0
- package/docs/local-setup.md +1 -1
- package/docs/orientation-contract-reference.md +1 -1
- package/docs/polish-evidence.md +10 -0
- package/docs/qa-and-test-orders.md +45 -4
- package/docs/runtime-readiness.md +1 -1
- package/docs/sdk-storage-compatibility.md +1 -1
- package/docs/skills-revision.md +10 -10
- package/package.json +1 -1
- package/skills/campaign-lifecycle-orientation/SKILL.md +3 -3
- package/skills/campaign-readback-classification/SKILL.md +3 -3
- package/skills/campaign-run-evidence/SKILL.md +3 -3
- package/skills/contribution-intake/SKILL.md +3 -3
- package/skills/next-campaigns-build/SKILL.md +3 -3
- package/skills/next-campaigns-os/SKILL.md +4 -4
- package/skills/next-campaigns-os/references/session-intake.md +7 -3
- package/skills/next-campaigns-os-setup/SKILL.md +3 -3
- package/skills/next-campaigns-polish/SKILL.md +3 -3
- package/skills/next-campaigns-qa/SKILL.md +6 -5
- package/skills.json +10 -10
- package/src/adapter-decision-contract.mjs +1 -1
- package/src/brand-theme.mjs +12 -0
- package/src/build-brief.mjs +68 -21
- package/src/built-site-scope.mjs +39 -6
- package/src/built-smoke-qc.mjs +1117 -0
- package/src/campaign-identity.mjs +36 -2
- package/src/cart-placeholders.mjs +730 -0
- package/src/cli.mjs +310 -34
- package/src/commercial-journey.mjs +65 -4
- package/src/commercial-parity.mjs +6 -1
- package/src/doctor/checks.mjs +291 -24
- package/src/doctor/inspect.mjs +53 -2
- package/src/doctor/next-step.mjs +1 -1
- package/src/invocation.mjs +2 -1
- package/src/local-preview-policy.mjs +1 -1
- package/src/local-proof.mjs +4 -1
- package/src/polish-browser.mjs +218 -1
- package/src/polish-capture.mjs +1 -1
- package/src/polish-media-weight.mjs +492 -0
- package/src/polish-node.mjs +96 -4
- package/src/progress-node.mjs +5 -1
- package/src/qa-browser.mjs +308 -96
- package/src/qa-content-params.mjs +889 -0
- package/src/qa-node.mjs +104 -12
- package/src/qa-order-bump.mjs +22 -1
- package/src/qa-policy-links.mjs +1019 -0
- package/src/qa-tracking-params.mjs +1389 -0
- package/src/qa-url-privacy.mjs +168 -0
- package/src/qc-accept.mjs +446 -0
- package/src/qc-check-registry.mjs +83 -0
- package/src/qc-results.mjs +1049 -0
- package/src/sdk-attribute-index.mjs +71 -0
- package/src/sdk-markup.mjs +2 -2
- package/src/sdk-storage-compatibility.mjs +63 -3
- package/src/source-prep.mjs +37 -7
- package/src/stage-record.mjs +56 -17
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,432 @@
|
|
|
2
2
|
|
|
3
3
|
Notable supported-surface changes are recorded here.
|
|
4
4
|
|
|
5
|
+
## [1.52.0+agent.1] - 2026-10-05
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Doctor now reports built-page smoke warnings: missing in-page anchor targets, missing favicon and Open Graph tags, unresolved `og:image`, the Tailwind CDN script in production builds, `cdn.29next.store` asset references, and loopback URLs.
|
|
10
|
+
|
|
11
|
+
## [1.52.0] - 2026-10-05
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- QA now checks that configured store policy links are rendered and reachable, recording link presence and availability separately. QA now sends bounded header-only requests to the configured policy URLs; the effects contract declares them.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- The effects contract now states that `qa run --browser` sends the header-only GET requests to the configured store policy URLs, rather than declaring them ahead of the check that sends them.
|
|
20
|
+
|
|
21
|
+
## [1.51.0+agent.4] - 2026-10-05
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- QA now checks at runtime that declared content parameters hide their content, comparing fresh contexts with and without `?<name>=n`.
|
|
26
|
+
|
|
27
|
+
## [1.51.0+agent.3] - 2026-10-05
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- QA browser test orders now report URL preservation and order attribution for synthetic tracking parameters as separate results. QA order evidence no longer stores query strings in `checkout_url`, `final_url` or request URLs.
|
|
32
|
+
|
|
33
|
+
## [1.51.0+agent.2] - 2026-10-05
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- Polish capture now records image geometry and redirect chains, and reports origin and weight warnings for video and large images served from the page's own origin, plus oversized images.
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- `polish capture` now records media weight beside page load evidence in the Assembly Report, so `next` reads the image weight and oversize results of a fresh capture.
|
|
42
|
+
|
|
43
|
+
## [1.51.0+agent.1] - 2026-10-04
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
|
|
47
|
+
- Doctor now warns on SDK cart placeholders printed in live built HTML (`built_output.cart_placeholders`), ported from the public starter-template lint.
|
|
48
|
+
|
|
49
|
+
## [1.51.0] - 2026-10-04
|
|
50
|
+
|
|
51
|
+
### Added
|
|
52
|
+
|
|
53
|
+
- Adds `checkpoint accept`, which records an operator's accept of a measured warning next to the unchanged measurement, and a QC handoff section in `next` that lists open, review, lapsed, unexercised and excluded results. Accepts never change readiness, and `checkpoint waive` still refuses gates that are not blocked.
|
|
54
|
+
- The effects contract now declares bounded header-only GET requests to the store policy URLs a CampaignSpec configures, for `qa run --browser`, ahead of the check that sends them; QA does not send them yet.
|
|
55
|
+
|
|
56
|
+
## [1.50.0+agent.20] - 2026-10-04
|
|
57
|
+
|
|
58
|
+
### Changed
|
|
59
|
+
|
|
60
|
+
- `scripts/refresh-certified-family-fixtures.mjs` now sets `og_image` to
|
|
61
|
+
`https://example.com/og-image.png` on each certified family's
|
|
62
|
+
`_data/campaigns.json` entry before it renders, and records that in the
|
|
63
|
+
fixture manifest as `render_inputs`. The starters leave `og:image` out until
|
|
64
|
+
a campaign sets one, so without it every certified page would report a
|
|
65
|
+
missing `og:image` to the coming built-output smoke checks. The value is on a
|
|
66
|
+
reserved domain, so it is plainly synthetic, and doctor `--built` neither
|
|
67
|
+
maps nor fetches it. The committed fixture tree is unchanged until the next
|
|
68
|
+
regeneration.
|
|
69
|
+
|
|
70
|
+
## [1.50.0+agent.19] - 2026-10-03
|
|
71
|
+
|
|
72
|
+
### Fixed
|
|
73
|
+
|
|
74
|
+
- A campaign-identity finding (`funnel_drift`, `funnel_missing`,
|
|
75
|
+
`api_key_drift`, `attribution_drift`) that names a built file no active
|
|
76
|
+
CampaignSpec page builds to now says so, and lists the file on the finding as
|
|
77
|
+
`stray_files`. The message says to remove the source file if there is one,
|
|
78
|
+
delete the built file, and rebuild and record the build again. Before, a
|
|
79
|
+
design `index.html` copied under `assets/` built as its own page and blocked
|
|
80
|
+
as funnel drift, with the message telling the agent to retag a page it never
|
|
81
|
+
meant to ship. The gate still blocks, because the file is still served.
|
|
82
|
+
|
|
83
|
+
## [1.50.0+agent.18] - 2026-10-03
|
|
84
|
+
|
|
85
|
+
### Fixed
|
|
86
|
+
|
|
87
|
+
- Commercial parity no longer warns `price-claim-mismatch` on a page that shows
|
|
88
|
+
a voucher the normalized plan cannot price. An upsell priced by a live
|
|
89
|
+
voucher showed the voucher price, and QA compared it with the list-price
|
|
90
|
+
total. Those price claims now count as unresolved, as the page's voucher
|
|
91
|
+
claims already did, so coverage reads incomplete instead.
|
|
92
|
+
- `browser-order-bump-state` reads a `✓` glyph marker as checked only when its
|
|
93
|
+
text is painted. A tick that stays in the marker and is hidden with
|
|
94
|
+
`color: transparent` read checked before, so a declined bump failed as
|
|
95
|
+
misaligned.
|
|
96
|
+
|
|
97
|
+
## [1.50.0+agent.17] - 2026-10-03
|
|
98
|
+
|
|
99
|
+
### Fixed
|
|
100
|
+
|
|
101
|
+
- Three CampaignSpec validation messages that doctor and `start` print now say
|
|
102
|
+
which field to change:
|
|
103
|
+
- The missing-`payment_env_key` warning keeps "No campaign loaded — campaign
|
|
104
|
+
key required for spec export." and adds that `campaign.payment_env_key` is
|
|
105
|
+
empty, where its value comes from, and that a Campaigns API key in the spec
|
|
106
|
+
does not fill it. Before, it printed next to doctor's "Campaigns API key
|
|
107
|
+
available via the packet-local CampaignSpec" line and read as if the key
|
|
108
|
+
were missing.
|
|
109
|
+
- The missing SDK version error keeps "SDK version is required for spec
|
|
110
|
+
export." and names `global_config.sdk_version` and the form it takes.
|
|
111
|
+
- The missing `design_source.file_url` warning, for a page whose
|
|
112
|
+
`design_source.type` is not `figma` or `ai-generated`, and doctor's
|
|
113
|
+
matching no-source-mapping error, say that hand-written or template HTML
|
|
114
|
+
leaves `design_source` off the page. Before, a plain HTML page with a
|
|
115
|
+
`design_source` block was told only to add a design-tool URL.
|
|
116
|
+
|
|
117
|
+
## [1.50.0+agent.16] - 2026-10-03
|
|
118
|
+
|
|
119
|
+
### Fixed
|
|
120
|
+
|
|
121
|
+
- `prepare-build` (and `start`) no longer write an Assembly Report that fails
|
|
122
|
+
its own schema. When the brand-theme write failed, each error was copied
|
|
123
|
+
onto `theme.warnings[]` as `{ code, message, detail: error.detail || null }`.
|
|
124
|
+
The schema's `themeIssue.detail` is an object, so an error with no detail
|
|
125
|
+
(`theme.generate.not_ready`, `theme.generate.empty`) left `detail: null`.
|
|
126
|
+
`record setup` and `record build` then refused the report with
|
|
127
|
+
"Assembly Report theme.warnings.0.detail must be object". `detail` is now
|
|
128
|
+
written only when the error carries an object. The schema is unchanged.
|
|
129
|
+
|
|
130
|
+
## [1.50.0+agent.15] - 2026-10-03
|
|
131
|
+
|
|
132
|
+
### Fixed
|
|
133
|
+
|
|
134
|
+
- `record setup|build|polish|theme|deploy` accept `--deviation-reason`, as
|
|
135
|
+
every other command does. The deviation notice tells an agent that departs
|
|
136
|
+
from `next` to "Declare intent with --deviation-reason". `record` checks its
|
|
137
|
+
flags against a strict allowlist, which held only its own flags and the global
|
|
138
|
+
`--run-id` and `--lifecycle-journal`, so it refused the flag as unknown on
|
|
139
|
+
every stage. It is now a global flag there too. A bare `--deviation-reason`
|
|
140
|
+
with no value is refused as before.
|
|
141
|
+
|
|
142
|
+
## [1.50.0+agent.14] - 2026-10-03
|
|
143
|
+
|
|
144
|
+
### Fixed
|
|
145
|
+
|
|
146
|
+
- QA's placeholder text-residue gate (`template-residue:<page>:placeholder-text`,
|
|
147
|
+
and doctor's built-output warning) now also matches the starter templates'
|
|
148
|
+
own icon-grid placeholders, `Benefit one`, `Benefit two`, `Benefit three` and
|
|
149
|
+
`Benefit four`. The olympus checkouts ship them, and a campaign that kept
|
|
150
|
+
them passed QA with no failures, because the shared-commerce term list held
|
|
151
|
+
only `Lorem`, `lorem ipsum`, `Placeholder`, `TODO` and `Product Name`.
|
|
152
|
+
- The terms live in `contracts/template-brand-contract.shared-commerce.v0.json`,
|
|
153
|
+
so every family inherits them.
|
|
154
|
+
- Matching is word-bounded, so "Benefit once" does not fire.
|
|
155
|
+
- Doctor's next-step hint and `docs/template-family-contracts.md` list them.
|
|
156
|
+
|
|
157
|
+
## [1.50.0+agent.13] - 2026-10-03
|
|
158
|
+
|
|
159
|
+
### Fixed
|
|
160
|
+
|
|
161
|
+
- The source preparation check `source_html.prep.document_wrapper` reads a
|
|
162
|
+
page's converted page-kit file once it exists at `page_kit.output_path`, not
|
|
163
|
+
the design it was converted from. Wrappers are stripped during conversion,
|
|
164
|
+
and the converted page is what page-kit builds. The check only ever read the
|
|
165
|
+
mapped design, so a correctly stripped build still failed. To clear it,
|
|
166
|
+
agents copied built pages over the design source (breaking the Design Source
|
|
167
|
+
Package hashes) or recorded `preserve_document_wrappers` for pages they had
|
|
168
|
+
stripped. A converted page that still carries wrappers is reported under its
|
|
169
|
+
own path. Before conversion the design is checked as before. The frontmatter
|
|
170
|
+
and source-link checks are unchanged. `docs/source-adapters.md` says so.
|
|
171
|
+
|
|
172
|
+
## [1.50.0+agent.12] - 2026-10-03
|
|
173
|
+
|
|
174
|
+
### Fixed
|
|
175
|
+
|
|
176
|
+
- `record deploy` follows `next` past a polish carried forward on the local
|
|
177
|
+
preview. On a `local-serve` packet with a loopback preview, `next`'s stage
|
|
178
|
+
picker skips a polish that was never recorded for this build (the
|
|
179
|
+
local-preview policy carries it forward as a warning), so after
|
|
180
|
+
`record build` it answers deploy. `record deploy` checked every earlier
|
|
181
|
+
stage strictly and refused with "stages.polish.status is "required", so next
|
|
182
|
+
answers polish", which contradicted `next`. Sessions hand-wrote a polish skip
|
|
183
|
+
record to get past it. Both now read the same rule, from doctor's
|
|
184
|
+
`polish_gate`. Polish stays owed on the report and QA still reports it.
|
|
185
|
+
`record polish` and the waiver commands keep the strict gates.
|
|
186
|
+
`docs/build-packet.md` names the exception.
|
|
187
|
+
|
|
188
|
+
## [1.50.0+agent.11] - 2026-10-03
|
|
189
|
+
|
|
190
|
+
### Added
|
|
191
|
+
|
|
192
|
+
- Doctor warns `spec.material_stale` when a local-spec campaign's CampaignSpec
|
|
193
|
+
no longer has the material hash prepare-build bound on the Assembly Report
|
|
194
|
+
(`identity.spec_material_hash`). `next` prints the warning with the rest of
|
|
195
|
+
doctor's. QA already refused such a run ("Re-run prepare-build after a
|
|
196
|
+
material revision"). Until now it was the only command that checked, so a
|
|
197
|
+
spec edited after `start` was accepted by doctor, `next` and every `record`
|
|
198
|
+
command, and the problem surfaced only after the build, polish and deploy
|
|
199
|
+
stages had been recorded against the old spec. The warning names both hashes
|
|
200
|
+
and says to re-run prepare-build from the edited spec.
|
|
201
|
+
`docs/build-packet.md` says so.
|
|
202
|
+
|
|
203
|
+
## [1.50.0+agent.10] - 2026-10-03
|
|
204
|
+
|
|
205
|
+
### Fixed
|
|
206
|
+
|
|
207
|
+
- A checkout row marked `is_order_bump: true` is now read as an order bump.
|
|
208
|
+
The CampaignSpec schema and the authoring guide mark a checkout add-on with
|
|
209
|
+
that flag, and the certified fixtures use it alone, but the one bump
|
|
210
|
+
predicate the toolkit shares read only `is_upsell`. Such a row was treated
|
|
211
|
+
as a main package:
|
|
212
|
+
- the QA tier planner made it a selector tier of its own;
|
|
213
|
+
- `next` named no bump-cart QA command (`qa_run_bump`);
|
|
214
|
+
- commercial-journey priced the bump into the representative checkout and
|
|
215
|
+
planned no with/without-bump scenarios.
|
|
216
|
+
|
|
217
|
+
Either flag now marks a bump, and a row carrying `is_upsell: true` behaves as
|
|
218
|
+
before. On the certified fixtures, the five checkouts that declare a bump now
|
|
219
|
+
plan only their real tiers, and their bumps get the bump-cart command.
|
|
220
|
+
- Messages that named a bump `(is_upsell)` now say
|
|
221
|
+
`(is_order_bump or is_upsell)`: the tier planner's warning and refusal, the
|
|
222
|
+
`next` bump-command description, the `qa run --help` text and the QA
|
|
223
|
+
test-order notes. `docs/qa-and-test-orders.md` says the same.
|
|
224
|
+
|
|
225
|
+
## [1.50.0+agent.9] - 2026-10-03
|
|
226
|
+
|
|
227
|
+
### Added
|
|
228
|
+
|
|
229
|
+
- `record build --build-environment <development|production>` records the
|
|
230
|
+
page-kit environment the built output was rendered in, on
|
|
231
|
+
`stages.assembly.evidence.build_environment`. A later `record build` without
|
|
232
|
+
the flag keeps the recorded value. Before this, local proof mode
|
|
233
|
+
(`deploy.target: local-serve`) asked the agent to record the field, but no
|
|
234
|
+
command wrote it, so it was hand-edited into the Assembly Report.
|
|
235
|
+
- Under local-serve, `next` now names
|
|
236
|
+
`record build --packet <packet> --build-environment development` in the
|
|
237
|
+
build action and the build prompt.
|
|
238
|
+
- Doctor's `local_proof.build_environment` warning, the parity messages and
|
|
239
|
+
the local-proof rebuild hint name the same command.
|
|
240
|
+
- `docs/build-packet.md` and `docs/qa-and-test-orders.md` describe it.
|
|
241
|
+
|
|
242
|
+
### Fixed
|
|
243
|
+
|
|
244
|
+
- A `record` refused for a value outside a schema enum now lists the values the
|
|
245
|
+
schema allows and the value it got. For example,
|
|
246
|
+
`adapter_decisions.wrapper_policy must be equal to one of the allowed values:
|
|
247
|
+
"strip_document_wrappers", "preserve_document_wrappers", "not_required",
|
|
248
|
+
"unknown" (got "strip")`; before, it stopped at "allowed values".
|
|
249
|
+
- Doctor's adapter-decision warning for an unknown value lists the allowed
|
|
250
|
+
values too.
|
|
251
|
+
|
|
252
|
+
## [1.50.0+agent.8] - 2026-10-03
|
|
253
|
+
|
|
254
|
+
### Changed
|
|
255
|
+
|
|
256
|
+
- The vendored commerce-surface catalog is re-synced to
|
|
257
|
+
campaign-cart-starter-templates `02ffc61`, from `37a8d94`. That brings in
|
|
258
|
+
three starter changes:
|
|
259
|
+
- the single-offer upsell keeps a hidden in-offer skip, so its closing-card
|
|
260
|
+
decline works in every family (#205);
|
|
261
|
+
- `payment-methods.html` takes `method_order` and `default_method` (#202);
|
|
262
|
+
- fresh SDK 0.4.40 verification evidence (#203).
|
|
263
|
+
|
|
264
|
+
The upstream order-bump notes were consolidated, and the vendored copy
|
|
265
|
+
follows them.
|
|
266
|
+
- `fixtures/certified-families/` is regenerated at the new pin. Every
|
|
267
|
+
`upsell-single` fixture now carries the in-offer skip, so QA's static
|
|
268
|
+
`route-link:<page>:decline` check, which fails a proxy decline with no
|
|
269
|
+
target, passes on all eight families instead of failing on each.
|
|
270
|
+
- The shared commerce payment-chrome `asset_pin` moves to the new pin. The
|
|
271
|
+
asset bytes are unchanged.
|
|
272
|
+
|
|
273
|
+
## [1.50.0+agent.7] - 2026-10-03
|
|
274
|
+
|
|
275
|
+
### Fixed
|
|
276
|
+
|
|
277
|
+
- `sdk storage-check` resolves Page Kit's `campaign_asset` script srcs. A
|
|
278
|
+
page under `src/<slug>/` that loads `{{ 'js/checkout.js' | campaign_asset }}`
|
|
279
|
+
is read as `src/<slug>/assets/js/checkout.js`, where Page Kit serves it from,
|
|
280
|
+
and a page's frontmatter `scripts:` entries resolve the same way, since a
|
|
281
|
+
layout's `{% for script in scripts %}` loop loads them through that filter.
|
|
282
|
+
Until now every such tag read as a relative path that was never in scope and
|
|
283
|
+
reported `shared-script-outside-scope`, so every Page Kit campaign came back
|
|
284
|
+
`unknown` even when nothing was incompatible (#582). A resolved script left
|
|
285
|
+
out of `--scope`, or excluded, is still reported, under its real path; a
|
|
286
|
+
`campaign_asset` value the scan cannot resolve stays unknown.
|
|
287
|
+
`docs/sdk-storage-compatibility.md` says so.
|
|
288
|
+
|
|
289
|
+
## [1.50.0+agent.6] - 2026-10-03
|
|
290
|
+
|
|
291
|
+
### Fixed
|
|
292
|
+
|
|
293
|
+
- QA no longer passes an upsell decline or accept that does nothing. Some
|
|
294
|
+
upsell pages show a `data-upsell-proxy="skip"` (or `"add"`) button that
|
|
295
|
+
forwards its click to the SDK's `data-next-upsell-action` inside the offer.
|
|
296
|
+
When the offer has no such action, the static `route-link:<page>:decline`
|
|
297
|
+
(or `:accept`) check used to pass on the decline URL in the page's meta tag,
|
|
298
|
+
and only browser QA, after placing the order, found the control missing. The
|
|
299
|
+
static check now fails as a blocker and says the proxy has nothing to
|
|
300
|
+
forward to. The starter templates' single-offer upsell shipped this way in
|
|
301
|
+
every family until the templates kept a hidden in-offer skip.
|
|
302
|
+
- Browser QA declines (and accepts) through the control a shopper sees. When
|
|
303
|
+
the page's `data-next-upsell-action` is hidden and a visible
|
|
304
|
+
`data-upsell-proxy` button forwards to it, QA clicks the proxy instead of
|
|
305
|
+
failing with `Element is not visible` on the hidden action. A proxy with no
|
|
306
|
+
in-offer action is still reported as a missing upsell control.
|
|
307
|
+
|
|
308
|
+
## [1.50.0+agent.5] - 2026-10-03
|
|
309
|
+
|
|
310
|
+
### Changed
|
|
311
|
+
|
|
312
|
+
- The agent context the toolkit installs (`agents/claude/CLAUDE.md`,
|
|
313
|
+
`agents/codex/AGENTS.md`, `agents/cursor/campaigns-os.mdc`,
|
|
314
|
+
`agents/copilot/copilot-instructions.md`) and the `next-campaigns-os` and
|
|
315
|
+
`next-campaigns-qa` skills no longer say test orders need no permission or
|
|
316
|
+
approval, or are safe to fire any time. They say `qa run` has no permission
|
|
317
|
+
flag and coverage is its only control, and that test orders still land in
|
|
318
|
+
the store as real orders (global test cards: no charge, no transaction) that
|
|
319
|
+
someone may have to cancel. Unless the operator has already said test orders
|
|
320
|
+
are fine for the campaign, the agent asks once, up front in its first turn
|
|
321
|
+
with its other setup questions, so the answer covers the whole build and QA
|
|
322
|
+
and neither stops for it later. The skill's session-intake reference says
|
|
323
|
+
the same in its test-order proof policy.
|
|
324
|
+
- The QA skill follows an answer the operator already gave and does not pause
|
|
325
|
+
QA to ask again. When nobody asked earlier, it asks once before the first
|
|
326
|
+
test order.
|
|
327
|
+
- `qa run` is unchanged: it has no permission flag and none is added. Its
|
|
328
|
+
help text and the docs are unchanged.
|
|
329
|
+
- Bundled skills carry revision `1.50.0+skills.2`, with each skill version
|
|
330
|
+
advanced one patch.
|
|
331
|
+
|
|
332
|
+
## [1.50.0+agent.4] - 2026-10-02
|
|
333
|
+
|
|
334
|
+
### Changed
|
|
335
|
+
|
|
336
|
+
- At the QA stage, `next` lists a second QA command when the CampaignSpec's
|
|
337
|
+
checkout declares an order bump (`is_upsell: true` rows). `qa_run_bump`,
|
|
338
|
+
beside `qa_run`, is the same `qa run --browser --test-order common` with
|
|
339
|
+
`--cart <base>:1,<bump>:1`, so its test orders carry the add-on and prove
|
|
340
|
+
its charge. Until now `next` named only the default run. Its test orders
|
|
341
|
+
never toggle a bump, because the tier planner skips bump rows by design and
|
|
342
|
+
bump coverage comes from `--cart`, so a verdict could read ready with the
|
|
343
|
+
add-on never ordered. The base is the first selector tier the checkout
|
|
344
|
+
declares; a checkout that declares no tier gets the bump alone, and several
|
|
345
|
+
declared bumps share one cart. The QA stage prompt and the human `next`
|
|
346
|
+
output name the same command, and `docs/qa-and-test-orders.md` says so
|
|
347
|
+
under its launch-grade proof list. The bump is read from the one checkout
|
|
348
|
+
QA's test orders run on, the first enabled checkout across funnels, so a
|
|
349
|
+
bump declared only on a later funnel's checkout gets no command. When the
|
|
350
|
+
CampaignSpec does not parse, `next` warns
|
|
351
|
+
(`next.order_bump_spec_unreadable`) instead of silently naming no bump
|
|
352
|
+
command.
|
|
353
|
+
- A progress snapshot records `qa_run_bump` as `qa_run`. The snapshot's
|
|
354
|
+
action vocabulary is unchanged, and a ready QA continuation does not read
|
|
355
|
+
as blocked.
|
|
356
|
+
- The QA tier planner reads its bump and tier helpers from the
|
|
357
|
+
commercial-journey module, where `next` reads them too. Tier planning is
|
|
358
|
+
unchanged.
|
|
359
|
+
|
|
360
|
+
## [1.50.0+agent.3] - 2026-10-02
|
|
361
|
+
|
|
362
|
+
### Changed
|
|
363
|
+
|
|
364
|
+
- The Campaign Build Brief question `promo_urgency_copy` now asks only about
|
|
365
|
+
the starter template's own promo placeholders: demo countdown timers, promo
|
|
366
|
+
banners, placeholder voucher codes and exit-pop offers. It asks whether to
|
|
367
|
+
fill them from the campaign's promo codes and offers or remove them. It no
|
|
368
|
+
longer asks which promo, savings and urgency language is approved, which
|
|
369
|
+
read as a request to approve the source design's own copy; that copy is the
|
|
370
|
+
merchant's content and is built as designed.
|
|
371
|
+
- The question is asked only when the CampaignSpec maps a surface that fills
|
|
372
|
+
those placeholders: a `funnels[].promo_codes` roster, or a checkout page's
|
|
373
|
+
enabled `exit_intent` or `promo_code_input`. It used to be asked for any CampaignSpec
|
|
374
|
+
key naming an offer, discount, timer or urgency, so the offer catalog,
|
|
375
|
+
before-discount prices and design slot names all raised it. Without such a
|
|
376
|
+
surface the guided draft sets `promo_urgency.header_claim_source` and
|
|
377
|
+
`promo_urgency.timer_label` to `"none"` (the template's promo placeholders
|
|
378
|
+
are removed). The draft used to set `timer_label` to "Limited-time offer".
|
|
379
|
+
- Doctor's `build_brief.guided_questions` warning names the brief fields that
|
|
380
|
+
close each open question and says how to record the answers: copy the
|
|
381
|
+
normalized draft to `campaign-build-brief.json` in the target repo, set the
|
|
382
|
+
fields, and re-run `start` or `prepare-build`. It also says the re-run needs
|
|
383
|
+
`--force`, which clears stage evidence, once a stage has recorded evidence.
|
|
384
|
+
`build_brief.questions_unanswered` names the fields too. An answer given
|
|
385
|
+
only in conversation was never recorded, so a later session asked again.
|
|
386
|
+
- `next`'s QA prompt compares the template's own promo placeholders and trust
|
|
387
|
+
badges with the brief and says not to flag the source design's own proof,
|
|
388
|
+
urgency or guarantee elements. It used to ask for promo/urgency copy and
|
|
389
|
+
trust/guarantee claims to be compared. The build prompt names the template's
|
|
390
|
+
promo placeholders where it named promo/urgency language.
|
|
391
|
+
- `docs/campaign-build-brief.md` rewords question 5 and adds "Answering The
|
|
392
|
+
Questions", with the fields that close each question.
|
|
393
|
+
|
|
394
|
+
## [1.50.0+agent.2] - 2026-10-02
|
|
395
|
+
|
|
396
|
+
### Changed
|
|
397
|
+
|
|
398
|
+
- `docs/build-packet.md` says how to read a campaign's package, offer and
|
|
399
|
+
shipping refs for a local CampaignSpec. Its new "Reading package, offer and
|
|
400
|
+
shipping refs" section, under "Local-spec entry", gives the read doctor and
|
|
401
|
+
QA already make against the live campaign: one GET of NEXT's proxy,
|
|
402
|
+
`https://campaign-map.nextcommerce.com/api/campaign`, with the public
|
|
403
|
+
Campaigns API key in the `X-Campaign-Key` header. It shows a `node` and a
|
|
404
|
+
`curl` form, describes the envelope, and maps the campaign retrieve body's
|
|
405
|
+
`id`, `packages[]`, `offers[]` and `shipping_methods[]` to
|
|
406
|
+
`campaign.ref_id`, `funnels[].pages[].packages[]`, root `offers[]` and root
|
|
407
|
+
`shipping_methods[]`. It also notes that the proxy refuses some default user
|
|
408
|
+
agents, Python `urllib`'s and Perl `libwww-perl`'s among them. No command
|
|
409
|
+
writes these refs, as before.
|
|
410
|
+
- With no saved gateway login, `tooling status` no longer only says to run
|
|
411
|
+
`login`. Its warning says login is optional and only lets `spec derive
|
|
412
|
+
--from-store` fill the Store Profile fields, and a second warning says
|
|
413
|
+
package, offer and shipping refs never come from the gateway login and
|
|
414
|
+
where the public-key read is documented. Both lines are under `warnings`,
|
|
415
|
+
and the exit code is unchanged.
|
|
416
|
+
|
|
417
|
+
## [1.50.0+agent.1] - 2026-10-02
|
|
418
|
+
|
|
419
|
+
### Changed
|
|
420
|
+
|
|
421
|
+
- No command behaves differently. A comment in the QA browser module that
|
|
422
|
+
explains how repeated package declarations become purchase multipliers
|
|
423
|
+
named an internal store as its example; it now gives a neutral one (a 1x
|
|
424
|
+
and a 2x package). Two QA test files swap the same name in a fixture SKU
|
|
425
|
+
and a hosted-checkout URL for neutral placeholders, and the same fixture's
|
|
426
|
+
product title becomes "Demo Bag". Comment and test fixtures only; every
|
|
427
|
+
message and every exit code is unchanged.
|
|
428
|
+
- The private-string check adds that store name to its hashed list, so it
|
|
429
|
+
cannot return.
|
|
430
|
+
|
|
5
431
|
## [1.50.0] - 2026-10-02
|
|
6
432
|
|
|
7
433
|
### Changed
|
package/agents/claude/CLAUDE.md
CHANGED
|
@@ -28,12 +28,12 @@ Core rules:
|
|
|
28
28
|
- Do not copy Olympus-style `shipping_methods` frontmatter into `shop-three-step`; it uses dynamic shipping through `window.next.getShippingMethods()`.
|
|
29
29
|
- Run build/lint checks and record evidence in the assembly report, then hand off to polish. Before Polish becomes terminal or hands off to deploy/QA, install the package-owned Playwright browser with `npm run qa:install-browser`, serve the current build, and run `npx --no-install campaigns-os polish capture --packet campaign-runtime.build.json --base-url <served-current-build-url>`.
|
|
30
30
|
- After that checkpoint clears, QA uses the Campaigns OS Node/npm runner: run `npx --no-install campaigns-os qa resolve --packet campaign-runtime.build.json`, then run `npx --no-install campaigns-os qa run --packet campaign-runtime.build.json --base-url <url> --browser --test-order common`.
|
|
31
|
-
- Typed-card test-order proof uses `npx --no-install campaigns-os qa run --test-order <common|checkout|decline|accept|both|full|explicit-path>` through the deployed checkout and rendered upsell controls. `common` runs every actual terminal path when they fit under the flood cap (`--max-test-orders`, 6 by default); above the cap it runs the checkout baseline, first-offer accept and decline, and a deduplicated shortest real receipt path, then adds one decline path per offer or downsell page not yet declined, up to the cap, and names any page left out. A page counts as covered only when an order clicks its decline; the `browser-test-order:upsell-action-coverage` verdict row warns naming each page whose decline no order clicked. `full` walks every actual terminal path in the selected checkout topology; cycles, missing routes, and reachable nonterminals block exhaustive proof before browser launch. The accidental-flood cap remains `6`, and an overflow names the exact explicit `--max-test-orders` raise.
|
|
31
|
+
- Typed-card test-order proof uses `npx --no-install campaigns-os qa run --test-order <common|checkout|decline|accept|both|full|explicit-path>` through the deployed checkout and rendered upsell controls. `common` runs every actual terminal path when they fit under the flood cap (`--max-test-orders`, 6 by default); above the cap it runs the checkout baseline, first-offer accept and decline, and a deduplicated shortest real receipt path, then adds one decline path per offer or downsell page not yet declined, up to the cap, and names any page left out. A page counts as covered only when an order clicks its decline; the `browser-test-order:upsell-action-coverage` verdict row warns naming each page whose decline no order clicked. `full` walks every actual terminal path in the selected checkout topology; cycles, missing routes, and reachable nonterminals block exhaustive proof before browser launch. The accidental-flood cap remains `6`, and an overflow names the exact explicit `--max-test-orders` raise. `qa run` has no permission flag: coverage is its only control.
|
|
32
32
|
- Analytics correctness is two-phase: the campaign-root visit inventories declared providers/tags only, and the same canonical typed-card run proves Purchase only from the topology-recognized final receipt document after `--analytics-settle`. Missing/unrecognized receipts are manual-review warnings; recognized receipt no-signal and capture/settle errors block. Only the genuine recognized-receipt/no-signal failure is waivable; capture/settle errors are not. Checkout/upsell signals remain whole-journey parity evidence and cannot satisfy a silent receipt.
|
|
33
33
|
- Test-order proof must use the canonical Playwright typed-card path through the tested checkout: select the rendered cart, fill customer/shipping fields, type the sandbox card into active hosted payment iframes, click the real submit button, then click rendered SDK upsell accept/decline controls and verify receipt/order evidence.
|
|
34
34
|
- Do not use `next.getCartData().cartLines` as cart-populated proof; use typed-card order read-back, `cart:updated` payload `items` / `summary.lines`, and rendered bundle DOM evidence.
|
|
35
35
|
- Do not use external browser skills, the SDK test-mode event, or hand-built backend API orders as launch proof. Those are diagnostic fallbacks only when explicitly requested.
|
|
36
|
-
- Test orders
|
|
36
|
+
- Test orders still land in the store as real orders that someone may have to cancel (global test cards bypass the gateway: no charge, no transaction, no merchant-specific routing to confirm). Unless the operator has already said test orders are fine for this campaign, ask once, up front in your first turn with your other setup questions, so the answer covers the whole build and QA and neither stops for it later. Localhost on any port is a Campaigns App Development domain for SDK QA with analytics suppressed; non-localhost preview/production origins must be allowlisted for the campaign API key so the SDK loads — that is about SDK initialization, not test-order permission.
|
|
37
37
|
- Campaigns OS proof is not merchant launch readiness. Before launch, confirm production storefront URL, live payment methods, shipping markets, legal/support URLs, analytics expectations, and merchant-side configuration.
|
|
38
38
|
|
|
39
39
|
Current source adapter: prepared HTML/assets (`html_funnel`).
|
package/agents/codex/AGENTS.md
CHANGED
|
@@ -22,7 +22,7 @@ Use this context when working in a target campaign repo with Campaigns OS artifa
|
|
|
22
22
|
- For `shop-three-step`, keep dynamic shipping via `window.next.getShippingMethods()` and do not add Olympus-style static `shipping_methods` frontmatter.
|
|
23
23
|
- Build hands off to polish. Before Polish becomes terminal or hands off to deploy/QA, install the package-owned Playwright browser with `npm run qa:install-browser`, serve the current build, and run `npx --no-install campaigns-os polish capture --packet campaign-runtime.build.json --base-url <served-current-build-url>`.
|
|
24
24
|
- After that checkpoint clears, QA uses the Campaigns OS Node/npm runner: run `npx --no-install campaigns-os qa resolve`, then `npx --no-install campaigns-os qa run --browser --test-order common` against the tested URL.
|
|
25
|
-
- Typed-card test-order proof uses `npx --no-install campaigns-os qa run --test-order <common|checkout|decline|accept|both|full|explicit-path>` through the tested checkout and rendered upsell controls.
|
|
25
|
+
- Typed-card test-order proof uses `npx --no-install campaigns-os qa run --test-order <common|checkout|decline|accept|both|full|explicit-path>` through the tested checkout and rendered upsell controls. `qa run` has no permission flag: coverage is its only control. Test orders still land in the store as real orders (global test cards: no charge, no transaction) that someone may have to cancel. Unless the operator has already said test orders are fine for this campaign, ask once, up front in your first turn with your other setup questions, so the answer covers the whole build and QA and neither stops for it later. `common` runs every actual terminal path when they fit under the flood cap (`--max-test-orders`, 6 by default); above the cap it runs the checkout baseline, first-offer accept and decline, and a deduplicated shortest real receipt path, then adds one decline path per offer or downsell page not yet declined, up to the cap, and names any page left out. A page counts as covered only when an order clicks its decline; the `browser-test-order:upsell-action-coverage` verdict row warns naming each page whose decline no order clicked. `full` walks every actual terminal path in the selected checkout topology; cycles, missing routes, and reachable nonterminals block exhaustive proof before browser launch. The accidental-flood cap remains `6`, and an overflow names the exact explicit `--max-test-orders` raise. Localhost on any port is a Campaigns App Development domain for SDK QA with analytics suppressed; non-localhost preview/production origins still need SDK origin allowlist confirmation. Do not use external browser skills, the SDK test-mode event, or hand-built backend API orders as launch proof.
|
|
26
26
|
- Analytics correctness is two-phase: the campaign-root visit inventories declared providers/tags only, and the same canonical typed-card run proves Purchase only from the topology-recognized final receipt document after `--analytics-settle`. Missing/unrecognized receipts are manual-review warnings; recognized receipt no-signal and capture/settle errors block. Only the genuine recognized-receipt/no-signal failure is waivable; capture/settle errors are not. Checkout/upsell signals remain whole-journey parity evidence and cannot satisfy a silent receipt.
|
|
27
27
|
- Do not use `next.getCartData().cartLines` as cart-populated proof; use typed-card order read-back, `cart:updated` payload `items` / `summary.lines`, and rendered bundle DOM evidence.
|
|
28
28
|
- Campaigns OS proof is not merchant launch readiness. Before launch, confirm production storefront URL, live payment methods, shipping markets, legal/support URLs, analytics expectations, and merchant-side configuration.
|
|
@@ -12,4 +12,4 @@ CampaignSpec validation is owned by the public `@nextcommerce/campaigns-os/campa
|
|
|
12
12
|
|
|
13
13
|
Preserve Campaign Cart SDK-owned commerce surfaces. Replace starter demo refs from CampaignSpec/API. Prepared AI/exported HTML must be converted into page-kit-ready source first: keep page-owned body markup, strip document wrappers, add YAML frontmatter, move shared CSS/assets into the campaign structure, and use Liquid helpers only for page-kit links/assets/includes. Landing/presell pages can preserve source design; checkout/upsell/downsell/receipt should use starter-template commerce surfaces as SDK contract references while campaign/source owns visual chrome. Reproduce the source design's own proof and urgency elements as designed (reviews, ratings, stock counters, countdowns, guarantees). They are the merchant's content; Campaigns OS does not review them, so do not remove, soften or flag them. Copy starter template families atomically with dependent pages, `_includes/`, `_layouts/`, `assets/css/`, and `assets/js/`; do not copy only checkout/receipt pages. Do not claim launch readiness until build, polish, deploy, and QA evidence are recorded.
|
|
14
14
|
|
|
15
|
-
Before Polish becomes terminal or hands off to deploy/QA, install the package-owned Playwright browser with `npm run qa:install-browser`, serve the current build, and run `npx --no-install campaigns-os polish capture --packet campaign-runtime.build.json --base-url <served-current-build-url>`. After that checkpoint clears, QA must use the Campaigns OS Node/npm runner: run `npx --no-install campaigns-os qa resolve`, then run `npx --no-install campaigns-os qa run --browser --test-order common` against the tested URL. Typed-card test-order proof must use `npx --no-install campaigns-os qa run --test-order <common|checkout|decline|accept|both|full|explicit-path>` through the tested checkout and rendered upsell controls
|
|
15
|
+
Before Polish becomes terminal or hands off to deploy/QA, install the package-owned Playwright browser with `npm run qa:install-browser`, serve the current build, and run `npx --no-install campaigns-os polish capture --packet campaign-runtime.build.json --base-url <served-current-build-url>`. After that checkpoint clears, QA must use the Campaigns OS Node/npm runner: run `npx --no-install campaigns-os qa resolve`, then run `npx --no-install campaigns-os qa run --browser --test-order common` against the tested URL. Typed-card test-order proof must use `npx --no-install campaigns-os qa run --test-order <common|checkout|decline|accept|both|full|explicit-path>` through the tested checkout and rendered upsell controls. `qa run` has no permission flag: coverage is its only control. Test orders still land in the store as real orders (global test cards: no charge, no transaction) that someone may have to cancel. Unless the operator has already said test orders are fine for this campaign, ask once, up front in your first turn with your other setup questions, so the answer covers the whole build and QA and neither stops for it later. `common` runs every actual terminal path when they fit under the flood cap (`--max-test-orders`, 6 by default); above the cap it runs the checkout baseline, first-offer accept and decline, and a deduplicated shortest real receipt path, then adds one decline path per offer or downsell page not yet declined, up to the cap, and names any page left out. A page counts as covered only when an order clicks its decline; the `browser-test-order:upsell-action-coverage` verdict row warns naming each page whose decline no order clicked. `full` walks every actual terminal path in the selected checkout topology; cycles, missing routes, and reachable nonterminals block exhaustive proof before browser launch. The accidental-flood cap remains `6`, and an overflow names the exact explicit `--max-test-orders` raise. Analytics correctness is two-phase: the campaign-root visit inventories declared providers/tags only, and the same canonical typed-card run proves Purchase only from the topology-recognized final receipt document after `--analytics-settle`. Missing/unrecognized receipts are manual-review warnings; recognized receipt no-signal and capture/settle errors block. Only the genuine recognized-receipt/no-signal failure is waivable; capture/settle errors are not. Checkout/upsell signals remain whole-journey parity evidence and cannot satisfy a silent receipt. Do not use `next.getCartData().cartLines` as cart-populated proof; use typed-card order read-back, `cart:updated` payload `items` / `summary.lines`, and rendered bundle DOM evidence. Localhost on any port is a Campaigns App Development domain for SDK QA with analytics suppressed; non-localhost preview/production origins still need SDK origin allowlist confirmation. Do not use external browser skills, SDK test-mode events, or direct backend orders as launch proof. Campaigns OS proof is not merchant launch readiness; before launch, confirm production storefront URL, live payment methods, shipping markets, legal/support URLs, analytics expectations, and merchant-side configuration.
|
|
@@ -10,4 +10,4 @@ Read Campaigns OS artifacts before editing campaign pages. To pick up an existin
|
|
|
10
10
|
|
|
11
11
|
Do not carry over demo package, shipping, voucher, payment, tracking, footer, or SEO values. Prepared AI/exported HTML must be converted into page-kit-ready source first: keep page-owned body markup, strip document wrappers, add YAML frontmatter, move shared CSS/assets into the campaign structure, and use Liquid helpers only for page-kit links/assets/includes. Preserve prepared landing/presell source HTML when it is a real standalone design. For checkout/upsell/downsell/receipt, use starter-template commerce surfaces as SDK contract references while campaign/source owns visual chrome. Reproduce the source design's own proof and urgency elements as designed (reviews, ratings, stock counters, countdowns, guarantees). They are the merchant's content; Campaigns OS does not review them, so do not remove, soften or flag them. Copy starter template families atomically with dependent pages, `_includes/`, `_layouts/`, `assets/css/`, and `assets/js/`; do not copy only checkout/receipt pages. Emit SDK routing meta tags as campaign-root paths such as `/campaign-slug/upsell/`. Preserve SDK-owned checkout/cart/upsell/receipt surfaces. For `shop-three-step`, shipping is dynamic via `window.next.getShippingMethods()`.
|
|
12
12
|
|
|
13
|
-
Before Polish becomes terminal or hands off to deploy/QA, install the package-owned Playwright browser with `npm run qa:install-browser`, serve the current build, and run `npx --no-install campaigns-os polish capture --packet campaign-runtime.build.json --base-url <served-current-build-url>`. After that checkpoint clears, QA uses the Campaigns OS Node/npm runner: `npx --no-install campaigns-os qa resolve`, then `npx --no-install campaigns-os qa run --browser --test-order common` against the tested URL. Test-order proof uses `npx --no-install campaigns-os qa run --test-order <common|checkout|decline|accept|both|full|explicit-path>` through the tested checkout and rendered upsell controls
|
|
13
|
+
Before Polish becomes terminal or hands off to deploy/QA, install the package-owned Playwright browser with `npm run qa:install-browser`, serve the current build, and run `npx --no-install campaigns-os polish capture --packet campaign-runtime.build.json --base-url <served-current-build-url>`. After that checkpoint clears, QA uses the Campaigns OS Node/npm runner: `npx --no-install campaigns-os qa resolve`, then `npx --no-install campaigns-os qa run --browser --test-order common` against the tested URL. Test-order proof uses `npx --no-install campaigns-os qa run --test-order <common|checkout|decline|accept|both|full|explicit-path>` through the tested checkout and rendered upsell controls. `qa run` has no permission flag: coverage is its only control. Test orders still land in the store as real orders (global test cards: no charge, no transaction) that someone may have to cancel. Unless the operator has already said test orders are fine for this campaign, ask once, up front in your first turn with your other setup questions, so the answer covers the whole build and QA and neither stops for it later. `common` runs every actual terminal path when they fit under the flood cap (`--max-test-orders`, 6 by default); above the cap it runs the checkout baseline, first-offer accept and decline, and a deduplicated shortest real receipt path, then adds one decline path per offer or downsell page not yet declined, up to the cap, and names any page left out. A page counts as covered only when an order clicks its decline; the `browser-test-order:upsell-action-coverage` verdict row warns naming each page whose decline no order clicked. `full` walks every actual terminal path in the selected checkout topology; cycles, missing routes, and reachable nonterminals block exhaustive proof before browser launch. The accidental-flood cap remains `6`, and an overflow names the exact explicit `--max-test-orders` raise. Analytics correctness is two-phase: the campaign-root visit inventories declared providers/tags only, and the same canonical typed-card run proves Purchase only from the topology-recognized final receipt document after `--analytics-settle`. Missing/unrecognized receipts are manual-review warnings; recognized receipt no-signal and capture/settle errors block. Only the genuine recognized-receipt/no-signal failure is waivable; capture/settle errors are not. Checkout/upsell signals remain whole-journey parity evidence and cannot satisfy a silent receipt. Do not use `next.getCartData().cartLines` as cart-populated proof; use typed-card order read-back, `cart:updated` payload `items` / `summary.lines`, and rendered bundle DOM evidence. Localhost on any port is a Campaigns App Development domain for SDK QA with analytics suppressed; non-localhost preview/production origins still need SDK origin allowlist confirmation. External browser skills, SDK test-mode events, and direct backend orders are not launch proof. Campaigns OS proof is not merchant launch readiness; before launch, confirm production storefront URL, live payment methods, shipping markets, legal/support URLs, analytics expectations, and merchant-side configuration.
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* a need to subset them. If that need shows up, split into
|
|
9
9
|
* CampaignPaymentKey and CampaignRefId.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* The ref_id message is inherited verbatim from the pre-#110 validator. The
|
|
12
|
+
* payment_env_key message keeps that validator's first sentence, which
|
|
13
|
+
* consumers match, and adds which field is empty and where its value comes
|
|
14
|
+
* from: a Campaigns API key in the spec (campaign.campaigns_api_key) is a
|
|
15
|
+
* different field and does not satisfy it.
|
|
12
16
|
*/
|
|
13
17
|
import type { Rule } from '../types.ts';
|
|
14
18
|
export declare const CampaignMetadata: Rule;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* a need to subset them. If that need shows up, split into
|
|
9
9
|
* CampaignPaymentKey and CampaignRefId.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* The ref_id message is inherited verbatim from the pre-#110 validator. The
|
|
12
|
+
* payment_env_key message keeps that validator's first sentence, which
|
|
13
|
+
* consumers match, and adds which field is empty and where its value comes
|
|
14
|
+
* from: a Campaigns API key in the spec (campaign.campaigns_api_key) is a
|
|
15
|
+
* different field and does not satisfy it.
|
|
12
16
|
*/
|
|
13
17
|
export const CampaignMetadata = {
|
|
14
18
|
id: 'CampaignMetadata',
|
|
@@ -21,7 +25,10 @@ export const CampaignMetadata = {
|
|
|
21
25
|
violations.push({
|
|
22
26
|
ruleId: 'CampaignMetadata',
|
|
23
27
|
severity: 'warning',
|
|
24
|
-
message: 'No campaign loaded — campaign key required for spec export.'
|
|
28
|
+
message: 'No campaign loaded — campaign key required for spec export. ' +
|
|
29
|
+
'campaign.payment_env_key is empty: copy it from the campaign retrieve body ' +
|
|
30
|
+
'(docs/build-packet.md, "Reading package, offer and shipping refs"). ' +
|
|
31
|
+
'A Campaigns API key in the spec does not fill this field.',
|
|
25
32
|
path: '/campaign/payment_env_key',
|
|
26
33
|
data: { missing: 'payment_env_key' },
|
|
27
34
|
});
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
* a build blocker. The export tool itself is the real validator at handoff
|
|
26
26
|
* time; this rule keeps Map Builder authors honest while editing.
|
|
27
27
|
*/
|
|
28
|
+
// design_source.type values with a producer (docs/entry-points.md). A page of
|
|
29
|
+
// one of these types needs its file_url; any other type gets the hand-written
|
|
30
|
+
// HTML way out as well.
|
|
31
|
+
const DESIGN_TOOL_PRODUCERS = new Set(['figma', 'ai-generated']);
|
|
28
32
|
const FIGMA_URL_PATTERN = /^https:\/\/(?:www\.)?figma\.com\//i;
|
|
29
33
|
const ANY_URL_PATTERN = /^https?:\/\/\S+/i;
|
|
30
34
|
function isNonEmptyString(value) {
|
|
@@ -44,6 +48,9 @@ export const DesignSourceShape = {
|
|
|
44
48
|
return;
|
|
45
49
|
const basePath = `/funnels/${funnelIdx}/pages/${pageIdx}/design_source`;
|
|
46
50
|
const pageLabel = page.label || page.id || '(unnamed page)';
|
|
51
|
+
// One normalization for every type comparison below, so "Figma" and
|
|
52
|
+
// " figma " are the same producer everywhere in this rule.
|
|
53
|
+
const designType = String(design.type ?? '').trim().toLowerCase();
|
|
47
54
|
// 1. type
|
|
48
55
|
if (!isNonEmptyString(design.type)) {
|
|
49
56
|
violations.push({
|
|
@@ -59,7 +66,10 @@ export const DesignSourceShape = {
|
|
|
59
66
|
violations.push({
|
|
60
67
|
ruleId: 'DesignSourceShape',
|
|
61
68
|
severity: 'warning',
|
|
62
|
-
message: `"${pageLabel}" — design_source.file_url is missing; expected the design-tool file URL
|
|
69
|
+
message: `"${pageLabel}" — design_source.file_url is missing; expected the design-tool file URL.` +
|
|
70
|
+
(DESIGN_TOOL_PRODUCERS.has(designType)
|
|
71
|
+
? ''
|
|
72
|
+
: ' Hand-written or template HTML has no design tool: remove design_source from the page (see docs/entry-points.md).'),
|
|
63
73
|
path: `${basePath}/file_url`,
|
|
64
74
|
data: { pageId: page.id, check: 'file-url-missing' },
|
|
65
75
|
});
|
|
@@ -73,7 +83,7 @@ export const DesignSourceShape = {
|
|
|
73
83
|
data: { pageId: page.id, check: 'file-url-shape', value: design.file_url },
|
|
74
84
|
});
|
|
75
85
|
}
|
|
76
|
-
else if (
|
|
86
|
+
else if (designType === 'figma' && !FIGMA_URL_PATTERN.test(design.file_url)) {
|
|
77
87
|
// 3. figma-specific: must be a figma.com URL
|
|
78
88
|
violations.push({
|
|
79
89
|
ruleId: 'DesignSourceShape',
|
|
@@ -121,7 +131,7 @@ export const DesignSourceShape = {
|
|
|
121
131
|
});
|
|
122
132
|
continue;
|
|
123
133
|
}
|
|
124
|
-
if (
|
|
134
|
+
if (designType === 'figma' && !FIGMA_URL_PATTERN.test(value)) {
|
|
125
135
|
violations.push({
|
|
126
136
|
ruleId: 'DesignSourceShape',
|
|
127
137
|
severity: 'warning',
|
|
@@ -47,7 +47,8 @@ export const SdkVersion = {
|
|
|
47
47
|
{
|
|
48
48
|
ruleId: 'SdkVersion',
|
|
49
49
|
severity: 'error',
|
|
50
|
-
message: 'SDK version is required for spec export.'
|
|
50
|
+
message: 'SDK version is required for spec export. Set global_config.sdk_version ' +
|
|
51
|
+
'to the released Campaign Cart SDK version the pages load, in MAJOR.MINOR.PATCH form.',
|
|
51
52
|
path: '/global_config/sdk_version',
|
|
52
53
|
},
|
|
53
54
|
];
|