Compare commits

..

9 Commits

Author SHA1 Message Date
kjh2064 11e8a3c7f8 docs: final file-count status for this session's cleanup thread
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (push) Failing after 23s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (push) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (push) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (push) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (push) Has been skipped
Validators (Pushes and Pull Requests) / UI & Storage Validation (push) Failing after 11s
Validators (Pushes and Pull Requests) / Database & Schema Validation (push) Failing after 10s
Validators (Pushes and Pull Requests) / Security & Secrets (push) Successful in 13s
Validators (Pushes and Pull Requests) / CI Workflow Lint (push) Failing after 13s
Validators (Pushes and Pull Requests) / Notify PR Results (push) Has been skipped
Frontend CI Pipeline / ci-frontend-8-steps (push) Failing after 2m28s
4,523 -> 1,687 (77% of the 2,200 budget). Records the
test_kis_data_collection_v1.py import fix and the golden-stub removal
reasoning, and explicitly notes that further file-count reduction
isn't warranted right now - the gate has real headroom and continuing
to hunt for deletions has more downside (accidentally cutting
something live) than upside at this point.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 15:02:18 +09:00
kjh2064 65e3769eb2 chore: remove 174 non-executing golden test stubs (M3 parity now done)
Validators (Pushes and Pull Requests) / UI & Storage Validation (push) Failing after 14s
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (push) Failing after 24s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (push) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (push) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (push) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (push) Has been skipped
Validators (Pushes and Pull Requests) / Database & Schema Validation (push) Failing after 10s
Validators (Pushes and Pull Requests) / Security & Secrets (push) Successful in 11s
Validators (Pushes and Pull Requests) / CI Workflow Lint (push) Failing after 11s
Validators (Pushes and Pull Requests) / Notify PR Results (push) Has been skipped
Frontend CI Pipeline / ci-frontend-8-steps (push) Failing after 2m26s
spec/60_quant_engine_wbs.yaml's own QE-M0-06 note explicitly deferred
this: "골든 테스트 174개는 실행되지 않는 placeholder... 삭제는 M3
패리티 대체 후" (the 174 golden tests are non-executing placeholders;
delete once M3 parity replaces them). Confirmed all 5 M3 tasks
(point-in-time reader, factor parity calculator, SS001 composite
score, PipelineOrchestrator honesty, score FE) are status=DONE.

Verified before deleting, not just inferred:
- No .gitea/workflows/*.yml references tests/golden/generated/ - CI
  only runs specific named files under tests/unit/.
- tools/validate_golden_coverage_100.py's coverage ratio is computed
  from spec/formula_golden_cases_v2-v4.yaml entries, not by counting
  these stub files (its own code comment says so).
- Sampled a stub: trivial always-true assertions, one even internally
  broken (`assert outputs` on an empty list) - proof it never actually
  ran.

Re-ran the coverage validator, QE-M0-06's WBS verdict, and full pytest
collection after deletion - all still pass/clean. tests/golden/
itself (README.md, formula_registry_v2_cases.yaml) is untouched, only
the generated/ subdirectory is gone.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 15:01:20 +09:00
kjh2064 4dd6098619 fix: broken import in test_kis_data_collection_v1.py (same root cause as F8)
Same class of bug as the earlier tools/run_kis_data_collection_v1.py
fix this session: the module moved to src/quant_engine/deprecated/
but this test still imported the old path. Found by actually running
pytest --collect-only on tests/unit/ (110 tests collect cleanly now,
was failing at 1 error before).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 14:34:01 +09:00
kjh2064 70e49f0556 docs: update handoff notes with orphan cleanup and xlsx findings
Validators (Pushes and Pull Requests) / UI & Storage Validation (push) Failing after 13s
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (push) Failing after 22s
Validators (Pushes and Pull Requests) / Database & Schema Validation (push) Failing after 11s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (push) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (push) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (push) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (push) Has been skipped
Validators (Pushes and Pull Requests) / Security & Secrets (push) Successful in 11s
Validators (Pushes and Pull Requests) / CI Workflow Lint (push) Failing after 10s
Validators (Pushes and Pull Requests) / Notify PR Results (push) Has been skipped
Frontend CI Pipeline / ci-frontend-8-steps (push) Failing after 1m51s
Records the two-pass orphan script cleanup (74 files total across two
commits) and the methodology gap that mattered (check output-path
references, not just script-name references). Also records that
GatherTradingData.json (the project's own designated canonical seed,
per docs/GATHERTRADINGDATA_XLSX_DECISION) is available from the
production server even without the untracked .xlsx, but the release
DAG's convert_xlsx node has no skip-if-output-exists logic, and the
remaining 10 blocked WBS verdicts need a running QuantEngine.Web +
Playwright evidence run against real DB price history, not just the
seed JSON - not attempted this session.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 14:29:49 +09:00
kjh2064 73572b6211 chore: remove 40 more orphaned one-off scripts from tools/
Second pass over the 47 lower-confidence orphan candidates held back
from the earlier 34-file cleanup. This time checked two signals, not
one: (1) is the script's own filename referenced anywhere, and (2)
does the script's own Temp/*.json output get read by any other file
(a script can be "orphaned" by name but still load-bearing if
something else consumes what it produces).

7 of the 47 failed check (2) - their outputs (outcome_ledger_v1.json,
pre_distribution_early_warning_v3.json, shadow_ledger_v1.json,
calibration_registry_v1.json, final_execution_decision_v4.json,
live_outcome_ledger_v1.json, final_decision_packet_v2.json) are read
by other tools even though the producing script's name never appears
elsewhere - kept those 7 in place.

The remaining 40 (WBS-ticket-tagged one-offs: wbs81/92/93/95/96_*,
build_p0-p6_*; and misc build_*/validate_* diagnostics with no
external reference by name or by output) were deleted. Re-ran the
full-repo reference search (zero hits) and quick-mode release DAG +
WBS validator afterward - failure set is unchanged (same 10
tasks already known blocked on missing live trading data / a running
web app + Playwright, unrelated to this deletion).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 14:29:08 +09:00
kjh2064 2439d5e24d docs: record the Temp/ evidence-cache incident in the handoff notes
Validators (Pushes and Pull Requests) / UI & Storage Validation (push) Failing after 13s
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (push) Failing after 23s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (push) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (push) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (push) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (push) Has been skipped
Validators (Pushes and Pull Requests) / Database & Schema Validation (push) Successful in 12s
Validators (Pushes and Pull Requests) / Security & Secrets (push) Successful in 11s
Validators (Pushes and Pull Requests) / CI Workflow Lint (push) Failing after 9s
Validators (Pushes and Pull Requests) / Notify PR Results (push) Has been skipped
Frontend CI Pipeline / ci-frontend-8-steps (push) Failing after 1m50s
Entropy cleanup earlier today deleted all of Temp/, which turned out
to include WBS verification evidence (Temp/evidence/*/verdict.json),
not just build cache. Documents what broke, what got recovered, and
what remains genuinely blocked on missing trading data - so this
doesn't get rediscovered from scratch next time.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 14:12:42 +09:00
kjh2064 977167a0db chore: remove 34 orphaned one-off scripts from tools/
Systematic scan (not manual per-file review): for every *.py under
tools/ and src/quant_engine/, searched the entire tracked repo for
its filename stem outside itself (code, docs, spec, CI workflows,
tests). 81 of 619 files had zero references anywhere. Deleting all
81 in one pass was judged too risky - some could be intentional
manual-run utilities that just don't get named by other files - so
this commit only removes the two highest-confidence tiers, 34 files:

- Superseded DB init/fix/load scripts, most with an explicit "_v2"/
  "_correct"/"_properly" sibling that replaced them (e.g.
  load_from_xlsx.py -> load_from_xlsx_correct.py,
  initialize_database.py -> initialize_database_v2.py). Verified via
  `git log` that both members of each pair were last touched the same
  day (2026-06-23) and never again - abandoned mid-iteration, not
  live tooling.
- Ad-hoc test/debug scripts sitting in tools/ instead of tests/
  (test_api_components.py, test_build_ui_state*.py, diagnose_api_error.py,
  verify_*.py, validate_json_conversion.py) - one-off interactive
  debugging session artifacts.

Re-ran the full-repo reference search after deletion (zero hits) and
the quick-mode release DAG + WBS validator (both still pass) to confirm
nothing references these files. The other 47 orphan candidates (WBS-
ticket-tagged one-offs and misc build_*/validate_* scripts) are left
in place pending further review - some may be intentional manual
utilities the automated reference scan can't distinguish from dead code.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 14:12:09 +09:00
kjh2064 fa0da0b159 docs: add session handoff notes for the 2026-07-30 strategic audit
Validators (Pushes and Pull Requests) / UI & Storage Validation (push) Failing after 12s
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (push) Failing after 26s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (push) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (push) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (push) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (push) Has been skipped
Validators (Pushes and Pull Requests) / Database & Schema Validation (push) Successful in 13s
Validators (Pushes and Pull Requests) / Security & Secrets (push) Successful in 11s
Validators (Pushes and Pull Requests) / CI Workflow Lint (push) Failing after 10s
Validators (Pushes and Pull Requests) / Notify PR Results (push) Has been skipped
Frontend CI Pipeline / ci-frontend-8-steps (push) Failing after 1m56s
Adds docs/SESSION_HANDOFF_2026-07-30.md with what a future session
needs that isn't derivable from git log: open threads (release DAG
unverified end-to-end, engine_history/quantengine schema collision
left as-is, OpenDART/KRX not yet wired into any workflow) and traps
hit this session worth not repeating (archive-before-grepping
tools/spec/tests, DbUp ordinal sort, runtime/ is tracked history not
scratch space, two Pythons on this machine, entropy audit counting
local build noise). Pointed to it from CLAUDE.md's Known Issues list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 13:43:32 +09:00
kjh2064 823a9a64e2 fix: repository entropy audit was measuring build noise, not repo bloat
Validators (Pushes and Pull Requests) / UI & Storage Validation (push) Failing after 13s
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (push) Failing after 23s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (push) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (push) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (push) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (push) Has been skipped
Validators (Pushes and Pull Requests) / Database & Schema Validation (push) Successful in 13s
Validators (Pushes and Pull Requests) / Security & Secrets (push) Successful in 10s
Validators (Pushes and Pull Requests) / CI Workflow Lint (push) Failing after 10s
Validators (Pushes and Pull Requests) / Notify PR Results (push) Has been skipped
Frontend CI Pipeline / ci-frontend-8-steps (push) Failing after 1m56s
audit_repository_entropy_v2.py (the "과유불급" file-count gate in the
release DAG) was failing: 4,523 files against a 2,200 budget. Traced
it down before touching anything - the audit's _EXCLUDE_DIRS list
predates several directories this repo's own .gitignore already
excludes (Temp/, dist/, outputs/, publish_artifact/, **/bin/,
**/obj/, test-results/), so every local dotnet build/test run
inflates the count with disposable, zero-git-impact build artifacts.
Verified via `git ls-files` that none of the ~2,400 files in those
paths were tracked, versus runtime/, archive_db/, backups/, and
artifacts/ (246 files, all tracked, all genuine audit-trail/history
data) which must NOT be touched.

