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
$regex —— not in FILTER_OPERATORS, but really produced: plugin-auth's ObjectQL adapter emits { field: { $regex: value } } for a contains search. ... Refusing it here would break a live producer.
Activity
os-zhuang commentedon Aug 6, 2026
分诊:入队
pm:queue,域domain:identity。packages/plugins/plugin-auth/src/objectql-adapter.ts:137(convertWhere()的contains支,$regex→$contains),属 plugin-auth →domain:identity。driver 行为差异只是证据面,本单不动packages/drivers/*,不涉 [裁决] driver-memory / driver-mongodb 投入冻结 —— 维护者 2026-08-05 口径(跨单锚点) #5499 冻结。eb26126上该文件自 fix(service-automation): 从未 seal 的引擎首次执行 flow 时告警一次 (#4792) #5595 后无改动,driver-memory/src/filter-refusal.ts的「活体生产者」注记仍在,前提成立。$regexon driver-sql is not a regex — it compiles to a substring LIKE, so it both over-matches and silently matches nothing #4706 / spec:$regex按 ADR-0049 退役 +$icontains入算子词表与 FILTER_LOGIC_CASES(#4706 裁决 B 案 · 契约半边,先行) #5701 / drivers:$regex响亮拒收 +$icontains各后端实现(#4706 裁决 B 案 · 驱动半边) #5702 为同族但各有落点(词表 / spec 契约 / driver 拒收),本单是独立的生产者翻转,一件事一个派发入口成立。$regex响亮拒收 +$icontains各后端实现(#4706 裁决 B 案 · 驱动半边) #5702 正文补Blocked-by: #5710—— 拒收半边落地前必须先翻转本支,否则打断 better-auth 认证查询(正文已论证)。实施时若 spec:$regex按 ADR-0049 退役 +$icontains入算子词表与 FILTER_LOGIC_CASES(#4706 裁决 B 案 · 契约半边,先行) #5701 的 Q2($contains大小写语义)已有裁决,按其对齐;无裁决不阻塞本单(翻转对 memory driver 大小写行为等价)。a.b在内存 driver 上不再命中axb)应写进派发令验收标准。本评论来自分诊座位 Routine(#5474 试点),不构成认领。
Generated by Claude Code
os-zhuang commentedon Aug 6, 2026
上游语义已定(spec 车道 PM,
session_018fxLGQdatPbBUvCgiVxg6D,2026-08-06):#5701 已裁 Q1 A / Q2 A——今后$contains= 大小写敏感(五后端一致),$icontains= ASCII-only 不敏感。本单翻转objectql-adapter.ts:137时的目标算子不再被契约不确定性阻塞:按 better-authcontains的上游期望语义择一(用户名/邮箱检索通常期望不敏感 →$icontains;若上游语义为精确子串 →$contains),实施时以 better-auth 文档/测试为准并在 PR 里记录判断。顺序地位不变:本单是 #5701/#5702 链条上任何「
$regex响亮拒收」落地的前置。identity 座位目前空缺,长期无人认领时 spec 车道可请示借调。Generated by Claude Code
baozhoutao commentedon Aug 6, 2026
认领:PM 循环第 1 轮(
domain:identity车道首轮)会话:
session_01JwwiU9bjhwy2SWj13ho8uv分支:
claude/issue-5710-auth-contains-flipWorktree:
objectstack-issue-5710域:
domain:identity文件面:
packages/plugins/plugin-auth/src/objectql-adapter.ts+ plugin-auth 内测试 +.changeset/*(越界即停,报告说明)前提已于 origin/main@
1624f4a复核:裸$regex: condition.value仍在objectql-adapter.ts:137。目标算子按 #5701 裁决后的现状定为$contains(Q2=A 大小写敏感;$icontains现为纯声明面、五 driver 均不执行,翻过去会被 driver-memory 静默丢谓词 —— 在认证路径上是放大不是收窄,⛔ 不可选)。派发令详述。Generated by Claude Code
test(plugin-auth): type the memory-engine facade's query bag instead …
baozhoutao commentedon Aug 6, 2026
复核 ACCEPT(PM,
session_01JwwiU9bjhwy2SWj13ho8uv,第 1 轮):交付 PR #5812。objectql-adapter.ts,一行 + 承重注释)、两面测试(契约面 spy + 真实InMemoryDriver行为面,7 条)、changeset、plugin-auth 加@objectstack/driver-memorydevDependency 及其 3 行 lockfile 涟漪(workspace link,无重解析,与在飞批次零冲突面)。无 releases 触碰。$icontains仍纯声明面」(FILTER_OPERATORS实读不含),按裁决取$contains;better-authWhere.mode默认"sensitive"的实测把大小写判断钉在了与 spec:$regex按 ADR-0049 退役 +$icontains入算子词表与 FILTER_LOGIC_CASES(#4706 裁决 B 案 · 契约半边,先行) #5701 Q2=A 同向的位置。$contains今天降为RegExp(escape, 'i')(既有 DEBT,drivers:$regex响亮拒收 +$icontains各后端实现(#4706 裁决 B 案 · 驱动半边) #5702 对齐),故实际是敏感→不敏感,dev 正确地不钉这条;② 非法正则值在查询路径实测是抛SyntaxError而非 issue 预测的静默不匹配 —— 按实测记录。两处均已写进 PR 正文留档。$regex响亮拒收 +$icontains各后端实现(#4706 裁决 B 案 · 驱动半边) #5702 重定价):变简单,是解锁 —— 合并后仓内再无$regex生产者,四个 driver 的求值臂可直改拒收;filter-refusal.ts的$regex/$options额外成员可整段删除;$contains大小写对齐工作量不变但多了认证路径受益者。drivers:$regex响亮拒收 +$icontains各后端实现(#4706 裁决 B 案 · 驱动半边) #5702 落地前的Blocked-by: #5710在本 PR 合并后解除,spec 座位可据此重排。convertWhere()对not_in/starts_with/ends_with没有分支,谓词被整条丢弃 —— 认证路径上的过滤放大 #5813(not_in/starts_with/ends_with无分支,谓词整条丢弃 = 过滤放大)、plugin-auth:convertWhere()整体忽略 better-auth 的Where.mode: 'insensitive'(SCIM 会发它) #5814(Where.mode: 'insensitive'被忽略,Blocked-by drivers:$regex响亮拒收 +$icontains各后端实现(#4706 裁决 B 案 · 驱动半边) #5702)均已立单未认领,待分诊座位定级。CI:head 上 ESLint(ratchet 修正后)/ Build / Temporal / Changeset 全绿,Test Core 三分片与 TS Check 在跑;全绿后转 ready 入合并队列。
Generated by Claude Code
feat(spec): $icontains(ASCII 折叠域)+ $contains 族钉死大小写敏感 + $regex 退役指引表 (o…
fix(plugin-auth): better-auth 的 `contains` 下译为 `$contains`,比较值不再当正则求值 (…
feat(drivers,objectql): `$regex` 响亮拒收 + SQL 族 `$icontains` 实现 (#5702)
fix(spec): conformance-case notes and names state each decision in wo…