Files
routewatch/API_POLICIES.md
T
clawbot e8d04f1304
check / check (push) Canceled after 0s
Give every API value with a unit as a number (closes #199)
A value with a unit is now a number, and its field name ends in the
unit, as the vendored API_POLICIES.md requires. @meta.execution_time
becomes execution_time_ms. In the stats answers, uptime,
connection_duration, memory_usage and whois_stats.current_interval
become uptime_seconds, connection_duration_seconds, memory_usage_bytes
and whois_stats.current_interval_seconds. connection_duration_seconds
is null while the feed is not connected. The status page formats the
numbers itself. REPO_POLICIES.md is re-vendored from the same
sneak/prompts commit.

Model: opus-5-5
2026-10-27 20:19:01 +01:00

329 B

title, last_modified
title last_modified
API Policies 2026-10-27

A value in an API response is never a string with a label or unit in it. A value of a native type is sent as that type, and its unit goes in the field name, for example _ms.

Wrong:

{ "execution_time": "0 ms" }

Right:

{ "execution_time_ms": 0 }