Repository navigation
docs(skills): lookupAutofill copies a currency amount only between fields in the same currency - #37044
Conversation
… currency The objectstack-data field-types rule states the cross-currency rule the platform ships: a declared lookupAutofill pair and the grid's same-named autofill copy move a currency amount only between fields in the same currency; otherwise the target is left as it was, the form says why, and nothing is converted. Paid for in the same file by trimming restated type-name cells. Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract review brief — PR #37044 @
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract reviewServed-tier: Inputs: card #36349 (body and all five comments: triage 7076106190, unlock 7107462804, claim 7138250698, dev reports 7138910104 and 7139209343; the card holds no ruling and no earlier contract record), PR #37044 (body, three-file list, net diff), and the check-runs on the head. Read to judge, not reviewed, on ① Derived judgments
② Semver level
③ Boundary flagsDev flags, from reports 7138910104 and 7139209343:
SQL push-down: the diff holds no code, so no id materialisation and no in-app join. ④ Design judgmentNo must-fix, no should-fix.
Tried to break it: two amounts that both declare no currency are "in the same currency" under the sentence and copy in the code (
No cell loses a hint. No eval case reads these rows beyond case 10, covered under ③.
The security line. No changed line teaches permission, sharing, credential, token or authentication behaviour. Two near misses were checked: the first hunk shows the Nits, left as accepted deviations (the file has one token of headroom, and neither moves the contract):
Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract reviewServed-tier: This is a DELTA record over contract review 7139449788 (PASS at ① Derived judgments
② Semver levelUnchanged. The changeset ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Landing · head
State: L1 ACCEPT 7140195538 on this head; every check-run green or expected skip. Ready and auto-merge in this stroke. On MERGED, |
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
Fixes #36349
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-data/rules/field-types.md, thelookupAutofillparagraph. It ended at the sentence about the grid's same-namedautofillcopy and stated no currency condition. Two sentences are appended there, covering the declared pair and the same-named copy together:This is what the merged code does (
crossCurrencyRefusalandjudgePickWritesinui/packages/fields/src/widgets/lookupAutofill.ts, used by the record form and by the grid'splanLookupAutofill; the spec describe ofFieldSchema.lookupAutofillstates the same rule for both copies).skills/objectstack-data/rules/relationships.md, the "Catalog auto-fill" bullet (the grid's same-named copy), now ends "picking a record fills those cells (acurrencyamount only in the same currency: field-types.md →lookupAutofill)": a pointer to the sentence above instead of a second statement of the rule. It fits that file's headroom (4180 to 4202 of 4203 tokens); nothing was deleted there.field-types.mdsat at its token ceiling (3541 of 3541), so its sentences are paid for in the same file, by deletion and with no ceiling moved:unit_pricefrom a product'slist_price" (the heading already spells the pair shape), and "(single-valuelookup/master_detail)" becomes "(single-value only)" (the table rows directly above name the two types);date,time,datetime,number,file,markdown,html,richtext,boolean,signature,location,avatar,tags,sliderkeep a shorter cell with the same meaning (for example "Date only (no time component)" is now "Date only").Published-skill size, measured at
b01d8f97e9(before) anda141c91fb2(after):rules/field-types.mdlines 267 / 270;rules/field-types.mdtokens 3541 / 3540 (ceiling 3541);rules/relationships.mdtokens 4180 / 4202 (ceiling 4203); wholeskills/tree lines 22996 / 23000; whole bundle tokens 294236 / 294257.A
patchchangeset for@objectstack/skillsis included: the skill text ships in that package.Read first: the appended sentence (the risk is a promise the runtime does not keep); then the trimmed table cells (the risk is a lost hint).
Tests
No code or test changes. No case under
skills/objectstack-data/evals/mentionslookupAutofillor the gridautofillcopy, so no eval asserts the old promise and none was edited. The evals are model-graded fixtures and were not run live here: NOT MEASURED, reason: no local runner.Local gates at a141c91
The gate list was derived with
node scripts/pm/dispatch-gates.mjs --commands(48 families). 43 ran and exited 0, among them:node scripts/check-skills-token-ratchet.mjs: exit 0, "60 authored bundle file(s) within their ceilings"; the rows readfield-types.md 3540 / 3541 (-1)andrelationships.md 4202 / 4203 (-1)pnpm --filter @objectstack/spec run check:skill-served-sections,pnpm check:skill-links,pnpm check:skill-identifier-liveness,pnpm check:skill-compatibility,pnpm check:skill-frame-sync,pnpm check:doc-authoring,pnpm check:nul-bytes,pnpm check:pm-skill-id-lint,pnpm check:role-word: exit 0node scripts/check-empty-changeset.mjs --base origin/main,node scripts/check-changeset-no-major.mjs --base origin/main,node scripts/check-adr-0087-registration.mjs --base origin/main,pnpm check:published-files: exit 0Five exited 3 (PREREQUISITE NOT MET, they read built output and nothing was built for a text-only diff) and are NOT MEASURED locally, left to CI:
check:doc-formula-expressions,check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content.node scripts/pm/overlap-check.mjsat a141c91: "VERDICT clean exit 0" againstorigin/mainand against the other open pull that edits both files.Acceptance notes
overwrite: truepair. The sentence says "left as it was" so that it promises only what the runtime does.planLookupAutofill'swithheldlist, drawn byGridFieldWidget).Verification
node scripts/check-skills-token-ratchet.mjsprintsfield-types.md 3540 / 3541 (-1)andrelationships.md 4202 / 4203 (-1)and ends with a line starting with a check mark.Generated by Claude Code