From 281f9a8fd766c681e920d2ac4f49a0fb8121451b Mon Sep 17 00:00:00 2001 From: randypanding <66171646+randypanding@users.noreply.github.com> Date: Fri, 21 Aug 2026 22:45:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20adr-required=20=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E5=88=86=E6=94=AF=20python3=20-c=20=E7=BC=A9=E8=BF=9B=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=88#164=20=E6=96=B0=E8=B7=AF=E5=BE=84=E9=A6=96?= =?UTF-8?q?=E8=B7=91=20IndentationError=20=E9=98=BB=E6=96=AD=E5=85=A8?= =?UTF-8?q?=E9=83=A8=20C1=20PR=EF=BC=89=E2=80=94=E2=80=94=E6=94=B9?= =?UTF-8?q?=E5=8D=95=E8=A1=8C=E5=BD=A2=E5=BC=8F=EF=BC=88YAML=20=E5=9D=97?= =?UTF-8?q?=E7=BC=A9=E8=BF=9B=E4=B8=8E=20python=20=E9=9B=B6=E7=BC=A9?= =?UTF-8?q?=E8=BF=9B=E4=B8=A4=E9=9A=BE=EF=BC=89=E2=80=94=E2=80=94ADR-0021/?= =?UTF-8?q?0053?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gate.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/gate.yml b/.github/workflows/gate.yml index 777f61f..b4969e2 100644 --- a/.github/workflows/gate.yml +++ b/.github/workflows/gate.yml @@ -170,13 +170,7 @@ jobs: # entry → "NNNN archive_path" 行(pyyaml 已随本 job 前置步骤安装); # archive_path 为空的 entry 不入 map(#96 扩展点:后续 substantive 字段 # 不影响本映射——number/archive_path 是本关卡唯一消费的键) - python3 -c ' - import yaml - d = yaml.safe_load(open("/tmp/adr_index.yaml", encoding="utf-8")) - for e in d.get("entries") or []: - p = e.get("archive_path") - if p: - print(f"{int(e[\"number\"]):04d} {p}")' >/tmp/adr_map.txt + python3 -c 'import yaml;d=yaml.safe_load(open("/tmp/adr_index.yaml",encoding="utf-8"));[print(f"{int(e[\"number\"]):04d} {e[\"archive_path\"]}") for e in (d.get("entries") or []) if e.get("archive_path")]' >/tmp/adr_map.txt if [[ ! -s /tmp/adr_map.txt ]]; then echo "::error::INDEX.yaml 存在但 entries 为空/解析失败——索引世界不可判定,fail-closed" exit 1 From 53c121ba22e3d680f366775edd36c967590d9e44 Mon Sep 17 00:00:00 2001 From: randypanding <66171646+randypanding@users.noreply.github.com> Date: Fri, 21 Aug 2026 22:48:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E5=8D=95=E8=A1=8C=20python=20?= =?UTF-8?q?=E6=94=B9=20%=20=E6=A0=BC=E5=BC=8F=E5=8C=96=EF=BC=88f-string=20?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E5=86=85=E5=BC=95=E5=8F=B7=E5=B5=8C?= =?UTF-8?q?=E5=A5=97=203.11=20=E4=B8=8D=E5=85=BC=E5=AE=B9=E4=B8=94?= =?UTF-8?q?=E5=85=88=E5=89=8D=20\\"=20=E8=BD=AC=E4=B9=89=E6=98=AF=20Syntax?= =?UTF-8?q?Error=EF=BC=9B=E6=9C=AC=E5=9C=B0=203.11=20=E6=9E=84=E9=80=A0=20?= =?UTF-8?q?INDEX=20=E5=AE=9E=E6=B5=8B=E5=90=AB=E7=A9=BA=20archive=5Fpath?= =?UTF-8?q?=20=E8=B7=B3=E8=BF=87=E8=AF=AD=E4=B9=89=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gate.yml b/.github/workflows/gate.yml index b4969e2..dc799c8 100644 --- a/.github/workflows/gate.yml +++ b/.github/workflows/gate.yml @@ -170,7 +170,7 @@ jobs: # entry → "NNNN archive_path" 行(pyyaml 已随本 job 前置步骤安装); # archive_path 为空的 entry 不入 map(#96 扩展点:后续 substantive 字段 # 不影响本映射——number/archive_path 是本关卡唯一消费的键) - python3 -c 'import yaml;d=yaml.safe_load(open("/tmp/adr_index.yaml",encoding="utf-8"));[print(f"{int(e[\"number\"]):04d} {e[\"archive_path\"]}") for e in (d.get("entries") or []) if e.get("archive_path")]' >/tmp/adr_map.txt + python3 -c 'import yaml;d=yaml.safe_load(open("/tmp/adr_index.yaml",encoding="utf-8"));[print("%04d %s" % (e["number"], e["archive_path"])) for e in (d.get("entries") or []) if e.get("archive_path")]' >/tmp/adr_map.txt if [[ ! -s /tmp/adr_map.txt ]]; then echo "::error::INDEX.yaml 存在但 entries 为空/解析失败——索引世界不可判定,fail-closed" exit 1