Skip to content

Commit 500707c

Browse files
committed
docs(swift): publish final repair evidence and main controls
Signed-off-by: DavidHLP <lysf15520112973@163.com>
1 parent f2da1f4 commit 500707c

1 file changed

Lines changed: 56 additions & 4 deletions

File tree

‎docs/SWIFT_IDENTITY_VALIDATION.md‎

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ constraints, where requirements and function-level async distinguish identities;
66
they do not provide Swift compiler type inference. Whitespace/comments normalize;
77
generic parameter renaming, reordered constraints and inline/where semantic
88
equivalence are not canonicalized. Existing signature/argument limits remain
9-
fail-closed. Other languages remain disabled.
9+
fail-closed. Callable identity modes for other languages remain disabled.
1010

1111
Format 3 rebuilds format 1/2 indexes once because generic/async identities change
1212
persisted QNs and old CALLS edges cannot safely be updated in place. The Swift
@@ -18,9 +18,61 @@ The TS/HTML/SCSS rebuild regression remains.
1818

1919
Review checkpoint: `39d5db48a83f94641fccbb44c8cbc0233b5e2a51`, upstream base
2020
`268a9d8886642eb7f9b2ce45f5ce27cdecf0f519`. Regression-only RED checkpoint:
21-
`7188414d0a301574ed26a95c23159f06b0749cf7`. Repair validation is pending.
22-
No historical pass is claimed for the repair. Final command/result records will
23-
be added after execution. Build/test/lint run on remote-dev, not locally.
21+
`7188414d0a301574ed26a95c23159f06b0749cf7`. Tested production source:
22+
`f2da1f464b31117c10ba5c169fad023ac9b133e6`. Subsequent evidence-only commits
23+
do not imply these commands were rerun at their SHA.
24+
25+
Environment: remote-dev, Linux x86_64, GCC 16.2.1, glibc 2.44,
26+
Clang/clang-format/clang-tidy 22.1.8, Cppcheck 2.21.1, GNU Make 4.4.1.
27+
Cppcheck and its dependency were extracted from signature-verified distribution
28+
packages into a temporary directory; no system install or new suppression.
29+
All times below are 2026-10-05 UTC. Build/test/lint ran remotely, not locally.
30+
31+
| Command/path | Time | Exit/result |
32+
| --- | --- | --- |
33+
| `scripts/test.sh --suites extraction,callable_sig,registry,pipeline,index_format,infrascan,edge_types_probe` | 06:41:21–07:06:59 | 0; 907 passes, two ObjectScript UBSan reports; **not sanitizer-clean** |
34+
| `scripts/test.sh --tsan TEST_TSAN_SUITES=pipeline` | 06:41:22–06:53:14 | 0; 326 passes |
35+
| Portable graph driver, strict ASan/UBSan/LSan | 06:51:26 | 0; 10/10 semantic observations |
36+
| Portable real JSON-RPC MCP driver, strict ASan/UBSan/LSan | 06:51:46 | 0; 5/5 envelope/tree/count observations |
37+
| `scripts/test.sh` | 06:41:24–06:42:55 | 1; version-metadata preflight, full C suite not reached |
38+
| `timeout 900 scripts/lint.sh` | 06:41:26–06:56:26 | 124; clang-tidy diagnostics, cppcheck unfinished |
39+
| `timeout 900 scripts/lint.sh --ci CPPCHECK="$cppcheck -j4"` | 06:56:26–07:08:59 | 0; complete CI lint, same rules/source scope/suppressions, parallel execution only |
40+
| `scripts/build.sh BUILD_DIR=build/dav64-swift-prod` | 06:52:31–07:08:18 | 0; clean production build isolated from test artifacts |
41+
| Production `--version` / `--help` | 07:08:48 | 139 / 139; native startup failure |
42+
| DCO range, memory-core, NOLINT whitelist, whitespace | 06:42:03–06:42:12 | 0; 39 nonmerge commits signed off |
43+
44+
The repaired source/header/test files also pass formatter dry-run. `$cppcheck`
45+
denotes the verified temporary executable, with its library directory in
46+
`LD_LIBRARY_PATH`; an installed Cppcheck needs no such temporary-path setup.
47+
Strict drivers set `ASAN_OPTIONS=detect_leaks=1:halt_on_error=1` and
48+
`UBSAN_OPTIONS=halt_on_error=1`. Completed clang-tidy
49+
diagnostics mapped against `git diff -U0` contain zero errors on added PR lines;
50+
that static mapping does not turn the full lint failure into a pass.
51+
52+
Public [RED output and readonly graph](https://gist.github.com/DavidHLP/af1ac103a4fea0fa956ff0229ee6d1aa)
53+
show six declarations collapsed to two nodes at lines 5/7, merged marker
54+
outgoing edges, and caller candidate_count=2. Failed-assertion cleanup also
55+
reports leaks; that RED run is not a sanitizer-clean result.
56+
[Final-source raw outputs, run SHAs/times/exits and binary hashes](https://gist.github.com/DavidHLP/2218c816c21c5c2468c6c83990ff225f/acda57ce32afb31678d43a177ad2f44d116ac4c8)
57+
are public. Large raw files remain complete despite API preview truncation;
58+
downloaded runtime/lint hashes were checked against their originals.
59+
60+
[Same-condition main controls](https://gist.github.com/DavidHLP/a8dcbcc4042a898575f9cb1f330377fe/269b55ffde3bc9282155a4e078cb42dc9c982400)
61+
at `268a9d8886642eb7f9b2ce45f5ce27cdecf0f519` reproduce the Scoop newest-release
62+
pin preflight failure (exit1), CI lint900s timeout, and full clang-tidy exit2.
63+
The clean main production build exits0; `--version`/`--help` both exit139 with
64+
the same `mi_free → newlocale → libstdc++ locale` startup stack. This confirms
65+
that specific native failure is present on main too; its root cause is not
66+
established. No equivalent parent suite run establishes attribution of the
67+
ObjectScript reports. Current macOS/Windows, Ubuntu production CLI semantic
68+
checks and the full C test suite remain unverified. Upstream CI/review are
69+
separate merge gates; these results are not a maintainer approval.
70+
71+
Review disposition: Confirmed identity/negative-test/migration/documentation
72+
issues are repaired; Already Addressed literal-type narrowing stays removed;
73+
False Positive: none established; Out of Scope: other languages, compiler type
74+
inference and unrelated baseline fixes. Full relevant source contexts were read
75+
after the stale graph required direct-source fallback.
2476

2577
Portable graph/MCP commands are in the
2678
[reproduction README](../tests/repro/issue2061_swift_identity/README.md).

0 commit comments

Comments
 (0)