Initial SERMO-BBS: a telnet PC that boots SERMO-DOS

A rubbs-based telnet server that drops every caller into a simulated PC:
it POSTs, boots, loads SERMO-DOS, and lands at a C:\> prompt. Built-in DOS
commands (VER/DATE/TIME/ECHO/MEM/DIR/CLS/HELP/EXIT) behave; anything else
is routed to Sermo::Oracle as a question — the hook for a future LLM.

Built on rubbs' configurable BBS::FakeOS engine; the whole OS lives in
lib/sermo/dos.rb as a FakeOS.define block, so new character-mode OSes are
added as config files, not engine changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-05 20:08:34 +02:00
co-authored by Claude Opus 4.8
commit 25b985c7a2
12 changed files with 310 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# frozen_string_literal: true
module Sermo
# The conversational core of SERMO-DOS.
#
# Anything typed at the C:\> prompt that is not a built-in DOS command is
# routed here (via the FakeOS `on_unknown` hook). For now it returns canned,
# in-character replies so the machine feels alive.
#
# THIS IS THE LLM INTEGRATION POINT: to make SERMO actually think, replace
# the body of `answer` with a call to your model (e.g. the Claude API) and
# return its text. Nothing else in the project needs to change.
module Oracle
def self.answer(question, _ctx = {})
text = question.to_s.strip
case text.downcase
when /\b(hello|hi|hey|szia|hell[oó])\b/
'Greetings, caller. SERMO-DOS is listening.'
when /\bwho are you\b/, /\bmi vagy\b/
'I am SERMO-DOS — a conversational disk operating system.'
when /\b(thanks|thank you|k[oö]sz)\b/
'You are welcome.'
else
[
'My conversational core is not yet connected to a brain.',
%(You said: "#{text}"),
'(Wire Sermo::Oracle.answer to an LLM to make me think.)'
].join("\n")
end
end
end
end