@se-studio/skills 1.10.17 → 1.10.22

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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # @se-studio/skills
2
2
 
3
+ ## 1.10.22
4
+
5
+ ### Patch Changes
6
+
7
+ - f9fc330: New projects register the Vercel deployment-smoke check with targets `["production"]` and omit the feature-branch skip job. Existing projects PATCH `/v2/projects/{projectId}/checks/{checkId}` with `{"targets":["production"]}`. Integration-branch smoke still runs and does not block aliasing.
8
+
9
+ ## 1.10.21
10
+
11
+ ### Patch Changes
12
+
13
+ - 4852aa2: Let a cms-edit tenant with packTag `latest` follow the highest published `cms-edit-pack-<key>-v*` Release. Exact tags still pin. A bad Release or a GitHub error keeps the previous pack. HSD is the pilot in the host fixtures.
14
+
15
+ ## 1.10.20
16
+
17
+ ### Patch Changes
18
+
19
+ - 9bb587f: Update the vercel-logs-audit skill for the Vercel CLI v64 logs commands.
20
+
21
+ ## 1.10.19
22
+
23
+ ### Patch Changes
24
+
25
+ - 12cf6c0: `pnpm fleet-audit` also checks guardrail wiring and leftovers found in the PointMe pilot: pre-commit and pre-push hooks that do not call `se-agent-guard`, a missing Claude pre-tool hook or merge-gate audit workflow, repo-local skills sync (`skills:sync`, `skills-lock.json`) instead of `skills-npm --yes`, tracked skill symlinks, extra restated docs (`review-before-merge.md`, `release-verification.md`) and review rules in process notes.
26
+
27
+ ## 1.10.18
28
+
29
+ ### Patch Changes
30
+
31
+ - 9b34052: Document the Sunday morning Screaming Frog fleet delta and brief.
32
+
3
33
  ## 1.10.17
4
34
 
5
35
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/skills",
3
- "version": "1.10.17",
3
+ "version": "1.10.22",
4
4
  "description": "SE Studio agent skills for marketing site development with Contentful CMS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@ Requirements:
16
16
  - `package.json` sets `packageManager` (`pnpm/action-setup@v6` in the audit reads it; there is no `version:` input).
17
17
  - The hooks directory is installed by `prepare` (`git config core.hooksPath .githooks` or husky). A failing `prepare` must not be silenced with `|| true`.
18
18
  - `.claude/settings.json` must contain no tokens, and no allowlisted URL with an `access_token`.
19
- - GitHub Actions runs the shared site CI workflow (`site-ci.yml`: lint, typecheck, and tests), the deployment smoke (a Vercel Deployment Check), the audit above, and any publish job. Prettier, lychee link checking, and Lighthouse CI are inputs on that workflow; turn on the ones this repo uses. Lighthouse URLs are public origins with no bypass token. The shared workflow strips the query and fragment before upload and does not publish reports to temporary public storage. The caller job grants `actions: write` so that upload can succeed; only the Lighthouse job uses it. Vercel is still the production build. The repo's `validate` script also runs locally. If it needs the Contentful tokens (`validate:routes` does), it reads them from the repo's `.env.local`, and `DRAFT_ONLY` picks the preview or delivery token.
19
+ - GitHub Actions runs the shared site CI workflow (`site-ci.yml`: lint, typecheck, and tests), the deployment smoke (a Vercel Deployment Check with `targets` `["production"]` — feature previews are not gated, and new projects omit the skip job that posts a passing status on other branches), the audit above, and any publish job. Prettier, lychee link checking, and Lighthouse CI are inputs on that workflow; turn on the ones this repo uses. Lighthouse URLs are public origins with no bypass token. The shared workflow strips the query and fragment before upload and does not publish reports to temporary public storage. The caller job grants `actions: write` so that upload can succeed; only the Lighthouse job uses it. Vercel is still the production build. The repo's `validate` script also runs locally. If it needs the Contentful tokens (`validate:routes` does), it reads them from the repo's `.env.local`, and `DRAFT_ONLY` picks the preview or delivery token.
20
20
  - Link the package's skills into `.agents/skills` with `skills-npm --yes` in `prepare` (skipped on Vercel and CI). Do not run `skills update` or `skills@latest`. Keep the linked skill directories out of git: ignore everything under `.agents/skills`, `.claude/skills`, `.cursor/skills` and `.grok/skills` except the repo's own authored skills (use the `dir/*` form with `!dir/<name>` exceptions, as eagle-website does), and track `skills-npm-lock.json`.
