deliver: 交付收口(引擎代为提交)
This commit is contained in:
parent
1083c66273
commit
dc9e51b6ab
@ -106,3 +106,43 @@ RESULT: PASS
|
|||||||
- 真源侧:`dev-notes-m11b2c-runtime-ext.md`;迁移:`dev-notes-m11b2a-world-sync-migration.md`;A3 修复:`m11b2c-a3-fix-notes.md`
|
- 真源侧:`dev-notes-m11b2c-runtime-ext.md`;迁移:`dev-notes-m11b2a-world-sync-migration.md`;A3 修复:`m11b2c-a3-fix-notes.md`
|
||||||
- RBAC 口径:`m11b2c-rbac-path-declaration.md`;实跑留证:`m11b2c-tests-result.md` 及各 `m11b2c-tests-*-raw.log`
|
- RBAC 口径:`m11b2c-rbac-path-declaration.md`;实跑留证:`m11b2c-tests-result.md` 及各 `m11b2c-tests-*-raw.log`
|
||||||
- 模块技能:`modules/world_sync/skill/SKILL.md`;上一份工作日志:`modules/world_sync/docs/work-log-2026-09-20.md`
|
- 模块技能:`modules/world_sync/skill/SKILL.md`;上一份工作日志:`modules/world_sync/docs/work-log-2026-09-20.md`
|
||||||
|
|
||||||
|
|
||||||
|
## 6. T2 重做补充(2026-09-22,响应 QC #1~#4)
|
||||||
|
|
||||||
|
本轮不改任何代码,只补文档与收口。补充要点(详版见 `projects/pbls/docs/02-develop/dev-notes.md` `[M11b-2c]` 章 §7):
|
||||||
|
|
||||||
|
### 6.1 伴生交付件 code_files.md(QC #1)
|
||||||
|
|
||||||
|
新建 `projects/pbls/deliverables/agent.develop/kICTWazBqgIWtKNO7sz8A_code_files.md`,逐条列出 M11b-2c 涉及文件的路径 + `wc -c` 实测字节数 + `grep -n` 行号锚点,数字来源落盘 `projects/pbls/docs/02-develop/m11b2c-t2-code-files-measure.log`。dev-notes §6 的引用已改为工作空间根相对全路径。
|
||||||
|
|
||||||
|
### 6.2 本模块文件的实测锚点(复核一致)
|
||||||
|
|
||||||
|
| 文件 | 字节数 | 锚点 |
|
||||||
|
|---|---|---|
|
||||||
|
| `world_sync/pbl_runtime_tx.py` | 23584 | `:296 _set_isolation` / `:310 read_entity_state` / `:351 write_event_with_state` / `:403-413 expected_version 校验` / `:439-444 ConcurrentStateConflict` / `:517 isolation_level_applied` |
|
||||||
|
| `world_sync/pbl_runtime_tx_sqlor.py` | 5956 | `:126 write_event_with_state` / `:154 read_entity_state` |
|
||||||
|
| `world_sync/pbl_runtime_sql.py` | 8872 | `:136 begin_stmt` / `:148 read_committed_stmt` / `:157 for_update_clause` |
|
||||||
|
| `world_sync/pbl_runtime_errors.py` | 4819 | `:35 PblRuntimeError` / `:71 TxConfigError` / `:78 ConnFactoryNotConfigured` / `:85 EventWriteError` / `:92 StateWriteError` / `:99 ConcurrentStateConflict` / `:110 TxAbortError` |
|
||||||
|
| `world_sync/__init__.py` | 9156 | `:119-120` 导入、`:209-210` `__all__` |
|
||||||
|
| `world_sync/init.py` | 25922 | `:512` M11b-2 注释、`:513 env.write_event_with_state`、`:514 env.read_entity_state`、`:587` M11b-3 广播钩子覆盖挂载 |
|
||||||
|
| `models/pbl_runtime_event.json` | 8782 | 25 列,四段式合规 |
|
||||||
|
| `models/pbl_entity_state.json` | 6099 | 10 列,`uk_es=['tenant_id','session_id','entity_id']` |
|
||||||
|
| `scripts/m11b2_selftest.py` | 18932 | 4 路径落点、554 条断言 |
|
||||||
|
|
||||||
|
真源侧 `modules/pbl_runtime_ext`:`pbl_runtime_ext/tx_write.py`(35357B, `:344 apply_runtime_event` / `:466 read_states`)、`models/pbl_runtime_event.json`(10942B)、`models/pbl_entity_state.json`(1871B)、`scripts/m11b2c_p99_probe.py`(12167B)、`scripts/m11b_selftest.py`(27591B)、`pbl_runtime_ext/latency.py`(4523B, `SLA_P99_MS=200.0`)。
|
||||||
|
|
||||||
|
### 6.3 陷阱补充:三处同步注册在 M11b-3 之后有「二次覆盖」
|
||||||
|
|
||||||
|
`init.py:513` 先把裸函数挂到 `env.write_event_with_state`,`init.py:587`(M11b-3)又用 `install_broadcast_hook(env)` 的包装器**覆盖同名**。改 M11b-2 写路径时若只 grep 到 `:513` 会误判挂载点——运行时实际生效的是 `:587` 的包装器(内部仍委派 `:513` 的实现)。`grep -n 'env.write_event_with_state' world_sync/init.py` 必须看全两处。
|
||||||
|
|
||||||
|
### 6.4 本轮实跑验证
|
||||||
|
|
||||||
|
- `world_sync/scripts/m11b2_selftest.py`:**断言合计 554:PASS 554 / FAIL 0 → RESULT: PASS**(全文 `projects/pbls/docs/02-develop/m11b2c-t2-selftest-rerun.log`,64695B)
|
||||||
|
- `pbl_runtime_ext` pytest:**9 passed,0 失败**;`pbl_runtime_ext` selftest:**110 项 PASS 110 / FAIL 0 → RESULT: PASS**
|
||||||
|
- P99(`m11b2c_p99_probe.py`,n=60,SLA 200ms):write[INSERT] 0.2414ms / read 0.2241ms / write[UPDATE] 0.4984ms,均 PASS
|
||||||
|
- 文档一致性:`grep -c "M11b-2\|expected_version\|READ COMMITTED\|P99\|无新 HTTP 路径" dev-notes.md` = 50 命中
|
||||||
|
|
||||||
|
### 6.5 遗留缺口
|
||||||
|
|
||||||
|
`tests/test_m11b2_single_tx.py`(27309B) / `tests/test_m11b2_wiring.py`(25520B) 断言口径与重构后源码契约漂移(T1 实跑 29 failed / 56 passed,根因在测试侧 fixture/旧签名),建议 PM 单列 rework。本模块本轮**未修改这两个文件**。
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user