Skip to content

feat(metadata): add relative dates and case expressions to view loaders - #562

Merged
dmealing merged 7 commits into
mainfrom
fm/mo-rc19-pr3-expressions
Nov 12, 2026
Merged

dmealing merged 7 commits into
mainfrom
fm/mo-rc19-pr3-expressions

Conversation

@dmealing

@dmealing dmealing commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

What Changed

  • Projection and origin.first/origin.aggregate @filter values accept relative dates ({ "now": "-P7D" }, optional startOf). Loaders in TypeScript, C#, Java and Python check the shape and refuse a malformed value or a non-temporal target field. The earlier refusal fixtures for relative dates are removed.
  • origin.computed expressions accept now and case (searched, or simple with an operand). A ref can name another projection field, and a case or coalesce unifies literal and now arms with the field types. Loaders refuse a non-boolean searched when, mismatched result types, unknown expression keys, bad now durations, and computed-field cycles (ERR_UNKNOWN_EXPR_NODE for unknown keys).
  • Validator @condition still refuses case and now. Metamodel vocabulary (spec/metamodel, attr and origin specs, registry expectations, generated docs and site reference) is updated to match, and metamodelVersion moves to 1.3 as noted in CHANGELOG.

Notes for reviewers

  • Validation runs: 2. The first run passed review, then failed in the test step because the gate's test agent timed out on every model provider. That was an infrastructure failure with no test finding. The branch was then rebased onto current main and validated again in this run.
  • Full scripts/ci-local.sh before the run: every lane green on all five ports. The first pass had three load timeouts (load average near 50). On a rerun of the gates and ts-slow sections they were green, except for one hung MySQL worker, and that file passes 5 of 5 on its own in 13 seconds.
  • Deferred to the follow-up loader PR in the same release: a literal-kind and enum-membership check on a simple case's when values and on origin.computed comparisons, with its own shared error fixture.
  • Known wording fix for the follow-up PR: the CHANGELOG sentence saying a case or coalesce "unify a numeric literal with any numeric field" is now too broad. A fractional literal unifies only with double, float or decimal (error-origin-computed-literal-fractional).
  • Merge-order note for the TypeScript codegen PR: until it lands, meta migrate leaves a case, now or own-field computed column out of the generated view while the DTO still declares it. That PR should also make the extractor raise an error there rather than skip.
Validation

Risk Assessment

✅ Low: The expression grammar, cycle check, relative-date shape check and condition refusal are implemented consistently in all four loaders and match shared fixtures; the only defect found is an inaccurate CHANGELOG sentence.

Testing

Loader behavior targeted by this PR is live-verified: the TypeScript CLI and Python loader accept the valid simple-case, integer-case, currency-coalesce and non-cycle chain projects, and refuse the mixed-key, misspelled-key, bad-duration, mutual-cycle, fractional-currency, relative-date-on-currency and validator-now cases. C# and Java shared conformance suites pass. The gate's no-go came from running the Python suite under the system interpreter without the integration extra; under uv run --extra integration the full suite passes (4953 passed, 15 skipped). The full TypeScript suite passed per package in the full local CI run.

  • Live validation: 15 of 15 scenarios pass. The gate recorded no-go on the Python row above, which came from its own interpreter setup; the test step was approved on the re-run result.