21
21
  - Run `pnpm install` in every worktree. The git hooks fail closed without it (the commit is refused). The Claude hook cannot: Claude Code only blocks a tool call on exit code 2, so with no `node_modules` it fails open. The git hooks are the enforcement; the Claude hook is advice earlier.
22
22
  - The `pre-push` template runs `pnpm run type-check`: the repo needs that script (or edit the line).
@@ -37,11 +37,12 @@ const numeric = (spec) => String(spec).replace(/^[^\d]*/, '');
37
37
  /**
38
38
  * @param {{ files: Record<string, string>, coreBlockVersion: number,
39
39
  * coreVersions: Record<string, string> }} input
40
- * files: path -> contents for AGENTS.md, .cursor/rules/*.mdc, docs/*.md and every package.json.
40
+ * files: path -> contents for AGENTS.md, .cursor/rules/*.mdc, docs/*.md, hooks, Claude settings,
41
+ * the merge-gate workflow and every package.json. tree: [{ path, mode }] of tracked files.
41
42
  * @returns {{ findings: {id: string, owner: 'core'|'customer', text: string}[],
42
43
  * pins: Record<string, {spec: string, where: string}[]> }}
43
44
  */
44
- export function auditFiles({ files, coreBlockVersion, coreVersions }) {
45
+ export function auditFiles({ files, tree = [], coreBlockVersion, coreVersions }) {
45
46
  const findings = [];
46
47
  const add = (id, owner, text) => findings.push({ id, owner, text });
47
48
  /** @type {Record<string, {spec: string, where: string}[]>} */
@@ -131,7 +132,11 @@ export function auditFiles({ files, coreBlockVersion, coreVersions }) {
131
132
  `${path} restates the review/merge rules (${body.split('\n').length} lines): replace with a pointer to AGENTS.md`,
132
133
  );
133
134
  }
134
- if (/^docs\/(merge-approval|design-review)\.md$/.test(path)) {
135
+ if (
136
+ /^docs\/(merge-approval|design-review|review-before-merge|release-verification)\.md$/.test(
137
+ path,
138
+ )
139
+ ) {
135
140
  add(
136
141
  'review-doc-copy',
137
142
  'customer',
@@ -167,6 +172,83 @@ export function auditFiles({ files, coreBlockVersion, coreVersions }) {
167
172
  }
168
173
  }
169
174
 
175
+ // Process notes may carry old review rules as bullets.
176
+ const notes = files['docs/AGENT_PROCESS_NOTES.md'];
177
+ if (notes && /merge approval|review before merge|re-review|second review/i.test(notes)) {
178
+ add(
179
+ 'process-notes-restate-rules',
180
+ 'customer',
181
+ 'docs/AGENT_PROCESS_NOTES.md carries review/merge rule text: keep site gotchas only and point at AGENTS.md',
182
+ );
183
+ }
184
+
185
+ // Guardrails: the thin files must call the pinned se-agent-guard (see customer-guardrails/README.md).
186
+ const hookFiles = ['.husky/pre-commit', '.githooks/pre-commit']
187
+ .map((f) => files[f])
188
+ .filter(Boolean);
189
+ if (!hookFiles.some((b) => /se-agent-guard\s+commit/.test(b))) {
190
+ add(
191
+ 'hook-commit-missing',
192
+ 'customer',
193
+ 'no pre-commit hook calls `se-agent-guard commit` (.husky/pre-commit or .githooks/pre-commit)',
194
+ );
195
+ }
196
+ const pushFiles = ['.husky/pre-push', '.githooks/pre-push'].map((f) => files[f]).filter(Boolean);
197
+ if (!pushFiles.some((b) => /se-agent-guard\s+push/.test(b))) {
198
+ add(
199
+ 'hook-push-missing',
200
+ 'customer',
201
+ 'no pre-push hook calls `se-agent-guard push` (.husky/pre-push or .githooks/pre-push)',
202
+ );
203
+ }
204
+ if (!/claude-pretool/.test(files['.claude/settings.json'] ?? '')) {
205
+ add(
206
+ 'claude-hook-missing',
207
+ 'customer',
208
+ '.claude/settings.json does not run `claude-pretool.mjs` (copy customer-guardrails/claude-settings.json)',
209
+ );
210
+ }
211
+ if (!/merge-gate/.test(files['.github/workflows/merge-gate-audit.yml'] ?? '')) {
212
+ add(
213
+ 'merge-audit-missing',
214
+ 'customer',
215
+ '.github/workflows/merge-gate-audit.yml is missing or does not call the merge gate: merges that skip approval will not be labelled `pushed-through`',
216
+ );
217
+ }
218
+
219
+ // Skills come from the pinned package via `skills-npm --yes`, not a repo-local sync or `skills update`.
220
+ const rootPkg = files['package.json'] ? safeJson(files['package.json']) : null;
221
+ const prepare = rootPkg?.scripts?.prepare ?? '';
222
+ const legacySync =
223
+ Boolean(rootPkg?.scripts?.['skills:sync']) ||
224
+ tree.some((t) => t.path === 'skills-lock.json' || t.path === 'scripts/sync-skills.sh');
225
+ if (legacySync) {
226
+ add(
227
+ 'skills-sync-legacy',
228
+ 'customer',
229
+ 'repo-local skills sync (`skills:sync`, `scripts/sync-skills.sh` or `skills-lock.json`): move to `skills-npm --yes` in `prepare` and track `skills-npm-lock.json`',
230
+ );
231
+ } else if (rootPkg && !/skills-npm/.test(prepare)) {
232
+ add(
233
+ 'skills-npm-missing',
234
+ 'customer',
235
+ '`prepare` does not run `skills-npm --yes`: skills are not linked from the pinned @se-studio/skills',
236
+ );
237
+ }
238
+ // Whole-directory links and the .agents/skills output are package skills. A per-skill link under
239
+ // .claude/.cursor/.grok is how a repo's own authored skill is exposed, which the README allows.
240
+ const linked = tree.filter(
241
+ (t) =>
242
+ t.mode === '120000' && /^(\.(claude|cursor|grok)\/skills|\.agents\/skills\/.+)$/.test(t.path),
243
+ );
244
+ if (linked.length) {
245
+ add(
246
+ 'skills-links-tracked',
247
+ 'customer',
248
+ `${linked.length} linked skill symlink(s) are tracked (e.g. ${linked[0].path}): untrack and gitignore them`,
249
+ );
250
+ }
251
+
170
252
  return { findings, pins };
171
253
  }
172
254
 
@@ -220,24 +302,55 @@ function readCore() {
220
302
  return { coreBlockVersion, coreVersions };
221
303
  }
222
304
 
305
+ function safeJson(text) {
306
+ try {
307
+ return JSON.parse(text);
308
+ } catch {
309
+ return null;
310
+ }
311
+ }
312
+
223
313
  function readFromOrigin(path, branch) {
224
314
  const ref = `origin/${branch}`;
225
315
  const fetched = tryRun('git', ['fetch', '--quiet', 'origin', branch], path);
226
316
  if (fetched?.error) return { error: `fetch failed: ${fetched.error}` };
227
- const list = tryRun('git', ['ls-tree', '-r', '--name-only', ref], path);
228
- if (list?.error) return { error: list.error };
229
- const wanted = list.split('\n').filter((f) => {
230
- if (f.includes('node_modules/')) return false;
231
- if (f === 'AGENTS.md' || /^\.cursor\/rules\/[^/]+\.mdc$/.test(f) || /^docs\/[^/]+\.md$/.test(f))
232
- return true;
233
- return /(^|\/)package\.json$/.test(f) && f.split('/').length <= 4;
234
- });
317
+ const raw = tryRun('git', ['ls-tree', '-r', ref], path);
318
+ if (raw?.error) return { error: raw.error };
319
+ // Lines look like "<mode> blob <sha>\t<path>".
320
+ const tree = raw
321
+ .split('\n')
322
+ .filter(Boolean)
323
+ .map((line) => ({
324
+ mode: line.slice(0, line.indexOf(' ')),
325
+ path: line.slice(line.indexOf('\t') + 1),
326
+ }));
327
+ const GUARD_FILES = new Set([
328
+ '.husky/pre-commit',
329
+ '.husky/pre-push',
330
+ '.githooks/pre-commit',
331
+ '.githooks/pre-push',
332
+ '.claude/settings.json',
333
+ '.github/workflows/merge-gate-audit.yml',
334
+ ]);
335
+ const wanted = tree
336
+ .map((t) => t.path)
337
+ .filter((f) => {
338
+ if (GUARD_FILES.has(f)) return true;
339
+ if (f.includes('node_modules/')) return false;
340
+ if (
341
+ f === 'AGENTS.md' ||
342
+ /^\.cursor\/rules\/[^/]+\.mdc$/.test(f) ||
343
+ /^docs\/[^/]+\.md$/.test(f)
344
+ )
345
+ return true;
346
+ return /(^|\/)package\.json$/.test(f) && f.split('/').length <= 4;
347
+ });
235
348
  const files = {};
236
349
  for (const f of wanted) {
237
350
  const body = tryRun('git', ['show', `${ref}:${f}`], path);
238
351
  if (typeof body === 'string') files[f] = body;
239
352
  }
240
- return { files };
353
+ return { files, tree };
241
354
  }
242
355
 
243
356
  function slugOf(path) {
@@ -305,7 +418,9 @@ function main() {
305
418
  }
306
419
  // Core is the source of the rules, so the customer-copy checks do not apply to it.
307
420
  const { findings } =
308
- project.type === 'core' ? { findings: [] } : auditFiles({ files: read.files, ...core });
421
+ project.type === 'core'
422
+ ? { findings: [] }
423
+ : auditFiles({ files: read.files, tree: read.tree, ...core });
309
424
  const behind = findings.filter((f) => f.id === 'behind-core');
310
425
  const issues = findings.filter((f) => f.id !== 'behind-core');
311
426
  if (issues.length === 0)
@@ -1,8 +1,17 @@
1
- # Deployment smoke — skip on feature branches
1
+ # Deployment smoke — feature-branch skip (existing preview-targeted checks only)
2
2
 
3
- Vercel **Deployment Checks** wait for a GitHub status from the smoke workflow. On feature-branch previews the `smoke` job `if` excludes the branch, so **no job runs and no status is posted** — Vercel stays on "Waiting for checks" and the PR blocks.
3
+ New projects do not add this job. Create the Vercel check with `targets` `["production"]` (`POST /v2/projects/{projectIdOrName}/checks`). Feature previews are then not gated, so they no longer wait up to the check timeout and a skip job is not required. The smoke workflow still runs on production and on the integration-branch preview. Full rule: `se-marketing-sites-smoke-test-setup`.
4
4
 
5
- **Fix:** add a `skip-smoke-outside-integration-branches` job that posts **success** when the deploy ref is not an integration/production branch. Real smoke still runs only on integration preview + production.
5
+ An existing project switches with:
6
+
7
+ ```http
8
+ PATCH /v2/projects/{projectId}/checks/{checkId}
9
+ {"targets":["production"]}
10
+ ```
11
+
12
+ After that PATCH, delete `skip-smoke-outside-integration-branches`. Keep the integration-preview and production smoke jobs; the preview run is a normal Actions job and does not block aliasing.
13
+
14
+ **Interim, only while the check still lists `preview`:** Vercel waits for a GitHub status. On feature-branch previews the `smoke` job `if` excludes the branch, so no status is posted and the alias stays on "Waiting for checks". The skip job below posts **success** for those refs. Real smoke still runs on the integration preview and on production.
6
15
 
7
16
  ## Requirements
8
17
 
@@ -63,4 +72,4 @@ gh api "repos/<owner>/<repo>/statuses/<commit-sha>" \
63
72
 
64
73
  1. Merge skip job to default branch.
65
74
  2. Open a feature PR — Vercel preview should complete without pending deployment smoke.
66
- 3. Push to `develop` — deployment smoke should run and gate aliasing as before.
75
+ 3. Push to `develop` — deployment smoke should still run. While the check lists `preview`, that run gates the develop alias. After `targets` is `["production"]`, it does not.
@@ -1,4 +1,5 @@
1
- # Add BEFORE the smoke job in each deployment-smoke workflow.
1
+ # Interim only, while an existing Vercel check still lists "preview".
2
+ # New projects set targets to ["production"] and do not add this job.
2
3
  # Replace <vercel-project-name> and integration/production refs as needed.
3
4
 
4
5
  jobs:
@@ -95,7 +95,7 @@ git commit -m "chore(cms-edit): regenerate editor pack"
95
95
 
96
96
  **Absolute rule for agents:** hosted MCP is **never** published via `vercel deploy`, `pnpm cms-edit:deploy*`, or `deploy-cms-edit-host.sh`. Commit and push is the only deploy path for customer repos with `cms-edit/host/`.
97
97
 
98
- **Option C (shared multi-tenant host):** Customer CI publishes the committed pack as a GitHub Release (`editor-pack.tar.gz`) via the reusable workflow `Something-Else-Studio/se-core-product/.github/workflows/cms-edit-pack-publish.yml`. Agents do **not** run `gh release create` (or treat the printed command from `cms-edit host pack-publish` as something to execute) unless Nick explicitly asks. Do **not** regenerate the pack in CI — publish the committed `editor-pack/` only. Tags are immutable (`cms-edit-pack-<projectKey>-v<version>`); bump version for a new Release, then update the host registry `packTag` when intentional.
98
+ **Option C (shared multi-tenant host):** Customer CI publishes the committed pack as a GitHub Release (`editor-pack.tar.gz`) via the reusable workflow `Something-Else-Studio/se-core-product/.github/workflows/cms-edit-pack-publish.yml`. Agents do **not** run `gh release create` (or treat the printed command from `cms-edit host pack-publish` as something to execute) unless Nick explicitly asks. Do **not** regenerate the pack in CI — publish the committed `editor-pack/` only. Tags are immutable (`cms-edit-pack-<projectKey>-v<version>`). A tenant on `packTag: latest` serves the new Release within the host TTL, with no registry edit. An exact `packTag` still pins until someone changes the fixture and the Vercel env `CMS_EDIT_TENANT_REGISTRY_JSON`, then redeploys. Do not set `latest` in that env before the host that understands it is deployed.
99
99
 
100
100
  See `packages/contentful-cms/HOSTED.md` (Option C section) for the caller workflow sketch.
101
101
 
@@ -69,7 +69,13 @@ pnpm seo:screaming-frog:fleet -- --list
69
69
  node scripts/screaming-frog-fleet.mjs --install-agent
70
70
  ```
71
71
 
72
- Reports land in `~/spider/fleet-audits/<YYYY-MM-DD>/`. The command does not pass `--tag`, so it does not replace a deployment `content` baseline. `--install-agent` loads a user LaunchAgent (`studio.se.screaming-frog-fleet`) for Sunday 22:00 local time.
72
+ Reports land in `~/spider/fleet-audits/<YYYY-MM-DD>/`. The command does not pass `--tag`, so it does not replace a deployment `content` baseline. After the crawl it writes `delta.md` against the previous dated folder and `brief.md`. The brief uses the xAI API when `XAI_API_KEY` is set, and otherwise repeats the delta.
73
+
74
+ ```bash
75
+ pnpm seo:screaming-frog:fleet -- --delta-only ~/spider/fleet-audits/2026-10-25
76
+ ```
77
+
78
+ `--install-agent` loads a user LaunchAgent (`studio.se.screaming-frog-fleet`) for Sunday 07:00 local time. Install it from the primary `dev` checkout after this script is on `dev`. If `XAI_API_KEY` is set in that shell, the agent plist stores it for the brief. Reinstall only after the code is on `dev`, and point the agent at that checkout.
73
79
 
74
80
  Start URL: the manifest `production` profile. When that profile is a `*.vercel.app` alias and cms-edit `productionSiteUrl` is a public host, the public host is crawled. Eagle stays on its configured Vercel production URL. Preview-only issue downgrades (noindex, preview robots) are not applied.
75
81
 
@@ -56,8 +56,7 @@ Example `package.json` entries:
56
56
 
57
57
  **Vercel Deployment Check (live URL)** — GitHub Action on `vercel.deployment.ready` tests `client_payload.url` before production domains alias. Workflow must live on the repo **default branch**. Register the status `name` in Vercel → Settings → Build and Deployment → Deployment Checks.
58
58
 
59
- **Feature branches must not run smoke** — limit the `smoke` job to integration preview (`develop` + `preview`) and production (`main` / `production` + `production`). Feature-branch previews still fire `repository_dispatch`; without a matching job, Vercel waits forever on "Waiting for checks". Add a `skip-smoke-outside-integration-branches` job that posts **success** for non-integration refs. Full rollout guide: [`references/deployment-smoke-feature-branch-skip/`](../../references/deployment-smoke-feature-branch-skip/README.md). Monorepos: one skip job per Vercel project workflow. Sites whose production branch is not `main` (e.g. HSD `production`): adjust ref checks in both jobs.
60
- Filter on `client_payload.environment == 'production'` when Deployment Checks target production only. Vercel also dispatches for preview and custom environments (`preview`, `develop`, etc.); skip those to avoid duplicate CI runs. Use `workflow_dispatch` without an environment filter for manual smoke against any URL.
59
+ **Production-only smoke check.** New projects create the check `Vercel - <project>: deployment smoke` (git-provider, `requires` `deployment-url`, `blocks` `deployment-alias`) with `targets` `["production"]` — `POST /v2/projects/{projectIdOrName}/checks`. Targets accept `production`, `preview`, `all`, or a custom environment id, and they do not accept branch names. With `preview` included, every feature-branch alias waits on that status for up to the check timeout (600s on current sites) unless a skip job posts green. Production-only targets remove that wait and the Actions minutes the skip job used, so new projects omit `skip-smoke-outside-integration-branches`. The workflow still runs smoke on production deploys (`main`, or `production` when that is the production branch, such as HopSkipDrive) and on the integration-branch preview (`develop` or `dev`); that preview run is a normal Actions job and does not block aliasing. An existing project applies `PATCH /v2/projects/{projectId}/checks/{checkId}` with body `{"targets":["production"]}`. The old skip-job snippet stays only for a project whose check still lists `preview`: [`references/deployment-smoke-feature-branch-skip/`](../../references/deployment-smoke-feature-branch-skip/README.md). `workflow_dispatch` stays unfiltered so a manual run can smoke any URL.
61
60
 
62
61
  ```yaml
63
62
  # .github/workflows/deployment-smoke.yml
@@ -74,26 +73,9 @@ permissions:
74
73
  statuses: write
75
74
 
76
75
  jobs:
77
- skip-smoke-outside-integration-branches:
78
- if: |
79
- github.event_name == 'repository_dispatch' &&
80
- github.event.client_payload.project.name == '<vercel-project-name>' &&
81
- github.event.client_payload.git.ref != 'develop' &&
82
- github.event.client_payload.git.ref != 'main'
83
- runs-on: ubuntu-latest
84
- steps:
85
- - name: Skip deployment smoke on feature branches
86
- env:
87
- CHECK_NAME: 'Vercel - <vercel-project-name>: deployment smoke'
88
- DEPLOYMENT_SHA: ${{ github.event.client_payload.git.sha }}
89
- GH_TOKEN: ${{ github.token }}
90
- run: |
91
- gh api "repos/${GITHUB_REPOSITORY}/statuses/${DEPLOYMENT_SHA}" \
92
- -f state=success \
93
- -f context="${CHECK_NAME}" \
94
- -f description="Skipped — deployment smoke runs only on develop and main" \
95
- -f target_url="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
96
-
76
+ # Alias gate is the Vercel check (targets: ["production"] only).
77
+ # This job still runs on the integration preview and on production.
78
+ # Do not add a job that posts a passing status for other branches.
97
79
  smoke:
98
80
  if: |
99
81
  (github.event_name == 'workflow_dispatch') ||
@@ -144,7 +126,7 @@ jobs:
144
126
  -f target_url="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
145
127
  ```
146
128
 
147
- Use the deployment commit SHA from `client_payload.git.sha`, not `github.sha`. Repeat the retry block in each job when a workflow has multiple Vercel projects (monorepos).
129
+ Use the deployment commit SHA from `client_payload.git.sha`, not `github.sha`. Repeat the retry block in each job when a workflow has multiple Vercel projects (monorepos). Swap `develop` / `main` in the `smoke` `if` when the integration branch is `dev` or the production branch is `production`.
148
130
 
149
131
  GitHub secret: `VERCEL_PROTECTION_BYPASS_TOKEN` (Vercel → Deployment Protection → Protection Bypass for Automation). Set `SMOKE_TEST_IGNORE=true` to bypass smoke in an emergency.
150
132
 
@@ -338,6 +338,7 @@ After bootstrap, the project is ready for:
338
338
  2. **Design system** — update `tailwind.config.json` with brand colors and typography when the design is ready
339
339
  3. **Components** — use `se-marketing-sites-create-component` and `se-marketing-sites-create-collection` skills to build project-specific components
340
340
  4. **Navigation/Footer** — replace the stubs with real components once the design is known
341
+ 5. **Deployment smoke check** — create it with `targets` `["production"]` and omit the feature-branch skip job (`se-marketing-sites-smoke-test-setup`)
341
342
 
342
343
  Commit the bootstrapped state before starting component work:
343
344
  ```bash
@@ -102,10 +102,10 @@ Exit code **2** from analyze means errors were found (useful for future CI).
102
102
 
103
103
  ## What counts as an error
104
104
 
105
- Pull uses two CLI passes per target:
105
+ Pull uses two CLI passes per target (Vercel CLI v64+):
106
106
 
107
- - Log level `error` or `fatal`
108
- - HTTP status `500`–`508`
107
+ - `vercel logs runtime --query 'level:(error OR fatal)'` (and `branch:"<branch>"` for develop)
108
+ - `vercel logs requests --query 'httpStatus >= 500 AND httpStatus < 600'`
109
109
 
110
110
  Filter normalizes raw JSON and keeps entries matching:
111
111
 
@@ -123,7 +123,7 @@ Optional: `pnpm vercel-logs:filter --include-warnings`
123
123
  | `vercel logs failed` / auth error | `vercel login` or set `VERCEL_TOKEN` |
124
124
  | Wrong team / project not found | Check `team` in `projects.registry.json`; use `vercel projects ls --scope <team>` |
125
125
  | No targets matched | Check `--sites` / `--envs` keys match registry `key` fields |
126
- | Empty report after errors expected | Widen with `--full` or `--since 7d`; confirm develop uses `--branch develop` |
126
+ | Empty report after errors expected | Widen with `--full` or `--since 7d`; develop queries include `branch:"develop"` |
127
127
 
128
128
  ---
129
129