Repository navigation
Description
Found by the tmux TUI e2e suite while it was being rewritten for #184, on dev (8f2ab000) against deepseek/deepseek-v4-flash.
What happened
ask here on home, "remind me in 1 minute to drink water". The card came up, the person said 1, the item stood. It never fired. Five minutes later the window's own pass retired it:
2026-08-31T23:14:33-04:00 its time ran out — no longer watching
The item the stand tool wrote:
"when": { "kind": "at", "words": "in 1 minute — 23:11", "at": "2026-08-31T23:11:11.775-04:00" },
"rails": { "perRunUsd": 5, "maxPerDay": 10, "expires": "2026-08-31T23:11:00-04:00" },
"status": "retired", "retiredWhy": "expired", "runs": 0,
"lastCheckLine": "its time ran out"The expiry is eleven seconds BEFORE the moment the item is due. internal/standing/tick.go's Ticker.one checks expiry as rail one, before anything can be due, so this item could never have fired by any road — not the window's pass, not aforge tick, not a pass that landed in the same second.
Why it is the tool's to refuse
internal/session/tools_standing.go already holds exactly this law, and applies it in one direction only:
// AND AN EXPIRY ALREADY GONE RETIRES THE ITEM BEFORE IT EVER FIRES, so
// it is refused for [standingAtMoment]'s reason and with its wording: a
// card answered yes that stood something up already dead is the worst
// of both endings.
if moment.Before(now.Add(-standingPastGrace)) {An expiry that is merely before the item's own when.at is the same defect with the same consequence, and it is accepted. The schema line the model reads says only "Local RFC3339 stamp after which it retires. Omit for never. A stamp already gone is refused, as when.at is." — nothing tells it that an expiry at the reminder's own minute kills the reminder.
How the model got there is easy to see and will keep happening: it wrote in 1 minute — 23:11 for the words and 23:11 for the expiry, while when.at was computed as created + 60s = 23:11:11. Minute-resolution expiry against second-resolution due time, so a one-off reminder is a coin flip at best and dead at worst.
What it costs
A person asks for a one-off reminder, is shown a card that says I'll keep doing this in 1 minute — 23:11, for this project, until you stop it, says yes, and nothing ever happens. The only trace is a line in the item's log nobody reads. This is the single most common shape of standing order there is.
Suggested mechanism
In standRailsFrom (internal/session/tools_standing.go), once when is known:
- refuse an expiry that is not after the item's own
when.atfor aWhenAtitem, with the same wording family as the already-gone refusal — the model can then either drop it or work it out; or - clamp it up to
expiryOf's own ceiling (when.at + 24h) and say so on the card.
Refusing is more in keeping with the file's own law. Either way the schema line should state it, so the model reasons from the rule rather than being corrected by it.
Worth checking at the same time: standingAtMoment's grace and the minute/second mismatch — if when.words names a minute, the expiry the model derives from the same words will keep landing before when.at.
Where the e2e suite stands on it
internal/e2e/tui_e2e_test.go's the_firing_reaches_the_person now reads the item off disk and, when a firing does not arrive, says outright that the expiry preceded the moment and names this issue, so the next person meeting it does not spend the hour again.
Drafted with CodeAF · reviewed and owned by the author
Activity
an end that stands before the item's own first firing is refused
standing: an end inside one check is refused, not silently retired
standing: an end inside one check is refused, not silently retired
standing: an end inside one check is refused, not silently retired
The tmux TUI suite, green: the engine road's missing seams and four r…