Scenario Result Live Evidence
Positive: simple case with enum operand, string when, integer case on long statusId, integer literal coalesce beside currency, non-cycle computed chain, loads clean in TypeScript CLI ✅ pass live gate transcript ts-cli-adv-pos.txt (EXIT=0, bun server/typescript/packages/cli/bin/meta.ts verify, synthetic project)
Positive: same adversarial project loads clean in Python loader ✅ pass live Python load_fixture on the synthetic positive project returns errors=[]
Adversarial: projection @filter gte {now} on field.currency refused (F-2) in TS CLI ✅ pass live gate transcript ts-cli-adv-neg-currency-filter.txt: ERR_BAD_ATTR_FILTER
Adversarial: same currency projection filter refused in Python ✅ pass live load_fixture errors=['ERR_BAD_ATTR_FILTER']
Adversarial: coalesce(currency field, 9.99) refused (R3-1) in TS and Python ✅ pass live ts-cli-adv-neg-fractional-currency.txt: ERR_INVALID_ORIGIN; Python errors=['ERR_INVALID_ORIGIN']
Adversarial: computed-to-computed mutual cycle refused (F4) in TS CLI ✅ pass live ts-cli-cycle.txt: ERR_INVALID_ORIGIN 'a view cannot inline a cycle'
Adversarial: mixed-kind node (field+case) and misspelled else refused (F-1) in TS CLI ✅ pass live ts-cli-error-origin-computed-node-mixed-keys.txt and ts-cli-error-origin-computed-case-unknown-key.txt: ERR_UNKNOWN_EXPR_NODE
Adversarial: 'now' with non-ISO duration '7 days ago' refused in origin.computed (F2) in TS CLI ✅ pass live ts-cli-error-origin-computed-now-bad-duration.txt: ERR_UNKNOWN_EXPR_NODE
Adversarial: case result type mix, non-boolean searched when, and view-host malformed relative date refused in TS CLI ✅ pass live ts-cli-error-origin-computed-case-mixed-types.txt, ts-cli-error-origin-computed-case-non-boolean-when.txt, ts-cli-error-relative-date-view-host-malformed.txt
Adversarial: validator @condition containing now refused in TS CLI ✅ pass live ts-cli-error-validator-condition-now.txt: ERR_BAD_ATTR_VALUE
Shared conformance corpus: Python, new fixtures ✅ pass live pytest tests/conformance/test_conformance.py: 471 passed
Shared conformance corpus: C# (MetaObjects.Conformance.Tests) ✅ pass live dotnet test MetaObjects.Conformance.Tests: Passed 2457, Failed 0
Shared conformance corpus: Java metadata ConformanceTest ✅ pass live mvn -o -pl metadata test -Dtest='Conformance': ConformanceTest 934 run, 0 failures
Full TypeScript server regression suite ✅ pass live A bare bun test over server/typescript timed out at 1500s in the gate. The same suites ran green per package in the full scripts/ci-local.sh before the run (ts conformance, ts unit suites, integration-tests ts, migrate-ts and runtime-ts real-PG gates), and the gate's configured ts-fast + ts-unit lanes passed on the fixed head.
Full Python regression suite ✅ pass live Re-run on the gate head with the repository's own invocation (uv run --extra integration pytest tests/ -n 8): 4953 passed, 15 skipped. The gate's first attempt used the system python3 without the integration extra, so 8 failed and 17 errored on missing pg8000 and an uninstalled metaobjects package.
Evidence: TS CLI transcripts and summary per scenario
# TS meta verify (live CLI, bun bin/meta.ts) per scenario
== ts-cli-adv-neg-currency-filter.txt
meta: failed to load metadata: ERR_BAD_ATTR_FILTER: object.projection 'acme::adv::OrderView': @filter on 'priceCents' uses a relative date ({ now: ... }), but 'priceCents' is field.currency; relative dates apply only to field.date and field.timestamp.
error: "failed to load metadata: object.projection 'acme::adv::OrderView': @filter on 'priceCents' uses a relative date ({ now: ... }), but 'priceCents' is field.currency; relative dates apply only to field.date and field.timestamp."
code: ERR_BAD_ATTR_FILTER
== ts-cli-adv-neg-fractional-currency.txt
meta: failed to load metadata: ERR_INVALID_ORIGIN: origin.computed on OrderView.fee: 'coalesce' arguments have differing types (currency, double)
error: "failed to load metadata: origin.computed on OrderView.fee: 'coalesce' arguments have differing types (currency, double)"
code: ERR_INVALID_ORIGIN
== ts-cli-adv-pos.txt
EXIT=0
== ts-cli-cycle.txt
meta: failed to load metadata: ERR_INVALID_ORIGIN: origin.computed on Loop.a: @expr refers back to this field through other computed fields; a view cannot inline a cycle.
error: "failed to load metadata: origin.computed on Loop.a: @expr refers back to this field through other computed fields; a view cannot inline a cycle."
code: ERR_INVALID_ORIGIN
== ts-cli-error-computed-unknown-expr-node.txt
meta: failed to load metadata: ERR_UNKNOWN_EXPR_NODE: origin.computed on LlmCallSummary.hasPayload: unknown expression op 'between'
error: "failed to load metadata: origin.computed on LlmCallSummary.hasPayload: unknown expression op 'between'"
code: ERR_UNKNOWN_EXPR_NODE
== ts-cli-error-origin-computed-case-mixed-types.txt
meta: failed to load metadata: ERR_INVALID_ORIGIN: origin.computed on BadCase.x: 'case' results have differing types (string, int)
error: "failed to load metadata: origin.computed on BadCase.x: 'case' results have differing types (string, int)"
code: ERR_INVALID_ORIGIN
== ts-cli-error-origin-computed-case-non-boolean-when.txt
meta: failed to load metadata: ERR_INVALID_ORIGIN: origin.computed on BadWhen.label: a searched 'case' needs a boolean 'when', got int
error: "failed to load metadata: origin.computed on BadWhen.label: a searched 'case' needs a boolean 'when', got int"
code: ERR_INVALID_ORIGIN
== ts-cli-error-origin-computed-case-unknown-key.txt
meta: failed to load metadata: ERR_UNKNOWN_EXPR_NODE: origin.computed on BadNodes.misspelledElse: expression 'case' node takes only case, else, operand, not elsee
error: "failed to load metadata: origin.computed on BadNodes.misspelledElse: expression 'case' node takes only case, else, operand, not elsee"
code: ERR_UNKNOWN_EXPR_NODE
== ts-cli-error-origin-computed-literal-fractional.txt
meta: failed to load metadata: ERR_INVALID_ORIGIN: origin.computed on FracCoalesce.x: 'coalesce' arguments have differing types (long, double)
error: "failed to load metadata: origin.computed on FracCoalesce.x: 'coalesce' arguments have differing types (long, double)"
code: ERR_INVALID_ORIGIN
== ts-cli-error-origin-computed-node-mixed-keys.txt
meta: failed to load metadata: ERR_UNKNOWN_EXPR_NODE: origin.computed on BadNodes.fieldWithCase: expression 'field' node takes only field, not case
error: "failed to load metadata: origin.computed on BadNodes.fieldWithCase: expression 'field' node takes only field, not case"
code: ERR_UNKNOWN_EXPR_NODE
== ts-cli-error-origin-computed-now-bad-duration.txt
meta: failed to load metadata: ERR_UNKNOWN_EXPR_NODE: origin.computed on BadNow.started: expression 'now' must be an ISO-8601 duration string (e.g. '-P7D'), got "7 days ago"
error: "failed to load metadata: origin.computed on BadNow.started: expression 'now' must be an ISO-8601 duration string (e.g. '-P7D'), got \"7 days ago\""
code: ERR_UNKNOWN_EXPR_NODE
== ts-cli-error-relative-date-bad-duration.txt
meta: failed to load metadata: ERR_BAD_ATTR_FILTER: report 'acme::shop::DailyRevenue': @filter on 'purchasedAt' has relative date '90 days', which is not an ISO-8601 duration (e.g. '-P7D', '-PT12H').
error: "failed to load metadata: report 'acme::shop::DailyRevenue': @filter on 'purchasedAt' has relative date '90 days', which is not an ISO-8601 duration (e.g. '-P7D', '-PT12H')."
code: ERR_BAD_ATTR_FILTER
== ts-cli-error-relative-date-bad-startof.txt
meta: failed to load metadata: ERR_BAD_ATTR_FILTER: report 'acme::shop::DailyRevenue': @filter on 'purchasedAt' has startOf 'year'; startOf is one of day, week, month.
error: "failed to load metadata: report 'acme::shop::DailyRevenue': @filter on 'purchasedAt' has startOf 'year'; startOf is one of day, week, month."
code: ERR_BAD_ATTR_FILTER
== ts-cli-error-relative-date-view-host-malformed.txt
meta: failed to load metadata: ERR_BAD_ATTR_FILTER: origin.aggregate in field.int 'recentPurchaseCount' in object.projection 'acme::shop::ProgramPurchaseCounts': @filter on 'purchasedAt' has relative date '7 days ago', which is not an ISO-8601 duration (e.g. '-P7D', '-PT12H').
error: "failed to load metadata: origin.aggregate in field.int 'recentPurchaseCount' in object.projection 'acme::shop::ProgramPurchaseCounts': @filter on 'purchasedAt' has relative date '7 days ago', which is not an ISO-8601 duration (e.g. '-P7D', '-PT12H')."
code: ERR_BAD_ATTR_FILTER
== ts-cli-error-validator-condition-now.txt
meta: failed to load metadata: ERR_BAD_ATTR_VALUE: validator.atLeastOne "Visit.startedByNow" @condition is not a valid expression: a condition takes no 'now' node, since a CHECK can hold neither a CASE nor the current time.
error: "failed to load metadata: validator.atLeastOne \"Visit.startedByNow\" @condition is not a valid expression: a condition takes no 'now' node, since a CHECK can hold neither a CASE nor the current time."
code: ERR_BAD_ATTR_VALUE
== ts-cli-origin-computed-case-over-joined.txt
EXIT=0
== ts-cli-origin-computed-literal-unifies.txt
EXIT=0
== ts-cli-origin-filter-relative-now.txt
EXIT=0
== ts-cli-projection-filter-relative-now.txt
EXIT=0
Evidence: TS CLI transcript, positive project
meta: meta verify — no template.* nodes found; the template gate had nothing to check.
meta: meta verify — not run: schema (--db <url>), codegen (--codegen), deps (--deps), replay (--replay)
verify[6]{gate,ran,ok}:
  templates,true,true
  schema,false,true
  codegen,false,true
  deps,false,true
  requirements,true,true
  replay,false,true
exitCode: 0
summary: "2 gate(s) ran, all clean"
help[1]: no drift and nothing advisory to answer — nothing to do
antiPatterns:
  status: ran
  total: 0
  rows: []
requirements:
  status: ran
  total: 0
  rows: []
overlays:
  status: ran
  total: 0
  rows: []
names:
  status: ran
  total: 0
  rows: []
deprecations:
  status: ran
  total: 0
  rows: []
fields:
  status: ran
  total: 0
  rows: []
notRepresented[2]: "per-gate drift detail for every gate but schema (which template variable drifted, which generated file differs, which migration failed to replay) — printed as text on stderr; this payload carries each gate's pass/fail verdict, and the schema gate's differences in schemaDrift",the loader's own warnings and the agent-context/manifest advisories — printed as text on stderr
EXIT=0
  • Outcome: ⚠️ 3 issues (1 error, 2 warnings) across 1 run (37m53s)

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 4 infos
  • ⚠️ server/typescript/packages/metadata/src/core/attr/meta-attr-expression.ts:168 - adaptsTo lets any numeric literal take any numeric type. That includes a fractional literal beside an integer-backed field. Example: coalesce(priceCents, 9.99) with priceCents a field.currency, or case [{when: ..., then: {value: 1.5}}] else {field: statusId} with statusId a field.long, now unifies to currency or long and loads clean against a field.currency or field.long declaration. Before this change both were refused as (currency, double). The view CASE/COALESCE then yields a numeric 9.99 or 1.5 in a column the field declares as integer minor units or long. That breaks the currency wire rule (integer minor units, no float money) and gives the runtime a value its codec truncates or rejects, all with no load error. Narrower rule: an integer-valued literal (literalType int) adapts to any numeric subtype; a double literal adapts only to double, float and decimal. Same rule at server/csharp/MetaObjects/Core/Attr/ExpressionGrammar.cs:345 (AdaptsTo), server/java/metadata/src/main/java/com/metaobjects/attr/ExpressionAttribute.java:545 (adaptsTo) and server/python/src/metaobjects/loader/validation_passes.py:1296 (_adapts_to). Add a negative case, such as currency beside 9.99, to a shared error fixture.
  • ℹ️ server/typescript/packages/codegen-ts/src/projection/extract-view-spec.ts:1296 - Merge-order hazard between PR 1 and PR 2, not a defect in this PR. The loader now accepts case, now and refs to the projection's own fields in an origin.computed @expr. The unchanged view extractor's resolveExprNode returns undefined for all three (it finds only base.fields()), and the caller continues. So until PR 2 lands, meta migrate silently omits that computed column from the view, while the DTO still declares it. The 1.3.0 hold covers releases, but main sits in this state between the two merges. PR 2 should also turn that continue into a thrown error so the loader/lowering gap can never be silent again.
  • ℹ️ fixtures/conformance/ERROR-CODES.json:55 - The ERR_BAD_ATTR_FILTER description still says a relative date is refused 'outside the @filter of a segment, measure.aggregate or object.report (F1)'. This change makes projection, origin.aggregate and origin.first @filters legal hosts too. This file is not in the changed set, so it was not edited inline. Reword it to list the six legal hosts, matching docs/features/reporting.md:972.
  • ℹ️ server/typescript/packages/metadata/src/loader/reporting-validation.ts:1187 - Inline fix: the F1 refusal message (still reachable on a dataGrid preset) said a relative date is 'legal only in the @filter of a segment, measure.aggregate or object.report'. That became stale when projections and origin.aggregate/first took relative dates. It now lists 'a segment, measure.aggregate, object.report, object.projection, origin.aggregate or origin.first'. Applied identically at server/python/src/metaobjects/loader/validate_reporting.py:1236, server/csharp/MetaObjects/Loader/ValidationPasses.Reporting.cs:1134 and server/java/metadata/src/main/java/com/metaobjects/loader/ReportingValidation.java:1219. No test asserts the old text.
  • ℹ️ server/typescript/packages/metadata/src/loader/validation-passes.ts:1664 - Inline fix: added the ADR-0039 sanctioned-case comments that the new own reads lacked. These are the computed-ref walk's o.ownAttr(ORIGIN_COMPUTED_ATTR_EXPR) (TS here, and C# at server/csharp/MetaObjects/Loader/ValidationPasses.cs:803) and the view-host branch's ownMetaAttrs()/OwnAttrs() (server/typescript/packages/metadata/src/loader/reporting-validation.ts:1173, server/csharp/MetaObjects/Loader/ValidationPasses.Reporting.cs:1109). Comments only; no behaviour change.

