Repository navigation
feat(core): v0.4 Q3 supplier audits and annual audit plan - #46
Merged
Merged
Conversation
- srm_supplier_audit (AUD{YYYY}{00000}): admission / annual / special audits with
planned -> done / cancelled, total and lowest block score, result checked
against audit_score_thresholds (only an over-generous result is refused),
report and scoresheet files
- srm_supplier_audit_finding: findings as a child object (the platform repeater
cannot declare sub-fields), serious / veto counts summed onto the audit
- srm_audit_admission_apply: a completed admission audit writes audit_passed /
audit_result back to the application; a high-risk application cannot enter
the admission review without a passed or conditional audit (FR-204), and a
conditional pass grants trial categories on approval (WI-01 6.6.2)
- srm_audit_finding_to_scar: screen flow raising one SCAR (source = audit) per
open nonconformity, linked both ways, never twice; srm_quality_issue.audit
- srm_audit_plan_generate: monthly catch-up schedule planning annual audits by
material class (new example param annual_audit_frequency: A 12 / B 24
months), idempotent per supplier and plan year
- views (planned, calendar, admission), workbench nav, permissions, English
translations, tests; design docs 02/03/04/07, README and WI-01 synced
Claude-Session: https://claude.ai/code/session_01RSBzVuyvrxknGC9yW432s4
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RSBzVuyvrxknGC9yW432s4 Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by 田騏 · project thread
Closes #38 (overview #34).
改了什么
srm_supplier_audit供应商审核(AUD{YYYY}{00000}):准入 / 年度 / 专项;planned → done / cancelled(取消写原因,完成后不再变);总分、最低审核块得分、结论、样品结论、审核报告与评分表。结论按audit_score_thresholds(WI-01 6.6.1)校验,只拦「高判」。srm_supplier_audit_finding审核问题项(子对象):严重 / 一般不符合、观察项、否决项、整改要求、关联整改单;严重项数、否决项数汇总到审核用于校验结论。srm_audit_admission_apply把准入审核结论写回申请(新增只读字段audit_passed、audit_result);校验规则audit_before_review让高风险申请没有通过 / 有条件通过的审核就进不了准入评审;有条件通过的申请批准后品类资格为「试供」(WI-01 6.6.2)。srm_audit_finding_to_scar(SQE、质量经理,审核已完成)为每条未转出的不符合项开一张source = audit的整改单,双向关联,重复点击不重复开;srm_quality_issue.audit字段。srm_audit_plan_generate每月 1 日追赶式运行,按最高物资类别定频次(新示例参数annual_audit_frequency:A 12 / B 24 个月,C 不定期),按「供应商 + 计划年度」防重;日历视图按planned_date。params/core.yaml、体系文件 WI-01(6.9.1 引用参数、新增 6.9.3 与信息化控制行)同步。与设计的差异
public_read_write(同整改单,objectstack#25470),只有质量岗位能改,不开放删除。怎么验证的
test/supplier-audit.test.ts11 个用例:高风险申请审核前被拦、有条件通过写回后可评审且批准为试供、不通过被拦、分数线校验、取消 / 完成状态、转整改单(权限、未完成拒绝、严重度映射、回填、不重复)、年度计划(A/B 频次、年底到期、A+B 取 A、C 类与冻结不排、跑两遍不重复、取消后不再生成)。admission-countersign.test.ts补准入审核前置;权限快照更新。pnpm validate / lint / typecheck / i18n:check / test(166 通过)/build,以及两条governance/scripts/build.py --check全部通过。Generated by Claude Code