chore: sync the frontend template from ebea300 to af3d8e6

Carries 359 template commits, tag v0.2.0 plus one documentation commit: the
generator-built feature index with its app, bounded-context and feature
declarations, the src/platform kernel and scale tooling, the 2026-09-24 src
review fixes, and the 2026-09-25 maturity review round with its CHANGELOG
[보안]/[계약] rows. 691 of the 824 template paths are applied, 85 of them
merged with product changes; 127 are not carried.

Product identity is unchanged: name, version 0.1.0, routes, design and the
TechLog domain.

Three decisions worth naming. TechLog stays composed directly, as the last
two syncs recorded; its directory carries a NOT_INSTALLED marker that says so,
and every installed-* composer takes the template's projection with TechLog
added on top. The reference sample is no longer installed: the template now
installs a feature only through feature-module.ts and context-routes.ts,
which load the screens this product deleted, so its three operations, six
schemas and one topic leave the registries, recorded as registry change
evidence. And AppRouter mounts the platform and TechLog routes only; the
template's bounded-context route gateway waits for a generator-installed
feature.

Required fixes: readSubject on the BFF session owner (without it every HTTP
Studio session would close as integration-failed), zod through the facade in
nine TechLog files, noUnusedLocals, and public/config.json written out to
match the local profile. Derived baselines were recomputed after reproducing
both sides' values: CI contract 101 commands / 106 references / 141
artifacts, gate shape c9adcf85; registry approval 2dc6c3a3; the runtime
config schema baseline equals the schema at 8210d48.

Verified here: types, lint, architecture, adapter inventory, CI contract,
i18n, design system, diagnostics, browser security, dev release manifest,
TechLog contract and build pass; 220 component, 155 integration, 15
contract, 418 TechLog, 43 reference-feature, 18 recipe and 46
release-coherence tests pass, and 2381 of 2383 unit tests. Reproduced at
8210d48 first and unchanged: check:registries (byte-identical),
test:runtime-schema, verify:documentation. Brought by the template and
escalated rather than suppressed: check:request-fanout on TechLog's cursor
pagination, check:remediation-ledger (fails upstream too), the shared-chunk
hash test, and the registry-dependent sample removal and second-feature
tests. Playwright suites were not run.

Full record, the five open questions and the follow-ups in
docs/operations/template-sync-2026-09-29.md.

(cherry picked from commit b2170cf265dea45dc9cc05d3c61e627e97f31cdb)
This commit is contained in:
DongHyeonka
2026-11-12 08:28:54 +09:00
parent 585c62431a
commit c80320dfc7
738 changed files with 55027 additions and 13567 deletions
@@ -0,0 +1 @@
export { createFixtureHttpClient as createInternalClient } from "../client.ts";
@@ -0,0 +1 @@
export const openFixtureDatabase = (): string => "indexeddb";
@@ -0,0 +1,4 @@
// storage/indexeddb is a runtime of the browser-file-storage bundle; its index.ts is its public boundary.
import { openFixtureDatabase } from "../adapters/storage/indexeddb/index.ts";
export const storageComposition = openFixtureDatabase;
@@ -0,0 +1,4 @@
// 12-07 P3b: a second-level index.ts is not a public barrel.
import { createInternalClient } from "../adapters/http/internals/index.ts";
export const subBarrelComposition = createInternalClient;
@@ -0,0 +1 @@
export const telemetryAdapter = 1;
@@ -0,0 +1 @@
export const adminValue = 1;
@@ -0,0 +1,2 @@
import { adminValue } from "../admin/value.ts";
export const customerValue = adminValue;
@@ -0,0 +1,2 @@
// 12-03 P4b: a context module re-exporting a concrete adapter.
export * from "../../adapters/telemetry/index.ts";
@@ -0,0 +1,2 @@
import { betaValue } from "../beta/value.ts";
export const alphaValue = betaValue;
@@ -0,0 +1,2 @@
// 12-03 P4a: a feature root file re-exporting a concrete adapter.
export * from "../../adapters/telemetry/index.ts";
@@ -0,0 +1 @@
export const betaValue = 1;
@@ -0,0 +1 @@
export { telemetryAdapter as contextTelemetry } from "../contexts/customer/telemetry.ts";
@@ -0,0 +1 @@
export { telemetryAdapter } from "../features/alpha/telemetry.ts";
@@ -0,0 +1 @@
export const connectRealtime = (): undefined => undefined;
@@ -0,0 +1,4 @@
// The realtime runtime is not selected, so the composition root does not build it.
import { connectRealtime } from "../adapters/realtime/index.ts";
export const composedRealtime = connectRealtime;
@@ -0,0 +1,6 @@
// F-7 (13-08): the one module that imports zod itself.
import { z } from "zod";
z.config({ jitless: true });
export { z };
@@ -0,0 +1,2 @@
// A named facade that re-exports a primitive under its pre-VD-05 path.
export { Button } from "../../design-system/primitives/core.ts";
@@ -0,0 +1 @@
export { Button } from "./primitives/core.ts";
@@ -0,0 +1 @@
export const Button = "button";
@@ -0,0 +1,4 @@
// 12-08 P6: a deep import past the design-system index.
import { Button } from "../design-system/primitives/core.ts";
export const DeepImport = Button;
@@ -1,3 +1,4 @@
// VD-05: lucide-react is imported only by the icon vendor facade.
import { Menu } from "lucide-react";
export const DirectIcon = Menu;
@@ -0,0 +1,5 @@
// F-7 (13-08): schema code imports z from src/contracts/zod.ts, which sets
// jitless before any schema is built.
import { z } from "zod";
export const directSchema = z.string();
@@ -0,0 +1,3 @@
import { Button } from "../design-system/index.ts";
export const PublicImport = Button;
@@ -0,0 +1,3 @@
import { z } from "../../contracts/zod.ts";
export const wrappedSchema = z.string();
@@ -0,0 +1,2 @@
// 12-06 P1d: import.meta.glob loads modules the graph cannot list, so it is refused.
export const valueModules = import.meta.glob("../domain/*.ts");
@@ -0,0 +1,12 @@
// Allowed: one bulk request, then per-row work is local mapping only.
type Gateway = { list(filters: { limit: number }): Promise<readonly { id: string }[]> };
export async function loadPage(gateway: Gateway) {
const rows = await gateway.list({ limit: 100 });
return rows.map((row) => ({ ...row, label: row.id.toUpperCase() }));
}
export function bindHandlers(gateway: Gateway, ids: readonly string[]) {
// Declaring a function per row is fine; it dispatches only when a user acts.
return ids.map((id) => () => gateway.list({ limit: id.length }));
}
@@ -0,0 +1,6 @@
// Forbidden: raw fetch per element.
export function prefetch(urls: readonly string[]) {
urls.forEach((url) => {
void fetch(url);
});
}
@@ -0,0 +1,10 @@
// Forbidden: a dispatch inside a loop over rows.
type Http = { execute(operation: string, input: unknown): Promise<unknown> };
export async function loadEach(http: Http, rows: readonly { id: string }[]) {
const results: unknown[] = [];
for (const row of rows) {
results.push(await http.execute("GET_ROW", { id: row.id }));
}
return results;
}
@@ -0,0 +1,6 @@
// Forbidden: one physical request per collection row (frontend N+1).
type Gateway = { get(id: string): Promise<unknown> };
export async function loadDetails(gateway: Gateway, ids: readonly string[]) {
return Promise.all(ids.map((id) => gateway.get(id)));
}
+8 -8
View File
@@ -1,14 +1,14 @@
{
"total": {
"lines": { "pct": 0 },
"statements": { "pct": 0 },
"functions": { "pct": 0 },
"branches": { "pct": 0 }
"lines": { "total": 10, "covered": 0, "skipped": 0, "pct": 0 },
"statements": { "total": 10, "covered": 0, "skipped": 0, "pct": 0 },
"functions": { "total": 2, "covered": 0, "skipped": 0, "pct": 0 },
"branches": { "total": 4, "covered": 0, "skipped": 0, "pct": 0 }
},
"src/adapters/http/http-execution-v3.ts": {
"lines": { "pct": 0 },
"statements": { "pct": 0 },
"functions": { "pct": 0 },
"branches": { "pct": 0 }
"lines": { "total": 10, "covered": 0, "skipped": 0, "pct": 0 },
"statements": { "total": 10, "covered": 0, "skipped": 0, "pct": 0 },
"functions": { "total": 2, "covered": 0, "skipped": 0, "pct": 0 },
"branches": { "total": 4, "covered": 0, "skipped": 0, "pct": 0 }
}
}
+2 -2
View File
@@ -38,10 +38,10 @@
"src/contracts/compatibility.ts": {
"lines": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }, "statements": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }, "functions": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }, "branches": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }
},
"src/application/policies/performance-budgets.ts": {
"src/bootstrap/load-release-manifest.ts": {
"lines": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }, "statements": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }, "functions": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }, "branches": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }
},
"src/application/policies/promotion-readiness.ts": {
"src/bootstrap/read-bounded-boot-json.ts": {
"lines": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }, "statements": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }, "functions": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }, "branches": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 }
},
"src/application/use-cases/decide-chunk-recovery.ts": {
@@ -1,3 +0,0 @@
import { Button } from "../../../../src/presentation/design-system/primitives/core.tsx";
export const DeepImport = Button;
@@ -0,0 +1,3 @@
export default function SampleFeaturePage() {
return <button type="button">새 항목 만들기</button>;
}
@@ -0,0 +1,3 @@
export default function SamplePage() {
return <h1>프로젝트 시작점</h1>;
}
@@ -1,3 +0,0 @@
import { createWebSocketConnection } from "../../../adapters/realtime/websocket/websocket-connection.ts";
export const incorrectlyComposed = createWebSocketConnection;
@@ -0,0 +1,2 @@
// quarantine(owner=frontend-platform, defect=expired-fixture, expires=2020-01-01)
test.skip("quarantine whose expiry date has passed", async () => {});
@@ -0,0 +1 @@
test.only("focused test that would pass alone", async () => {});
+9
View File
@@ -4,8 +4,17 @@ import type { TelemetryPort } from "../../../src/application/ports/telemetry-por
declare const diagnostics: DiagnosticsPort;
declare const telemetry: TelemetryPort;
// 07-05. One violation per directive: if a port type widens, its directive
// becomes unused (TS2578) and this fixture stops compiling.
diagnostics.record({
// @ts-expect-error "fatal" is not a diagnostic level.
level: "fatal",
eventId: "route.changed",
});
diagnostics.record({
level: "info",
// @ts-expect-error the diagnostic event id is not registered.
eventId: "UNKNOWN_DIAGNOSTIC_EVENT",
});
// @ts-expect-error the telemetry event name is not registered.
telemetry.emit("unknown.telemetry.event", {});