🔧 Fix applied.
4 infos still open:

  • ℹ️ server/typescript/packages/codegen-ts/src/projection/extract-view-spec.ts:1296 - Merge-order hazard between PR 1 and PR 2, not a defect in this PR. The loader now accepts case, now and refs to the projection's own fields in an origin.computed @expr. The unchanged view extractor's resolveExprNode returns undefined for all three (it finds only base.fields()), and the caller continues. So until PR 2 lands, meta migrate silently omits that computed column from the view, while the DTO still declares it. The 1.3.0 hold covers releases, but main sits in this state between the two merges. PR 2 should also turn that continue into a thrown error so the loader/lowering gap can never be silent again.
  • ℹ️ server/typescript/packages/metadata/src/loader/reporting-validation.ts:1187 - Inline fix: the F1 refusal message (still reachable on a dataGrid preset) said a relative date is 'legal only in the @filter of a segment, measure.aggregate or object.report'. That became stale when projections and origin.aggregate/first took relative dates. It now lists 'a segment, measure.aggregate, object.report, object.projection, origin.aggregate or origin.first'. Applied identically at server/python/src/metaobjects/loader/validate_reporting.py:1236, server/csharp/MetaObjects/Loader/ValidationPasses.Reporting.cs:1134 and server/java/metadata/src/main/java/com/metaobjects/loader/ReportingValidation.java:1219. No test asserts the old text.
  • ℹ️ server/typescript/packages/metadata/src/loader/validation-passes.ts:1664 - Inline fix: added the ADR-0039 sanctioned-case comments that the new own reads lacked. These are the computed-ref walk's o.ownAttr(ORIGIN_COMPUTED_ATTR_EXPR) (TS here, and C# at server/csharp/MetaObjects/Loader/ValidationPasses.cs:803) and the view-host branch's ownMetaAttrs()/OwnAttrs() (server/typescript/packages/metadata/src/loader/reporting-validation.ts:1173, server/csharp/MetaObjects/Loader/ValidationPasses.Reporting.cs:1109). Comments only; no behaviour change.
  • ℹ️ CHANGELOG.md:151 - CHANGELOG.md:151-153 says a case's results and a coalesce's arguments "unify a numeric literal with any numeric field". After the R3-1 fix that is wrong for fractional literals. A fractional literal such as 9.99 or 1.5 unifies only with double, float or decimal, and is refused beside long, int or currency. The new fixture error-origin-computed-literal-fractional gates this refusal but the entry never names it. Reword to say a whole-number literal unifies with any numeric field and a fractional one only with double, float or decimal, and list the fixture.
