|
@@ -56,6 +56,8 @@ docker run -d --name svapi-dev -p 8080:8080 -e SMARTBOTIC_VECTORAPI_KEY=dev svap
|
|
|
- **A PERMISSIVE TEST ASSERTION'S STRENGTH DEPENDS ON THE SERVER'S STRICTNESS, so tightening a contract can silently promote a sloppy test elsewhere into a blind spot.** A consumer found this while checking whether the `unknown_option` refusal would break them: a test asserting their outgoing body with `expect.objectContaining({...})` tolerated extra keys by construction, so it could only ever fail in the direction that was already safe - add a stray key and the test stays green while production starts refusing every search with 422. They tightened it to an exact match. The lesson for asking consumers about a breaking change: the question is not only "do you send an extra key" but **"would your tests notice if you started"**.
|
|
- **A PERMISSIVE TEST ASSERTION'S STRENGTH DEPENDS ON THE SERVER'S STRICTNESS, so tightening a contract can silently promote a sloppy test elsewhere into a blind spot.** A consumer found this while checking whether the `unknown_option` refusal would break them: a test asserting their outgoing body with `expect.objectContaining({...})` tolerated extra keys by construction, so it could only ever fail in the direction that was already safe - add a stray key and the test stays green while production starts refusing every search with 422. They tightened it to an exact match. The lesson for asking consumers about a breaking change: the question is not only "do you send an extra key" but **"would your tests notice if you started"**.
|
|
|
- **AN UNMEASURED CLAIM INHERITS THE CREDIBILITY OF ITS NEIGHBOURS. In a message where most assertions carry a file and line, the one that does not reads just as authoritative - and is believed just as hard.** 2026-10-13: I answered a consumer's four measured filter questions by citing `src/filters.cpp:33-38` for each, and in the same breath recommended `field:exists:true` as a guard against nulls in a range filter. I had not checked it. It is wrong - a field holding an explicit `null` EXISTS, so `exists` excludes only the absent case, which was never the problem. They put it in a spec and called it "strictly better" than the pair-of-bounds form they had actually tested.
|
|
- **AN UNMEASURED CLAIM INHERITS THE CREDIBILITY OF ITS NEIGHBOURS. In a message where most assertions carry a file and line, the one that does not reads just as authoritative - and is believed just as hard.** 2026-10-13: I answered a consumer's four measured filter questions by citing `src/filters.cpp:33-38` for each, and in the same breath recommended `field:exists:true` as a guard against nulls in a range filter. I had not checked it. It is wrong - a field holding an explicit `null` EXISTS, so `exists` excludes only the absent case, which was never the problem. They put it in a spec and called it "strictly better" than the pair-of-bounds form they had actually tested.
|
|
|
**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.
|
|
**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 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:
|
|
- **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 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.
|
|
- **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.
|