Commit 7ab8c23
committed
feat(spec)!: 退役 DriverCapabilities 31 个零读者能力位 —— 全表活性审计,3 活 31 死 (#4634)
#4484 findStream 收尾发现 streaming 位指向已删除的契约方法;按 issue 自述倾向对
DriverCapabilitiesSchema 全部 34 位做两仓活性审计(objectstack + cloud,objectui
零引用确认):仅 queryDateGranularity(engine 聚合分派 + date-bucket parity)、
autonumber(engine 让渡自增生成)、batchSchemaSync(engine 与方法存在性 AND)
三位有决策读者;其余 31 位人人写、无人读,describe 承诺的引擎降级路径从未存在,
且零读者让写错的值(SqlDriver streaming:false 却实现 findStream;InMemoryDriver
streaming:true 却全表物化)三个版本无人发现 —— ADR-0078 假可供性。
- driver.zod.ts:31 位 retiredKey() 墓碑(非 strict schema,裸删会被静默剥离;
DriverConfigSchema.capabilities 及 SQL/NoSQL 扩展确有 parse 路径),逐位
prescription 指明真实机制(方法存在性门控:beginTransaction / aggregate /
syncSchema;#4001 教训);batchSchemaSync .default(false) → .optional()
(两处读者本就按缺省=false 消费)
- ADR-0087 评估(#4484/#4764 先例):driver 是代码不是 stack 树元数据,
supports 字面量在 driver 类里、DriverConfig 是插件 TS 配置,均非 sys_metadata
形态(stack 树近邻 datasource.capabilities 已于 #4583 单独退役)⇒ 不登记 D2
conversion,登记 D3 semantic migration driver-capabilities-inert-bits-removed
- driver 字面量同步:memory {} / mongodb { batchSchemaSync: true } /
sql { queryDateGranularity, autonumber, batchSchemaSync: false }
- 回归 pin(driver.test.ts):31 位逐位 parse 拒绝 + prescription 断言;
compiler-API 断言 34 键形状且退役位类型坍缩为 undefined、活位可写(反空转
守卫);S1(schema 复活 streaming)5 pin 红、S2(driver 字面量复活)TS2416
红,均实跑验证后还原
- 生成物:authorable-surface 31 行 [RETIRED]、spec-changes / upgrade-guide /
references docs 全量再生成;14 项 spec 门禁全绿,全仓 typecheck 122 任务绿
- changeset:spec + 三 driver 包 major,FROM→TO 映射与一行修复齐备
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0176qgxgCXTJCUv4YFLtusP91 parent 695cfbd commit 7ab8c23
24 files changed
Lines changed: 723 additions & 1310 deletions
File tree
- .changeset
- content/docs
- protocol/objectql
- references/data
- docs
- packages
- plugins
- driver-memory/src
- driver-mongodb/src
- driver-sqlite-wasm/src
- driver-sql/src
- spec
- src
- contracts
- data
- migrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
753 | | - | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
754 | 755 | | |
755 | 756 | | |
756 | 757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments