Skip to content

ci: a weekly merge-queue duration reading against the 22-minute median budget and the 32-minute p90 alarm - #35582

Merged
os-zhuang merged 12 commits into
mainfrom
claude/project-thread-aun4m7
Nov 20, 2026
Merged

os-zhuang merged 12 commits into
mainfrom
claude/project-thread-aun4m7

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #35322

Supersedes #35343 (takeover: this branch starts from that PR's head and keeps its commits; the seat closed it as superseded by this PR, comment 7015137448).

Clause-②: no
Metadata-protocol: none
Rule-change: ruled
Ruling-ref: Source: maintainer — Warren, 2026-11-19, review-split discussion thread: 03:16Z 「以上都同意」 (CI speed budget for objectstack; 「变慢两成非常大了」 rejected a 20% allowance); 04:24Z 「1+2+4」, point 2 as amended by the review: budget = median 22 min, alarm = p90 32 min, measured weekly by a script that files a speed-up card when over; a PR's own before/after reading is advisory and never blocks a merge. S1: ruling record 7044162186 on the card, 「抬到 1053,整句写进去」, under standing ruling record 6184799323 (letter B): the AGENTS.md byte ceiling 78106 → 78401 (+295 B, the measured delta of the ordered sentence; 1050 → 1053 lines).

维护者速读

  • 改了什么:每周一自动量一次合并队列耗时(中位、九成、失败率、最慢的五个作业),中位超过 22 分钟或九成超过 32 分钟就自动开或刷新唯一一张提速卡;总指引文件写入这条预算规则的整句(按你的批准,总指引文件的上限放宽了这一句的长度)。
  • 为什么:落实你 11-19 定的 CI 速度预算。今天实测近 7 天中位 21.9、九成 32.1 分钟,九成已经超过报警线,没人盯就会悄悄变慢。
  • 最坏情况与能否撤回:量错会多开或漏开一张提速卡,不挡任何合并、不碰任何必需检查;删掉这个每周任务即可撤回。
  • 需要你做的:Tier H 审批(改了自动化流程配置和总指引文件,需要你亲手批准合并)。

