fix(b4): restore dynamic POSIX timestamp in herdr ls shim and reconcile.sh (100% PASS)

This commit is contained in:
2026-08-08 23:36:50 +09:00
parent e38b3e07b8
commit fbf275a8bc
9 changed files with 1071 additions and 31 deletions
+7 -1
View File
@@ -79,6 +79,7 @@ import json
import uuid
import sqlite3
import fcntl
import time
state_file = "STATE_FILE_PLACEHOLDER"
@@ -495,8 +496,13 @@ elif cmd1 == "has-session":
elif cmd1 == "ls":
if "-F" in args:
# Real POSIX seconds, not a sentinel: a below-floor value silently
# disables the stale-transcript guard, so a mock that emits one lets
# B-4-class regressions pass unnoticed. Tests may pin a specific
# creation time per agent via the "created" key in the state file.
now = int(time.time())
for name, data in state.get("agents", {}).items():
print(name + "|999999")
print(name + "|" + str(data.get("created") or now))
sys.exit(0)
agents_list = []
for name, data in state.get("agents", {}).items():