claude-trading-skills 中 US Undervalued Growth Screener 的 Schema v2 → v3 迁移实战指南
claude-trading-skills 中 US Undervalued Growth Screener 的 Schema v2 → v3 迁移实战指南
本文以 claude-trading-skills 仓库内 migration-v2-to-v3.md 为主线,逐条拆解 us-undervalued-growth-screener 技能从 schema v2 升级到 v3 的全部破坏性变更。读完后你将能够:把旧版单候选评分文件重建为“整次研究可审计、可定稿”的 v3 快照,正确书写来源账本与最新财报的双记录结构,并用 screen_universe.py、research_contract.py、evaluate_candidates.py --require-final 三个新入口把迁移闭环跑通。
为什么 v3 是一次真正的破坏性升级
原文档开篇用一句话概括了 v3 的设计目标:
Schema v3 makes the research run—not just each candidate—auditable and finalizable.
也就是说,v2 的关注点是“每个候选记录是否字段齐备”,v3 把审计单元上提到整次 run。这带来四个新的顶层要求,任何一个不满足,后续的严格评估都不会给出正式排名。在动手之前,先确认你装的是哪一套运行时,因为 v3 的审计内容包括运行时指纹校验:
python3 skills/us-undervalued-growth-screener/scripts/screen_universe.py --version
python3 skills/us-undervalued-growth-screener/scripts/manage_run_state.py --version
python3 skills/us-undervalued-growth-screener/scripts/evaluate_candidates.py --version
所有脚本必须回报同一组元数据(定义在 skill_version.py,属单一事实来源):
skill_version = 3.6.1
schema_version = 3
contract_revision = 3.5
runtime_fingerprint = ug-v3.6.1-claude-code-direct-fmp-20260830
校验逻辑位于 research_contract.py:它会逐个比对 skill_name、skill_version、schema_version、contract_revision、runtime_fingerprint,不一致就写入 review 项。因此旧 v2 运行目录不能就地改写——这不是风格建议,而是被代码强制执行的约束。
四项新增的顶层必填要求
原文档列出的四条现在是硬门槛,对照源码可以看清它们各自的落地位置。
1. market_context 必须包含当前数值上下文与来源 ID
v3 要求市场上下文不只是“一段叙述”,而是若干可校验时效的数值字段 + 字段级来源。完整字段见 data-contract.md,一个合规样例来自仓库资产 market-context.example.json:
{
"summary": "US small- and mid-cap valuations are below the large-cap market, while elevated Treasury yields make multiple expansion an unsuitable base-case assumption.",
"as_of": "2026-08-22T12:00:00-07:00",
"policy_rate_pct": 3.625,
"treasury_10y_yield_pct": 4.74,
"real_gdp_growth_pct": 1.5,
"inflation_yoy_pct": 3.4,
"market_forward_pe": 21.2,
"small_mid_cap_valuation_context": "Small and mid caps trade at a discount to mega caps, but financing-sensitive businesses require a higher margin of safety.",
"sector_cycle_notes": [
"Software demand is stable but selective.",
"Commercial biopharma requires product-concentration and LOE stress checks."
],
"source_ids": [
"macro-fed-20260822",
"macro-treasury-20260822",
"macro-bea-bls-20260822",
"market-valuation-20260822"
]
}
research_contract.py 的 validate_market_context() 会检查:
summary不能为空、不能短于 40 字符、不能残留占位文本(占位词表包含placeholder、todo、tbd、fill in等,见 第 174 行);policy_rate_pct、treasury_10y_yield_pct、inflation_yoy_pct、market_forward_pe四个数值必填;real_gdp_growth_pct缺失只产生 warning;small_mid_cap_valuation_context必填,sector_cycle_notes必须是数组;source_ids必须解析到至少两个已登记来源;- 上下文年龄默认上限 14 天,可用配置项
max_market_context_age_days覆盖; - 若摘要在谈“市场预期加息/降息”,必须有一条
supports: market_context.market_rate_expectations的来源,或提供classification: analyst_inference且来源可解析的推断记录。
字段级最大时效(默认值)如下,这也是“检索时间不能把旧数据变新”的实现方式:官方宏观/官方统计按 data_as_of(否则 published_at)判定,而不是按抓取时间。
| 字段 | 默认最大时效 | 来源规则 |
|---|---|---|
| Policy rate | 60 天 | official macro/statistics |
| 10-year Treasury | 7 天 | official macro/statistics |
| Inflation | 45 天 | official statistics |
| GDP | 120 天 | official statistics |
| Market forward P/E | 14 天 | 当前 market-data/research 来源 |
| Small/mid-cap context | 14 天 | 当前 market-data/research 来源 |
2. global_sources 必须使用严格来源账本 schema
来源账本的最小结构(data-contract.md):
{
"id": "unique-id",
"tier": 1,
"kind": "sec_filing",
"title": "Form 10-Q",
"published_at": "2026-08-10T16:05:00-04:00",
"data_as_of": "2026-06-30T00:00:00-04:00",
"retrieved_at": "2026-08-22T10:05:00-07:00",
"url": "https://...",
"supports": ["latest_earnings.quarter", "financials.cash_flow_ttm"]
}
可供直接对照的真实样例见 global-sources.example.json,其中宏观来源分别声明 supports 为 market_context.policy_rate_pct、market_context.treasury_10y_yield_pct 等字段路径。
3. screening_audit 必须引用或内嵌可校验哈希的行级全域工件
校验函数 _load_jsonl_artifact()(第 575-613 行)支持两种模式:内嵌 embedded_rows,或给出 artifact_path 由 artifact_root 解析并计算 SHA-256。随后 第 843-852 行 会把声明的 artifact_sha256 与实际文件摘要比对,不匹配即失败。这意味着描述性文字不再可代替证据:universe-audit-results.jsonl 与 broad-screen-results.jsonl 必须真实存在且未被手工编辑。
4. run_metadata.status = complete 的成立条件
原文档的表述是:只有当被选中的每一个 broad-screen 符号都有候选记录时,complete 才有效。源码把这一句展开为多条互斥检查(第 1832-1874 行):
missing_selected(被选中但缺候选记录)非空 → 报错;unprocessed_candidates里出现未被选中的符号 → 报错;complete但unprocessed_candidates非空 → 报错;complete但审计未达screening_completion_ready→ 报错;complete时candidate_pool_status仍为insufficient_data或sufficient_pending_enrichment→ 报错;complete且无选中符号时,必须给出范围限定的“无候选”状态(no_qualifying_candidates或no_qualifying_candidates_in_bounded_pool)。
来源账本:supports 从字符串变为必填数组
原文档给出的变更示例:
{"supports": ["latest_earnings", "financials.cash_flow_ttm"]}
实现层面的检查是两个:supports 必须是非空字符串数组(第 339-340 行),并且 _sources_resolve() 要求每个 source_ids 都能在账本索引中命中。字段级证据的匹配采用前缀语义——supports: "financials" 可以覆盖 financials.cash_flow_ttm,反之不行。
kind 与 tier 必须兼容
允许的 kind 与允许的 tier 在 第 62-90 行 中硬编码:
| Kind | 允许的 tier |
|---|---|
sec_filing |
1 |
official_macro, official_statistics |
1 或 3 |
company_ir |
2 |
exchange_status |
2 或 3 |
market_data, consensus, news, third_party_transcript |
3 |
analyst_calculation, analyst_assumption, local_artifact |
4 |
除兼容性之外还有域名级防线:
official_macro/official_statistics的主机必须落在官方域名白名单内(federalreserve.gov、treasury.gov、bls.gov、bea.gov、census.gov、sec.gov、cftc.gov、fdic.gov、occ.gov、irs.gov、dol.gov);sec_filing必须是sec.gov上的accession 级归档 URL(/archives/edgar/data/),不能是公司浏览页;company_ir如果落在第三方转录站点域名(如fool.com、seekingalpha.com、stocktitan.net)上会被拒绝。
这正是原文档那句“Third-party transcripts are not company IR”的代码实现。迁移时最容易踩的坑,就是把一份 Seeking Alpha 电话会议记录标成 company_ir / tier 2 —— 应改为 third_party_transcript / tier 3,并同步改正 supports 所指的字段路径。
最新财报:从单条混合记录拆成两条独立记录
v2 允许把季报和全年数字揉进一条记录。v3 要求按报告类型拆开:
{
"latest_report_type": "annual",
"quarter": {"period_type": "quarter", "period": "Q4 FY2026"},
"full_year": {"period_type": "full_year", "period": "FY2026"}
}
validate_latest_earnings() 的规则是:
latest_report_type只接受quarterly/annual(ALLOWED_REPORT_TYPES,第 170 行);quarterly时必须存在quarter,annual时必须存在full_year;- 两者都缺时直接判定“无财报记录”;
- 每条子记录各自独立走
_validate_earnings_record(),各自带自己的来源与发布时间; - 返回的
primary记录优先取quarter,其次full_year,这一条会成为后续现金一致性等检查的比较基准。
因此迁移时的正确做法是:把 v2 的混合记录重新按季度与全年两次来源核验后拆开保存,而不是简单把同一份数字复制两遍——因为两条记录会分别被来源校验,重复引用同一条季度来源却声称是全年数据,会在 _validate_earnings_record() 的期间类型与来源匹配上暴露出来。
正式估值基准:当前期必须是 ntm 或 fy1
这是 v3 里最容易被旧模型“惯性”破坏的一条。原文档写得很直接:
The current formal period must be
ntmorfy1. A TTM metric may be supplemental but cannot drive the constant-multiple ranking scenario.
对应实现见 validate_forward_periods():
- 当前期
period_kind必须属于{ntm, fy1}(ALLOWED_FORWARD_PERIOD_KINDS,第 172 行);否则报valuation current period must be NTM or FY1; TTM is supplemental only; - 当前期
metric必须为正数,period_end必填; - 第 2 年 / 第 3 年的
period_kind必须属于{fy2, fy3, other},且years必须落在区间1.5–2.5与2.5–3.5内; - 若第 2/3 年完全无法支撑,报
no adequately supported two- or three-year forecast horizon。
迁移动作:把任何以 TTM 倍数驱动的排序情景,改为以 NTM/FY1 为锚、TTM 仅作附注;同时补齐 period_end 与 analyst_count。仓库中 normalize_estimates.py 就是用来把日期化的年度一致预期行正规化成上述结构的工具,--estimate-as-of 为必填参数。
预期广度:分析师数量不足的共识只能作补充
原文档规则:
A consensus horizon with fewer than the configured minimum analysts is supplemental unless accompanied by a fully sourced independent model.
实现上分两级处理(第 1503-1538 行):
- 当前期:若
source_type为market_consensus或analyst_estimate且分析师数量低于minimum_analyst_count_for_ranked_horizon(默认 3),直接记为 review 失败; - 第 2/3 年:同样条件但未提供
independent_model: true时,只记为 warning,并把该期标记为rankable = False,不能作为唯一的排序期限。
配置默认值可在 screening-config.example.json 中确认,minimum_analyst_count_for_ranked_horizon 为 3。也就是说,“三家分析师的一致预期”是底线而非充裕;想把覆盖不足的期限纳入正式排名,必须补一份带完整来源的独立模型。
现金与 EV/FCF:新的分子分母定义
原文档给出了 v3 的企业价值公式:
market cap + total debt - corporate cash - eligible marketable securities
evaluation_financials.py 的实现与之一致:
usable_cash = corporate_cash + marketable_securities if corporate_cash is not None else None
enterprise_value = (
market_cap + total_debt - usable_cash
if market_cap is not None and total_debt is not None and usable_cash is not None
else None
)
ev_to_fcf = (
enterprise_value / standard_fcf
if enterprise_value is not None and standard_fcf is not None and standard_fcf > 0
else None
)
几个必须注意的细节:
cash_definition会被固定写成corporate_cash_plus_marketable_securities,报告中因此可以追溯“用的是哪一种现金口径”;- 净负债同口径:
net_debt = total_debt - usable_cash; standard_fcf优先,company_adjusted_fcf单独保留、不能顶替标准 FCF(测试 test_company_adjusted_fcf_is_not_used_as_standard 断言了这一点);- 客户/结算资金与受限现金不进入股东可用现金:
customer_or_settlement_funds、restricted_cash只作为披露字段输出,不参与 EV 计算。
test_evaluate_candidates.py 给出了可验证的算术样例:EV 应为 4,920,000,000,EV/FCF 应为 27.3333x。如果你的迁移后结果不是这个口径,几乎可以肯定是把客户资金或受限现金算进了 usable_cash。
现金字段的自动归一化有明确边界(normalize_cash_classification()):普通企业可以从 cash_and_equivalents 推导 corporate_cash 并打上 corporate_cash_derived = true;但 payments、broker、custodian、exchange 四类托管型业务永不自动推导,必须显式拆分,否则报 custodial/payments business requires explicit corporate_cash separate from customer funds。
新增的行业控制项
原文档列出四条,全部能在评估层找到对应实现:
商业生物制药:产品集中度可由产品收入与总收入推导
evaluation_valuation.py 依次尝试 top_product_revenue_pct、top_revenue_stream_pct、top_program_revenue_pct;若都缺失,则用 top_product_revenue / total_revenue 计算,并置 concentration_derived = true。
临近 LOE 的集中型特许经营:6x 与 8x 压力情景
当 years_to_nearest_loe <= 5 且集中度 >= 50% 时,会写入 warning、施加 2 或 4 分惩罚(3 年内 4 分,否则 2 分),并用 biopharma_loe_stress_multiples 生成压力情景(默认 <a href="https://link.gitcode.com/i/16c90fd4f45865ff4d2760760471b76d" target="_blank">6.0, 8.0],见 [evaluation_common.py)。压力情景以第 3 年指标与 3 年持有期为输入:
details["loe_stress_scenarios"] = [
{"multiple": multiple, **(_scenario(y3_metric, multiple, price, y3_years) or {})}
for multiple in sorted(set(multiples))
]
若在严格模式下缺少集中度、LOE 日期或行业来源,会直接记 review 失败。
汽车经销:必须使用剔除 floorplan 债务后的杠杆
第 409-425 行 要求 adjusted_net_debt_to_ebitda 与 floorplan_debt_excluded: true 同时具备且来源可解析,否则在严格模式报 auto dealership requires sourced leverage adjusted for floorplan debt;调整后杠杆超过 2.5x 会追加 warning 与至少 2 分惩罚。相关测试见 test_auto_dealer_requires_floorplan_adjustment。
支付公司:公司现金与结算现金必须分离
第 388-408 行 要求 corporate_cash 与 customer_or_settlement_funds 都存在并由来源支撑;同时会记录 gross_profit_to_tpv_pct(毛利率货币化率)与上一期对比,若下降则写入 gross-profit take rate declined versus the comparison period。
新增脚本与命令行开关
原文档点名的三项,对应到脚本层的真实入口如下。
screen_universe.py — 完整的行级 broad-screen 审计
这是 v3 审计的核心产物生成器,其参数集直接体现 v3 的要求(第 1774-1824 行):
python3 skills/us-undervalued-growth-screener/scripts/screen_universe.py \
--input reports/us-undervalued-growth-screener/<run-id>/universe.jsonl \
--candidate-pool reports/us-undervalued-growth-screener/<run-id>/discovery/enriched-candidate-pool.jsonl \
--discovery-audit reports/us-undervalued-growth-screener/<run-id>/discovery/discovery-audit.json \
--output-dir reports/us-undervalued-growth-screener/<run-id>/broad-screen \
--analysis-as-of <ISO-8601> \
--source-id <listing-source-id> \
--candidate-source-id <estimate-source-id> \
--candidate-generation-mode liquidity_stratified_estimates \
--retrieval-min-market-cap 500000000 \
--retrieval-max-market-cap 20000000000 \
--user-requested-min-market-cap 500000000 \
--user-requested-max-market-cap 20000000000 \
--provider-reported-total <count> \
--pages-fetched <count> \
--pagination-exhausted \
--config skills/us-undervalued-growth-screener/assets/screening-config.example.json \
--max-deep-dives 5
关键开关的语义:
| 开关 | 作用 |
|---|---|
--source-id |
上市清单来源 ID,可重复 |
--candidate-source-id |
候选/预期来源 ID,可重复 |
--candidate-generation-mode |
取值来自 full_universe_fundamentals、provider_prefilter、liquidity_stratified_estimates、available_fundamentals、user_supplied |
--retrieval-* / --user-requested-* |
分别记录实际检索域与用户请求域,二者不一致时需要显式授权 |
--user-scope-override-authorized + --user-scope-evidence |
只有用户明确同意缩小范围时才能使用 |
--candidate-pool-exhausted |
仅在所有行都已判定后添加 |
--provider-reported-total / --pages-fetched / --pagination-exhausted |
枚举完整性证明 |
--band-audit |
分市值带抓取时,各带的 provider_exhausted 标记 JSON 数组 |
--discovery-audit |
有界发现池的生成审计 |
--max-deep-dives |
深挖名额 |
产物固定为 universe-audit-results.jsonl、broad-screen-results.jsonl、broad-screen-audit.json、broad-screen-shortlist.json、enrichment-queue.json(第 1950 行 与 第 1980 行 对这些路径有直接引用)。
research_contract.py — schema v3 校验
原文档把它称为“schema-v3 校验”。需要说明的是:从源码结构看,它不是一个独立 CLI 工具,而是一个纯离线校验库(模块 docstring 明确写着 “The module performs no network access”,见 第 1-8 行),由 evaluation_common.py 以 from research_contract import ContractError, validate_and_normalize_snapshot 的方式导入。因此迁移时你的调用方式是“跑一次严格评估”,而不是“单独执行 research_contract.py”。
它承担的具体校验职责包括:来源账本类型与域名、市场上下文时效、broad-screen 审计工件与哈希、最新财报期间拆分、前瞻倍数输入、预期广度、现金口径一致性、以及 run 完成度。换句话讲,v3 的“破坏性”几乎全部集中在这一个文件里。
evaluate_candidates.py --require-final — 临时态或全局无效时退出码 2
原文档的表述是:--require-final 会在写出诊断之后,对 provisional 或全局无效的 run 返回退出码 2。实现见 evaluate_candidates.py:
if args.require_final and (
report.get("ranking_status") != "final" or not _mapping(report.get("contract")).get("valid")
):
print(
"ERROR: final-run gate failed; see generated report for contract blockers",
file=sys.stderr,
)
return 2
完整的定稿调用(摘自 SKILL.md):
python3 skills/us-undervalued-growth-screener/scripts/evaluate_candidates.py \
--input reports/us-undervalued-growth-screener/<run-id>/final/final-snapshot.json \
--artifact-root reports/us-undervalued-growth-screener/<run-id> \
--output-dir reports/us-undervalued-growth-screener/<run-id>/final \
--language ja \
--strict \
--require-final
退出码语义要记牢:1 是输入/解析/契约异常;2 是已写出报告,但到达不了 final——这意味着继续修数据,而不是换一个说法对外发布。仅当退出码为 0 且输出满足 contract.valid = true、ranking_status = final、unprocessed_candidates = []、runtime.contract_revision = 3.5 时,才可呈现正式排名。
迁移操作步骤(原文档 8 步 + 可执行命令)
原文档的迁移流程共 8 步,下面逐条补上实际命令与判据。
第 1 步:创建当前市场上下文与全局来源文件
按前文的 market-context.json 与 global-sources.json 结构书写,确保 market_context.source_ids 至少两个来源可解析,且六个动态字段都在默认时效内。
第 2 步:运行 broad-screen 审计脚本
即上文 screen_universe.py 调用。注意 --retrieval-* 与 --user-requested-* 的一致:如果检索域窄于用户请求域而缺少 --user-scope-override-authorized,第 699-713 行 会报 reduced execution scope was not explicitly authorized by the user;即便授权,也还要补 scope_reduction_reason 与 user_scope_evidence。
第 3 步:初始化全新的 v3 run,不要就地改写 v2 状态目录
python3 skills/us-undervalued-growth-screener/scripts/manage_run_state.py init \
--run-dir reports/us-undervalued-growth-screener/<run-id>/run \
--analysis-as-of <ISO-8601> \
--price-as-of <ISO-8601> \
--session regular_close \
--price-source-id <source-id> \
--market-context reports/us-undervalued-growth-screener/<run-id>/market-context.json \
--global-sources reports/us-undervalued-growth-screener/<run-id>/global-sources.json \
--base-commit <git-sha>
然后把审计挂上(v3 的关键变化:不再是单一 --artifact):
python3 skills/us-undervalued-growth-screener/scripts/manage_run_state.py set-screening-audit \
--run-dir reports/us-undervalued-growth-screener/<run-id>/run \
--audit reports/us-undervalued-growth-screener/<run-id>/broad-screen/broad-screen-audit.json \
--universe-artifact reports/us-undervalued-growth-screener/<run-id>/broad-screen/universe-audit-results.jsonl \
--candidate-artifact reports/us-undervalued-growth-screener/<run-id>/broad-screen/broad-screen-results.jsonl
--listing-artifact 与 --artifact 仍作为别名保留(manage_run_state.py),但新代码应使用 --universe-artifact / --candidate-artifact。附带一个实操要点:审计挂载是事务性的,测试 test_screening_audit_transaction.py 覆盖了拷贝失败、提交失败、中断、回滚、文件名大小写冲突等 30 余种情形,确保失败时不会留下“半个审计”。
第 4 步:转换财报记录与前向期间
- 拆
latest_earnings为quarter与full_year两条独立记录; - 把
valuation_case.periods.current的period_kind改为ntm或fy1,补period_end、analyst_count、source_type; - 第 2/3 年确认
period_kind为fy2/fy3,years落在 1.5–2.5 / 2.5–3.5; - 覆盖不足的期限不要硬塞,改为
independent_model: true并补完整来源。
第 5 步:修正来源 supports 类型与来源分类
把字符串改成非空数组;把第三方电话会议记录从 company_ir 改为 third_party_transcript(tier 3);sec_filing 换成 accession 级 URL。这一步做完后,来源账本错误通常可以从上百条降到个位数。
第 6 步:核对现金/债务与前向预测基准
按 market cap + total debt - corporate cash - eligible marketable securities 重算 EV;确认客户资金与受限现金被排除;确认标准 FCF 而不是公司调整后 FCF 作为 EV/FCF 的分母。
第 7 步:保存每一个被选中的候选
python3 skills/us-undervalued-growth-screener/scripts/manage_run_state.py save-candidate \
--run-dir reports/us-undervalued-growth-screener/<run-id>/run \
--candidate reports/us-undervalued-growth-screener/<run-id>/candidates/<SYMBOL>.json \
--stage verified
这里有一处 v3 特有的顺序约束:当 candidate_pool_status 仍为 sufficient_pending_enrichment 时,--stage verified 会被拒绝(第 683-693 行)。此时可以先用 --stage draft 推进深挖,待 enrichment 完成、重跑 broad screen 并用 set-screening-audit 重新挂载已解析的审计后,再升级为 verified。两个方向都不可逆:verified 不能降级为 draft,一旦存在 verified 候选,set-screening-audit 也会被拒绝。
第 8 步:用 --require-final 执行严格评估
python3 skills/us-undervalued-growth-screener/scripts/evaluate_candidates.py \
--input reports/us-undervalued-growth-screener/<run-id>/final/final-snapshot.json \
--artifact-root reports/us-undervalued-growth-screener/<run-id> \
--output-dir reports/us-undervalued-growth-screener/<run-id>/final \
--strict --require-final
退出码 0 才算迁移成功;退出码 2 表示报告已写出但你还没到 final,按报告里的 blocker 继续修。
迁移自检清单
下表把 v3 的强制项压缩成可逐条勾选的清单,每条都能对应到前文的源码位置。
| 检查项 | 通过判据 |
|---|---|
| 运行时指纹 | 九个脚本 --version 输出一致,且与 skill_version.py 相符 |
| 市场上下文 | 四个数值字段齐全、source_ids ≥ 2、年龄 ≤ 14 天 |
| 来源账本 | supports 为非空数组;kind 与 tier 兼容;三方转录未冒充 IR |
| 最新财报 | quarter / full_year 各自独立且带来源;latest_report_type 合法 |
| 估值基准 | 当前期 period_kind ∈ {ntm, fy1} 且 metric > 0 |
| 预期广度 | 覆盖不足的期限已标 rankable = false 或补独立模型 |
| 现金口径 | EV = 市值 + 总债务 − 公司现金 − 可售证券;客户/受限现金不计入 |
| 行业控制 | 生物制药集中度/LOE、汽车经销 floorplan、支付现金分离均有来源 |
| 审计工件 | artifact_sha256 与实际 JSONL 摘要一致 |
| 完成度 | complete 时 unprocessed_candidates 为空且所有选中符号有记录 |
深入阅读
- migration-v3-to-v3.1.md — 若你的迁移终点实际是更新的契约,本文是 v3 之后的第一跳,它把“全市场财务完备”换成两层覆盖模型。
- migration-v1-to-v2.md — 理解 v2 为何引入
run_metadata、screening_funnel、四状态模型,能帮助判断哪些 v1/v2 字段在 v3 里仍有意义。 - data-contract.md — schema-v3 / contract-v3.5 的完整字段定义,本文的多数 JSON 结构在此有更长的版本。
- source-evidence-and-financial-controls.md — 来源层级与财务/预测控制的细节说明。
- screening-config.example.json —
multiple_contraction_pct、minimum_analyst_count_for_ranked_horizon、biopharma_loe_stress_multiples、cash_consistency_tolerance_pct等阈值的默认值来源。 - 测试基线:test_evaluate_candidates.py 中的 EV/FCF 与行业控制用例,是验证迁移后口径是否正确的快速回归手段。