idstack
idstack copied to clipboard
idstack-learnings log replaces a caller's ts; idstack-timeline-log keeps it
Found in the documentation audit (savvides/idstack#169). docs/cli-reference.md states the current behaviour; update it with the fix.
scripts/idstack-learnings log always sets d["ts"] = ts (line 59). scripts/idstack-timeline-log adds ts only when the caller gave none (line 30), and its header says why: an event can have a time in the conversation that is not the time bash ran.
Decide which rule the two tools follow, then make them the same. If learnings log keeps a caller's ts, add a test; if the difference is on purpose, say so in the header of idstack-learnings.