From 904b7c42a4afd5827d74f1c52942dc5d6a3ef89a Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 14 Jun 2026 13:25:33 +0900 Subject: [PATCH] feat(release): optimize upload zip to include only report/spec/data files --- runtime/refactor_baseline_v1.yaml | 2 +- src/quant_engine/prepare_upload_zip.py | 24 ++++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/runtime/refactor_baseline_v1.yaml b/runtime/refactor_baseline_v1.yaml index 7ae2081..3640413 100644 --- a/runtime/refactor_baseline_v1.yaml +++ b/runtime/refactor_baseline_v1.yaml @@ -15,5 +15,5 @@ "keep package scripts within release envelope" ] }, - "source_zip_sha256": "74021cf35b92462d7f74f18721ef3c4d84398e034672958855ec2e2211ec4735" + "source_zip_sha256": "9e236e9160fc5a55b90e45e7744bc19e3721a1c698bfebacea292b2ce326f3ef" } \ No newline at end of file diff --git a/src/quant_engine/prepare_upload_zip.py b/src/quant_engine/prepare_upload_zip.py index 5ae369d..75b0467 100644 --- a/src/quant_engine/prepare_upload_zip.py +++ b/src/quant_engine/prepare_upload_zip.py @@ -88,6 +88,21 @@ TEMP_KEEP_FILES = { "single_truth_ledger_v2.json", "smart_cash_recovery_v7.json", "smart_cash_recovery_v9.json", + # Data Analysis & Verification Reports + "horizon_rebalance_plan_v1.json", + "factor_lifecycle_completeness_v1.json", + "factor_shadow_eligibility_v1.json", + "algorithm_guidance_proof_v1.json", + "strategy_routing_audit_v1.json", +} + +UPLOAD_KEEP_DIRS_UPLOAD = { + "artifacts", + "docs", + "governance", + "runtime", + "spec", + "Temp", } @@ -153,15 +168,12 @@ def should_include(path: Path, mode: str, include_xlsx: bool, include_backups: b top = parts[0] if len(parts) == 1: return path.name in UPLOAD_KEEP_FILES - if top not in UPLOAD_KEEP_DIRS: + + # Strictly exclude code directories (src, tools, tests, dist) in upload mode to limit LLM context + if top not in UPLOAD_KEEP_DIRS_UPLOAD: return False if top == "tools" and path.name.endswith(".bak"): return False - if top == "dist": - return path.name in { - "retirement_portfolio_compact.yaml", - "retirement_portfolio_ultra_compact.yaml", - } return True