fix(audit-20261019): T1-T9 审计修复、存储归属与审计日志列宽
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s

- T1 资金/库存/报价/自采 P1(BIZ-1/2/3/4/10/13/14)
- T2 主系统反向事件墓碑/改派/孤儿处理(BIZ-6/8/9)
- T3 选分公司 ticket、trust proxy、角色权限收口(SEC-2/3/4)
- T4 缺列/RLS/tenant 名单/FK/迁移执行器(DATA-1..8)
- T5 401 登出/分页/映射口径/blob/ZIP 中文名(FE-1..4/BIZ-15)
- T6 测试脚本目标守卫/config fail-fast/容器配置(OPS-2..8)
- T7 前后端测试与 lint 门禁清零
- T8 应付卡片按关联订单日(口径 A)
- T9 存储对象全链路归属校验、敏感列禁写、审计 target_id 超长修复
This commit is contained in:
Ubuntu
2026-10-19 16:16:51 +08:00
parent 601a207b1e
commit 5fa2bbfd55
252 changed files with 18656 additions and 721 deletions
@@ -152,10 +152,13 @@ describe('② 成对性守卫:放行必须同时消费预留(防"库存已
expect(at).toBeGreaterThan(-1);
const body = src.slice(at, at + 4000);
expect(body).toContain('sumAvailableQty');
expect(body).toContain('sumOtherOrderReservations');
// 他单预留一次成型(2026-10-19 BIZ-3):不再逐单号调 sumOtherOrderReservations
expect(body).toContain('resolveProcessingPickReservationSplit');
expect(body).toContain('claimOwnOrderReservationForProcessingPick');
// 扣库必须带上本单订单号(内部 getClaimableStockQty 才会豁免本单预留)
expect(body).toContain('orderCode: ownOrderCodes[0] || null');
// 且 FIFO 内部守卫一次豁免**全部**本单订单号(只免第一个会误报库存不足)
expect(body).toContain('reservationExemptOrderCodes: ownOrderCodes');
// 不得再回退成"扣全部在用预留"
expect(body).not.toContain('getClaimableStockQty(client, skuCode, branchCode, null)');
});