feat(intents): emit warn alarm on first reconcile_warned rejection

Co-authored-by: genichin <4282227+genichin@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-08-26 04:19:14 +00:00
committed by GitHub
co-authored by genichin
parent 98c38327b2
commit a9e88f9770
4 changed files with 318 additions and 0 deletions
@@ -7,6 +7,8 @@ daemon wiring was never run until the REL-004 live smoke timed out every buy.
"""
from __future__ import annotations
from pathlib import Path
from trex_core.application.portfolio import PortfolioItem, SnapshotStore
from trex_core.runtime.daemon import Daemon
@@ -35,3 +37,14 @@ def test_resolve_symbol_reads_item_symbol():
def test_resolve_symbol_unknown_returns_none():
holder = _StoreHolder(_store())
assert Daemon._resolve_symbol(holder, "pf-missing") is None
def test_daemon_wires_shared_alarm_emitter_into_intent_service():
src = (
Path(__file__).resolve().parents[2]
/ "trex_core"
/ "runtime"
/ "daemon.py"
).read_text(encoding="utf-8")
assert "self.intent_service = IntentService(" in src
assert "alarm_emitter=self.alarm_emitter" in src