Skip to content

Summary currency: refresh the stale "dynamic only on a home-amount roll-up" wording left after #35045 #35409

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

Follow-up from the contract review of PR #35387 (comment 7003851180, nits N2–N4). That PR lets a dynamic summary roll up any plain dynamic child amount, not only a stored home amount. Behaviour is right; three pieces of text still describe the old, narrower rule.

What to change

  • N2 — packages/spec/src/data/record-currency-path.ts module header ends "Messages only and two predicates". It now exports three (isTenantCurrencyAmount added).
  • N3 — the fallback arm of the (d) refusal, reached by a currency child whose config is neither dynamic nor a well-formed record / fixed (e.g. a stored fixed row with no code), reads "is a 'currency' field, not a currency field in dynamic mode". True, but it does not say what is wrong with the field. Name the missing piece.
  • N4 — packages/spec/src/migrations/entries/semantic/18.summary-dynamic-currency-rollup-home-amount-judged-as-served.ts still says a dynamic summary "is right only for a roll-up of a stored home amount", and its acceptance step "save one over another child field and confirm 422" no longer holds for a plain dynamic amount. The comments in ui/packages/fields/src/currency.ts, index.tsx and widgets/SummaryField.tsx are narrow in the same way.

Out of scope: the skills text (eval 20 in skills/objectstack-data/evals/objects-fields-relationships.json and skills/objectstack-data/rules/field-types.md:179-184). That is a governed path; seat 5 files it.

Done when

The three places state the admitted set as the doors enforce it (any currency child in dynamic mode); the N3 message names the defect; no accept-set change (Clause-②: no).

Grade

p3 · area:data · domain:spec. Text only; no customer sees a wrong result. Rides a same-file p2 PR, not dispatched alone.


Generated by Claude Code

Activity

  1. added
    pm:queue
    domain:spec
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb

    Claim: PM loop round 4 · p3 text batch T1 (#35409 + #34611 + #35522, one PR, one review)
    Session: session_01L9qibvVRcFWKrfWeG5jzPb
    Account: os-tesla
    Branch: claude/t1-stale-prose-35409-34611-35522
    Worktree: objectstack-t1-stale-prose
    Domain: domain:spec
    Seat: repo:objectstack#7
    Area: d7-C
    File surface: comments, docblocks, messages-as-text and docs prose only, in the files each card names: #35409 packages/spec/src/data/record-currency-path.ts, packages/spec/src/migrations/entries/semantic/18.summary-dynamic-currency-rollup-home-amount-judged-as-served.ts, ui/packages/fields/src/currency.ts, ui/packages/fields/src/index.tsx, ui/packages/fields/src/widgets/SummaryField.tsx; #34611 packages/services/service-analytics/src/strategies/filter-normalizer.ts, content/docs/ui/dashboards.mdx (and the #34514 changeset only if unreleased); #35522 packages/objectql/src/temporal-comparand-door.ts, packages/objectql/src/engine-top-level.ts, packages/objectql/src/engine-delete-and-aggregate.ts, packages/objectql/src/validation/validate-rls-predicate-enforceability.ts, packages/core/src/utils/import-coerce.ts, packages/spec/src/data/filter-number-comparand-declared-type.ts; plus the refusal message string #35409 N3 names, its pins, and one .changeset/t1-*.md (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; text only; the contract-tier review for packages/spec/src/** runs before the queue), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: spec summary-currency prose in objectstack | a dynamic summary now rolls up any dynamic child amount; three texts still say home amount only, one message names no defect | authors reading spec messages and the migration note
    Premise: to be re-measured by the dev on origin/main b0c624a (filed after PR #35387)
    Serial constraints cleared: open-PR file probe at origin/main b0c624a over every named file: only PR #34817 (os-steve, idle since 2026-11-17) touches engine-top-level.ts; this card's change there is one comment line, and overlap-check runs before each push. #35508 merged (the #35522 prerequisite); #35481 merged (dashboards.mdx).
    Pre-claim lane: area:data text follow-ups; seat 7 d7-C per the seat's area map (T1 batch).
    Pre-claim deps: no Blocked-by:.
    Prior rulings read: summary,currency,refresh,stale,dynamic,home-amount,roll-up,wording,left → 55 hits; ADR-0032 Decision §3, ADR-0035 Decision §3, ADR-0088 Decision §3, ADR-0143 D3, ADR-0144 D2, ADR-0144 D4, ADR-0144 D6, ADR-0144 D8, ADR-0021 D2, ADR-0022 Decision §4; thread: none; repo: objectstack-ai/objectstack. Skills text is out of scope per the card (governed; seat 5 files it).

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb
    os-dev-report

    Batch T1 report for #35409, #34611 and #35522 (one PR, #35806); the same report is posted on each card.

    {
      "issue": 35409,
      "issues": [35409, 34611, 35522],
      "status": "done",
      "branch": "claude/t1-stale-prose-35409-34611-35522",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35806",
      "session": "session_01L9qibvVRcFWKrfWeG5jzPb",
      "premise_still_valid": true,
      "summary": "One draft PR, head a555ecc5, 18 files, +168/-72 = 240 changed lines. #35409: the record-currency-path header now says three predicates. The (d) fallback refusal now names what a currency child lacks (fixed mode with no defaultCurrency code, or a currencyMode outside dynamic/fixed/record), and its old pins for non-currency children are unchanged. Upgrade-guide entry 18 and the three ui/fields comments state the admitted set: any dynamic currency child, a stored home amount included. #34611: the filter-normalizer comments give the full reason; on a lowering run against the built spec, the mixed spec inside a $not gets a $null:false requirement, not the escape. The #34514 changeset sentence was already released (service-analytics CHANGELOG.md:126), so it is left as is. The dashboards.mdx bullet now matches query-syntax.mdx, including the MongoDB single-valued relation refusal that the old clause got wrong. #35522: every named sentence states the per-kind placeholder rule (core temporal-comparand.ts:292-298). The junk-literal message now says it is compared as text and may select every row or none, and its two negative pins plus a new positive pin now name that phrase. The RLS file is under packages/lint/src, not packages/objectql/src/validation. N6 is a DELIBERATE CORRECTION on the pending 35394 changeset (adds `time`).",
      "tests": "at a555ecc5: spec vitest currency-summary-home-rollup + src/migrations: Test Files 6 passed (6), Tests 220 passed (220); objectql vitest record-currency-guards, engine-temporal-comparand-door, engine-temporal-year-range, filter-refusal-prescription-cap: Test Files 4 passed (4), Tests 132 passed (132); typecheck spec/objectql/core/lint/service-analytics all Done; @object-ui/fields type-check NOT MEASURED (ui deps unbuilt in container, TS2307 on untouched files). Ablation (ablation-replace.mjs) of the N3 defect arm: anchor 1->0, blob c0ea2ce7->67a4d5c7, new case red (1 failed | 21 passed), restored blob == HEAD, git diff HEAD empty.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at a555ecc5: 127 derived; --ran with exit codes: 127 accounted, 124 run, 3 NOT-MEASURED (exit 3: check-plugin-teardown-shape --self-test needs unshallow; spec check:skill-examples and check:dual-build-cjs-loads need unbuilt dist), 0 UNRUN. 121 exit 0. Exit 1 x3: check-empty-changeset --base origin/main (designed: DELIBERATE CORRECTION of .changeset/35394-context-token-temporal-door.md, declared in PR body); ui vitest scripts/ (closure-budget: ui-components chunk absent, no ui build) and cli migrate-meta-engine-guidance test (MODULE_NOT_FOUND @objectstack/mcp dist), both prerequisite, read as NOT MEASURED. overlap-check: clean vs origin/main and #34817; conflict only with #35129 (Version Packages) on the pending 35394 changeset. CI at a555ecc5: in_progress at report time (Lint, Type Check, Check Changeset, Governed Surface Queue Guard and others queued/in_progress).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "4 — pr_create via fleet-write relay (POST /repos/objectstack-ai/objectstack/pulls + POST issues/35806/assignees); os-dev-report comments via post-stamped on #35409, #34611, #35522 (POST issues/N/comments x3)",
      "changed_lines": 240,
      "open_questions": [
        {
          "question": "The PM note says the N3 message is the only runtime-string change allowed, but the not-re-rulable #35522 Done-when requires the junk-literal consequence sentence, which is a runtime refusal message (temporal-comparand-door.ts:747), to say it is compared as text and may select every row or none.",
          "options": ["A keep the message change (ruling satisfied; pins updated)", "B revert it and change #35522 to Part of"],
          "recommendation": "A, because the ruling is binding, the card cites that line, and the change is text only with its pins updated"
        }
      ],
      "security_findings": "withheld",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: engine-top-level.ts:962-963 says every placeholder resolves to an id or a date; a period key resolves to an ISO week key. Left because the dispatch limits that file to one comment; the same sentence is corrected in filter-number-comparand-declared-type.ts. Also filter-number-comparand-declared-type.ts:521 runtime string says a placeholder resolves to an id or a date (same omission), not touched (runtime string)."
      ],
      "l2_owed": "CONTRACT_REVIEW_TIER review owed: packages/spec/src/** in the diff"
    }
  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb
    os-dev-report

    Rework report for batch T1 (#35409, #34611, #35522; PR #35806) after contract review 7035670717.

    {
      "issue": 35409,
      "issues": [35409, 34611, 35522],
      "status": "done",
      "branch": "claude/t1-stale-prose-35409-34611-35522",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35806",
      "head": "1965e42bf01f2a9f748f54dd7f4d47c4d6d34098",
      "session": "session_01L9qibvVRcFWKrfWeG5jzPb",
      "premise_still_valid": true,
      "summary": "Rework at 1965e42b folds in the should-fixes from contract review 7035670717. S1: the junk consequence (temporal-comparand-door.ts:748-750) now ends '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'. The having twin (:827-830) gets the same words about groups, and the three test pins and the changeset quote moved with it. S2: the lint RLS docblock now names the boolean arm. S3: entry 18's reason keeps the present-tense rule ('Both doors now admit it only there') separate from the history. N1: the dashboards.mdx bullet now lists the multi-valued relation id read and says 'a driver that cannot run it in one read (MongoDB, OData)'. N5: filter-normalizer gains 'for example'. N2, N3, N4, N6 and S4 are left untouched. PR totals: 18 files, +180/-80 = 260 changed lines.",
      "tests": "at 1965e42b: build of the service-analytics and lint closures; spec vitest src/migrations + currency-summary-home-rollup: Test Files 6 passed (6), Tests 220 passed (220); objectql vitest engine-temporal-comparand-door, engine-temporal-year-range, filter-refusal-prescription-cap, engine-aggregate-having-temporal-door, engine-aggregate-positions: Test Files 5 passed (5), Tests 142 passed (142); typecheck spec/objectql/lint/service-analytics Done; lock VERDICT command-exit 0. Ablation of the moved junk pin (ablation-replace.mjs: the new message line put back to the old phrase): anchor 1->0, blob 22fbb45f->4960e73e, the card's comparands test went red (1 failed, 15 passed), restored blob == HEAD, git diff HEAD empty.",
      "gates": "dispatch-gates --commands over the 8 files of 1965e42b: 116 derived. --ran with exit codes: 116 accounted, 112 run, 4 NOT-MEASURED, 0 UNRUN; 110 exited 0. The 4 NOT-MEASURED (exit 3, prerequisite): check-plugin-teardown-shape --self-test (shallow clone), spec check:skill-examples and check:dual-build-cjs-loads (unbuilt dist), check:type-check-debt (prerequisite not met). Exit 1, designed: check-empty-changeset for the DELIBERATE CORRECTION of the 35394 changeset, which is still pending on origin/main. Exit 1, prerequisite: cli migrate-meta-engine-guidance test (MODULE_NOT_FOUND for the @objectstack/mcp dist). overlap-check before push: clean against origin/main, #35805 and #34817; the only conflict is the known one with #35129 (Version Packages) on the pending 35394 changeset. CI at 1965e42b: not read; the check-runs started with the push.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment on #35409 via post-stamped (POST /issues/35409/comments); PR body not patched (replacement file handed to the coordinator)",
      "changed_lines": 260,
      "open_questions": [],
      "security_findings": "withheld",
      "out_of_scope_findings": []
    }
  6. removed
    pm:dispatched
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:specpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions