Skip to content

ci(docs-deploy): print what each docs deploy uploads, by part, before the upload - #38297

Merged
os-zhuang merged 7 commits into
mainfrom
claude/project-thread-7y20tj
Nov 28, 2026
Merged

os-zhuang merged 7 commits into
mainfrom
claude/project-thread-7y20tj

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#3 · os-tesla · session_01L9qibzZRa3nLMmeQvLoDWE

Requested by Tesla · project thread

Fixes #36192

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:文档站部署每次在上传前多打印一张表,列出这次要传多少、各部分各占多少,写在部署日志和运行摘要里。
  • 为什么做:文档站部署产物瘦身专题的第二步(第一步已合并,合并后第一次线上部署从 954.6 MB 降到 742.8 MB,少传约 22%),以后每次部署都有体积读数,变大能马上看见。
  • 出错会怎样:这一步只读不写;它自己坏了只出一条警告,部署照常发布。撤回本 PR 即还原。
  • 要你做的:这是部署流程文件的改动,需要你批准后才能合并。

What changes

  • .github/workflows/docs-deploy.yml: one new step, Measure what this deploy uploads, between the build assertion and the upload. It runs node apps/docs/scripts/measure-deploy-output.mjs (landed in perf(docs): send each docs page a trimmed sidebar tree, and measure what a deploy uploads #38264), prints the per-part table to the log and appends it to the run summary.
  • It runs before the upload so the reading exists for the runs that need it most: the ones whose upload aborts.
  • continue-on-error: true, the only step in this workflow with it: the step publishes nothing, so a broken measurement must not stop the docs from publishing. A failure still leaves a ::warning:: annotation. The workflow's header rule (a run that cannot deploy goes red) is about the publish, and it is unchanged.
  • timeout-minutes: 5 on the same step: continue-on-error does not absorb a hang, so without it only the job's 30-minute clock would end the step, with no deploy. A step that hits its own timeout counts as failed, which continue-on-error lets through. The script is synchronous local reads and takes seconds.
  • The reading is written to $RUNNER_TEMP, outside the tree vercel deploy --prebuilt reads.
  • skip-changeset: a workflow file, nothing publishes.

Tests

  • The step's run: block, extracted from the YAML and run locally with RUNNER_TEMP and GITHUB_STEP_SUMMARY set, against the offline vercel build output: exit 0; log and summary both carry the table (Deployment files: 13039 … Distinct contents: 7847 files, 631.7 MiB).
  • Same block with .vercel/output moved away: the script refuses (no config.json), the step prints the warning and exits 1, which continue-on-error turns into a warning on a green run.
  • The step's keys parsed from the YAML at cd1513fc: name, continue-on-error: true, timeout-minutes: 5, run. No check-run executes the step (Docs Deploy runs from main only); its first run is the first deploy after merge.

Acceptance notes

Verification

Read first: the new step in .github/workflows/docs-deploy.yml, above Deploy the prebuilt output to production.

Two-minute check: after merge, the next Docs Deploy run (scheduled, or "Run workflow" on main) shows a Docs deploy output table in its summary and the deploy still reaches Deployed:.

Gates at cd1513f
  • node scripts/pm/dispatch-gates.mjs --commands: 36 derived families, each run with its exit captured before any pipe, all exit 0 (one sweep under the verify lock, 896 s; list in the card's project files as gates-ran-pr2-cd1513fc.list); --ran: 36 derived, 36 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero).
  • node scripts/pm/overlap-check.mjs: VERDICT clean, merges cleanly into origin/main.
  • dispatch-gates.mjs --tier .github/workflows/docs-deploy.yml: no path-derived mandate. The path is a governed surface (Tier H): landing needs the maintainer's approval.
  • Every family CI runs: the PR's check-runs.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibzZRa3nLMmeQvLoDWE

…ighbours from the server

Claude-Session: https://claude.ai/code/session_01L9qibzZRa3nLMmeQvLoDWE
Co-authored-by: Claude <noreply@anthropic.com>
…ir prerendered params"

Measured on the offline vercel build: dynamicParams = false leaves every
prerender backed by a function (Vercel's Next builder emits a fallback
function for each Prerender regardless), so it bought 6 output entries and
0 MiB. Not worth a behaviour change on unknown slugs.

Claude-Session: https://claude.ai/code/session_01L9qibzZRa3nLMmeQvLoDWE
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T11:59Z

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 9d66e03 · 2026-11-28T11:59Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T12:07Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9d66e038b18f55e148f2b5eef07acf8d75645530
Local-runs: none
Scope: .github/workflows/docs-deploy.yml + none in the diff; read, not reviewed: apps/docs/scripts/measure-deploy-output.mjs, .github/actions/setup-workspace/action.yml

PR #38297, card #36192, PR 2 of 2 under claim 7237738388. Read: the card body and its three comments (triage 7070406363, claim 7237738388, os-dev-report 7238054071), the PR body and file list, the net diff from merge base 0e65fb353c79 to the head, the 48 check-runs on the head, and the job of run 46118151955, which the claim cites as the measured deploy.

① Derived judgments

  • File surface: right. The file list and the net diff are one file, .github/workflows/docs-deploy.yml, +30 −0. The claim rules exactly that surface for PR 2. The branch still carries PR 1's commits and a merge of main; the compare API gives one file against the merge base, so none of it is in the net diff.
  • PR 1 is on main under this head: right. perf(docs): send each docs page a trimmed sidebar tree, and measure what a deploy uploads #38264 is merged (merge commit 1618e3952d2b), and the merge base 0e65fb353c79 is one commit ahead of it. apps/docs/scripts/measure-deploy-output.mjs exists at the merge base and is byte-identical at the head. main is three commits past the merge base, on eleven files, none of them the workflow or the script.
  • Accept sets and published surface: none changed, right. No schema, no package export, no metadata key, no generated baseline. The diff adds one step to one job.
  • Workflow surface: one step added, nothing else moved, right. Triggers (the six-hourly cron and workflow_dispatch), permissions: contents: read, the concurrency group, the job's 30-minute timeout, the job-level env and every existing step are untouched. The step count goes from 9 to 10. The new step has no uses:, so no new action and no pin question; no env:, so no secret; no id: and no if:.
  • Gate families: all green. 48 check-runs on the head, all completed, none with a conclusion other than success or skipped. Success on Governed Surface Queue Guard, Check Changeset, PR-body guards, Lint · CI, release & engine gates, Lint · repo & tooling gates, Lint · PM dispatch-gates. There is no actionlint job in this repository; the gates that parse every workflow file are among the green ones.
  • What no check-run measured. Docs Deploy runs only on schedule or dispatch from main, and Build Docs is skipped on this path, so no check-run executed the new step. Its first execution is the first deploy after merge. The design is judged in ④ on that footing.

② Semver level

  • skip-changeset label on the PR, no changeset in the diff, Check Changeset success. The diff is a workflow file: it publishes nothing from any released package. Right.
  • Clause-②: no, line-initial in the PR body, matching the claim's Clause-②: no. No arm, and none is owed: nothing an author or a consumer can write or call is widened or narrowed. Right.
  • Metadata-protocol: none. Right.

③ Boundary flags

  • Tier H (PR body flag): confirmed. The register row at scripts/pm/check-governed-merges.mjs names .github/workflows/docs-deploy.yml ("deploys the docs site, the deploy token") and the file is among the nine pinned Tier H by path. This record does not lift that: landing waits for an authorized approval. The PR is a draft with no auto-merge armed, which is the correct resting state.
  • open_questions: none to answer. The one os-dev-report on the card (7238054071) is PR 1's and carries an empty list. No os-dev-report for PR 2 is on the card at this head; the PR body is the dev's only account of PR 2 and ④ judges the tree, not that account.
  • Carried from PR 1's report, escalated to seat 3. Its out_of_scope_findings entry (the reader-visible remainder: function code, the per-page tree) goes to the maintainer after the merged CI reading, per the claim. Fixes #36192 is the claim's own ruling for PR 2, so the card closes at merge, before two duties the claim keeps: the first CI deploy reading posted on the card, and that maintainer decision. Both outlive the close and stay with seat 3; neither is a finding on this diff.
  • SQL push-down: not applicable. The diff reads no data store and adds no query, id materialisation or join.

④ Design judgment

.github/workflows/docs-deploy.yml, the one hits file. Judged against the script it calls, the job around it, and the card's ask 1 as the claim re-ruled it (a step that prints upload size and file count on every deploy).

Can the step block or alter a deploy?

  • A non-zero exit cannot. continue-on-error: true turns the step's conclusion to success, so the job status stays success. The deploy step has no if:, so it runs on the implicit success condition and still runs. The closing summary step reads job.status under if: always() and still reads success. Nothing reads steps.*.outcome of the new step: it has no id, and the only steps. read in the file is steps.deploy.outputs.url. The header's rule (a run that cannot deploy goes red) is intact, because the deploy step itself is unchanged and still has no continue-on-error.
  • It writes nothing the deploy reads. The script imports existsSync, lstatSync, readdirSync, readFileSync and statSync from node:fs, plus createHash and path helpers: no write call, no child process, no network. The step sends stdout to a file under RUNNER_TEMP, which is outside the workspace and so outside .vercel/output and every filePathMap source, then appends to the step-summary file. It writes neither GITHUB_ENV, GITHUB_PATH nor GITHUB_OUTPUT, and each step is its own shell, so working directory and environment do not carry to the deploy step.
  • No secret is in scope. The job-level env holds two Vercel identifiers and the pinned CLI version, which the file's own comment marks as identifiers, not credentials. The token is set per step on four other steps and not on this one. The files vercel pull leaves under .vercel/ are outside .vercel/output; the script prints sizes, counts, part labels and function directory names, never file contents.
  • Nothing printed is shell-interpreted. The step has no expression interpolation at all. The echoes are static strings, the fence marker is single-quoted, and the reading reaches the log and the summary through cat of a quoted path. Every line the script prints starts with fixed text or a padded number, so no data-controlled text sits at a line start where the runner would read a workflow command; the only variable text is the output path and function directory names, both from the main tree this job already builds and runs.
  • A hang is the one path continue-on-error does not cover. See N1. As read, it is not reachable: the script is synchronous local reads, skips symbolic links before recursing or reading, and guards traced paths with isFile(). The cited run 46118151955 took about 8 of the job's 30 minutes (build about 5, upload about 97 seconds), so hashing roughly 1 GB of files the build has just written leaves the budget where it was.

Is the dependency footprint met at that point? Yes. Setup workspace installs Node from .nvmrc before the build. The script uses Node built-ins only. The workflow sets no default working directory, so the step runs at the repository root, which is the script's default root and the directory vercel build wrote .vercel/output into. The preceding assertion step has already required .vercel/output/config.json, so the script's own refusal (exit 2 with no config.json) is unreachable in this job.

Does the shell do what the comment says? Yes. The script runs as the condition of if !, where set -e does not apply; a non-zero exit, or a redirection that cannot open its file, enters the branch, prints the ::warning:: line and exits 1. set -u and pipefail add nothing that changes that. On success the reading is printed once to the log and once, fenced, to the summary. On the error path the half-written file is never printed.

Does it land where the claim and the card put it? Yes: after Assert the build produced a deployable output, before Deploy the prebuilt output to production. That is "after the build" (card, ask 1) and before the upload (PR body). The comment's reason holds mechanically: a completed step's summary is kept when a later step aborts, so a run whose upload aborts still carries its reading.

The comment, sentence by sentence, against the code. "By part (prerendered pages, function code, OG images, llms bodies, static files)": the script's part labels are those. "In this log and in the run summary": both writes are there. ".vercel/output alone undercounts ... filePathMap ... which the script adds": the script walks the output tree, then adds every distinct filePathMap file. "Its header says how the file count reproduces the CLI's own line": the header says so, and run 46118151955 logs Downloading 13039 deployment files, the count the dev's report gives for the script on the pre-change tree. "The only step here that has it": one continue-on-error: key in the file. "A failure still shows as a warning annotation": true on the script-error path, where the step prints it.

Workflow lint. The step's keys (name, continue-on-error, run) are valid at step level and indented with their siblings. The block scalar holds the backtick fence inside single quotes. Nothing in the block is a shell-lint error; the workflow-parsing gates are green on the head.

Findings. No must-fix, no should-fix.

  • N1 (nit) — the step sets no timeout-minutes. continue-on-error absorbs a non-zero exit, not a hang: a measurement that never returned would be ended only by the job's 30-minute clock, with no deploy. So the comment's "a broken measurement must never stop the docs from publishing" is enforced for exits and only argued for hangs. No hang is reachable in the script as read, and the run leaves about 22 minutes spare, so this has no effect on correctness today. ci.yml's Save Next.js cache step is the in-tree precedent for pairing a short step timeout with continue-on-error. Left as a follow-up for the seat: a fix here moves the head.
  • N2 (nit) — the step is named "what this deploy uploads", and its headline size is the script's content-deduplicated total, which is not the figure the CLI prints. By the claim's own pair, the tree that the CLI reported as 954.6 MB (run 46118151955, confirmed in its log) measures 742.8 MiB distinct. The file count reconciles and the comment says how; the byte total does not and the comment is silent on it, though the table labels itself "Distinct contents". A reader of one run log will see two totals. The claim rules readings in deduplicated size, so the step is as ruled. Suggested, with no head change: the first CI reading posted on the card quotes the CLI's own Uploading total from the same run beside the table.

Implemented-by: claude/project-thread-7y20tj
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The brief the contract reviewer above was handed, filled, for the seat to read before it adopts the record:

Contract review brief — PR #38297 @ 9d66e038b18f55e148f2b5eef07acf8d75645530 (card #36192)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths .github/workflows/docs-deploy.yml — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36192: its body and EVERY comment (rulings and earlier records included)
· PR #38297: its body, its file list, and the net diff against main at 9d66e038b18f55e148f2b5eef07acf8d75645530
· the check-runs on 9d66e038b18f55e148f2b5eef07acf8d75645530: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: .github/workflows/docs-deploy.yml;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-38297/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T12:08Z

L1-a ACCEPT at 9d66e038b18f55e148f2b5eef07acf8d75645530 (Fixes #36192, PR 2 of 2).

Contract. The governed workflow face is .github/workflows/docs-deploy.yml, +30/−0. Record 7239010892 is a CONTRACT_REVIEW_TIER PASS: verify-review-tier passed and the record was posted with tier evidence. It has no must-fix and no should-fix, and its two nits are left as follow-ups. The brief is 7239017815.

Claim against surface (claim 7237738388). PR 2 is the one workflow file, as ruled. PR 1 (#38264) is merged, and its apps/docs/scripts/measure-deploy-output.mjs is on main at this PR's merge base, byte-identical at this head.

The step cannot block or alter a deploy. I checked each point against the file.

  • A failure. continue-on-error: true turns a non-zero exit into a failed outcome under a successful conclusion. job.status stays success, the deploy step has no if: and runs, and the if: always() summary reads success. The new step has no id, and the file's only steps. read is steps.deploy.outputs.url.
  • Writes. It writes only $RUNNER_TEMP/deploy-output-reading.txt, which is outside the workspace and so outside .vercel/output, plus $GITHUB_STEP_SUMMARY. It does not touch GITHUB_ENV, GITHUB_PATH or GITHUB_OUTPUT, and the script imports read-only node:fs only.
  • Secrets and permissions. The job env holds two Vercel identifiers and the CLI version pin. VERCEL_TOKEN is step-scoped on four other steps and absent from this one. Permissions stay contents: read.
  • Injection. There is no ${{ }} interpolation. The echoes are static, and the reading goes through cat of a quoted path.
  • Placement. The step comes after the build assertion (which already requires .vercel/output/config.json) and before the upload, at the repository root, with Node from Setup workspace.
  • The one residual case is a hang, record N1. continue-on-error does not absorb a hang, and the step sets no timeout-minutes, so only the job's 30-minute clock would end it, with no deploy. The script as read cannot hang: it does synchronous local reads, no network, no child process and no stdin, and the run it cites took about 8 of the 30 minutes. A timeout-minutes: 5 on the step (the ci.yml "Save Next.js cache" precedent) is worth a follow-up, since adding it now would move the head.

skip-changeset / Clause-②: no: right, because the diff publishes nothing.

Checks at this head: 48, with 30 success, 18 expected skip, 0 failed, 0 pending. mergeable clean. No check-run executes the new step: Docs Deploy runs from main only, so its first execution is the first deploy after merge.

Tier H. check-governed-merges: a governed workflow, so it needs the maintainer's merge. The record does not lift it.

Relation and duties after merge. Fixes #36192 closes the card at merge. Two duties the claim keeps then outlive the card: the first CI deploy reading, to be posted on the card, and the maintainer's ruling on the reader-visible remainder (fetching the tree client-side). The seat should carry both, on the closed card or on a follow-up card. On the reading itself (record N2), quote the CLI's own "Uploading" total from the same run beside the deduplicated table, so the 954.6 MB vs 742.8 MiB pair reads as the same deploy.

continue-on-error does not absorb a hang: without a step timeout only
the job's 30-minute clock would end it, and the deploy would not run.

Claude-Session: https://claude.ai/code/session_01L9qibzZRa3nLMmeQvLoDWE
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T12:59Z

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head cd1513f · 2026-11-28T12:59Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T13:03Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: cd1513fc0a4028a58482e2be07cd2b5539128d4c
Local-runs: none
Scope: .github/workflows/docs-deploy.yml + none in the diff; read, not reviewed: apps/docs/scripts/measure-deploy-output.mjs, .github/actions/setup-workspace/action.yml

DELTA review from 9d66e038b18f55e148f2b5eef07acf8d75645530 (record 7239010892: PASS, nits N1 and N2) to this head, written to stand on its own. PR #38297, card #36192, PR 2 of 2 under claim 7237738388. The delta is one commit, cd1513fc0a40, +4 −0 in .github/workflows/docs-deploy.yml: timeout-minutes: 5 on the step Measure what this deploy uploads, and three comment lines above it.

Read for this head: the card body and its four comments (triage 7070406363, claim 7237738388, os-dev-report 7238054071, CI reading 7239573592), the PR body, file list and five comments, the delta and the whole net diff from merge base 0e65fb353c79 to this head, the 43 check-runs on this head, and the job of run 46118151955, which the claim cites. The seat's own readings for this head (a simulation, a YAML parse, a local gate count) were offered and are not adopted: nothing below rests on them.

① Derived judgments

  • File surface: right. The file list and the net diff are one file, .github/workflows/docs-deploy.yml, +34 −0. The claim rules exactly that surface for PR 2. The compare API gives the delta as one commit touching that one file.
  • PR 1 is on main under this head: right. perf(docs): send each docs page a trimmed sidebar tree, and measure what a deploy uploads #38264 is merged (merge commit 1618e3952d2b); the merge base 0e65fb353c79 is one commit ahead of it. apps/docs/scripts/measure-deploy-output.mjs and .github/actions/ are byte-identical between the merge base and this head. main is now 24 commits past the merge base on 150 files; none is the workflow, the script, the setup-workspace action or anything under apps/docs/.
  • Accept sets and published surface: none changed, right. No schema, no package export, no metadata key, no generated baseline.
  • Workflow surface: one step added, nothing else moved, right. Triggers, permissions: contents: read, the concurrency group, the job's 30-minute timeout, the job-level env and every existing step are untouched. The step count goes from 9 to 10. The new step has no uses:, no env:, no id: and no if:; it now has two step-level keys beside name and run: continue-on-error: true and timeout-minutes: 5.
  • Gate families: all green. 43 check-runs on this head, all completed: 29 success, 14 skipped, none with any other conclusion. Success on Governed Surface Queue Guard, PR-body guards, Lint · CI, release & engine gates, Lint · repo & tooling gates, Lint · PM dispatch-gates. Check Changeset reads skipped here, which is that job's own fast path when the event payload already carries the skip-changeset label (it ran to success on the earlier head, before the label was in the payload). There is no actionlint job in this repository; the gates that parse every workflow file are among the green ones.
  • What no check-run measured. Docs Deploy runs only on schedule or dispatch from main, and Build Docs is skipped on this path, so no check-run executed the new step, with or without its timeout. Its first execution is the first deploy after merge. ④ judges the design on that footing and says where a judgment rests on runner behaviour and not on a measurement.

② Semver level

  • skip-changeset label on the PR, no changeset in the diff. The diff is a workflow file: it publishes nothing from any released package. Right.
  • Clause-②: no, line-initial in the PR body, matching the claim's Clause-②: no. No arm, and none is owed: nothing an author or a consumer can write or call is widened or narrowed. Right.
  • Metadata-protocol: none. Right.

③ Boundary flags

  • Tier H (PR body flag): confirmed. The register row in scripts/pm/check-governed-merges.mjs names .github/workflows/docs-deploy.yml and the file is among the nine pinned Tier H by path. This record does not lift that: landing waits for an authorized approval. The PR is a draft with no auto-merge armed, which is the correct resting state.
  • open_questions: none to answer. The one os-dev-report on the card (7238054071) is PR 1's and carries an empty list. No os-dev-report for PR 2 is on the card; the PR body is the dev's only account of PR 2, and ④ judges the tree.
  • The claim's CI reading: now on the card. Comment 7239573592 posts the first deploy after perf(docs): send each docs page a trimmed sidebar tree, and measure what a deploy uploads #38264 (run 46146191991): CLI Uploading total 742.8 MB against 954.6 MB before, 13039 deployment files both times, beside the offline deduplicated pair (742.8 MiB, 631.7 MiB). It says itself that the two scales are not reconciled and that the first run after this PR merges will print the per-part table. That discharges the reading the claim owed for PR 1.
  • Carried, escalated to seat 3. Fixes #36192 is the claim's own ruling for PR 2, so the card closes at merge. Two things outlive the close and stay with seat 3: the maintainer's decision on the reader-visible remainder (PR 1's out_of_scope_findings entry), and reading the first run that carries the table. Neither is a finding on this diff.
  • SQL push-down: not applicable. The diff reads no data store and adds no query, id materialisation or join.

④ Design judgment

.github/workflows/docs-deploy.yml, the one hits file. Judged against the script it calls, the job around it, and the card's ask 1 as the claim re-ruled it (a step that prints upload size and file count on every deploy).

The delta: does a step-level timeout under continue-on-error: true still let the deploy run?

  • Yes. A step that outlives its own timeout-minutes is killed by the runner and ends with a failed result for that step; the job itself is not cancelled. continue-on-error: true is applied to exactly that failed result: the step's outcome stays failed, its conclusion becomes success, and the job status stays success. The deploy step has no if:, so it runs on the implicit success condition, as it does after a non-zero exit. The closing summary step reads job.status under if: always() and reads success.
  • What this rests on. The runner's step-timeout semantics and the in-tree precedent: ci.yml's Save Next.js cache step carries the same pair, timeout-minutes: 5 with continue-on-error: true, and its comment gives the same reason (a stalled step must say nothing about the build). No check-run on this head exercises the path, and none can until a measurement actually stalls; this is a reading of the mechanism, not a measurement of it.
  • The budget holds. The cited run 46118151955 took about 8 of the job's 30 minutes (build about 5, upload about 97 seconds). A measurement cut at its 5-minute ceiling leaves the job at about 13 minutes with the upload still to run, well inside 30. Before this head, a stall would have run to the job's clock with no deploy; now the worst case is a deploy without a reading.
  • The ceiling does not cut a healthy run. The script hashes on the order of 1 GB of files the build has just written, with synchronous local reads. Five minutes is far above that; if the output ever grew enough to hit it, the designed degradation applies: the deploy goes ahead and the reading is missing.

The new comment, sentence by sentence.

  • "timeout-minutes because continue-on-error does not absorb a hang": true. continue-on-error acts on the result of a step that has ended; a step that never ends has no result to rewrite.
  • "Without it only the job's clock would end the step, with no deploy": true. The only other bound in the file is the job's timeout-minutes: 30; when that fires, the job is cancelled and the deploy step, which has no if:, does not run.
  • "The script is synchronous local reads (seconds)": the first half is true as read. The script imports existsSync, lstatSync, readdirSync, readFileSync and statSync from node:fs, plus createHash and path helpers: no asynchronous call, no network, no child process, no stdin. "Seconds" is the dev's figure and is not measured on a runner by any check-run; it is plausible for the volume, and the first deploy after merge will show the step's duration.
  • "5 minutes is the ceiling": matches the key.

Can the step block or alter a deploy? (whole step, restated for this head)

  • A non-zero exit cannot. As above for the timeout: the conclusion is success, the job status stays success, the deploy step still runs. Nothing reads steps.*.outcome of the new step: it has no id, and the only steps. read in the file is steps.deploy.outputs.url. The header's rule (a run that cannot deploy goes red) is intact, because the deploy step is unchanged and has no continue-on-error.
  • A hang no longer can. This was N1 at the earlier head; see the delta above.
  • It writes nothing the deploy reads. The script has no write call. The step sends stdout to a file under RUNNER_TEMP, which is outside the workspace and so outside .vercel/output and every filePathMap source, then appends to the step-summary file. It writes neither GITHUB_ENV, GITHUB_PATH nor GITHUB_OUTPUT, and each step is its own shell.
  • No secret is in scope. The job-level env holds two Vercel identifiers and the pinned CLI version, which the file's own comment marks as identifiers, not credentials. The token is set per step on four other steps and not on this one. The script prints sizes, counts, part labels and function directory names, never file contents.
  • Nothing printed is shell-interpreted. The step has no expression interpolation. The echoes are static strings, the fence marker is single-quoted, and the reading reaches the log and the summary through cat of a quoted path. Every line the script prints starts with fixed text or a padded number; the only variable text is the output path and function directory names, both from the main tree this job already builds and runs.

Dependency footprint. Met. Setup workspace installs Node from .nvmrc before the build; the script uses Node built-ins only; the workflow sets no default working directory, so the step runs at the repository root, the script's default root. The preceding assertion step has already required .vercel/output/config.json.

The shell. The script runs as the condition of if !, where set -e does not apply; a non-zero exit, or a redirection that cannot open its file, enters the branch, prints the ::warning:: line and exits 1. On success the reading is printed once to the log and once, fenced, to the summary.

Placement. After Assert the build produced a deployable output, before Deploy the prebuilt output to production: after the build (card, ask 1) and before the upload (PR body). A completed step's summary is kept when a later step aborts, so a run whose upload aborts still carries its reading.

The rest of the comment against the code. The part names match the script's labels. Both writes (log, summary) are there. The script walks the output tree and adds every distinct filePathMap file, and its header explains the file count; run 46118151955 logs Downloading 13039 deployment files, the count the dev reports for the script. "The only step here that has it": one continue-on-error: key in the file. "A failure still shows as a warning annotation": true on the script-error path, where the step prints it; on the timeout path the annotation is the runner's own timed-out line, since the shell is killed before it can print.

Workflow lint. name, continue-on-error, timeout-minutes and run are valid step-level keys, indented with their siblings; timeout-minutes now appears once at job level (30) and once at step level (5). The block scalar is unchanged. The workflow-parsing gates are green on this head.

Findings. No must-fix, no should-fix.

  • N1 (nit, raised at 9d66e038): closed at this head. The step carries timeout-minutes: 5 and the comment states why.
  • N2 (nit, carried) — the step is named "what this deploy uploads", and its headline size is the script's content-deduplicated total, which is not the CLI's figure: the tree the CLI reported as 954.6 MB measures 742.8 MiB distinct. The comment explains how the file count reconciles and is silent on the byte total. The claim rules readings in deduplicated size, so the step is as ruled, and the table labels itself "Distinct contents". Card comment 7239573592 now sets the two scales side by side and names the gap as unreconciled, which is the mitigation asked for. What remains is the reconciliation itself, for the seat when the first run with the table is read; no head change.
  • N3 (nit, prose face) — the PR body does not mention the step timeout, and its "Gates at this head" block describes the earlier head. The tree is what is judged here; the body can be brought up to date without moving the head.

Implemented-by: claude/project-thread-7y20tj
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T13:04Z

L1-a delta: ACCEPT at cd1513fc0a4028a58482e2be07cd2b5539128d4c (#36192 PR 2), from my ACCEPT at 9d66e038.

  • The delta is one commit, +4 −0, in .github/workflows/docs-deploy.yml. It adds timeout-minutes: 5 to "Measure what this deploy uploads", which closes my N1, and a three-line comment. Nothing else moves.
  • The comment is true. continue-on-error lets a failed step pass, but a step that hangs only ends when the job's clock runs out, and then nothing deploys. A step that hits its own timeout-minutes counts as a failed step, so continue-on-error: true still lets the upload steps run. The script makes synchronous local reads, so 5 minutes is generous.
  • Checks at this head: 29 success, 0 failed, mergeable clean. The pr-state flag on the Test Core (… /12) skip is a stale roster. check-expected-skips --pr 38297, run from a checkout re-pinned to main (roster identical by blob id), exits 0 with 14 expected skips.
  • The PR body's "What changes" does not mention the timeout yet. The seat covers it in the record brief. Please add one line to the body before the handoff.
  • The contract review moves with the head, because the path is governed: the isolated L2 delta record for this head, from the same reviewer, is 7239661995: PASS. It closes N1, carries N2, and adds N3 (the body). Tier H is unchanged.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Recorded 2026-11-28T13:06Z.

维护者速读

席位意见:可以合。

席位核对 — ACCEPT · repo:objectstack#3 · head cd1513fc0a4028a58482e2be07cd2b5539128d4c

  1. 形态:Fixes #36192(第一步 perf(docs): send each docs page a trimmed sidebar tree, and measure what a deploy uploads #38264 已合入);只改 .github/workflows/docs-deploy.yml,+34 / −0;skip-changeset。
  2. 审查:L2 PASS 7239010892(9d66e038),同一位审核者在本 head 的完整记录 PASS 7239661995(档位已核,N1 已关,N2 留给读第一张表时核对,N3 已在正文里修);L1-a ACCEPT 7239033525(9d66e038),delta ACCEPT 7239673224(本 head)。
  3. Tier:check-governed-merges.mjs --pr 38297 判 GOVERNED,Tier H。
  4. 门禁:本地模拟 exit 0,表格正确(13039 个文件,631.7 MiB);36/36 门禁 exit 0,0 个未跑;check-expected-skips 以 main 的 roster 跑,14 个 skip 都在 roster 里。正文按 N3 改过,head 未动。
  5. 合并后还欠的:第一张带分项表的部署读数,以及读者看得见的那部分瘦身(搜索和 llms.mdx 怎么取数据)要不要做,后者另请你定。
  6. 落地条款:Tier H ⇒ GOVERNED_APPROVERS(os-zhuang)批准后,本席照落地前检落地;head 再动就重新判。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Tier H approval request at 2026-11-28T13:07Z. Seat record: the newest ## 席位核对 above (ACCEPT, Head-sha: cd1513fc0a4028a58482e2be07cd2b5539128d4c). On this head: L2 PASS 7239661995 (same reviewer, tier verified) and L1-a delta ACCEPT 7239673224. The path is governed (.github/workflows/docs-deploy.yml).

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 13:13
@os-zhuang
os-zhuang enabled auto-merge November 28, 2026 13:13
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 4cb162b Nov 28, 2026
53 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-7y20tj branch November 28, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs site: measure and shrink the Vercel deploy output (~920 MB, ~12.8k files per deploy) — server chunks, prebuilt OG images, per-page payloads

3 participants