⚠️ **Test** - 3 issues (1 error, 2 warnings)
  • ⚠️ Full TypeScript server suite (cd server/typescript &amp;&amp; bun test) hit the 1500s timeout (TS_EXIT=124) with no pass/fail summary, so regression status for TS is unknown beyond the baseline ts-fast/ts-unit lanes.
  • ⚠️ Full Python suite (python3 -m pytest tests -n 4): 8 failed, 17 errors, 4620 passed. Failures look environmental: ModuleNotFoundError pg8000 (12 tests), No module named metaobjects.cli / PackageNotFoundError for metaobjects, and ruff/mypy-related tests. None were run against the base commit, so they are not proven pre-existing.
  • 🚨 live validation verdict: no-go (14 of 15 scenarios were driven live against the product); failed: Full Python regression suite
  • Live validation: 15 of 15 scenarios pass. The gate recorded no-go on the Python row above, which came from its own interpreter setup; the test step was approved on the re-run result.
Scenario Result Live Evidence
Positive: simple case with enum operand, string when, integer case on long statusId, integer literal coalesce beside currency, non-cycle computed chain, loads clean in TypeScript CLI ✅ pass live gate transcript ts-cli-adv-pos.txt (EXIT=0, bun server/typescript/packages/cli/bin/meta.ts verify, synthetic project)
Positive: same adversarial project loads clean in Python loader ✅ pass live Python load_fixture on the synthetic positive project returns errors=[]
Adversarial: projection @filter gte {now} on field.currency refused (F-2) in TS CLI ✅ pass live gate transcript ts-cli-adv-neg-currency-filter.txt: ERR_BAD_ATTR_FILTER
Adversarial: same currency projection filter refused in Python ✅ pass live load_fixture errors=['ERR_BAD_ATTR_FILTER']
Adversarial: coalesce(currency field, 9.99) refused (R3-1) in TS and Python ✅ pass live ts-cli-adv-neg-fractional-currency.txt: ERR_INVALID_ORIGIN; Python errors=['ERR_INVALID_ORIGIN']
Adversarial: computed-to-computed mutual cycle refused (F4) in TS CLI ✅ pass live ts-cli-cycle.txt: ERR_INVALID_ORIGIN 'a view cannot inline a cycle'
Adversarial: mixed-kind node (field+case) and misspelled else refused (F-1) in TS CLI ✅ pass live ts-cli-error-origin-computed-node-mixed-keys.txt and ts-cli-error-origin-computed-case-unknown-key.txt: ERR_UNKNOWN_EXPR_NODE
Adversarial: 'now' with non-ISO duration '7 days ago' refused in origin.computed (F2) in TS CLI ✅ pass live ts-cli-error-origin-computed-now-bad-duration.txt: ERR_UNKNOWN_EXPR_NODE
Adversarial: case result type mix, non-boolean searched when, and view-host malformed relative date refused in TS CLI ✅ pass live ts-cli-error-origin-computed-case-mixed-types.txt, ts-cli-error-origin-computed-case-non-boolean-when.txt, ts-cli-error-relative-date-view-host-malformed.txt
Adversarial: validator @condition containing now refused in TS CLI ✅ pass live ts-cli-error-validator-condition-now.txt: ERR_BAD_ATTR_VALUE
Shared conformance corpus: Python, new fixtures ✅ pass live pytest tests/conformance/test_conformance.py: 471 passed
Shared conformance corpus: C# (MetaObjects.Conformance.Tests) ✅ pass live dotnet test MetaObjects.Conformance.Tests: Passed 2457, Failed 0
Shared conformance corpus: Java metadata ConformanceTest ✅ pass live mvn -o -pl metadata test -Dtest='Conformance': ConformanceTest 934 run, 0 failures
Full TypeScript server regression suite ✅ pass live A bare bun test over server/typescript timed out at 1500s in the gate. The same suites ran green per package in the full scripts/ci-local.sh before the run (ts conformance, ts unit suites, integration-tests ts, migrate-ts and runtime-ts real-PG gates), and the gate's configured ts-fast + ts-unit lanes passed on the fixed head.
Full Python regression suite ✅ pass live Re-run on the gate head with the repository's own invocation (uv run --extra integration pytest tests/ -n 8): 4953 passed, 15 skipped. The gate's first attempt used the system python3 without the integration extra, so 8 failed and 17 errored on missing pg8000 and an uninstalled metaobjects package.
  • scripts/ci-local.sh --only ts-fast --only ts-unit --strict-toolchains
  • scripts/ci-local.sh --only ts-fast --only ts-unit --strict-toolchains (baseline, green per context)
  • bun server/typescript/packages/cli/bin/meta.ts verify --templates against 16 shared fixture inputs and 3 synthetic projects (live CLI)
  • Python conformance_adapter.load_fixture on three synthetic projects (positive, currency filter, fractional currency)
  • python3 -m pytest tests/conformance/test_conformance.py -q (471 passed)
  • python3 -m pytest tests -q -n 4 (full suite: 8 failed, 17 errors, 4620 passed)
  • dotnet test server/csharp/MetaObjects.Conformance.Tests --filter Conformance (2457 passed)
  • mvn -o -q -pl metadata test -Dtest='*Conformance*' (ConformanceTest 934 passed)
  • bun test in server/typescript (full suite, timed out at 1500s, no result)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Load and validate, in TypeScript, C#, Java (Kotlin through it) and Python:

- a relative date ({ now: ... }) in a projection's and an origin.first /
  origin.aggregate's @filter, shape-checked where it is declared;
- case and now in an origin.computed expression, and a ref in it that names
  another of the projection's own fields (never itself, never an aggregate)
  before a base field.

error-relative-date-origin-host and error-relative-date-wrong-host are
removed: those hosts now accept the value. New fixtures:
projection-filter-relative-now, origin-filter-relative-now,
origin-computed-case-over-joined, error-origin-computed-case-mixed-types.
@dmealing
dmealing merged commit 8474465 into main Nov 12, 2026
9 checks passed
@dmealing
dmealing deleted the fm/mo-rc19-pr3-expressions branch November 12, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant