Explorar el Código

docs: when the observable is identical either way, vary the input

A consumer's wording after a day in which four separate findings had
exactly that structure, two ours and two theirs: a report returning ok
with nobody mailed; a comment-only edit "proving" a deploy skip, when the
bundler had stripped the comment so nothing could have been pushed; a row
count that cannot see a truncated document; and a 200 for an input the
handler discarded.

In every one the passing observation was real and the inference drawn
from it was wider than it could support. Reading the result more
carefully does not help, because the result is the same in the working
and broken cases. A control with a differing input is the one test such a
failure cannot survive - which is why the falsifiability pairing exists
in the query-param tests, and why the prune was verified by reading a
document body back rather than by watching a count fall.
fszontagh hace 1 mes
padre
commit
1bed669f2b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      CLAUDE.md

+ 1 - 0
CLAUDE.md

@@ -62,6 +62,7 @@ docker run -d --name svapi-dev -p 8080:8080 -e SMARTBOTIC_VECTORAPI_KEY=dev svap
   **Both halves of that are the same mechanism and worth naming separately.** Mine: I was pleased with a clean one-operator answer and did not notice I had stopped citing. Theirs, in their words: they had measured four behaviours precisely so as not to record a guarantee nobody had made, then took a fifth on trust because it was the answer they wanted - so **"thanks are a signal to re-read, not to proceed."** The practical rule for this file and for any reply to a consumer: **if a claim has no file, line or measurement behind it, say so in the same sentence.** An unqualified sentence sitting between two cited ones is the most dangerous shape a wrong claim can take.
 - **STATE THE RULE, NOT THE LIST - a list of names makes the blast radius something each consumer has to ask about.** I told consumers that the index-values route "now refuses `offset`, `page`, `cursor`, `sort`, `fields`, `after`, `skip`", and a consumer had to gate their deploy approval on asking whether it was a SHARED query-string validator, because they send `offset` and `sort` to the DOCUMENTS listing where both are load-bearing. The rule is **"refuse what you cannot honour"**: the documents route IMPLEMENTS both, so accepting them is correct, while the values route's underlying client call takes `(collection, field, limit, ascending)` and has no offset at all, so accepting them was the defect. Stated that way the scope is DERIVABLE; stated as seven names it reads like a generic set and invites exactly the question it got.
   Worth pairing with the verification lesson, because answering it needed both: reading `opts.offset = parseUInt(...)` proves the parameter is CONSUMED, and disjoint page1/page2 proves it is HONOURED. Different claims, and this whole week turned on the gap between them.
+- **THE WHOLE FAMILY IN ONE SENTENCE, FROM A CONSUMER AFTER A DAY OF FINDING THEM: WHEN THE OBSERVABLE IS IDENTICAL IN THE WORKING AND BROKEN CASES, THE ONLY ESCAPE IS TO VARY THE INPUT AND DEMAND THE OUTPUT VARY WITH IT.** Four separate findings on 2026-10-15 had exactly that structure, two of them ours and two theirs: a report returning `ok` with nobody mailed; a comment-only edit "proving" a deploy skip, when the bundler had stripped the comment so there was genuinely nothing to push; a row count that cannot see a truncated document; and a **200 for an input the handler discarded**. In every one the passing observation was real and the inference from it was unsupported, and no amount of care in reading the result would have helped, because the result is the same either way. **A control with a DIFFERING input is the one test such a failure cannot survive** - which is also why the falsifiability pairing exists in the query-param tests, and why the prune was verified by reading a document body back rather than by watching a count fall.
 - **THE ONE QUESTION THAT CATCHES THIS WHOLE FAMILY: "WHAT ELSE WOULD PRODUCE THIS EXACT RESULT?"** It is one line, it costs nothing, and on 2026-10-12 three separate instances of the same defect appeared in a single afternoon - two of them mine - every one of which it would have stopped:
   - **A vector-encryption test** read rows written BEFORE the flag was flipped and concluded about writes after it. What else would produce three rows still searching at 1.0? Pre-flip vectors living in the vector sub-db rather than the body. Which is exactly what was happening, and the new-insert path was broken.
   - **A consumer's page probe** returned 200 at 5.4 MiB and they concluded the size limit was per DOCUMENT. What else would produce that? A per-RESPONSE limit anywhere above 5.4 MiB - which is what it is, 100 MB. A test that passes under both hypotheses cannot choose between them.