Hermes Agent
c70ac0fb24
feat: auto-reconcile stale holding mirrors
...
Closes #94
2026-09-14 12:55:04 +09:00
copilot-swe-agent[bot] and genichin
8b1de8e26a
Fence unmanaged lifecycle by snapshot time
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-09-13 05:54:51 +00:00
copilot-swe-agent[bot] and genichin
84d81658a1
Resolve main merge and add unmanaged store race tests
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-09-13 02:58:18 +00:00
copilot-swe-agent[bot] and genichin
c73e382b70
Merge remote-tracking branch 'origin/main' into copilot/feat-reconcile-unmanaged-position-durable-lifecycl
...
# Conflicts:
# .proofline/criteria/ac-0029.md
# .proofline/identities.json
# tests/adapters/persistence/test_migration_and_drift.py
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-09-13 02:53:22 +00:00
copilot-swe-agent[bot] and genichin
591db7adb7
Fix unmanaged reconciliation review blockers
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-09-13 02:21:37 +00:00
copilot-swe-agent[bot] and genichin
f9284d1de8
fix: preserve unmanaged first-seen timestamps
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-09-12 13:33:05 +00:00
copilot-swe-agent[bot] and genichin
be2e73a2d6
fix: harden unmanaged position lifecycle writes
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-09-12 13:31:32 +00:00
copilot-swe-agent[bot] and genichin
fe51d211d9
feat: persist unmanaged position lifecycle state
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-09-12 13:24:51 +00:00
copilot-swe-agent[bot] and genichin
45a5e4157d
fix: preserve multi-cause reconcile warnings and align slot blocking
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-09-12 13:22:40 +00:00
copilot-swe-agent[bot] and genichin
21f8fdd4b6
fix(ac-0024): injective C identity via SHA-256 length-prefix digest + PostgreSQL migration/round-trip tests
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-08-26 00:38:02 +00:00
copilot-swe-agent[bot] and genichin
f1864a6aa8
fix(ac-0024): address 4 blockers: NUL byte in C identity, instance_key isolation, clear_warned gate, production wiring
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-08-26 00:20:09 +00:00
copilot-swe-agent[bot] and genichin
153a563f6d
feat(alerts): publish reconciliation quantity mismatches to trex-notifier (req-0007/ac-0024)
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-08-25 14:50:29 +00:00
copilot-swe-agent[bot] and genichin
1179bdfe23
AC-0023: filter C-case quantity mismatch slots from strategy RPC, fail-closed on warn_store failure, symbol-aggregate verify clear
...
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com >
2026-08-25 13:17:06 +00:00
Hermes Agent
81a853a314
feat(reconcile): safely seed canonical cost basis
2026-07-17 09:57:08 +09:00
genichin and Claude Fable 5
690071afad
feat(slots): additive strategy fields + filter (REQ-116, BAT-055)
...
trex.slots.req wire 계약 additive 확장 — 기존 소비자(orb/tsl) backward compatible.
- PortfolioItem: strategy_name(Optional[str]) + markets(list) 필드 추가
- hub_read.py: get_portfolios()에서 strategy_name/markets 파싱 추가 (safe default)
- slot_to_dict(): strategy_name/strategy_params/markets 3필드 row에 추가 (SnapshotStore→PortfolioItem 경유)
- make_slots_rpc_handler(): strategy 요청 파라미터 → Python 레벨 후처리 필터 (available_slots 계산 이후, REQ-073 AC-6 불변)
- 테스트: AC-1~8 전수 + hub_read 파싱 + 회귀 갱신 (777 passed, 47 skipped)
- docs/interface-contract.md: 요청 파라미터·응답 행 스키마·소스 테이블·REQ-074 AC-5 주석 갱신
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
2026-07-04 11:10:01 +09:00
genichin and Claude Sonnet 4.6
e4e5c70422
feat(bat-053): 그날-시작 KIS 인증정보 fetch + fail-safe 로드 (REQ-112~115)
...
REQ-112: BrokerCredentialPayload/TradingContext 데이터클래스 + PortfolioHubReadPort.fetch_broker_credential() 포트 메서드 + hub_read 어댑터(_fetch_user_info 헬퍼 추출) + stub_read 결정론 stub
REQ-113: DaemonInstanceConfig/DaemonConfig.credential_fetch_enabled opt-in(기본 False) + TOML 파싱 + break-glass(TREX_KIS_BROKER_BREAK_GLASS) 감지
REQ-114: SnapshotScheduler._maybe_fetch_credential() — fail-closed 3조건(unavailable/broker-null/trading_disabled) + CRITICAL 알람 DAY_START_LOAD_FAILED + IntentService entry_allowed_fn 게이트(BuyIntent 차단, SellIntent 통과)
REQ-115: 그날 고정 캐시(_cached_credential/_credential_date) — 동일 날짜 재fetch 방지 + app_secret 메모리 한정(Redis 미기록)
스텁 기반 구현: 실 portfolio-hub/네트워크 없이 AC 전부 단위 테스트.
회귀: credential_fetch_enabled=False(기본) 경로 byte-for-byte 보존.
745 passed, 47 skipped (0 failed).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
2026-06-28 11:00:18 +09:00
genichin and Claude Sonnet 4.6
73d3b35ab2
feat(bat-052): WAC 실현손익 리포트 통합 (REQ-109/110/111, dcy-035)
...
- portfolio.py: RealizedPnlItem/RealizedPnlResult 데이터클래스 추가;
PortfolioHubReadPort에 get_realized_pnl 포트 메서드 추가
- hub_read.py: GET /v1/portfolios/{id}/pnl/realized 어댑터 구현
(from/to/symbol query, 비2xx/네트워크→PortfolioHubUnavailableError)
- stub_read.py: get_realized_pnl 고정 결과 stub 추가 (무네트워크)
- operator_report.py: OperatorReport에 WAC 4필드+degrade 2필드 추가;
apply_wac_to_report/buy_fee_by_asset 헬퍼; render_text/render_json WAC 섹션
- cli.py: _cmd_report에 WAC 경로(portfolio-hub 설정 시) + degrade 경로 통합
(REQ-111: base_url 미설정/Unavailable → 식별가능 에러, 폴백 없음)
- tests: 51개 신규 테스트 (domain sweep, hub_read, stub_read, operator_report,
cli_report_wac); 전체 717 passed, 47 skipped
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
2026-06-26 20:35:17 +09:00
genichin and Claude Opus 4.8
07b393d27d
feat(core-B): 운영자 sync/verify CLI + cold-start onboarding (BAT-051, REQ-105/106, PR #32 )
...
dcy-034 마지막 조각. sync(슬롯 qty←브로커+warning해제+OQ-A 전이엣지+FR-7 평단seed)/verify(C 재대조·강제해제없음). core-A QC minor 2건 정리 동봉. QC(opus) PASS, 683 passed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
2026-06-26 09:53:49 +09:00
genichin and Claude Sonnet 4.6
c193388198
feat(core-A): reconcile-warning durable store + blocking gate (BAT-050, REQ-102/103/104/107/108)
...
B/C 불일치 시 슬롯을 durable 차단(ReconcileWarningStore)하고 전략 intent 경로에
pause∨reconcile_warned 게이트를 추가한다. 안전망(safety-sell/kill-switch/watchdog)
경로는 SlotService 직접 호출로 게이트를 구조적으로 우회(OQ-B 확정).
SlotState enum/전이표/wire 계약 필드는 불변, reconcile_warned 필드만 additive 추가.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
2026-06-26 00:43:04 +09:00
genichin
7e23648489
feat: add kill-switch control flow
2026-06-07 14:00:20 +09:00
genichin and Claude Opus 4.7
43bad2424e
fix: align portfolio-hub read adapter to live API contract
...
whoami now hits GET /v1/user_info (the live endpoint; /v1/auth/whoami
does not exist), get_portfolios parses the {portfolios:[...],total} envelope
and filters by managed_by_daemon_id client-side (the list endpoint is
token-scoped, no such query param), and a missing URL scheme now defaults
to http:// so a bare host can't silently degrade the daemon.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-06-06 10:34:35 +09:00
genichin
ca757009f5
feat: add portfolio snapshot read layer
2026-06-06 09:33:00 +09:00