Skip to content

Comments

refactor(cscore): in-code-dokumentation und bridge-randfaelle stabilisieren#127

Merged
tomtastisch merged 2 commits intomainfrom
codex/refactor/6-1-17-incode-doc-and-bridge-hardening
Feb 22, 2026
Merged

refactor(cscore): in-code-dokumentation und bridge-randfaelle stabilisieren#127
tomtastisch merged 2 commits intomainfrom
codex/refactor/6-1-17-incode-doc-and-bridge-hardening

Conversation

@tomtastisch
Copy link
Owner

@tomtastisch tomtastisch commented Feb 22, 2026

Ziel & Scope

Phase C der 6.1.x-Produktionsfinalisierung: Bridge-Randfälle und In-Code-Dokumentation ohne Public-API-Änderung stabilisieren, inklusive Versionskonvergenz auf 6.1.17.

Umgesetzte Aufgaben (abhaken)

  • CsCoreRuntimeBridge strukturell entdoppelt (Tuple-Reader-Helper + gemeinsame Assembly-Directory-Probe).
  • XML-In-Code-Dokumentation im Bridge-Bereich auf Deutsch/Umlaute vereinheitlicht.
  • Gezielte <b>/<br/>-Blöcke an Hover-relevanten Stellen ergänzt.
  • Randfalltests für fail-closed Delegation/Fallback ergänzt (NormalizeArchiveRelativePath, ResolveHmacKeyFromEnvironment).
  • Versionskonvergenz 6.1.17 in RepoVersion, Version, PackageVersion gesetzt.
  • Version-History/Changelog in Root + docs/0_de + docs/1_en + EN-Spiegel aktualisiert.

Nachbesserungen aus Review (iterativ)

  • Zusätzliche XML-Doku für neue Bridge-Helper ergänzt (ResolveCsCoreAssembly, TryResolveAssemblyFromDirectory, TryLoadAssemblyFromPath, Tuple-Reader).
  • Gate-Läufe nach finalem Doku-Feinschliff erneut ausgeführt.
  • PR-Body auf Governance-Pflichtsektionen normalisiert.

Security- und Merge-Gates

  • Required Checks müssen grün sein, sonst kein Merge.
  • security/code-scanning/tools: 0 offene Alerts als Merge-Bedingung.
  • 0 offene Review-Threads vor Merge.
  • Keine Änderungen an SECURITY.md.

Evidence (auditierbar)

  • dotnet test /Users/tomwerner/RiderProjects/FileClassifier/tests/FileTypeDetectionLib.Tests/FileTypeDetectionLib.Tests.csproj -c Release -v minimal
    • Ergebnis: 560 passed, 0 failed.
  • bash /Users/tomwerner/RiderProjects/FileClassifier/tools/ci/bin/run.sh preflight
    • Ergebnis lokal: Exit-Code 0.
  • bash /Users/tomwerner/RiderProjects/FileClassifier/tools/ci/bin/run.sh tests-bdd-coverage
    • Ergebnis lokal: Exit-Code 0.
  • bash /Users/tomwerner/RiderProjects/FileClassifier/tools/ci/bin/run.sh api-contract
    • Ergebnis lokal: Exit-Code 0.

DoD (mindestens 2 pro Punkt)

Punkt DoD A DoD B
Bridge-Redundanzreduktion Helper in /Users/tomwerner/RiderProjects/FileClassifier/src/FileTypeDetection/Infrastructure/Utils/CsCoreRuntimeBridge.vb vorhanden Unit-Tests grün (560/560) inkl. neuer Randfallpfade
In-Code-Doku-Konsistenz Deutsch/Umlaut-Konsistenz im Bridge-XML sichtbar <b>/<br/> nur an relevanten Hover-Stellen ergänzt
Randfallstabilität Neue Tests in /Users/tomwerner/RiderProjects/FileClassifier/tests/FileTypeDetectionLib.Tests/Unit/CsCoreUtilityBridgeUnitTests.cs vorhanden api-contract + tests-bdd-coverage lokal grün
Versionskonvergenz 6.1.17 Directory.Build.props + FileTypeDetectionLib.vbproj auf 6.1.17 Historie/Changelog in Root/DE/EN konsistent aktualisiert

Nicht-Ziele: keine Major-Upgrades, keine Umsetzung separater Issues #121/#122/#123.

Copilot AI review requested due to automatic review settings February 22, 2026 20:49
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions github-actions bot added area:docs area:versioning area:tests feature New compatible feature or datatype impl:config versioning:minor New compatible functionality; requires MINOR bump and removed area:tests labels Feb 22, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR completes Phase C of the 6.1.x production finalization by refactoring the CsCoreRuntimeBridge for better maintainability, harmonizing in-code XML documentation with consistent German umlaut spelling, adding edge-case tests for fail-closed delegation/fallback behavior, and converging all version references to 6.1.17.

Changes:

  • Extracted duplicate tuple-parsing logic into dedicated helper methods (TryReadHmacResolutionTuple, TryReadArchivePathTuple)
  • Consolidated assembly path resolution logic into a shared TryResolveAssemblyFromDirectory helper
  • Harmonized XML documentation comments to use consistent German umlaut spelling (Brücke, Rückgabe, Prüfung, Länge)
  • Added two new edge-case tests verifying fail-closed behavior for path traversal and invalid Base64 input
  • Updated version to 6.1.17 across all project files and documentation

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/FileTypeDetectionLib.Tests/Unit/CsCoreUtilityBridgeUnitTests.cs Added two edge-case tests verifying fail-closed behavior for archive path normalization with traversal attempts and HMAC key resolution with invalid Base64
src/FileTypeDetection/Infrastructure/Utils/CsCoreRuntimeBridge.vb Refactored to extract duplicate tuple-parsing and assembly resolution logic into reusable helpers; harmonized XML documentation with consistent German umlaut spelling; added comprehensive documentation for new helper methods
src/FileTypeDetection/FileTypeDetectionLib.vbproj Bumped Version and PackageVersion from 6.1.16 to 6.1.17
docs/versioning/103_CHANGELOG_RELEASES.MD Added 6.1.17 changelog entry documenting the bridge refactoring, documentation harmonization, and test additions
docs/versioning/102_HISTORY_VERSIONS.MD Updated current working state to v6.1.17 and added version history entry
docs/versioning/003_CHANGELOG_RELEASES.MD Added 6.1.17 changelog entry (German version)
docs/versioning/002_HISTORY_VERSIONS.MD Updated current working state to v6.1.17 and added version history entry (German version)
docs/1_en/versioning/003_CHANGELOG_RELEASES.MD Added 6.1.17 changelog entry (English mirror)
docs/1_en/versioning/002_HISTORY_VERSIONS.MD Updated current working state to v6.1.17 and added version history entry (English mirror)
docs/0_de/versioning/003_CHANGELOG_RELEASES.MD Added 6.1.17 changelog entry (German docs folder)
docs/0_de/versioning/002_HISTORY_VERSIONS.MD Updated current working state to v6.1.17 and added version history entry (German docs folder)
Directory.Build.props Bumped RepoVersion from 6.1.16 to 6.1.17

@tomtastisch tomtastisch merged commit 648c571 into main Feb 22, 2026
26 checks passed
@tomtastisch tomtastisch deleted the codex/refactor/6-1-17-incode-doc-and-bridge-hardening branch February 22, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs area:versioning feature New compatible feature or datatype impl:config versioning:minor New compatible functionality; requires MINOR bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant