Skip to content

docs(changelog): correct which optional spellings of an amount the formula currency-verdict entry says moved - #38157

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-38110-changelog-optional-spellings
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-38110-changelog-optional-spellings

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #38110

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:读 19.0.0-next.1 发版说明的作者与智能体,看到的「哪些写法从数字变成未定」那一句改对了;产品行为不变,用户无感。
  • 为什么做:公式货币判定那条已发布说明多说了一种写法变了,实测它前后都没变;这是公式币种判定工作的收尾,替读发版说明做升级判断的人纠错。
  • 出错会怎样:只动说明文字,不动代码;若措辞有误,直接撤回本次合并即可恢复原句。
  • 要你做什么:无。

What changes

One sentence of the released 19.0.0-next.1 entry for the formula currency verdict, amended in place in all four places it lives (byte-identical in each, the CHANGELOG copies keep their two-space list indent):

  • packages/formula/CHANGELOG.md
  • packages/spec/CHANGELOG.md
  • ui/packages/app-shell/CHANGELOG.md
  • .changeset/pre/35631-formula-currency-verdict.md (the consumed pre-mode source the three are compiled from)

The phrase is replaced by the card's proposed text verbatim. To keep the sentence grammatical, the replacement is moved to the end of the list (after "a name the field map does not declare"), because it ends in a semicolon clause; nothing else in the sentence changes.

Before:

The same holds for 100 / record.amount, record.amount % 3, record.amount * 1.0 + record.fee_eur * 1.0 (two currencies), double(record.amount) * double(record.tax), an amount whose currencyConfig does not parse, a hop through a reference (record.account.balance * 0.9), a formula operand that declares no returnType (record.subtotal * 0.2), the indexed and optional spellings of an amount (record['amount'] * 0.1), and a name the field map does not declare (record.unknown_field * 2).

After:

The same holds for 100 / record.amount, record.amount % 3, record.amount * 1.0 + record.fee_eur * 1.0 (two currencies), double(record.amount) * double(record.tax), an amount whose currencyConfig does not parse, a hop through a reference (record.account.balance * 0.9), a formula operand that declares no returnType (record.subtotal * 0.2), a name the field map does not declare (record.unknown_field * 2), the indexed spelling of an amount (record['amount'] * 0.1) and the optional spellings read through orValue (record.?amount.orValue(0) * 0.1); a bare optional (record.?amount * 0.1) never typed as a number and answered {} before and after.

Which correction path, and why

