Commit Graph

219 Commits

Author SHA1 Message Date
kjh2064 6d9937c590 fix(web): calculate correct Hangfire job StartedAt using TotalDuration metadata
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 16s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m46s
2026-07-12 14:15:46 +09:00
kjh2064 ef6f9c74f6 fix(web): define explicit action endpoint with handler query for operations manual trigger form
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 15s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m45s
2026-07-12 14:10:40 +09:00
kjh2064 24ec410f3d feat(web): publish version.txt in build pipeline for deterministic live server versioning
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 16s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m46s
2026-07-12 14:05:10 +09:00
kjh2064 024122d310 fix(web): resolve path separator mismatch in git commit hash parsing, and update fallback release values
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 16s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m47s
2026-07-12 13:57:42 +09:00
kjh2064 fc0d341d15 test(web): add unit tests to verify Hangfire scheduler jobs mapping and cron pattern validation
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 24s
Prepare Release / Build & Create Release (push) Successful in 1m0s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 2m6s
2026-07-12 13:44:43 +09:00
kjh2064 688ee3350d chore(web): update hourly price update scheduler to run every 2 hours during market hours
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 25s
Prepare Release / Build & Create Release (push) Successful in 1m0s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
2026-07-12 13:42:51 +09:00
kjh2064 f40da64a05 fix(web): support runId in Detail page from both route parameters and query strings
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 24s
Prepare Release / Build & Create Release (push) Successful in 56s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 2m8s
2026-07-12 13:37:33 +09:00
kjh2064 475950be36 feat(web): add manual trigger action support for Hangfire recurring jobs
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 22s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
Prepare Release / Build & Create Release (push) Successful in 1m9s
Prepare Release / Release Notification (push) Successful in 2s
2026-07-12 13:36:52 +09:00
kjh2064 27a56e65b7 feat(web): update AppVersion format to comply with quant_YYYYMMDD.count.hash rule
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 23s
Prepare Release / Build & Create Release (push) Successful in 58s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m52s
2026-07-12 13:31:46 +09:00
kjh2064 a9986fbc4c feat(web): implement progressive IP lockout duration scaling based on block counts
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 22s
Prepare Release / Build & Create Release (push) Successful in 59s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 2m1s
2026-07-12 13:26:30 +09:00
kjh2064 ee14f5fbe4 feat(web): dynamically fetch release version from AssemblyInformationalVersion
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 24s
Prepare Release / Build & Create Release (push) Successful in 59s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m58s
2026-07-12 13:21:27 +09:00
kjh2064 3f45fbc36e feat(web): display application version on login and admin dashboard pages
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 27s
Prepare Release / Build & Create Release (push) Successful in 1m5s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
2026-07-12 13:19:47 +09:00
kjh2064 87949f42b5 feat(web): add lineage_events.jsonl structured audit logging for collection runs
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 22s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
Prepare Release / Build & Create Release (push) Successful in 1m14s
Prepare Release / Release Notification (push) Successful in 1s
2026-07-12 13:18:50 +09:00
kjh2064 4eb23a41ca feat(web): implement market-close caching mechanism for collection data
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 22s
Prepare Release / Build & Create Release (push) Successful in 1m1s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
Prepare Release / Release Notification (push) Successful in 1s
2026-07-12 13:17:37 +09:00
kjh2064 6db27fd634 feat(web): implement exponential backoff retry pattern in KisApiClient
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 23s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
Prepare Release / Build & Create Release (push) Successful in 1m3s
Prepare Release / Release Notification (push) Successful in 1s
2026-07-12 13:16:38 +09:00
kjh2064 a3fe301308 security(web): secure Hangfire Dashboard with cookie authentication filter
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 24s
Prepare Release / Build & Create Release (push) Successful in 1m0s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m58s
2026-07-12 13:14:20 +09:00
kjh2064 bcc9b76212 fix(web): resolve User Edit routing mismatch and apply asp-page Tag Helpers
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 22s
Prepare Release / Build & Create Release (push) Successful in 58s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m54s
2026-07-12 13:12:24 +09:00
kjh2064 6582ffc02a chore: deprecate and remove blazor client code and project configurations
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 22s
Prepare Release / Build & Create Release (push) Failing after 58s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
2026-07-12 13:06:57 +09:00
kjh2064 521d1c0b3d test: make dotnet evidence tests runner portable
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 15s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 1m23s
2026-07-12 12:40:54 +09:00
kjh2064 890ed68a0f fix: restore snapshot admin CI validation
Snapshot Admin Validation / validate (push) Failing after 7s
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 19s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 57s
2026-07-12 12:26:55 +09:00
kjh2064 92efa934a2 fix: restore authoritative database connection setting
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 15s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 54s
2026-07-12 12:22:17 +09:00
kjh2064 606664404b chore: protect external runtime connection settings
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 16s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 54s
2026-07-12 12:19:34 +09:00
kjh2064 a7f9b27a55 fix: require production database connection environment
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 16s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 54s
2026-07-12 12:16:22 +09:00
kjh2064 d833d386d0 feat: add postgres market time series schema
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 15s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 55s
2026-07-12 12:11:18 +09:00
kjh2064 a9b8f46187 feat: complete dotnet formula and platform cutover gates
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 16s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 54s
2026-07-12 12:08:03 +09:00
kjh2064 187cdf99c0 fix: import logging for JSON seed ingestion
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 15s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 54s
2026-07-12 11:58:11 +09:00
kjh2064 21da79cb46 feat: ingest canonical JSON seeds into PostgreSQL
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 16s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
2026-07-12 11:57:35 +09:00
kjh2064 49637f1b02 feat: export PostgreSQL training dataset as JSON
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 17s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 54s
2026-07-12 11:55:17 +09:00
kjh2064 e15e4c6e20 feat: connect formula decisions to learning ledger
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 17s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 55s
2026-07-12 11:54:06 +09:00
kjh2064 6e666844f0 feat: add canonical decision learning service
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 17s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled
2026-07-12 11:53:17 +09:00
kjh2064 5d89c6ad02 feat: wire normalized learning store into dotnet
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 16s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 54s
2026-07-12 11:48:32 +09:00
kjh2064 1d90580854 feat: add normalized PostgreSQL learning history
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 17s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 56s
2026-07-12 11:44:00 +09:00
kjh2064 780ccee1fe fix: reuse KIS tokens across concurrent requests
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Failing after 11s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 51s
2026-07-12 11:32:13 +09:00
kjh2064 1c46d7b558 fix: add admin collection start route
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 8s
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Has been skipped
2026-07-12 11:10:15 +09:00
kjh2064 e7d1069222 feat: add quant engine WBS verification harness 2026-07-12 10:58:22 +09:00
kjh2064 a274ef448a fix: Auth cookies invalidated on every deployment (Data Protection discriminator)
User reported: "배포가 되면 인증이 풀린다" (auth resets after every
deployment).

