You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
skills: teach that a column with no value fails an ordering filter, and the per-measure filter pushdown (follow-up of #33698) #33868
Filing gate: ① (Skills-docs: follow-up owed by PR #33854 / card #33698, Metadata-protocol: semantic per contract record 6894395884 S1 and seat amendment 6894412038).
What changes for an author (once PR #33854 lands).
A column with no value (null or absent) fails $gt, $gte, $lt, $lte and $between in every filter position the engine evaluates: a measure's own filter, having, and the in-memory where that plugin drivers use. So count where amount $lte 0 no longer counts rows with no amount, and having: { avg_amount: { $lte: 0 } } no longer keeps an empty group. This was already true on SQL where. $ne, $nin, $notContains, $exists, $null, the equality family and a null comparand are unchanged.
On a driver that declares the new DriverCapabilities.aggregationFilter bit (driver-sql; driver-turso in local mode), a per-measure filter runs in the database as a conditional aggregate. It answers what the same filter as where answers on that datasource, including the text collation, and it refuses what where refuses (for example a reference to an undeclared column: 400 INVALID_FILTER).
Where to teach it (measured by grep; the skills seat confirms):skills/objectstack-query/rules/filters.md (the no-value rule), skills/objectstack-query/rules/aggregation.md (measure filter: no-value rule, pushdown and where parity), skills/objectstack-ui/rules/dashboards.md if it states how a measure filter is evaluated, plus an eval case in skills/objectstack-query/evals/.
Reach. Authors and AI builders writing analytics measures and having. Without this, the skill teaches nothing about the no-value rule, and an author can expect $lte 0 to count empty amounts.
Teach that a column with no value fails an ordering filter, plus the per-measure filter pushdown (#33698, Metadata-protocol: semantic). A semantic change authors must know, so p2. It stays blocked on PR #33854.
Claim: PM loop round 1
Session: session_01ADHkmRxXmVQ41fqnaTPGAv
Account: os-steve
Branch: claude/project-thread-xamcki
Thread session: session_01ADHkmQokeaWJKGm2S7ZrDA
Worktree: objectstack-issue-33868
Domain: domain:skills
Seat: domain:skills#2
File surface: skills/objectstack-query/rules/{filters,aggregation}.md, skills/objectstack-ui/rules/dashboards.md only if it states how a measure filter is evaluated, one case in skills/objectstack-query/evals/filters-pagination-search.json, ratchet rows only if they move, one .changeset/33868-*.md (stop on breach; explain in the report)
Container & model: S, mode:thread, model: CONTRACT_REVIEW_TIER (dispatch-gates --tier: MANDATORY claude-fable-5-2 — skills/**, clause ①), effort high; the thread is served below that tier, so authoring runs in an isolated os-dev subagent pinned to it on the same branch, recorded in the PR body and deviations.
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 6896874152
Premise: holds (Blocked-by: #33698 cleared: PR #33854 merged as 0ac112fc; no skills/** file names aggregationFilter or the no-value ordering rule)
Serial constraints cleared: none — no in-flight claim or open PR of this lane on skills/objectstack-query/**.
Ruling-ref: Skills-docs: follow-up owed by PR #33854 (contract record 6894395884 S1, amendment 6894412038); Steve 「尽快把 p1 p2 卡处理完」 (2026-11-15T14:15Z). Order: /mnt/project-files/skills-seat2/standard-order.md + 33868-delta.md (project files). Claimed 2026-11-15T15:46Z.
{
"issue": 33868,
"status": "done",
"branch": "claude/project-thread-xamcki",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34014",
"session": "session_01ADHkmQokeaWJKGm2S7ZrDA",
"premise_still_valid": true,
"summary": "objectstack-query rules/filters.md teaches that $gt/$gte/$lt/$lte/$between never match a null or absent column (where, a measure filter, having), with the $or + $null: true spelling and the refused null ordering comparand; rules/aggregation.md drops the false 'a measure filter always forces the in-memory path' sentence and teaches that a driver declaring supports.aggregationFilter (driver-sql; driver-turso outside remote mode) runs it in the database, answering and refused as that datasource's where; having on an empty group's avg/min/max is null and fails ordering. One eval case (id 8). filters.md paid in-file by two restatements (homes named in the PR body); no ratchet row moves. Draft PR, Tier H.",
"tests": "No code changed; nothing to ablate. Acceptance gates at a7754819: pnpm --filter @objectstack/spec check:skill-docs exit 0 (Skill docs in sync); check:skill-refs exit 0 (9 generated files in sync); check:skill-examples exit 0 (346 prose examples type-check across 3 surfaces); node scripts/check-skills-token-ratchet.mjs exit 0 (57 authored bundle files within their ceilings; filters.md 2473/2482, aggregation.md 2221/2357) and --self-test exit 0.",
"gates": "Local, head a7754819 (origin/main 03b4d2d1 merged in): build closure turbo build --filter=./packages/** under os-verify-lock VERDICT command-exit 0 (5m35s); dispatch-gates --commands derived 45, all 45 exit 0; dispatch-gates --ran: 45 run, 0 NOT-MEASURED (a DERIVED zero); 3 extra runs outside the derivation (spec check:skill-docs/skill-refs/skill-examples). CI families: left to PR #34014 check-runs (in_progress at report time).",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "5 — issue_read get_comments x2, issue_read get x1 (authoring subagent), issue_read get_comments x1 (authoring subagent), pull_request_read get x1; no write tool",
"api_writes": "2 — relay pr_create (PR #34014, read-back 12020 bytes sent = stored, assignee os-steve, labels none); relay comment (this os-dev-report on #33868). git push not counted.",
"line_budget": "filters.md 211 -> 209 lines (9925 -> 9892 B, 2482 -> 2473 tok, row 2482 unchanged); aggregation.md 262 -> 268 lines (8381 -> 8883 B, 2096 -> 2221 tok, row 2357 unchanged); eval json 75 -> 85 lines (not ratcheted); all SKILL.md 4596 -> 4596 lines; bundle ratcheted 187685 -> 187801 tok (+116), eval fixtures 46508 -> 46748 (+240), total 245988 -> 246344 (+356).",
"files_changed": [
".changeset/33868-skills-no-value-ordering-measure-filter.md",
"skills/objectstack-query/evals/filters-pagination-search.json",
"skills/objectstack-query/rules/aggregation.md",
"skills/objectstack-query/rules/filters.md"
],
"deviations": [
"Authoring and the commit ran in an isolated os-dev subagent pinned to the contract-review tier in this worktree (thread served below it; per the delta and the claim); push, main merge, relay writes, gates and report ran in the thread.",
"origin/main merged once into the branch (a7754819) before the gate run, because the first derivation reported a stale tree.",
"dashboards.md not touched: it does not state how a measure filter is evaluated."
],
"open_questions": [
{
"question": "The delta's unchanged-operator list omits $empty, which the code keeps in NO_VALUE_ANSWERED_BY_OPERATOR with $ne/$nin/$notContains/$exists/$null. The skill does not teach what those answer on a no-value column (a standing rule, not this card's change). Add one clause later?",
"options": [
"A leave as is",
"B a follow-up card adds one clause plus an eval"
],
"recommendation": "A, because the card asked only for the ordering rule and the pushdown, and filters.md sits 9 tokens under its ceiling"
},
{
"question": "filters.md ratchet row stays at 2482 with 9 tokens headroom. Re-lock it at 2473?",
"options": [
"A leave (shrink-only gate accepts it; order moves rows only when measurement passes them)",
"B re-lock at 2473 in a one-line edit"
],
"recommendation": "A, because the order says rows move only if they must"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — whether a pushed-down measure filter on driver-sql answers $like/$ilike, which filters.md says objectql having and service-analytics refuse, was not examined (read-only inference, no repro)."
]
}
Activity
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:skills· p2 (pm:blockedkept) · 2026-11-15T12:52Z⛔ Not a claim.
Teach that a column with no value fails an ordering filter, plus the per-measure filter pushdown (#33698,
Metadata-protocol: semantic). A semantic change authors must know, so p2. It stays blocked on PR #33854.objectstack-fleet commentedon Nov 15, 2026
domain:spec#4 · os-project-manager · session_01FEkQ5mecqk8M5q9vjKj6aS
Unblocked · 2026-11-15T15:29Z
Blocked-by: #33698is cleared: PR #33854 merged as0ac112fc.pm:blocked→pm:queue. ⛔ Not a claim. Triage routes and grades it.objectstack-fleet commentedon Nov 15, 2026
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv
Claim: PM loop round 1
Session:
session_01ADHkmRxXmVQ41fqnaTPGAvAccount:
os-steveBranch:
claude/project-thread-xamckiThread session:
session_01ADHkmQokeaWJKGm2S7ZrDAWorktree:
objectstack-issue-33868Domain:
domain:skillsSeat:
domain:skills#2File surface:
skills/objectstack-query/rules/{filters,aggregation}.md,skills/objectstack-ui/rules/dashboards.mdonly if it states how a measure filter is evaluated, one case inskills/objectstack-query/evals/filters-pagination-search.json, ratchet rows only if they move, one.changeset/33868-*.md(stop on breach; explain in the report)Container & model:
S,mode:thread,model: CONTRACT_REVIEW_TIER(dispatch-gates --tier: MANDATORY claude-fable-5-2 —skills/**, clause ①), effort high; the thread is served below that tier, so authoring runs in an isolated os-dev subagent pinned to it on the same branch, recorded in the PR body and deviations.Clause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 6896874152
Premise: holds (
Blocked-by: #33698cleared: PR #33854 merged as0ac112fc; noskills/**file namesaggregationFilteror the no-value ordering rule)Serial constraints cleared: none — no in-flight claim or open PR of this lane on
skills/objectstack-query/**.Ruling-ref:
Skills-docs: follow-upowed by PR #33854 (contract record 6894395884 S1, amendment 6894412038); Steve 「尽快把 p1 p2 卡处理完」 (2026-11-15T14:15Z). Order:/mnt/project-files/skills-seat2/standard-order.md+33868-delta.md(project files). Claimed 2026-11-15T15:46Z.objectstack-fleet commentedon Nov 15, 2026
domain:skills#2 · os-steve · session_01ADHkmQokeaWJKGm2S7ZrDA
os-dev-report
{ "issue": 33868, "status": "done", "branch": "claude/project-thread-xamcki", "pr": "https://github.com/objectstack-ai/objectstack/pull/34014", "session": "session_01ADHkmQokeaWJKGm2S7ZrDA", "premise_still_valid": true, "summary": "objectstack-query rules/filters.md teaches that $gt/$gte/$lt/$lte/$between never match a null or absent column (where, a measure filter, having), with the $or + $null: true spelling and the refused null ordering comparand; rules/aggregation.md drops the false 'a measure filter always forces the in-memory path' sentence and teaches that a driver declaring supports.aggregationFilter (driver-sql; driver-turso outside remote mode) runs it in the database, answering and refused as that datasource's where; having on an empty group's avg/min/max is null and fails ordering. One eval case (id 8). filters.md paid in-file by two restatements (homes named in the PR body); no ratchet row moves. Draft PR, Tier H.", "tests": "No code changed; nothing to ablate. Acceptance gates at a7754819: pnpm --filter @objectstack/spec check:skill-docs exit 0 (Skill docs in sync); check:skill-refs exit 0 (9 generated files in sync); check:skill-examples exit 0 (346 prose examples type-check across 3 surfaces); node scripts/check-skills-token-ratchet.mjs exit 0 (57 authored bundle files within their ceilings; filters.md 2473/2482, aggregation.md 2221/2357) and --self-test exit 0.", "gates": "Local, head a7754819 (origin/main 03b4d2d1 merged in): build closure turbo build --filter=./packages/** under os-verify-lock VERDICT command-exit 0 (5m35s); dispatch-gates --commands derived 45, all 45 exit 0; dispatch-gates --ran: 45 run, 0 NOT-MEASURED (a DERIVED zero); 3 extra runs outside the derivation (spec check:skill-docs/skill-refs/skill-examples). CI families: left to PR #34014 check-runs (in_progress at report time).", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "5 — issue_read get_comments x2, issue_read get x1 (authoring subagent), issue_read get_comments x1 (authoring subagent), pull_request_read get x1; no write tool", "api_writes": "2 — relay pr_create (PR #34014, read-back 12020 bytes sent = stored, assignee os-steve, labels none); relay comment (this os-dev-report on #33868). git push not counted.", "line_budget": "filters.md 211 -> 209 lines (9925 -> 9892 B, 2482 -> 2473 tok, row 2482 unchanged); aggregation.md 262 -> 268 lines (8381 -> 8883 B, 2096 -> 2221 tok, row 2357 unchanged); eval json 75 -> 85 lines (not ratcheted); all SKILL.md 4596 -> 4596 lines; bundle ratcheted 187685 -> 187801 tok (+116), eval fixtures 46508 -> 46748 (+240), total 245988 -> 246344 (+356).", "files_changed": [ ".changeset/33868-skills-no-value-ordering-measure-filter.md", "skills/objectstack-query/evals/filters-pagination-search.json", "skills/objectstack-query/rules/aggregation.md", "skills/objectstack-query/rules/filters.md" ], "deviations": [ "Authoring and the commit ran in an isolated os-dev subagent pinned to the contract-review tier in this worktree (thread served below it; per the delta and the claim); push, main merge, relay writes, gates and report ran in the thread.", "origin/main merged once into the branch (a7754819) before the gate run, because the first derivation reported a stale tree.", "dashboards.md not touched: it does not state how a measure filter is evaluated." ], "open_questions": [ { "question": "The delta's unchanged-operator list omits $empty, which the code keeps in NO_VALUE_ANSWERED_BY_OPERATOR with $ne/$nin/$notContains/$exists/$null. The skill does not teach what those answer on a no-value column (a standing rule, not this card's change). Add one clause later?", "options": [ "A leave as is", "B a follow-up card adds one clause plus an eval" ], "recommendation": "A, because the card asked only for the ordering rule and the pushdown, and filters.md sits 9 tokens under its ceiling" }, { "question": "filters.md ratchet row stays at 2482 with 9 tokens headroom. Re-lock it at 2473?", "options": [ "A leave (shrink-only gate accepts it; order moves rows only when measurement passes them)", "B re-lock at 2473 in a one-line edit" ], "recommendation": "A, because the order says rows move only if they must" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — whether a pushed-down measure filter on driver-sql answers $like/$ilike, which filters.md says objectql having and service-analytics refuse, was not examined (read-only inference, no repro)." ] }Stamped 2026-11-15T16:17Z.
Generated by Claude Code
objectstack-fleet commentedon Nov 15, 2026
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv
ACCEPT → PR #34014 comment 6897900323 (head
d47493ba, Tier H, held for the maintainer; at-tier PASS 6897568297 + delta 6897881498).objectstack-fleet commentedon Nov 15, 2026
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv
Landed: PR #34014 merged 2026-11-15T17:23Z; card closed by its
Fixesline.pm:dispatchedreleased.feat(spec, objectql, driver-sql, driver-turso): run a per-measure agg…
docs(skills): teach that a column with no value fails an ordering fil…