[eric] canary: print the marker on every row, it is the only record of what hit a real account

This commit is contained in:
ciregenz
2026-08-05 08:01:28 -07:00
parent 7ba99ba4a4
commit c47057c576
+6 -1
View File
@@ -346,7 +346,12 @@ def main() -> int:
r = check_site(s, SITES[s], args.live)
rows.append(r)
flag = "PASS" if r.get("ok") else "DRIFT"
print(f" [{flag}] {s:10} stage={r.get('stage','?'):10} {r.get('detail','')}", flush=True)
# The marker rides on EVERY row, not just the ones that admit trouble. It is the only record
# of what this run put on a real account: it is never written to the backend log (a grep for
# every marker ever generated returns nothing), so a row that printed no marker and later
# turned out to be stranded could not be cleaned up by hand at all.
print(f" [{flag}] {s:10} {r.get('marker','')} stage={r.get('stage','?'):10} "
f"{r.get('detail','')}", flush=True)
bad = [r for r in rows if not r.get("ok")]
stranded = [r for r in bad if r.get("stage") == "cleanup"]