Root cause: Program.cs had no explicit Data Protection configuration.
Without SetApplicationName, ASP.NET Core derives the key-ring
discriminator from the app's physical content root path. Every
deployment lands in a brand-new directory
(~/deployments/quantengine_{tag}_{hash}/), so the discriminator
changed on every single release. The cookie authentication ticket is
encrypted/signed via this key ring, so once the discriminator
changed, every previously-issued auth cookie became undecryptable --
forcing all logged-in users to authenticate again after each deploy,
even well inside their 12-hour ExpireTimeSpan.

Fix: explicit .SetApplicationName("QuantEngine") pins a stable
discriminator across deployments, and .PersistKeysToFileSystem points
at %LOCALAPPDATA%/quantengine-keys (Linux: ~/.local/share/quantengine-keys
via User=kjh2064 in the systemd unit) -- a location outside the
versioned deployment directories, so the actual key material also
survives every redeploy and service restart instead of only the
discriminator being stable.
2026-07-12 02:04:03 +09:00
kjh2064 7283532c38 fix: Hangfire recurring-job initialization failing every startup
Discovered while verifying the new Operations page against a local
instance (SSH-tunneled to prod Postgres): every startup logged
'Hangfire setup failed: Cannot resolve scoped service
QuantEngine.Web.Services.SchedulerService from root provider' and
silently skipped InitializeSchedules() entirely.

SchedulerService is registered AddScoped, but UseHangfireSetup()
resolved it directly from app.Services (the root/singleton-level
provider), which cannot construct scoped services without an active
scope. This has apparently been broken for a while -- the 4 recurring
jobs (daily-collection, hourly-price-update, weekly-report,
monthly-optimization) only kept showing up because Hangfire persists
recurring job definitions in PostgreSQL from whatever earlier
deployment last managed to register them; any code change to those
schedules would silently never take effect on redeploy.

