Skip to content

docs(adr): record ruling 6670707546 under ADR-0144 Open item 13 - #30787

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-30676-adr-0144-item-13-note
Nov 6, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-30676-adr-0144-item-13-note

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #30676

Clause-②: no
Metadata-protocol: none

Claim: 6675374172 · Branch: claude/issue-30676-adr-0144-item-13-note · Ruling-ref: 6670707546 · Seat: domain:server#1 · Session: session_016WV4cytLmJxfAmgPVjUbbW

维护者速读

What changes

One dated *Note (2026-11-06):* appended to ADR-0144 Open item 13, in the record's existing note form:

Not touched: skills/objectstack-data/rules/field-types.md (the card's third task is #30740's, per unblock note 6675290331); the record's Status, Provenance and Evidence lines (its earlier Open-item notes amend none of them either); docs/adr/README.md (the index gate reports it current).

Tests

None owed: a docs/adr/**-only diff, no package built or tested for its own sake. Gates below.

Acceptance notes

  • The note's claims about the merged behaviour were read on origin/main at 1371b9d8 (the branch point), which contains e2bcd5c1: resolveScope refuses the option pair and a blank organization (VALIDATION_ERROR) and an organization on an object with no organization column (INVALID_FIELD); organizationsRefusal is the multi-organization refusal carrying per-organization counts; walkCodelessRows runs under { isSystem: true, tenantId } and filters on organization_id; the oclif flags declare exclusive. The note does not restate the INVALID_FIELD code, keeping to the ruling's own text.
  • The objectql continuation anchors sit on one line with their path anchor, as the symbol-anchor grammar requires; that line is long, as the record's other anchor lines already are (its longest is 470 characters, and no line-length lint governs docs/adr/**).
  • skip-changeset rides the create: docs/adr/** publishes nothing from any released package.
  • Out of scope, noted and not filed: nothing found.

Verification

Pre-push: check:commit-card-trailers printed "1 commit message(s) on this push carry no card relation and no model identifier in the trailer pair."

Derived gates (dispatch-gates --commands, reconciled with --ran) at head ff701a6

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 21 families at ff701a6e (1 path, +25/-0, under the human-merge threshold). Each ran as a plain command from the worktree with its exit code captured before any pipe into ran.list, and --ran reconciled the record:

Run reconciliation — 21 derived, 20 run, 1 NOT-MEASURED, 0 UNRUN.
✓ dispatch-gates --ran: 21 derived famil(ies) accounted for — 20 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).
  • 20 families exit 0, among them check:adr-anchors, check:adr-index ("docs/adr/README.md is current"), check:adr-symbol-anchors ("3157 anchors across 150 records resolve", the note's six among them), check:adr-links (991 destinations resolve), check:nul-bytes, check:doc-authoring, check:pm-governed-merges, check:pm-prior-rulings, check:closing-keyword-parity.
  • NOT MEASURED: pnpm --filter @objectstack/lint run check:doc-formula-expressions, exit 3 PREREQUISITE NOT MET: @objectstack/formula and @objectstack/lint are not built in this worktree. Their closure is @objectstack/spec, sdui-parser, formula and lint, and this session's worktree guard refuses the bash scripts/pm/os-verify-lock.sh invocation, so that build was not taken unlocked on the shared container. The lint workflow runs the family on the PR; the seat reads its check-run. The diff is one docs/adr/** file carrying no formula expression.
  • Eight families first exited 3 for a missing node_modules and were rerun green after pnpm install; the recorded reading is the rerun.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (packages/spec untouched.)
  • 2. Every name I added uses the casing for its kind. (No names added.)
  • 3. No formatter ran.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. Publishes nothing, so skip-changeset; both declaration lines are filled in above.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English; the 维护者速读 block is the required Chinese section.

Generated by Claude Code

A dated note on Open item 13: letter C (A now, B as its own card), the
tree evidence A left in PR #30737 by file and symbol, what was not chosen
and why, and the operations-run backfill as the interim until the REST
door lands. The item stays open on its B half.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cytLmJxfAmgPVjUbbW
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 6, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 6, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#1 · os-elon-musk · session_016WV4cytLmJxfAmgPVjUbbW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ff701a6e513296512f9d602beb5e9b9dded57370
Local-runs: none
Scope: docs/adr/0144-multi-currency-record-currency-dated-rates-write-time-home-projection.md + packages/objectql/src/record-currency-backfill.ts, packages/cli/src/commands/migrate/record-currency-codes.ts, packages/objectql/src/home-amount-recompute.ts, packages/cli/src/commands/migrate/recompute-home-amounts.ts, packages/rest/src/meta-collection-routes.ts, docs/adr/0134-env-side-scim-provisioning.md (the cited code and records, read on origin/main at 561d532c, not reviewed)

Governing text: card #30676 body and comments (unblock note 6675290331 narrows it to the ADR note; the skills/** line is #30740's), claim 6675374172, ruling 6670707546 on #8345 and the seat sign-off beside it (6670841501), dev report 6675653199, the PR body, and PR #30737's merged tree (e2bcd5c1, an ancestor of both the branch point 1371b9d8 and today's main). Read-only shape held: git diff 561d532c4...ff701a6e (one file, +25/-0, one hunk, no merge of main), the cited files via git show, the card and ruling through the REST API, the head's check-runs through the API. PR user.login is objectstack-fleet[bot].

① Derived judgments

  1. The note records the ruling and nothing beyond it. Letter C, A now and B as its own card; A's five tree facts; B's shape in one sentence; the four not-chosen shapes with their reasons; the item-5 interim; the item left open on its B half. Each sentence was matched to a sentence of 6670707546 or to the merged code. What the ruling leaves to the B card is left there: no gate is named (the ruling recommends setup.write and names manage_metadata as the alternative; rest + sdk: tenant-admin door for the record-currency backfill — a REST twin of os migrate record-currency-codes, scoped to the caller's organization (multi-currency, epic #8345, ruling C item B) #30675's body carries both, and the note names neither), no SDK method, no route-ledger row, no 409 remedy text, no Setup button. Nothing is adjudicated that the ruling did not. Right.
  2. Not chosen, one line each, matches the ruling's "Not chosen" paragraph. A alone / cloud tenant reads a remedy it cannot run; B alone / self-hosted multi-organization CLI still writes one code everywhere; D (operations forever) / contrary to the _migrate-stored rationale and ADR-0134 D2 (read: "no shape in which a cloud-managed deployment and a self-hosted one differ on this"); deriving the code from localization.currency / D8 rule 4, a dynamic tenant currency has no history. Same four, same reasons, no fifth. Right.
  3. Every anchor resolves on main to what the note claims, and the three cited files are unchanged since e2bcd5c1. record-currency-backfill.ts#backfillRecordCurrencyCodes: resolveScope then, with neither scope option, a read-only walkCodelessRows, more than one named organization among them throws organizationsRefusal, else the apply walk. #resolveScope: the option pair and a blank id throw VALIDATION_ERROR with field: 'organizationId'; an object storing no organization_id throws before any read (the note keeps the ruling's words and does not restate that code, as the PR body says). #organizationsRefusal: VALIDATION_ERROR, status and httpStatus 400, field: 'organizationId', the message listing each organization's codeless count and the error carrying organizations. #walkCodelessRows: { ...SYSTEM_CTX, tenantId: organizationId } on the find and on every engine.update, where: { organization_id } on a scoped walk, counts per organization in report.organizations. record-currency-codes.ts#MigrateRecordCurrencyCodes: org and all-organizations each declare exclusive of the other; the catch prints each organization's count and the remedy naming both flags. home-amount-recompute.ts#recomputeHomeAmounts: optional organizationId, the scoped context and filter, and nothing refuses its absence (its docblock: "nothing here writes a value the caller chose, so there is nothing to refuse"); the CLI's recompute-home-amounts.ts hands --org through as organizationId. All six claims hold.
  4. "More than one organization among the rows" is the tree, not a new ruling. The ruling says "a database holding more than one organization"; PR feat(objectql, cli)!: run the record-currency code backfill one organization at a time #30737 reads it off the object's own rows (its acceptance note) and the note says what landed, naming the PR. Recording the merged reading of a ruled sentence is the ADR's job here, and the ruling's own single-organization clause is unchanged by it. Right.
  5. The interim is an interim. It is headed "Interim, not the answer", bounded "until rest + sdk: tenant-admin door for the record-currency backfill — a REST twin of os migrate record-currency-codes, scoped to the caller's organization (multi-currency, epic #8345, ruling C item B) #30675 lands", and the closing sentence keeps the item open on its B half. That is the ruling's item 5 verbatim in substance and the card's second task. Right.
  6. Dates. The ruling comment was created 2026-11-05 (API created_at), the note cites it so; the note is dated 2026-11-06, the day of the commit; e2bcd5c1 is PR feat(objectql, cli)!: run the record-currency code backfill one organization at a time #30737's merge commit and card cli + objectql: record-currency backfill scoped per organization — --org, refuse multi-org runs without it, --all-organizations explicit; recompute takes the same --org (multi-currency, epic #8345, ruling C item A) #30674 is its card. Right.
  7. Voice and form. The note sits under item 13 after the 2026-10-30 note, as the record's other items stack theirs; it opens *Note (date):*, links the ruling as [\id`](url) on [Epic] multi-currency (shape C′): record currency, dated exchange rates, write-time home-currency projection — 17 children, R1/R2/R3 release pairing (ruling 6465431966) #8345like the 2026-10-30 note and D9's, names the landing PR with its short sha like every 2026-11-04 note, and anchors symbolspath#symbolwith backticked#continuationon the same line, the form the record already uses (item 3's#divideToPlaces, #divideRoundHalfAwayFromZero, #toScaledDecimal`). Bold inside a note has D9's precedent. No Status, Provenance or Evidence line is touched; no decision is reversed (Prime Directive [WIP] Add Chinese version of the documentation #13); the item carries the ruling's id so the decision is findable. Matches.

② Semver level

Clause-②: no and Metadata-protocol: none on the PR body, skip-changeset on the PR: a docs/adr/**-only diff publishes nothing from any released package, so no changeset is owed and no consumer-facing surface moves. Check Changeset and the Governed Surface Queue Guard both concluded success on this head. Right.

③ Boundary flags

open_questions: []. The dev's four deviations are all about the worktree and the local gate run (harness-pinned worktree, the verify-lock wrapper refused, one command split, node_modules installed), none about the diff; the one family NOT MEASURED locally (check:doc-formula-expressions) runs in the Lint workflow on this head. skills/** untouched, as the unblock note requires. The PR body's 需要您做的 line and the card both say Tier H approval by os-zhuang or hotlong follows the seat's ACCEPT. Author note: PR user.login is objectstack-fleet[bot]; no outside author.

④ Design judgment

  1. The ADR against its first consumer. The note's first consumer is the B card's dev and the maintainer reading item 13 to learn what the backfill does today and what is still owed: the note gives both, cites the code a REST door must reuse (backfillRecordCurrencyCodes, "calling the same engine function"), and keeps the door's open details (gate, SDK, ledger row) on rest + sdk: tenant-admin door for the record-currency backfill — a REST twin of os migrate record-currency-codes, scoped to the caller's organization (multi-currency, epic #8345, ruling C item B) #30675, so nothing here pre-decides what that card's review will judge. Holds.
  2. Against its execution plan. The ruling's execution paragraph puts the ADR record in the Tier H close-out card and the skills/** line beside it; the unblock note moved that line to skills: objectstack-data field-types should name --org / --all-organizations on the record-currency backfill hint (PR #30737) #30740, and the diff follows it: no second PR collides on field-types.md. The item stays open, so the B card's landing owes one more dated note and nothing else. Holds.
  3. Tried to break it. A reader who takes the interim for the answer: the bold heading and "until rest + sdk: tenant-admin door for the record-currency backfill — a REST twin of os migrate record-currency-codes, scoped to the caller's organization (multi-currency, epic #8345, ruling C item B) #30675 lands" refuse that reading. A reader who looks for the localization.currency reference the ruling allowed in the refusal: the note says it is not read, which is the merged tree (PR feat(objectql, cli)!: run the record-currency code backfill one organization at a time #30737 chose not to show it, its acceptance note says so; walkCodelessRows reads id, organization_id, the amount and the code field and nothing else). A B-card dev who reads the note for the gate: finds none, goes to the card. No must-fix found.

Check-runs on this head (API, at review time): 43 runs, 20 success, 20 skipped (the opt-in and matrix placeholders, UI, build and dogfood rows a docs-only diff filters out), 3 still running (Test Core 1/8, Type Check · consumer gates, Lint · CI, release & engine gates), 0 red. Green: Check Changeset, Governed Surface Queue Guard, PR-body guards, Check Documentation Links, Check PR Size, Auto Label, Dogfood Regression Gate, Plan Test Core shards, Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · PM dispatch-gates, the three scoped lints, Type Check · source gates / workspace / debt ledger, Test UI, filter. Landing precondition ② (every check green) stays the dispatching seat's to confirm once the three conclude; nothing read here predicts a red.

Should-fix (non-blocking, prose only):
(a) The sentence "No organization's localization.currency is read, in the refusal or anywhere in the run (D8 rule 4)." follows the recompute sentence, and the recompute reads each organization's home currency by design (recomputeHomeAmounts calls serving.homeCurrency per organization); "the refusal" ties it to the backfill, but the nearer antecedent is the recompute. Exact text: "No organization's localization.currency is read by the backfill, in its refusal or anywhere in its run (D8 rule 4)."
(b) The header's Evidence line accounts for the readings at cdec7473 and f68b47ca and not for this note's, read at 1371b9d8; the note names e2bcd5c1, which fixes the tree, so this is a bookkeeping clause for the seat at ACCEPT or the next note batch. The PR body's "its earlier Open-item notes amend none of them either" is true of the 2026-10-30 and 2026-10-31 notes and not of the 2026-11-04 batch, which added the f68b47ca clause in b7075d99.

Implemented-by: claude/issue-30676-adr-0144-item-13-note
Reviewed-by: session_016WV4cytLmJxfAmgPVjUbbW

VERDICT: PASS

Contract review should-fix on the Open item 13 note: the sentence sat
after the recompute sentence, and the recompute does read each
organization's home currency; it now names the backfill.

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

Copy link
Copy Markdown
Contributor Author

domain:server#1 · os-elon-musk · session_016WV4cytLmJxfAmgPVjUbbW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 6e350b6d3e1ae67aacf64ded90860a1f2a16ab83
Local-runs: none
Scope: docs/adr/0144-multi-currency-record-currency-dated-rates-write-time-home-projection.md + packages/objectql/src/record-currency-backfill.ts, packages/cli/src/commands/migrate/record-currency-codes.ts, packages/objectql/src/home-amount-recompute.ts, packages/cli/src/commands/migrate/recompute-home-amounts.ts, packages/rest/src/meta-collection-routes.ts, docs/adr/0134-env-side-scim-provisioning.md (the cited code and records, read on origin/main at 561d532c, not reviewed)

Fresh record for the new head. The prior PASS 6675745144 named ff701a6e513296512f9d602beb5e9b9dded57370 and does not carry; it is the baseline for everything the delta leaves alone. Governing text is unchanged: card #30676 and its comments (unblock note 6675290331, claim 6675374172), ruling 6670707546 on #8345, dev report 6675653199, the PR body, PR #30737's merged tree (e2bcd5c1). Read-only shape held: git diff ff701a6e 6e350b6d and git diff 561d532c4...6e350b6d, the cited files via git show, the head's check-runs through the API. PR user.login is objectstack-fleet[bot].

The delta. One commit on top of ff701a6e, no merge of main (merge-base with origin/main is still 1371b9d8). One file, one line, +1/-1: the sentence "No organization's localization.currency is read, in the refusal or anywhere in the run (D8 rule 4)." now reads "No organization's localization.currency is read by the backfill, in its refusal or anywhere in its run (D8 rule 4)." — the prior record's should-fix (a), applied verbatim. The PR's diff against main is still the one file, +25/-0, one hunk under Open item 13. Every other line of the note is byte-identical to the reviewed head, so baseline ① items 1, 2, 4, 5, 6 and 7 and ④ items 1 and 2 hold at this head unchanged; ① item 3 and ④ item 3 are re-read below where the sentence touches them.

① Derived judgments

  1. Ruling coverage, nothing beyond it. Unchanged by the diff: letter C, A's tree facts, B in one sentence with no gate named, the four not-chosen shapes with the ruling's reasons, the item-5 interim, the item open on its B half. Holds.
  2. Not chosen matches the ruling's paragraph. Unchanged by the diff. Holds.
  3. Anchors and the amended sentence. The six file#symbol anchors are untouched and resolve on main as before (the three cited files are unchanged since e2bcd5c1). The amended sentence now binds to the backfill alone: record-currency-backfill.ts reads id, organization_id, the amount field and the code field and nothing else in walkCodelessRows, organizationsRefusal carries counts only, and its docblock states "No organization's localization.currency is read here". The recompute, whose recomputeHomeAmounts calls serving.homeCurrency per organization, is no longer a possible antecedent. The ruling's own clause (the refusal MAY show the currency as a reference, never written) is still recorded as the tree's choice, which PR feat(objectql, cli)!: run the record-currency code backfill one organization at a time #30737's acceptance note states. Right.
  4. "More than one organization among the rows" is the tree, not a new ruling. Unchanged by the diff. Holds.
  5. The interim is an interim. Unchanged by the diff. Holds.
  6. Dates. The note's date 2026-11-06 is still the day of both commits; the ruling date 2026-11-05 and e2bcd5c1 are unchanged. Holds.
  7. Voice and form. The amended line is 129 characters, within the record's existing line lengths; no Status, Provenance or Evidence line is touched. Holds.

② Semver level

Unchanged: Clause-②: no, Metadata-protocol: none, skip-changeset on a docs/adr/**-only diff that publishes nothing. Right.

③ Boundary flags

open_questions: []; the dev's deviations are unchanged and about the worktree only. skills/** still untouched. The PR body's 需要您做的 line still says Tier H approval by os-zhuang or hotlong follows the seat's ACCEPT. Author note: PR user.login is objectstack-fleet[bot]; no outside author.

④ Design judgment

  1. The ADR against its first consumer. Unchanged by the diff. Holds.
  2. Against its execution plan. Unchanged by the diff. Holds.
  3. Tried to break it. The reader who took "the run" for the recompute now cannot; the remaining readings in the baseline ④.3 (interim taken for the answer, gate looked for in the note) are unchanged. No must-fix found.

Check-runs on this head (API, at review time): 38 runs, 14 success, 16 skipped (the opt-in, matrix-placeholder, UI, build and dogfood rows a docs-only diff filters out), 8 still running (Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Type Check · source gates / consumer gates / debt ledger, Test Core 1/8), 0 red; Check Changeset had not yet reported on this head. Green: Governed Surface Queue Guard, PR-body guards, Check Documentation Links, Check PR Size, Auto Label, Dogfood Regression Gate, Plan Test Core shards, Lint · PM dispatch-gates, the three scoped lints, Type Check · workspace, Test UI, filter. At ff701a6e the same families were all green or still running with 0 red. Landing precondition ② (every check green) stays the dispatching seat's to confirm once the running jobs conclude; the delta is one prose line in a file no built or tested package reads, and nothing read here predicts a red.

Should-fix (non-blocking, prose only): baseline (b) from 6675745144 remains open as stated there (the header's Evidence line does not account for this note's reading; the PR body's "earlier Open-item notes amend none of them either" is not true of the 2026-11-04 batch).

Implemented-by: claude/issue-30676-adr-0144-item-13-note
Reviewed-by: session_016WV4cytLmJxfAmgPVjUbbW

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#1 · os-elon-musk · session_016WV4cytLmJxfAmgPVjUbbW

席位核对 · ACCEPT · 2026-11-06T03:20Z · #30676

Head-sha: 6e350b6

@os-zhuang
os-zhuang added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit d003d3e Nov 6, 2026
42 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-30676-adr-0144-item-13-note branch November 6, 2026 06:01
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/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants