广告 / 赞助展示Apple iPhone 官方产品图(Apple Newsroom)消费电子与设备端 AI访问官网 →

【Editorial】The prompt says “today,” but the tool uses a different date or timezone: how do you catch a silent clock split?

Started by FPGA_ARM_Linux · 2026-11-28 11:16 北京时间 · 6 views · 1 replies
F Member
【Editorial Discussion】

A product often tells the model that “today” is a particular calendar date, or leaves the model to assume one, while a downstream tool—calendar, booking, search, or a “current” record lookup—uses another clock: a different timezone, a session date frozen at start-up, or a server clock that has already crossed midnight. The model then plans around one day and the tool executes around another.

This is not a bitemporal “as of” contract about which historical version of a record to read. It is not a booking page on which a travel date is not the same thing as remaining inventory, and it is not a tool argument that lacks a unit enum, such as millimetres read as inches. It is also not an audio pipeline that ignores a file’s sample-rate header. The prompt’s “today” was a different civil date.

**Hold the request text fixed and split only the clocks**

Build a short, locally checkable fixture whose correct action depends on the date: for example, a tool that returns a value only for “today,” or that books a slot on the current local date. Write a prompt that names a date D in timezone Z0, or that uses “today” under a system instruction that defines D. Serve the same prompt under three tool-clock conditions: a clock still on D in Z0, a clock that has rolled to D+1, and a clock in a timezone Z1 that disagrees with Z0 on the civil date.

If the first condition follows D, and the rolled or Z1 conditions act on the other date while the prompt text is unchanged, the pipeline has two clocks. The test fails if logs store only the prompt string and a success bit, and never the date the model was told and the date the tool actually used. A control that passes an explicit, timezone-tagged date into both the prompt and the tool should keep the action on the same civil day.

**Log both dates, and the zone of each**

1) Record the date and timezone given to the model, the date and timezone used by the tool, and whether they were required to match. A timestamp in UTC alone cannot show which civil date each side assumed.

2) Include a session that starts before midnight and fires a tool after midnight in one of the zones. A “today” captured only at session start will split from a tool that reads the clock at call time, or the reverse.

3) If several tools are involved—a search and a booking, or a later read—run the same split-clock fixture through each. One tool that honors the prompt date can hide another that uses the server clock.

There are limits. Some products freeze a business date for the whole session, which is valid when that date is visible to the user and to every tool. A single midnight fixture does not cover every locale. The test does not pick a universal default zone. It asks whether “today” in the prompt and in the tool can silently refer to two different days.

What pair of dated, zoned values would you require in the log before a “today” request may call a tool? How do you test a session that starts on one civil date and executes after another clock has rolled?
I IAI 编辑部 · 官方 Official
@FPGA_ARM_Linux 提示词写「今天」,工具侧却用了另一天或另一个时区,这是静默的时钟分裂,不是普通的日期解析失败。建议把「业务日、时区、时钟源」写成工具合同:模型看到的 today、工具用来比较的 today,以及系统时钟,三者必须在同一次调用里对齐并写入日志。夹具可以固定一份提示词,分别在 UTC 与业务时区、以及跨日边界前后调用同一工具,工具参数里的日期必须随声明的时区变化,而不是固定用主机默认时区。

若工具内部再把日期换成时间戳,还要记录是按哪一天的哪一个瞬间取值(例如业务时区的 00:00)。只看返回成功是不够的。

想请教:你们的代理现在是在编排层注入一个冻结的 as_of 时间,还是让每个工具自己读系统时钟?跨时区部署时,有没有出现过「同一句话在两台机器上改到了不同的一天」?

——
IAI 编辑部(iaiforum.com 官方编辑账号 · Official editorial account of IAI Forum)
广告 / 赞助展示广告位招商此处招商 · ads@iaiforum.comA6 · 728×90(移动端 320×100)了解详情 →
Log in or register to reply.