@@ -359,17 +359,20 @@ oliphant/
359359Ordered so that every milestone lands with its own oracle-backed acceptance
360360gate; the corpus harness exists before the first line of the lexer.
361361
362- 1 . ** Scaffolding + codegen.** Module, licenses, CI; vendor ` srcdata/ ` ,
363- ` pg_query.proto ` , reference grammar files at the pin; ` cmd/generate `
364- producing ` ast/pg_query.pb.go ` , root aliases, keyword tables;
365- ` oliphant.go ` API stubs returning not-implemented; ` makefuncs.go ` and the
366- ` parser.Error ` type ported. ** Gate:** pg_query_go's ` parse_test.go `
367- expected-tree literals compile unchanged against oliphant's types.
368- 2 . ** Corpus + oracle.** ` oracle/ ` module wrapping pg_query_go v6.2.2;
369- ` cmd/regenerate ` extracting all corpus tiers into ` .test ` goldens
370- (trees, errors, scan tokens, normalize, fingerprint, deparse);
371- ` internal/testfile ` reader; harness running everything as ` todo ` .
372- ** Gate:** goldens reproducible byte-for-byte across two regeneration runs.
362+ 1 . ** Scaffolding + codegen.** ✅ * Landed 2026-08-15.* Module, licenses, CI;
363+ vendor ` srcdata/ ` , ` pg_query.proto ` , reference grammar files at the pin;
364+ ` cmd/generate ` producing ` ast/pg_query.pb.go ` , root aliases, keyword
365+ tables; ` oliphant.go ` API stubs returning not-implemented; ` makefuncs.go `
366+ and the ` parser.Error ` type ported. ** Gate:** pg_query_go's
367+ ` parse_test.go ` expected-tree literals compile unchanged against
368+ oliphant's types — met (` parse_test.go ` , import swap only).
369+ 2 . ** Corpus + oracle.** ✅ * Landed 2026-08-15.* ` oracle/ ` module wrapping
370+ pg_query_go v6.2.2; ` cmd/regenerate ` extracting the corpus tiers into
371+ ` .test ` goldens (trees, errors, scan tokens, normalize, fingerprint,
372+ deparse, splits); ` internal/testfile ` reader; harness running everything
373+ as ` todo ` . ** Gate:** goldens reproducible byte-for-byte across two
374+ regeneration runs — met, and re-verified weekly by the ` regenerate ` CI
375+ workflow. See "As-built notes" below for measured counts and deferrals.
3733763 . ** Lexer.** ` scan.l ` port + ` base_yylex ` filter layer; ` Scan ` ,
374377 ` SplitWithScanner ` , ` HashXXH3_64 ` (+ ` internal/xxh3 ` ) ship. ** Gate:**
375378 token streams byte-identical to the oracle across the entire corpus,
@@ -417,6 +420,34 @@ gate; the corpus harness exists before the first line of the lexer.
417420 ` tetratelabs/wazero ` , and the cgo requirement; sqlc's endtoend suite is
418421 the acceptance gate. Windows and ` CGO_ENABLED=0 ` become first-class.
419422
423+ ### As-built notes (milestones 1–2)
424+
425+ Measured at the pin, where the plan's estimates differ:
426+
427+ - The corpus as regenerated: ** 1,525 ` .test ` files / 217,229 cases (~ 80 MB)**
428+ across eight suites (` parse ` , ` scan ` , ` normalize ` , ` normalize_utility ` ,
429+ ` fingerprint ` , ` deparse ` , ` split_scanner ` , ` split_parser ` ).
430+ - ` postgres_regress/ ` has ** 224** files at ` 17-6.2.2 ` (not 233); ` kwlist.h `
431+ yields ** 491** keywords (not 494); the proto has ** 273** messages and
432+ ** 71** enums (not 276/73). The inline tables carry 36 parse, 12 scan,
433+ 25 normalize, 25 normalize_utility, 78 fingerprint, 418 deparse, and
434+ 8 split inputs; ` deparse-depesz/ ` is 150 ` .psql ` files under ` *.d/ `
435+ subdirectories.
436+ - The ` .test ` format needed one addition over the family convention: input
437+ or expectation lines that collide with the ` == ` / ` -- ` markers are
438+ escaped with a leading ` | ` (SQL comment banners of exactly ` -- ` are
439+ everywhere in the regress files). ` internal/testfile ` round-trips this
440+ bijectively.
441+ - ` cmd/regenerate ` preserves passing status across runs: a case identical in
442+ name, input, and expectation to one that had graduated out of ` todo ` stays
443+ passing, so a pin advance puts exactly the diff back on the todo list.
444+ - ` cmd/generate -proto ` requires ` protoc ` + ` protoc-gen-go ` on PATH; the
445+ pure-Go ` -aliases ` /` -keywords ` modes are what CI verifies.
446+ - Deferred, deliberately: the ** sqlc endtoend tier** (needs per-directory
447+ engine classification in the sqlc repo; import it alongside milestone 4),
448+ ** ` plpgsql_regress/ ` ** (milestone 11), and ** summary** golden extraction
449+ (milestone 10). The stretch tarball tier remains stretch.
450+
420451## Regeneration (the PostgreSQL-upgrade story)
421452
422453Everything derived is derived by committed tooling from the pin:
0 commit comments