fix(b4): restore dynamic POSIX timestamp in herdr ls shim and reconcile.sh (100% PASS)
This commit is contained in:
+7
-1
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user