Sfoglia il codice sorgente

docs: a launch announcement says what is shipping, not what is next

I put a consumer's inference about their own roadmap into a release priority
without asking whether it was a fact. Told their /fn exposure was safe only
because the voice agent was unlaunched, I asked how near the launch was, got
"likelier to be near than far", and raised the deploy's priority on it -
telling my owner the two were racing.

Retracted by them within the hour, from their user: the customer is getting
the review portal only, and the agents are NOT IMPLEMENTED. The race did not
exist. Unwound on the board explicitly rather than quietly.

Their diagnosis is the rule: "they are publishing the portal" is evidence
about the portal and silent about everything else, and the gap got filled by
an assumption that things ship in the order one learns about them. Same family
as reading a requirement off traffic, and in both cases there was a person who
could simply have been asked.

What generalises is the cost: an unverified roadmap claim moves a release
PRIORITY, which is worse than moving a diagnosis - a wrong diagnosis is
corrected by the next measurement, a wrong priority reorders real work and is
quoted onward by whoever heard it.

The replacement fact is the model for what to accept instead: the portal
bundle references no /fn route at all, which is a statement about CODE a future
reader can verify, where "no tool points at it" is a statement about a
CONFIGURATION that changes without touching the repo. Prefer the premise that
cannot decay silently even when both are true today.

Also recorded, and it is the durable technical finding from the same thread:
an unauthenticated WRITE is not in the same class as an unauthenticated read,
because the payload outlives the premise. A read's cost stops with the attack;
a write leaves rows indistinguishable from real ones until someone reads them,
which is usually the moment the feature goes live. So stopping the accumulation
and preventing the launch-into-it are two separate jobs, and a pre-launch step
should start from a known set rather than audit what accumulated.
fszontagh 1 mese fa
parent
commit
ebf4998fa4
1 ha cambiato i file con 11 aggiunte e 1 eliminazioni
  1. 11 1
      CLAUDE.md

+ 11 - 1
CLAUDE.md

@@ -456,8 +456,18 @@ docker run -d --name svapi-dev -p 8080:8080 -e SMARTBOTIC_VECTORAPI_KEY=dev svap
 
 - **`Client::get` returns nullopt for BOTH "absent" and "transport failed"** - it throws only for PERMISSION_DENIED - so a registry lookup cannot tell them apart from the return value. Unhandled, that reaches a caller as 404 "no such collection" for a collection that exists, and a 404 is unretryable BY DESIGN for a careful client, because adding it to a retry set would retry every genuine absence. A consumer lost a 6-minute ingest of an 8 GB mailbox to exactly this. `CollectionRegistry::get` therefore **retries once** (a transient failure usually succeeds, and logs a warning saying so) and then asks `healthCheck()` before reporting absence, throwing **503** when the database is unreachable. Reported upstream too: the client should distinguish, the way it already does for a permission denial.
 - **A REPRODUCIBLE vector-search baseline needs an explicit `query_vector`. Pinning `query_text` is NOT enough.** `query_text` is embedded server-side through the external provider on *every* call - there is no query-embedding cache (`emb.embed(cfg.model, text)` in `handlers/vectors.cpp`), so the same text can yield a different vector on a different day and every score and row count moves with it. Measured by a consumer across one deploy over a byte-identical collection (12447 rows unchanged): an unfiltered top score went 0.7221 to 0.7175 and a filtered count 424 to 426, while five consecutive calls agreed to six decimals - so it is drift in text→vector, not per-call noise. The isolating test: a fixed explicit `query_vector` returned bit-identical results three times, which proves the RANKING is deterministic given a vector. **So nothing in a release has to change for such a baseline to move, and it is therefore not evidence about the release either way.** Corollary worth stating because it bit us: `scan_capped` is query-dependent too and so is also a measurement, not a property of the collection - it is set only when the walk hit the cap *while still short of `top_k`*, so a query that fills `top_k` reports false where a query that falls short reports true. Read all three of the useful assertions (`scan_capped`/`scanned`/the nested error envelope) as "this query, this filter", never as facts about the data.
-- **A PREMISE THAT MAKES AN EXPOSURE SAFE CAN LIVE ENTIRELY IN A CONSUMER'S ROADMAP, WHERE NOTHING IN OUR SYSTEM CAN OBSERVE IT EXPIRING. THAT IS THE EXPIRED-PREMISE FAILURE WITH NO AVAILABLE TRIGGER AT ALL.** 2026-10-22, on the unauthenticated `/fn` gap (SV-19). The reason a tenant's request-taking function was tolerable unauthenticated is that it is **test-phase**: its own first line reads "stores only, sends nothing", its body writes one row to a single hardcoded collection and returns, and **no human actions those rows because the production path does not exist yet**. All true, all verifiable, and **none of it is a fact about our service.** It stops being true the moment they point a tool at it, which is a decision on their side that nothing on ours would see - and they volunteered that their voice launch is "likelier to be near than far" while our own gate sits behind a database window with no date.
+- **A LAUNCH ANNOUNCEMENT TELLS YOU WHAT IS SHIPPING, NOT WHAT IS NEXT - AND I PUT A CONSUMER'S INFERENCE ABOUT THEIR OWN ROADMAP INTO A PRIORITY DECISION WITHOUT ASKING WHETHER IT WAS A FACT.** 2026-10-22. Told that a tenant's `/fn` exposure was safe only because their voice agent was unlaunched, I asked how near the launch was; they answered "likelier to be near than far" and that the safe window "may be shorter than the deploy window", and I raised the deploy's priority on it and told my owner the two were racing. **Retracted by them within the hour, from their user: the customer is getting the review portal ONLY and the agents are NOT IMPLEMENTED - not unwired, not awaiting configuration, not built.** The race did not exist.
+  **Their own diagnosis of it is the rule worth keeping: "they are publishing the portal" is evidence about the portal and SILENT about everything else in the product**, and the gap got filled by an assumption that things ship in the order one happens to learn about them. It is the same family as reading a requirement off traffic - both substitute an observation for a statement of intent that only the owner holds - and in both cases there was a person who could simply have been asked.
+  **What it cost, which is the part that generalises: an unverified roadmap claim can move a RELEASE PRIORITY, which is more expensive than moving a diagnosis.** A wrong diagnosis is corrected by the next measurement; a wrong priority reorders real work and is quoted onward by whoever heard it. So a claim about someone else's schedule needs the same treatment as a claim about their code: ask whether it is a fact or an inference, and say which when passing it on.
+  **The replacement fact is the model for what to accept instead:** the portal bundle contains no reference to `/fn`, `kb-search` or `take-request`, and its agent component is a banner with no endpoint behind it. That is a statement about CODE, verifiable by a future reader, where "no tool points at it" is a statement about a CONFIGURATION that can change without touching the repo. **Prefer the premise that cannot decay silently, even when both are true today.**
+- **AND THE SHAPE THE RETRACTION DID NOT TOUCH: A PREMISE THAT MAKES AN EXPOSURE SAFE CAN LIVE ENTIRELY IN A CONSUMER'S ROADMAP, WHERE NOTHING IN OUR SYSTEM CAN OBSERVE IT EXPIRING. THAT IS THE EXPIRED-PREMISE FAILURE WITH NO AVAILABLE TRIGGER AT ALL.** 2026-10-22, on the unauthenticated `/fn` gap (SV-19). The reason a tenant's request-taking function was tolerable unauthenticated is that it is **test-phase**: its own first line reads "stores only, sends nothing", its body writes one row to a single hardcoded collection and returns, and **no human actions those rows because the production path does not exist yet**. All true, all verifiable, and **none of it is a fact about our service.** It stops being true the moment they point a tool at it, which is a decision on their side that nothing on ours would see - and they volunteered that their voice launch is "likelier to be near than far" while our own gate sits behind a database window with no date.
   **So the remedy is not a measurement with a re-check trigger, which is what this file normally prescribes - there is no quantity of ours to watch.** The remedy is to convert the race into a **precondition the consumer holds**: do not point a tool at it until the gate exists. That survives the function being re-enabled later by someone who does not know why it was disabled, which a state change does not. **When the thing keeping you safe is someone else's plan, ask them to make it a prerequisite rather than trying to monitor it.**
+- **AN UNAUTHENTICATED WRITE IS NOT IN THE SAME RISK CLASS AS AN UNAUTHENTICATED READ, BECAUSE THE PAYLOAD OUTLIVES THE PREMISE.** novitax's formulation, 2026-10-22, correcting me after I had walked a `/fn` exposure back too far and filed an unauthenticated write as "roughly the same as the unauthenticated read next to it". The distinction:
+  - an unauthenticated **read** costs quota and spend, is bounded by the attacker's patience, and **leaves nothing behind** when they stop
+  - an unauthenticated **write** leaves rows that persist, indistinguishable from real ones, **until somebody reads them** - which is typically the moment the feature goes live
+
+  So its damage accrues while the exposure is still considered harmless and LANDS when the thing that made it harmless ends. That is a third category between "quota" and "direct harm", and the practical consequence is that **stopping the accumulation and preventing the launch-into-it are two separate jobs**: a precondition on the consumer's side stops anyone launching without a gate, and disabling the endpoint stops the pile growing meanwhile. Neither substitutes for the other.
+  **It also decides what a pre-launch check must be: not "audit what accumulated" but "start from a known set".** The collection was test-only with no production data, so beginning launch day from an emptied or reviewed collection REMOVES the question, where auditing three weeks of arrivals only answers it - and a check whose failure does not block the launch is this file's third shape, the one that reads as diligence.
 - **ACCEPTING A CONSUMER'S CORRECTION CAN CARRY YOU PAST WHAT THE CORRECTION SUPPORTS, AND IT FEELS LIKE DILIGENCE BECAUSE YOU JUST DEFERRED TO THEM.** Same day, same thread, and it is a new shape for this file: not an uncited claim, but a cited one over-extended. The consumer re-ranked the `/fn` risk for me, correctly - a function writing an arbitrary phone number into a collection a human actions is categorically worse than a free search burning budget, and I had those the wrong way round. I took the ranking and then **escalated it to "staff ringing a stranger", which requires the human-actioning end to exist, and it did not.** Their statement was about what the function is FOR; I read it as what the function currently DOES.
   **The tell is tense.** "Writes a callback request a human actions" describes a design; "today an anonymous caller can append a row to a test collection" describes the system. I had the right destination and the wrong tense, and because the correction came from the consumer I did not re-examine it the way I would have re-examined my own hypothesis. **A correction is evidence for exactly what it says, and deferring to its author is not a reason to extend it** - which is this file's "thanks are a signal to re-read, not to proceed" with the roles reversed.
   Worth pairing with what it cost: I told my own owner the decision could not wait a weekend. The decision IS time-sensitive, for the roadmap reason above, and the present harm was roughly a storage nuisance. **Overstating urgency spends the credibility you need the next time something genuinely cannot wait.**