<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ola Sumbo on Medium]]></title>
        <description><![CDATA[Stories by Ola Sumbo on Medium]]></description>
        <link>https://medium.com/@ephico2real?source=rss-66f888c29417------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YKRXItzMb0zG0bUQ.</url>
            <title>Stories by Ola Sumbo on Medium</title>
            <link>https://medium.com/@ephico2real?source=rss-66f888c29417------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:59:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ephico2real/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Vibe Coded an Autonomous Gold Trading System with Claude, Warp, and Cursor — Here’s What Actually…]]></title>
            <link>https://ephico2real.medium.com/i-vibe-coded-an-autonomous-gold-trading-system-with-claude-warp-and-cursor-heres-what-actually-323a1d4a5adf?source=rss-66f888c29417------2</link>
            <guid isPermaLink="false">https://medium.com/p/323a1d4a5adf</guid>
            <dc:creator><![CDATA[Ola Sumbo]]></dc:creator>
            <pubDate>Tue, 05 May 2026 12:29:34 GMT</pubDate>
            <atom:updated>2026-05-05T12:29:34.046Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Vibe Coded an Autonomous Gold Trading System with Claude, Warp, and Cursor — Here’s What Actually Happened</h3><p><em>How a senior DevOps architect built a production-grade XAUUSD scalping platform by starting with data contracts, not code</em></p><h3>The Premise</h3><p>I am not a software developer. I am a Senior DevOps Architect. My day job is designing systems — how components communicate, how data flows, how failures are contained, and how everything is observable. I do not write trading algorithms for a living. I do not have a quant background.</p><p>What I have is a disciplined instinct for system design, a professional trading signal subscription, and access to the best AI coding tools available in 2026.</p><p>This is the story of how I built <strong>aurum-signal</strong> — a fully autonomous XAUUSD gold scalping system with 12 components, 12 database tables, a market regime engine, an AI agent, multimodal signal parsing, a live dashboard, and a formal data contract — almost entirely through conversation.</p><p>The repo is at github.com/ephico2real2/aurum-signal.</p><h3>The Toolchain</h3><p>Before I explain what I built, here is what I built it with.</p><p><strong>Claude</strong> — architecture design, all code generation, prompt engineering, and design review. Both the conversational interface for design sessions and Claude Code CLI for execution.</p><p><strong>Warp Terminal</strong> — AI-native terminal. This is where Claude Code CLI lives. Every setup prompt, every delta, every fix ran through Warp. The command history, AI autocomplete, and block-based output made the iteration loop significantly tighter than a standard terminal.</p><p><strong>Cursor AI</strong> — code review and inline refactoring. After Claude Code generated files, Cursor helped me understand what was produced, catch issues before they became bugs, and refactor sections that needed to be tighter.</p><p><strong>Codex</strong> — a second review pass on critical files before they hit the repo.</p><p><strong>Claude Code CLI</strong> — the actual executor. Every setup instruction was written as a structured prompt file that Claude Code ran autonomously with --permission-mode auto. It created directories, wrote files, installed packages, ran tests, registered shell aliases, rendered service templates, and committed to git — all from a single paste into the terminal.</p><p>I want to be precise about something before continuing. This is not “describe what you want and accept what the AI produces.” Every architectural decision in this system came from me. The AI implemented those decisions faster than I could have done alone. That is the actual exchange.</p><h3>Why I Started with Research, Data Contracts, and Database Design — Not Code</h3><p>Most people who vibe code start by saying “build me a trading bot.” I did not do that.</p><p>I spent the first phase of this project in pure design conversation — no files, no code, just architecture. There were three reasons for this, all rooted in DevOps thinking.</p><p><strong>A trading system is a safety-critical system.</strong> If the risk management component has a bug, real money disappears. If the MT5 connection drops silently and the system keeps executing, you are trading blind. If the database does not capture the right context from day one, you can never audit what happened, and you can never train a model later.</p><p><strong>I needed to understand the real constraints before proposing solutions.</strong> MetaTrader 5 on macOS cannot be called from Python directly. The only bridge is the filesystem — files written by the EA, files read by the EA. That single constraint shaped the entire communication model. Components do not call each other. They write files to known locations and read from known locations. The JSON file bus is not a hack. It is the correct solution given the platform.</p><p><strong>Naming things correctly matters enormously when working with AI.</strong> When every component has a name, a role, and a clear boundary, the AI knows exactly what to build and where to put it. “Add a heartbeat call to SENTINEL” is unambiguous. “Make the news guard tell something else it’s alive” is not.</p><p>So before any code was written, I designed four things.</p><p><strong>The component map.</strong> Every component named with a single stated responsibility. SENTINEL guards news. It does not trade. AEGIS validates risk. It does not log. FORGE executes. It does not parse signals. This discipline eliminated entire categories of bugs before the first file was created.</p><p><strong>The data contract.</strong> A formal document answering not “what do we persist” but “what JSON shapes move between components, who produces them, and who consumes them.” The file bus and the HTTP API are explicitly separated. The rule is stated clearly: trading execution is never driven by HTTP alone.</p><p><strong>The database schema.</strong> Twelve tables designed before SCRIBE had a single line of code. Every table carries mode and session columns so any future ML model knows exactly what operational state the system was in when each record was created.</p><p><strong>The safety architecture.</strong> Three independent guards before any trade reaches execution, then AEGIS as the final gate. No single point of failure can cause uncontrolled trading.</p><p>This design phase took the majority of the project’s total time. The implementation was fast because the decisions were already made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*-ynbIQ5Z6RwXibVvG0haNQ.png" /></figure><h3>The Architecture: 12 Components, One Job Each</h3><p>The final system has twelve components.</p><p><strong>1. SCRIBE</strong> — python/scribe.py — SQLite intelligence database, 12 tables, audit backbone for the entire system.</p><p><strong>2. FORGE</strong> — ea/FORGE.mq5 — MT5 Expert Advisor written in MQL5. The only component that lives inside MetaTrader 5.</p><p><strong>3. HERALD</strong> — python/herald.py — Telegram notifications. Every significant event fires an alert. The system&#39;s voice.</p><p><strong>4. SENTINEL</strong> — python/sentinel.py — News guard. Monitors ForexFactory plus RSS feeds. Suspends trading before high-impact events.</p><p><strong>5. LENS</strong> — python/lens.py — TradingView MCP integration. Live RSI, MACD, Bollinger Bands, ADX from real charts.</p><p><strong>6. AEGIS</strong> — python/aegis.py — Risk manager. Lot sizing, R:R validation, regime gate, session-aligned loss limits.</p><p><strong>7. LISTENER</strong> — python/listener.py — Telegram signal reader and Claude Haiku parser. Handles text and image signals.</p><p><strong>8. AURUM</strong> — python/aurum.py — Claude AI agent. Accessible via Telegram bot and the ATHENA dashboard chat panel.</p><p><strong>9. BRIDGE</strong> — python/bridge.py — Orchestrator. Mode state machine, position tracker, signal dispatcher, regime runner.</p><p><strong>10. ATHENA</strong> — python/athena_api.py — Flask API and React dashboard served on port 7842.</p><p><strong>11. VISION</strong> — python/vision.py — Multimodal image extraction. Shared module used by both LISTENER and AURUM.</p><p><strong>12. RECONCILER</strong> — python/reconciler.py — Hourly position audit. Compares SCRIBE open positions against MT5 reality.</p><p>The communication model is deliberately constrained. Everything visible in the ATHENA dashboard flows through the Flask API. No component hardcodes data. No dashboard reads files directly. Component writes to SCRIBE or a JSON file. API reads that. Dashboard fetches from the API. No exceptions.</p><p>FORGE writes market_data.json every 3 seconds containing the full account state, open positions, pending orders, recent closed deals, and active indicator values across M1, M5, H1, and H4 timeframes. BRIDGE reads this file. That is the entire MT5 bridge. No sockets, no COM, no DLL injection. Just file I/O — boring, reliable, auditable.</p><h3>The Trade Lifecycle: Signal to Closure</h3><p>Here is what actually happens when a signal arrives.</p><p><strong>Signal arrives on Telegram.</strong> LISTENER receives it via Telethon — either a text message or a chart image. If it is text, Claude Haiku parses it and extracts direction, entry zone, SL, TP1, TP2, TP3. If it contains media, VISION is invoked first.</p><p><strong>VISION extracts structure from the image.</strong> It identifies direction, entry levels, SL, and TP from the chart screenshot. The extraction is logged to vision_extractions in SCRIBE with a confidence rating. Low-confidence extractions can be held pending review. The signals_received row links to its vision_extractions row via vision_extraction_id. Every signal has full lineage back to its source.</p><p><strong>BRIDGE receives the parsed signal</strong> from parsed_signal.json. It checks three independent guards before AEGIS sees anything: SENTINEL (news guard clear?), the circuit breaker (MT5 data fresh?), and the equity drawdown breaker (floating loss under 3%?).</p><p><strong>AEGIS validates the trade.</strong> Direction sanity, SL distance, R:R minimum of 1.2, slippage check, open group limit, session-aligned daily loss limit, lot sizing against account balance. If the regime engine is active, it also checks regime confidence and applies countertrend thresholds. Every rejection is logged to SCRIBE and notified via HERALD.</p><p><strong>BRIDGE writes </strong><strong>command.json.</strong> FORGE reads it within 3 seconds and opens the trade group — typically 8 positions spread across the entry zone from entry_low to entry_high.</p><p><strong>FORGE manages the group autonomously.</strong> TP1 hit closes 70% of positions. Remaining positions move to SL at breakeven. TP2 closes the remainder. Close attribution is broker-first — the actual close price and reason come from the broker’s recent_closed_deals array before any inference fallback. Every close writes to both trade_positions and trade_closures.</p><p><strong>HERALD notifies.</strong> Signal received, approved, group opened, TP hit, SL hit, group closed — every step fires a Telegram message. You always know what the system did.</p><h3>The Database: 12 Tables, Each Earning Its Place</h3><p>SCRIBE started as 8 tables. It grew to 12. Each addition answered a real question the existing schema could not.</p><p>The original 8 covered the core lifecycle: system_events, trading_sessions, market_snapshots, signals_received, trade_groups, trade_positions, news_events, aurum_conversations.</p><p>Four tables were added as the system matured.</p><p><strong>market_regimes</strong> stores each regime inference snapshot with confidence score, posterior probabilities across all regime labels, model and version metadata, staleness flags, fallback reasoning, and the feature hash that identified the input vector. Every trade group and every signal carries a regime label. This table is the complete history of what the system believed about market conditions at every tick.</p><p><strong>trade_closures</strong> is a dedicated audit ledger separate from trade_positions. When a position closes, trade_positions updates its status. But trade_closures gets a new insert with the complete close context: close reason (SL_HIT, TP1_HIT, TP2_HIT, MANUAL_CLOSE), duration in seconds, P&amp;L, pips, session, and mode. You can ask &quot;show me every SL hit in the last 30 days, average duration, and what session they occurred in&quot; with a single query.</p><p><strong>component_heartbeats</strong> stores one row per component, upserted on each cycle. Every Python component calls scribe.heartbeat(). FORGE&#39;s heartbeat is synthesised from MT5 JSON file age. ATHENA reports itself. The dashboard health panel has zero hardcoded data.</p><p><strong>vision_extractions</strong> logs every VISION invocation with caller, source channel, confidence level, extracted text, structured data as JSON, processing time in milliseconds, downstream result, and the linked signal and group IDs. Complete lineage from image to trade.</p><p>Every table carries timestamp in UTC ISO format. Every table carries mode and session where applicable. This is the ML tax paid upfront. By the time the system has been running for weeks, every record is labelled with the operational context it was created in.</p><h3>The Regime Engine: Shadow Before Active</h3><p>The regime engine was not in the original design. It appeared because the data demanded it.</p><p>After accumulating weeks of market snapshots tagged with RSI, MACD, ADX, BB width, and session, a pattern becomes visible: the same signal in a trending market and a ranging market behaves differently. The same R:R that looks acceptable in a trend looks dangerous in a choppy range.</p><p>The regime engine lives in python/regime.py and runs inside BRIDGE on every tick. It produces a regime snapshot with a label (TREND_BULL, TREND_BEAR, RANGE, VOLATILE), a confidence score, and posterior probabilities. The primary path uses a Hidden Markov Model. A Gaussian classifier serves as the deterministic fallback when the HMM is not trained or when the feature vector shape has changed since the last training run.</p><p>Rollout is controlled by a single env var: REGIME_ENTRY_MODE.</p><ul><li>off — regime computed but not applied to entry policy</li><li>shadow — regime computed, logged to market_regimes, not enforced</li><li>active — regime policy applied when confidence and freshness pass</li></ul><p>The shadow mode is the correct way to introduce any ML component into a live trading system. You run it in shadow for days or weeks. You verify the labels match your own read of the market. You check whether trades the regime would have blocked actually lost money. Only then do you flip to active.</p><p>This discipline — shadow before active — is where most automated systems skip a step and pay for it.</p><h3>VISION: The Component That Appeared</h3><p>VISION was not planned. It is the most honest example of what good architecture enables.</p><p>The signal rooms I follow sometimes post chart screenshots instead of text signals. A chart image with an arrow, price levels marked, a Fibonacci drawn. Text parsing is useless here. But the image contains everything needed to trade: direction, entry zone, SL, TP.</p><p>Because the component boundaries were clean, adding VISION required one new file (python/vision.py), one new SCRIBE table (vision_extractions), and two integration points. LISTENER checks for media before text parsing. AURUM accepts direct image uploads from the operator via Telegram.</p><p>VISION is a shared module, not a separate service process. It does not run on its own. It is called by LISTENER and AURUM as a library. Failures return a safe LOW-confidence result rather than crashing the caller. The signal is held for human review, not silently dropped.</p><p>The lineage is complete. signals_received.vision_extraction_id links every signal to the extraction that produced it. signals_received.signal_source_type is either TEXT or IMAGE. Every downstream table inherits the regime context that was active when the trade was taken.</p><p>You can query: <em>“Show me all image-sourced signals, their vision confidence, and whether the resulting trades were profitable.”</em> That query is possible because the schema was designed to make it possible.</p><h3>The Operating Modes: Six States, Explicit Transitions</h3><p>The system has six operating modes. This is not a toggle between on and off. It is a state machine with explicit semantics and explicit override conditions.</p><p><strong>OFF</strong> — completely dormant, no data collection.</p><p><strong>WATCH</strong> — all components active, zero trades, full ML data collection. Every market snapshot is a labelled training sample.</p><p><strong>SIGNAL</strong> — Telegram signal execution only. LISTENER → Claude parse → AEGIS → FORGE.</p><p><strong>SCALPER</strong> — autonomous entries driven by BRIDGE scalper logic and LENS indicators, plus FORGE native scalper.</p><p><strong>HYBRID</strong> — SIGNAL and SCALPER active simultaneously.</p><p><strong>AUTO_SCALPER</strong> — AURUM as autonomous decision engine, polling every 120 seconds with a multi-timeframe prompt.</p><p>Mode overrides are automatic and logged to SCRIBE:</p><ul><li>SENTINEL active → effective mode becomes WATCH with auto-resume when guard lifts</li><li>MT5 data stale → circuit breaker fires → effective mode becomes WATCH with auto-resume</li><li>Equity drawdown above 3% → CLOSE ALL + WATCH, manual resume only</li><li>BRIDGE_PIN_MODE set → mode change requests logged as MODE_CHANGE_BLOCKED and rejected</li></ul><p>The rule I built the system around: start in WATCH. Run for at least three days before SIGNAL. By the time the system executes its first live trade, it already has days of market data with RSI, MACD, ADX, and regime labels attached. That is not wasted time. It is the foundation of everything that comes after.</p><h3>The Data Contract: One Document That Answers Everything</h3><p>One of the most useful deliverables in this project is not code. It is DATA_CONTRACT.md.</p><p>It defines three communication layers and their rules.</p><p><strong>Layer A — Persistence (SQLite).</strong> Long-lived truth. Signals, groups, positions, closures, regime snapshots, heartbeats, conversations. Written by everyone, queried by ATHENA and AURUM.</p><p><strong>Layer B — File bus (JSON files).</strong> Real-time IPC between BRIDGE, FORGE, LISTENER, ATHENA, and AURUM. Producers write, consumers read. BRIDGE reads and deletes aurum_cmd.json after acting on it. File-bus contracts are defined in schemas/files/*.schema.json and enforced by python/contracts/aurum_forge.py.</p><p><strong>Layer C — HTTP API (ATHENA).</strong> Dashboard and optional external agents. Mostly reads. A few writes that queue commands as files for BRIDGE. The HTTP contract is OpenAPI, live at http://localhost:7842/api/docs/ via Swagger UI.</p><p>The critical rule: trading execution is never driven by HTTP alone. POST /api/mode does not switch mode inside Flask. It writes a MODE_CHANGE command to aurum_cmd.json. BRIDGE reads that file on the next tick, validates it, acts on it, and deletes it. The file is the ground truth. The HTTP API is a queue.</p><p>If Flask crashes, BRIDGE keeps running. If BRIDGE crashes and restarts, it reads the file bus state and recovers. The layers are decoupled deliberately.</p><h3>The API-First Principle: Every Pixel Earns Its Data</h3><p>Halfway through the build I looked at the ATHENA dashboard and noticed something that bothered me immediately. There were hardcoded mock arrays in dashboard/app.js — fake component statuses, fake activity log entries, a hardcoded component list. The dashboard looked live but was not.</p><p>I stopped and made a rule: <strong>everything visible in ATHENA must flow through the Flask API. No exceptions.</strong></p><p>This required a component_heartbeats table, an /api/components endpoint returning all 11 monitored components, expansion of /api/live to include broker info, circuit breaker state, AEGIS scaling factor, reconciler result, and regime snapshot in one payload, deletion of every hardcoded constant from dashboard/app.js, and null-safe rendering everywhere — — instead of crash when a value is null.</p><p>The result is a dashboard that is genuinely honest. When the system is disconnected, numbers show —. When MT5 data goes stale, a circuit breaker banner appears. When the account is DEMO, a blue badge appears. When it is LIVE, a green badge appears. FORGE writes broker_info.json on startup. The API reads it. The dashboard shows it. There is no version of the truth in the dashboard that is not also in the database or the file bus.</p><h3>The Safety Architecture: Three Guards Before AEGIS</h3><p>The system has three independent safety guards that operate before any trade validation reaches AEGIS.</p><p><strong>SENTINEL — the news guard.</strong> Monitors ForexFactory plus RSS feeds for high-impact USD events. Suspends trading 30 minutes before NFP, CPI, FOMC. Extended events like Fed speeches hold the guard for 60 minutes. Time conversion uses DST-aware pytz rules so the guard fires correctly year-round.</p><p>The failure mode matters: if ForexFactory is unreachable after two retries, SENTINEL activates the guard as a safe default. It never assumes clear-to-trade on a fetch error. The system errs toward safety, not toward opportunity.</p><p><strong>Circuit breaker — MT5 staleness detection.</strong> BRIDGE checks the age of market_data.json on every tick. More than 120 seconds old fires the breaker: effective mode forces to WATCH, HERALD sends an alert, SCRIBE logs CIRCUIT_BREAKER_ON. When MT5 data resumes, the breaker lifts automatically and logs CIRCUIT_BREAKER_OFF. You are never trading on stale prices.</p><p><strong>Equity drawdown breaker.</strong> If floating P&amp;L drops more than 3% of account balance, BRIDGE issues CLOSE_ALL to FORGE, forces mode to WATCH, and requires manual intervention to resume. This is a hard stop, not a soft suggestion.</p><p>Only after all three guards are clear does AEGIS see the signal. Every rejection at every layer is logged to SCRIBE and notified via HERALD. You always know why a trade was not taken.</p><h3>The Ops Layer: Where Vibe-Coded Systems Usually Fail</h3><p>Most vibe-coded projects are demos. They run on a developer’s machine, they work in the demo, and they fall apart the moment something unexpected happens: a network blip, a process crash, a hardcoded path that only works on one machine, an env var that a service does not pick up after a restart.</p><p>The operational layer of aurum-signal was designed to eliminate every one of those failure modes.</p><p><strong>Services are launchd agents rendered from templates.</strong> The four long-running services (BRIDGE, LISTENER, AURUM, ATHENA) are installed via services/install_services.py. It detects macOS vs Linux, renders plist templates by injecting .env values, creates symlinks in ~/Library/LaunchAgents/ — not copies, symlinks, so every change is always traceable to the repo — and loads them. Process crashes are restarted automatically by launchd within seconds.</p><p><strong>Code changes hot-reload without a full restart.</strong></p><p>bash</p><pre>make reload        # kill + relaunch all 4 processes, picks up new code<br>make reload-bridge # just BRIDGE<br>make reload-aurum  # reloads SOUL.md and SKILL.md without full restart</pre><p><strong>The full stack starts in dependency order.</strong></p><p>bash</p><pre>make system-up    # TradingView CDP → MetaTrader 5 app → Python services<br>make system-down  # reverse order teardown</pre><p><strong>AURUM gets a session prompt after every restart.</strong> There is a specific message defined in the operations doc to paste into AURUM after a service restart:</p><blockquote>We just restarted all services. Confirm you have fresh context: mode, MT5 snapshot, open groups, LENS, SENTINEL, today’s stats. If anything is missing, say what’s missing instead of guessing.</blockquote><p>This is a production pattern — a bootstrapping handshake that verifies the agent has coherent context before you trust it to answer questions. If AURUM says “I don’t see MT5 data,” you know the symlink is broken before you trust any of its analysis.</p><p><strong>Signal media can be replayed retroactively.</strong></p><p>bash</p><pre>python3 scripts/replay_signal_uploads.py --channel &quot;FLAIR FX&quot; --limit 10 --notify</pre><p>Chart images that arrived during WATCH mode can be run through VISION after the fact. WATCH mode is genuinely retrospective.</p><h3>The Analysis Engine: Async Intelligence on Demand</h3><p>AURUM can queue an async analysis job via the AEB action ANALYSIS_RUN. The request is written to aurum_cmd.json, BRIDGE picks it up on the next tick, submits it to a worker thread pool, and returns a query_id immediately.</p><p>The worker runs the analysis — a trade group review, a regime performance summary, a session postmortem — writes the result to logs/analysis/&lt;query_id&gt;.md, then posts the body back to the existing Telegram channel via HERALD. No new bot. No new token. No new chat ID. The same HERALD singleton that sends every other notification.</p><p>You can say to AURUM: <em>“Queue an analysis run for trade group 56 and post the result to Telegram.”</em> AURUM emits the command JSON, BRIDGE executes it, and the result arrives in Telegram as a formatted post seconds later.</p><p>New analysis types are registered with a single decorator anywhere in the codebase:</p><p>python</p><pre>@register_analysis(&quot;my_kind&quot;)<br>def handler(params) -&gt; dict:<br>    return {&quot;title&quot;: &quot;...&quot;, &quot;body_md&quot;: &quot;...&quot;, &quot;summary&quot;: &quot;...&quot;, &quot;metadata&quot;: {}}</pre><p>This is the kind of extensibility that only appears when the initial architecture is clean.</p><h3>What Emerged Versus What Was Designed</h3><p>I designed 10 components. The system grew to 12. Neither addition was planned.</p><p><strong>VISION emerged from a real problem.</strong> Signal rooms post chart images. Text parsing is useless for images. Because the component boundaries were tight and the SCRIBE schema had the right extension points, VISION slotted in as a shared module without touching BRIDGE, AEGIS, FORGE, or ATHENA. Two integration points, one new file, one new table.</p><p><strong>RECONCILER was promoted.</strong> In the original design it was a module running inside BRIDGE. In the real system it is a standalone service — its own process, its own restart lifecycle, its own heartbeat. The promotion happened because hourly position auditing is important enough to be independently monitored, not buried inside another process.</p><p><strong>The regime engine appeared.</strong> ORACLE and SEER were cut from the original design because they added ML complexity before the core was validated. But SCRIBE was accumulating labelled market data from day one. When the data was there, the model followed naturally. The shadow rollout path means it runs alongside the live system building confidence before being applied to actual entry decisions.</p><p><strong>The analysis runner became a platform.</strong> AURUM can queue async work that runs in a thread pool and delivers results to Telegram. Any future analysis type is a single decorated function.</p><p>None of these were mistakes in the original design. They are evidence that the original boundaries were correct. New capabilities arrived cleanly because there was always an obvious place to put them.</p><h3>What Is Next</h3><p>Three things are intentionally deferred until the core system has live validated data.</p><p><strong>ARGUS</strong> — a fundamental analysis layer. DXY, VIX, 10-year yield, EUR/USD as a macro bias score fed into AURUM’s context before each decision. Five data points, one Python file, one new component. The architecture has a clear slot for it.</p><p><strong>Pine Script webhooks</strong> — TradingView Pro webhooks as a third signal source alongside the existing Telegram channels. A small Flask endpoint that receives Pine Script alerts and writes them in the same format LISTENER already uses. BRIDGE and FORGE never change.</p><p><strong>Full ML training pipeline</strong> — the market_snapshots, market_regimes, and trade_closures tables have been accumulating labelled data since WATCH mode began. The outcome_label column on market snapshots exists for exactly this. When sample counts are sufficient, a properly trained HMM replaces the heuristic classifier, and REGIME_ENTRY_MODE moves from shadow to active.</p><h3>The Honest Assessment</h3><p>I could not have built this without AI assistance. The MQL5 Expert Advisor alone — multiple operating modes, position management, JSON file bus, regime mirror — would have taken me weeks. The SQLite schema, the Flask API with OpenAPI spec and Swagger UI, the Playwright tests, the launchd service templates, the shell aliases, the JSON Schema contract files, the analysis runner — none of these are things I would have written by hand in any reasonable timeframe.</p><p><strong>But the AI could not have built this without me.</strong></p><p>The decision to use a file bus instead of sockets came from understanding the macOS/MT5 constraint. The decision to align daily loss resets to session open instead of UTC midnight came from understanding how trading days actually work. The decision to keep WATCH mode mandatory before SIGNAL came from respecting the difference between a system that works in a demo and a system that works with money. The decision to make every piece of observable data flow through the API before the dashboard shows it came from a DevOps architect’s reflex that hardcoded mock data is a lie.</p><p>The AI wrote the code. I designed the system. That is not a small distinction. The code is the expression of the design. A well-designed system with well-written prompts produces implementations that work. A poorly-designed system produces implementations that look like they work until they don’t.</p><p>The other thing I want to say is this: <strong>the prompts are the documentation.</strong> Every major architectural change in this project was encoded as a structured prompt file — delta-1.md, delta-2.md, delta-3.md — that lives in the repository alongside the code. Any machine, any developer, any future session can replay those prompts and arrive at the same system state. The prompts are version-controlled, human-readable, and executable. That is a form of infrastructure-as-code that I had not used before this project, and I will not build a complex system without it again.</p><p><em>aurum-signal is at github.com/ephico2real2/aurum-signal</em></p><p><strong>Tags:</strong> algorithmic-trading · vibe-coding · claude-ai · devops · python · metatrader5 · xauusd · system-design</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=323a1d4a5adf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apple Called My $3,000 Intel i9 MacBook Pro “Obsolete” — So I Fixed It Myself for $150]]></title>
            <link>https://ephico2real.medium.com/apple-called-my-3-000-intel-i9-macbook-pro-obsolete-so-i-fixed-it-myself-for-150-e61dbc622467?source=rss-66f888c29417------2</link>
            <guid isPermaLink="false">https://medium.com/p/e61dbc622467</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[right-to-repair]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[consumer-rights]]></category>
            <category><![CDATA[diy]]></category>
            <dc:creator><![CDATA[Ola Sumbo]]></dc:creator>
            <pubDate>Thu, 01 Jan 2026 11:30:26 GMT</pubDate>
            <atom:updated>2026-05-20T15:26:46.269Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Apple Called My $3,000 Intel i9 MacBook Pro “Obsolete” — So I Fixed It Myself for $150</strong></h3><h3>When sustainability meets corporate greed: A tale of planned obsolescence and DIY rebellion</h3><h3>The Beast That Apple Wants You to Throw Away</h3><p>Let me tell you about my “obsolete” laptop:</p><p>Command:</p><pre>system_profiler SPHardwareDataType SPDisplaysDataType</pre><p>The “Obsolete” Specs:</p><ul><li>8-Core Intel Core i9 @ 2.4 GHz with Hyper-Threading</li><li>32 GB RAM</li><li>Radeon Pro Vega 20 with 4GB VRAM (dedicated graphics card)</li><li>2880 x 1800 Retina Display</li><li>MacBook Pro 15&quot; (2019) — Model A1990</li></ul><p>This isn’t just any laptop. This is a professional workstation that I’ve been using daily for:</p><ul><li>Docker and Podman containerization</li><li>Kubernetes orchestration</li><li>AI prompt engineering</li><li>VirtualBox virtualization</li><li>Heavy development work</li></ul><p>This machine cost around $2,800-$3,300 USD in 2019 (base model started at $2,399, but mine was a high-end custom configuration). It was one of the highest-spec builds available that year. And it still runs flawlessly.</p><h3>The Apple Store Visit</h3><p>My battery needed replacing. Simple enough, right? Apple charges about $260 for a battery replacement. I made an appointment and visited the Apple Store.</p><p>That’s when things got interesting.</p><p>Apple’s verdict: “This laptop is obsolete and out of support.”</p><p>Let me repeat that. An 8-core Intel i9 processor with 32GB of RAM and a dedicated Radeon Pro Vega 20 GPU is “obsolete.”</p><p>The staff gave me the whole sales pitch about the M4 chip. Don’t get me wrong — the M4 is impressive. I’m not disputing that. But calling an Intel i9 “obsolete” is an insult to anyone who has ever studied basic physics.</p><p>Apple, the company that claims to “support the planet” and champions environmental responsibility, wanted me to trash a perfectly functioning $3,000 professional machine because… reasons?</p><p>They wanted to make this engineer — someone who understands how things work — look like a foolish spender ready to drop another $3,000+ on a new machine.</p><p>I refused to play along.</p><h3>The iFixit Solution</h3><p>I ordered an iFixit battery replacement kit for $129 (before taxes).</p><p>Then I did something Apple doesn’t want you to know is possible: I took control of my own hardware.</p><p>Full transparency: I traveled to my home country (I won’t mention which one — please don’t come for me about labor practices, this isn’t that). In the popular tech market district — our local “Computer Village” — I found a skilled technician.</p><p>When he saw the iFixit kit, his eyes lit up: <em>“Oh wow, this is high-quality stuff! Not like the ones we order directly from China.”</em></p><p>I asked how much he’d charge to install it. He quoted an amount equivalent to about $6.90 USD. I didn’t want him to undersell his expertise, so I gave him about $20 when he finished. He was genuinely grateful and excited.</p><p>Total cost: $129 (kit) + $20 (installation) = $149</p><p>Apple wanted $260 — and to shame me for not buying a new laptop.</p><h3>Apple Should Be Ashamed</h3><p>Let’s do the math:</p><ul><li>Apple’s message: “Throw away your $3,000 laptop and buy a new one for $3,000+”</li><li>Reality: “Repair your laptop for $150 and keep using it for years”</li></ul><p>Apple’s approach:<br>Cost: “Just buy a new MacBook for $3,000+”<br>E-waste avoided: 0 pounds<br>Planet saved: Not at all</p><p>DIY approach:<br>Cost: $149 (iFixit kit + installation)<br>Money saved vs Apple: $3,000+ ( buying new)<br>E-waste avoided: One entire high-end laptop<br>Planet actually helped: Yes</p><p>This is the same company running “Save the Planet” campaigns. This is corporate greenwashing at its finest.</p><p>We’re nerds on this platform. We understand technology. We know that an 8-core i9 with 32GB RAM isn’t obsolete. We have to push back against this corporate grift.</p><h3>The Aftermath: A Monitoring Guide</h3><p>After successfully replacing my battery, I got curious. How do I properly monitor and maintain this new battery? What tools does macOS provide?</p><p>I started experimenting with various system commands and created a comprehensive guide: <a href="https://github.com/ephico2real2/macos-battery-monitoring">macOS Battery Monitoring Guide</a></p><p>The repository includes:</p><ul><li>Command-line tools for battery health monitoring</li><li>Three powerful GUI applications (installable via Homebrew)</li><li>How to check cycle count, capacity, temperature, and voltage</li><li>Interpreting battery condition indicators</li><li>Real examples from my iFixit battery</li></ul><p>Example monitoring command:</p><pre>system_profiler SPPowerDataType</pre><p>This shows:</p><ul><li>Battery manufacturer (iFixit in my case)</li><li>Full charge capacity (6900 mAh)</li><li>Cycle count (currently at 2)</li><li>Battery condition (Normal)</li><li>Charging status and more</li></ul><h3>Three Essential Monitoring Tools (Installed via Homebrew)</h3><p>I also installed three excellent GUI applications to make battery monitoring easier:</p><p>1. CoconutBattery — Comprehensive battery health tracking with historical data:</p><pre>brew install --cask coconutbattery</pre><p>2. Stats — Real-time system monitoring in your menu bar (battery, CPU, RAM, network):</p><pre>brew install --cask stats</pre><p>3. AlDente — Battery charge limiter to extend battery lifespan by preventing constant 100% charging:</p><pre>brew install --cask aldente</pre><p>These tools give you complete visibility into your battery’s health and help you maximize its lifespan. Check the <a href="https://github.com/ephico2real2/macos-battery-monitoring">full repository</a> for detailed setup guides and screenshots.</p><h3>The Real Message</h3><p>Right to Repair matters. Not just as a legal concept, but as pushback against manufactured obsolescence.</p><p>Apple and other tech giants have created a culture where:</p><ul><li>Perfectly functional hardware is “obsolete”</li><li>Repair is discouraged or impossible</li><li>Consumers are trained to upgrade constantly</li><li>“Sustainability” is a marketing term, not a practice</li></ul><p>My Intel i9 MacBook Pro runs Docker, manages Kubernetes clusters, handles AI workloads, and powers my daily development work. It’s not obsolete. It’s being deliberately obsoleted.</p><h3>What You Can Do</h3><ol><li>Support Right to Repair legislation in your region</li><li>Consider iFixit and other repair options before buying new</li><li>Call out greenwashing when you see it</li><li>Share repair guides and knowledge</li><li>Keep using hardware that works — specs don’t expire like milk</li></ol><p>My “obsolete” laptop will probably outlast Apple’s concern for the planet.</p><p>About the battery monitoring guide: Check out the full repository at <a href="https://github.com/ephico2real2/macos-battery-monitoring">github.com/ephico2real2/macos-battery-monitoring</a> for commands and tools to monitor your MacBook’s battery health.</p><p>Questions? Thoughts? Repair stories? Drop them in the comments. Let’s normalize fixing things instead of trashing them.</p><p><em>P.S. — If you’re an Apple engineer reading this: You build amazing hardware. Now let us keep using it.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e61dbc622467" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Kubernetes Actually Hard?]]></title>
            <link>https://ephico2real.medium.com/is-kubernetes-actually-hard-c1e13072efee?source=rss-66f888c29417------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1e13072efee</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Ola Sumbo]]></dc:creator>
            <pubDate>Sat, 09 Sep 2023 00:37:19 GMT</pubDate>
            <atom:updated>2023-09-09T01:04:12.996Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Kubernetes and Serverless:</strong> <strong><em>The Next Chapter of Application Development</em></strong></p><p>Kubernetes combined with serverless technologies is shaping the future of mainstream applications. The ecosystem is expanding daily, with third-party companies introducing CRD extensions to manage application orchestration natively via Kubernetes operators.</p><p>Is the transition difficult? That’s relative to one’s background. Many seasoned professionals lament the fact that a significant number lack a foundational understanding of Linux, Security, Docker, storage, and virtualization. Moreover, many are unfamiliar with networking outside of a Kubernetes environment.</p><p>AWS and other cloud providers have popularized a managed service approach. While this is beneficial for businesses, it&#39;s inadvertently created a generation of engineers with gaps in their technical knowledge. Concepts like AWS&#39;s security groups and load balancers can be likened to basic algebra, while the intricacies of Linux firewalls (e.g., firewalld, ufw, iptables) and tools like Nginx, HAproxy, and Keepalive represent the calculus. Without a grip on the basics, delving into the complexities can be overwhelming.</p><p>A significant challenge is the unrealistic expectations set by management. Newcomers are often expected to produce magic with Kubernetes without the foundational knowledge or resources to master its intricacies. Coupled with a mentorship deficit in the industry, this sets up a pressure cooker environment that doesn&#39;t foster genuine understanding or learning.</p><p>Many professionals bypass these foundational topics, but the most adept Kubernetes Subject Matter Experts usually have backgrounds or once moon-light as a assystem admins or engineers. They boast a strong grasp of Linux, Security ( Fail2Ban, Linux Jails/Chroot), Docker, storage, troubleshooting, and networking. Merely installing Kubernetes isn’t the endgame; the essence lies in troubleshooting with standard Linux tools and understanding the core concepts underneath.</p><p>Before diving into Kubernetes, I recommend a hands-on Linux course, such as those available on Udemy. When you&#39;ve faced the challenges of classic on-prem Linux servers and clustering, you can truly appreciate Kubernetes and its problem-solving prowess. This depth of understanding comes from hands-on experience, textbooks, and comprehensive self-paced courses.</p><p><strong>Personal Anecdote:</strong> My journey into Kubernetes began as a hobby, transitioning from Docker in late 2013 and LXC containers. By late 2014, with the backing of giants like Red Hat, Kubernetes surged in popularity. Engineers I’ve mentored now tackle Linux and networking with the same fervor as they would algebra or calculus. I also advocate for community college Linux courses, especially those tied to the Red Hat Academy, as they offer a hands-on avenue to gain practical skills. AWS revolutionized the industry, but it also reshaped our learning methods.</p><p>My insights stem from over 17 years in the field, a decade of which involved Docker and Kubernetes. This technology pivot has been the cornerstone of my career, with a significant portion of my recent projects focusing on Kubernetes. The introduction of CRDs marked a turning point. And a touch of nostalgia: those release cycles from Thursday to Monday? Unforgettable times! QA Testers yelling at Ops team for missing one step in the release steps. Release managers buy us free pizza. Monday morning can be smiles or firing. Lol. Now, blue- green has changed our lives by making CICD a lot easier. No</p><p>Nowadays, tools such Tekton, ArgoCD and Flux etc are kubernetes CRDs. If you ever manage Jenkins or Nagios. We remember the old patching weekend. Lol. You will know the true meaning of pain of buggy application monitoring tools and CD tools. Lol.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1e13072efee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FreeIPA creating SRV records simple Cheat Sheet]]></title>
            <link>https://ephico2real.medium.com/freeipa-creating-srv-records-simple-cheat-sheet-c118a7e20d49?source=rss-66f888c29417------2</link>
            <guid isPermaLink="false">https://medium.com/p/c118a7e20d49</guid>
            <dc:creator><![CDATA[Ola Sumbo]]></dc:creator>
            <pubDate>Fri, 26 Jun 2020 17:41:28 GMT</pubDate>
            <atom:updated>2020-06-26T17:41:28.356Z</atom:updated>
            <content:encoded><![CDATA[<p>#Cheat Sheet cheap from my OCP4 Late night escapades!</p><p><strong>Cluster Setup: &lt;component&gt;.&lt;cluster_name&gt;.&lt;base_domain&gt;. e.g</strong></p><p>etcd-0.ocp4-dev.ephicolabs.com</p><p>etcd-1.ocp4-dev.ephicolabs.com</p><p>etcd-2.ocp4-dev.ephicolabs.com</p><p><strong>SRV Records: _etcd-server-ssl._tcp.&lt;cluster_name&gt;.&lt;base_domain&gt;.</strong></p><p><strong>Actual Name:</strong> _etcd-server-ssl._tcp.ocp4-dev.ephicolabs.com.</p><p>Note the dot(.) at the end of the name</p><h4>[root@ipa ~]# kinit admin</h4><pre>Password for admin@EPHICOLABS.COM</pre><h4>[root@ipa ~]# klist</h4><p>Ticket cache: KEYRING:persistent:0:0</p><p>Default principal: admin@EPHICOLABS.COM</p><p>Valid starting Expires Service principal</p><p>06/26/2020 13:22:18 06/27/2020 13:22:12 krbtgt/EPHICOLABS.COM@EPHICOLABS.COM</p><p>[root@ipa ~]#</p><h4>[root@ipa ~]# ipa dnsrecord-add ocp4-dev.ephicolabs.com</h4><p>Record name: <strong>_etcd-server-ssl._tcp.ocp4-dev.ephicolabs.com.</strong> =&gt;enter and Please note dot (.) at the end</p><p>Please choose a type of DNS resource record to be added</p><p>The most common types for this type of zone are: A, AAAA</p><p>DNS resource record type: SRV</p><p>SRV Priority (order): 0</p><p>SRV Weight: 10</p><p>SRV Port: 2380</p><p>SRV Target: etcd-0.ocp4-dev.ephicolabs.com</p><p>Record name: _etcd-server-ssl._tcp</p><p>SRV record: 0 10 2380 etcd-0.ocp4-dev.ephicolabs.com</p><p><strong>Now verify that the requested SRV record has been created.</strong></p><h4>[root@ipa ~]# dig _etcd-server-ssl._tcp.ocp4-dev.ephicolabs.com SRV +short</h4><p>0 10 2380 etcd-0.ocp4-dev.ephicolabs.com.ocp4-dev.ephicolabs.com.</p><p><strong>Add more.</strong></p><p>[root@ipa ~]# ipa dnsrecord-add ocp4-dev.ephicolabs.com</p><p>Record name: _etcd-server-ssl._tcp.ocp4-dev.ephicolabs.com. ==&gt; enter</p><p>DNS resource record type: SRV</p><p>SRV Priority (order): 0</p><p>SRV Weight: 10</p><p>SRV Port: 2380</p><p>SRV Target: etcd-1.ocp4-dev.ephicolabs.com</p><p>Record name: _etcd-server-ssl._tcp</p><p>SRV record: 0 10 2380 etcd-0.ocp4-dev.ephicolabs.com, 0 10 2380 etcd-1.ocp4-dev.ephicolabs.com.</p><h4>OR after you created the first one. You can simply lookup the name and start using it to add more records as shown below</h4><p>[root@ipa ~]#<strong> ipa dnsrecord-find ocp4-dev.ephicolabs.com --name=_etcd-server-ssl._tcp</strong></p><p>Record name: _etcd-server-ssl._tcp</p><p>SRV record: 0 10 2380 etcd-0.ocp4-dev.ephicolabs.com, 0 10 2380 etcd-1.ocp4-dev.ephicolabs.com</p><h4>[root@ipa ~]# ipa dnsrecord-add ocp4-dev.ephicolabs.com _etcd-server-ssl._tcp</h4><p>DNS resource record type: SRV</p><p>SRV Priority (order): 0</p><p>SRV Weight: 10</p><p>SRV Port: 2380</p><p>SRV Target: etcd-2.ocp4-dev.ephicolabs.com</p><p>Record name: _etcd-server-ssl._tcp</p><p>SRV record: 0 10 2380 etcd-0.ocp4-dev.ephicolabs.com, 0 10 2380 etcd-1.ocp4-dev.ephicolabs.com, 0 10 2380 etcd-2.ocp4-dev.ephicolabs.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*svQ68fkkOfyEifmqz2wLMQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c118a7e20d49" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>