From 888a52b251139af1f7670c3423d00e9f4db1bb8f Mon Sep 17 00:00:00 2001 From: kasun Date: Sun, 15 Nov 2026 15:23:57 +0100 Subject: [PATCH] docs: add dev log entry for #4 --- docs/devlog.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/devlog.md b/docs/devlog.md index 57f3fef..3c7e4fe 100644 --- a/docs/devlog.md +++ b/docs/devlog.md @@ -2,6 +2,20 @@ One entry per finished roadmap step, newest first. The agent drafts the entry, the developer corrects it. Rules for the workflow are in [agentic-workflow.md](agentic-workflow.md). +## 2026-11-15 · Chore: Record tokens and EUR cost per ticket in the dev log + +- **Issue / PR:** #4 / #5 +- **Phase:** 1 +- **Tokens / cost:** 2.6M tokens (19k output, 2.5M cache read) · ~€1.28 API-equivalent +- **Rework rounds:** 0 +- **Agent mistakes and what caught them:** + - Redundant `.replace("Z", "+00:00")` before `datetime.fromisoformat` (not needed since Python 3.11) → caught by lint (ruff FURB162) + - `main()` too complex (cognitive complexity 31 of 15) → caught by the IDE's SonarLint diagnostics; per-line parsing moved into its own function + - First pyright run was not strict (no project config yet) → caught by agent review; `# pyright: strict` added to the script +- **What worked well:** Checking the transcript format before writing the parser: each response appears on several lines with the same usage, so summing naively would have counted about three times too many tokens. +- **Learned:** Until the skeleton ticket adds `pyproject.toml`, ruff and pyright run with defaults, so scripts need explicit settings (`# pyright: strict`, line length) to be checked like the product code. +- **Workflow change proposed:** none + ## 2026-11-15 · Setup: Add project docs and agent workflow setup - **Issue / PR:** #1 / #3