Files
pruefwerk/compliance-graph
Sharang ParnerkarandClaude Opus 5.5 23e9c28166
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m55s
CI / Check (pull_request) Successful in 19m30s
fix(graph): read UTF-16 and Windows-1252 source files into the code graph (t84)
The graph registry read source files with read_to_string and skipped any
that were not UTF-8, so Visual Studio's UTF-16 files and older .NET/PLC
tools' Windows-1252 files never reached the graph, in every language. A
UTF-8 BOM was kept as a leading U+FEFF.

- compliance_graph::encoding::read_source: a BOM (UTF-8, UTF-16 LE/BE)
  names the encoding and is dropped; otherwise UTF-8, else Windows-1252
  (encoding_rs, already in the lock). Malformed UTF-16, a NUL in non-UTF-8
  bytes (a binary) and I/O errors are errors.
- The registry counts the files it still can't read, warns once per build
  (paths at debug only) and the tree build stores the count on the build
  run (unreadable_file_count, serde default for older runs).
- GET /api/v1/graph/{id}/summary returns unreadable_files; the target
  page's Codegraph card shows "N Dateien nicht lesbar" / "N files
  unreadable" when it is above 0.
- The same decoder where a file is read again or in the same stage: graph
  chunking, the graph's file view, PLC read_tree and native_projects,
  .NET read_text (replaces its own BOM code), finding snippets
  (source_text), embedded header versions, LLM and control triage context.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 22:54:04 +01:00
..