Hardware & Telemetry Workflow // P4.1
EXFO & Viavi .SOR OTDR Traces to Closeout PDF & GIS Map
Turn raw field OTDR .sor files from EXFO, Viavi/Noyes, Anritsu, and Yokogawa test sets into deterministic optical certification appendices and GIS-located splice coordinates.
Telcordia SR-4731 v2 .SOR traces (EXFO, Viavi/Noyes, Anritsu, Yokogawa) + 3D duct centerline
Typst PDF/A-2b Closeout Book (RDP trace SVGs) + .GPKG / .GeoJSON / dxf-ee + manifest_sha256 ZIP
asbuilt Truth Boundary (M1–M2 Live vs. External Fixtures)
- Live Now (M1–M2)
- Clean-room Rust crates/sor-parser (parse, evaluate, downsample_rdp, bidirectional, slack) and deterministic Typst PDF/A-2b + GeoPackage + dxf-ee + manifest_sha256 ZIP packaging are implemented and tested in M1–M2.
- Documented Waivers
- Real multi-vendor bidirectional pair coverage is currently 0/1 (T42; pairing is proven on calibrated synthetic ground-truth pairs), and anritsu/issue15a.sor exhibits a GenParams/MapRes oracle edge case under active review (T43).
- Roadmap Scope (M3–M6)
- Offline browser PWA capture of .sor files with resumable multipart R2 upload and edge sync is scheduled for M3.
Telcordia SR-4731 Issue 2 Parsing & Vendor Quirk Handling
crates/sor-parser is a zero-copy, #![forbid(unsafe_code)] Rust parser compiled both natively for Linux workers and to wasm32-unknown-unknown for browser inspection. Every block in a v2 file (Map version 200) is traversed strictly via cumulative block sizes declared in the Map header — never by scanning the binary stream for text strings.
Issue 1 (v100) files are explicitly rejected with SorError::Unsupported carrying byte offset and block context until an Issue 1 specification reconciliation sample is on file. Optional vendor blocks (EXFO, Viavi, Yokogawa) and extra bytes in FxdParams are preserved byte-exact without interpretation.
- Optical distances are computed exclusively from one-way propagation time in 100 ps ticks via d = t_100ps * 1e-10 * 299,792,458 / n_g (never from vendor-dependent user_offset_distance or acquisition_range_distance integers, which vary by 0.01 m, 0.1 m, 1 m, or 0 across EXFO FTB-4, Noyes FastReporter, Noyes OFL280, and Anritsu).
- CRC-16/1021 checksums are evaluated with both standard seeds (0xFFFF CCITT-FALSE and 0x0000 XMODEM). Because EXFO units frequently emit non-standard trailer seeds and Fibercloud stores 0x0000, a checksum mismatch emits a transparent warning rather than hiding valid trace data (unless --strict-checksum is passed).
- GenParams.language fixed_text stops at the first NUL byte so Anritsu issue14/issue15a files (which store 0x00 0x6B / 0x00 0xB8) parse cleanly while raising SOR_LANGUAGE_INVALID; T42 (real multi-vendor bidirectional field pairs) and T43 (anritsu/issue15a.sor alignment) remain tracked external fixture items.
Bidirectional Splice Pairing & Optical-to-Geometric Slack Reconciliation
Single-direction OTDR traces cannot certify fusion splices because differences in fiber backscatter coefficient produce apparent "gainers" (e.g., -0.15 dB in A->B masking a +0.35 dB true splice seen from B->A). Consequently, crates/sor-parser::rules (rule_version "optical-rules/1") always marks unidirectional evaluation as PROVISIONAL.
When both A->B and B->A traces exist at matching wavelength, bidirectional() pairs events nearest-first within tol_m = 2.0 m + 0.5% * L, averages apparent splice loss as (loss_ab + loss_ba) / 2, retains the worst reflectance, and emits PASS or FAIL.
Next, sor_parser::slack reconciles glass distance onto the physical 3D trench graph (Lead + Span + Slack legs). Spans own half-open intervals [start, end) while Slack coils own closed endpoints, ensuring an event right on a splice vault boundary resolves to InSlack { node_id } rather than 1 m down the duct. Calibrated cable length factors must stay within FACTOR_RANGE 1.000..=1.050; anything outside raises SLACK_FACTOR_OUT_OF_RANGE.
Ramer-Douglas-Peucker Trace SVGs, Typst PDF/A-2b & manifest_sha256
Raw DataPts backscatter arrays (tens of thousands of 16-bit samples) are simplified via iterative, stack-safe downsample_rdp(points, eps_db) into lightweight vector SVG plots for Typst closeout typesetting.
crates/cad-exporter compiles closeout.v1.typ using pinned Typst CLI (--ignore-system-fonts --creation-timestamp <frozen_at> --pdf-standard a-2b) inside a scrubbed environment. Every source .sor file SHA-256, verdict, bidirectional splice loss, and localized node/span ID is printed alongside the deterministic manifest_sha256 of canonical manifest.json bytes.
Telcordia SR-4731 Issue 2 Binary Block Map & Vendor Quirk Handling
| Block | Extracted Fields & Units | Vendor Quirk / Trust-Boundary Rule |
|---|---|---|
| Map (v200) | Block table: name\0, version (x0.01), cumulative byte size | Traversal strictly by declared sizes; v1 (v100) rejected cleanly with byte offset |
| GenParams | Language char[2], Cable ID, Fiber ID, ITU G.65x, Wavelength, Loc A/B, Build condition | fixed_text terminates at first NUL byte for Anritsu issue14/issue15a trailer bytes |
| SupParams | Supplier, Mainframe ID/SN, Optical Module ID/SN, Software Rev | Preserved for traceability across EXFO, Viavi/Noyes, Anritsu, Yokogawa |
| FxdParams | Pulse width (ns), sample_spacing_10fs (10 fs), group_index_1e5, BC (-0.1 dB), thresholds | Vendor-specific *_distance fields ignored for math; distances derived strictly via t_100ps & n_g |
| KeyEvents | Event no, time_100ps, loss (0.001 dB), reflectance (0.001 dB), 6-char code, LS/2P | Absent KeyEvents (e.g. Fibercloud) -> Provisional finding, never crash |
| DataPts | u16 backscatter samples * scale_factor * 1e-6 dB (65535 = clipped) | Simplified with iterative downsample_rdp for SVG plots in Typst PDF/A-2b |
| Cksum | Trailing u16 CRC-16/1021 over preceding bytes | Checks 0xFFFF & 0x0000 seeds; EXFO/non-standard mismatch emits transparent warning |
Default Acceptance & Reconciliation Bounds (asbuilt M1–M2)
| Rule / Parameter | Default Bound / Formula | Source Module & Status |
|---|---|---|
| Max Fusion Splice Loss | 0.30 dB (paired average (A->B + B->A)/2) | crates/sor-parser/src/rules.rs (M2 Live) |
| Max Reflective Connector Loss | 0.75 dB (code digit 1 or 2) | crates/sor-parser/src/rules.rs (M2 Live) |
| Max Reflectance | -35.0 dB (worst of A->B / B->A) | crates/sor-parser/src/rules.rs (M2 Live) |
| Bidirectional Pairing Tolerance | tol_m = 2.0 m + 0.5% * fiber_length_m | crates/sor-parser/src/bidir.rs (M2 Live; T42 real pair pending) |
| Helix / Excess Fiber Factor | FACTOR_RANGE = 1.000..=1.050 (blocking finding outside) | crates/sor-parser/src/slack.rs (M2 Live) |
| Slack Calibration Residual | |measured_end_m - modelled_end_m| <= 2.0 m + 0.5% | crates/sor-parser/src/slack.rs (M2 Live) |
Workflow: From Field .SOR Traces to Audited Closeout Book
- Pre-inspect .SOR files locally in browser
Open the zero-upload Telcordia SR-4731 .SOR Inspector (/tools/sor-viewer) to verify CRC-16 status, IOR, KeyEvents, and A->B / B->A pairing before archiving.
- Reconcile optical fiber distances to 3D trench geometry
Run optical event distances against surveyed duct LineStringZ spans and vault slack coils in /tools/otdr-slack-reconciler to check FACTOR_RANGE 1.000..=1.050.
- Generate deterministic PDF/A-2b & closeout ZIP
Freeze the project package so crates/cad-exporter outputs byte-identical dxf-ee, GeoPackage, GeoJSON, Typst PDF/A-2b with RDP trace SVGs, and manifest_sha256.
OTDR Closeout Engineering Definitions
- PROVISIONAL vs. PASS/FAIL Verdict
- Unidirectional OTDR traces always evaluate to PROVISIONAL in optical-rules/1 because splice gainers distort one-way loss. Only paired opposing A->B and B->A traces produce a certified PASS or FAIL.
- manifest_sha256 Package Identity
- The SHA-256 hash of canonical manifest.json listing every raw .sor blob, evidence photo, GIS/DXF artifact, and Typst PDF/A-2b output, independent of ZIP compressor internals.
- WAIVER T42 & T43 External Corpus
- Bidirectional pairing logic is validated on synthetic ground-truth pairs while awaiting multi-vendor real field pairs (T42) and final resolution of the Anritsu issue15a.sor GenParams edge case (T43).
Download Sanitized .SOR & Closeout Sample Pack (/samples/ee-sor-closeout/)
manifest.sha256Inspect synthetic calibrated Telcordia SR-4731 v2 A->B / B->A traces alongside the deterministic Typst PDF/A-2b closeout report and L-EST97 GeoJSON output.
Synthetic fixtures only (zero customer scans, zero EST-GEOID2017 .tif grids). Provisional ASB_* layers apply (WAIVER: ee-authority).
| File | Format | Size | SHA-256 |
|---|---|---|---|
| v2_1310_ab.sor | Telcordia SR-4731 v2 (A->B) | 4.5 KB | f807de7f678c1b8c… |
| v2_1550_ba.sor | Telcordia SR-4731 v2 (B->A) | 4.5 KB | 1655fdc6c0345cf7… |
| ee-demo-closeout.pdf | Typst PDF/A-2b Report | 148 KB | 997bf5d96bd1314c… |
| ee-demo.geojson | GeoJSON (EPSG:3301) | 16 KB | b900d845c5c827dc… |
| WAIVERS.txt | Waiver & Truth Notice | 0.9 KB | c406e4074a090026… |