What changes

  • scripts/ci/queue-duration.mjs (new, read-only against GitHub). Lists every merge_group run created in the last --since window (7d, 24h or an ISO instant), groups by head SHA, and for each SHA whose every queue-workflow run concluded green measures the first run's created_at to the last run's updated_at (runner waits and re-runs included). Prints p50 / p90 / max (nearest rank), the SHA counts, the queue failure rate, which workflow finished last, and the five slowest jobs of that critical run over 40 evenly spaced green SHAs. --repo, --json, --render FILE, --self-test. Exit 2 = NOT MEASURED: a window that cannot be listed whole is split in halves down to one hour and then refused, never truncated; a slice whose rows fall short of its total_count refuses; a sample under the budget's floor is not judged.
  • scripts/ci/queue-budget.json (new): budgetMedianMinutes: 22, alarmP90Minutes: 32, minSample: 20, the card's baseline with its window, and the five queue workflows (the five files with a merge_group: trigger). Its note and the script header say changing a number is the maintainer's call.
  • .github/workflows/queue-duration-budget.yml (new). Weekly (Monday 07:09 UTC), workflow_dispatch, and pull_request paths-filtered to its own three files. Job measure (actions: read, contents: read) self-tests the module, reads objectstack, reads hotcrm report-only, publishes both readings to the run summary and keeps them as an artifact; it reds only on NOT MEASURED. Job file (issues: write) runs only when the verdict is over, the event is not pull_request and the ref is main, and calls fileQueueCard: one card, fixed title plus the plain-text body marker os-queue-duration-budget, a bounded open-issue scan that refuses rather than files when it cannot establish absence, the oldest match refreshed in place, labels and issue type on create only. Own file rather than a fleet-patrols.yml job because that file's pull_request: paths list is frozen by scripts/check-platform-checklist-watchdog.mjs. No merge_group: or pull_request_target: trigger; not a required context.
  • .github/workflows/lint.yml: one run_self_test line in the "Moved workflow step bodies self-test" collector, so Lint & Repo Gates runs the new self-test on every PR.
  • docs/agents/build-and-test.md: the explanation behind the budget rule (whose numbers, what one reading measures, why a PR's own reading stays advisory), under the anchor #the-merge-queue-speed-budget. The binding sentence lives in AGENTS.md.
  • AGENTS.md Build & Test: the card's item-4 sentence in full at the end of the duration paragraph, linked to the companion section: "The merge queue's speed budget is scripts/ci/queue-budget.json, read weekly; an over week files one speed-up card; a PR that changes CI or adds a gate reports the affected job's before/after median as advisory, never a gate." No other line is reworded or re-wrapped. Against main (9d077230): 78011 → 78306 bytes (+295), 1050 → 1053 lines.
  • scripts/pm/check-skill-line-ratchet.mjs: the AGENTS.md row in CEILINGS moves 78106 → 78401, exactly the +295-byte measured delta, with a row comment citing ruling record 7044162186 and standing ruling record 6184799323 (letter B). The maintainer's answer names 1053 lines because lines were the unit when the question was asked; the ratchet counts UTF-8 bytes since a457b51 landed on main, so +295 B is the byte measure of the same ordered sentence, and the line count it brings is the 1053 the answer names. The 95 bytes of headroom main already carried on this row are left as they stood, not spent.

This takeover, on top of #35343's head

  • Credit: the seven commits fe60502e..e1626c63 are os-warren's and are kept as they were (no squash, no rewrite). This PR adds merges of origin/main (b65488a8, then 9d077230) and the commits 74265b5f, 4fdfd756 and 9ebfabcd.
  • Cut, per the seat's order to trim to the card's Done-when: --via gh, --until and --job-sample. None has a caller: the workflow passes none of them and the self-test drives the functions, not the CLI. The usage line also advertised a --report-only flag main() never read; it is gone. A cloud seat reaches the API with node --use-env-proxy (header and card body say so). queue-duration.mjs 780 → 774 lines; PR total +1055/-1 → +1050/-2.
  • Kept, with the reason for each: --render (the workflow's summary step renders both JSON readings with it, one network read and two renderings); the adaptive window split (it is what makes a reading refuse rather than truncate); the critical-run job sample and the hotcrm reading (card items 1 and 3); the 270-line self-test (the Done-when's --self-test and its de-dup proof, battery floor and handshake per AGENTS.md "Writing a --self-test"). So the size stays well over what an M card usually reads: the bulk is the self-test and the card writer the Done-when asks for.
  • Branch name, a platform exception recorded in the claim: this card thread can push only claude/project-thread-aun4m7, so the branch does not carry the claude/issue-35322-* spelling the Duplicate Fix Guard advises. The remote branch did not exist before the first push (git ls-remote answered nothing), so no force was used.
  • S2 (L2 record 7015520405), fixed in 4fdfd756: listQueueRuns now compares the rows a slice received with its total_count and refuses (NOT MEASURED, exit 2) a slice that falls short, so a short page that does not throw can no longer read as a smaller queue. One self-test case added (the listing battery pin 5 → 6). Ablation: with the refusal disabled the self-test exits 1 naming exactly that case; restore verified byte-identical to HEAD.
  • S1 (L2 record 7015520405), fixed in 9ebfabcd after the maintainer's ruling record 7044162186: the card's item-4 sentence is the binding spelling in AGENTS.md Build & Test, linked to the companion section, and the companion keeps the explanation only. The ceiling move is in the AGENTS.md and ratchet bullets above.
  • Duplicate Fix Guard: ci: a weekly merge-queue duration reading against the 22-minute median budget and 32-minute p90 alarm #35343 was open and older and also declared the card, so this PR's "No other open PR may claim the same issue" step went red on its first run; ci: a weekly merge-queue duration reading against the 22-minute median budget and 32-minute p90 alarm #35343 was then retired by the seat (comment 7015137448), and a body edit re-fired the guard on edited, green since. No body line passes it while both are open (it has no takeover or supersedes exemption), so this body keeps the closing line the card needs and names the takeover in prose.

Tests

Self-test: 54 assertions, 8 floored batteries

node scripts/ci/queue-duration.mjs --self-test on head 4fdfd756:

✓ queue-duration --self-test: 54 assertions across 8 floored batteries.

Batteries: percentile and window parsing (6) · grouping by head SHA (9) · verdict, each threshold alone, sample floor, report-only (6) · listing: the adaptive split, cross-slice de-dup, a failed page fails the listing, a short page under total_count refuses (6) · critical-run jobs (4) · budget file, the tracked file plus six malformed shapes (7) · the card (10, including the de-dup proof: a second run sees the first run's card, refreshes it and never files a second) · rendering (6).

Live dry run, last 7 days on 74265b5: p50 21.9 · p90 32.1 · max 55.6 min, OVER (p90)

node --use-env-proxy scripts/ci/queue-duration.mjs --since 7d --json on commit 74265b5f, against objectstack-ai/objectstack, window 2026-11-12T15:55:33Z .. 2026-11-19T15:55:33Z, 163 API reads:

  • 10385 runs · 2077 head SHAs · 1837 all-green · 226 red · 12 cancelled · 2 still running
  • all-green SHAs: p50 21.9 min · p90 32.1 min · max 55.6 min. Verdict OVER: p90 32.1 is over the 32-minute alarm (median 21.9 is within the 22-minute budget).
  • against the card's baseline (p50 21.7 · p90 31.9 · max 34.5 over 176 SHAs, 11-17..19): percentiles within a quarter minute; this reading counts every all-green SHA in seven days, re-runs included by design, and its max is a single SHA.
  • queue failure rate: 226 of 2075 completed SHAs had a red run (10.9%)
  • the run that finished last: CI on 1836 of 1837 green SHAs
  • slowest jobs of that run (median over 40 sampled SHAs): Test Core (9/10) 23.6 min · Test Core (10/10) 17.8 · Test Core (3/10) 17.1 · Test Core (7/8) 17.0 · Test Core (1/10) 16.2. Both shard spellings appear because the Test Core shard count changed inside the window.
  • no unlisted merge_group workflow, no listed workflow missing.

After the S2 fix, the same command on 4fdfd756 (window 2026-11-12T16:42:04Z .. 2026-11-19T16:42:04Z, 165 reads) listed every slice whole: 10390 runs, 1837 all-green SHAs, p50 21.9 · p90 32.1 · max 55.6, OVER.

On main, a weekly run with this reading would file the speed-up card. From this branch it files nothing (see Verification).

hotcrm, report-only, same commit: window 2026-11-12T16:04:00Z .. 2026-11-19T16:04:00Z, 61 runs · 59 all-green · 2 red · p50 7 · p90 39.5 · max 41.8 min; slowest job CI / Test shard 2 5.6 min. Summary only; never judged, no card.

Acceptance notes

  • Changeset: none. Nothing here ships in any package's files[] (scripts/ci/**, .github/workflows/**, docs/agents/**, AGENTS.md), so the PR carries skip-changeset.
  • The card is filed only on an over week. A week back within budget writes nothing, so an open speed-up card is closed by the seat that lands the speed-up, not by this workflow.
  • The job wait column (job created_at to started_at) reads 0 minutes across the sample, so it does not capture runner waiting on this repository; the waiting is inside each SHA's first-start-to-last-end span, which is what the budget grades.

Verification

Read first, by risk:

  1. .github/workflows/queue-duration-budget.yml, the file job's if: (the only write path: over, not pull_request, main only).
  2. scripts/ci/queue-duration.mjs, fileQueueCard (the de-dup scan and its refusal).
  3. scripts/ci/queue-duration.mjs, listQueueRuns (split or refuse, never truncate).

Two-minute check: node scripts/ci/queue-duration.mjs --self-test prints ✓ queue-duration --self-test: 54 assertions across 8 floored batteries.

Local gates on 74265b5 (after the main merge)

Derived with node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (tree objectstack-ai/objectstack at 74265b5f, 6 paths vs merge base b65488a8): 63 commands, all run, every exit captured before any pipe; dispatch-gates --ran: 63 derived famil(ies) accounted for — 63 run, 0 NOT-MEASURED.

  • S1 round on 9ebfabcd (after merging origin/main 9d077230): 64 derived commands, all exit 0, including pnpm check:pm-skill-ratchet (AGENTS.md is 78306 bytes (ceiling 78401; headroom 95)), its --self-test (116 cases), pnpm check:ratchet-remedy-authority, pnpm check:pm-skill-id-lint, pnpm check:doc-authoring, check-adr-links and pnpm check:pm-dispatch-gates (2249 cases, 336.5 s); dispatch-gates --ran: 64 run, 0 NOT-MEASURED; self-test 54 assertions; overlap-check --branch=HEAD VERDICT clean exit 0; check-commit-card-trailers exit 0 at push. The lychee link check of docs/** is CI-owned.
  • Round 1 on 4fdfd756 (the S2 commit): the same 63 derived commands re-run, all exit 0, including pnpm check:pm-dispatch-gates (2249 cases, 326.9 s); dispatch-gates --ran: 63 run, 0 NOT-MEASURED; overlap-check --branch=HEAD VERDICT clean exit 0 against origin/main bf69cb41; check-commit-card-trailers exit 0 at push.
  • pnpm check:pm-dispatch-gates exit 0 (fast tier, 2249 cases, 318.7 s).
  • pnpm check:workflow-status-functions exit 0.
  • pnpm check:pm-skill-ratchet exit 0 (AGENTS.md 1050 lines, at its ceiling; the edited line 116 bytes).
  • pnpm check:type-check-debt exit 0.
  • node scripts/ci/queue-duration.mjs --self-test exit 0.
  • pnpm --filter @objectstack/lint run check:doc-formula-expressions: first run exit 3 (PREREQUISITE NOT MET, the lint and formula packages unbuilt in a fresh worktree, nothing measured); after turbo run build --filter=@objectstack/formula --filter=@objectstack/lint exit 0.
  • every other derived command exit 0.
  • node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD exit 0 (8 commit messages; it also ran as the pre-push hook).
  • node scripts/pm/overlap-check.mjs --branch=HEAD: VERDICT clean exit 0 (merges cleanly with origin/main and with ci: a weekly merge-queue duration reading against the 22-minute median budget and 32-minute p90 alarm #35343's head).
  • CI-owned, not run locally: pnpm lint, test:repo, the type-check lanes, the lychee link check for docs/**.
  • workflow_dispatch: NOT MEASURED. A dispatch runs only a workflow that is on the default branch. This PR's own pull_request run exercises the measure job live, and file is skipped there by its if:.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (no formatter ran; pnpm lint left to CI)
  • 4. One issue, one branch off an up-to-date main, one pull request. (a takeover branch from ci: a weekly merge-queue duration reading against the 22-minute median budget and 32-minute p90 alarm #35343's head, merged with main)
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing; skip-changeset)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done. (not read by this session)

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWSASohaoSSt6uSFPv

… AGENTS.md budget sentence

Claude-Session: https://claude.ai/code/session_01JQwxbYzM6act7DgRZuPrxu
Co-authored-by: Claude <noreply@anthropic.com>
…name the wait column precisely

Claude-Session: https://claude.ai/code/session_01JQwxbYzM6act7DgRZuPrxu
Co-authored-by: Claude <noreply@anthropic.com>
… AGENTS.md sentence to two lines

Claude-Session: https://claude.ai/code/session_01JQwxbYzM6act7DgRZuPrxu
Co-authored-by: Claude <noreply@anthropic.com>
…h is also its discovered check family

Claude-Session: https://claude.ai/code/session_01JQwxbYzM6act7DgRZuPrxu
Co-authored-by: Claude <noreply@anthropic.com>
…docs/agents/build-and-test.md

AGENTS.md returns byte-identical to the merge base; the explanation lives
on the Build & Test companion page.

Claude-Session: https://claude.ai/code/session_01JQwxbYzM6act7DgRZuPrxu
Co-authored-by: Claude <noreply@anthropic.com>
…the budget file from AGENTS.md

`--via gh`, `--until` and `--job-sample` have no caller: the workflow passes
none of them and the self-test drives the functions, not the CLI. The usage
line also advertised a `--report-only` flag that main() never read. A cloud
seat reaches the API with `node --use-env-proxy` instead of `--via gh`, and
the header and the card body now say so.

AGENTS.md Build & Test names `scripts/ci/queue-budget.json` at the end of an
existing line (116 bytes, 1050 lines unchanged); the full paragraph stays in
docs/agents/build-and-test.md.

Claude-Session: https://claude.ai/code/session_01L6bhgWSASohaoSSt6uSFPv
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 19, 2026
@github-actions github-actions Bot added size/xl ci/cd documentation Improvements or additions to documentation labels Nov 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWSASohaoSSt6uSFPv
os-dev-report

{
  "issue": 35322,
  "status": "done",
  "branch": "claude/project-thread-aun4m7",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/35582",
  "session": "session_01L6bhgWSASohaoSSt6uSFPv",
  "premise_still_valid": true,
  "summary": "Took over PR #35343 at e1626c63 (os-warren's seven commits kept unrewritten), merged origin/main b65488a8 once, and added one commit 74265b5f: cut --via gh, --until and --job-sample (no caller in the workflow or the self-test) and a usage-line --report-only flag main() never read; queue-duration.mjs 780 to 774 lines, PR +1055/-1 to +1050/-2. AGENTS.md Build and Test names scripts/ci/queue-budget.json at the end of an existing line (116 bytes, 1050 lines unchanged); the full item-4 sentence stays on docs/agents/build-and-test.md, deviation recorded in the PR body. Live 7-day reading on 74265b5f: p50 21.9, p90 32.1, max 55.6 min over 1837 all-green SHAs, verdict OVER on the p90 alarm.",
  "tests": "node scripts/ci/queue-duration.mjs --self-test on 74265b5f :: exit 0, 53 assertions across 8 floored batteries (card battery 10 cases incl. second run refreshes, never files twice). Live: node --use-env-proxy scripts/ci/queue-duration.mjs --since 7d --json on 74265b5f, window 2026-11-12T15:55:33Z..2026-11-19T15:55:33Z, 10385 runs, 2077 SHAs, 1837 green, 226 red, 12 cancelled, 2 running, p50 21.9 p90 32.1 max 55.6 min, 163 API reads, verdict over (p90). hotcrm report-only: 61 runs, 59 green, p50 7 p90 39.5 max 41.8. --render on the live JSON :: exit 0. No ablation: no tested behaviour changed (CLI-only cuts).",
  "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack on 74265b5f: 63 derived, 63 run; --ran: 63 accounted, 0 NOT-MEASURED. pnpm check:pm-dispatch-gates :: exit 0 (fast tier 2249 cases). pnpm check:workflow-status-functions :: exit 0. pnpm check:pm-skill-ratchet :: exit 0. pnpm check:type-check-debt :: exit 0. check:doc-formula-expressions :: exit 3 first (prerequisite, unbuilt lint/formula), exit 0 after build. check-commit-card-trailers --range origin/main..HEAD :: exit 0. overlap-check --branch=HEAD :: exit 0 clean. CI on head at report time: Governed Surface Queue Guard success, Check Changeset success, the rest in_progress. Expected red: PR-body guards duplicate step while #35343 stays open (it declares the same card and is older).",
  "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
  "mcp_calls": "0",
  "api_writes": "2 relay strokes — pr_create (POST pulls + POST issues/35582/assignees + POST issues/35582/labels, one stroke) and this os-dev-report comment (POST issues/35582/comments); plus one git push",
  "open_questions": [
    { "question": "PR #35343 still declares the card and is older, so this PR's duplicate-fix step stays red until #35343 is closed. Who retires it?", "options": ["A the seat closes #35343 as superseded by #35582", "B leave both open and accept the advisory red"], "recommendation": "A, because the guard has no takeover exemption and goes green on its own once #35343 is closed" }
  ],
  "security_findings": "none",
  "out_of_scope_findings": []
}

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWSASohaoSSt6uSFPv

Contract review brief — PR #35582 @ 74265b5f4ff6b3b6304d82f7dd15753fa3660258 (card #35322)

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 AGENTS.md .github/workflows/lint.yml .github/workflows/queue-duration-budget.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 #35322: its body and EVERY comment (rulings and earlier records included)
· PR #35582: its body, its file list, and the net diff against main at 74265b5f4ff6b3b6304d82f7dd15753fa3660258
· the check-runs on 74265b5f4ff6b3b6304d82f7dd15753fa3660258: 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: AGENTS.md, .github/workflows/lint.yml, .github/workflows/queue-duration-budget.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/1842cbee-03d1-5804-ba48-58146742c3b6/scratchpad/pr-35582/ 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#1 · os-sales · session_01L6bhgWSASohaoSSt6uSFPv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 74265b5f4ff6b3b6304d82f7dd15753fa3660258
Local-runs: none
Scope: AGENTS.md, .github/workflows/lint.yml, .github/workflows/queue-duration-budget.yml + scripts/ci/queue-duration.mjs, scripts/ci/queue-budget.json, docs/agents/build-and-test.md

Read: card #35322 body and its three comments (claim 6999763710, release 7005096299, claim 7014193859; no earlier record, no ruling comment beyond the card's own Source line), PR #35582 body and 6-file list, the net diff against main (merge base b65488a8), and the check-runs on the head. Code outside the diff read to judge it: scripts/ci/nightly-tiers-card.mjs, scripts/invoked-as.mjs, the ten workflow files naming merge_group, the header of docs/agents/build-and-test.md.

① Derived judgments

  • No package, schema or spec accept-set changes; nothing in any files[]. Right.
  • One new workflow, Queue Duration Budget: schedule, workflow_dispatch, and pull_request paths-filtered to its own three files; no merge_group: and no pull_request_target:; top-level permissions: {}; not a required context. Right, and it agrees with the card's item 3 and with the AGENTS.md sentence that a gate grading a duration reports and never reds a required job.
  • One new write identity: an issue with the fixed title merge queue over its speed budget and the body marker os-queue-duration-budget, labels tooling, area:fleet, domain:devx, priority:p2, pm:queue and type Task on create only. Matches the card's item 3 label for label. Right.
  • The only write path is the file job, gated on verdict over, event not pull_request, ref refs/heads/main. On this head's own run File or refresh the speed-up card concluded skipped while Read the merge-queue duration concluded success. Right.
  • queueWorkflows lists CI, Governed Surface Guard, Lint & Type Check, PR-Body Guards, Spec Liveness Check. On the head exactly those five workflow files carry a merge_group: trigger (the other five files that mention it carry it in comments only), and the names match each file's name:. Right.
  • budgetMedianMinutes: 22, alarmP90Minutes: 32 and the baseline are the card's numbers. Right. minSample: 20 is a number the ruling does not give: it only turns a thin week into NOT MEASURED, never into a verdict, and it sits in the maintainer-owned file. Accepted, named here so the maintainer sees it.
  • The verdict is over only when a value is strictly above its number; exactly 22 and exactly 32 read within. Agrees with the card's "exceeds". Right.
  • lint.yml gains one sub-second offline self-test in the moved-bodies collector, so it runs on every pull request and every queue entry. Right; the comment says honestly that it is not a moved body.
  • hotcrm is read report-only: judge answers report-only before any threshold, and the step is continue-on-error. Right.
  • AGENTS.md gains a pointer, not the card's sentence. Wrong against the card's item 4: see S1.

② Semver level

Nothing published: scripts/ci/**, .github/workflows/**, docs/agents/** and AGENTS.md ship in no package. skip-changeset is correct and Check Changeset is success on the head. Clause-②: no is correct: no consumer-facing capability is added, narrowed or removed. Metadata-protocol: none is correct.

③ Boundary flags

  • open_questions 1 (who retires ci: a weekly merge-queue duration reading against the 22-minute median budget and 32-minute p90 alarm #35343): answered by events. ci: a weekly merge-queue duration reading against the 22-minute median budget and 32-minute p90 alarm #35343 was closed at 2026-11-19T16:25:42Z; PR-body guards re-ran on this head and concluded success (check-run 135708632864). The earlier red run (135703819224) had ONE error, the Duplicate Fix Guard naming ci: a weekly merge-queue duration reading against the 22-minute median budget and 32-minute p90 alarm #35343; its other three steps (closing-target-claim, partof-closing-keyword, single-claim-paths) each printed their pass line. So the duplicate was the only cause.
  • For the seat, outside the diff: both guard runs warn UNDETERMINED on check:closing-target-claim because the newest Claim: comment on the card (7014193859) has no parseable Branch: line; the parenthetical after the branch name is the likely cause. The seat corrects the claim comment; it is a warning, not a red.
  • Deviation from the card's item 4 (AGENTS.md carries a pointer instead of the sentence): not accepted as recorded, graded S1 below. If the fix needs the line ceiling raised, that is the maintainer's ruling, and the seat escalates it rather than choosing.
  • workflow_dispatch NOT MEASURED: accepted as a limit of the platform, since a dispatch runs only a workflow on the default branch. The Done-when's two halves are covered as far as a pull request can: the head's own pull_request run took a live reading and skipped the write, and the de-dup is proven offline by the self-test inside Lint & Repo Gates (success). The seat owes one dispatch on main after merge and cites its run.
  • For the maintainer: the PR's live reading has p90 32.1 against the 32-minute alarm, so the first run on main files the speed-up card. That is the design working, not a fault.
  • Human Minimum box 3 (pnpm lint left to CI): answered by the head, every Lint and Type Check check-run is success. The CONTRIBUTING box is unticked and stays the dev's.
  • Rule-change: ruled cites the maintainer's thread statements of 2026-11-19, the same Source line the card carries, not a ruling record id; Governed Surface Queue Guard is success on the head. Tier H approval is still owed by the maintainer, and the PR is a draft.
  • Size: size/xl on an M card; Check PR Size is success. The bulk is the 270-line self-test and the card writer the Done-when asks for. Accepted.
  • Card writer bounds, read against the live repo: 462 open issues plus 52 open PRs, so the 10-page scan completes with about half its bound to spare; no open issue carries the marker or the title today. The title-or-marker predicate and the bound are copied from scripts/ci/nightly-tiers-card.mjs unchanged.
  • SQL push-down: not applicable, the diff touches no data path.
  • Security-shaped findings: none.
  • Check-runs on the head at record time: all completed ones are success or skipped except the superseded red run above. NOT FINISHED: Test UI (1/16). This record does not cover its conclusion.

④ Design judgment

AGENTS.md and docs/agents/build-and-test.md

S1 (should-fix) — the card's item 4 puts one rule sentence in AGENTS.md: the queue has a budget, read weekly, over budget files a card, and a PR that changes CI or adds a gate reports the affected job's before/after median as advisory. The head puts Queue speed budget: scripts/ci/queue-budget.json. there, which names a file and states nothing to do or never do, and it puts the whole sentence in docs/agents/build-and-test.md. That page's own header, unchanged by this PR, says every paragraph below moved there verbatim out of AGENTS.md, that AGENTS.md carries every rule, and that where a paragraph reads as a rule the AGENTS.md sentence is the binding spelling. The new section was never in AGENTS.md, it reads as a rule ("A PR that changes CI or adds a gate reports its job's before/after median in its body"), and AGENTS.md has no sentence for it. So by the repo's own contract the reporting obligation the maintainer ruled binds nobody, and the companion's header is now false about its own content. The pointer also carries no link to the new section, unlike every other pointer in Build & Test. Fix, either way: the obligation gets its binding spelling in AGENTS.md (the free bytes on that line can carry the obligation plus a link instead of the bare path, or a ruled one-line ceiling raise lands the card's sentence), and the companion keeps only the explanation. The line itself is within the ratchet: 1050 lines, equal to main, and the edited line is under 120 bytes.

.github/workflows/queue-duration-budget.yml

Holds against the card and against the code it calls. Tried to break: a pull request cannot write (event guard, ref guard, and issues: write exists only on the file job); a step timeout leaves exit_code empty, which the last step treats as not 0 and reds; a NOT MEASURED reading leaves verdict other than over, so nothing is filed; cancel-in-progress: false keeps a filer from dying between its scan and its create; a measure that fails after the reading still lets file run, and file then reds at the download if the artifact is missing, never silently. Action versions match the ones the rest of the tree pins. The reason given for a separate file (the frozen pull_request paths list in scripts/check-platform-checklist-watchdog.mjs) is true of that script. The cron comment is true: no other workflow is scheduled at hour 07 exactly, though two run every four hours and one every six, none at 07.

N1 (nit) — the two read steps are bounded at 12 and 8 minutes and the job at 20, so two slow reads leave no time for the summary and artifact steps. On this head the objectstack read took 6 min 54 s of its 12. It fails loudly either way.

.github/workflows/lint.yml

Holds. The new line sits in a collector whose step ran inside Lint & Repo Gates (success), the closing echo's count was raised with it, and the comment states the one way this entry differs from its siblings.

scripts/ci/queue-duration.mjs

Agrees with its header and the card on: grouping by head SHA; green, red, cancelled, running and other; first created_at to last updated_at; nearest-rank percentiles; the failure rate over completed SHAs; the critical run and its five slowest jobs over 40 evenly spaced green SHAs; exit 2 for NOT MEASURED and exit 0 for an OVER week; the token read and never printed; fileQueueCard refusing any reading that is not over, refusing an unfinished scan, refreshing the oldest match in place, and never touching labels on a refresh. The self-test has a declared roster, a floor of 8, per-battery floors and the reached-verdict handshake that AGENTS.md "Writing a --self-test" asks for.

S2 (should-fix) — listQueueRuns does not keep its own sentence, "listed whole or refused". After the paging loop nothing compares got.length with total: a first page shorter than 100 rows under a larger total_count, or a later page that comes back short before the total is reached, ends the slice and the short list is accepted as the reading. The function's comment says why that matters: a truncated list reads as a faster, smaller queue. The self-test proves only that a page that throws fails the listing. Fix: refuse a slice whose rows fall short of its total_count, with one self-test case for the short page.

N2 (nit) — each SHA's duration is rounded to a tenth of a minute before the percentile is taken, so the budget is judged at that resolution: 22.04 reads as 22 and within.

N3 (nit) — a SHA is green on the queue-workflow runs the window holds for it; nothing requires all five to be present, so a SHA cut by the window's start edge is measured short. Negligible at 1837 green SHAs.

scripts/ci/queue-budget.json

Holds: the ruled numbers, the baseline with its window, the five workflows, and a note that the validator requires to name the maintainer.

Two open findings, S1 and S2, each owed a delta review of its fix. No must-fix.

Implemented-by: claude/project-thread-aun4m7
Reviewed-by: session_01L6bhgWSASohaoSSt6uSFPv

VERDICT: PASS

…refuses

listQueueRuns promised "listed whole or refused" but never compared the rows
it received with the slice's total_count, so a short page that did not throw
ended the slice and the short list was read as the queue. Such a slice now
refuses with NOT MEASURED (exit 2), and the listing battery gains the case.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWSASohaoSSt6uSFPv
os-dev-report

{
  "issue": 35322,
  "round": "rework 1 (L2 record 7015520405)",
  "status": "rework",
  "branch": "claude/project-thread-aun4m7",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/35582",
  "session": "session_01L6bhgWSASohaoSSt6uSFPv",
  "head": "4fdfd756",
  "summary": "S2 fixed: listQueueRuns refuses (NOT MEASURED, exit 2) a slice whose rows fall short of its total_count; one self-test case added, listing battery pin 5 to 6. S1 held for a maintainer decision: the card's item-4 sentence needs AGENTS.md at 1053 lines against a 1050 ceiling, and re-wrap funding is not allowed.",
  "tests": "node scripts/ci/queue-duration.mjs --self-test :: exit 0, 54 assertions across 8 floored batteries. Ablation via scripts/ablation-replace.mjs with the refusal disabled :: exit 1 naming the short-page case; restore blob == HEAD, git diff HEAD empty. Live node --use-env-proxy ... --since 7d on 4fdfd756 :: exit 0, every slice listed whole, 10390 runs, p50 21.9 p90 32.1 max 55.6, over.",
  "gates": "dispatch-gates --commands on 4fdfd756: 63 derived, all exit 0 incl. pnpm check:pm-dispatch-gates (2249 cases); --ran 63 run, 0 NOT-MEASURED. overlap-check --branch=HEAD :: exit 0 clean vs origin/main bf69cb41. check-commit-card-trailers :: exit 0 at push. CI on 4fdfd756 not yet read.",
  "mcp_calls": "0",
  "api_writes": "2 relay strokes this round: issue_patch on the PR body (PATCH issues/35582) and this comment (POST issues/35582/comments); plus one git push",
  "open_questions": [
    { "question": "S1: raise the AGENTS.md ceiling 1050 to 1053 for the card's item-4 sentence, or take an alternative?", "options": ["A maintainer ruling raises the ceiling to 1053", "B a named deletion in AGENTS.md pays the 3 lines"], "recommendation": "A, because it changes no other rule" }
  ],
  "security_findings": "none",
  "out_of_scope_findings": []
}

…TS.md Build & Test

The bare pointer to scripts/ci/queue-budget.json becomes the card's item-4
sentence in full, linked to its companion section: the budget file, read
weekly, an over week files one speed-up card, and a PR that changes CI or
adds a gate reports the affected job's before/after median as advisory,
never a gate. The companion section keeps the explanation only.

AGENTS.md grows 78011 -> 78306 bytes against main (+295), 1050 -> 1053
lines. Its byte ceiling moves 78106 -> 78401 by that delta, as ruling
record 7044162186 orders under standing ruling record 6184799323, letter B.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWSASohaoSSt6uSFPv
os-dev-report

{
  "issue": 35322,
  "round": "S1 (L2 record 7015520405, ruling record 7044162186)",
  "status": "done",
  "branch": "claude/project-thread-aun4m7",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/35582",
  "session": "session_01L6bhgWSASohaoSSt6uSFPv",
  "head": "9ebfabcd",
  "summary": "Merged origin/main 9d077230 (brings the byte ratchet). AGENTS.md Build and Test carries the card's item-4 sentence in full, linked to docs/agents/build-and-test.md#the-merge-queue-speed-budget, replacing the bare pointer; no other line reworded or re-wrapped. AGENTS.md vs main: 78011 to 78306 bytes (+295), 1050 to 1053 lines. CEILINGS AGENTS.md row 78106 to 78401 (+295, exactly the measured delta) with a row comment citing 7044162186 and 6184799323 letter B. The companion section keeps the explanation only, anchor unchanged.",
  "tests": "node scripts/ci/queue-duration.mjs --self-test :: exit 0, 54 assertions, 8 floored batteries. node scripts/pm/check-skill-line-ratchet.mjs --self-test :: exit 0, 116 cases.",
  "gates": "dispatch-gates --commands on 9ebfabcd: 64 derived (adds check:ratchet-remedy-authority), all exit 0 incl. pnpm check:pm-skill-ratchet (AGENTS.md 78306 bytes, ceiling 78401, headroom 95) and pnpm check:pm-dispatch-gates (2249 cases); --ran 64 run, 0 NOT-MEASURED. overlap-check --branch=HEAD :: exit 0 clean. check-commit-card-trailers :: exit 0. lychee docs links CI-owned. CI on 9ebfabcd not yet read.",
  "mcp_calls": "0",
  "api_writes": "2 relay strokes this round: issue_patch on the PR body (PATCH issues/35582) and this comment (POST issues/35582/comments); plus one git push",
  "open_questions": [],
  "security_findings": "none",
  "out_of_scope_findings": []
}

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWSASohaoSSt6uSFPv

Delta round for L2 record 7015520405 (S1, S2 open). Maintainer ruling for S1: record 7044162186 on #35322.

Delta contract-review brief — PR #35582 @ 9ebfabcd99dd0fc0bbce08c434a1f422d14ca2ff (card #35322)

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 AGENTS.md .github/workflows/lint.yml .github/workflows/queue-duration-budget.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 #35322: its body and EVERY comment (rulings and earlier records included)
· PR #35582: its body, its file list, and the net diff against main at 9ebfabcd99dd0fc0bbce08c434a1f422d14ca2ff
· the check-runs on 9ebfabcd99dd0fc0bbce08c434a1f422d14ca2ff: 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: AGENTS.md, .github/workflows/lint.yml, .github/workflows/queue-duration-budget.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/1842cbee-03d1-5804-ba48-58146742c3b6/scratchpad/pr-35582/ 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#1 · os-sales · session_01L6bhgWSASohaoSSt6uSFPv

Contract-review-hold: session_01L6bhgWSASohaoSSt6uSFPv · head 9ebfabc · CONTRACT_REVIEW_TIER answered HTTP 429 (quota) at 2026-11-20T16:3xZ on the delta round for record 7015520405 · until the account's CONTRACT_REVIEW_TIER quota is reset

The original reviewer resumes on this head then (brief 7044733711), closing S1 and S2 by id. No hand-off: every seat runs on the same account.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户无感:这单是车队内部的 CI 测速工具。每周一自动量一次合并队列的耗时,超过 22 分钟中位或 32 分钟九成,就开或刷新一张提速卡;不挡任何合并。
  • 这一轮按你 16:00 选的 A 做了两件事:把那句规则整句写进 AGENTS.md,AGENTS.md 的上限按实测增量 +295 字节(3 行)抬高,只抬这句话的量。
  • 要你做什么:这是治理面(Tier H),需要你或 os-zhuang 批准。另外还差一次最高档的契约审核,等 Fable 额度恢复后再做。

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head 9ebfabcd99dd0fc0bbce08c434a1f422d14ca2ff · 2026-11-20T16:29Z

This is L1-a's first record on this PR. The contract-tier L2 7015520405 covered 74265b5f. Since then:

  • 4fdfd756 fixes S2;
  • 810787eb merges main at 9d077230 (git diff-tree --cc: 0 hand-resolved hunks);
  • 9ebfabcd applies S1 under ruling record 7044162186.

Merge base 9d077230. Net change against main: 7 files, +1060/−3.

  • Shape and tier

    • Fixes #35322, Clause-②: no, Metadata-protocol: none, skip-changeset. Nothing here ships in a package.
    • check-governed-merges --pr 35582: Tier H (.github/workflows/** by content, ruling 6722205630 letter C), 1063 lines, under 3000.
  • S1, AGENTS.md Build & Test, held against 7044162186. The ruling orders the card's item-4 sentence in full, linked to docs/agents/build-and-test.md#the-merge-queue-speed-budget. The head's sentence has every clause the ruling names, and only those:

    • the budget is scripts/ci/queue-budget.json;
    • it is read weekly;
    • an over week files one speed-up card;
    • a PR that changes CI or adds a gate reports the affected job's before/after median as advisory, never a gate;
    • the link points at that anchor, which resolves to the heading ## The merge-queue speed budget at build-and-test.md:76.

    The bare pointer it replaces is gone. No other line is reworded or re-wrapped: the hunk touches only the end of :147 and adds three lines.

  • Companion section. It now keeps only the explanation:

    • whose numbers these are, and the baseline;
    • the Monday cron and the reader script;
    • that a within-budget week writes nothing;
    • why the before/after reading is advisory.

    The obligation now has its binding spelling in AGENTS.md, which is what S1 asked for.

    • Nit, not owed in this PR: the companion's header still says every paragraph "moved here verbatim out of that section". This section never did. A word in the header (or in the section) would keep the header true. That is a prose-face fix the L2 may take or leave.
  • Ratchet (scripts/pm/check-skill-line-ratchet.mjs), measured with wc -c:

    main head
    AGENTS.md size 78011 bytes, 1050 lines 78306 bytes (+295), 1053 lines (+3)
    AGENTS.md ceiling 78106 78401 (+295)
    • The raise equals the measured delta, as the file's own rule allows ("by at most that delta").
    • The row comment quotes 7044162186 「抬到 1053,整句写进去」 and 6184799323 letter B.
    • The 95 bytes of headroom already on main stay; landed ceilings are not revisited.
    • At this head in a worktree: check-skill-line-ratchet.mjs exit 0, with AGENTS.md table-row pin 768, headroom 0.
  • S2, 4fdfd756.

    • listQueueRuns now throws when a slice's rows fall short of its total_count, with a NOT MEASURED message.
    • The listing battery pin goes from 5 to 6, with one new case: a short page of 40 under total_count 300 refuses, "listed 140 of its 300 runs".
    • node scripts/ci/queue-duration.mjs --self-test at this head: 54 assertions across 8 floored batteries, exit 0.
  • Unchanged since the L2 record. queue-duration-budget.yml, lint.yml and queue-budget.json are byte-identical to 74265b5f. Their L2 reading (write path gated to over, push on main only, permissions: {}, the de-dup pattern) is not re-judged here.

  • Gates. CI on this head finished with no red, per the seat's relay; this record does not re-read it. The dev reports 64 of 64 derived families exit 0, including check:ratchet-remedy-authority.

  • Landing terms. Tier H. All of the following are owed, and this L1 replaces none of them:

    • a same-head delta ## Contract review PASS at CONTRACT_REVIEW_TIER, closing S1 and S2 by id, which is blocked until the Fable quota is back;
    • the maintainer's or os-zhuang's APPROVED review on this head.

    Then the seat lands it, with every check green. After merge, the seat owes the one workflow_dispatch run on main that the L2 named. A new push needs a fresh L1 unless it is a clean merge of main.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWSASohaoSSt6uSFPv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9ebfabcd99dd0fc0bbce08c434a1f422d14ca2ff
Local-runs: none
Scope: AGENTS.md, .github/workflows/lint.yml, .github/workflows/queue-duration-budget.yml + scripts/ci/queue-duration.mjs, scripts/ci/queue-budget.json, scripts/pm/check-skill-line-ratchet.mjs, docs/agents/build-and-test.md

Delta round for record 7015520405 (head 74265b5f, S1 and S2 open), under brief 7044733711. The whole net diff against main was judged again, not only the two fixes.

Read: card #35322 body and its four comments (claims 6999763710 and 7014193859, release 7005096299, ruling record 7044162186); PR #35582 body, its 7-file list and every comment (dev reports 7015034370, 7016282583, 7044707403; record 7015520405; hold 7044803111; L1-a ACCEPT 7044829596); the net diff against main (merge base 9d077230, 7 files, +1060/−3); the 56 check-runs on the head. Code outside the diff read to judge it: the header and CEILINGS map of scripts/pm/check-skill-line-ratchet.mjs, the header of docs/agents/build-and-test.md, AGENTS.md Build & Test, scripts/ci/nightly-tiers-card.mjs, and the workflow files that carry a merge_group: trigger on the head and on origin/main (f44758b2).

① Derived judgments

  • No package, schema or spec accept-set changes; nothing in any files[]. Right.
  • One new workflow, Queue Duration Budget: schedule, workflow_dispatch, and pull_request paths-filtered to its own three files; no merge_group:, no pull_request_target:; top-level permissions: {}; not a required context. Byte-identical to 74265b5f. Right.
  • One write path, the file job: verdict over, event not pull_request, ref refs/heads/main, and issues: write on that job alone. On this head's own run Read the merge-queue duration is success and File or refresh the speed-up card is skipped. Right.
  • One write identity: the title merge queue over its speed budget, the body marker os-queue-duration-budget, the card's five labels and type Task on create only. Right.
  • queueWorkflows names CI, Governed Surface Guard, Lint & Type Check, PR-Body Guards, Spec Liveness Check. Exactly those five files carry a merge_group: trigger on the head, and the same five on origin/main at f44758b2. Right.
  • budgetMedianMinutes: 22, alarmP90Minutes: 32 and the baseline are the card's numbers; strictly above reads over, exactly at reads within. Right. minSample: 20 is not a ruled number; it only turns a thin week into NOT MEASURED. Accepted as before, named for the maintainer.
  • New since the last record, a reading refusal: a slice whose listed rows fall short of its total_count is NOT MEASURED (exit 2) instead of a shorter reading. It narrows what counts as a reading and widens nothing. Right.
  • New since the last record, a rule sentence: AGENTS.md Build & Test now states the budget file, the weekly read, the one card on an over week, and the advisory before/after median a PR that changes CI or adds a gate reports, never a gate. It is the card's item 4 and the sentence ruling record 7044162186 orders, clause for clause. Right.
  • New since the last record, a ceiling raise: the AGENTS.md row in CEILINGS moves 78106 to 78401. AGENTS.md is 78011 bytes and 1050 lines at the merge base and on origin/main, 78306 bytes and 1053 lines on the head: +295 bytes, +3 lines. The row moves by exactly +295, the 95 bytes of headroom main carried are neither spent nor widened, and no other row moves. Right under the ratchet's own discipline (a ruled raise moves the row by at most the measured delta) and ruling record 6184799323, letter B.
  • lint.yml gains one offline self-test in the moved-bodies collector and its closing count goes four to five; the collector holds five run_self_test lines. Byte-identical to 74265b5f. Right.

② Semver level

Nothing published: scripts/**, .github/workflows/**, docs/agents/** and AGENTS.md ship in no package. skip-changeset is correct. Clause-②: no is correct: no consumer-facing capability is added, narrowed or removed. Metadata-protocol: none is correct.

③ Boundary flags

  • Dev report 7016282583, open question (raise the ceiling for the card's sentence, or pay by a named deletion): answered by the maintainer, ruling record 7044162186, option A 「抬到 1053,整句写进去」. The head implements A and neither option not taken.
  • Dev report 7044707403: no open question.
  • For the maintainer, on the unit of the raise: the ruling's words name lines (1050 to 1053); the ratchet has counted UTF-8 bytes since it was re-denominated on main, so the PR reads the same order as +295 bytes. The tree agrees on both units (+3 lines, +295 bytes, both measured), the raise carries no slack, and the ratchet's header reads an earlier line-unit ruling in bytes the same way. Accepted; named here because the Tier H approval on this head is where the maintainer confirms that reading.
  • The ratchet says the script cannot read rulings and that the quote is checked by this record: the PR body quotes ruling record 7044162186 and the measured +295 B, and the row comment quotes the same id and record 6184799323, letter B. Checked, holds.
  • Rule-change: ruled with a Ruling-ref naming the card's Source line and record 7044162186; Governed Surface Queue Guard is success on the head.
  • workflow_dispatch NOT MEASURED: unchanged, a dispatch runs only a workflow on the default branch. The seat still owes one dispatch on main after merge and cites its run.
  • For the maintainer: the PR's live reading has p90 32.1 against the 32-minute alarm, so the first weekly run on main is expected to file the speed-up card. That is the design working.
  • main has moved from the merge base 9d077230 to f44758b2; no commit in between touches AGENTS.md, the ratchet, lint.yml or docs/agents/build-and-test.md, so the +295 arithmetic holds against today's main as well.
  • Human Minimum box 3 (pnpm lint left to CI): answered by the head, every Lint and Type Check check-run is success. The CONTRIBUTING box stays the dev's.
  • Tier H: the maintainer's or os-zhuang's approval on this head is still owed, and the PR is a draft. This record replaces neither.
  • SQL push-down: not applicable, the diff touches no data path.
  • Security-shaped findings: nothing graded; one low-severity observation is relayed to the seat outside this record.
  • Check-runs on the head at record time: 56 of 56 completed; every one is success or skipped, none red, none unfinished. Check Changeset is skipped under skip-changeset.

④ Design judgment

AGENTS.md

S1: closed

The bare pointer is gone. The sentence at the end of the duration paragraph states the obligation the maintainer ruled, in the file whose sentences bind, and links to docs/agents/build-and-test.md#the-merge-queue-speed-budget, which resolves to the heading ## The merge-queue speed budget. It sits in the same paragraph as the sentence it leans on (a gate grading a duration reports and never reds a required job), so "advisory, never a gate" has its ground eight lines up. The hunk touches the tail of one line and adds three; no other line is reworded or re-wrapped. Tried to break: the sentence against the code. The budget file is where it says; the workflow reads weekly; fileQueueCard files one card and refreshes it; nothing in the diff makes a PR's reading a gate. No sentence in it is untrue of the tree.

docs/agents/build-and-test.md

The section now explains and no longer rules: whose numbers, the Monday read, what a week within budget writes, why a PR's own reading stays advisory. The rule-shaped sentence the last record quoted is gone from it, so the page's header holds on the point S1 turned on (where a paragraph reads as a rule, the AGENTS.md sentence binds).

N4 (nit) — the same header still says every paragraph below "moved here verbatim" out of AGENTS.md; this section was written here and never moved. One word in the header or the section would keep it true. No effect on the contract; a follow-up or a prose-face edit, not owed here.

scripts/pm/check-skill-line-ratchet.mjs

Holds. One row, one number, moved by the measured delta of the ordered text, with the ruling ids at the row. Tried to break: slack hidden in the raise (none: file +295, ceiling +295, headroom 95 before and after); another row moved in passing (none); the table-row pin for AGENTS.md (768, unchanged, and the hunk adds no table row).

scripts/ci/queue-duration.mjs

S2: closed

listQueueRuns now throws after the paging loop when got.length is under the slice's total_count. Both shapes the last record named refuse: a first page under 100 rows beneath a larger total (the loop never runs, the check throws) and a later page that comes back short (the loop breaks, the check throws). The function's sentence "listed whole or refused" is now true of it. The self-test case is a real pin: page one of 100 and a second page of 40 under a total of 300 must throw naming 140 of 300, and its page-one pattern cannot match per_page=100; the listing battery's floor rose 5 to 6 with it. The earlier split case still passes the new check (150 rows listed against a total of 150 on each half). Tried to break: a slice at the cap edge (a total over 900 splits first, so at most nine full pages under a ten-page bound); a run listed twice across a boundary second (de-duplicated after the check, and the check errs toward refusing). The refusal reaches main() as exit 2 and the workflow reds the patrol, never files. The rest of the file is byte-identical to 74265b5f and its reading there stands.

.github/workflows/queue-duration-budget.yml, .github/workflows/lint.yml, scripts/ci/queue-budget.json

Byte-identical to 74265b5f; judged again on this head and they hold as recorded in 7015520405. On this head the read job finished in 8 minutes of its 20.

Nits N1, N2 and N3 of record 7015520405 stand as accepted deviations; nothing in this delta touches them.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-aun4m7
Reviewed-by: session_01L6bhgWSASohaoSSt6uSFPv

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Tier H approval request · 2026-11-20T17:52Z · @os-zhuang, this PR is ready for your Tier H review on head 9ebfabcd99dd0fc0bbce08c434a1f422d14ca2ff.

  • Contract review at CONTRACT_REVIEW_TIER: delta record 7046651443, PASS, no must-fix or should-fix; it closes S1 and S2 of the earlier record 7015520405 by id. Brief 7044733711.
  • L1-a: ACCEPT 7044829596 on this head.
  • Ruling for the AGENTS.md ceiling raise: 7044162186 (maintainer, 2026-11-20 16:00Z, option A: raise to 1053 lines, the full sentence). The ratchet now counts bytes, so the PR reads the raise as +295 bytes (78106 → 78401); the record asks you to confirm that the line ruling covers the byte reading, and your approval is that confirmation.
  • CI on this head finished with no red.
  • After merge, a workflow_dispatch run on main is owed; its first run opens the speed card.

The seat lands after your approval (ruling C, 2026-09-13).

@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 20, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 20, 2026 22:22
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 903e1b3 Nov 20, 2026
62 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-aun4m7 branch November 20, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl 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.

ci: a weekly merge-queue duration reading against a 22-minute median budget and a 32-minute p90 alarm, filing a speed-up card when over

3 participants