ai newsFr., 4. Dez.
EilmeldungAlibaba Releases Qwen4-35B-A3B: Open-Weight MoE Model With 1M Context

Stitching 1980s Syslog, IRC, and Telnet to Kiro Agents Over MCP (Without Letting AI Touch Prod Unapproved)

This post is written as part of the Kiroween 2026 hackathon (Frankenstein category). Legacy services still run critical infrastructure on old protocols—Syslog (UDP/TCP), Telnet, IRC, and plain rotating log files. When one starts failing silently at 3 AM, modern AI coding agents cannot see it becaus

dev.toFreitag 04:17 · 04.12.3 Min. Lesezeit
Bild: dev.to

This post is written as part of the Kiroween 2026 hackathon (Frankenstein category).

Legacy services still run critical infrastructure on old protocols—Syslog (UDP/TCP), Telnet, IRC, and plain rotating log files. When one starts failing silently at 3 AM, modern AI coding agents cannot see it because those apps were never written to speak HTTP webhooks or structured JSON APIs.

ChimericMesh fixes that without touching the legacy app:

Syslog/UDP ─┐ Telnet/TCP ─┼─> parsers ─> Hub ─> incident detection ─┬─> IRC announce IRC/TCP ────┘ └─> webhook Kiro agent ── MCP (stdio) ──> REST API ──> Hub (human approval gate) Enter fullscreen mode Exit fullscreen mode Live overview & screenshots: harshitdhaduk.github.io/chimericmesh Source code: github.com/HarshitDhaduk/chimericmesh Run locally (Python 3.11+): pipx install chimericmesh && chimericmesh (or uvx chimericmesh)

Our first working prototype was built conversationally in two days. It worked great for happy-path demos—and immediately cracked when we replayed real public Loghub and Ubuntu IRC datasets (missing syslog headers turned errors into INFO, noisy one-off lines opened fake incidents, and full-history re-analysis dropped UDP packets).

That pushed us into Kiro's spec-driven workflow inside /.kiro/specs/:

Instead of drifting when reality disagreed with a design, conflicts were recorded as dated blocker decisions right inside design.md.

Our first security rule for the dashboard—"never render untrusted log lines via innerHTML"—started as an agent-prompt hook. It fired on every edit and enforced nothing.

We replaced it with a deterministic PreToolUse command hook in.kiro/hooks/guard-innerhtml.json:

{ "version": "v1", "hooks": [ { "name": "Guard innerHTML in dashboard", "trigger": "PreToolUse", "description": "Blocks innerHTML-style sinks in src/chimericmesh/web/ writes", "matcher": "^(fs_write|fs_append|str_replace)$", "action": { "type": "command", "command": "python.kiro/hooks/guard_innerhtml.py" } } ] } Enter fullscreen mode Exit fullscreen mode And a tiny 44-line Python guard (guard_innerhtml.py) that exits 2 only when a write targets src/chimericmesh/web/ and introduces innerHTML, outerHTML, insertAdjacentHTML, or document.write:

if "src/chimericmesh/web/" in path and SINK. search ( text ): sys. stderr. write ( "Blocked: innerHTML/outerHTML/insertAdjacentHTML/document.write " "in the dashboard. Log text is untrusted; render it with " "textContent instead.\n" ) return 2 Enter fullscreen mode Exit fullscreen mode We also paired that with PostFileSave (test-on-save.json, anchored on.py$ with a 90s timeout) running a fast 40-second smoke test set instead of stalling every save behind 3,000+ tests. Notice the anchored regex (^(fs_write|fs_append|str_replace)$): plain unanchored names match any tool ID substring—a detail we caught and pinned with unit tests in tests/unit/test_guard_hook.py.

Steering docs (.kiro/steering/project.md and testing-pbt.md) establish the boundary, while the hub and MCP layer actually enforce it:

Why re-verify right before editing? During a live IDE run (docs/kiro-sessions/), an earlier hub restart caused a reused p1 ID to point at a different unapproved proposal while the agent still trusted p1 from memory. That single incident changed two architectural guarantees: permanent non-reused proposal IDs in SQLite and mandatory pre-edit re-verification in mesh-watcher.

The exact same.kiro/ agent profiles, steering, and MCP configuration run unchanged in both Kiro IDE and Kiro CLI V3.

With 55 Hypothesis test files in tests/pbt/, property tests tied to our design invariants caught subtle failures manual tests never triggered:

You do not need legacy servers running to test the full loop:

pipx install chimericmesh chimericmesh Enter fullscreen mode Exit fullscreen mode Open http://127.0.0.1:8000 and click Try the demo to spin up a sandboxed throwaway hub with three failing sample services (orders-api, spooler, mail-bridge) across Syslog, IRC, and Telnet—without touching any local files or databases.

If you want to connect your own Kiro workspace directly, open the cloned repo in Kiro IDE and chat with mesh-watcher.

Quelle: dev.to (dev.to). Original öffnen