chore: drop probe debug instrumentation and ignore probe artifacts

Keep the Phase 1 CLI production-clean; local probe reports and debug NDJSON stay out of git.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dunmin1980
2026-07-19 09:36:55 +08:00
co-authored by Cursor
parent cafa03fb52
commit 6cb7f9f50c
2 changed files with 2 additions and 22 deletions
+2
View File
@@ -92,6 +92,8 @@ data/strategies/custom/
backend._recheck*.py
backend/_verify*.py
backend/_desktop_run.log
reports/tickflow_pro_probe/
.cursor/debug-*.log
# ===== 打包产物 (本地构建的安装包,不入库) =====
backend/TickFlowStockPanel-win-x64.zip
-22
View File
@@ -176,28 +176,6 @@ def main(argv: list[str] | None = None) -> int:
dry_run = not args.live
has_key = bool(os.environ.get("TICKFLOW_API_KEY", "").strip())
gate = evaluate_gate(dry_run=dry_run, force=args.force, has_key=has_key)
# #region agent log
try:
_dbg = Path(__file__).resolve().parents[2] / ".cursor" / "debug-976372.log"
_dbg.parent.mkdir(parents=True, exist_ok=True)
_dbg.open("a").write(
json.dumps(
{
"sessionId": "976372",
"runId": "phase1-scaffold",
"hypothesisId": "H1",
"location": "probe_tickflow_pro.py:main",
"message": "probe gate decision",
"data": asdict(gate),
"timestamp": int(datetime.now(SHANGHAI).timestamp() * 1000),
},
ensure_ascii=False,
)
+ "\n"
)
except Exception:
pass
# #endregion
print(json.dumps(asdict(gate), ensure_ascii=False))
if not gate.allowed:
return 2