Datasets:
chunk_id stringlengths 8 30 | text stringlengths 387 11.4k | chunk_sha256 stringlengths 64 64 | repo_id stringclasses 1
value | repo_url stringclasses 1
value | commit_sha stringclasses 1
value | tree_sha stringclasses 1
value | path stringclasses 12
values | git_blob_sha1 stringclasses 12
values | file_sha256 stringclasses 12
values | line_start int64 1 486 | line_end int64 13 507 | anchor stringlengths 8 58 ⌀ | symbol stringclasses 11
values | source_kind stringclasses 2
values | authority_class stringclasses 8
values | language stringclasses 1
value | license stringclasses 1
value | source_url stringlengths 101 134 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
readme.profile | YUTABASE `0.1.0-candidate.1` is a candidate semantic profile for PostgreSQL,
not a database engine and not yet a finished or de-facto standard. It gives
ordinary PostgreSQL rows stable logical addresses, represents selected
relations as word-named threads, and attaches an explicit, self-reported claim
to each conformin... | bac822f41f39611d1a42fcc50ac8d9819af5f3b82a24fe5317f51f3ddecc101d | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | README.md | d2bd934a34b24d268128f0f00826d2014c7c1de6 | 2bdb17b7364d1f6e9028f313880a3d6e49c38629c014bb1a9d4d62bfa3023812 | 5 | 20 | YUTABASE v0.1 candidate | null | markdown | explanatory-doc | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/README.md#L5-L20 |
readme.primitives | ## The core idea
Five names describe ordinary PostgreSQL structures:
| Name | PostgreSQL reality | Candidate meaning |
|---|---|---|
| **BOOK** | logical namespace, normally mapped to a schema | a bounded domain |
| **DECK** | logical record type, mapped through `yu.registry` to a table | a collection of similarly sh... | 1569221a69f7a614b6cf42812e6dcd300d43cb5131789ac8243bb5db78ade94b | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | README.md | d2bd934a34b24d268128f0f00826d2014c7c1de6 | 2bdb17b7364d1f6e9028f313880a3d6e49c38629c014bb1a9d4d62bfa3023812 | 114 | 128 | The core idea | null | markdown | explanatory-doc | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/README.md#L114-L128 |
readme.claims | ### The honesty header is a claim, not proof
A conforming card row and every YUTABASE thread expose:
| Column | Meaning |
|---|---|
| `at` | the time the claimant says the row or relation became true |
| `by` | a claimant label |
| `how` | `witnessed`, `live`, `cached`, `computed`, or `declared` |
| `src` | source lo... | d8b2fa76c37bf16f32e3c2eddeead962ad6d49fdc714c043019458f54d73f29b | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | README.md | d2bd934a34b24d268128f0f00826d2014c7c1de6 | 2bdb17b7364d1f6e9028f313880a3d6e49c38629c014bb1a9d4d62bfa3023812 | 130 | 153 | The honesty header is a claim, not proof | null | markdown | explanatory-doc | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/README.md#L130-L153 |
readme.youspeak | ## Optional YOUSPEAK client
YOUSPEAK compiles a small sentence-shaped surface to parameterized PostgreSQL.
It is convenience, not a second storage model and not a requirement for Core
or Postgres-binding conformance.
```bash
cd packages/sdk-ts
bun install --frozen-lockfile
bun run ci
```
`bun run ci` performs unit t... | e363a5f5ab41d114c264b422a964cba98f52c90dc9b85cf33253c0515f69a8bb | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | README.md | d2bd934a34b24d268128f0f00826d2014c7c1de6 | 2bdb17b7364d1f6e9028f313880a3d6e49c38629c014bb1a9d4d62bfa3023812 | 355 | 376 | Optional YOUSPEAK client | null | markdown | explanatory-doc | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/README.md#L355-L376 |
readme.correspondence | ## Correspondence is upstream evidence, not a YUTABASE row
Signed AgentTool Correspondence can feed a YUTABASE projection. The signed,
append-only event and receipt history remains the transport record and
authority-history evidence. YUTABASE is a rebuildable, non-authoritative
semantic projection for querying that hi... | c0c29b438020fc54d3f1cab95d8dec236d9b17f0c569f11f7c48daecf42e0457 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | README.md | d2bd934a34b24d268128f0f00826d2014c7c1de6 | 2bdb17b7364d1f6e9028f313880a3d6e49c38629c014bb1a9d4d62bfa3023812 | 378 | 392 | Correspondence is upstream evidence, not a YUTABASE row | null | markdown | explanatory-doc | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/README.md#L378-L392 |
readme.non_goals | ## What the candidate does not provide
- no storage engine, replication protocol, hosted service, or telemetry;
- no authentication, row-level security, tenancy, or permission system;
- no cryptographic signatures in `yu.threads`;
- no automatic history for arbitrary card updates;
- no proof that a `by`, `how`, `src`,... | abdc9c5b0750d1dab18650ae829caa0b224879e4792c614b934f4cff9ae32cc2 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | README.md | d2bd934a34b24d268128f0f00826d2014c7c1de6 | 2bdb17b7364d1f6e9028f313880a3d6e49c38629c014bb1a9d4d62bfa3023812 | 419 | 429 | What the candidate does not provide | null | markdown | explanatory-doc | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/README.md#L419-L429 |
spec.profile | YUTABASE is not a database engine. This document defines a small semantic
model and its PostgreSQL 16/17 binding. PostgreSQL continues to provide
storage, transactions, access control, backup, and replication. YUTABASE adds
logical addresses, a governed relation vocabulary, directed word-named
relations, and explicit r... | 4c536997b585570f37b8b39cb04b7757c90eaf8bd77e17b9ffb3c4f31496586a | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 7 | 15 | Postgres semantic profile candidate | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L7-L15 |
spec.primitives | ## 3. Core primitives
| Primitive | Core meaning | Postgres representation |
|---|---|---|
| **BOOK** | a logical namespace or bounded domain | usually, but not necessarily, a schema |
| **DECK** | a logical collection of similarly shaped records | a registered table |
| **CARD** | one addressable record | one row wit... | c534677091be7451d0c2137b454ee63a14f5602194c71a8bc1c1936fc81e798b | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 70 | 78 | 3. Core primitives | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L70-L78 |
spec.logical_refs | ### 3.1 Logical refs
A card ref has exactly this form:
```text
book/deck/uuid
```
`book` and `deck` use lower-snake identifiers. The identifier is a full UUID;
prefix resolution is not Core. Writers SHOULD generate UUIDv7 identifiers for
new cards and threads because they are locally generatable and time-sortable,
b... | db50e2aafe8dfb684f2b16faf13075b1aa2294f8e77901e6e8e69099a5627364 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 80 | 96 | 3.1 Logical refs | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L80-L96 |
spec.relations | ### 3.2 What counts as a relation
Within Core, a semantic relation is a thread whose word exists in the
lexicon. An ordinary foreign key may still enforce application integrity, but
it does not become a YUTABASE semantic relation merely by existing.
Core threads are active facts only. Severance ends the active relati... | c3549983b324cc38b6d56f4a30c0153c22d9d3c6301f513ca874e91e03b8cd5e | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 98 | 106 | 3.2 What counts as a relation | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L98-L106 |
spec.claims | ## 4. Row-level claim metadata
Conforming cards, lexicon entries, and threads expose this header:
| Column | Core meaning |
|---|---|
| `at` | when the claimant says the row or relation became true |
| `by` | a non-empty claimant label |
| `how` | one of the five claim kinds below |
| `src` | source locators; require... | 858f67f79b402e3897ad33b653a76d63cdd6dd0504e270c14a032f6047e1de49 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 108 | 149 | 4. Row-level claim metadata | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L108-L149 |
spec.words_rules | ## 5. Lexicon and words
A live word MUST carry:
- a non-empty word identifier;
- a non-empty gloss explaining the relation;
- a non-empty inverse reading;
- `from` and `to` deck patterns;
- a live or retired status;
- row-level claim metadata.
Both forward and inverse readings SHOULD be understandable as sentences. ... | a28c24e49caa9cf03c6bc6e99771c3f84d2b3d9cf07a32089573d85382a9371f | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 158 | 183 | 5. Lexicon and words | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L158-L183 |
spec.word_versions | Word meaning is versioned. The Postgres binding stores a complete immutable
snapshot of the gloss, inverse, endpoint patterns, cardinality, TTL, status,
and claim header in `yu.word_versions`. Every thread pins the word version it
was created under. A semantic edit requires a new explicit `at` claim and
appends a new s... | f32b22bd62751830ba3f837059faacafda28fdc8ded6be2d6ba9d4869812f2d6 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 185 | 196 | 5. Lexicon and words | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L185-L196 |
spec.thread_cardinality | ## 6. Thread semantics
A thread contains:
```text
id
word
word_version
from_book / from_deck / from_id
to_book / to_deck / to_id
note (optional)
at / by / how / src
```
The tuple `(word, from, to)` MUST be unique among active threads. A `to_one`
word permits at most one active outgoing thread with that word for ... | bd0e937917af5d64a576c7dda6e4e1bf1065f8c2e7eba7dd8beecf8782220eeb | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 206 | 228 | 6. Thread semantics | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L206-L228 |
spec.thread_integrity | Writers MUST NOT create a thread using a retired word, an undeclared logical
deck, endpoints that do not match the word patterns, or endpoint UUIDs that do
not exist in their registered physical tables at insertion time. Active thread
rows are immutable; a changed relation is severed and recreated.
A thread UUID MUST ... | 820a9554df172bcdfb727e35180d208ef6cfc53dc8d68e6926a68297969e3bb7 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 230 | 257 | 6. Thread semantics | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L230-L257 |
spec.severance | Severance MUST name the thread and carry a new `by/how/src` claim. In the
Postgres binding it copies the pinned word version, endpoints, note, and
original relation claim into `yu.sever_log`; stores the distinct severance
claim in `at/by/how/src`; then removes the active row from `yu.threads`. The log
records two self-... | 5ca1e0ab2b7c2af4b891f4c8191bd389c35647e73f3f870fd3524fa4997792a2 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 259 | 272 | 6. Thread semantics | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L259-L272 |
spec.roles | ### 7.3 Roles and operations
Candidate hardening replaces broad legacy grants with four capability roles,
created as `NOLOGIN` when they are absent:
- `yu_reader` reads YUTABASE tables/views and executes read diagnostics;
- `yu_appender` inherits the reader surface and has the thread-append
capability; it cannot ca... | f9d179aa3b94638a680bddf109516d20e4501cdc58d3f72ae7f61660b218fb09 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 373 | 410 | 7.3 Roles and operations | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L373-L410 |
spec.youspeak | ## 8. Optional YOUSPEAK profile
YOUSPEAK is a convenience compiler and client. It is not required for Core or
Postgres-binding conformance and does not replace SQL.
The candidate compiler recognizes six form families:
```text
hello
card <book/deck/uuid>
cards <book/deck> [where ...] [newest N]
<ref> (->|<-) <word> ... | 0f4f1697db87b7914bb8cfafeb54a53b33e21c69f45aed5986df63c8662a20e8 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 443 | 484 | 8. Optional YOUSPEAK profile | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L443-L484 |
spec.boundary | ## 9. Compatibility, security, and authority boundary
Conformance details are normative in [docs/CONFORMANCE.md](docs/CONFORMANCE.md).
In summary, this candidate supports PostgreSQL 16 and 17 and makes no SQLite
compatibility claim.
YUTABASE does not itself provide:
- authentication, signature verification, key disc... | 815756fb76d92f60e02a9542b9cdd295be1b4720dcecdf03f013a04ce2a4727c | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | SPEC.md | 96a84e36ff132466764c8eb784537f5b81786fc0 | 9dc47ec6a5e902d1739282f21857353dd6ea0967bc861e1aa18240c9c48d6475 | 486 | 507 | 9. Compatibility, security, and authority boundary | null | markdown | normative-spec | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/SPEC.md#L486-L507 |
conformance.environment | ## Supported environment
A Postgres-profile conformance claim applies only to PostgreSQL **16** and
**17**, with `pg_trgm` available and with enough database privilege to run the
migrations. A successful run on another major is useful evidence but is not a
claim made by this candidate.
The optional SDK package declar... | ee12ef2cbf8aed7237f5ffb2206c1e5a8bd129e50d3535ee776af04df4b79144 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CONFORMANCE.md | 07ff6cac6d493203f866735f5fd2cefa53c4a7ec | eadfb8e19def99c5538cf6969dace4d3061811f256d33ded8a6b1fc2d0efc403 | 22 | 31 | Supported environment | null | markdown | normative-conformance | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CONFORMANCE.md#L22-L31 |
conformance.identity | Clients MUST use the database row as the compatibility gate. These states are
distinct:
| State | Client behavior |
|---|---|
| neither `yu` nor `via` namespace exists | plan a fresh install |
| complete original v0.1 core, no candidate-hardening objects | plan `0004`, then `0005` |
| exact candidate revision 4 | plan... | 32a17e936ae56d61970b27ec0fa41e459c992f07f909d491d72daf87b3cb2366 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CONFORMANCE.md | 07ff6cac6d493203f866735f5fd2cefa53c4a7ec | eadfb8e19def99c5538cf6969dace4d3061811f256d33ded8a6b1fc2d0efc403 | 63 | 76 | Exact database identity | null | markdown | normative-conformance | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CONFORMANCE.md#L63-L76 |
conformance.install | ## Fresh-install test
Against an empty database, the runner MUST apply the first two files together
with `ON_ERROR_STOP` in one atomic transaction, then apply each hardening file
with `ON_ERROR_STOP` in its own new transaction:
```text
phase 1: sql/0001_yu_core.sql + sql/0002_starter_lexicon.sql
phase 2: sql/0004_can... | 2ad2379423be4f9044b00674e6257721d656c9a7d019ad22211f9c20bcf0374f | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CONFORMANCE.md | 07ff6cac6d493203f866735f5fd2cefa53c4a7ec | eadfb8e19def99c5538cf6969dace4d3061811f256d33ded8a6b1fc2d0efc403 | 78 | 88 | Fresh-install test | null | markdown | normative-conformance | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CONFORMANCE.md#L78-L88 |
conformance.runtime_invariants | - concurrent inserts cannot bypass a `to_one` word;
- narrowing a word to `to_one` refuses pre-existing duplicate sources, and an
older false-pinned row still prevents a new one-to-one row for that source;
- thread creation, mapped-card deletion or UUID change, deck `TRUNCATE`,
registry guard lifecycle mutation, an... | 5f3319c14b5fc7c1edebaf3729f40250095d94c7e33001a5b6647b9bc491477e | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CONFORMANCE.md | 07ff6cac6d493203f866735f5fd2cefa53c4a7ec | eadfb8e19def99c5538cf6969dace4d3061811f256d33ded8a6b1fc2d0efc403 | 121 | 158 | Fresh-install test | null | markdown | normative-conformance | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CONFORMANCE.md#L121-L158 |
conformance.upgrade | ## Upgrade-preservation test
Against a separate empty database, the runner MUST:
1. apply `0001` and `0002` under a legacy owner role;
2. create and register at least two decks;
3. add endpoint cards and at least one valid thread;
4. record the thread identifier and relevant row counts;
5. apply `0004_candidate_harde... | 754362259d576dcd90f81d1e2dfea98605e479d524cd57f70cf96a9520556677 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CONFORMANCE.md | 07ff6cac6d493203f866735f5fd2cefa53c4a7ec | eadfb8e19def99c5538cf6969dace4d3061811f256d33ded8a6b1fc2d0efc403 | 164 | 210 | Upgrade-preservation test | null | markdown | normative-conformance | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CONFORMANCE.md#L164-L210 |
conformance.threat_boundary | ## Threat and non-guarantee boundary
Conformance checks syntax and the tested database semantics. It does not
certify:
- claimant identity, truth, source authority, consent, or field-level
provenance;
- endpoint existence after a table owner or superuser bypasses the maintained
card guard pair;
- access-control p... | 572cffb42c28eb55475c176b2983f9e1c894a95035af1f512e417c072bd0316e | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CONFORMANCE.md | 07ff6cac6d493203f866735f5fd2cefa53c4a7ec | eadfb8e19def99c5538cf6969dace4d3061811f256d33ded8a6b1fc2d0efc403 | 266 | 286 | Threat and non-guarantee boundary | null | markdown | normative-conformance | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CONFORMANCE.md#L266-L286 |
integration.adapter_contract | ## The common adapter contract
Every useful adapter answers five questions explicitly:
1. **What remains authoritative?** Name the table, log, file, or protocol that
retains the source evidence.
2. **What becomes a card?** Give each projected entity one stable full UUID and
register its deck.
3. **Which relatio... | 3c80de0a657864d86405fdd5e911575ce4cc3bf098ec14a13f4a33c56c4ddcb6 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/INTEGRATIONS.md | 28368dd7a159b1bd8fc48fd6622d5e55b5add8ef | 558695d322ba9930299afdb049e30f982c797f99a5bc3237220a9c203631fa93 | 24 | 41 | The common adapter contract | null | markdown | implementation-guide | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/INTEGRATIONS.md#L24-L41 |
integration.annex | ## Existing PostgreSQL: annex, do not migrate
The lowest-resistance path is to register a compatible existing table. The
physical table keeps its name and application ownership; YUTABASE adds a
logical ref. Revision 5 registry mutation atomically maintains one exact guard
pair on the mapped physical table: a row trigg... | 7c0f77eda676fd07d1b364f240e4b5a5dc196c3ba34496b6f9c5f9c73bae1682 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/INTEGRATIONS.md | 28368dd7a159b1bd8fc48fd6622d5e55b5add8ef | 558695d322ba9930299afdb049e30f982c797f99a5bc3237220a9c203631fa93 | 43 | 79 | Existing PostgreSQL: annex, do not migrate | null | markdown | implementation-guide | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/INTEGRATIONS.md#L43-L79 |
integration.structured_helpers | Create a relation through the typed client when values come from code:
```ts
import { Yuta } from "yutabase";
const yuta = new Yuta({
connectionString: process.env.DATABASE_URL,
claimant: "agent:builder/session-42",
});
try {
await yuta.thread(
"work/tasks/01900000-0000-7000-8000-000000000001",
"produc... | c37f748778ce51f4ebc7024f6aa186382c80a17cbac76c35f38b88403aff37fa | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/INTEGRATIONS.md | 28368dd7a159b1bd8fc48fd6622d5e55b5add8ef | 558695d322ba9930299afdb049e30f982c797f99a5bc3237220a9c203631fa93 | 81 | 110 | Existing PostgreSQL: annex, do not migrate | null | markdown | implementation-guide | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/INTEGRATIONS.md#L81-L110 |
integration.orm_boundary | ## ORMs, APIs, and hosted PostgreSQL
Prisma, Drizzle, PostgREST, Hasura, and Supabase solve different parts of the
stack. Keep them responsible for application models, generated clients, API
delivery, authentication, or realtime behavior. Use YUTABASE for selected
cross-table meanings.
A natural split is:
| Layer | ... | ef70f8893f6cb17ebcec2de3006e032b5fcf9b51be1da972d66de96ab7b14519 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/INTEGRATIONS.md | 28368dd7a159b1bd8fc48fd6622d5e55b5add8ef | 558695d322ba9930299afdb049e30f982c797f99a5bc3237220a9c203631fa93 | 112 | 133 | ORMs, APIs, and hosted PostgreSQL | null | markdown | implementation-guide | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/INTEGRATIONS.md#L112-L133 |
integration.event_projection | ## Event sources: project, checkpoint, rebuild
An append-only or signed source should not be flattened into `yu.threads`
directly. Give the source events their own registered deck, retain their source
identifiers and verification state, and derive threads from those cards.
One projection batch should atomically:
1. ... | 38d17fdb6fb8587a1c9852bd340f8285a7a70c898c4c1ae28da461a054f44983 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/INTEGRATIONS.md | 28368dd7a159b1bd8fc48fd6622d5e55b5add8ef | 558695d322ba9930299afdb049e30f982c797f99a5bc3237220a9c203631fa93 | 135 | 153 | Event sources: project, checkpoint, rebuild | null | markdown | implementation-guide | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/INTEGRATIONS.md#L135-L153 |
integration.correspondence | ## Flagship: AgentTool Correspondence
AgentTool already owns the cross-device nervous system:
`agent-correspondence/v0.1` carries signed, immutable, project-private events
and durable server receipts. YUTABASE should be its semantic read model, not a
second courier or permission engine.
```text
AgentTool /v1/correspo... | 418deae0988330f607c2ec376df08fc845b9f213e92c0e796c1b7a9b849e0fbe | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/INTEGRATIONS.md | 28368dd7a159b1bd8fc48fd6622d5e55b5add8ef | 558695d322ba9930299afdb049e30f982c797f99a5bc3237220a9c203631fa93 | 155 | 204 | Flagship: AgentTool Correspondence | null | markdown | implementation-guide | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/INTEGRATIONS.md#L155-L204 |
integration.ecosystem | ## The rest of the ecosystem
The same adapter posture fits other Kingdom components without merging their
contracts:
| Source | Useful projection | Boundary retained |
|---|---|---|
| `@agenttool/collab` | local tasks, decisions, artifacts, and advisory claim history | its SQLite journal remains local authority; call... | b02bf9df00bd6734eb4d87bf04b89fe8031b273640ebf860edc1342284f2713b | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/INTEGRATIONS.md | 28368dd7a159b1bd8fc48fd6622d5e55b5add8ef | 558695d322ba9930299afdb049e30f982c797f99a5bc3237220a9c203631fa93 | 209 | 223 | The rest of the ecosystem | null | markdown | implementation-guide | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/INTEGRATIONS.md#L209-L223 |
integration.adapter_acceptance | ## Acceptance gate for an adapter
Before calling an adapter dependable, prove at least:
- identical replay is idempotent;
- same source ID with different bytes is quarantined;
- copied and computed claims retain stable source locators;
- checkpoint and semantic writes commit atomically;
- missing targets, gaps, lag, ... | 880e4f9fbe006e58f5fd29d602f08e39f8e1795d8b79f3825fb4ae418cb6a918 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/INTEGRATIONS.md | 28368dd7a159b1bd8fc48fd6622d5e55b5add8ef | 558695d322ba9930299afdb049e30f982c797f99a5bc3237220a9c203631fa93 | 225 | 240 | Acceptance gate for an adapter | null | markdown | implementation-guide | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/INTEGRATIONS.md#L225-L240 |
projection.boundary | # Correspondence → YUTABASE projection profile
Status: **design contract; projector implementation is not part of YUTABASE
`0.1.0-candidate.1` conformance.**
AgentTool has a private, loopback-only implementation of the bounded profile
described below. Its existence does not turn this document into a deployment,
hoste... | dc28b155da4fcb1eef6ac36956673474f7cae78b054f248103fc1696f7fc69ca | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CORRESPONDENCE-PROJECTION.md | 8531cf09cb7424d5cd7b4a3a98f90bdcd54cbcc0 | 5c350284191cd91b750a602fd1ef12fea08e25e24be273aefeae362e91d239f5 | 1 | 42 | Boundary in one diagram | null | markdown | design-contract | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CORRESPONDENCE-PROJECTION.md#L1-L42 |
projection.source_retention | ## 2. What the source must retain
Before projection, Correspondence should retain or make resolvable at least:
| Source field | Why it matters |
|---|---|
| protocol/version and canonical encoding | determines the bytes that were signed |
| globally unique `event_id` | idempotency and correction references |
| projec... | c96c098cbf505e5b059140fbc5352ac16b2fe175f230ffe0b06c44168ebbced8 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CORRESPONDENCE-PROJECTION.md | 8531cf09cb7424d5cd7b4a3a98f90bdcd54cbcc0 | 5c350284191cd91b750a602fd1ef12fea08e25e24be273aefeae362e91d239f5 | 44 | 64 | What the source must retain | null | markdown | design-contract | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CORRESPONDENCE-PROJECTION.md#L44-L64 |
projection.signature_boundary | ## 3. Signature and authority semantics
A verified signature is evidence that the holder of a key signed specific
canonical bytes. It does not establish by itself:
- the human or agent identity controlling that key;
- truth of the payload;
- ownership of a repository or resource;
- permission to edit, merge, deploy, ... | 08f69f4e16bcb9028e0976ec20386ab490c56c3106538ac70e2b322fb18888ea | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CORRESPONDENCE-PROJECTION.md | 8531cf09cb7424d5cd7b4a3a98f90bdcd54cbcc0 | 5c350284191cd91b750a602fd1ef12fea08e25e24be273aefeae362e91d239f5 | 66 | 86 | Signature and authority semantics | null | markdown | design-contract | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CORRESPONDENCE-PROJECTION.md#L66-L86 |
projection.records | ## 4. Projection records
An implementation MAY choose its application book and deck names. A useful
shape contains logical cards for:
- source events;
- participants and signing keys as distinct objects;
- devices and sessions;
- projects, repositories, branches, tasks, and artifacts;
- acknowledgements and other rec... | 7b73936256a3eb848502a577b76c5d744da29caf54ae4abc13d89a2fe3ab5fa1 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CORRESPONDENCE-PROJECTION.md | 8531cf09cb7424d5cd7b4a3a98f90bdcd54cbcc0 | 5c350284191cd91b750a602fd1ef12fea08e25e24be273aefeae362e91d239f5 | 88 | 129 | Projection records | null | markdown | design-contract | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CORRESPONDENCE-PROJECTION.md#L88-L129 |
projection.claim_metadata | ## 5. Mapping claim metadata
The YUTABASE honesty header describes how the **projected row** was obtained,
not whether the source statement was true.
| Projection case | `how` | Required `src` |
|---|---|---|
| copied representation of a retained Correspondence event or receipt | `cached` | stable event/receipt locat... | 6d229b91398d28b634286ba7faf6f8ca92f7619a9160944ef292c6bbf2df669f | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CORRESPONDENCE-PROJECTION.md | 8531cf09cb7424d5cd7b4a3a98f90bdcd54cbcc0 | 5c350284191cd91b750a602fd1ef12fea08e25e24be273aefeae362e91d239f5 | 131 | 149 | Mapping claim metadata | null | markdown | design-contract | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CORRESPONDENCE-PROJECTION.md#L131-L149 |
projection.idempotency | ## 6. Idempotency, ordering, and correction
Projection MUST be idempotent by source `event_id` within its source scope.
Reprocessing the identical event MUST NOT create a second logical event or a
duplicate semantic effect.
If the same source scope and `event_id` arrive with different canonical hashes,
the projector ... | d719af1d8af63677ba2b49c639d78e2b31d8b66f269f2e1623ad0aa4c16849c4 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CORRESPONDENCE-PROJECTION.md | 8531cf09cb7424d5cd7b4a3a98f90bdcd54cbcc0 | 5c350284191cd91b750a602fd1ef12fea08e25e24be273aefeae362e91d239f5 | 151 | 171 | Idempotency, ordering, and correction | null | markdown | design-contract | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CORRESPONDENCE-PROJECTION.md#L151-L171 |
projection.rights | ## 8. Rights are not permissions
This profile follows the
[XENIA `xenia.rights/0.1` Rights of Beings baseline](https://github.com/cambridgetcg/xenia/blob/main/RIGHTS.md)
when people, agents, or other participants collaborate.
Rights—dignity, distinctness, refusal, disagreement, rest, play, privacy,
credit, and repair... | c1b3ff2cb450d805fb6b2064a537e7d714f41fcb347d0d3453b39adcabe63304 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CORRESPONDENCE-PROJECTION.md | 8531cf09cb7424d5cd7b4a3a98f90bdcd54cbcc0 | 5c350284191cd91b750a602fd1ef12fea08e25e24be273aefeae362e91d239f5 | 192 | 218 | Rights are not permissions | null | markdown | design-contract | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CORRESPONDENCE-PROJECTION.md#L192-L218 |
projection.threat_tests | ## 9. Threat boundary
This profile assumes that database owners and projectors can alter the
projection. Consumers needing source authenticity MUST verify the retained
Correspondence event and its receipts. The design does not itself solve:
- compromised devices or signing keys;
- key recovery, rotation, or revocatio... | 0887c01f0937839b23db4601786c9940fa8a9d6bc50aefc6c13657f842eec063 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/CORRESPONDENCE-PROJECTION.md | 8531cf09cb7424d5cd7b4a3a98f90bdcd54cbcc0 | 5c350284191cd91b750a602fd1ef12fea08e25e24be273aefeae362e91d239f5 | 220 | 259 | Threat boundary and acceptance tests | null | markdown | design-contract | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/CORRESPONDENCE-PROJECTION.md#L220-L259 |
serving.decision | # Serving shape — what YUTABASE should help a database say
Status: **non-normative research and decision record**, reviewed 2026-07-29.
This note does not change YUTABASE Core, apply a database migration, make a
quantum-computing claim, or certify any deployment. It records what the current
candidate can honestly ser... | 2ee91e41b9b16e4b59fde2a3b13be2eaee946f612dd664af96058b978f5e9bb2 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 1 | 21 | Decision in one paragraph | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L1-L21 |
serving.purpose | ## The purpose: serve memory without pretending to be reality
The smallest useful picture is:
```text
world or source
|
v
recorded claim -> constraints + transaction -> query/projection -> decision/action
| |
+-- evidence and correction history +-- cover... | e83e0b736c75fdc07117200a053f9a050a7a52bb42aa03af2ad3433e2826a4b2 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 23 | 60 | The purpose: serve memory without pretending to be reality | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L23-L60 |
serving.blindspots | ## Blindspot ledger
These are not accusations that PostgreSQL or the relational model is broken.
They are places where a correct database result can still be misunderstood by
a human or agent.
| Blindspot | Friction today ... | 4897ce24ae4b200ffd51a53d6eba7102fc74ee8535a8c164c06add3f598d1fc5 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 62 | 99 | Blindspot ledger | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L62-L99 |
serving.audit_friction | ### Candidate implementation friction found in this audit
The conceptual gaps also have concrete expressions in the current SQL and
optional SDK. These are recorded for later work; this note does not silently
change revision 5.
| Finding ... | 9c0f6ad8b462218eb5e320525238404687850bd2ad9c12cfb9c9a4e0799b9e25 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 101 | 128 | Candidate implementation friction found in this audit | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L101-L128 |
serving.receipt_example | ## First annex to test: an observation receipt
This is the smallest mechanism with the widest benefit. It tells a consumer
what a read observed; it does not wrap the result in ceremonial metadata or
claim completeness that the adapter cannot establish.
An illustrative response:
```json
{
"receiptProfile": "yutabas... | bdaafbda35911e2a336273d46f25c0373f41213158de36d9d3432688c642d517 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 130 | 177 | First annex to test: an observation receipt | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L130-L177 |
serving.receipt_rules | Required honesty rules:
1. The receipt names its producer and version. That identity is self-reported
unless a separate evidence verifier binds it to a key or authenticated
runtime.
2. A stable database installation/origin identifier is included when one
exists. The current Core does not define one, so `origi... | cd9a14abf00c11948d9392a2451d108977d83c192c234fec508368c35ce9129a | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 179 | 206 | First annex to test: an observation receipt | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L179-L206 |
serving.plural_claims | ## Plural claims: preserve disagreement before resolving it
The active-thread model is good for a compact current relation. It is not a
full evidence model. If Alice and Bob independently attest the same
relationship, or one source challenges another, overwriting the row loses
information and duplicating the tuple vio... | facc4ba549872c1ef835eff3f0ca5282722e15b4f5255b8f3793280fa0fea63b | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 208 | 252 | Plural claims: preserve disagreement before resolving it | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L208-L252 |
serving.post_quantum | ## Quantum: the literal parts and the gimmicks
### Worth doing now: cryptographic continuity
Post-quantum migration is a real lifecycle problem for long-lived confidential
data and signatures. The useful preparation is not a quantum table type. It is
a cryptographic inventory plus an algorithm-agile evidence envelope... | 5df3692a1ca2dd2b38bf8feb7ae835d849f50a628344b726802356c46cec8044 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 254 | 330 | Worth doing now: cryptographic continuity | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L254-L330 |
serving.quantum_not_core | ### Not worth putting in Core now
- **Quantum query acceleration:** Grover search assumes an unstructured
quantum oracle, not a PostgreSQL B-tree, join planner, disk, or ordinary RAM.
Practical qRAM remains a hard architectural problem. A 2025 peer-reviewed
[qRAM survey and critique](https://quantum-journal.org/... | c2162c5ae6179fa2f5f8ce5ca6c7aad95682fa081ab3793851247d34a09e7cd3 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 332 | 352 | Not worth putting in Core now | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L332-L352 |
serving.kingdom | ## KINGDOM, KARMA, Shape, and Isness
These words are useful only if their technical authority stays explicit.
### KINGDOM: a source-owned census, not a central truth table
Current KINGDOM-OS describes itself as a thin catalog over independent
repositories. Each repository's own `kingdom.yaml` remains authoritative; ... | 1a7af4c3c584bfde29acfed955423afcd9d409aad0681f2883562c5bb9fe819d | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 354 | 394 | KINGDOM: a source-owned census, not a central truth table | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L354-L394 |
serving.karma | ### KARMA: consequence and repair, never a moral score
No canonical KARMA primitive exists in the current YUTABASE candidate or
KINGDOM-OS registry. Ecosystem writings also use the term in different ways.
This note therefore does not mint a `karma` word or table.
The constructive database shape is narrower:
```text
... | 53ee298ba2a7cb364073ab0d9597f48961dcf514686ff22d713eec14183ecc84 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 396 | 411 | KARMA: consequence and repair, never a moral score | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L396-L411 |
serving.shape | ### Shape: a versioned observable contract
“Shape” can be concrete:
- database identity and capabilities;
- logical-to-physical mapping version;
- source scope and checkpoint;
- observation receipt profile;
- evidence and policy versions;
- explicit limits and unknowns.
A shape says what a component can be relied on... | dccd7737fc58c951004b880841506b4a084824fc5d570a99cd8e8acc46f43ad7 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 413 | 425 | Shape: a versioned observable contract | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L413-L425 |
serving.isness | ### Isness: scoped assertion, not ontology by decree
YUTABASE should not create a universal `is` relation. A stored row means:
> this claimant made this versioned assertion, with this source boundary, at
> this claimed time; this database observed or retained it under these
> constraints.
That is enough “isness” for... | 728d83c98b25f7157db9be763da21634d10442c385631ca44a82caaf4556e4ad | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 427 | 436 | Isness: scoped assertion, not ontology by decree | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L427-L436 |
serving.annexes | ## Proposed annex sequence
Keep revision-5 Core small. Test one optional contract at a time:
| Order | Draft profile | Purpose | Gate before calling it dependable ... | 5bc750536bdd3f3c5739afb6a594559976fc71d5b2a1920418a6beffe3da008e | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | docs/SERVING-SHAPE.md | f05f644747a25a9f0fa1b51b1a1fedeebed92d68 | 4a46fb1c1abdaf8ada4dfe552e828ee2620dbf5da9645891d8eae5f1cd476b2b | 438 | 469 | Proposed annex sequence | null | markdown | non-normative-research | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/docs/SERVING-SHAPE.md#L438-L469 |
sdk.profile | # `yutabase`
The optional Node.js client and CLI for the YUTABASE PostgreSQL semantic-profile
candidate. It keeps ordinary PostgreSQL accessible while adding full logical
refs, governed word relations, explicit claim kinds, UUIDv7 generation, and the
small YOUSPEAK compiler.
This source is `0.1.0-candidate.3`; it is ... | de745e78edc6f68103c6c26749d9142c656714329d3da2b7e228d47bfcc1132c | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/README.md | 76f6d9dbc83fc11f5a0df33fa32921e675a70eb3 | 4ff183db6d82b24bbf671ff3c00832440656ea81c2b177233529d8ac49ef34f4 | 1 | 13 | yutabase | null | markdown | explanatory-sdk | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/README.md#L1-L13 |
sdk.init | ## Start and inspect from source
```sh
git clone https://github.com/cambridgetcg/yutabase.git
cd yutabase/packages/sdk-ts
bun install --frozen-lockfile
bun run src/cli.ts init --conn postgresql://localhost/example
bun run src/cli.ts hello --conn postgresql://localhost/example
```
Use a fresh disposable database for t... | 4b42aa4dc6116df31ff969f916e7b1024cc35c170dace20e3c5f1ba26b2f32f2 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/README.md | 76f6d9dbc83fc11f5a0df33fa32921e675a70eb3 | 4ff183db6d82b24bbf671ff3c00832440656ea81c2b177233529d8ac49ef34f4 | 15 | 67 | Start and inspect from source | null | markdown | explanatory-sdk | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/README.md#L15-L67 |
sdk.structured_helpers | ## Use structured code for structured values
```ts
import { Yuta, type ClaimKind } from "yutabase";
const how: ClaimKind = "computed";
const yuta = new Yuta({
connectionString: process.env.DATABASE_URL,
claimant: "agent:builder/session-42",
});
try {
await yuta.assertCandidateBinding();
const task = "work/t... | a66eb0275b115270ca7110972ee9ac670f7f003aa50031784a3955682d70d1be | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/README.md | 76f6d9dbc83fc11f5a0df33fa32921e675a70eb3 | 4ff183db6d82b24bbf671ff3c00832440656ea81c2b177233529d8ac49ef34f4 | 75 | 120 | Use structured code for structured values | null | markdown | explanatory-sdk | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/README.md#L75-L120 |
sdk.youspeak | ## YOUSPEAK and plain SQL
YOUSPEAK is useful for a compact human/agent-facing surface:
```ts
const result = await yuta.query(
"work/tasks/01900000-0000-7000-8000-000000000001 -> produced",
);
console.log(yuta.explain("cards work/tasks newest 20"));
```
`newest` orders by the deck's mapped `at` claim descending an... | 46fdab2e3ce3d4f5bae5916082d7c6c154057dcd5a83556edf664e6262aee38a | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/README.md | 76f6d9dbc83fc11f5a0df33fa32921e675a70eb3 | 4ff183db6d82b24bbf671ff3c00832440656ea81c2b177233529d8ac49ef34f4 | 122 | 160 | YOUSPEAK and plain SQL | null | markdown | explanatory-sdk | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/README.md#L122-L160 |
sdk.annex | ## Annex an existing table
```sh
yuta --conn "$DATABASE_URL" --by "human:alice" \
deck annex public.tasks as work/tasks \
--id task_id --at observed_at --by claimant \
--how claim_kind --src sources
```
The physical table must already have a non-null uniquely indexed UUID identity
and compatible claim columns. ... | f808119c5f521d78b0bda167f3c8dc0af0ed6c832b6d325b5c4a8bd724812e94 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/README.md | 76f6d9dbc83fc11f5a0df33fa32921e675a70eb3 | 4ff183db6d82b24bbf671ff3c00832440656ea81c2b177233529d8ac49ef34f4 | 162 | 178 | Annex an existing table | null | markdown | explanatory-sdk | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/README.md#L162-L178 |
sdk.public_surface | ## Public surface
| API | Purpose |
|---|---|
| `new Yuta(options)` | open a pooled PostgreSQL client; connection string or macOS Keychain fallback |
| `assertCandidateBinding()` | fail closed unless the exact supported database shape is visible |
| `hello()` | read installed identity, vocabulary, and deck mappings |
... | 65d52e2fba466c3e061e90e68a9a43c68a2fd04036234824f4922fc45ac28095 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/README.md | 76f6d9dbc83fc11f5a0df33fa32921e675a70eb3 | 4ff183db6d82b24bbf671ff3c00832440656ea81c2b177233529d8ac49ef34f4 | 180 | 196 | Public surface | null | markdown | explanatory-sdk | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/README.md#L180-L196 |
sdk.boundary | ## Boundaries
YOUSPEAK and the SDK do not provide authentication, permissions, row-level
security, synchronization, transport, signatures, backups, or proof that a
stored claim is true. PostgreSQL and the surrounding application remain
responsible for those operational boundaries.
Fresh initialization commits the ori... | 7e5545047e6112efcf881220347d56223d988a140eb1f513ad8eb19efa1c2f49 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/README.md | 76f6d9dbc83fc11f5a0df33fa32921e675a70eb3 | 4ff183db6d82b24bbf671ff3c00832440656ea81c2b177233529d8ac49ef34f4 | 198 | 220 | Boundaries | null | markdown | explanatory-sdk | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/README.md#L198-L220 |
code.ref.parse_ref | /**
* Parse a ref string into its components.
* Accepts exactly "book/deck/full-uuid". Prefix lookup is not part of the
* frozen core because the compiler uses exact UUID equality.
*
* @throws on malformed ref
*/
export function parseRef(ref: string): Ref {
const parts = ref.split("/");
if (parts.length !== 3... | 6e31ac73aa37b576d66a2b6b5073198a1a2a4611731ba7f1b47b1caceadf9b57 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/ref.ts | 41c31f763e27d629e3de718d90de65339e835bbb | 4747c7355ef10f17cace73f2b3c148be932d51d4bb67b1957b688bd814c50034 | 16 | 38 | null | parseRef | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/ref.ts#L16-L38 |
code.ref.deck_pattern | /**
* Parse a "book/deck" pattern (without id) — used by lexicon endpoints.
* e.g. "tradein/submissions" to { book: "tradein", deck: "submissions" }
* Also supports glob patterns like star-slash-star or "tradein/star"
*/
export function parseDeckPattern(pattern: string): { book: string; deck: string } {
const par... | a4bdf98691ba7af8429cc8ef3b219df03fe2a13b9b4bb63019bf61db4878307f | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/ref.ts | 41c31f763e27d629e3de718d90de65339e835bbb | 4747c7355ef10f17cace73f2b3c148be932d51d4bb67b1957b688bd814c50034 | 56 | 75 | null | parseDeckPattern | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/ref.ts#L56-L75 |
code.freshness.summarize | /**
* Summarize claim kinds represented in one result.
*
* Traversal rows repeat the final edge at the top level and carry the complete
* one- or two-edge route in `path`. Count that path once instead of counting
* only (or double-counting) its final edge. Ordinary card rows still use their
* top-level honesty he... | a739a0c66d105a8796aa2a09e39ea94ec419ee650b8f09e3788159a202bc8cc8 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/freshness.ts | af4a635aaf94f44084e5b54129f47ac2b8fa8b23 | 2d995c69f1e6f020e5ebede3814ecd637b5ebf4be7139a735565c41e3b0f74d1 | 10 | 66 | null | summarizeFreshness | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/freshness.ts#L10-L66 |
code.freshness.path_claims | function traversalPathClaims(
row: Record<string, unknown>,
): Record<string, unknown>[] | null {
if (
typeof row.thread_id !== "string" ||
!Array.isArray(row.path) ||
row.path.length === 0 ||
!row.path.every(
(edge) =>
edge !== null &&
typeof edge === "object" &&
!Arra... | 4a7cadb4e936f361f62bd418a1c566d0136772a944af3b7dfc681ecc545fc44e | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/freshness.ts | af4a635aaf94f44084e5b54129f47ac2b8fa8b23 | 2d995c69f1e6f020e5ebede3814ecd637b5ebf4be7139a735565c41e3b0f74d1 | 68 | 100 | null | traversalPathClaims | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/freshness.ts#L68-L100 |
code.query.claim_sources | export const CLAIM_KINDS = Object.freeze([
"witnessed",
"live",
"cached",
"computed",
"declared",
] as const);
export type ClaimKind = (typeof CLAIM_KINDS)[number];
export type TraversalDirection = "->" | "<-";
export interface TraversalHop {
direction: TraversalDirection;
word: string;
}
export interf... | 7e624ee8826e13bad255fd3ada40e2dc3ddc5cc11bd74c4cbc5a7faacde28060 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/query-builders.ts | cf19d78997ae322559d81d6678ad536a97a995e0 | ca45cf3cff7bae0144a31c6df4261e5b3c39bdedce5c4f9e8419cfc6edca46b1 | 15 | 71 | null | CLAIM_KINDS/requireClaimSources | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/query-builders.ts#L15-L71 |
code.query.traversal | export function compileTraversalQuery(
ref: Ref,
direction: TraversalDirection,
word: string,
secondHop?: TraversalHop,
): CompiledQuery {
assertTraversalDirection(direction, "TRAVERSE direction");
if (secondHop) {
assertTraversalDirection(secondHop.direction, "TRAVERSE second-hop direction");
}
con... | 7e23a26e3222457ed0e84ea08bbf210a3b2d714c6bead469decd11ab9431f686 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/query-builders.ts | cf19d78997ae322559d81d6678ad536a97a995e0 | ca45cf3cff7bae0144a31c6df4261e5b3c39bdedce5c4f9e8419cfc6edca46b1 | 82 | 147 | null | compileTraversalQuery | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/query-builders.ts#L82-L147 |
code.query.thread_sever | export function compileThreadQuery(input: ThreadQueryInput): CompiledQuery {
const how = parseClaimKind(input.how, "THREAD");
requireClaimSources("THREAD", how, input.src);
const params: unknown[] = [
uuidv7(),
input.word,
input.from.book,
input.from.deck,
input.from.id,
input.to.book,
... | af97c2ff0902b091813171a08c3cdc60e8aa68b1cd39ae9a4db03fd9325ef1d8 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/query-builders.ts | cf19d78997ae322559d81d6678ad536a97a995e0 | ca45cf3cff7bae0144a31c6df4261e5b3c39bdedce5c4f9e8419cfc6edca46b1 | 181 | 248 | null | compileThreadQuery/compileSeverQuery | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/query-builders.ts#L181-L248 |
code.install.constants | export const CANDIDATE_VERSION = "0.1.0-candidate.1" as const;
export const CANDIDATE_REVISION = 5 as const;
export const FRESH_INSTALL_MIGRATIONS = Object.freeze([
"0001_yu_core.sql",
"0002_starter_lexicon.sql",
"0004_candidate_hardening.sql",
"0005_candidate_integrity.sql",
] as const);
export const LEGACY_... | c235603e1b886baba22d2a59c7d6f0b7e9fe15a0739bd543eea5ca41b94c22fc | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/install.ts | d0127a454c81c6a8c6cd4d03a7356bad8cb3482e | c777a5dc4f183ca6d3e2714bf263cc0312869266ccf646b8cac003526e7310fd | 1 | 34 | null | candidate constants and migration lists | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/install.ts#L1-L34 |
code.install.plan | /**
* Classify a database without guessing through a partial installation.
* Unknown/newer identities are refused rather than silently downgraded.
*/
export function planInstall(probe: InstallProbe): InstallPlan {
const coreObjects = [probe.hasLexicon, probe.hasRegistry, probe.hasThreads];
const hasAnyCore = cor... | 1ca44ef7426badb3b0c857f36401826b26df14ecee0eedc18c84661eb97e916b | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/install.ts | d0127a454c81c6a8c6cd4d03a7356bad8cb3482e | c777a5dc4f183ca6d3e2714bf263cc0312869266ccf646b8cac003526e7310fd | 185 | 245 | null | planInstall | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/install.ts#L185-L245 |
code.uuid.generate | // uuidv7.ts — client-generated UUIDv7 (time-sortable, mergeable, no sequences)
//
// Doctrine: SPEC.md §2 — "ids are client-generated UUIDv7 (time-sortable,
// mergeable, no sequences)"
//
// UUIDv7: 48-bit Unix timestamp (ms) + 12-bit random + 62-bit random.
// The embedded time is useful for locality and rough order... | f7f08732098f5f6fca4f177b009b3b036ea4cc717ac00b83013dd16634f37740 | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/uuidv7.ts | 871aa851eeb5bc246aa9e6924baed489e0bc4e15 | 81b57143ee4a6c9cfe1068113538a73dadddd9f90e84f839bd1d52860babaf4b | 1 | 42 | null | uuidv7 | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/uuidv7.ts#L1-L42 |
code.uuid.timestamp | /** Extract the timestamp from a UUIDv7 (ms since epoch), or null for non-v7. */
export function uuidv7Timestamp(id: string): number | null {
const bytes = parseUuidBytes(id);
if (!bytes) return null;
if ((bytes[6] & 0xf0) !== 0x70) return null; // not v7
if ((bytes[8] & 0xc0) !== 0x80) return null; // not the ... | 34940ebf377ddaa82975ac4086728875690ed0d814db32def7770757c4dba3fb | cambridgetcg/yutabase | https://github.com/cambridgetcg/yutabase | d72605d05061b7853a8e9bf3eb73417e3a4457dc | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 | packages/sdk-ts/src/uuidv7.ts | 871aa851eeb5bc246aa9e6924baed489e0bc4e15 | 81b57143ee4a6c9cfe1068113538a73dadddd9f90e84f839bd1d52860babaf4b | 56 | 85 | null | uuidv7Timestamp | typescript | sdk-implementation | en | MIT | https://github.com/cambridgetcg/yutabase/blob/d72605d05061b7853a8e9bf3eb73417e3a4457dc/packages/sdk-ts/src/uuidv7.ts#L56-L85 |
YUTABASE RepoSearch MiniEval
YUTABASE RepoSearch MiniEval is a tiny, project-specific retrieval check over
one immutable public revision of
cambridgetcg/yutabase. It asks 27
English, Cantonese Traditional Chinese, and code-mixed questions about the
candidate specification, integration boundaries, optional SDK, and
non-normative serving-shape research.
This is an engineering fixture, not a universal code-search benchmark. Its queries are synthetic and its public labels make memorization easy.
Configs
corpuscontains exact, unmodified line spans from the allowlisted public source files. Its only split is also namedcorpus; it is not training data.queriescontains 9validationand 18testrows with graded relevance judgments and curated hard negatives. Both label sets are public.
from datasets import load_dataset
corpus = load_dataset(
"Yu-and-Ai/yutabase-reposearch-minieval",
"corpus",
split="corpus",
)
validation = load_dataset(
"Yu-and-Ai/yutabase-reposearch-minieval",
"queries",
split="validation",
)
Every corpus row carries the repository, commit, Git blob, whole-file SHA-256,
inclusive line range, chunk SHA-256, authority class, and a commit-pinned
source URL. source-manifest.json is the allowlist and reproducibility
boundary.
Immutable source boundary
| Coordinate | Value |
|---|---|
| repository | cambridgetcg/yutabase |
| commit | d72605d05061b7853a8e9bf3eb73417e3a4457dc |
| tree | 592f1b15b14fbe0ee29ef4e4769a43aace7e1e65 |
| commit time | 2026-07-29T23:10:22+01:00 |
| source license | MIT |
The corpus is generated only from 12 technical files named in the manifest. It excludes repository agent instructions, deployment metadata, heartbeat state, generated catalogs, applications, play notebooks, creative/archival writings, package locks, local repositories, account data, credentials, logs, and conversations. Links appearing in source documents are retained as source text; the linked pages are not copied into this dataset.
Authority classes matter. SPEC.md and docs/CONFORMANCE.md are candidate
contract material, while docs/SERVING-SHAPE.md is explicitly non-normative
research. Semantic similarity does not make those layers interchangeable.
Query and judgment shape
Each query row contains:
- a stable
query_id, split, language label, and query; query_typeand coarse difficulty;- an
expected_factsaudit aid; - graded
relevanceentries with a chunk ID, grade, and rationale; and - explicit
hard_negative_chunk_ids.
Grades mean:
3: directly answers the information need;2: materially corroborates or implements the answer;1: supplies an important caveat or motivating constraint;- omitted: judged non-relevant inside this curated corpus.
The seed judgments were reviewed against the pinned corpus, but repeated facts across README, specification, code, and design notes can still make relevance subjective. Treat per-query output as evidence and inspect disagreements.
Language totals are 13 English (en), 11 Cantonese Traditional Chinese
(yue-Hant), and 3 mixed (mul) queries. The source corpus itself is
predominantly English, so the Cantonese rows measure cross-lingual retrieval,
not Cantonese source coverage or answer generation.
Validate and evaluate
Everything below uses the Python standard library:
python3 scripts/validate_dataset.py
python3 -m unittest discover -s tests -v
python3 scripts/evaluate.py --split validation
python3 scripts/evaluate.py --split test
The evaluator's built-in lexical ranker is a deterministic smoke baseline, not a competitive multilingual model. A custom run is JSON Lines with one row per query:
{"query_id":"Q01","ranked_chunk_ids":["readme.profile","spec.profile"]}
python3 scripts/evaluate.py --split test --run path/to/run.jsonl
The primary metric is graded nDCG@10 with gain 2^grade - 1. Secondary
binary metrics treat grades 2–3 as relevant: recall at 5, success at 1, and MRR
at 10. A hard-negative inversion is 1 for a query when its highest-ranked
curated hard negative appears above every grade-3 target, then the evaluator
averages that value across queries. It also reports per-language macro scores
and per-query results. With only 27 public questions, tiny score changes and
language gaps are descriptive rather than statistically robust.
The checked-in standard-library lexical smoke baseline produced:
| Split | nDCG@10 | Recall@5 | Success@1 | MRR@10 |
|---|---|---|---|---|
| validation | 0.8797 | 0.8519 | 0.8889 | 0.9444 |
| test | 0.8451 | 0.8148 | 0.8333 | 0.8889 |
On the public test split its English nDCG@10 was 0.8818 and Cantonese Traditional nDCG@10 was 0.7726. That gap is a diagnostic for this lexical baseline, not an estimate of all multilingual retrievers or users.
Known limitations
- The questions are manually authored from project documentation, not sampled from real users or production logs.
- One repository and one revision cannot establish general retrieval quality.
- The public test labels support regression testing, not a protected leaderboard.
- Cantonese wording and code-switching cover only a small slice of Hong Kong usage and orthographic variation.
- Hard negatives are curated rather than exhaustive.
- A later YUTABASE revision requires a new dataset version; scores over different corpora are not directly comparable.
- Retrieving a security statement does not prove a deployment secure, a claim true, or generated advice correct.
- MIT permits redistribution of the selected source, but external material linked by that source retains its own terms and is not included here.
Privacy and safety
All source chunks come from the exact public Git commit above. No private AgentTool implementation, local KINGDOM catalog, local path, MCP/OAuth data, secret, user log, or conversation is included. The validator rejects several obvious local-path and credential markers as a regression guard; that check is not a universal secret scanner.
License and attribution
Dataset annotations and tooling are MIT licensed. The copied YUTABASE source
spans remain under YUTABASE's MIT notice, reproduced in
SOURCE_LICENSES/YUTABASE-MIT.txt.
- Downloads last month
- 65