Cleaned the untracked build/scratch artifacts from disk and added the
missing directories to _EXCLUDE_DIRS so the metric can't be
re-inflated by normal local development again. Gate now passes at
1,934 files with real headroom, without deleting a single tracked
file. Verified full .NET build still succeeds after removing all
bin/obj folders (clean rebuild, 0 errors/warnings).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 13:38:42 +09:00
252 changed files with 146 additions and 12508 deletions
+1
View File
@@ -393,6 +393,7 @@ troubleshooting table: [docs/DEV_WORKFLOWS.md](docs/DEV_WORKFLOWS.md)
- **Python-to-.NET transition**: Legacy `ops:data-collect` remains until .NET collection validated in production (est. Q3 2026).
- **Gitea Actions limitation**: Act runner ↔ Gitea network issues (workaround: manual SSH deployment active).
- **도구 버전 관리 (2026-07-30)**: `_v1`/`_v2`... 접미사로 새 버전의 도구를 추가할 때, 이전 버전이 더 이상 쓰이지 않으면 삭제한다 — git 히스토리로 충분하다. 병행 존재 금지(예: `apply_engine_upgrade_v4.py``_v7.py`가 동시에 남아있는 상태). 단, 다른 파일이 옛 버전을 이름으로 참조 중이면(lint 화이트리스트, 문서 등) 그 참조부터 정리한 뒤 삭제한다.
- **2026-07-30 전략 감사 세션 인수인계**: 미해결 항목(release DAG 전체 미검증, `engine_history`/`quantengine` 스키마 중복, OpenDART/KRX 미배선)과 재발 방지 트랩(문서 archive 전 `tools/`·`spec/`·`tests/` 전수 검색 필수, DbUp 정렬 버그 수정 완료, `runtime/`은 이력 데이터라 스크래치 출력 금지 등) — [docs/SESSION_HANDOFF_2026-07-30.md](docs/SESSION_HANDOFF_2026-07-30.md) 참고.
### Reliability & Data Quality
+135
View File
@@ -0,0 +1,135 @@
# 2026-07-30 QuantEngine 전략 감사 세션 — 인수인계
19개 원칙(SOLID, 정공법, 홀루시네이션, 재현성, 데이터정합성, 과유불급, 정규화/역정규화,
프로세스 단순화, 패턴화, 표준화, 구조화, 바이브코딩, 현장감, 이력성, 안정성, 고도화,
컴포넌트화, 기술부채) 기준으로 저장소를 감사하고 발견된 문제를 수정한 세션의 기록이다.
8개 커밋이 `main`에 반영·푸시됐다 (HEAD: `823a9a6`). 무엇이 바뀌었는지는 `git log`
권위 있는 출처이니 여기서 반복하지 않는다 — 이 문서는 **커밋 로그만 봐서는 알 수 없는
맥락**(미해결 항목, 판단 근거, 재발 방지 트랩)만 담는다.
## 미해결 / 다음에 이어갈 것
- **전체 release DAG(`npm run ops:validate` / `full-gate`)를 끝까지 검증하지 못함.**
`GatherTradingData.xlsx`(gitignore 대상, 실거래 데이터 시드)가 이 개발 환경에는 없어서
`convert_xlsx` 노드에서 막힌다. 이 파일이 있는 실제 환경(사용자 로컬 또는 운영 서버)에서
한 번 돌려서 이번 세션의 변경사항이 데이터 수집 경로를 깨지 않았는지 최종 확인 필요.
- **`docs/db/quantengine.dbml``engine_history` vs `quantengine` 스키마 동명 테이블 4개**
— 실제 .NET 호출부를 grep으로 대조해 "둘 다 살아있는 서로 다른 모델"로 확정하고 DBML에
근거를 남겼지만, 코드 통합/리네임은 하지 않았다. "정리해달라"는 요청이 오면 DBML의
`V8: PostgreSQL History-First Operating Model` 섹션 노트부터 다시 읽을 것 — 죽은 코드로
섣불리 판단하지 말 것.
- **OpenDART는 배선만 맞춰뒀고 실제로 호출하는 워크플로우가 아직 없다.** 환경변수명은
`OPENDART_OPENAPI_KEY`로 코드·Gitea Secrets 양쪽 통일 완료. 나중에
`tools/ingest_fundamental_raw.py`를 CI에서 처음 호출할 때는 별도 매핑 없이
`secrets.OPENDART_OPENAPI_KEY`를 그 job의 `env:`에 바로 연결하면 된다.
- **KRX Open API는 구현이 전혀 없다** — CLAUDE.md에 환경변수명(`KRX_OPENAPI_KEY`, 실제
Gitea Secrets 이름과 일치)만 예약해뒀다. 호출 한도 등은 사용자가 알려주지 않아 기록하지
않았다 — 추측해서 채우지 말 것.
## 파일 수 최종 현황 (같은 날, 3차 라운드)
`tests/unit/test_kis_data_collection_v1.py`가 F8과 같은 원인(deprecated/ 이동)으로 import가
깨져 있던 걸 발견해 고쳤다 (오늘 삭제와 무관, 이전부터 있던 버그 — `pytest --collect-only`
실제 실행해서 발견). 그리고 `tests/golden/generated/` 174개 — 스펙(QE-M0-06)이 스스로
"M3 패리티 대체 후 삭제" 조건을 걸어뒀고, M3-01~05가 전부 DONE인 걸 확인한 뒤 삭제. CI/커버리지
게이트 어디서도 이 파일들을 쓰지 않는다는 것까지 확인 완료. **최종 파일 수: 4,523 → 1,687**
(예산 2,200 대비 77%, 여유 513개). 이 지표는 이제 확실히 건강한 상태 — 추가로 파일 수를
줄이려는 시도는 과유불급이다(이미 통과한 지표를 더 깎으려다 실수로 쓰이는 파일을 지울 위험이
더 크다). `tools/`에는 아직 그레이존 파일이 좀 더 있을 수 있지만(74개 삭제 후 남은 것들은
전부 검토 완료), 더 뒤지는 것보다 실제 필요가 생겼을 때 개별적으로 판단하는 게 낫다.
## orphan 스크립트 정리 (같은 날, 2차 조사)
`tools/*.py` + `src/quant_engine/*.py` 619개 파일 전수 스캔(파일명이 저장소 어디에도 안 나오는
것 탐지) 결과 81개 orphan 후보 발견. 두 단계로 나눠 총 74개 삭제:
- 1차 34개: 명백한 버전 중복(`_v2`/`_correct`/`_properly` 짝) + tools/에 섞인 임시 테스트/디버그
스크립트.
- 2차 40개: WBS 티켓 전용 1회성 스크립트 + 기타 build_*/validate_* 진단 도구. **주의**: 스크립트
자체 이름 검색만으로는 부족했다 — 47개 후보 중 7개는 이름은 안 불려도 만들어내는
`Temp/*.json` 산출물이 다른 도구에서 계속 읽히고 있어 실제로는 살아있었다
(`build_outcome_ledger_v1.py`, `build_pre_distribution_early_warning_v3.py`,
`build_shadow_ledger_v1.py`, `build_p2_01_live_outcome_ledger.py`,
`build_p2_02_calibration_promotion.py`, `build_p1_01_execution_verdict_unify.py`,
`run_release_ci_gate_v2.py` — 이 7개는 삭제하지 않고 남겨둠). **다음에 orphan 스캔할 때는
스크립트명뿐 아니라 그 스크립트가 쓰는 `Temp/*.json` 출력 경로까지 같이 검색할 것.**
나머지 orphan 후보(그레이존 밖, 원래 81개에 없던 것들)는 손대지 않았다 — 전수조사가 아니라
`tools/`+`src/quant_engine/`만 스캔한 결과다.
## GatherTradingData.xlsx 관련 (같은 날, 추가 조사)
로컬에는 `.xlsx`가 없지만, 운영 서버(`~/QuantEngineByItz/GatherTradingData.json`)에는 이미
xlsx→json 변환이 끝난 정본 시드 파일이 있다 (저장소 자체 설계 문서
`docs/GATHERTRADINGDATA_XLSX_DECISION_2026-06-21.md`가 "json을 정본으로, xlsx는 미추적"으로
결정한 바로 그 파일). SCP로 로컬에 받아왔다(`./GatherTradingData.json`, gitignore 대상이라
커밋 안 됨). 그런데 `tools/run_release_dag_v3.py``convert_xlsx` 노드는 xlsx 파일이 실제로
없으면 무조건 하드 실패하도록 짜여 있어(캐시/스킵 로직 없음, 코드 주석에 "optional 최적화,
아직 미구현"이라고 명시됨), json이 이미 있어도 release DAG를 처음부터 끝까지 돌릴 수는 없다.
남은 WBS 태스크 10개(QE-M3-03, M4-01~05, M5-01~04)를 이 json만으로 복구하려 했으나:
- **M3-03**: `engine_history.factor_output_history`에 최근 24시간 데이터가 있어야 하는 라이브
신선도 게이트 — 데이터 유무와 무관, 운영 파이프라인이 최근 실제로 돌았는지에 달림.
- **M4-01~04, M5-01~03**: `Temp/backtest_result_v1.json` 등은 Python 스크립트가 아니라
**`src/dotnet/QuantEngine.Tools`/`QuantEngine.Web`를 실제로 띄우고 Playwright로 백테스트/
캘리브레이션 화면을 조작해야** 생성된다(M4-05 검증 커맨드가 `npx playwright test`
`verify_wbs_task_v1.py` 순서인 게 근거). 로컬 웹서버 기동 + Playwright 브라우저 설치 +
실제 가격/팩터 이력 DB 데이터 충분 여부까지 얽혀 있어 이번 세션에서는 시도하지 않았다.
- **M4-05, M5-04**: 위와 같은 이유로 막힘.
다음 세션에서 이어가려면: SSH 터널 + `dotnet watch run --project QuantEngine.Web` +
`npx playwright test --project=evidence tests/e2e/evidence/qe-m4-05-backtest.spec.ts` 순으로
시도. DB에 실제 가격 이력이 충분한지부터 확인할 것 (부족하면 백테스트 자체가 의미있는 결과를
못 낼 수 있음).
## 추가 발견 (같은 날, entropy 정리 이후)
- **`Temp/*` 전체 삭제가 WBS 검증 캐시를 깼다.** `tools/verify_wbs_task_v1.py`가 만드는
`Temp/evidence/<task_id>/verdict.json`과 각종 `Temp/*.json`(golden_coverage_100,
market_time_series_schema 등)은 git에 추적되지 않지만 "완료된 검증의 증적"이라 순수
빌드 캐시가 아니었다. `spec/60_quant_engine_wbs.yaml`의 13개 태스크가 FAIL로 나타났었음.
- 3개(QE-M0-06, QE-M2-06, QE-M2-01)는 해당 generator 재실행 + DB 재접속으로 복구 완료.
- QE-M3-03은 무관 — `engine_history.factor_output_history`에 최근 24시간 내 데이터가
있어야 하는 라이브 신선도 게이트. 오늘 세션과 상관없이 운영 파이프라인이 최근 안
돌았으면 원래도 FAIL이다.
- 나머지 7개(QE-M4-01~04, QE-M5-01~03)는 `Temp/prediction_accuracy_harness_v2.json`
등 실거래 데이터 파생 체인이 필요 — 이 저장소 스냅샷엔 `GatherTradingData.xlsx`
없어서(이미 위에서 언급한 그 문제) 복구 불가. 실거래 데이터가 있는 환경에서 전체
파이프라인을 한 번 돌리면 자동 복구된다.
- QE-M4-05/QE-M5-04(Playwright evidence)도 같은 체인에 의존해 사실상 같이 막혀있음.
- **교훈**: `Temp/`가 git 미추적이라고 전부 "순수 빌드 산출물"은 아니다 — `Temp/evidence/`처럼
"재실행하면 되지만 재실행에 실제 데이터/DB가 필요한 캐시"가 섞여 있다. 다음에 비슷한
정리를 할 때는 삭제 전에 `rg -l "Temp/" spec/ tools/` 정도로 어떤 하위 경로가 검증
체인에 물려있는지 먼저 확인할 것.
## 이번 세션에서 걸린 함정 — 재발 방지
- **문서를 "오래됐다"고 archive하기 전에 `tools/*.py`, `spec/*.yaml`, `tests/*.py`,
`.gitea/workflows/*.yml`까지 전부 grep할 것** — 다른 문서/CLAUDE.md만 검색해서는 부족하다.
`docs/ROADMAP_WBS.md``docs/ROADMAP_ENTERPRISE_TEMPLATES_WBS.md`를 이 방식으로 archive
했다가, 실제로는 release gate 검증기와 `ci-frontend.yml`의 Enterprise Contract Parity
Test가 그 경로를 직접 참조하고 있어서 되돌려야 했다. 지금은 이 두 파일 다시 원위치, 검증기
3개 직접 실행해서 통과 확인 완료.
- **DbUp 마이그레이션은 파일명을 순수 문자열로 정렬한다** — `V10__``V2__`보다 먼저
정렬되는 문제가 있었다. `MigrationScriptNameComparer`(이번 세션에 추가, `DbMigrator.cs`
연결)로 해결됨 — 새 마이그레이션은 zero-padding 없이 다음 정수만 쓰면 된다.
- **`runtime/`은 대부분 git 추적되는 이력 데이터다** (`refactor_baseline_v*.yaml`,
`rollback_manifest_v*.yaml` 등) — 스크래치 공간이 아니다. 확인용 명령의 `--out`
실수로 이 경로로 잡아서 이력 파일 2개를 덮어썼다가 `git diff`로 발견하고
`git checkout --`으로 복구했다. 1회성 도구 출력은 `/tmp/` 등으로 보낼 것.
- **이 머신에 Python이 두 개 설치돼 있다** — `python`(3.11, 대부분의 서브프로세스가
실제로 쓰는 것)과 `python3`(3.14). 한쪽에 패키지를 설치해도 다른 쪽엔 없다.
- **repository entropy 감사(`audit_repository_entropy_v2.py`)가 git 추적 파일이 아니라
로컬 디스크 전체를 세고 있었다** — `.gitignore`와 제외 목록이 어긋나 있어 로컬 빌드 한 번에
4,523개까지 부풀었다(예산 2,200). `.gitignore`와 일치하도록 제외 목록을 갱신해 재발을
막았다 (`tools/audit_repository_entropy_v1.py`). 이 게이트가 다시 실패하면 먼저 "새로운
미추적 빌드 산출물 디렉터리가 생겼나"부터 확인할 것 — 바로 대규모 파일 삭제로 가지 말 것.
## 이번 세션에서 확립된 작업 방식
- 작업 라운드가 끝나면 다음에 할 만한 구체적인 후보를 먼저 제안한다 (사용자가 같은 지시를
반복해서 보내는 걸 방지).
- 단순 기계적 조사/위임은 `model: "haiku"`로, 판단이 필요한 작업만 Sonnet급으로.
- 커밋/푸시는 명시적으로 요청받았을 때만, 항상 경로를 지정해서 스테이징(`git add -A` 금지),
세션 시작 전부터 있던 무관한 변경사항은 요청 없이는 포함하지 않는다.
- 채팅에 붙여넣어진 실제 API 키(KIS, OpenDART, KRX)는 어떤 파일에도 적지 않는다 — 환경변수
*이름*만 기존 KIS 관례(환경변수/Gitea Secrets 전용, 하드코딩 금지)에 맞춰 기록한다.
@@ -1,126 +0,0 @@
from __future__ import annotations
import ast
import json
import re
from dataclasses import dataclass
from pathlib import Path
from src.quant_engine.refactor_master_helpers import ROOT, collect_gas_files
FORBIDDEN_TOKENS = ("decision", "sizing", "stop_loss", "take_profit", "risk_score")
ALLOWED_TOKENS = ("collect", "normalize", "export", "display")
_JS_BLOCK_COMMENT_RE = re.compile(r"/\*.*?\*/", re.S)
_JS_LINE_COMMENT_RE = re.compile(r"//.*?$", re.M)
_JS_STRING_RE = re.compile(
r"""(?x)
(?:
"(?:\\.|[^"\\])*"
| '(?:\\.|[^'\\])*'
| `(?:\\.|[^`\\])*`
)
"""
)
@dataclass
class FunctionRow:
file: str
name: str
line: int
allowed_responsibility: str
matched_tokens: list[str]
def classify(name: str, body: str, file_name: str) -> tuple[str, list[str]]:
cleaned = _JS_BLOCK_COMMENT_RE.sub(" ", body)
cleaned = _JS_LINE_COMMENT_RE.sub(" ", cleaned)
cleaned = _JS_STRING_RE.sub(" ", cleaned)
low = f"{name}\n{cleaned}".lower()
matched_forbidden = [
tok
for tok in FORBIDDEN_TOKENS
if re.search(rf"(?<![A-Za-z0-9_]){re.escape(tok)}(?![A-Za-z0-9_])", low)
]
matched_allowed = [
tok
for tok in ALLOWED_TOKENS
if re.search(rf"(?<![A-Za-z0-9_]){re.escape(tok)}(?![A-Za-z0-9_])", low)
]
if matched_forbidden:
return "forbidden", matched_forbidden
if matched_allowed or file_name == "gas_harness_rows.gs":
return "allowed", matched_allowed or ["harness_rows"]
return "helper", []
def function_bodies(path: Path) -> list[tuple[str, int, str]]:
text = path.read_text(encoding="utf-8", errors="ignore")
lines = text.splitlines()
header_indexes: list[tuple[str, int]] = []
header_re = re.compile(r"^(?:function\s+([A-Za-z0-9_]+)|(?:var|let|const)\s+([A-Za-z0-9_]+)\s*=\s*function\b)")
for idx, line in enumerate(lines):
stripped = line.strip()
m = header_re.match(stripped)
if m:
name = (m.group(1) or m.group(2) or "").strip()
header_indexes.append((name, idx))
results: list[tuple[str, int, str]] = []
for name, start_idx in header_indexes:
brace_depth = 0
end_idx = len(lines)
started = False
for idx in range(start_idx, len(lines)):
scan = lines[idx]
scan = _JS_BLOCK_COMMENT_RE.sub(" ", scan)
scan = _JS_LINE_COMMENT_RE.sub(" ", scan)
scan = _JS_STRING_RE.sub(" ", scan)
brace_depth += scan.count("{")
if scan.count("{"):
started = True
brace_depth -= scan.count("}")
if started and brace_depth <= 0:
end_idx = idx + 1
break
body = "\n".join(lines[start_idx:end_idx])
results.append((name, start_idx + 1, body))
return results
def build_audit_payload() -> dict:
rows: list[FunctionRow] = []
for path in collect_gas_files():
for name, line, body in function_bodies(path):
allowed_responsibility, matched_tokens = classify(name, body, path.name)
rows.append(
FunctionRow(
file=str(path.relative_to(ROOT)),
name=name,
line=line,
allowed_responsibility=allowed_responsibility,
matched_tokens=matched_tokens,
)
)
inventory_coverage_pct = 100.0 if rows else 0.0
forbidden_rows = [row for row in rows if row.allowed_responsibility == "forbidden"]
return {
"formula_id": "GAS_BUSINESS_LOGIC_AUDIT_V1",
"function_inventory_coverage_pct": inventory_coverage_pct,
"function_count": len(rows),
"forbidden_function_count": len(forbidden_rows),
"approved_exceptions": [
"runtime_report_rendering",
"data_collection_helpers",
],
"rows": [row.__dict__ for row in rows],
"gate": "PASS" if inventory_coverage_pct >= 100.0 else "FAIL",
}
def write_audit(out_path: Path) -> dict:
result = build_audit_payload()
out_path.parent.mkdir(parents=True, exist_ok=True)
out_path.write_text(json.dumps(result, ensure_ascii=False, indent=2), encoding="utf-8")
return result
-1
View File
@@ -1 +0,0 @@
"""Auto-generated package."""
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ABSOLUTE_RISK_STOP_V1."""
def test_absolute_risk_stop_v1_golden_stub_exists() -> None:
assert 'ABSOLUTE_RISK_STOP_V1'
def test_absolute_risk_stop_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ALGORITHM_GUIDANCE_PROOF_V1."""
def test_algorithm_guidance_proof_v1_golden_stub_exists() -> None:
assert 'ALGORITHM_GUIDANCE_PROOF_V1'
def test_algorithm_guidance_proof_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ALPHA_EVALUATION_WINDOW_V1."""
def test_alpha_evaluation_window_v1_golden_stub_exists() -> None:
assert 'ALPHA_EVALUATION_WINDOW_V1'
def test_alpha_evaluation_window_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ALPHA_FEEDBACK_LOOP_V1."""
def test_alpha_feedback_loop_v1_golden_stub_exists() -> None:
assert 'ALPHA_FEEDBACK_LOOP_V1'
def test_alpha_feedback_loop_v1_declares_outputs() -> None:
outputs = [{'field': 'alpha_feedback_json', 'subfields': ['eligible_t20_fail_rate', 'eligible_t60_fail_rate', 'recommended_filter_adjustments', 'cases_analyzed']}]
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ANTI_CHASE_V1."""
def test_anti_chase_v1_golden_stub_exists() -> None:
assert 'ANTI_CHASE_V1'
def test_anti_chase_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ANTI_CHASING_VELOCITY_V1."""
def test_anti_chasing_velocity_v1_golden_stub_exists() -> None:
assert 'ANTI_CHASING_VELOCITY_V1'
def test_anti_chasing_velocity_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ANTI_LATE_ENTRY_GATE_V2."""
def test_anti_late_entry_gate_v2_golden_stub_exists() -> None:
assert 'ANTI_LATE_ENTRY_GATE_V2'
def test_anti_late_entry_gate_v2_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ANTI_WHIPSAW_GATE_V1."""
def test_anti_whipsaw_gate_v1_golden_stub_exists() -> None:
assert 'ANTI_WHIPSAW_GATE_V1'
def test_anti_whipsaw_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ARTIFACT_FRESHNESS_GATE_V1."""
def test_artifact_freshness_gate_v1_golden_stub_exists() -> None:
assert 'ARTIFACT_FRESHNESS_GATE_V1'
def test_artifact_freshness_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for AUDIT_REPLAY_SNAPSHOT_V1."""
def test_audit_replay_snapshot_v1_golden_stub_exists() -> None:
assert 'AUDIT_REPLAY_SNAPSHOT_V1'
def test_audit_replay_snapshot_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for BENCHMARK_RELATIVE_TIMESERIES_V1."""
def test_benchmark_relative_timeseries_v1_golden_stub_exists() -> None:
assert 'BENCHMARK_RELATIVE_TIMESERIES_V1'
def test_benchmark_relative_timeseries_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for BLANK_CELL_AUDIT_V1."""
def test_blank_cell_audit_v1_golden_stub_exists() -> None:
assert 'BLANK_CELL_AUDIT_V1'
def test_blank_cell_audit_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for BREAKEVEN_RATCHET_V1."""
def test_breakeven_ratchet_v1_golden_stub_exists() -> None:
assert 'BREAKEVEN_RATCHET_V1'
def test_breakeven_ratchet_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for BREAKOUT_FAILURE_STOP_V1."""
def test_breakout_failure_stop_v1_golden_stub_exists() -> None:
assert 'BREAKOUT_FAILURE_STOP_V1'
def test_breakout_failure_stop_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for BREAKOUT_QUALITY_GATE_V2."""
def test_breakout_quality_gate_v2_golden_stub_exists() -> None:
assert 'BREAKOUT_QUALITY_GATE_V2'
def test_breakout_quality_gate_v2_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CANONICAL_ARTIFACT_RESOLVER_V1."""
def test_canonical_artifact_resolver_v1_golden_stub_exists() -> None:
assert 'CANONICAL_ARTIFACT_RESOLVER_V1'
def test_canonical_artifact_resolver_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CANONICAL_METRICS_V1."""
def test_canonical_metrics_v1_golden_stub_exists() -> None:
assert 'CANONICAL_METRICS_V1'
def test_canonical_metrics_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CAPITAL_STYLE_ALLOCATION_V1."""
def test_capital_style_allocation_v1_golden_stub_exists() -> None:
assert 'CAPITAL_STYLE_ALLOCATION_V1'
def test_capital_style_allocation_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASH_CREATION_PURPOSE_LOCK_V1."""
def test_cash_creation_purpose_lock_v1_golden_stub_exists() -> None:
assert 'CASH_CREATION_PURPOSE_LOCK_V1'
def test_cash_creation_purpose_lock_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASH_FLOOR_V1."""
def test_cash_floor_v1_golden_stub_exists() -> None:
assert 'CASH_FLOOR_V1'
def test_cash_floor_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASH_RAISE_PARETO_EXECUTOR_V2."""
def test_cash_raise_pareto_executor_v2_golden_stub_exists() -> None:
assert 'CASH_RAISE_PARETO_EXECUTOR_V2'
def test_cash_raise_pareto_executor_v2_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASH_RAISE_VALUE_OPTIMIZER_V3."""
def test_cash_raise_value_optimizer_v3_golden_stub_exists() -> None:
assert 'CASH_RAISE_VALUE_OPTIMIZER_V3'
def test_cash_raise_value_optimizer_v3_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASH_RATIOS_V1."""
def test_cash_ratios_v1_golden_stub_exists() -> None:
assert 'CASH_RATIOS_V1'
def test_cash_ratios_v1_declares_outputs() -> None:
outputs = {'settlement_cash_ratio': 'settlement_cash / total_asset * 100', 'total_cash_ratio': 'settlement_cash / total_asset * 100', 'buy_power_cash': 'settlement_cash - reserved_order_amount', 'buy_power_ratio': '(settlement_cash - reserved_order_amount) / total_asset * 100', 'post_trade_total_cash_ratio': '(settlement_cash - planned_buy_amount + sell_cash_proceeds_d2) / total_asset * 100'}
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASH_RECOVERY_OPTIMIZER_V1."""
def test_cash_recovery_optimizer_v1_golden_stub_exists() -> None:
assert 'CASH_RECOVERY_OPTIMIZER_V1'
def test_cash_recovery_optimizer_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASH_RECOVERY_OPTIMIZER_V4."""
def test_cash_recovery_optimizer_v4_golden_stub_exists() -> None:
assert 'CASH_RECOVERY_OPTIMIZER_V4'
def test_cash_recovery_optimizer_v4_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASH_RECOVERY_V1."""
def test_cash_recovery_v1_golden_stub_exists() -> None:
assert 'CASH_RECOVERY_V1'
def test_cash_recovery_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASHFLOW_QUALITY_SIGNAL_V1."""
def test_cashflow_quality_signal_v1_golden_stub_exists() -> None:
assert 'CASHFLOW_QUALITY_SIGNAL_V1'
def test_cashflow_quality_signal_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CASHFLOW_STABILITY_GATE_V1."""
def test_cashflow_stability_gate_v1_golden_stub_exists() -> None:
assert 'CASHFLOW_STABILITY_GATE_V1'
def test_cashflow_stability_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CLA_REGIME_EXIT_CONDITION_V1."""
def test_cla_regime_exit_condition_v1_golden_stub_exists() -> None:
assert 'CLA_REGIME_EXIT_CONDITION_V1'
def test_cla_regime_exit_condition_v1_declares_outputs() -> None:
outputs = [{'field': 'cla_exit_status', 'unit': 'enum [CLA_ACTIVE,CLA_EXIT_WARNING,CLA_EXIT_CONFIRMED]'}, {'field': 'cla_exit_signals_triggered', 'unit': 'list'}, {'field': 'cla_exit_total_weight', 'unit': 'int'}]
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for COMPLETION_GAP_V1."""
def test_completion_gap_v1_golden_stub_exists() -> None:
assert 'COMPLETION_GAP_V1'
def test_completion_gap_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for COMPOSITE_VERDICT_V1."""
def test_composite_verdict_v1_golden_stub_exists() -> None:
assert 'COMPOSITE_VERDICT_V1'
def test_composite_verdict_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for COMPREHENSIVE_PROPOSAL_V1."""
def test_comprehensive_proposal_v1_golden_stub_exists() -> None:
assert 'COMPREHENSIVE_PROPOSAL_V1'
def test_comprehensive_proposal_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CONSECUTIVE_STREAK_V1."""
def test_consecutive_streak_v1_golden_stub_exists() -> None:
assert 'CONSECUTIVE_STREAK_V1'
def test_consecutive_streak_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CONTINUOUS_EVALUATION_DASHBOARD_V1."""
def test_continuous_evaluation_dashboard_v1_golden_stub_exists() -> None:
assert 'CONTINUOUS_EVALUATION_DASHBOARD_V1'
def test_continuous_evaluation_dashboard_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for CROSS_SECTION_CONSISTENCY_V1."""
def test_cross_section_consistency_v1_golden_stub_exists() -> None:
assert 'CROSS_SECTION_CONSISTENCY_V1'
def test_cross_section_consistency_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DATA_INTEGRITY_100_LOCK_V1."""
def test_data_integrity_100_lock_v1_golden_stub_exists() -> None:
assert 'DATA_INTEGRITY_100_LOCK_V1'
def test_data_integrity_100_lock_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DATA_INTEGRITY_100_LOCK_V2."""
def test_data_integrity_100_lock_v2_golden_stub_exists() -> None:
assert 'DATA_INTEGRITY_100_LOCK_V2'
def test_data_integrity_100_lock_v2_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DATA_INTEGRITY_SCORE_V1."""
def test_data_integrity_score_v1_golden_stub_exists() -> None:
assert 'DATA_INTEGRITY_SCORE_V1'
def test_data_integrity_score_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DATA_MATURITY_TRUTH_GATE_V1."""
def test_data_maturity_truth_gate_v1_golden_stub_exists() -> None:
assert 'DATA_MATURITY_TRUTH_GATE_V1'
def test_data_maturity_truth_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DATA_MATURITY_TRUTH_GATE_VALIDATOR_V1."""
def test_data_maturity_truth_gate_validator_v1_golden_stub_exists() -> None:
assert 'DATA_MATURITY_TRUTH_GATE_VALIDATOR_V1'
def test_data_maturity_truth_gate_validator_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DATA_QUALITY_GATE_V2_PY."""
def test_data_quality_gate_v2_py_golden_stub_exists() -> None:
assert 'DATA_QUALITY_GATE_V2_PY'
def test_data_quality_gate_v2_py_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DATA_QUALITY_GATE_V3."""
def test_data_quality_gate_v3_golden_stub_exists() -> None:
assert 'DATA_QUALITY_GATE_V3'
def test_data_quality_gate_v3_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DETERMINISTIC_ROUTING_ENGINE_V1."""
def test_deterministic_routing_engine_v1_golden_stub_exists() -> None:
assert 'DETERMINISTIC_ROUTING_ENGINE_V1'
def test_deterministic_routing_engine_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DISTRIBUTION_SELL_DETECTOR_V1."""
def test_distribution_sell_detector_v1_golden_stub_exists() -> None:
assert 'DISTRIBUTION_SELL_DETECTOR_V1'
def test_distribution_sell_detector_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DIVERGENCE_SCORE_V1."""
def test_divergence_score_v1_golden_stub_exists() -> None:
assert 'DIVERGENCE_SCORE_V1'
def test_divergence_score_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DRAWDOWN_GUARD_V1."""
def test_drawdown_guard_v1_golden_stub_exists() -> None:
assert 'DRAWDOWN_GUARD_V1'
def test_drawdown_guard_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for DYNAMIC_HEAT_GATE_V1."""
def test_dynamic_heat_gate_v1_golden_stub_exists() -> None:
assert 'DYNAMIC_HEAT_GATE_V1'
def test_dynamic_heat_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for EARNINGS_GROWTH_QUALITY_GATE_V1."""
def test_earnings_growth_quality_gate_v1_golden_stub_exists() -> None:
assert 'EARNINGS_GROWTH_QUALITY_GATE_V1'
def test_earnings_growth_quality_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for EARNINGS_QUALITY_SIGNAL_V1."""
def test_earnings_quality_signal_v1_golden_stub_exists() -> None:
assert 'EARNINGS_QUALITY_SIGNAL_V1'
def test_earnings_quality_signal_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ECP_RISK_SCALE_V1."""
def test_ecp_risk_scale_v1_golden_stub_exists() -> None:
assert 'ECP_RISK_SCALE_V1'
def test_ecp_risk_scale_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for EJCE_DIVERGENCE_AUDIT_V1."""
def test_ejce_divergence_audit_v1_golden_stub_exists() -> None:
assert 'EJCE_DIVERGENCE_AUDIT_V1'
def test_ejce_divergence_audit_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for EJCE_VIEW_RENDERER_V1."""
def test_ejce_view_renderer_v1_golden_stub_exists() -> None:
assert 'EJCE_VIEW_RENDERER_V1'
def test_ejce_view_renderer_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for ENTRY_TIMING_DECILE_FACTOR_V1."""
def test_entry_timing_decile_factor_v1_golden_stub_exists() -> None:
assert 'ENTRY_TIMING_DECILE_FACTOR_V1'
def test_entry_timing_decile_factor_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for EXECUTION_CAPACITY_LADDER_V1."""
def test_execution_capacity_ladder_v1_golden_stub_exists() -> None:
assert 'EXECUTION_CAPACITY_LADDER_V1'
def test_execution_capacity_ladder_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for EXECUTION_METHOD_LADDER_V1."""
def test_execution_method_ladder_v1_golden_stub_exists() -> None:
assert 'EXECUTION_METHOD_LADDER_V1'
def test_execution_method_ladder_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for EXECUTION_PLAN_COMPILER_V1."""
def test_execution_plan_compiler_v1_golden_stub_exists() -> None:
assert 'EXECUTION_PLAN_COMPILER_V1'
def test_execution_plan_compiler_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for EXECUTION_QUALITY_SCORE_V1."""
def test_execution_quality_score_v1_golden_stub_exists() -> None:
assert 'EXECUTION_QUALITY_SCORE_V1'
def test_execution_quality_score_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for EXPECTED_EDGE_V1."""
def test_expected_edge_v1_golden_stub_exists() -> None:
assert 'EXPECTED_EDGE_V1'
def test_expected_edge_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FIFTY_TWO_WEEK_HIGH_TRIGGER_V1."""
def test_fifty_two_week_high_trigger_v1_golden_stub_exists() -> None:
assert 'FIFTY_TWO_WEEK_HIGH_TRIGGER_V1'
def test_fifty_two_week_high_trigger_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FINAL_JUDGMENT_GATE_V1."""
def test_final_judgment_gate_v1_golden_stub_exists() -> None:
assert 'FINAL_JUDGMENT_GATE_V1'
def test_final_judgment_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FINANCIAL_HEALTH_SCORE_V1."""
def test_financial_health_score_v1_golden_stub_exists() -> None:
assert 'FINANCIAL_HEALTH_SCORE_V1'
def test_financial_health_score_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FLOW_ACCELERATION_V1."""
def test_flow_acceleration_v1_golden_stub_exists() -> None:
assert 'FLOW_ACCELERATION_V1'
def test_flow_acceleration_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FLOW_CREDIT_V1."""
def test_flow_credit_v1_golden_stub_exists() -> None:
assert 'FLOW_CREDIT_V1'
def test_flow_credit_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FOLLOW_THROUGH_DAY_CONFIRM_V1."""
def test_follow_through_day_confirm_v1_golden_stub_exists() -> None:
assert 'FOLLOW_THROUGH_DAY_CONFIRM_V1'
def test_follow_through_day_confirm_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FORECAST_SIMULATION_ENGINE_V1."""
def test_forecast_simulation_engine_v1_golden_stub_exists() -> None:
assert 'FORECAST_SIMULATION_ENGINE_V1'
def test_forecast_simulation_engine_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FUNDAMENTAL_MULTI_FACTOR_SCORE_V2."""
def test_fundamental_multi_factor_score_v2_golden_stub_exists() -> None:
assert 'FUNDAMENTAL_MULTI_FACTOR_SCORE_V2'
def test_fundamental_multi_factor_score_v2_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FUNDAMENTAL_MULTIFACTOR_V3."""
def test_fundamental_multifactor_v3_golden_stub_exists() -> None:
assert 'FUNDAMENTAL_MULTIFACTOR_V3'
def test_fundamental_multifactor_v3_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FUNDAMENTAL_QUALITY_GATE_V1."""
def test_fundamental_quality_gate_v1_golden_stub_exists() -> None:
assert 'FUNDAMENTAL_QUALITY_GATE_V1'
def test_fundamental_quality_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for FUNDAMENTAL_RAW_INGEST_V1."""
def test_fundamental_raw_ingest_v1_golden_stub_exists() -> None:
assert 'FUNDAMENTAL_RAW_INGEST_V1'
def test_fundamental_raw_ingest_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for GOLDEN_CROSS_SIGNAL_V1."""
def test_golden_cross_signal_v1_golden_stub_exists() -> None:
assert 'GOLDEN_CROSS_SIGNAL_V1'
def test_golden_cross_signal_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for GROWTH_RATE_SIGNAL_V1."""
def test_growth_rate_signal_v1_golden_stub_exists() -> None:
assert 'GROWTH_RATE_SIGNAL_V1'
def test_growth_rate_signal_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for HARNESS_DATA_FRESHNESS_GATE_V1."""
def test_harness_data_freshness_gate_v1_golden_stub_exists() -> None:
assert 'HARNESS_DATA_FRESHNESS_GATE_V1'
def test_harness_data_freshness_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for HEAT_CONCENTRATION_ALERT_V1."""
def test_heat_concentration_alert_v1_golden_stub_exists() -> None:
assert 'HEAT_CONCENTRATION_ALERT_V1'
def test_heat_concentration_alert_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for HORIZON_ALLOCATION_LOCK_V1."""
def test_horizon_allocation_lock_v1_golden_stub_exists() -> None:
assert 'HORIZON_ALLOCATION_LOCK_V1'
def test_horizon_allocation_lock_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for HORIZON_CLASSIFICATION_V1."""
def test_horizon_classification_v1_golden_stub_exists() -> None:
assert 'HORIZON_CLASSIFICATION_V1'
def test_horizon_classification_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for IMMUTABLE_DECISION_LEDGER_V1."""
def test_immutable_decision_ledger_v1_golden_stub_exists() -> None:
assert 'IMMUTABLE_DECISION_LEDGER_V1'
def test_immutable_decision_ledger_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for INTRADAY_ACTION_MATRIX_V1."""
def test_intraday_action_matrix_v1_golden_stub_exists() -> None:
assert 'INTRADAY_ACTION_MATRIX_V1'
def test_intraday_action_matrix_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for INVESTMENT_QUALITY_HEADLINE_V1."""
def test_investment_quality_headline_v1_golden_stub_exists() -> None:
assert 'INVESTMENT_QUALITY_HEADLINE_V1'
def test_investment_quality_headline_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for K2_STAGED_REBOUND_SELL_V1."""
def test_k2_staged_rebound_sell_v1_golden_stub_exists() -> None:
assert 'K2_STAGED_REBOUND_SELL_V1'
def test_k2_staged_rebound_sell_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for LEADER_LIFECYCLE_GATE_V1."""
def test_leader_lifecycle_gate_v1_golden_stub_exists() -> None:
assert 'LEADER_LIFECYCLE_GATE_V1'
def test_leader_lifecycle_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for LEADER_POSITION_WEIGHT_CAP_V1."""
def test_leader_position_weight_cap_v1_golden_stub_exists() -> None:
assert 'LEADER_POSITION_WEIGHT_CAP_V1'
def test_leader_position_weight_cap_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for LIQUIDITY_FLOW_SIGNAL_V1."""
def test_liquidity_flow_signal_v1_golden_stub_exists() -> None:
assert 'LIQUIDITY_FLOW_SIGNAL_V1'
def test_liquidity_flow_signal_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for LLM_NARRATIVE_TEMPLATE_LOCK_V1."""
def test_llm_narrative_template_lock_v1_golden_stub_exists() -> None:
assert 'LLM_NARRATIVE_TEMPLATE_LOCK_V1'
def test_llm_narrative_template_lock_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for LLM_SERVING_CONSTRAINT_V1."""
def test_llm_serving_constraint_v1_golden_stub_exists() -> None:
assert 'LLM_SERVING_CONSTRAINT_V1'
def test_llm_serving_constraint_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for MACRO_EVENT_TICKER_IMPACT_V1."""
def test_macro_event_ticker_impact_v1_golden_stub_exists() -> None:
assert 'MACRO_EVENT_TICKER_IMPACT_V1'
def test_macro_event_ticker_impact_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for MARKET_RISK_SCORE_V1."""
def test_market_risk_score_v1_golden_stub_exists() -> None:
assert 'MARKET_RISK_SCORE_V1'
def test_market_risk_score_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for MARKET_SHARE_MOMENTUM_PROXY_V1."""
def test_market_share_momentum_proxy_v1_golden_stub_exists() -> None:
assert 'MARKET_SHARE_MOMENTUM_PROXY_V1'
def test_market_share_momentum_proxy_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for MARKET_SHARE_SIGNAL_V2."""
def test_market_share_signal_v2_golden_stub_exists() -> None:
assert 'MARKET_SHARE_SIGNAL_V2'
def test_market_share_signal_v2_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for MARKET_WEIGHT_AWARE_CLUSTER_GATE_V1."""
def test_market_weight_aware_cluster_gate_v1_golden_stub_exists() -> None:
assert 'MARKET_WEIGHT_AWARE_CLUSTER_GATE_V1'
def test_market_weight_aware_cluster_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for MEAN_REVERSION_GATE_V1."""
def test_mean_reversion_gate_v1_golden_stub_exists() -> None:
assert 'MEAN_REVERSION_GATE_V1'
def test_mean_reversion_gate_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for MODEL_GOVERNANCE_KILL_SWITCH_V1."""
def test_model_governance_kill_switch_v1_golden_stub_exists() -> None:
assert 'MODEL_GOVERNANCE_KILL_SWITCH_V1'
def test_model_governance_kill_switch_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for OVERHANG_PRESSURE_V1."""
def test_overhang_pressure_v1_golden_stub_exists() -> None:
assert 'OVERHANG_PRESSURE_V1'
def test_overhang_pressure_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for OVERSOLD_DELAY_V1."""
def test_oversold_delay_v1_golden_stub_exists() -> None:
assert 'OVERSOLD_DELAY_V1'
def test_oversold_delay_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for PATTERN_BLACKLIST_AUTO_V1."""
def test_pattern_blacklist_auto_v1_golden_stub_exists() -> None:
assert 'PATTERN_BLACKLIST_AUTO_V1'
def test_pattern_blacklist_auto_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for PEG_SCORE_V1."""
def test_peg_score_v1_golden_stub_exists() -> None:
assert 'PEG_SCORE_V1'
def test_peg_score_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs
@@ -1,9 +0,0 @@
"""Auto-generated golden test stub for PORTFOLIO_ALPHA_CONFIDENCE_PER_TICKER_V1."""
def test_portfolio_alpha_confidence_per_ticker_v1_golden_stub_exists() -> None:
assert 'PORTFOLIO_ALPHA_CONFIDENCE_PER_TICKER_V1'
def test_portfolio_alpha_confidence_per_ticker_v1_declares_outputs() -> None:
outputs = []
assert isinstance(outputs, list)
assert outputs

Some files were not shown because too many files have changed in this diff Show More