refactor: gate LF candidates with current AR836 response

This commit is contained in:
ZE-TH5-AR516 committed 2026-11-27 11:47:17 +08:00
1 parent f1099c84dd
commit 127d88e84e
6 files changed
+112 -244

No files matched your search

@@ -133,14 +133,12 @@ Do not use temporary curl, WebFetch, or any API method outside the controlled sc
## LF Reducer Stock Gate
- Apply this gate only to generated LF candidates, identified by `(Vx)`.
- Read `现货数`、`需排产数`、`对应来福减速器编码`、`减速器实际可用量` from `data.库存信息`.
- `现货数` means the finished product's actual available quantity after AR836 has deducted valid sales-order quantities waiting for locking/reservation.
- Require `需排产数 = max(原始需求数量 - 现货数, 0)`.
- If `需排产数 = 0`, the finished-product stock covers demand and the candidate passes without reducer replenishment.
- Otherwise require a matched LF reducer code and `减速器实际可用量 >= 需排产数`.
- Missing, invalid, inconsistent or insufficient fields reject the LF candidate. Purchasing in transit, inspection stock, fixed lead time and future replenishment must not rescue it.
- Show `现货数` and `需排产数` for retained results. Show the matched LF reducer code and actual available quantity for retained LF candidates that need production.
- If `逾期待复核销售订单` is returned, show its sales-order code and request human review. Never release stock automatically.
- Read `data.库存信息.可用库存(扣除了待产数量)` and `data.采购信息.缺料明细` from the current AR836 response.
- AR836 owns the 95% yield, five-unit rounding and BOM-demand calculation. AM516 must not reproduce a different quantity formula.
- If finished-product available inventory covers the original demand, retain the candidate.
- Otherwise reject when the shortage list is missing/unreadable or contains any material code beginning `20.30.`; retain when the readable list contains no such reducer constraint.
- Rejected LF candidates are omitted from the report, fastest comparison, candidate counts and `不可用候选`.
- Do not claim that the current response proves the matched reducer code or exact reducer stock when no reducer shortage record is returned.
- The original input model remains the baseline; this generated-candidate gate does not hide the user's original model.
## Unavailable Result Reasons
@@ -211,7 +209,7 @@ Use this field order for a successful Feishu report:
1. {model}({candidate type and reducer brand})
- 需求数量:{input quantity}台
- AM516预测交期:{API workdays}个工作日,最终交货日期:{API final delivery date}
- 现货/排产情况:现货数{actual available finished goods}台;需排产数{remaining production quantity}台
- 可用库存/覆盖情况:整机可用库存{AR836 available inventory}台({coverage statement})
- 主导因素:{main factor}
- 推荐理由:{rule-based recommendation reason}
- 差异项:{field changes formatted as `字段 原值→新值`; join multiple changes with `;`, for example `编码器 HS→HM;品牌 DZ→LF`}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.