feat(orchestrator)!: S0 English everywhere, Sécurité, NATO hashes, ICAO digits

Requirement 001 phase 6, S0:

- Speech: the security class shows as "Sécurité" and is spoken as in
  maritime radio, "say-cure-ee-tay" three times. A hex run of 7 or more
  characters with a letter and a digit (commit, session, message ids) is
  spelled in the NATO alphabet; every other digit is spoken on its own
  in ICAO pronunciation (42305: four two tree zero fife). The spelling
  runs inside clip() before the length cut, so a phrase still fits
  SPEECH_LIMIT; the displayed text keeps its digits and hashes.
- English: every orchestrator label, tooltip, message, error, script
  output, document and test string is English (Regeln -> Firewall,
  Hierarchie -> Hierarchy, Steuerung -> Controls, Ausführen -> Run, ...);
  the page declares lang="en" and formats dates as en-GB. Task filter
  ids are English. German stays only in the skill trigger phrases that
  quote the operator, and as identifiers: the view keys (view=) and the
  leitstand id.
- tests/test_english.py scans every tracked text file for umlauts and
  German words, with an allowlist of the quoted trigger phrases.

BREAKING CHANGE: the Stream search tokens art: and seit: are now kind:
and since:; an old art: or seit: token counts as a plain word.

Evidence: make test 657 OK, ruff and markdownlint clean
(/tmp/s0-make-test-1.log); e2e 17 OK, none skipped (/tmp/s0-e2e-1.log);
MEDUSA 86 files, 24 findings on reworded strings accepted after an
independent skeptic (21 path:line, 0 rejected, no behaviour change in
signing, approving, rules, denying, offices, events), rescan 0 open.

🎯 Fix: 93 %
💥 Break: 4 %
💸 Cost: 100 %
⏱️ Time: –
🛡️ Security: 100 %
🏆 Score: 89
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-08 17:26:51 +00:00
1 parent a388c6ef77
commit c035373518
86 files changed
+1027 -930

No files matched your search

