소스 검색

docs: rewrite a wrong claim, keep-and-label a superseded one

Two maintenance rules for this file, both from a consumer naming a
distinction after watching me do both in one afternoon without articulating
it.

Rewrite when the claim was WRONG. An appended correction leaves both
sentences reading as true and lets the reader pick, which is the
stale-comment failure with a timestamp attached - and this file gets read
under pressure by someone who will take the first assertion that fits. My
claim that history bytes dominate the at-rest migration was false and now
reads as false, not as a dated opinion sitting beside a newer one.

Keep and label when the claim was RIGHT and the world moved. The superseded
filtered-scan cap stays, labelled, because the failure shape it describes is
still worth recognising even though the mechanism is retired.

And: establish who owns a layer before reporting a finding to it. A consumer
sent a sound suggestion about the database's verify tool and told us it was
our call. It was not. Had we received it politely they would have waited on a
change we cannot make - a finding filed one layer too high is sympathetically
received by someone who cannot act on it, which is worse than a rejection
because it looks like progress.
fszontagh 1 개월 전
부모
커밋
65d2b5ff8c
1개의 변경된 파일과 2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      CLAUDE.md

+ 2 - 0
CLAUDE.md

@@ -58,6 +58,8 @@ docker run -d --name svapi-dev -p 8080:8080 -e SMARTBOTIC_VECTORAPI_KEY=dev svap
 - **clangd, clang-format and clang-tidy are configured** (`.clangd`, `.clang-format`) and read `build-host/compile_commands.json`, so they cover `src/`, `tests/` and `runner/` including `runner/src/main.cpp`. The tidy set is narrow on purpose (`bugprone`/`cert`/`clang-analyzer`/`misc`/`performance`): the broad `modernize`/`readability` families bury real findings under thousands of style notes. `.clang-format` **describes the style the code already uses** rather than imposing one, so it is close to a no-op; `LambdaBodyIndentation: OuterScope` is the setting that matters, since every route handler is a lambda whose body is indented from the statement. Even so the codebase is hand-laid-out and not formatter-clean, so format **new or changed code only** (`git clang-format`), never whole files.
 - TS: no `any`, no TS `enum`, no constructor parameter-property shorthand (tsconfig `erasableSyntaxOnly`). Iterating parsed JSON: bind to a named var first (range-for over `nlohmann::json::parse(...)[...]` dangles).
 - Commits: conventional prefixes (`feat`/`fix`/`build`/`docs`/`test`). Branch for feature work; `main` is pushed to `ssh://git.smartbotics.ai:10022/fszontagh/smartbotic-vectorapi.git`.
+- **MAINTAINING THIS FILE: REWRITE when a claim was WRONG; KEEP AND LABEL when a claim was RIGHT and the world moved.** The two look similar and the failure modes are opposite. An appended correction under a wrong claim leaves both sentences reading as true and invites the reader to pick - the stale-comment failure with a timestamp attached, and this file is read under pressure by someone who will take the first assertion that fits. So a measured refutation REPLACES the claim, says it was wrong, and says what the measurement was: the note that history bytes dominate the at-rest migration was mine, it was false, and it reads as false now rather than as a dated opinion beside a newer one. Conversely the superseded filtered-scan cap stays, LABELLED superseded, because the claim was accurate and only the mechanism retired - and the failure shape it describes is still worth recognising. The rule came from a consumer drawing the distinction after watching me do both in one afternoon without naming it.
+- **ESTABLISH WHO OWNS A LAYER BEFORE REPORTING A FINDING TO IT.** `encryption-verify`, the CLI, the migration, encryption at rest and storage are the DATABASE's; this repo owns the HTTP surface, the function runtime, the export and its digest. A consumer sent us a sound suggestion about the verify tool's verdict wording and told us it was our call - it was not, and had we received it politely they would have waited on a change we cannot make. **A finding filed one layer too high is sympathetically received by someone who cannot act on it**, which is worse than a rejection because it looks like progress. Route it, and say plainly that you are routing it.
 
 ## Function runtime