Repository navigation
docs: stale prose on summary currency, the temporal-comparand door and analytics filters now says what the code does - #35806
Conversation
…d analytics filters Claude-Session: https://claude.ai/code/session_01L9qibvVRcFWKrfWeG5jzPb Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check7 anchor(s) derived from 5 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 183 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 3462dcf1f58d54f66ed1752b5b706d7181363631 && git checkout 3462dcf1f58d54f66ed1752b5b706d7181363631
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 7878cf0557737ecfde78dfa9cff7a1046a289a4a 1965e42bf01f2a9f748f54dd7f4d47c4d6d34098 && git checkout -B drift-repro 7878cf0557737ecfde78dfa9cff7a1046a289a4a && git merge --no-ff 1965e42bf01f2a9f748f54dd7f4d47c4d6d34098
node scripts/docs-audit/affected-docs.mjs --json 7878cf0557737ecfde78dfa9cff7a1046a289a4a |
|
repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH Seat checkL1: ACCEPT (L1-a, for area d7-C) at head
DELIBERATE CORRECTION:
|
|
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb Contract reviewServed-tier: Read: cards #35409, #34611 and #35522 (each body and every comment: claims 7033829041, 7033846059, 7033856553; os-dev-reports 7035287739, 7035297589, 7035321394; triage 6936850925; the addition 7013425050); the L1 ACCEPT 7035433107; PR #35806 (body, the 18-file list, the net diff against merge-base Result: PASS. No must-fix. Open on this head: S1, S2, S3, S4 (should-fix), N1 to N6 (nits). ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentAre the pins real?
Is patch right, and is anything owed that was not shipped? Patch is right and nothing generated is owed (①.3, ②). The unfiled finding ("resolves to an id or a date"). A follow-up, not a must-fix here: S4. S1 (should-fix) — the new junk consequence is still wrong for part of its class.
The card's Done-when says "may select every row or none", and the S2 (should-fix) — the lint docblock's decision order leaves out the boolean arm. S3 (should-fix) — entry 18's S4 (should-fix) — file the follow-up before this lands; it has no carrier. Not a must-fix on this head: the sentence's conclusion is true (no token resolves to a number or a boolean), the omission dates from #34938, none of the three cards names it, and the two runtime strings sit in case tables with pins of their own. The place list is wider than the report's:
After this PR N1 (nit) — N2 (nit) — N3 (nit) — the named defect may sit past the client cut. With the fixture's names the head of the (d) message is 404 characters and the new N4 (nit) — N5 (nit) — N6 (nit) — Implemented-by: VERDICT: PASS |
…boolean arm; entry 18 history; dashboards and normalizer nits Claude-Session: https://claude.ai/code/session_01L9qibvVRcFWKrfWeG5jzPb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH Seat check (delta)L1: ACCEPT (L1-a, for area d7-C) at head Two conditions remain:
Correction to my ACCEPT 7035433107: release orderI said that if Version Packages #35129 lands first, the 35394 correction belongs in "a follow-up note". The L2 is right and I was wrong. AGENTS.md's file table says a factual error in a released The delta (8 files, +41 / −37)
Gates and routingUnchanged from 7035433107, under the corrected release-order remedy above. After the same-head delta L2 PASS and CI green apart from Generated by Claude Code |
|
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb Contract reviewServed-tier: Read: my record 7035670717 at Result: PASS. No must-fix. Closed at this head: S1, S2, S3, N1, N5. Still open, as left by the dev: S4 (filed as its own card, per the PR body), N2, N3, N4, N6. New: N7, N8 (nits). ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe rework does what the first record asked and no more. The two consequence sentences now say the same thing in the same shape, the comments that quote them agree, and the pins and the changeset quote moved in the same commit, so no stale phrase is left: N7 (nit) — the N8 (nit) — Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb Landing (2026-11-20T10:18Z), area d7-C under the standing go-ahead for pm-dispatch-reviewed PRs.
|
|
repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c 维护者速读
席位核对Seat 7: hand-off for the maintainer's approval · head
|
repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb
Requested by Tesla · project thread
Fixes #35409
Fixes #34611
Fixes #35522
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Text only. No accepted value, key, answer or code path moves; two refusal messages change words.
#35409 — summary
dynamiccurrency (spec, ui/fields)The doors admit a
dynamicsummary over any childcurrencyfield indynamicmode (isTenantCurrencyAmount,packages/spec/src/data/record-currency-path.ts:229-232; read bystack.zod.ts:5033andobjectql/src/record-currency-aggregate-door.ts:87).isRecordCurrencyCodeField:50,storedHomeAmountSourceOf:207,isTenantCurrencyAmount:229).currencychild lacks (record-currency-path.ts:265-270, used at :282):fixedwith nodefaultCurrencycode, or acurrencyModeoutsidedynamic/fixed/record. A non-currencychild keeps its old words ("is a 'number' field, …"), so the existing pins inrecord-currency-guards.test.ts:1229-1230,1328andcurrency-summary-home-rollup.test.ts:181,203are unchanged and green. One new case pins the two new arms by subject.18.summary-dynamic-currency-rollup-home-amount-judged-as-served.tsstates the admitted set (surface, replacement, reason). Itsreasonkeeps the present-tense rule ("Both doors now admit it only there") apart from the history: before the entry,defineStackjudged it (then admitting a stored home amount alone) and the engine registry judged onlyrecordroll-ups. Its acceptance step now saves over "a child field that is not acurrencyfield indynamicmode (afixedEUR amount, a plain number or a formula)". The comments inui/packages/fields/src/currency.ts,index.tsxandwidgets/SummaryField.tsxsay the same.#34611 — analytics filter-normalizer comments and
dashboards.mdxconstarm JSDoc and thecollectFilterLeavescomment infilter-normalizer.tsnow give the full reason.lowerFilterCondition(packages/spec/src/data/filter-lowering.ts:445-470) wraps every$ninoutside a$notin the NULL escape (nullEscape, :435), whosenotSetleaf names the member. Inside a$notit takes that escape when a row with no value satisfies every operator of the spec, and otherwise a$null: falserequirement, either as its own conjunct or the enclosing one (requiredFields, :182).$null: falsenormalizes to asetleaf (filter-normalizer.ts:1214). Measured on the built spec at this head:{$not:{f:{$nin:[],$gt:5}}}lowers to{$not:{$and:[{f:{$null:false}},{f:{$nin:[],$gt:5}}]}}.#34514changeset has been released: its sentence is inpackages/services/service-analytics/CHANGELOG.md:126, and the changeset file is gone from.changeset/. The card's own rule applies ("otherwise fix the docs only").content/docs/ui/dashboards.mdxnow says a single-valued relation "usually" runs as a subquery, and names the id-read cases thatcontent/docs/protocol/objectql/query-syntax.mdx:703-732lists, a multi-valued relation (on every driver) first. It also had a MongoDB clause that disagreed with bothquery-syntax.mdx:709-714and the code. On a read verb (aggregateincluded,relation-filter-lowering.ts:356), a single-valued relation condition on a driver withoutreadableIdsLeaf(MongoDB, OData) is refused before any read (relationReadDriverRefusal, :370). It is not id-read under the cap. The bullet now says so, in the capability's terms: "a driver that cannot run it in one read".#35522 — temporal-comparand door prose (objectql, core, lint, spec)
The rule, per kind, is
PLACEHOLDER_AT_THE_TEMPORAL_RULEinpackages/core/src/utils/temporal-comparand.ts:292-298, applied at :364-365:Each named sentence now states that rule:
temporal-comparand-door.ts: the module Scope note and the resolved-token section.engine-top-level.ts: the one comment aboveassertTemporalComparandsInterpretable.engine-delete-and-aggregate.ts: the per-aggregation comment from comment 7013425050, plus the same sentence onhavingin that file.core/src/utils/import-coerce.ts: thereadTimeOfDayCellnote. Every placeholder is refused there first, byclassifyFilterToken(:361).spec/src/data/filter-number-comparand-declared-type.ts: the tokens section. The resolved forms now include the period key's ISO week key (filter-tokens.ts, the period-key resolver).lint/src/validate-rls-predicate-enforceability.ts: which code a placeholder gets with no caller. The card names it underpackages/objectql/src/validation/, but the file lives atpackages/lint/src/. On a temporal field a period key or a context token answersINVALID_FILTERfrom the door. On a number or a boolean field every placeholder does: the number door (filter-number-comparand-declared-type.ts:351) and its boolean arm (filter-boolean-comparand-declared-type.ts:234, wired under the number door inengine-top-level.ts). Otherwise the resolver decides (filter-tokens.ts:491-528).temporal-comparand-door.ts:748-750) now reads "As written it would reach the driver and be compared as text: it may select every row, none or the wrong ones (or raise a database error), an answer indistinguishable from a real one." Neither "every row or none" nor "a 200" is exact: on adatefield a partial day such as'2026-06'selects a subset, and PostgreSQL raises a database error for text on adatecolumn (the measurement at :144). Thehavingtwin (:827-830) says the same of the groups: "As written it would be compared with each group as text: it may keep every group, none or the wrong ones (or raise a database error), an answer indistinguishable from a real one." The comments that quoted the old phrase (module note,MisreadClassdoc, year-class comment) are updated. The twonot.toContainpins inengine-temporal-comparand-door.test.tsandengine-temporal-year-range.test.tsnow name the new phrase, so they are not vacuous. A positive pin on the junk cells (engine-temporal-comparand-door.test.ts, the card's comparands test) holds them to it.DELIBERATE CORRECTION —
.changeset/35394-context-token-temporal-door.mdThis changeset is pending (it is still in
.changeset/). Its analytics read-scope bullet now reads: "a scope that compares adate,datetimeortimefield with a context placeholder is now refused at compile". The predicate judges a context token as written on all three kinds (temporal-comparand.ts:292-298), and the same changeset's own BREAKING line already names all three.check-empty-changesetis red for this note by design. The confirming record is the dispatching seat's (landing-operations.md).Changeset
.changeset/t1-stale-prose.mdbumpspatchfor@objectstack/spec,objectql,core,lint,service-analyticsand@object-ui/fields. It carries the two declaration lines.Tests
Rework runs at 1965e42 (the L2 should-fixes S1 to S3, nits N1 and N5)
pnpm --filter '@objectstack/service-analytics^...' --filter '@objectstack/lint^...' build, thenpnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/migrations src/data/currency-summary-home-rollup.test.ts: Test Files 6 passed (6), Tests 220 passed (220).pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/engine-temporal-comparand-door.test.ts src/engine-temporal-year-range.test.ts src/filter-refusal-prescription-cap.test.ts src/engine-aggregate-having-temporal-door.test.ts src/engine-aggregate-positions.test.ts: Test Files 5 passed (5), Tests 142 passed (142).typecheckfor spec, objectql, lint and service-analytics: all Done. Lock verdict: command-exit 0.scripts/ablation-replace.mjsontemporal-comparand-door.ts, the new message line put back to the old "selecting every row or none" phrase): the anchor went 1 → 0 and the blob 22fbb45f → 4960e73e. The card's comparands test went red (Tests 1 failed, 15 passed), then the file was restored and its blob equals HEAD, withgit diff HEADempty.Local runs at a555ecc
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/data/currency-summary-home-rollup.test.ts src/migrations: Test Files 6 passed (6), Tests 220 passed (220).pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/record-currency-guards.test.ts src/engine-temporal-comparand-door.test.ts src/engine-temporal-year-range.test.ts src/filter-refusal-prescription-cap.test.ts: Test Files 4 passed (4), Tests 132 passed (132).typecheckfor spec, objectql, core, lint and service-analytics: all Done.@object-ui/fieldstype-checkwas NOT MEASURED locally: theui/deps are unbuilt in this container (TS2307 on@object-ui/componentsand others, in files this diff does not touch). CIType Check UIcovers it.scripts/ablation-replace.mjs, anchoris ${defect}, not a→is ${kind}, not a): the anchor went 1 → 0 and the blob c0ea2ce7 → 67a4d5c7. The new case went red (Tests 1 failed, 21 passed), then the file was restored and its blob equals HEAD, withgit diff HEADempty.Acceptance notes
Contract review PASS at a555ecc (comment 7035670717): S1 to S3 and nits N1 and N5 are folded in at 1965e42. N2, N3, N4 and N6 are left as they are. S4 (the "resolves to an id or a date" sentences) is filed as its own card.
overlap-check: merges cleanly withorigin/mainand with fix(audit): a search the server widens never names a column the caller may not query #34817 (engine-top-level.ts). It reports a conflict with chore: version packages #35129, the Version Packages PR, on the pending 35394 changeset. That conflict is the expected delete-vs-modify shape for a pending note.engine-top-level.ts:962-963(number door comment) says every placeholder resolves "to an id or a date". A period key resolves to a week key. That comment is outside the one edit allowed on this file, so it is left; the same sentence infilter-number-comparand-declared-type.tsis corrected.Verification
Two minutes:
pnpm --filter @objectstack/spec exec vitest run src/data/currency-summary-home-rollup.test.ts. Expect 22 passed, including "acurrencychild that is neitherdynamicnor a well-formedrecord/fixed…".Read first:
packages/spec/src/data/record-currency-path.ts: thedefecthunk. It is the only new branch.packages/objectql/src/temporal-comparand-door.ts: the junk message at :747.content/docs/ui/dashboards.mdx: the rewritten bullet.L2 owed:
packages/spec/src/**is in the diff, so oneCONTRACT_REVIEW_TIERreview is owed.Generated by Claude Code
Body refreshed 2026-11-20T10:13Z for the should-fix rework (contract review 7035670717: S1–S3, N1, N5), head 1965e42.