You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
formula: add a Chinese capital-amount function (金额大写, e.g. 壹万零伍佰元整) for printed quotes, contracts and invoices #34332
domain:serverDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p1High: required for production / M2
Chinese commercial documents print the total in capital numerals (大写金额) beside the figures. Quotes, contracts, order confirmations and invoices all do this, and a buyer's finance team expects it. For example, 245000.00 is printed as 贰拾肆万伍仟元整, and 10500.5 as 壹万零伍佰元伍角.
The formula stdlib on main has no function for this. The full list is: abs, ceil, coalesce, contains, date, datetime, daysBetween, endsWith, floor, isBlank, isEmpty, isoDate, isoDatetime, joinNonEmpty, label, len, lower, matches, max, min, now, round, startsWith, trim, upper. None of them turns a number into Chinese text.
Why not app-side
Hand-writing it in CEL is long and easy to get wrong:
the zero rules (零 between groups, no doubled 零, none at the end);
the 万 and 亿 groups;
角 and 分 with 整;
negatives and rounding.
Every app that prints a Chinese document would have to copy that logic. It belongs in the stdlib once, with tests.
Ask
Add a formula function, for example rmbUpper(number): string (any name is fine). Requirements:
it follows the usual 人民币大写 rules, including 零 handling across 万 and 亿, 元 / 角 / 分 and 整;
it rounds to 分;
it handles 0 (零元整) and negative values (负…);
it can be used in formula fields, so a print page or record:details can show it.
Consumer
An app project's printed quote (quote_print_page, record:details totals) needs a 「大写金额」 line under the total. The app will not hand-roll this.
Triage: first touch → domain:server · p2 · 2026-11-16T08:08Z
⛔ Not a claim.
Add a Chinese capital-amount formula function (金额大写: 245000.00 → 贰拾肆万伍仟元整). Chinese quotes, contracts and invoices print the total this way beside the figures, and buyers' finance teams expect it. It is a real need for the Chinese customers printing documents (#34228, the downstream CRM quote), so p2. Formula stdlib; if the function list is a published contract, the seat carries the spec half in the same PR.
Ruling: grade p1 · maintainer 「按价值挑五张升 p1」 (the option he chose on the decision card) · recorded 2026-11-16T13:38Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T13:34:26Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, card cmsg_01TenzsRopZj4jMbvjX8uz1XUxdm8VeU5D1w4Lp1c7zvNe, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XWytyBwbs22Nf9pBEDQt9fK.
Thread-read: 6910931110 (the triage first touch, the only comment). Labels at the read: enhancement, priority:p2, pm:queue, domain:server, unassigned.
The question he was asked
His intake rule of 2026-11-16 for the repo:objectstack#1 seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」. A survey of the other open p1 and p2 cards found five p2 cards that a customer or a measured environment has run into, with no open upstream block. Their grade is the only thing that keeps the seat from claiming them. Which of them rise to p1?
#34228, #34332, #34095, #34038 and #33824 are raised to p1 and may be claimed. They are taken after the p1 work already in hand, not ahead of it.
Why this card was one of the five, as told to him: Chinese quotes, contracts and invoices print the total in capital numerals beside the figures. The formula library has no function for it, and writing it in the app is long and easy to get wrong. It pairs with #34228: the two together are what lets a Chinese commercial document be printed and sent.
The p2 on this card is triage's first-touch grade. This is his own later word on the card and sets the grade.
State
This record changes no label. The grade write (priority:p2 to priority:p1) is for the seat that takes the ruling, with this record as its Ruling-ref.
Size was estimated from the card face only and was not measured.
Claim: PM loop round o1 card thread · 2026-11-16T16:41Z
Session: session_01FEkQ5pmEYLVFDcQ1Z1CS8H
Thread session: session_01FEkQ5nHvfaZE5NLUTcWkFZ
Account: os-project-manager
Branch: claude/project-thread-dy398l (the platform pins this card thread to its harness branch, not claude/issue-34332-*)
Worktree: objectstack-issue-34332
Domain: domain:server
Seat: repo:objectstack#1
File surface: packages/formula/src/** (stdlib registration, the advertised catalog in validate.ts, tests), skills/objectstack-formula/SKILL.md, content/docs/data-modeling/formulas.mdx, docs/qa/platform-checklist/areas/api-backend.json (the stdlib item's function count), .changeset/ (stop on breach; explain in the report)
Container & model: M (contract widening), mode:thread, model: default, effort: default
Clause-②: yes (widening)
Metadata-protocol: added
Responsibility: n/a — not a defect card
Thread-read: 6918197614
Premise: holds — on origin/main 9e6fee1 the stdlib registers 30 bare-callable names, the same list the card gives, and none renders a number as Chinese text (git grep for capital numerals under packages/ finds nothing).
Pre-claim lane: packages/formula/** is domain:server (SKILL.md domain table); skills/objectstack-formula/SKILL.md is the formula skill the stdlib catalog sync test pins, carried in the same PR as the order requires; no ui/** or packages/spec/** path.
Pre-claim deps: the card names no Blocked-by: and no "after" card; no open PR touches packages/formula/src/stdlib.ts or validate.ts (open-PR search on formula, read at this claim); sibling #34228's PR #34422 touches only ui/** print files, disjoint.
Prior rulings read: rmbupper,capital,大写,stdlib,cel_stdlib_functions → 0 hits; none; thread: 1 ruling(s) (6918041400); repo: objectstack-ai/objectstack
Ruling-ref: 6918041400
Serial constraints cleared: none
repo:objectstack#1 · os-project-manager · session_01FEkQ5nHvfaZE5NLUTcWkFZ
os-dev-report
{
"issue": 34332,
"status": "done",
"branch": "claude/project-thread-dy398l",
"pr": "#34433",
"session": "session_01FEkQ5nHvfaZE5NLUTcWkFZ",
"premise_still_valid": true,
"summary": "Added the CEL stdlib function rmbUpper(dyn): string (packages/formula/src/rmb-upper.ts, registered in registerBoundStdLib, advertised in CEL_STDLIB_FUNCTIONS): an amount as Chinese capital numerals, read as the exact decimal it spells and rounded once to fen half away from zero with the home-amount arithmetic; zero runs, wan/yi groups, jiao/fen/zheng per the usual rules, 0 is 零元整, negatives prefixed 负, null reads empty text, non-numbers and 10^16 yuan or more throw. Docs: formula skill Numbers row (token budget paid by deleting a platform-contributor sentence), formulas.mdx row plus cookbook entry, platform checklist stdlib item revision 8 (31 functions). The harness pins this card thread to claude/project-thread-dy398l, named in the claim.",
"tests": "head 4fffca7: pnpm --filter @objectstack/formula test && typecheck under os-verify-lock: Test Files 68 passed (68), Tests 1822 passed (1822), VERDICT command-exit 0. New file stdlib-rmb-upper.test.ts (card amounts, 28 place/group rows, 10 jiao/fen rows, rounding on the exact decimal, negatives, literals, decimal text, record arithmetic, null, refusals with a control, authoring: validateExpression no error/warning and inferExpressionType text). Ablation via scripts/ablation-replace.mjs on the wan-group zero rule (anchor 1 to 0, blob 22257fca to 93e3b5cf): 10 tests red; restored, blob equals HEAD's, git diff HEAD empty. Source-resolved (relative import), no dist involved.",
"gates": "base 9e6fee1, head 4fffca7. dispatch-gates --commands derived 107, all 107 run (--ran: 107 derived, 107 run, 0 unrun); 104 exit 0. check-plugin-teardown-shape --self-test exit 3 on the shallow clone, exit 0 (48 cases) after fetching its pinned fixture commit. check:dual-build-cjs-loads NOT MEASURED, reason: exit 3 PREREQUISITE NOT MET, needs every package dist (only the lint and client-react closures built). check:platform-checklist exit 1 on approvals.approver-resolution-matrix VARIANTS STALE (ApproverType 11 members, item authored against 10): identical exit 1 on origin/main 9e6fee1 in the untouched shared checkout, ApproverType last changed in 27c0b20 (#34300) — a main-red, not this diff. check-platform-checklist --changed-from origin/main OK. CI check-runs: in_progress at report time (PR just opened).",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "3 — reads only: issue_read get, issue_read get_comments, pull_request_read get_files (PR 34422); no write tool",
"api_writes": "3 — relay label-write stroke on #34332 (claim comment 6922730614, labels add pm:dispatched / remove pm:queue, assign os-project-manager); relay pr_create (PR 34433); post-stamped comment 6923627496 on PR 34433; plus this report comment",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: CI required gate Lint & Repo Gates runs pnpm check:platform-checklist, which exits 1 on origin/main 9e6fee1 · evidence: docs/qa/platform-checklist/areas/approvals.json item approvals.approver-resolution-matrix VARIANTS STALE, ApproverType in packages/spec/src/automation/approval.zod.ts has 11 members (platform_admin added in 27c0b20, #34300) and the item's variants say 10 · dedupe words: approver-resolution-matrix, VARIANTS STALE, platform_admin, ApproverType 11",
"carrier: none · noted, not filed: the session-context PR-attribution rule asks the creator to assign os-project-manager and request its review after pr_create; the dispatch order forbids reviewer requests and assignees from the dev, so neither was done (the seat owns hand-over)"
]
}
domain:serverDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server· p2 · 2026-11-16T08:08Z⛔ Not a claim.
Add a Chinese capital-amount formula function (金额大写:
245000.00→ 贰拾肆万伍仟元整). Chinese quotes, contracts and invoices print the total this way beside the figures, and buyers' finance teams expect it. It is a real need for the Chinese customers printing documents (#34228, the downstream CRM quote), so p2. Formula stdlib; if the function list is a published contract, the seat carries the spec half in the same PR.objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5p5codnUGsdGxBfaL9
Ruling: grade p1 · maintainer 「按价值挑五张升 p1」 (the option he chose on the decision card) · recorded 2026-11-16T13:38Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T13:34:26Z. Decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, cardcmsg_01TenzsRopZj4jMbvjX8uz1XUxdm8VeU5D1w4Lp1c7zvNe, choice recordcmsg_01TenzsRopZj4jMbvjX8uz1XWytyBwbs22Nf9pBEDQt9fK.Thread-read: 6910931110 (the triage first touch, the only comment). Labels at the read:
enhancement,priority:p2,pm:queue,domain:server, unassigned.The question he was asked
His intake rule of 2026-11-16 for the
repo:objectstack#1seat is 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」. A survey of the other open p1 and p2 cards found five p2 cards that a customer or a measured environment has run into, with no open upstream block. Their grade is the only thing that keeps the seat from claiming them. Which of them rise to p1?The three options on the card, as he read them:
The ruling
#34228, #34332, #34095, #34038 and #33824 are raised to p1 and may be claimed. They are taken after the p1 work already in hand, not ahead of it.
Why this card was one of the five, as told to him: Chinese quotes, contracts and invoices print the total in capital numerals beside the figures. The formula library has no function for it, and writing it in the app is long and easy to get wrong. It pairs with #34228: the two together are what lets a Chinese commercial document be printed and sent.
The p2 on this card is triage's first-touch grade. This is his own later word on the card and sets the grade.
State
priority:p2topriority:p1) is for the seat that takes the ruling, with this record as its Ruling-ref./mnt/project-files/pm-orders/objectstack/value-survey-2026-11-16.md.Notify: rulingto therepo:objectstack#1mailbox, PR pm:mailbox — repo:objectstack#1 · os-project-manager #34367, and to the triage mailbox, PR pm:mailbox — triage#1 · hotlong #32588.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: regrade p2 → p1 (maintainer) · 2026-11-16T13:45Z
⛔ Not a claim.
The maintainer chose 「按价值挑五张升 p1」 on the grading decision card (ruling record 6918041400). Lane and queue state are unchanged.
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nHvfaZE5NLUTcWkFZ
Claim: PM loop round o1 card thread · 2026-11-16T16:41Z
Session:
session_01FEkQ5pmEYLVFDcQ1Z1CS8HThread session:
session_01FEkQ5nHvfaZE5NLUTcWkFZAccount:
os-project-managerBranch:
claude/project-thread-dy398l(the platform pins this card thread to its harness branch, notclaude/issue-34332-*)Worktree:
objectstack-issue-34332Domain:
domain:serverSeat:
repo:objectstack#1File surface:
packages/formula/src/**(stdlib registration, the advertised catalog invalidate.ts, tests),skills/objectstack-formula/SKILL.md,content/docs/data-modeling/formulas.mdx,docs/qa/platform-checklist/areas/api-backend.json(the stdlib item's function count),.changeset/(stop on breach; explain in the report)Container & model: M (contract widening), mode:thread, model: default, effort: default
Clause-②: yes (widening)
Metadata-protocol: added
Responsibility: n/a — not a defect card
Thread-read: 6918197614
Premise: holds — on origin/main 9e6fee1 the stdlib registers 30 bare-callable names, the same list the card gives, and none renders a number as Chinese text (
git grepfor capital numerals underpackages/finds nothing).Pre-claim lane:
packages/formula/**isdomain:server(SKILL.md domain table);skills/objectstack-formula/SKILL.mdis the formula skill the stdlib catalog sync test pins, carried in the same PR as the order requires; noui/**orpackages/spec/**path.Pre-claim deps: the card names no
Blocked-by:and no "after" card; no open PR touchespackages/formula/src/stdlib.tsorvalidate.ts(open-PR search onformula, read at this claim); sibling #34228's PR #34422 touches onlyui/**print files, disjoint.Prior rulings read: rmbupper,capital,大写,stdlib,cel_stdlib_functions → 0 hits; none; thread: 1 ruling(s) (6918041400); repo: objectstack-ai/objectstack
Ruling-ref: 6918041400
Serial constraints cleared: none
objectstack-fleet commentedon Nov 16, 2026
repo:objectstack#1 · os-project-manager · session_01FEkQ5nHvfaZE5NLUTcWkFZ
os-dev-report
{
"issue": 34332,
"status": "done",
"branch": "claude/project-thread-dy398l",
"pr": "#34433",
"session": "session_01FEkQ5nHvfaZE5NLUTcWkFZ",
"premise_still_valid": true,
"summary": "Added the CEL stdlib function rmbUpper(dyn): string (packages/formula/src/rmb-upper.ts, registered in registerBoundStdLib, advertised in CEL_STDLIB_FUNCTIONS): an amount as Chinese capital numerals, read as the exact decimal it spells and rounded once to fen half away from zero with the home-amount arithmetic; zero runs, wan/yi groups, jiao/fen/zheng per the usual rules, 0 is 零元整, negatives prefixed 负, null reads empty text, non-numbers and 10^16 yuan or more throw. Docs: formula skill Numbers row (token budget paid by deleting a platform-contributor sentence), formulas.mdx row plus cookbook entry, platform checklist stdlib item revision 8 (31 functions). The harness pins this card thread to claude/project-thread-dy398l, named in the claim.",
"tests": "head 4fffca7: pnpm --filter @objectstack/formula test && typecheck under os-verify-lock: Test Files 68 passed (68), Tests 1822 passed (1822), VERDICT command-exit 0. New file stdlib-rmb-upper.test.ts (card amounts, 28 place/group rows, 10 jiao/fen rows, rounding on the exact decimal, negatives, literals, decimal text, record arithmetic, null, refusals with a control, authoring: validateExpression no error/warning and inferExpressionType text). Ablation via scripts/ablation-replace.mjs on the wan-group zero rule (anchor 1 to 0, blob 22257fca to 93e3b5cf): 10 tests red; restored, blob equals HEAD's, git diff HEAD empty. Source-resolved (relative import), no dist involved.",
"gates": "base 9e6fee1, head 4fffca7. dispatch-gates --commands derived 107, all 107 run (--ran: 107 derived, 107 run, 0 unrun); 104 exit 0. check-plugin-teardown-shape --self-test exit 3 on the shallow clone, exit 0 (48 cases) after fetching its pinned fixture commit. check:dual-build-cjs-loads NOT MEASURED, reason: exit 3 PREREQUISITE NOT MET, needs every package dist (only the lint and client-react closures built). check:platform-checklist exit 1 on approvals.approver-resolution-matrix VARIANTS STALE (ApproverType 11 members, item authored against 10): identical exit 1 on origin/main 9e6fee1 in the untouched shared checkout, ApproverType last changed in 27c0b20 (#34300) — a main-red, not this diff. check-platform-checklist --changed-from origin/main OK. CI check-runs: in_progress at report time (PR just opened).",
"dogfood_battery": "n/a — no
!in the PR title and no (narrowing) arm","mcp_calls": "3 — reads only: issue_read get, issue_read get_comments, pull_request_read get_files (PR 34422); no write tool",
"api_writes": "3 — relay label-write stroke on #34332 (claim comment 6922730614, labels add pm:dispatched / remove pm:queue, assign os-project-manager); relay pr_create (PR 34433); post-stamped comment 6923627496 on PR 34433; plus this report comment",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: CI required gate Lint & Repo Gates runs pnpm check:platform-checklist, which exits 1 on origin/main 9e6fee1 · evidence: docs/qa/platform-checklist/areas/approvals.json item approvals.approver-resolution-matrix VARIANTS STALE, ApproverType in packages/spec/src/automation/approval.zod.ts has 11 members (platform_admin added in 27c0b20, #34300) and the item's variants say 10 · dedupe words: approver-resolution-matrix, VARIANTS STALE, platform_admin, ApproverType 11",
"carrier: none · noted, not filed: the session-context PR-attribution rule asks the creator to assign os-project-manager and request its review after pr_create; the dispatch order forbids reviewer requests and assignees from the dev, so neither was done (the seat owns hand-over)"
]
}