Ver código fonte

docs: the database now releases weekly on Tuesdays

Their owner's policy from 2026-10-15, after sixteen releases in nine
days. A change still merges and is tested promptly and lands under
Unreleased in their changelog; it reaches apt on the next Tuesday. First
regular release 2026-10-20.

The planning consequence is the point: anything we need from the database
now carries up to a week of lead time, so a release of ours that depends
on one has to be planned against a Tuesday rather than against a
conversation. Out of cycle only for a security fix, data loss or
corruption, a regression of the latest release, or their owner's
approval.

To use something earlier, build from their main and test in a throwaway
Debian 13 container with no --sync - nothing is published, so prod cannot
pick it up by accident, which is what makes it safe rather than merely
possible.

It cuts both ways: their container now restarts on release day only, one
warning a week instead of one per change, which is easier to plan a
window around.
fszontagh 1 mês atrás
pai
commit
7b66901078
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      CLAUDE.md

+ 3 - 0
CLAUDE.md

@@ -307,6 +307,9 @@ docker run -d --name svapi-dev -p 8080:8080 -e SMARTBOTIC_VECTORAPI_KEY=dev svap
 - **A VECTOR COLLECTION'S INSERT GUARD USED TO COMMIT THE EXACT BUG IT EXISTS TO PREVENT.** `vector_missing` accepted a body carrying either `_vector` OR `vector`, while the documents route stores the body verbatim and a search reads `_vector`. So a row written with `vector` got a 201 and was then findable by NO search - the unsearchable junk row the guard was written for, admitted by the guard. Measured with two rows inserted under the two spellings from the same vector: only the underscored one came back. Now refused, with a message that also says to REWRITE any row already stored that way, because a caller who hit this has unfindable rows behind them and silently fixing only their next write would leave those while looking solved. Found by a consumer asking which field a RESTORE should write - the question exposed it, not a test.
 - **AN ERROR'S WORST READING IS THE ONE IT WILL GET UNDER PRESSURE.** Feeding an export's `vector_b64` back into the documents route used to answer "a document must carry `_vector`" - accurate, and read by someone restoring a 294 MB file at 3am as **"my backup has no vectors"**, which is indistinguishable from real data loss and will be believed. A consumer named that misreading after doing the restore. The message now names the export's own field, states that the backup is FINE, and says to expand the base64 - and a test asserts the ORDINARY missing-vector case does NOT mention a backup, so the reassurance cannot be given where it would be a lie. The general rule: when an error can be read as "your data is gone", say explicitly that it is not.
 - **The export writes base64 and no insert route reads it.** `vector_format=base64` emits `vector_b64`; `POST .../documents` wants `_vector` as a number array and `POST .../vectors` wants `vector` as a number array. So the one path a backup exists for does not round-trip without expanding the base64 first, and the 422 a caller gets names what is MISSING rather than the good vector sitting in the field the exporter wrote. Documented in `api/llms.txt`; whether to accept a base64 write form is open.
+- **THE DATABASE NOW RELEASES ONCE A WEEK, ON TUESDAY (owner's policy, from 2026-10-15; first regular release 2026-10-20).** 2.12 through 2.19 were sixteen releases in nine days, one per request, and that stops. **So anything we need from the database now carries up to a week of lead time, and a release of ours that depends on one has to be planned against a Tuesday rather than against a conversation.** A change still merges and is tested promptly - it lands under `## Unreleased` in their `CHANGELOG.md` - it simply does not reach apt until the next Tuesday. Out of cycle only for a security fix, data loss or corruption, a regression of the latest release, or when their owner approves one. There is deliberately no staging branch or testing suite.
+  **To use something before its Tuesday, build it ourselves from their `main` and test it in a throwaway Debian 13 container** (`./packaging/build.sh` with NO `--sync`, then install the `.deb`s into the container) - the same shape as the 2.17.2 staging run. Nothing is published, so prod cannot pick it up by accident, which is the property that makes this safe rather than merely possible.
+  Note this cuts BOTH ways and the second direction is the useful one: their local container now moves on release day only, with ONE restart warning per week instead of one per change. A cadence that batches the notices is easier to plan a window around than a stream of individual ones.
 - **`_expires_at` IS READABLE FROM CLIENT 2.19.0, AND IT IS A *CLIENT* FEATURE - IT WORKS AGAINST OUR 2.17.2 SERVER.** The server had always sent `Document.expires_at` (absolute ms since epoch); the CLIENT was dropping it. So the fix to the TTL gap below needs only a `DB_CLIENT_VERSION` move, not a database upgrade, and the ABI move is additions-only (one constant, soname 2, symbols file unchanged).
   - `get`, `find` and `exportCollection` attach `_expires_at` when a document HAS an expiry, and omit it otherwise. **Absent means "no expiry", never zero.**
   - **It can legitimately be in the PAST**, which is the whole point: the sweep runs every second, a `restrict` relation can hold a row past its TTL, and a copy taken while the server is stopped keeps expired rows until a server opens it. That is exactly the "121 hours past its deadline" row a consumer met.