Repository navigation
fix(scenarios): the run grader reads a written calendar date ("31 Dec") as no figure - #33797
Conversation
…gure The number reader skipped ISO dates only, so an unanswerable decline that offered to list laptops whose depreciation life "ends by 31 Dec" read 31 as a figure no tool output carried and failed. A written date (day and month name in either order, month name and year, a slash date with its year, a Chinese date) is now skipped the same way; an invented count or amount still fails. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nw3MDkRymEzv6FDJs
…ing R4 Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nw3MDkRymEzv6FDJs
…-rl158j Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5nw3MDkRymEzv6FDJs
📓 Docs Drift Check4 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 1e0fade8e0ad991421517a7e78a512775611b783 && git checkout 1e0fade8e0ad991421517a7e78a512775611b783
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b76df9a6980d935c194f778e7eb10aca382aac4c e1d2a7dd840cf137af001ff4a05522d231dee50f && git checkout -B drift-repro b76df9a6980d935c194f778e7eb10aca382aac4c && git merge --no-ff e1d2a7dd840cf137af001ff4a05522d231dee50f
node scripts/docs-audit/affected-docs.mjs --json b76df9a6980d935c194f778e7eb10aca382aac4c |
|
domain:devx#4 · os-project-manager · session_01FEkQ5ooRyyS95kdyC2dPEX 席位核对 · ACCEPT · head
|
Brings #33767 (--effort) and #33797, which also touch packages/qa/scenarios; the one conflict was the score/index.ts import of scenario-run-grade (ReadableRow added beside this branch's guardrail import). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzgrKFY1b57EzMehH9
…LOG line, and an 18-5 page erratum (objectstack-ai#34042) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9EaC9kmPYBDw3v97tMkTaQu)_ Fixes objectstack-ai#33903 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:18.5.0 已发布但发布说明漏记的 11 条变更,补进 14 个包的 CHANGELOG 18.5.0 节(私有包 app-shell 补在它这次发的 18.4.1 节),删掉这 11 个 changeset 文件,并在 18-5 发布页加一节勘误。 - 为什么改:18.5.0 的版本提交 `b914e724` 没有消化这 11 个 changeset,代码已随 18.5.0 发出,但 CHANGELOG 和发布页都没写;其中 objectstack-ai#33637 是破坏性变化(`os audit verify` 遇到被两个 checkpoint 同时列出的行,现在报 `listed_twice` 并失败)。按裁决 6896138728「事后补就可以」只做补记。 - 风险与回滚:纯文字,不发布代码;删掉的 changeset 若留着,下一个版本会把它们当新变化再发一遍。回滚即 revert 本 PR。 - 先看:`content/docs/releases/v18/18-5.mdx` 的勘误节;`packages/plugins/plugin-audit/CHANGELOG.md`(破坏性那条);`packages/spec/CHANGELOG.md`(两条,其中一条进 Minor Changes)。 - 两分钟验证:`git grep -c -E '^- (ac0b9a5|2e1e3b9|fbe349f|2673f59|0feb5ff|1e65a38|e302d32|f8f35db|e0775f7|4b5024d|81371e1): ' -- '*CHANGELOG.md'` 预期 14 个文件共 18 行;`ls .changeset/*.md | wc -l` 比 main 少 11。 - 需要你做的:无,席位落地(Check Changeset 会按规则保持红色,见下方 DELIBERATE CORRECTION)。 ## What changes `packages/*/CHANGELOG.md` and `content/docs/releases/` are release-owned. AGENTS.md (Documentation Guardrails) routes a factual error in a released entry, or on a releases page, to a dedicated docs-only PR, and the maintainer's ruling on this card (comment 6896138728, verbatim: 「没必要,事后补就可以:让发布流程在版本提交之前还有没消化的 changeset 时,拒绝发正式版。」) keeps only the amendment half. This is that PR. Precedent: objectstack-ai#33925. The 18.5.0 version commit `b914e724` (objectstack-ai#33097) consumed 283 of the 294 changesets on its parent. The other 11 landed on `main` after the Version Packages branch point `b76df9a6` and before the merge; each one's adding commit is an ancestor of `b914e724`, and its file is byte-identical on `b914e724` and on this branch's base `bc6b7ffd`. 1. **CHANGELOG entries.** Each changeset's entry is added to the release section `b914e724` wrote for each package it names, in the stock generator's form (`- SHA7: ` + the summary, continuation lines indented two spaces), under the commit that added the changeset, in the `### Minor Changes` or `### Patch Changes` list its bump names, after the last changeset entry and before the `Updated dependencies` lines. No dependents line is invented. 2. **The 11 changeset files are deleted**, so the next version commit does not present them as new. 3. **The 18-5 page** gains `## Erratum — eleven changes 18.5.0 shipped with no CHANGELOG line [#erratum]`: objectstack-ai#33637's FROM → TO and what an operator does, one line for each of the other nine, and a pointer from the release-facts row that said 284 were consumed. objectstack-ai#33725 is already on the page (自动迁移, "Announced, not yet at any door"); it is checked, not repeated. | Changeset | Package | Added to | Commit | 18-5 page | | :--- | :--- | :--- | :--- | :--- | | `31908-p4b2-bounded-checkpoints` | `@objectstack/plugin-audit` | `## 18.5.0` › Patch Changes | `ac0b9a5` (objectstack-ai#33637) | Erratum, breaking: FROM → TO, what to do, rollback note | | `33186-managed-add-people-actions` | `@objectstack/platform-objects` | `## 18.5.0` › Patch Changes | `2e1e3b9` (objectstack-ai#33755) | Erratum, one line | | `33609-related-list-parent-lookup-page` | `@object-ui/console`, `@object-ui/plugin-detail` | `## 18.5.0` › Patch Changes | `fbe349f` (objectstack-ai#33780) | Erratum, one line | | `33649-messaging-preferences-emitting-organization` | `@objectstack/service-messaging` | `## 18.5.0` › Patch Changes | `2673f59` (objectstack-ai#33779) | Erratum, one line | | `33660-ai-model-picker-cost-multiplier` | `@objectstack/spec`, `@object-ui/plugin-chatbot`, `@object-ui/i18n`, `@object-ui/console`; `@object-ui/app-shell` | `## 18.5.0` › Patch Changes; app-shell `## 18.4.1` › Patch Changes | `0feb5ff` (objectstack-ai#33746) | Erratum, one line | | `33689-ai-action-confirmation-elicited` | `@objectstack/spec` | `## 18.5.0` › Minor Changes | `1e65a38` (objectstack-ai#33725) | Already covered (自动迁移 row), not repeated | | `33724-install-relaxes-declared-not-null` | `@objectstack/driver-sql`, `@objectstack/cloud-connection`, `@objectstack/driver-turso` | `## 18.5.0` › Patch Changes | `e302d32` (objectstack-ai#33769) | Erratum, one line | | `33739-scenario-runner-effort` | `@objectstack/scenarios` | `## 18.5.0` › Patch Changes | `f8f35db` (objectstack-ai#33767) | Erratum, one line | | `33753-scenario-dates-follow-run-date` | `@objectstack/scenarios` | `## 18.5.0` › Patch Changes | `e0775f7` (objectstack-ai#33776) | Erratum, one line | | `33754-scenario-grader-written-date` | `@objectstack/scenarios` | `## 18.5.0` › Patch Changes | `4b5024d` (objectstack-ai#33797) | Erratum, one line | | `a2-skills-docs-32678-32825` | `@objectstack/skills` | `## 18.5.0` › Patch Changes | `81371e1` (objectstack-ai#33355) | Erratum, one line | **DELIBERATE CORRECTION.** This PR adds no changeset and deletes eleven (`git diff --name-status` over `.changeset/*.md`: 11 × `D`, 0 × `A`). Each deleted note is already released: its text now stands, unchanged, as the entry named in the table above, in the 18.5.0 tarballs' release section. Under ruling D on objectstack-ai#18375 (the Check Changeset step's route 0) and `.claude/agents/os-dev.md`, `skip-changeset` is not applied to a PR that deletes an existing changeset, so `Check Changeset` stays red by design; it is not a required context. The diff publishes nothing until the next release republishes the tarballs. ## Tests No source changes, so no test suite moves. The CHANGELOG lines are generated, not hand-typed: the summary parse and the stock release-line format were re-implemented in a script and first checked against `b914e724^`: for every changeset `b914e724` consumed among the first 60 (103 package entries), the generated text is found verbatim in that package's CHANGELOG; the only miss is `31908-p4b2-bounded-checkpoints`, the unconsumed one this PR adds. The script asserts, per changeset, one adding commit, an identical blob at the tag and at the base, the release section being the top section of the version `b914e724` gave the package, and the entry not already present. The diff of every CHANGELOG is insertions only. ## Acceptance notes 1. `@object-ui/app-shell` is private and `b914e724` versioned it `18.4.1`, not `18.5.0` (the 18-5 page's release facts say so too), so its entry goes into its `## 18.4.1` section. 2. The 18-5 page still opens with "Release status: 18.4.0 is released, and 18.5.0 is not yet." and its release facts say no 18.5.0 tag or npm version exists. Both are stale since the publish. Outside this card's file surface; left for the seat (noted, not filed). 3. The changeset of objectstack-ai#33649 has no summary line, so its entry opens `- 2673f59: Clause-②: no`, as the stock generator would have written it. ## Verification <details><summary>Premise readings, at base bc6b7ff and the 18.5.0 spec tag = b914e72</summary> - `git ls-tree --name-only b914e72 .changeset/` minus `README.md` and `config.json`: 11 files, the card's list. `b914e724^` holds 294; `b914e724` deletes 283. - For each of the 11: `git rev-parse b914e72:PATH` equals `git rev-parse bc6b7ff:PATH`; the adding commit (`git log --diff-filter=A`, one per file) is an ancestor of `b914e724` (`merge-base --is-ancestor` exit 0, after deepening the shallow clone by 800 commits). The adding commits all fall between `b76df9a6` (the Version Packages branch point the 18-5 page names) and `b914e724`. - Before this PR: `listed_twice`, `ac0b9a5`, `objectstack-ai#33637` each 0 hits on `content/docs/releases/v18/18-5.mdx`. - The erratum's wording is read from the changeset text and `packages/plugins/plugin-audit/src/audit-seal/verifier.ts` (`listed_twice` fault: `checkpoint N: lists row(s) … that another checkpoint already lists`), `content/docs/deployment/cli.mdx` § `os audit verify` (exit 1 when two checkpoints list the same row), and the 18.5.0 entry `f4cafd5` (a late checkpoint leaves out every row a checkpoint stored in between already lists). </details> <details><summary>Gates</summary> Head `f5754612`. Derived with `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (no paths): 99 commands, each run with stdin from `/dev/null` and its exit captured before any pipe; `--ran` reconciliation: 99 derived, 99 run, 0 NOT-MEASURED, 0 UNRUN. - 98 exit 0. Eleven of them first exited 3 (PREREQUISITE NOT MET, no `dist/` in a fresh worktree) and were re-run exit 0 after the builds they name, each under `scripts/pm/os-verify-lock.sh` with VERDICT command-exit 0: the `@objectstack/lint...` closure plus the `check:i18n` extract closure (64/64 tasks), `@objectstack/client` and `client-react` (43/43), then `pnpm build` (119/119). Re-run: `check:doc-formula-expressions`, `check:doc-security-posture`, spec `check:docs`, spec `check:skill-examples`, `check:docs-transcript-drift`, `check:i18n`, `check:dts-closure`, `check:dual-build-cjs-loads`, `check:lean-entry-closure`, `check:sourcemap-no-sources-content`; and `pnpm --dir ui exec vitest run scripts/`, which first failed 22 files only on the missing `@objectstack/spec` `dist/` and then passed (171 files passed, 2 skipped; 5,065 tests passed). - 1 exit 1, by design: `node scripts/check-empty-changeset.mjs --base origin/main` refuses the eleven deletions as edits of existing notes (one `::error` per file). This is the DELIBERATE CORRECTION class declared above; it stays red, and so does `Check Changeset`. - Release-text gates all exit 0 on the amended tree: `check-release-section-coverage` (plain and `--strict`), `check:release-notes`, `check:release-page-status`, `check-affected-docs`, `check:doc-authoring`, `check:doc-anchors`, `check:nul-bytes`, `check-adr-0087-registration --base origin/main`. `origin/main` moved to `159757ab` while the gates ran; the commits since the base `bc6b7ffd` touch none of this PR's paths (they add four other changesets), so no merge was taken. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR <!-- signed: domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z --> Co-authored-by: Claude <noreply@anthropic.com>
Requested by Leehom · project thread
domain:devx#4 · os-project-manager · session_01FEkQ5nw3MDkRymEzv6FDJs
Fixes #33754
Clause-②: no
Metadata-protocol: none
维护者速读
31 Dec、Dec 31, 2026、December 2026、31/12/2026、12月31日),日期里的数字不再当成「数据」。asset_lifecycle的laptop_warranty_expiring(无法回答的问题)里,agent 正确拒答,顺带说「36 个月折旧期到 31 Dec 结束的笔记本可以列给你」;36 有工具输出佐证,但31 Dec里的 31 被当成没有依据的数字,判「stated a figure the data cannot support」,挡住了 gallery 导出。may是动词)、斜杠日期必须带年(3/4是分数)、不挨着月份的数字照读,所以编造的数量或金额(「about 12 laptops」「$4,200 due by 31 Dec」)仍然判失败。回滚即还原本 PR。packages/qa/scenarios/src/score/scenario-run-grade.ts的WRITTEN_DATE(L136)和readingsIn里的跳过(L208)。pnpm --filter @objectstack/scenarios exec vitest run test/score/scenario-run-grade.test.ts test/runner/mid-tier-run-readings.test.ts,预期 109 条全绿。Ask 1: which number failed
Replayed the card's quoted sentences ("The Laptop category gives a 36-month useful life", "… whose 36-month depreciation life ends by 31 Dec") through
numbersIn(the readerwrittenNumbersuses) against an output carrying"useful_life_months": 36, read byjsonNumbersascarriedNumbersdoes:So the
31of "31 Dec" failed;36was carried (36-monthreads 36, and the JSON number reads 36). No year was in the quoted reply. The carried side is unchanged.What changes
packages/qa/scenarios/src/score/scenario-run-grade.ts:WRITTEN_DATE(L136, withMONTHL122 andDAYL124) is a calendar date written out:31 Dec,31st of December 2026,Dec 31, 2026,Dec. 31);December 2026,Sept 2026);31/12/2026,12/31/26,2026/12/31);12月31日,2026年12月,2026年12月31号).readingsIn(L205) blanks it the way it already blanksISO_DATE(L208), so none of its parts is read.numbersInandwrittenNumbersread through it. The docblocks say so.you may 3reads 3), a slash pair with no year (3/4,12/31) is not a date, a number beside no month name is still read, and a month count (36-month,36 months,36个月) is a figure. No small integer is skipped by size.The unanswerable branch itself (L716,
supported = writtenNumbers(...).every(...)) is unchanged. #33763's decline reader is not touched.Tests
test/score/scenario-run-grade.test.ts, newdescribe(L546), onPersonaRunInputwith an unanswerable truth and aquery_records demoasset_asset_categoryoutput carrying"useful_life_months":36:[36, 36]and gradescorrect: true, problems: [](L560);3/4 of them, 12/31, you may 3reads[3, 4, 12, 31, 3];a 36-month life, 36 months, 36个月, 共3台reads[36, 36, 36, 3];Rows 12-15 of 120, about 12 laptopsreads[12, 15, 120, 12];correct: false, problems: ['stated a figure the data cannot support'].test/runner/mid-tier-run-readings.test.ts, newdescribeR5 (L955): the re-grade below.Ablation (head
30089f51,scripts/ablation-replace.mjs, anchor.replace(WRITTEN_DATE, (d) => ' '.repeat(d.length))inreadingsIndeleted, anchor 1 → 0, blob1318c6902e1c→e65a2bd754e3; tests importsrc/):Ablated: 3 failed | 103 passed (106); restored: 106 passed
The negatives stay green under the ablation, as they should: they pin that the skip does not reach a count or an amount.
Ask 3: re-grade (fixture, not the recording)
The 08:3xZ refresh's recording is not in this repository or the project's shared files, so a one-turn recorded-driver fixture replays the turn:
test/runner/fixtures/asset-lifecycle-warranty-unanswerable.recording.json, keyasset_lifecycle/scratch/run/laptop_warranty_expiring/-(no persona scopes the question, so run-ask asks it as the admin).query_records demoasset_asset_category, whose output is the card's four seeded categories, so it carries"useful_life_months": 36as the card says.RecordedDriver.fromFileand grades it withgradeCardAnswer(namespacedScenario(asset_lifecycle), { question, turn }), asorchestrate.tsrun-ask does. It now readscorrect: true, declined: true, problems: [], and was a fail (ablated: the 31 unsupported).--driver recorded:FCLI replay needs every build turn's files and a booted app, which one turn cannot drive. The card says the question failed "in both halves"; the Iterate half's turn is not on the card, so the fixture replays the Run half only.Acceptance notes
12/31) still reads both numbers, because the same shape is a fraction (3/4). class: observation · reach: none (no recorded reply writes one) · carrier: none.readingsInserves the answerable grades and the leak readings too, so a written date's parts are no longer read there either: a date is not a count or an amount in any of them, as for ISO dates today.origin/mainwas merged in (never rebased) ate1d2a7dd. The only conflict was both PRs appending adescribeat the end ofscenario-run-grade.test.ts; both are kept. The gates were rerun on the merged head. A later main commit (fix(scenarios): a recorded replay re-sends each turn's recorded writes before the read-back #33764, the recorded driver's writes) merges cleanly; a trial merge ran the two touched test files green (109) and was aborted, so it is not in this branch.Verification
On head
e1d2a7dd(branchclaude/project-thread-rl158j,origin/mainmerged in at25c1d3c7), each exit code captured before any pipe:pnpm --filter @objectstack/scenarios test: exit 0, Test Files 32 passed (32), Tests 790 passed (790).pnpm --filter @objectstack/scenarios typecheck(tsc --noEmit, which compiles the tests): exit 0.pnpm --filter @objectstack/scenarios build: exit 0.node --stack-size=4000 node_modules/eslint/bin/eslint.js packages/qa/scenarios --no-inline-config: exit 0 (the package has nolintscript).node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack, 62 families): all 62 exit 0,check:dual-build-cjs-loadsincluded.--ran: "62 derived famil(ies) accounted for — 62 run, 0 NOT-MEASURED". The first run, onabf2659cbefore the merge, read 61 exit 0 andcheck:dual-build-cjs-loadsexit 3 (NOT MEASURED).dispatch-gates --tier: no path-derived mandate. 143 changed lines, under the 3000 threshold. No governed surface..changeset/33754-scenario-grader-written-date.md(file name unique to this card; Scenario grader: an honest decline worded "does not record" or "There is no X field" grades as not declining #33735's changeset is a different file).🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5nw3MDkRymEzv6FDJs