+19 -19
View File
@@ -3,15 +3,15 @@
let radioDom = null;
function voiceReplay(note) {
return typeof note === "string" && NOTE_ID.test(note) ? h("audio", {class: "voice-replay", controls: true, preload: "none", src: `/api/voice/${note}.wav`, "aria-label": "Sprachnachricht abspielen"}) : null;
return typeof note === "string" && NOTE_ID.test(note) ? h("audio", {class: "voice-replay", controls: true, preload: "none", src: `/api/voice/${note}.wav`, "aria-label": "Play voice message"}) : null;
}
function daysText(days) {
return {"0,1,2,3,4,5,6": "täglich", "0,1,2,3,4": "werktags", "5,6": "am Wochenende"}[days.join(",")] || days.map((day) => WEEKDAYS[day]).join(" ");
return {"0,1,2,3,4,5,6": "daily", "0,1,2,3,4": "weekdays", "5,6": "on weekends"}[days.join(",")] || days.map((day) => WEEKDAYS[day]).join(" ");
}
function scheduleOf(stream) {
return `${daysText(stream.days)}, ${stream.from === "00:00" && stream.to === "24:00" ? "rund um die Uhr" : `${stream.from} bis ${stream.to}`}`;
return `${daysText(stream.days)}, ${stream.from === "00:00" && stream.to === "24:00" ? "around the clock" : `${stream.from} to ${stream.to}`}`;
}
function stationState(stream, index) {
@@ -19,20 +19,20 @@
return [radio.state, radio.short, radio.note];
}
if (!stream.on) {
return ["off", "aus", "In den Einstellungen ausgeschaltet"];
return ["off", "off", "Switched off in the settings"];
}
if (!Ambience.activeStream([stream], Ambience.slotOf(new Date()))) {
return ["idle", "nicht dran", `Spielt ${scheduleOf(stream)}; ▶ spielt ihn jetzt`];
return ["idle", "not due", `Plays ${scheduleOf(stream)}; ▶ plays it now`];
}
return radio.pick === -1 ? ["stopped", "gestoppt", "Von Hand gestoppt; ▶ spielt ihn wieder"] : ["due", "dran", "Dran, sobald kein früherer Sender spielt"];
return radio.pick === -1 ? ["stopped", "stopped", "Stopped by hand; ▶ plays it again"] : ["due", "due", "Due as soon as no earlier station plays"];
}
function stationRow(stream, index) {
const [kind, label, note] = stationState(stream, index);
const live = index === radio.index && (kind === "playing" || kind === "loading");
const action = live
? iconBtn("bi-stop-fill", "Stopp", "btn small ghost", stopStation, `Stopp: ${stream.name} anhalten`)
: iconBtn("bi-play-fill", "Abspielen", "btn small ghost", () => playStation(index), `Abspielen: ${stream.name} jetzt hören`);
? iconBtn("bi-stop-fill", "Stop", "btn small ghost", stopStation, `Stop: pause ${stream.name}`)
: iconBtn("bi-play-fill", "Play", "btn small ghost", () => playStation(index), `Play: listen to ${stream.name} now`);
action.dataset.action = live ? "stop" : "play";
return h("li", {class: "station", "data-station": index, "data-state": kind},
h("span", {class: "station-name", title: stream.name}, stream.name),
@@ -52,7 +52,7 @@
radioDom.stationsSig = sig;
radioDom.stations.replaceChildren(...(settings.streams.length
? settings.streams.map(stationRow)
: [h("li", {class: "muted"}, "Noch kein Sender: unter ⚙ Einstellungen → Radio fügst du einen hinzu.")]));
: [h("li", {class: "muted"}, "No station yet: add one under ⚙ Settings → Internet radio.")]));
}
function speakerChips() {
@@ -69,9 +69,9 @@
radioDom.caption.hidden = !now;
radioDom.caption.replaceChildren(...(now ? [
h("span", {class: "speaker-face"}, face(nameOf(now.who), false)),
h("strong", {}, `${nameOf(now.who)} spricht`),
h("strong", {}, `${nameOf(now.who)} speaking`),
h("span", {class: "caption-line", title: now.line}, now.line),
iconBtn("bi-stop-fill", "Vorlesen abbrechen", "btn small ghost", cancelSpeech),
iconBtn("bi-stop-fill", "Stop speaking", "btn small ghost", cancelSpeech),
] : []));
}
if (ui.screen === "agents" && (ui.views.agents === "orbit" || ui.views.agents === "chord")) {
@@ -83,9 +83,9 @@
const rows = state.messages.slice(-5).reverse();
return rows.length ? h("ul", {class: "mini"}, rows.map((message) => h("li", {},
h("div", {class: "row"}, klass(message.class || "post"), when(message.created_ts)),
h("span", {class: "muted"}, `an ${message.to === "*" ? "alle" : message.to}`),
h("span", {class: "muted"}, `to ${message.to === "*" ? "all" : message.to}`),
h("span", {}, short(message.text)),
voiceReplay(message.voice)))) : h("p", {class: "muted"}, "Im gewählten Zeitraum noch nichts gesendet.");
voiceReplay(message.voice)))) : h("p", {class: "muted"}, "Nothing sent in the chosen time range yet.");
}
function drawRadio() {
@@ -113,19 +113,19 @@
}
function radioScreen() {
const speakers = h("ul", {class: "speakers", "aria-label": "Stationen"});
const speakers = h("ul", {class: "speakers", "aria-label": "Speakers"});
const caption = h("div", {class: "radio-caption", role: "status", "aria-live": "polite", hidden: true});
const stations = h("ul", {class: "stations", "aria-label": "Sender"});
const stations = h("ul", {class: "stations", "aria-label": "Stations"});
const outbox = h("div", {});
const {form, recipient} = composerForm();
radioDom = {speakers, caption, stations, outbox, recipient, crew: "", names: "", sent: "", stationsSig: ""};
return h("div", {class: "stack radio-view"},
h("h2", {class: "title"}, "Radio"),
h("div", {class: "radio-grid"},
h("section", {class: "card radio-talk", "aria-label": "Funk"}, h("h3", {class: "group-title"}, "Funk"), caption, speakers, form),
h("section", {class: "card radio-talk", "aria-label": "Radio"}, h("h3", {class: "group-title"}, "Radio"), caption, speakers, form),
h("div", {class: "stack"},
h("section", {class: "card", "aria-label": "Internetradio"},
h("div", {class: "card-head"}, h("h3", {class: "group-title"}, "Internetradio"), btn("Sender bearbeiten", "btn small ghost", settingsSheet)),
h("section", {class: "card", "aria-label": "Internet radio"},
h("div", {class: "card-head"}, h("h3", {class: "group-title"}, "Internet radio"), btn("Edit stations", "btn small ghost", settingsSheet)),
stations),
h("section", {class: "card", "aria-label": "Zuletzt gesendet"}, h("h3", {class: "group-title"}, "Zuletzt gesendet"), outbox))));
h("section", {class: "card", "aria-label": "Recently sent"}, h("h3", {class: "group-title"}, "Recently sent"), outbox))));
}