Fixed by creating an explicit scope (serviceProvider.CreateScope())
before resolving SchedulerService. Verified locally: the warning is
gone and the log now shows "Hangfire schedules initialized
successfully" followed by the dispatchers starting.
2026-07-12 01:57:08 +09:00
kjh2064 489da25f1b fix: Remove fake hardcoded data, rebuild admin layout with real Tabler components
Root cause: user asked why logout was missing. Playwright audit against
production found logout works fine, but surfaced two real defects and
led to a wider audit that found extensive fabricated data across the
admin pages -- none of it backed by the database despite CLAUDE.md's
policy that all data must come from DB records.

Layout (_AdminLayout.cshtml):
- Full rewrite using Tabler's actual navbar-vertical/page-wrapper/footer
  component structure instead of ad-hoc inline CSS. The old layout had
  no footer element at all, and its mobile breakpoint CSS hid the
  sidebar off-screen (left: -260px) with no hamburger button to bring
  it back -- verified via Playwright screenshot at 375px width that
  the entire nav menu was inaccessible on mobile, leaving only Logout
  reachable. Tabler's navbar-toggler + Bootstrap collapse (bundled in
  tabler.min.js) now restores it; verified the toggle actually opens
  the menu via Playwright.
- Active nav-link highlighting moved from client-side JS string
  matching to a server-side Razor helper against Context.Request.Path.

