From aa41ac67d24588c1f40c5fe4717f5ee7cd11b479 Mon Sep 17 00:00:00 2001 From: JavaZeroo <71128095+JavaZeroo@users.noreply.github.com> Date: Thu, 29 Oct 2026 22:44:26 +0800 Subject: [PATCH] diagnose(shell): timestamp discard and progress records refs #156 Both the selection-discard JSONL and the actions progress JSONL now carry a monotonic t_ms so a hosted discard can be ordered against the geometry phases that precede the failing check. --- experiments/shell/shell.cpp | 2 +- experiments/shell/workspace_actions_scenario.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/shell/shell.cpp b/experiments/shell/shell.cpp index 06396a2c..b93151c1 100644 --- a/experiments/shell/shell.cpp +++ b/experiments/shell/shell.cpp @@ -46,7 +46,7 @@ void selection_discard_diagnostic(const char* reason, size_t row) { std::ofstream stream(path, std::ios::app); if (!stream) return; stream << "{\"schema\":\"termforge-selection-discard-v1\",\"reason\":\"" << reason - << "\",\"row\":" << row << "}\n"; + << "\",\"row\":" << row << ",\"t_ms\":" << GetTickCount64() << "}\n"; } void install_selection_diagnostic_once() { static std::once_flag once; diff --git a/experiments/shell/workspace_actions_scenario.hpp b/experiments/shell/workspace_actions_scenario.hpp index b046f297..dd86de95 100644 --- a/experiments/shell/workspace_actions_scenario.hpp +++ b/experiments/shell/workspace_actions_scenario.hpp @@ -169,7 +169,7 @@ inline void Workspace::scenario_actions() { <<",\"status\":"; termforge::Screen::quoted(out,utf8(target->status_text().c_str())); out<<",\"frame_matches_full\":"<<(target->frame_matches_full()?"true":"false")<<'}'; } - out<<"]}"; geometry_samples_.push_back(out.str()); + out<<"]"; out<<",\"t_ms\":"<