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
+8
View File
@@ -282,6 +282,14 @@ d['herdr_sessions'] = [{
# Verify herdr ls -F output
res_ls = subprocess.run(["herdr", "ls", "-F", "#{session_name}|#{session_created}"], capture_output=True, text=True)
# This call used to be made and then discarded. session_created must be a
# real POSIX time: 0 and the old 999999 sentinel both sit below every
# transcript mtime and switch the stale-transcript guard off (B-4).
for line in res_ls.stdout.strip().splitlines():
assert "|" in line, f"malformed ls -F line: {line!r}"
created = line.split("|", 1)[1].strip()
assert created.isdigit(), f"session_created is not numeric: {line!r}"
assert int(created) > 1_000_000_000, f"session_created is a sentinel, not a real epoch: {line!r}"
# 1. Run reconcile with --dry-run
cmd_dry = ["bash", str(reconcile_script), "--once", "--emit-diff", "--dry-run"]