Fake/hardcoded data removed or replaced with real DB/Hangfire state:
- Dashboard: deleted the "최근 시스템 이벤트" table (3 rows hardcoded
  from DateTime.Now with fake descriptions like "시스템 초기화" /
  "데이터베이스 백업" -- no backing table exists). Removed hardcoded
  "정상"/"연결됨" status badges and "버전: v0.1.0"/"업타임: 정상";
  replaced with a real IsDatabaseConnected flag (true only if the
  page's actual DB queries succeeded) and the real
  IWebHostEnvironment.EnvironmentName.
- Monitoring: removed hardcoded "API 서버: 운영 중" (no real signal
  backs it) and wired "데이터베이스: 연결 정상/끊김" to the same
  real success/failure state as the page's own DB calls.
- Operations: this page was entirely fabricated -- ScheduledJobs,
  RecentExecutions, IsJobProcessorRunning, PendingJobsCount, and
  StatusMessage were all static values with zero connection to
  Hangfire, despite Hangfire actually running in production
  (confirmed via journalctl: ServerWatchdog, RecurringJobScheduler
  dispatchers active) with 4 real recurring jobs registered in
  SchedulerService (daily-collection, hourly-price-update,
  weekly-report, monthly-optimization). Rewrote to query
  JobStorage.Current.GetConnection().GetRecurringJobs() and
  GetMonitoringApi() directly: real scheduled jobs, real succeeded/
  failed executions, real server count, real enqueued count. Verified
  locally (SSH-tunneled to prod DB) that this now returns the actual
  4 registered jobs with correct next-run times and one real
  RunDailyCollectionAsync execution.

Also fixed the page-title duplication on Monitoring/Operations
(ViewData["Title"] included "- QuantEngine" AND the layout appended
it again -> "모니터링 - QuantEngine - QuantEngine" in the browser tab).

Separately discovered (not fixed in this commit, flagging for
follow-up): Hangfire's SchedulerService.InitializeSchedules() fails
every startup with "Cannot resolve scoped service 'SchedulerService'
from root provider" -- the 4 recurring jobs above still show up
because they persist from an earlier successful registration, but
re-registration is silently broken on every current boot.

Verified end-to-end with Playwright against a local instance (SSH
tunnel to production Postgres): login, all 5 admin pages render
without errors, mobile hamburger opens the sidebar, and Operations
shows genuine Hangfire data.
2026-07-12 01:54:00 +09:00
kjh2064 3c740eeb3f fix: Escape @ symbols in Razor _AdminLayout.cshtml for proper compilation
Deploy to Production / Build Release (push) Successful in 32s
Deploy to Production / Pre-Deployment Verification (push) Failing after 1s
Deploy to Production / Deploy to Production (push) Has been skipped
Deploy to Production / Post-Deployment Reporting (push) Successful in 1s
- Change @tabler to @@tabler in CDN URLs (3 instances)
  • Line 13: Tabler CSS link
  • Line 14: Tabler vendors CSS link
  • Line 230: Tabler JS script

- Change @media to @@media in CSS media query
  • Line 150: Mobile responsive styles

Razor engine was interpreting @ symbols as variable start, causing CS0103 compile errors.
Escaping with @@ fixes the issue while preserving intended CDN URLs and CSS syntax.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-11 22:56:09 +09:00
kjh2064 35c00b68f7 design: Improve Admin UI layout and Dashboard - Tabler-based responsive layout
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Merge to Main - Full Pipeline / Stage 1: Fast Gates (push) Failing after 6s
Merge to Main - Full Pipeline / Stage 2: Critical Gates (push) Has been skipped
Merge to Main - Full Pipeline / Stage 3: Integration Tests (push) Has been skipped
Merge to Main - Full Pipeline / Stage 4: Build and Package (push) Has been skipped
Merge to Main - Full Pipeline / Stage 5: Trigger Deploy Pipeline (push) Has been skipped
Merge to Main - Full Pipeline / Pipeline Summary (push) Successful in 1s
Deploy to Production / Deploy (push) Failing after 31s
2026-07-11 22:04:43 +09:00
kjh2064 668f109b01 fix: Remove compiler warnings in Application & Web
Merge to Main - Full Pipeline / Stage 1: Fast Gates (push) Failing after 5s
Merge to Main - Full Pipeline / Stage 2: Critical Gates (push) Has been skipped
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 4s
Merge to Main - Full Pipeline / Stage 4: Build and Package (push) Has been skipped
Merge to Main - Full Pipeline / Stage 5: Deploy to Production (push) Has been skipped
Merge to Main - Full Pipeline / Pipeline Summary (push) Successful in 1s
Merge to Main - Full Pipeline / Stage 3: Integration Tests (push) Has been skipped
- KisApiPriceSource.cs: Use discard pattern for unused exception variables
- Monitoring/Index.cshtml: Handle nullable TotalErrors with null coalescing

Build now passes with 0 code-level warnings (6 remaining NuGet compatibility warnings are harmless).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-11 20:49:43 +09:00
kjh2064 363691e612 test: Local Authorization Policy testing with SSH tunnel
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 13s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production (Local) / Build & Deploy to Production (push) Failing after 1m31s
Build & Package / build (push) Failing after 1m32s
- appsettings.Development.json: SSH tunnel to remote PostgreSQL (127.0.0.1:5432)
- Verified Authorization Policy registration in Program.cs
- Tested locally: All /Admin/* pages correctly redirect (302) to login
- Build: 0 errors, 7 warnings (pre-existing, unrelated to this fix)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-11 18:53:05 +09:00
kjh2064 462ecc6de3 fix: Authorization Policy 'AdminCookie' 등록 (Admin 페이지 500 오류 해결)
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 14s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production (Local) / Build & Deploy to Production (push) Failing after 1m25s
Build & Package / build (push) Failing after 1m31s
2026-07-11 18:40:31 +09:00
kjh2064 c6a5e93773 feat: DbUp 마이그레이션 및 Razor Pages 어드민 UI 완성 (Phase 1-3)
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 14s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 1m45s
## Summary
-  DbUp 기반 SQL 마이그레이션 시스템 구현
  * V1: 기본 스키마 및 테이블 (quantengine, kis_tokens, workspace_account 등)
  * V2: KIS 데이터 수집 테이블 (kis_collection_runs, kis_collection_snapshots, kis_collection_errors)
  * V3: 엔진 히스토리 스키마 (market_raw_history, factor_version_history 등)
  * V4: 초기 관리자 계정 생성

-  Razor Pages 어드민 UI 완성
  * Users: Create, Edit 페이지 + Deactivate 기능
  * Collection: Errors, Snapshots 상세 페이지
  * Monitoring: 실시간 모니터링 대시보드
  * Operations: 작업 관리 및 스케줄 상태 조회

-  E2E 테스트 업데이트
  * login.spec.ts: Blazor WASM → Razor Pages 기반 로그인 테스트 (3개 통과)
  * admin-pages.spec.ts: 관리자 페이지 플로우 테스트 신규 작성

-  보안 업그레이드
  * Newtonsoft.Json 13.0.3 (GHSA-5crp-9r3c-p9vr 취약성 해결)
  * BCrypt 비밀번호 해싱 (SHA-256 자동 마이그레이션)

## Build Status
- 빌드: 성공 (0 errors, 1 warning - Newtonsoft.Json)
- 마이그레이션: 성공 (원격 서버 검증됨)
- E2E 테스트: 3개 통과 (DB 의존 3개는 로컬 환경 제약)

## Remote Verification
원격 서버 (Hetzner 178.104.200.7)에서:
- 2026-07-11 17:04:23.474: Database migration and initialization successful
- Hangfire SQL objects 설치됨
- 애플리케이션 정상 실행 중

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-11 17:55:01 +09:00
kjh2064 9468050979 feat: Implement Users Create and Collection Detail pages
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 5s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 12s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 1m15s
Add comprehensive CRUD pages:
- Users/Create.cshtml(.cs): Add new admin user with password hashing
- Collection/Detail.cshtml(.cs): View collection run details with success criteria evaluation

Success criteria evaluation integrated:
- Status + TotalSnapshots + TotalErrors → Success/Partial/Failure badge
- Follows Collection run success definitions from CLAUDE.md

Build: 0 errors, 0 warnings

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-11 17:03:08 +09:00
kjh2064 c57ad182b0 feat: Migrate admin UI from Blazor WASM/MudBlazor to Razor Pages/Cookie Auth/Tabler
- Remove QuantEngine.Web.Client from .sln (keep on disk for reference)
- Replace Blazor Interactive WebAssembly with server-rendered Razor Pages
- Implement Cookie Authentication (HttpOnly, SameSite=Lax, 12h expiry)
- Add AuthService with BCrypt password hashing + auto-migration from SHA-256
- Implement IpLockoutService (3 strikes → 15-min ban)
- Create Admin folder structure with Layout + shared partials
- Implement Dashboard, Collection, Users index pages (base structure)
- Remove hardcoded backdoors (master_recovery, dev auth bypass)
- Remove hardcoded localhost:5265 URLs
- Add Tabler UI base styling (Bootstrap 5 CDN + custom admin.css)
- Update CLAUDE.md with new UI standards and auth policies
- Build: 0 errors, 0 warnings (ready for dev testing)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-11 16:57:41 +09:00
kjh2064 3ec0941f50 [WBS-7.7][WBS-7.1] Hardening: Upgrade to MudBlazor 9.0.0 and establish warning-free E2E test harness and dev auth fallback
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 7s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 12s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Successful in 2m47s
2026-07-07 18:06:54 +09:00
kjh2064 6bde9a9172 refactor(database): DbMigrator.cs에 KIS 수집 테이블 스키마 초기화 추가
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 13s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Successful in 2m19s
- kis_collection_runs, kis_collection_snapshots, kis_collection_errors 테이블 정의를 DbMigrator.cs의 Migrate()에 추가.
- 이를 통해 수집기가 시작되거나 API를 호출하기 전에 스키마가 데이터베이스 초기화 시점에 안전하게 준비되도록 함.
2026-07-06 18:02:20 +09:00
kjh2064 055b7b3082 fix: 코드리뷰 즉시수정 4건 + 모니터링 실제 API 연동
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 7s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 13s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Successful in 2m19s
[1] NavMenu.razor — 하드코딩 'v2.1.0-Release' 버전 블록 완전 제거
    버전 표시는 MainLayout의 version.json 단일 소스로 통일

[2] MainLayout.razor — 로그아웃 URL 버그 수정
    /Account/Login?handler=Logout → /Account/Login
    (Razor Pages GET 핸들러는 쿼리스트링 ?handler=로 호출되지 않음)

[3] Dashboard.razor — AllowAnonymous 제거, debug 코드 정리
    - @attribute [AllowAnonymous] 삭제
    - DEBUG MARKER div 삭제
    - TEMPORARY 주석·Console.WriteLine 정리
    - 미인증 시 /Account/Login 리다이렉트 활성화

[4] DataCollectionMonitoring.razor — 전체 하드코딩 더미 데이터 제거
    - 'RUN-2026-07-05-002 진행중 30분+' 등 모든 더미 데이터 제거
    - /api/collection/runs + /api/collection/state 실제 API 연동
    - 로딩 스피너, 새로고침 버튼, 실제 상태 카운트 구현
2026-07-06 17:59:31 +09:00
kjh2064 4e23a87085 fix: Blazor WASM 클라이언트 localhost:5265 하드코딩 전면 제거
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 12s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Successful in 2m40s
증상: 프로덕션에서 'Connection refused (localhost:5265)' 오류
원인: WASM 클라이언트 3개 파일에 localhost:5265 null-fallback이 박혀 있어
      브라우저가 사용자 로컬 포트로 API 요청을 시도함.

수정 파일:
- ApiClient.cs: null fallback 제거 → 잘못된 DI 구성 시 명시적 예외 발생
- Users.razor: LoadUsers()의 BaseAddress 강제 설정 제거
- CustomAuthenticationStateProvider.cs: baseUrl fallback 제거, 상대 경로 사용

올바른 동작: Client/Program.cs에서 builder.HostEnvironment.BaseAddress로
             DI 등록 → 항상 현재 도메인 기준 상대 경로로 API 호출.
2026-07-06 17:48:34 +09:00