docs(fork-c/S0): setup contract — byte-baseline + commit-discipline, E6b disposition + two-corpus partition, A–E6 reuse/delete ledger
S0 of the ratified Fork C plan (zero-legacy name-resolution redesign, S0→S6).
Pure setup/documentation: NO production code change, NO behavior change.
Single-author output byte-identical to wt-stdlib-base by construction.
Deliverables under docs/fork-c/ (docs/, not current/, because current/ is
gitignored and the contract must be committed):
S0.1 — byte-baseline + commit-discipline: the committed examples/expected/*
snapshots are the single-author byte-identity reference; the zero-diff repro is
`zig build && zig build test && bash tests/run_examples.sh`. Resolver-target set
explicitly excluded + listed. Commit-classification rule: mirror | consumer-cutover | deletion.
S0.2 — E6b disposition + two-corpus partition: transitional E6b src NOT merged
(grep-clean: no resolveRegistrationSigTypeInSource / sig_registration_mode /
e6br_gate.test.zig on baseline). Harvested 0811–0829 trees + goldens (never the
src), empirically partitioned by running each through the base compiler vs the
E6b target:
- baseline-green (mirror-equivalence): 0795–0798 (merged) + 0823, 0828 — given
examples/expected/ markers, locked into the S0 baseline.
- resolver-target (known-wrong old behavior): 0811–0822, 0824–0827, 0829 + the
re-filed E6BR-5 nested-pattern regression — a listed xfail harness under
tests/resolver-target/ (manifest + TARGET goldens, NO active marker), flips
active+green at S3.9. 0811/0829 noted as old-selector-wrong on the E6b-unmerged
base; E6BR-5 subsumed by the whole-AST resolver, NOT an E6b attempt-6.
S0.3 — A–E6 reuse/delete ledger: every load-bearing A–E6 artifact mapped REUSED
(Fork C home) or DELETED/TRANSITIONAL (S3/S6 phase); E6c/d/e dropped, F/H/I/K
absorbed/superseded.
Gate over the baseline-green corpus: zig build + zig build test (LSP corpus sweep
574 files, no crash) + bash tests/run_examples.sh (540 passed, 0 failed) all exit 0.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,29 @@
|
||||
error: type 'IoErr' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0811-modules-same-name-error-set-ambiguous.sx:34:18
|
||||
|
|
||||
34 | fail_io :: () -> !IoErr {
|
||||
| ^^^^^^
|
||||
|
||||
error: type 'IoErr' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0811-modules-same-name-error-set-ambiguous.sx:39:19
|
||||
|
|
||||
39 | sz := size_of(IoErr);
|
||||
| ^^^^^
|
||||
|
||||
error: type 'IoErr' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0811-modules-same-name-error-set-ambiguous.sx:40:9
|
||||
|
|
||||
40 | e : IoErr = error.Disk;
|
||||
| ^^^^^
|
||||
|
||||
error: type 'IoErr' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0811-modules-same-name-error-set-ambiguous.sx:41:16
|
||||
|
|
||||
41 | t : Type = IoErr;
|
||||
| ^^^^^
|
||||
|
||||
error: type 'IoErr' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0811-modules-same-name-error-set-ambiguous.sx:28:14
|
||||
|
|
||||
28 | case IoErr: 1;
|
||||
| ^^^^^
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
own=Disk dep=Net
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1,2 @@
|
||||
own=Disk
|
||||
dep=Net
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,5 @@
|
||||
error: type 'IoErr' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0814-modules-same-name-error-set-lambda-ambiguous.sx:25:30
|
||||
|
|
||||
25 | fail_io := closure(() -> !IoErr { return; });
|
||||
| ^^^^^^
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,29 @@
|
||||
error: type 'Box' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0815-route-all-new-surfaces-ambiguous.sx:25:12
|
||||
|
|
||||
25 | BoxPtr :: *Box;
|
||||
| ^^^
|
||||
|
||||
error: type 'Box' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0815-route-all-new-surfaces-ambiguous.sx:27:21
|
||||
|
|
||||
27 | WrapU :: union { b: Box; n: s32; }
|
||||
| ^^^
|
||||
|
||||
error: type 'Box' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0815-route-all-new-surfaces-ambiguous.sx:29:20
|
||||
|
|
||||
29 | WrapE :: enum { V: Box; }
|
||||
| ^^^
|
||||
|
||||
error: type 'Box' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0815-route-all-new-surfaces-ambiguous.sx:32:20
|
||||
|
|
||||
32 | sz := size_of((Box, s32));
|
||||
| ^^^
|
||||
|
||||
error: type 'Box' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0815-route-all-new-surfaces-ambiguous.sx:33:20
|
||||
|
|
||||
33 | x : union { b: Box; n: s32 } = ---;
|
||||
| ^^^
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
own=5 dep=9
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
x.a=4
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
own.m=5 q.a=9
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
own=Disk q=Net
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
m=7 dep=9
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,5 @@
|
||||
error: type 'Box' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0821-protocols-same-name-method-ambiguous.sx:13:18
|
||||
|
|
||||
13 | get :: () -> Box;
|
||||
| ^^^
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
bp=10 t=12 ev=10 x=13 dep=99
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
p=7 o=7 t=7 a=7 | sp=1 so=1 ss=2 sa=2 st=1 sn=6 dep=9
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,5 @@
|
||||
error: type 'Box' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0825-protocols-same-name-method-wrapped-ambiguous.sx:18:20
|
||||
|
|
||||
18 | getp :: () -> *Box;
|
||||
| ^^^
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
v=7 dep=9
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,5 @@
|
||||
error: type 'Box' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0827-protocols-param-impl-source-wrapped-ambiguous.sx:19:24
|
||||
|
|
||||
19 | impl Into(Marker) for *Box {
|
||||
| ^^^
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,5 @@
|
||||
error: type 'Box' is ambiguous: it is declared in multiple flat-imported modules; qualify the reference or remove the duplicate import
|
||||
--> examples/0829-packs-param-impl-mixed-pack-source-ambiguous.sx:28:31
|
||||
|
|
||||
28 | impl Sink(Block) for Closure(*Box, ..$args) -> $R {
|
||||
| ^^^
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,22 @@
|
||||
# E6BR-5 target spec (exact golden finalized at S3.9)
|
||||
|
||||
Unlike the harvested `08xx` resolver-target cases — whose exact target bytes were
|
||||
produced by the E6b branch and are frozen in `*.exit/*.stdout/*.stderr` here —
|
||||
**E6BR-5 has no oracle that produced exact bytes today** (it is the open hole that
|
||||
paused E6b; no implementation ever emitted its diagnosed form). Its target is
|
||||
therefore recorded as a **specification**, not frozen bytes:
|
||||
|
||||
- **exit:** `1` (see `e6br5-nested-pack-source-ambiguous.exit`).
|
||||
- **stderr:** at least one `error: type 'Box' is ambiguous: it is declared in
|
||||
multiple flat-imported modules; qualify the reference or remove the duplicate
|
||||
import`, pointing at the nested `*Box` leaf inside
|
||||
`Closure(Closure(*Box, ..$inner) -> $IR, ..$args) -> $R`.
|
||||
- **stdout:** empty (the build fails before `main` runs).
|
||||
|
||||
The byte-exact `stdout`/`stderr` goldens are generated by the Fork C resolver when
|
||||
this case **flips to active + green at S3.9** (`run-confirm-r3`: "E6BR-5
|
||||
nested-pattern case diagnosed"). At that point this `.target.md` is replaced by
|
||||
real `e6br5-nested-pack-source-ambiguous.stdout` / `.stderr` files and the case
|
||||
moves to an active marker, exactly like the `08xx` flips.
|
||||
|
||||
This case is the re-filed E6BR-5 regression — **explicitly NOT an E6b attempt-6.**
|
||||
Reference in New Issue
Block a user