Skip to content

[finding] 仓内存在 5 个独立的过滤器→谓词编译器,每次语义裁决成本 ×5 —— 值得立「谓词编译收敛」调查程序(#5298 成本清单副产品) #5930

Description

@os-zhuang

Ruled: 5902355785 · letter A's end state in B's order, started in v18 — D2 T1, D3 spec (the data subpath, never the root entry), D4 b, D5 amend ADR-0053 D-D1 in place (Tier H), D6 retire, D7 in scope; step 1 is the ADR amendment draft for the maintainer's hand · 2026-09-30T01:41Z
Blocked-by: #20822

Restart-when: the v17 board holds no open DEFECT-CLASS card in any lane — defect-class means type:Bug, or the bug label, or the security label, or a card whose subject is a violated declared contract. ⛔ Do NOT read this as label:target:v17 label:bug — that spelling returned 0 on 2026-08-20 while the board still held two open security defects, and releasing on it would have been wrong (see the 2026-08-20 guard comment)

⛔ 触发行 2026-08-20 已改写:原文是一条代理判据(gh issue list --label target:v17 --label bug --state open returns 0),它当天就已经归零,而它代表的实质没有发生。 改写只动这一行,正文其余部分逐字未动。原引用的 v17 bug-focus 席位 #8667 / #8668 保留为出处。

#5298 第一棒成本清单(2026-08-06)的结构性副产品,按事实记录,unassigned、交分诊定级。维护者在 PM 会话确认「值得记账」。

事实

同一个 FilterCondition 语义,今天由 5 个互不继承的编译/求值器各自实现:

# 面 位置 服务的读路径
1 driver-sql(+wasm/turso-local 继承) sql-driver.ts CRUD
2 turso RemoteTransport remote-transport.ts buildWhereSQL CRUD(remote 模式)
3 service-analytics read-scope-sql read-scope-sql.ts RLS 读侧(analytics)
4 service-analytics filter-normalizer filter-normalizer.ts Cube/dashboard
5 formula matchesFilterCondition matches-filter.ts RLS 写侧 check / 内存求值

(第六个半:objectql having-filter.ts,见 #5905。driver-memory/mongodb 另有各自实现,现冻结。)

为什么是结构性问题

建议方向(不代裁决,供调查程序评估)

关联:#5298(成本清单 §1)、#5903、#5905、#5146、#5326、#5335、#5239/#5240。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions