From f1074370bcd12676aba48ba075a88a0d45badbc9 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Fri, 13 Nov 2026 04:50:25 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20FE-GATE-028=20=EC=A6=9D=EA=B1=B0=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=EC=97=90=20EXAMPLES=5FPLATFORM=20=EA=B8=B0?= =?UTF-8?q?=EB=A1=9D=EC=9D=84=20=EB=84=A3=EA=B3=A0=20=EA=B0=88=EB=9D=BC?= =?UTF-8?q?=EC=A7=90=EC=9D=84=20=EB=A7=89=EB=8A=94=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: FE-GATE-028(release 단계 수동 접근성 검토)의 증거 목록은 손으로 쓴 라우트 기록 목록이다. 검토는 레지스트리의 모든 라우트(APP_HOME, EXAMPLES_PLATFORM, NOT_FOUND)를 보는데 목록에는 APP_HOME·NOT_FOUND만 있어, EXAMPLES_PLATFORM의 서명 기록 원문이 release 증거로 남지 않는다. 고른 방법: 그 기록을 source-controlled artifact로 더해 증거에 넣는다. CI 계약 시험이 증거의 route-review 경로와 플랫폼 라우트 (`PLATFORM_ROUTE_REGISTRY`)의 기록이 같은지 본다. - 플랫폼 라우트만 대조하는 이유: 기능 라우트는 create:feature가 기록을 만들지만 이 계약은 고치지 않는다. 레지스트리 전체와 대조하면 생성 기능을 더한 scaffold 드릴 사본(FE-GATE-020)이 늘 실패한다. 위험·한계: 파생 프로젝트의 기능 라우트 기록은 여전히 증거 목록에 저절로 들어가지 않는다. 막으려면 검토 명령이 기록을 묶은 증거 하나를 만드는 설계가 필요하고, 그 명령(`scripts/verify-a11y-manual.ts`)은 지금 다른 수정(1112/05-01)이 고치는 중이라 이 커밋에서 손대지 않았다. 검증(desktop): 새 시험이 고치기 전 EXAMPLES_PLATFORM 하나가 빠져 실패(RED), 고친 뒤 ci-workflow-generation·manual-a11y-evidence 448개 통과, generate:ci-workflow 변화 없음, check:ci·check:types·eslint rc=0. 로그 /tmp/claude-gates/w2fe2-a18red·a18green/. Refs: 1112/05-18 (A11Y-18) --- config/ci/gates.json | 7 +++++++ tests/unit/ci-workflow-generation.test.ts | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/config/ci/gates.json b/config/ci/gates.json index 233bc9d9..63e1cfdb 100644 --- a/config/ci/gates.json +++ b/config/ci/gates.json @@ -995,6 +995,12 @@ "schemaId": "markdown", "production": "source-controlled" }, + { + "id": "artifact-docs-accessibility-route-reviews-EXAMPLES-PLATFORM-md", + "path": "docs/accessibility/route-reviews/EXAMPLES_PLATFORM.md", + "schemaId": "markdown", + "production": "source-controlled" + }, { "id": "artifact-docs-accessibility-route-reviews-NOT-FOUND-md", "path": "docs/accessibility/route-reviews/NOT_FOUND.md", @@ -1990,6 +1996,7 @@ "logArtifactId": "artifact-artifacts-quality-gates-FE-GATE-028-txt", "evidenceArtifactIds": [ "artifact-docs-accessibility-route-reviews-APP-HOME-md", + "artifact-docs-accessibility-route-reviews-EXAMPLES-PLATFORM-md", "artifact-docs-accessibility-route-reviews-NOT-FOUND-md", "artifact-artifacts-tests-a11y-manual-report-json" ], diff --git a/tests/unit/ci-workflow-generation.test.ts b/tests/unit/ci-workflow-generation.test.ts index 3f97be55..6374d95b 100644 --- a/tests/unit/ci-workflow-generation.test.ts +++ b/tests/unit/ci-workflow-generation.test.ts @@ -29,6 +29,7 @@ import { validatePackageScriptGraph, } from "../../scripts/lib/package-script-graph.ts"; import { VISUAL_TEST_FONT_PACKAGES } from "../../scripts/lib/visual-test-fonts.ts"; +import { PLATFORM_ROUTE_REGISTRY } from "../../src/contracts/routes.ts"; import { childProcessTimeout } from "../helpers/child-process-timeout.ts"; const temporaryRoots: string[] = []; @@ -240,6 +241,24 @@ describe("CI gate contract", () => { expect(stageOf("FE-GATE-028")).toBe("release"); }); + it("keeps every platform route's signed review record as FE-GATE-028 evidence (1112/05-18)", async () => { + // The evidence list is written by hand. EXAMPLES_PLATFORM's record was + // missing from it while the review covers every registered route. A + // feature's routes come from create:feature, which does not edit this + // contract, so the check holds the platform routes. + const contract = await loadCiGateContract(process.cwd()); + const index = indexCiGateContract(contract); + const recorded = (index.gates.get("FE-GATE-028")?.evidenceArtifactIds ?? []) + .map((id) => index.artifacts.get(id)?.path ?? "") + .filter((evidencePath) => evidencePath.startsWith("docs/accessibility/route-reviews/")) + .sort(); + expect(recorded).toEqual( + Object.keys(PLATFORM_ROUTE_REGISTRY) + .map((routeId) => `docs/accessibility/route-reviews/${routeId}.md`) + .sort(), + ); + }); + it("runs the CPU-independent scale PR tier in a merge gate (11-03)", async () => { const contract = await loadCiGateContract(process.cwd()); const index = indexCiGateContract(contract);