docs: record v1 lessons and open items in the project mind #4

Open
schmidt.florian wants to merge 1 commits from 3-mind-lessons into master
Owner

Closes #3

What and why

Records what v1 (PR #2) taught in .agents/mind/, so later sessions do not relearn it: 7 new gotchas, a new open.md with the unverified hardware checks and deferred review notes, and an updated index.

Decisions

None changed. The gotchas cite D5, D6 and D11.

How it was tested

python -B tools/docs/check_docs.py: 0 errors on f108226. Docs only.

Closes #3 ## What and why Records what v1 (PR #2) taught in `.agents/mind/`, so later sessions do not relearn it: 7 new gotchas, a new `open.md` with the unverified hardware checks and deferred review notes, and an updated index. ## Decisions None changed. The gotchas cite D5, D6 and D11. ## How it was tested `python -B tools/docs/check_docs.py`: 0 errors on `f108226`. Docs only.
schmidt.florian added the type/docs label 2026-10-14 22:12:17 +02:00
schmidt.florian added 1 commit 2026-10-14 22:12:17 +02:00
Adds the pitfalls v1 hit (GUI-host output encoding, init-only JSON
defaults, Windows replace vs. readers, Stream Deck environment
inheritance, the app/CLI name clash, plugin version bumps, missing local
midnights) and the checks and review notes still open after PR #2.

Refs #3
Author
Owner

Agent review: pass on f108226f04

Blocking

None.

Notes

  • Issue #3: all three checklist items are done in this PR but still unticked. AGENTS.md asks to keep the plan current. The PR also adds a seventh gotcha (missing local midnights) that the issue does not list. It fits the issue's purpose; add it to the checklist.
  • .agents/mind/index.md:12: "An idle refresh writes only snapshot.json" is a little stronger than D5 and the code. Once an hour, an unchanged probe sample is still written (D5: "otherwise at most once an hour"; Core AGENTS.md: "without writing history before that hourly point"). Wording such as "history writes follow new data or the hourly sample" would be exact.
  • .agents/mind/open.md:5: four separate review items share one entry. Separate entries are easier to remove one at a time as they are resolved, as the mind rules ask.
  • .agents/mind/open.md:6: the issue #1 status note only says a 1-in-173 failure "was seen once". It does not name 5c5973a. The count fits a run before 15c7e68 (174 tests), but the commit cannot be checked from the record.

Checked

Commit f108226f04b09376d608eb9698270baec6da14a7 (PR head), first review. There were no earlier agent reviews on the PR.

Read: the PR body, issue #3, the root AGENTS.md, src/FinalToken.Core/AGENTS.md, D5, D6 and D11 in docs/decisions.md, docs/agents/review.md, the whole diff (git diff origin/master...f108226, 3 files, +20/-2), and the PR #2 and issue #1 comments that the new entries summarize.

Checked each entry against the code at the head:

  • UTF-8 child pipes and own handles: ProcessRunner.cs:30-31; tests/FinalToken.ProcessHost is a WinExe; matches D6.
  • Settable persisted defaults: Settings.cs uses { get; set; } with initializers; Core AGENTS.md states the rule.
  • Reader sharing and replace retry: AtomicFile.cs:74, IncrementalScanner.cs:56; matches D5.
  • FINALTOKEN_DATA_DIR: Settings.cs:39.
  • CLI name: AssemblyName finaltoken-cli vs. app FinalToken.
  • Plugin version: PluginInstaller.cs:32 only reports an update when shipped > installed. publish.py stamps <Version> + .0, and Directory.Build.props is 1.0.1, so it ships 1.0.1.0. The locally installed plugin manifest is 1.0.1.0, as open.md:7 says.
  • Local midnights: CalendarDays; Cairo, Santiago and Beirut regression tests in ReviewRegressionTests.cs. The remaining ConvertTimeToUtc call (ClaudeUsageParser.cs:50) guards invalid times and is not a day boundary.
  • npm discovery: CliDiscovery.cs:44-47. Deferred notes match the PR #2 review comments. 5c5973a, 15c7e68 and fd30dfc exist (reachable from refs/pull/2/head), and their messages match what the entries say.
  • Idle writes: RefreshEngine.cs:212-213 (see the note above).

Ran in a separate worktree on Windows 11:

  • python -B tools/docs/check_docs.py: 0 errors. It scans .agents/mind/, so the D5, D6 and D11 citations resolve.
  • python -B tools/docs/test_check_docs.py: 15 passed.

Not run: the build and tests, because the change is docs only and touches no code, project or build file.

**Agent review: pass** on f108226f04b09376d608eb9698270baec6da14a7 ## Blocking None. ## Notes - Issue [#3](https://git.finalfactory.de/FinalFactory/FinalToken/issues/3): all three checklist items are done in this PR but still unticked. `AGENTS.md` asks to keep the plan current. The PR also adds a seventh gotcha (missing local midnights) that the issue does not list. It fits the issue's purpose; add it to the checklist. - `.agents/mind/index.md:12`: "An idle refresh writes only `snapshot.json`" is a little stronger than D5 and the code. Once an hour, an unchanged probe sample is still written (D5: "otherwise at most once an hour"; Core `AGENTS.md`: "without writing history before that hourly point"). Wording such as "history writes follow new data or the hourly sample" would be exact. - `.agents/mind/open.md:5`: four separate review items share one entry. Separate entries are easier to remove one at a time as they are resolved, as the mind rules ask. - `.agents/mind/open.md:6`: the issue #1 status note only says a 1-in-173 failure "was seen once". It does not name `5c5973a`. The count fits a run before `15c7e68` (174 tests), but the commit cannot be checked from the record. ## Checked Commit `f108226f04b09376d608eb9698270baec6da14a7` (PR head), first review. There were no earlier agent reviews on the PR. Read: the PR body, issue #3, the root `AGENTS.md`, `src/FinalToken.Core/AGENTS.md`, D5, D6 and D11 in `docs/decisions.md`, `docs/agents/review.md`, the whole diff (`git diff origin/master...f108226`, 3 files, +20/-2), and the PR #2 and issue #1 comments that the new entries summarize. Checked each entry against the code at the head: - UTF-8 child pipes and own handles: `ProcessRunner.cs:30-31`; `tests/FinalToken.ProcessHost` is a `WinExe`; matches D6. - Settable persisted defaults: `Settings.cs` uses `{ get; set; }` with initializers; Core `AGENTS.md` states the rule. - Reader sharing and replace retry: `AtomicFile.cs:74`, `IncrementalScanner.cs:56`; matches D5. - `FINALTOKEN_DATA_DIR`: `Settings.cs:39`. - CLI name: `AssemblyName` `finaltoken-cli` vs. app `FinalToken`. - Plugin version: `PluginInstaller.cs:32` only reports an update when shipped > installed. `publish.py` stamps `<Version>` + `.0`, and `Directory.Build.props` is `1.0.1`, so it ships `1.0.1.0`. The locally installed plugin manifest is `1.0.1.0`, as `open.md:7` says. - Local midnights: `CalendarDays`; Cairo, Santiago and Beirut regression tests in `ReviewRegressionTests.cs`. The remaining `ConvertTimeToUtc` call (`ClaudeUsageParser.cs:50`) guards invalid times and is not a day boundary. - npm discovery: `CliDiscovery.cs:44-47`. Deferred notes match the PR #2 review comments. `5c5973a`, `15c7e68` and `fd30dfc` exist (reachable from `refs/pull/2/head`), and their messages match what the entries say. - Idle writes: `RefreshEngine.cs:212-213` (see the note above). Ran in a separate worktree on Windows 11: - `python -B tools/docs/check_docs.py`: 0 errors. It scans `.agents/mind/`, so the D5, D6 and D11 citations resolve. - `python -B tools/docs/test_check_docs.py`: 15 passed. Not run: the build and tests, because the change is docs only and touches no code, project or build file.
All checks were successful
agent-review agent review: pass
This pull request has changes conflicting with the target branch.
  • .agents/mind/gotchas.md
  • .agents/mind/index.md
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 3-mind-lessons:3-mind-lessons
git checkout 3-mind-lessons
Sign in to join this conversation.