Stufe 4c (#764): Kommentare in C#, WebUI-Skripten, CSS und HTML auf Englisch

Rund 2.600 Kommentarblöcke in 310 C#-Dateien übersetzt, Begründungen vollständig
erhalten: blockweise gleiche Anzahl wie vorher, kein Block unter 60 % seiner
Länge, der Code außerhalb der Kommentare per Tokenizer byte-identisch geprüft.
Zitate deutscher Oberflächentexte und Testdaten bleiben deutsch.

WebUI: Kommentare in JS/CSS/HTML übersetzt, JSDoc-@param an die in 4b
umbenannten Parameter angeglichen.

Dabei behoben:
- 4b hatte "tag" (HTML-Tag) als deutsches "Tag" gelesen und zu "dayValue"
  gemacht (makeElement, svg, Tagesübersicht) - zurück auf tag/day.
- Aufgaben "InProgress" bekamen die Plakettenart "laufend", für die es nie eine
  CSS-Klasse gab - jetzt "success" wie laufende Instanzen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard
2026-10-04 12:45:03 +02:00
co-authored by Claude Opus 5.5
parent da4ceac7d5
commit 837a634a22
311 changed files with 7238 additions and 7252 deletions
@@ -7,7 +7,7 @@ namespace ClawdDotNet.Core.Tests.Engine;
public sealed class LoopGuardTests
{
// ═══════════════════════════════════════════════════════════
// L1 — Schrittzählung
// L1 — step counting
// ═══════════════════════════════════════════════════════════
[Fact]
@@ -33,24 +33,24 @@ public sealed class LoopGuardTests
}
// ═══════════════════════════════════════════════════════════
// L2 — Die maxTokens-Semantik (Bug B3)
// L2 — the maxTokens semantics (bug B3)
// ═══════════════════════════════════════════════════════════
/// <summary>
/// Kernproblem B3: RecordTokens summiert die TotalTokens jedes Schritts.
/// Da jeder Schritt den kompletten Kontext erneut sendet, wächst diese Summe
/// quadratisch — ein völlig normaler Chat bricht dadurch nach wenigen Schritten ab.
/// Core problem B3: RecordTokens sums up the TotalTokens of every step.
/// Since every step sends the complete context again, this sum grows
/// quadratically — a completely normal chat thus aborts after a few steps.
///
/// Dieser Test beschreibt das GEWÜNSCHTE Verhalten: Ein Agent mit einem stabilen
/// 20k-Kontext muss 10 Schritte durchhalten können.
/// This test describes the DESIRED behavior: an agent with a stable
/// 20k context must be able to last 10 steps.
///
/// Seit der Trennung von maxCumulativeTokens (Kostenbudget) und
/// maxContextTokens (Kontextgröße) läuft er durch.
/// Since the separation of maxCumulativeTokens (cost budget) and
/// maxContextTokens (context size) it runs through.
/// </summary>
[Fact]
public void Ein_stabiler_Kontext_ueberlebt_zehn_Schritte()
{
var config = new LoopGuardConfig(); // bewusst die Produktiv-Defaults
var config = new LoopGuardConfig(); // deliberately the production defaults
var guard = new LoopGuard(config);
Should.NotThrow(() =>
@@ -58,7 +58,7 @@ public sealed class LoopGuardTests
for (var step = 0; step < 10; step++)
{
guard.RecordStep();
// Realistisch: 20k Kontext geht rein, ~500 Tokens kommen raus.
// Realistic: 20k context goes in, ~500 tokens come out.
guard.RecordTokens(20_000 + 500);
}
}, $"Ein Kontext von 20k über 10 Schritte ist normal und darf nicht am " +
@@ -87,7 +87,7 @@ public sealed class LoopGuardTests
}
// ═══════════════════════════════════════════════════════════
// L3 — Thread-Sicherheit
// L3 — thread safety
// ═══════════════════════════════════════════════════════════
[Fact]