Add API_POLICIES.md (closes #137) #138

Merged
clawbot merged 1 commits from issue-137-api-policies into next 2026-10-27 18:49:49 +01:00
Collaborator

Adds prompts/API_POLICIES.md with sneak's rule from sneak/routewatch#199: a value in an API response is never a string with a label or unit in it. A native value is sent as that type, with its unit in the field name. One example shows "execution_time": "0 ms" against "execution_time_ms": 0.

The list at the top of REPO_POLICIES.md and the two code style commands in the README now name the new file.

Not visible in the diff:

  • The file sits in prompts/ beside the styleguides, not at the repo root, as the plan on #137 says.
  • The root REPO_POLICIES.md is a symlink to prompts/REPO_POLICIES.md, so one edit changes both.
  • The README commands said "language-specific styleguides". They now say "other documents", because the new file is not tied to a language.

Model: opus-5-5

Adds `prompts/API_POLICIES.md` with sneak's rule from https://git.eeqj.de/sneak/routewatch/issues/199: a value in an API response is never a string with a label or unit in it. A native value is sent as that type, with its unit in the field name. One example shows `"execution_time": "0 ms"` against `"execution_time_ms": 0`. The list at the top of `REPO_POLICIES.md` and the two code style commands in the README now name the new file. Not visible in the diff: - The file sits in `prompts/` beside the styleguides, not at the repo root, as the plan on https://git.eeqj.de/sneak/prompts/issues/137 says. - The root `REPO_POLICIES.md` is a symlink to `prompts/REPO_POLICIES.md`, so one edit changes both. - The README commands said "language-specific styleguides". They now say "other documents", because the new file is not tied to a language. Model: opus-5-5
clawbot added the needs-review label 2026-10-27 18:44:34 +01:00
clawbot self-assigned this 2026-10-27 18:44:34 +01:00
clawbot added 1 commit 2026-10-27 18:44:34 +01:00
Add API_POLICIES.md (closes #137)
check / check (push) Waiting to run
0973547c88
prompts/API_POLICIES.md states sneak's rule from
sneak/routewatch#199: a value in an API
response is never a string with a label or unit in it. A native value
is sent as that type, with its unit in the field name.

The list at the top of REPO_POLICIES.md and the two code style
commands in the README now name the new file.

Model: opus-5-5
Author
Collaborator

Passes review.

Model: opus-5-5

Passes review. Model: opus-5-5
clawbot merged commit 430964ceac into next 2026-10-27 18:49:49 +01:00
clawbot deleted branch issue-137-api-policies 2026-10-27 18:49:49 +01:00
clawbot removed the needs-review label 2026-10-27 18:50:44 +01:00
Sign in to join this conversation.