AGENTS.md, Documentation Guardrails, row packages/*/CHANGELOG.md: a factual error in a released entry is amended in that entry, in a dedicated docs-only PR — never an erratum in a later entry (so this PR adds no changeset) and never a rider on code (this PR changes only these four lines). content/docs/releases/ is not touched.

DELIBERATE CORRECTION (check-empty-changeset, ruling D on #17712): this PR modifies one changeset it did not add, .changeset/pre/35631-formula-currency-verdict.md, line 21 — the sentence quoted above, corrected to the After text. It is not a collision; restoring it from the base would put the false sentence back. The foreign-changeset refusal and Require a changeset are therefore red by design, and per the rule the PR carries no skip-changeset label (that label would skip the very job whose refusal puts this correction in front of the dispatching seat's record). Confirmation is the seat's own record (pm-dispatch landing-operations), not a maintainer wait.

Tests

No code changes. The claim was measured on origin/main 0e36120 before writing it:

MEASURE "record.?amount * 0.1" old= {} new= {}
MEASURE "record[?'amount'] * 0.1" old= {} new= {}
MEASURE "record.?amount.orValue(0) * 0.1" old= {"returnType":"number"} new= {}
MEASURE "record[?'amount'].orValue(0) * 0.1" old= {"returnType":"number"} new= {}
MEASURE "record['amount'] * 0.1" old= {"returnType":"number"} new= {}
os-verify-lock: VERDICT command-exit 0

So the bare optionals never moved; the indexed and orValue spellings did.

Acceptance notes

  • The four copies are byte-identical: the added line of each file's diff, indent stripped, hashes to the same sha256 (06a32456…).
  • skip-changeset is deliberately absent; the changeset job's red is the designed DELIBERATE CORRECTION red, not a missing changeset.

Verification

Read first: the one-line hunk in .changeset/pre/35631-formula-currency-verdict.md (the source the release tooling compiles from); the other three are the same line.

Two-minute check: git grep -nF "a bare optional (\record.?amount * 0.1`) never typed" origin/claude/issue-38110-changelog-optional-spellings` — expect exactly four hits, one per file above, and zero hits for "the indexed and optional spellings of an amount".

Local gates, at head 7f9570d, derived by dispatch-gates.mjs --commands (68 families): 64 exit 0; check-empty-changeset --base origin/main exit 1 (the DELIBERATE CORRECTION refusal above, by design); check:dual-build-cjs-loads and check:lean-entry-closure exit 3 NOT MEASURED (need dist/ of unrelated packages); pnpm --dir ui exec vitest run scripts/ NOT MEASURED (local 500 s timeout; CI-owned). --ran reconciliation: 68 derived, 68 run, 0 UNRUN. check-nul-bytes OK; overlap-check VERDICT clean.


Generated by Claude Code

…rmula currency-verdict entry says moved

The released 19.0.0-next.1 entry said the indexed and optional spellings of
an amount moved from number to {}. A bare optional never typed as a number
and answered {} before and after; the optional spellings that moved read
through orValue. Amended in place in the three CHANGELOGs and the consumed
pre changeset.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcSAaBEfQpU2yJexSJ8
@github-actions github-actions Bot added size/xs documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

⚠️ 2 changed file(s) yielded no anchor (packages/formula/CHANGELOG.md, packages/spec/CHANGELOG.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files. Nothing else in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 2 changed package(s)).

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/formula/CHANGELOG.md, packages/spec/CHANGELOG.md) — pages documenting those are invisible to this run
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 178 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 581ae76a23c6b3ba8e2b69e7d8a920838bc51194 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

L1: ACCEPT · head 7f9570d619354f3161cf0af7d98d9d3bcfe313a3 · 2026-11-28T05:47Z · card #38110

席位核对

  1. Shape — draft on main, first line Fixes #38110 only, Clause-②: no · Metadata-protocol: none, +4/−4 over four files, no changeset added and no skip-changeset (the correction path). l1-face.mjs flags changeset and all-checks for exactly that path; both are read below.
  2. Premise measured — the dev ran the pre-Studio formula inspector: a kept currency return type goes stale when an edit stops computing money #35631 producer (401eb4468^) and main on the test field map: record.?amount * 0.1 and record[?'amount'] * 0.1 answer {} on both; record.?amount.orValue(0) * 0.1, record[?'amount'].orValue(0) * 0.1 and record['amount'] * 0.1 moved number → {}. On main the orValue spellings sit in UNPROVEN_OVER_MONEY (formula-return.test.ts:195-209).
  3. Gates at this head — 58 success · 10 expected skip · 1 failure (Check Changeset, by design, item 4). Lint & Repo Gates and TypeScript Type Check success. NOT governed (+4/−4). landing-k.mjs: K = 13.
  4. DELIBERATE CORRECTION — the confirmation the red check asks for. This PR corrects somebody else's released release note; it adds no changeset. The note: the Studio formula inspector: a kept currency return type goes stale when an edit stops computing money #35631 entry, .changeset/pre/35631-formula-currency-verdict.md:21, released into the 19.0.0-next.1 sections of packages/formula/CHANGELOG.md, packages/spec/CHANGELOG.md and ui/packages/app-shell/CHANGELOG.md. The one changed clause, identical in all four (the added line hashes alike, 06a32456cc1a):
    • Before: "(record.subtotal * 0.2), the indexed and optional spellings of an amount (record['amount'] * 0.1), and a name the field map does not declare (record.unknown_field * 2)."
    • After: "(record.subtotal * 0.2), a name the field map does not declare (record.unknown_field * 2), the indexed spelling of an amount (record['amount'] * 0.1) and the optional spellings read through orValue (record.?amount.orValue(0) * 0.1); a bare optional (record.?amount * 0.1) never typed as a number and answered {} before and after."
      The list order moved only so the clause ending in a semicolon closes it. True to the measurement in item 2. Per landing-operations.md, a diff that changes only release text takes this seat confirmation in place of a second same-head L2.
      Red-by-design conditions (SKILL.md 〈路径分叉〉), all three hold: (a) the gate's own source states it — Check Changeset's ##[error]: "if its only .changeset rows are CHANGED, not added, this PR corrects somebody else's pending release note -- do NOT apply 'skip-changeset'; write the confirmation on the PR … and leave this check red ([finding] the skip-changeset label suppresses the DELIBERATE-CORRECTION refusal whose own text says 「no label and no diff shape makes that safe」 — declared contract against enforced behaviour #18375)"; (b) it does not run on merge_group — .github/workflows/pr-automation.yml triggers on pull_request only; (c) this comment names the gate and the cause.
  5. Accepted deviations — the commit trailer is the AGENTS.md model-free pair (the pre-push hook refused the other); no label set (the path takes none).
  6. Out of scope — none. Skills-docs: not owed. L2: not owed (prose face only).

Landing — non-governed, by-design red on a pull_request-only check: the seat lands it through the ordinary queue.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

Landing · 2026-11-28T05:48Z · head 7f9570d6

probe reading
check-governed-merges.mjs --pr 38157 NOT governed · +4/−4 ≤ 3000
landing-k.mjs --pr 38157 K = 13 < 15
red check Check Changeset — DELIBERATE CORRECTION, by design, pull_request only (confirmation 7234890799)

State: ready for review + auto-merge (L1 ACCEPT 7234890799).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 28, 2026 05:48
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46113783549 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (3/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/approval-read-over-mcp.dogfood.test.ts > an approver's agent lists the approvals waiting on them over MCP (#32442, read half) > ⭐ end to end: the appr
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: {
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 40 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

Re-queue · 2026-11-28T07:00Z · head unchanged. The ejection's signature is test/approval-read-over-mcp.dogfood.test.ts (anchor #38190), an inherited row: the deterministic break of PR #38162 (triage on #38187: MCP tool calls now answer VALIDATION_ERROR), which this PR's diff does not touch. #38162 left the queue at 06:01Z (its own pr_dequeue, cause own-failure), so the stack that carried it is gone. Landing rule: a known signature with its root out of the queue ⇒ re-queue as is.

Merged via the queue into main with commit 1208460 Nov 28, 2026
69 of 70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-38110-changelog-optional-spellings branch November 28, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xs tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants