What is being queried — Product (shared drive)
A query never reaches Google Drive. It is answered entirely from an immutable snapshot, which is the only way a mutable, permission-scoped source can honour same query + same epoch ⇒ same answer.
Why not query Drive directly?
Because most of these questions cannot be expressed there. The Drive API has no join, no aggregate, no group-by, and no recursive query, so "which documents are shared outside the company, by owner" is not a request you can make of it — it is a program you have to write. Of 49 operations probed, 23 were expressible against Drive, 20 were not, and 6 were partial.
What the epoch buys
Files move, get renamed, and change permissions while you are reading. An epoch pins the answer, so a number in a report can be re-derived months later and a certificate stays meaningful. Re-syncing opens a new epoch rather than editing this one, so older answers remain reproducible.
Where it is deliberately honest
Google reports no byte size for native Docs, Sheets, or Slides, so a
storage total silently covers a fraction of the rows. Rather than hide that, the response
carries the coverage and says so in _meta.hints. Same for the trash filter
Drive applies invisibly.
The snapshot, as generated for this dataset
Source gdrive:drv_product · epoch 1 ·
115 rows · 9 entities ·
6 verbs.
See the generated DSL
| Entity | Rows | Fields | Identified by |
|---|---|---|---|
| COMMENTS | 4 | 7 | ID |
| DRIVES | 1 | 4 | NAME |
| FILES | 20 | 24 | NAME |
| LABELS | 4 | 3 | FILE_ID |
| LINKS | 4 | 3 | SRC_FILE_ID |
| PERMISSIONS | 31 | 5 | FILE_ID |
| PRINCIPALS | 7 | 3 | ID |
| REVISIONS | 8 | 6 | ID |
| SECTIONS | 36 | 9 | ID |
What is in the snapshot, and what is not
This split is declared by the adapter, not discovered, because it decides which questions can be answered deterministically at all.
resident straight from the source API
FILES.IDFILES.DRIVE_IDFILES.PARENT_IDFILES.NAMEFILES.MIME_TYPEFILES.SIZE_BYTESFILES.OWNER_EMAILFILES.CREATEDFILES.MODIFIEDFILES.MODIFIED_BYFILES.TRASHEDFILES.STARREDFILES.WEB_VIEW_LINKDRIVES.*PERMISSIONS.*PRINCIPALS.*REVISIONS.*COMMENTS.*LABELS.*
derived computed at sync time
Not in Drive at all — these are the layer's own claims, which is why they carry a derivation into the envelope. They are also the ones the Drive API cannot express: no join, no aggregate, no group-by.
FILES.PATHFILES.DEPTHFILES.IS_FOLDERFILES.ITEM_KINDFILES.SHARED_EXTERNALLYFILES.LINK_VISIBILITYFILES.WORD_COUNTFILES.SECTION_COUNTFILES.CONTENT_HASHFILES.EXTRACT_STATUSSECTIONS.*LINKS.*
remote never resident
Reachable only through deref(), one governed call
per item that reports whether the live file still matches the epoch that answered your
query.
file bytes / native binary contentfull-fidelity Docs structure (tables, comments anchored to ranges)image and PDF pixel contentanything requiring the viewer's own credential rather than the mount's