@framers/agentos-ext-account-sources 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/sync/AccountSourceSync.d.ts +8 -2
- package/dist/sync/AccountSourceSync.d.ts.map +1 -1
- package/dist/sync/AccountSourceSync.js +36 -9
- package/dist/sync/AccountSourceSync.js.map +1 -1
- package/dist/sync/SqlAccountSourceSyncStore.d.ts +60 -20
- package/dist/sync/SqlAccountSourceSyncStore.d.ts.map +1 -1
- package/dist/sync/SqlAccountSourceSyncStore.js +261 -63
- package/dist/sync/SqlAccountSourceSyncStore.js.map +1 -1
- package/dist/sync/schema.d.ts +7 -2
- package/dist/sync/schema.d.ts.map +1 -1
- package/dist/sync/schema.js +10 -2
- package/dist/sync/schema.js.map +1 -1
- package/dist/sync/types.d.ts +56 -4
- package/dist/sync/types.d.ts.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -151,7 +151,7 @@ committableSourceCursor(checkpoint, summary); // 'cursor-42'
|
|
|
151
151
|
|
|
152
152
|
A connector that can page through an account adds the optional `sync` capability, an `AccountSourceSyncProvider`, and becomes a `ResumableAccountSourceConnector`. The four original methods keep their signatures, and an empty selection is not redefined as the whole account. The provider's calls take a `SourceSyncRequest` (scope, generation, cycle id, cutoff, policy and an optional signal) and commit nothing: `begin` answers the anchor a cycle starts from, `scanPage` a page of candidate ids, `historyPage` the ids changed since an anchor with the cursor the page reached, and `readSource` one item as a `document`, `gone`, `skipped` or `retry` result. Cursors and page tokens are opaque strings; no rule does arithmetic on them or orders them.
|
|
153
153
|
|
|
154
|
-
A `SourceSyncDocument` holds a `SourceRead` with text, its message spans as UTF-16 offsets into that text, JSON metadata, an activity time, a content hash and the `cache` decision `decideSourceCache` answered for the read. A `SourceSyncWork` row holds ids, revisions, attempts and a disposition, never content. A `SourceSyncEvent` carries a fixed state, a count and an optional duration, never a scope or a provider payload.
|
|
154
|
+
A `SourceSyncDocument` holds a `SourceRead` with text, its message spans as UTF-16 offsets into that text, JSON metadata, an activity time, a content hash and the `cache` decision `decideSourceCache` answered for the read. A `SourceSyncWork` row holds ids, revisions, attempts, the failures recorded across its counts of attempts with the counts they are weighed against, and a disposition, never content. A `SourceSyncEvent` carries a fixed state, a count and an optional duration, never a scope or a provider payload.
|
|
155
155
|
|
|
156
156
|
### Connection state
|
|
157
157
|
|
|
@@ -206,7 +206,7 @@ await store.control(scope, { type: 'grant_ready', use: { searchAskEnabled: true,
|
|
|
206
206
|
const handle = await store.claim(scope, 'scheduled'); // null unless the connection is due and free
|
|
207
207
|
```
|
|
208
208
|
|
|
209
|
-
`SqlAccountSourceSyncStore` keeps each connection's state, policy, open checkpoint, lease and barrier, the cycle's work rows, the provenance of retained sources and the connection's exclusions in the tables `sourceSyncSchema(prefix)` creates:
|
|
209
|
+
`SqlAccountSourceSyncStore` keeps each connection's state, policy, open checkpoint, lease and barrier, the cycle's work rows, the provenance of retained sources and the connection's exclusions in the tables `sourceSyncSchema(prefix)` creates: eight statements, with a prefix of a lower-case letter and at most 31 lower-case letters, digits or underscores (`agentos_source_sync` unless given). Besides the four tables and the due and expiry indexes, two indexes of the work rows, one by disposition and source id and one of the waiting rows by retry time, let `takeWork` and `pendingRetry` read one row however many items a cycle queued. A database whose migration ran an earlier release's statements has no work indexes: the store is correct there and each take reads more rows, and running the statements again adds them. It needs a PostgreSQL adapter with transactions and runs no DDL. Its `fence` is the core `SqlSourceDerivationStore` on the same adapter, over the tables of `sourceDerivationSchema(derivationPrefix)`: every change to an owner's sources runs under that owner's fence, the one that also commits and delivers results derived from them.
|
|
210
210
|
|
|
211
211
|
The host supplies seven bindings, and may supply an eighth, `refresh`. The store calls each inside its own transaction, on the transaction adapter it passes:
|
|
212
212
|
|
|
@@ -223,9 +223,9 @@ The host supplies seven bindings, and may supply an eighth, `refresh`. The store
|
|
|
223
223
|
|
|
224
224
|
Provider reads, embedding and model calls run between store calls, never inside a binding.
|
|
225
225
|
|
|
226
|
-
A sync holds a lease. `claim(scope, trigger)` answers a handle only when the owner is active, the `active` binding agrees, no barrier or live lease is set and `sourceSyncDue` holds; `renew(handle)` extends the lease by `leaseMs`; `release(handle, event?)` gives it up, records a deferral or a fixed failure when one is given, and keeps the checkpoint and work for the next claim. `openCycle` opens a checkpoint or answers the one already open
|
|
226
|
+
A sync holds a lease. `claim(scope, trigger)` answers a handle only when the owner is active, the `active` binding agrees, no barrier or live lease is set and `sourceSyncDue` holds; `renew(handle)` extends the lease by `leaseMs`; `release(handle, event?)` gives it up, records a deferral or a fixed failure when one is given, and keeps the checkpoint and work for the next claim. `openCycle` opens a checkpoint, with the cycle's running counts at zero (`tally`, below), or answers the one already open; `page` records a page and queues its ids in one transaction (the same page sent again right after answers the same checkpoint; any other stale revision answers null), and an id the cycle already queued is queued again, keeping its failures while the provider has not answered it since; and `takeWork` marks the next due item attempted before the read: the first pending item by source id, then the one whose wait passed first, so a read that keeps failing never holds back one that has not failed; an item that reached five attempts without a recorded result is not taken but waits `pollMs` as a `storage_unavailable` retry. Every call made with a handle checks the owner fence, the lease token and expiry, the generation and the `active` binding in the same transaction; once any of them has moved on, `release(handle)` answers false and every other call answers null.
|
|
227
227
|
|
|
228
|
-
`applyResult(handle, work, result, prepared)` keeps a `retry` result unresolved.
|
|
228
|
+
`applyResult(handle, work, result, prepared)` keeps a `retry` result unresolved and counts it in the row's `failures`, across the counts of attempts `takeWork` starts again after a `pollMs` wait. From the tenth failure on, it records the read as skipped with `attempt_limit` in place of the wait once the failures are evidently the read's own. A failure at the provider counts as the read's own once the provider has answered another read of the cycle (applied, gone or skipped for a reason other than an exclusion) in the run of the read's first such failure, from the claim of that run's lease, or in any run after it; a `storage_unavailable` failure, a preparation's or the store's, once another document of the cycle has been prepared and written in that run or after it. During an outage of the provider or of preparation nothing is answered or prepared, so no read is given up until its cycle has been open for `reconcileMs`; from then on a read's next failure, from its tenth, gives it up, so the cycle ends and a reconcile can follow. A document whose cache lifetime has ended by the store's clock when it is weighed, as one admitted with a few seconds of it left and applied again after a longer preparation, is recorded as skipped with `expired`, never refused as malformed: the skip is terminal, so the cycle commits and the next scheduled sync stays, and the source is read again the next time a cycle lists it: a later history change that names it, or a scan that finds it, such as a reconcile's. A `document` result is weighed first: the store ranks this connection's retained sources and the new one by activity time, newest first with ties broken by source id, and keeps those inside `maxRetainedDocuments`, `maxHeldCharacters` and the allowance. A document that does not fit is recorded as skipped with `document_limit`, `held_limit` or `indexing_limit`, and an excluded one with `excluded`. A document that fits replaces the source's previous copy in the same transaction (host write, indexing charge and provenance), after that copy and every derived result that depends on it are removed through the fence, and this connection's other sources the limits no longer admit are removed with it, never another connection's. A read that repeats the text and message spans of a copy the store still holds, within its expiry and window, adds nothing to index: it is charged nothing and is not weighed against the indexing allowance, so neither a reconcile that reads every retained source again nor a change to a source's labels or history spends any of it. Any other read of such a copy is weighed against the indexing allowance and charged by its new and changed messages: the store keeps the hash of each message's text, and a message the copy holds with the same id, text hash, cut and length is free, as is the text before it (its separator and any header lines) when that text is the copy's and the message before it is the one the copy has there, itself unchanged (`leadHash` on each span); a changed header line or separator is charged, and so are the separator after an edited message and the separator of a message that follows another neighbour than it did. A reply is charged its separator and text, a message edited in place is charged with the separators beside it, and a read that only drops messages is charged nothing, since the messages it keeps follow the same neighbours among those kept (a message that becomes the first keeps its header lines but loses its separator, so those lines are charged once). A connector that caps a thread's text and spends it on the newest messages first, as Gmail's does under its `maxThreadCharacters`, cuts the oldest message shorter at each reply near the cap: that message is charged again at its new length, with the lead of the message after it (its separator and any header lines), and the rest of the thread is not. A copy whose messages keep no text hash, as an earlier release wrote it, is weighed by the hash of its whole text instead: a read that begins with that text, every message of the copy at the same span, is charged what follows it, and any other read, like every read of a copy without either hash, is charged in full. When the read also repeats the copy's version and content hash, the `refresh` binding keeps the copy in place, with every result derived from it, and gives it the read's expiry and message windows; otherwise, and for a host without the binding, the copy is written again from a fresh preparation. A `gone` result, a skip and an excluded document remove the source's previous copy, except an `indexing_limit` skip whose previous copy is within its expiry and window, still admitted as it is by the retained limits, and where the new read begins: the read's text starts with the copy's text, by the hash the store keeps of it, and holds every message of it at the same span. That copy, admitted and charged under an earlier read, stays with the shorter of its own and the read's expiry and message windows until a later read of the source finds room in the allowance (a change to it, or a reconcile) or the copy expires; a read that lost or changed one of its messages removes it. A reply that cuts the oldest message of a thread at the cap changes that message, so with the allowance spent it removes the thread's copy, and the thread stays out of the store until a read of it fits the allowance whole. A `gone` result, a skip the provider answers and an `expired` skip withdraw the previous copy first, in a transaction of their own: its expiry moves to the store's clock, so from then on `readCurrent` answers it expired and the fence neither commits nor delivers anything derived from it, even when the removal that follows fails, as when the host's `purge` binding throws. A withdrawn copy is past its expiry, so the next `expire` or `sweepExpired` removes it, as does the read's retry. A read the store gives up withdraws nothing and keeps the previous copy within its own expiry and window: the read saw nothing of the source, so nothing is decided about the copy, and a later read of the source replaces it. `attempt_limit` is the store's own reason, and a result that carries it is refused as `invalid_response`. A copy past its expiry or window counts as not held, whether or not `expire` has removed it yet. Given `prepared` as null, a document the store has to write answers `pending` with the same handle and records nothing; apply it again with its prepared value. Such a document reaches the `allowance` binding in both calls, so keep that binding to reads. A failing binding rolls the whole application back, apart from such a withdrawal. The answer carries a new handle whenever a removal advanced the owner's fence; later calls use it. `finish` commits the cycle's target cursor once every work item is terminal, counting the cycle's work rows in the database. `progress` records the counts so far without reading a work row: the checkpoint keeps the cycle's running counts (`tally`, a `SourceSyncTally`), which each transaction that settles an item or queues one again changes with it, and the retained sources are counted in the database, so a cycle of many reads costs each read a few rows. A checkpoint an earlier release wrote, without the counts, is counted from its work rows once.
|
|
229
229
|
|
|
230
230
|
Controls run with the owner blocked, a tune (below) aside. `control(scope, event, policy?)` applies `connect_started`, `grant_ready`, `pause`, `resume`, `use_changed`, `policy_changed` (with the new policy), `grant_lost` or `disconnect`: it records a content-free barrier and drops the open cycle in one transaction, then completes the barrier and reactivates the owner. Connecting, grant loss and disconnecting remove the connection's sources, their derived results and its exclusions. Pause, resume, a use change and a policy change move retained content to the new generation with its version kept and its expiry never extended, so no result derived before the change can be delivered again; a policy change also removes the sources the new limits leave out and shortens the expiry of the rest to the new window. `exclude(scope, sourceId)` removes one source and keeps a content-free exclusion; `resetExclusions(scope)` clears them. Both raise the generation and keep the committed cursor, and make a reconcile the next cycle: a fresh bounded scan, then history replayed from that cursor, so a change made since it reaches the store even for an item the scan does not list. A control other than disconnecting throws `stale_source_sync` while the `active` binding refuses the owner. A barrier left by a failure blocks claims and reactivation until `recoverControl(scope)` completes it, and a lifecycle worker calls it even for a paused connection. `expire(scope, limit)` removes retained sources whose expiry has passed, also while the connection is paused or the owner's fence is inactive, as for a suspended account, which stays inactive, then the owner's expired derived results; reads refuse an expired source either way. Each source goes in a transaction of its own. When a removal or the results' expiry fails, `expire` throws the failure; once it had removed a source, it throws a `SourceSyncExpiryError` with the failure's message and `cause`, whose `partial` counts the removals made before it in `removed` and names their sources in `sourceIds`, in the order they went. Those removals committed, so a host that counts what `expire` removed adds `partial.removed` in its catch, as `maintain` does. `sweepExpired(limit?, owner?)` does the same across every connection, or one owner's, the earliest expiry first and by the store's own expiry, however far a maintenance walk is from them, and answers `{ removed, failed }`: an owner whose removal fails, as when its host purge keeps failing, is counted and left out of the call's later reads, so a call with up to `limit` such owners never holds back another owner's copies. An owner whose derived results then fail to expire is counted too, once; the call still answers every source it removed, and the other owners' results still expire. `removeOwner(owner, remove?)` removes a stopped owner's rows in one transaction: each of its connections, with its work rows, provenance and exclusions, once every one is disconnected with no barrier, lease, work or retained source, after running the lifecycle's own `remove` in the same transaction; the core fence's owner row and deletion records stay, since they hold no content and a restore replays the deletion from them.
|
|
231
231
|
|
|
@@ -332,11 +332,11 @@ The provider factory receives `currentHandle`, which answers the handle the run
|
|
|
332
332
|
|
|
333
333
|
`run(scope, trigger, signal?)` calls `lifecycle.recover` and the store's `recoverControl` for the scope, then claims the lease; a run that claims nothing answers `idle`. With no open cycle it opens one: `bootstrap` when no cursor is committed, `reconcile` once `reconcileMs` has passed since the last cycle that was not incremental or after a change to the exclusions, otherwise `incremental`. A bootstrap, a reconcile and a recovery call the provider's `begin` for an anchor before their scan. A bootstrap and a recovery replay history from that anchor. A reconcile replays it from the committed cursor: history ids only increase, so that replay also covers the changes made between the cursor and the anchor, and a change to an item the bounded scan does not list still reaches the store. Before its scan, a reconcile asks the provider for the first history page from the committed cursor; when that answers `history_expired`, nothing before the anchor can be replayed, so the reconcile replays from its anchor instead, with one scan and one read pass. An incremental cycle replays history from the committed cursor without a scan. A reconcile is also what keeps an unchanged source: it reads every listed source again, and the store charges nothing for the copy it holds, refreshing it in place with the `refresh` binding, but only while it still holds that copy. Set `reconcileMs` below the cache lifetime the connector's reads carry, by more than one poll and the time a reconcile takes; otherwise each copy expires, and `expire` removes it, before the next reconcile reads it again, and it returns as a new admission, charged again.
|
|
334
334
|
|
|
335
|
-
The run drains the queued reads before it asks for the next page. Each item is read, unless it is excluded, which records it as skipped. The read goes to `applyResult` before any preparation: the store records a skip, or with the `refresh` binding applies a read of the copy it holds, and answers `pending` for a document it has to write, which the run then prepares and applies again. The run goes on with the handle the application answers.
|
|
335
|
+
The run drains the queued reads before it asks for the next page. Each item is read, unless it is excluded, which records it as skipped. The read goes to `applyResult` before any preparation: the store records a skip, or with the `refresh` binding applies a read of the copy it holds, and answers `pending` for a document it has to write, which the run then prepares and applies again. The run goes on with the handle the application answers. A read that fails with a retriable failure is recorded with its wait. After a `network` or `provider_unavailable` failure with no retry time from the provider, which may be the read's own, the run goes on to the next due read, one that has not failed before one whose wait has passed, so a source that keeps failing holds back none queued with it; a second failure in a row ends the run as `deferred`, so an outage that starts during a run fails at most two reads after the run's last answer. A `rate_limited` failure and one that carries the provider's retry time, as Gmail's do for its waits on the mailbox and the project, end the run until that time, so nothing more is sent before it; a `storage_unavailable` failure, from preparation or storage on this side, ends it until the read's wait, unless the store gave the read up. When no read is due, the earliest wait among the reads ends the run as `deferred` until then; otherwise the run records the next page, and once the last history page is recorded and every item is terminal, `finish` commits the cursor and the run answers `completed`. A run yields, keeping its checkpoint and reads for the next claim, after `maxChangedPerLease` reads, after `maxHistoryPagesPerLease` history pages, when `runBudgetMs` has passed or when `signal` aborts; a signal aborted before the run starts answers `yielded` at once. It never waits out a retry.
|
|
336
336
|
|
|
337
337
|
Before each provider call and each preparation the run renews its lease, and the call gets a signal that aborts after `operationTimeoutMs`, at the end of the run budget or a second before the lease expires, whichever comes first. A provider call cut off by that signal counts as a `network` failure and a preparation as `storage_unavailable`; one cut off by the caller's signal yields. The store refuses a result that arrives after the lease, the generation or the owner's fence has moved on, as after a disconnect, and the run then answers `stale`. A failed request is never an empty page, and a bounded scan never proves that an item it did not list is gone.
|
|
338
338
|
|
|
339
|
-
Attempts are counted before each call, so a process that dies during a call has used that attempt. The anchor read and each page are counted in the connection's `operation` column, under a SHA-256 digest that names the operation, so a new generation, cycle, revision or phase starts a new count; the column holds no page token, cursor or provider id. A reconcile's look at the committed cursor's history shares the count of its anchor read, and a recovery's anchor read continues the count of the history page that answered `history_expired`, so the one column never alternates between two operations, and while a call keeps failing the count reaches five attempts and the `pollMs` wait. Each read is counted in its work row. A `network`, `rate_limited`, `provider_unavailable` or `storage_unavailable` failure records a wait of `sourceRetryAt`: one second doubled for each earlier attempt, with up to as much again as jitter and at most 60 seconds, or the provider's own retry time when that is later. The fifth attempt's wait is at least `pollMs`, and the attempt after it starts a new count of five; five attempts that recorded nothing also wait `pollMs`. The
|
|
339
|
+
Attempts are counted before each call, so a process that dies during a call has used that attempt. The anchor read and each page are counted in the connection's `operation` column, under a SHA-256 digest that names the operation, so a new generation, cycle, revision or phase starts a new count; the column holds no page token, cursor or provider id. A reconcile's look at the committed cursor's history shares the count of its anchor read, and a recovery's anchor read continues the count of the history page that answered `history_expired`, so the one column never alternates between two operations, and while a call keeps failing the count reaches five attempts and the `pollMs` wait. Each read is counted in its work row. A `network`, `rate_limited`, `provider_unavailable` or `storage_unavailable` failure records a wait of `sourceRetryAt`: one second doubled for each earlier attempt, with up to as much again as jitter and at most 60 seconds, or the provider's own retry time when that is later. The fifth attempt's wait is at least `pollMs`, and the attempt after it starts a new count of five; five attempts that recorded nothing also wait `pollMs`. A read's failures are also counted across its counts, in its work row's `failures`. From its tenth, the fifth of the count after the wait, the store records the read as skipped with `attempt_limit` in place of a wait once the failures are evidently its own, or once its cycle has been open for `reconcileMs` (see `applyResult` in [The SQL store](#the-sql-store)); until then a read that keeps failing waits, as every read does in an outage, and its cycle holds the cursor. Past a given-up read the cycle commits its cursor, the copy the store holds of the source stays until a later read replaces it or it expires, and the source is read again when a change lists it in history or a reconcile's scan lists it; a page of the same cycle that lists it again queues it with its failures, so its next failure gives it up again. The time a run defers to is the connection's next sync, which neither a restart nor a manual request shortens.
|
|
340
340
|
|
|
341
341
|
A `grant_rejected` or `insufficient_scope` failure goes to `lifecycle.loseGrant` with the run's handle, and the run answers `reconnect`, or `stale` when `loseGrant` answers false. A `domain_policy` or `invalid_response` failure releases the lease with that failure, which clears the next scheduled sync until a manual request or another control sets one, and the run answers `failed`. An unknown exception from the provider becomes `invalid_response`, and one from preparation or storage `storage_unavailable`; no exception text reaches a result or an event. Expired history (`history_expired`) on a history page opens a `recovery` cycle with a fresh anchor and a new bounded scan; a second expiry in the same run defers the sync as `provider_unavailable` for `pollMs`. Retained items the scan does not list stay until they expire.
|
|
342
342
|
|
|
@@ -151,8 +151,14 @@ export declare class AccountSourceSync<Prepared = unknown> {
|
|
|
151
151
|
* the lease, opens a cycle when none is open (`bootstrap` without a cursor, `reconcile` once `reconcileMs` has
|
|
152
152
|
* passed since the last non-incremental cycle or when none is recorded, as after a change to the exclusions,
|
|
153
153
|
* otherwise `incremental`), drains the queued reads before asking for the next page, and commits the cursor once
|
|
154
|
-
* every item is terminal.
|
|
155
|
-
*
|
|
154
|
+
* every item is terminal. A read that fails with a retriable failure is recorded with its wait, which the store
|
|
155
|
+
* replaces with an `attempt_limit` skip from the tenth failure on once the failures are evidently the read's own.
|
|
156
|
+
* After a `network` or `provider_unavailable` failure with no wait from the provider the run goes on to the next due
|
|
157
|
+
* read, one that has not failed before one whose wait has passed, unless the read before it failed too, which ends
|
|
158
|
+
* the run as `deferred`; a `rate_limited` failure or a provider's wait defers the run until that time, a
|
|
159
|
+
* `storage_unavailable` failure the store did not give up until the read's wait, and with no read due the run defers
|
|
160
|
+
* on the earliest wait. It yields with the checkpoint kept after the policy's changed-item or history-page budget,
|
|
161
|
+
* the run budget or an aborted signal, and never waits out a retry.
|
|
156
162
|
*
|
|
157
163
|
* @param scope - The connection.
|
|
158
164
|
* @param trigger - A scheduled poll or a person's request.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSourceSync.d.ts","sourceRoot":"","sources":["../../src/sync/AccountSourceSync.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EACV,yBAAyB,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAChF,kBAAkB,EACF,qBAAqB,EAAmB,mBAAmB,EAC5E,MAAM,YAAY,CAAC;AACpB,OAAO,EACkB,KAAK,yBAAyB,EAAE,KAAK,gBAAgB,EAC7E,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,6FAA6F;IAC7F,OAAO,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,GAAG,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvG;;;;;OAKG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5B;;;;;OAKG;IACH,mBAAmB,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;C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,EAAE,eAAe,GAAG,IAAI,CAAC;CACvC;AAkBD;;;;;;;;GAQG;AACH,qBAAa,iBAAiB,CAAC,QAAQ,GAAG,OAAO;IAUnC,OAAO,CAAC,QAAQ,CAAC,OAAO;IATpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsC;IAC5D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAe;IACrC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAC1C;;;;OAIG;gBAC0B,OAAO,EAAE,wBAAwB,CAAC,QAAQ,CAAC;IASxE,OAAO,CAAC,GAAG;IAKX,OAAO,CAAC,IAAI;YAKE,MAAM;IAIpB,OAAO,CAAC,EAAE;IAMV;;;;;;;;;;;;;;;;;;OAkBG;IACG,GAAG,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA4OjH;;;;;;;;;;;;;;;;;OAiBG;IACG,QAAQ,CAAC,KAAK,GAAE,eAAe,GAAG,IAAW,EAAE,KAAK,SAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;CA4CxG"}
|
|
@@ -96,8 +96,14 @@ export class AccountSourceSync {
|
|
|
96
96
|
* the lease, opens a cycle when none is open (`bootstrap` without a cursor, `reconcile` once `reconcileMs` has
|
|
97
97
|
* passed since the last non-incremental cycle or when none is recorded, as after a change to the exclusions,
|
|
98
98
|
* otherwise `incremental`), drains the queued reads before asking for the next page, and commits the cursor once
|
|
99
|
-
* every item is terminal.
|
|
100
|
-
*
|
|
99
|
+
* every item is terminal. A read that fails with a retriable failure is recorded with its wait, which the store
|
|
100
|
+
* replaces with an `attempt_limit` skip from the tenth failure on once the failures are evidently the read's own.
|
|
101
|
+
* After a `network` or `provider_unavailable` failure with no wait from the provider the run goes on to the next due
|
|
102
|
+
* read, one that has not failed before one whose wait has passed, unless the read before it failed too, which ends
|
|
103
|
+
* the run as `deferred`; a `rate_limited` failure or a provider's wait defers the run until that time, a
|
|
104
|
+
* `storage_unavailable` failure the store did not give up until the read's wait, and with no read due the run defers
|
|
105
|
+
* on the earliest wait. It yields with the checkpoint kept after the policy's changed-item or history-page budget,
|
|
106
|
+
* the run budget or an aborted signal, and never waits out a retry.
|
|
101
107
|
*
|
|
102
108
|
* @param scope - The connection.
|
|
103
109
|
* @param trigger - A scheduled poll or a person's request.
|
|
@@ -187,13 +193,29 @@ export class AccountSourceSync {
|
|
|
187
193
|
throw new SyncDeferred(error.code, retryAt);
|
|
188
194
|
}
|
|
189
195
|
};
|
|
196
|
+
// A failed read is recorded with its wait, and the store gives it up (`attempt_limit`) from its tenth failure on
|
|
197
|
+
// once the failures are evidently its own. After a failure that may be the read's own, `network` or
|
|
198
|
+
// `provider_unavailable` with no wait from the provider, the run goes on to the next due read, so one source that
|
|
199
|
+
// keeps failing holds back none queued with it, but a second failure in a row ends the run, so an outage that
|
|
200
|
+
// starts during a run fails no more than two reads after the run's last answer. A `rate_limited` failure or a
|
|
201
|
+
// provider's wait, for the mailbox or the whole project, ends the run until that time, and a failure on this side,
|
|
202
|
+
// a preparation or the store, until the read's wait, unless the store gave the read up.
|
|
203
|
+
let failedInRow = 0;
|
|
190
204
|
const deferRead = async (work, fault) => {
|
|
191
205
|
const retryAt = this.at(fault, work.attempts, snapshot.policy.pollMs);
|
|
192
|
-
const
|
|
193
|
-
if (!
|
|
206
|
+
const applied = await this.stored(() => this.store.applyResult(needHandle(), work, { kind: 'retry', id: work.sourceId, reason: fault.code, retryAt }, null));
|
|
207
|
+
if (!applied)
|
|
194
208
|
throw new SyncStale();
|
|
195
|
-
handle =
|
|
196
|
-
|
|
209
|
+
handle = applied.handle;
|
|
210
|
+
failedInRow++;
|
|
211
|
+
const kept = applied.disposition.kind === 'retry';
|
|
212
|
+
if (fault.code === 'rate_limited' || fault.retryAt !== null) {
|
|
213
|
+
throw new SyncDeferred(fault.code, fault.retryAt ?? retryAt);
|
|
214
|
+
}
|
|
215
|
+
if (kept && fault.code === 'storage_unavailable')
|
|
216
|
+
throw new SyncDeferred(fault.code, retryAt);
|
|
217
|
+
if (failedInRow >= 2)
|
|
218
|
+
throw new SyncDeferred(fault.code, kept ? retryAt : this.now() + 1);
|
|
197
219
|
};
|
|
198
220
|
try {
|
|
199
221
|
await this.stored(() => this.options.lifecycle.recover(scope));
|
|
@@ -264,12 +286,15 @@ export class AccountSourceSync {
|
|
|
264
286
|
const work = await this.stored(() => this.store.takeWork(needHandle()));
|
|
265
287
|
if (work) {
|
|
266
288
|
changed++;
|
|
289
|
+
// Whether the provider was asked: an excluded item is recorded without a read, and its skip answers nothing.
|
|
290
|
+
let asked = false;
|
|
267
291
|
try {
|
|
268
292
|
let result;
|
|
269
293
|
if (await this.stored(() => this.store.isExcluded(scope, work.sourceId))) {
|
|
270
294
|
result = { kind: 'skipped', id: work.sourceId, reason: 'excluded' };
|
|
271
295
|
}
|
|
272
296
|
else {
|
|
297
|
+
asked = true;
|
|
273
298
|
const cp = checkpoint;
|
|
274
299
|
result = await external((child) => source.readSource(context(cp.cycleId, cp.cutoff, child), work.sourceId), 'invalid_response');
|
|
275
300
|
}
|
|
@@ -300,11 +325,13 @@ export class AccountSourceSync {
|
|
|
300
325
|
throw new SourceSyncFault('invalid_response');
|
|
301
326
|
handle = applied.handle;
|
|
302
327
|
}
|
|
328
|
+
if (asked)
|
|
329
|
+
failedInRow = 0;
|
|
303
330
|
}
|
|
304
331
|
catch (error) {
|
|
305
|
-
if (error instanceof SourceSyncFault
|
|
306
|
-
|
|
307
|
-
|
|
332
|
+
if (!(error instanceof SourceSyncFault) || !retriable(error))
|
|
333
|
+
throw error;
|
|
334
|
+
await deferRead(work, error);
|
|
308
335
|
}
|
|
309
336
|
const progress = await this.stored(() => this.store.progress(needHandle()));
|
|
310
337
|
if (!progress)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSourceSync.js","sour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MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa;YACxE,IAAI,EAAE,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -213,7 +213,8 @@ export declare class SqlAccountSourceSyncStore<Prepared = unknown> {
|
|
|
213
213
|
/**
|
|
214
214
|
* Claims the connection's lease for one sync. The owner must be active, the host's `active` binding must allow it,
|
|
215
215
|
* no barrier or live lease may be set and the connection must be due for `trigger`; a manual claim records the
|
|
216
|
-
* request.
|
|
216
|
+
* request. With a cycle open, the claim marks where the run starts in the cycle's counts (`answeredAtClaim` and
|
|
217
|
+
* `preparedAtClaim`), so a read that first fails in this run is weighed against what the run did before it too.
|
|
217
218
|
*
|
|
218
219
|
* @returns The handle, or null.
|
|
219
220
|
*/
|
|
@@ -229,7 +230,8 @@ export declare class SqlAccountSourceSyncStore<Prepared = unknown> {
|
|
|
229
230
|
/**
|
|
230
231
|
* Opens a cycle's durable checkpoint and drops the previous cycle's work, or answers the checkpoint already open.
|
|
231
232
|
* An incremental cycle starts from the committed cursor. With `replaceExpiredHistory`, a `recovery` cycle replaces
|
|
232
|
-
* the open one. The cutoff defaults to the connection's last change.
|
|
233
|
+
* the open one. The cutoff defaults to the connection's last change. A new checkpoint holds the cycle's running
|
|
234
|
+
* counts at zero and its opening time by the store's clock (`tally`).
|
|
233
235
|
*
|
|
234
236
|
* @returns The checkpoint, or null for a stale handle or an incremental cycle from another cursor.
|
|
235
237
|
* @throws {SourceSyncFault} `invalid_response` for a cutoff in the future or a replacement that is not `recovery`.
|
|
@@ -240,7 +242,11 @@ export declare class SqlAccountSourceSyncStore<Prepared = unknown> {
|
|
|
240
242
|
}, replaceExpiredHistory?: boolean): Promise<SourceSyncCheckpoint | null>;
|
|
241
243
|
/**
|
|
242
244
|
* Records one page: the next checkpoint and its queued work, in one transaction. The same page sent again right
|
|
243
|
-
* after it was recorded answers the same checkpoint; any other stale revision answers null.
|
|
245
|
+
* after it was recorded answers the same checkpoint; any other stale revision answers null. A page that lists a
|
|
246
|
+
* source already queued in the cycle queues it again as pending, and a settled read comes off the cycle's counts. A
|
|
247
|
+
* read the provider has not answered since it failed, one waiting, pending or given up, keeps its failures and the
|
|
248
|
+
* counts they are weighed against, so a read given up before is given up again at its next failure; a read the
|
|
249
|
+
* provider answered starts a count of its own.
|
|
244
250
|
*
|
|
245
251
|
* @throws {SourceSyncFault} `invalid_response` for an id longer than 512 characters, and the page rules'
|
|
246
252
|
* `invalid_source_sync_page` for a page the checkpoint does not admit.
|
|
@@ -250,9 +256,13 @@ export declare class SqlAccountSourceSyncStore<Prepared = unknown> {
|
|
|
250
256
|
/**
|
|
251
257
|
* Null id takes the first due item. Increment before external work; a crash leaves it pending.
|
|
252
258
|
*
|
|
253
|
-
* An item is due when it is pending or its retry time has come
|
|
254
|
-
*
|
|
255
|
-
*
|
|
259
|
+
* An item is due when it is pending or its retry time has come. Without an id, a pending item is taken before one
|
|
260
|
+
* whose retry time has come, so a read that keeps failing never holds back one that has not failed: the first
|
|
261
|
+
* pending item by source id, then the retry whose wait passed first, ties by source id. Each look reads one row
|
|
262
|
+
* through one of the schema's work indexes, by disposition and source id or by retry time, however many items the
|
|
263
|
+
* cycle queued: the pending look orders by the disposition index's own keys with the kind bounded as a range, so no
|
|
264
|
+
* other index can answer it without a sort and the settled rows before the first pending one are never read. A pending item that already has five attempts and no recorded result, as when a process died during
|
|
265
|
+
* each read, is not taken: it waits `pollMs` as a `storage_unavailable` retry, and the attempt after a wait at five
|
|
256
266
|
* attempts starts a new count.
|
|
257
267
|
*
|
|
258
268
|
* @returns The item with its attempt counted, or null when none is due or the handle is stale.
|
|
@@ -291,6 +301,8 @@ export declare class SqlAccountSourceSyncStore<Prepared = unknown> {
|
|
|
291
301
|
private currentWork;
|
|
292
302
|
private normalized;
|
|
293
303
|
private documentRows;
|
|
304
|
+
/** How many sources the connection retains, counted in the database: the progress after each read never reads their provenance. */
|
|
305
|
+
private documentCount;
|
|
294
306
|
/** Internal provenance enumeration. Never expose this as a browser retrieval response. */
|
|
295
307
|
documents(scope: SourceSyncScope): Promise<readonly SourceSyncStoredDocument[]>;
|
|
296
308
|
/** Whether the connection holds an exclusion for this source id. */
|
|
@@ -298,17 +310,26 @@ export declare class SqlAccountSourceSyncStore<Prepared = unknown> {
|
|
|
298
310
|
private choose;
|
|
299
311
|
/**
|
|
300
312
|
* Applies one read result for a work item taken in this cycle, under a live lease and the owner fence. A retry
|
|
301
|
-
* keeps the work unresolved
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* after
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
313
|
+
* keeps the work unresolved and counts in the row's `failures`, across the counts of attempts `takeWork` starts
|
|
314
|
+
* again after a `pollMs` wait. From its tenth failure on, the store records the read as skipped with `attempt_limit`
|
|
315
|
+
* in place of the wait once its failures are evidently its own: a failure at the provider once the provider has
|
|
316
|
+
* answered another read of the cycle, and a `storage_unavailable` failure once another document of the cycle has
|
|
317
|
+
* been prepared and written, in the run of the read's first failure of that kind (since its lease was claimed) or
|
|
318
|
+
* after it. Without that, as in an outage, the read keeps its wait until its cycle has been open for `reconcileMs`,
|
|
319
|
+
* and its first failure from then on gives it up. That skip keeps the previous copy within its own expiry and window:
|
|
320
|
+
* the read saw nothing of the source, so nothing is decided about the copy, and a later read replaces it. A result
|
|
321
|
+
* that carries `attempt_limit` itself is refused. Each result that settles a work item changes the cycle's running
|
|
322
|
+
* counts with it, in the same transaction. A document is weighed first: excluded, outside the retained limits or
|
|
323
|
+
* over the indexing allowance with the characters it adds to index, it is recorded as a skip with its reason, and
|
|
324
|
+
* so is one whose cache lifetime has ended by the store's clock when it is weighed (`expired`), as a document
|
|
325
|
+
* admitted with seconds of it left and applied again after a longer preparation: an expired read is never refused as
|
|
326
|
+
* malformed. A document that fits replaces the source's old copy in the same transaction (host write, indexing
|
|
327
|
+
* charge and provenance), after the old copy and every result derived from it are purged, evicting this connection's
|
|
328
|
+
* older sources the limits no longer admit. A read that repeats the text and message spans of a copy the store still
|
|
329
|
+
* holds, within its expiry and window, adds nothing to index and is never charged. Any other read of such a copy adds
|
|
330
|
+
* its new and changed messages and is weighed and charged by them alone: a message the copy holds with the same id,
|
|
331
|
+
* text hash, cut and length is free, as is the text before it (its separator and any header lines) when that text is
|
|
332
|
+
* the copy's and the message before it is the one the copy has there, itself unchanged. A reply adds its separator and
|
|
312
333
|
* text, a message edited in place adds itself with the separators on both sides of it, a changed header line or
|
|
313
334
|
* separator adds the text it is in, a message moved after another neighbour adds its separator, and a read that
|
|
314
335
|
* only drops messages adds nothing, since the messages it keeps follow the same neighbours among those kept (a
|
|
@@ -333,14 +354,16 @@ export declare class SqlAccountSourceSyncStore<Prepared = unknown> {
|
|
|
333
354
|
* store's clock, so from then on `readCurrent` answers it expired and the fence neither commits nor delivers a result
|
|
334
355
|
* derived from it, even when the purge that follows fails, as when the host's `purge` binding throws. A failing
|
|
335
356
|
* binding rolls the rest of the application back; the withdrawn copy is past its expiry, so the next `expire` or
|
|
336
|
-
* `sweepExpired` removes it, as does a later application of the read.
|
|
357
|
+
* `sweepExpired` removes it, as does a later application of the read. A read the store gives up withdraws nothing,
|
|
358
|
+
* since it keeps the copy.
|
|
337
359
|
*
|
|
338
360
|
* @param prepared - The host's prepared value for a document result; null for any other result, and for a document
|
|
339
361
|
* weighed before its preparation.
|
|
340
362
|
* @returns The disposition and the handle later calls use, whose ticket reflects any purge; `pending` with the same
|
|
341
363
|
* handle, and nothing recorded, for a document without its prepared value that the store has to write; null for a
|
|
342
364
|
* stale handle or work item.
|
|
343
|
-
* @throws {SourceSyncFault} `invalid_response` for a result that does not match its work item or is malformed
|
|
365
|
+
* @throws {SourceSyncFault} `invalid_response` for a result that does not match its work item or is malformed, a skip
|
|
366
|
+
* that carries `attempt_limit` among them.
|
|
344
367
|
* @throws {Error} `invalid_source_allowance` when the host's allowance is not made of nonnegative safe integers, and
|
|
345
368
|
* `invalid_source_sync_charge` should the characters a read adds come out below zero or fractional, which the
|
|
346
369
|
* ordered spans of a valid read and an intact copy rule out; nothing is charged or written.
|
|
@@ -360,9 +383,26 @@ export declare class SqlAccountSourceSyncStore<Prepared = unknown> {
|
|
|
360
383
|
* store does not know, with nothing withdrawn.
|
|
361
384
|
*/
|
|
362
385
|
private withdraw;
|
|
386
|
+
/**
|
|
387
|
+
* The cycle's work rows counted in the database by disposition and skip reason, once. A row of another cycle or
|
|
388
|
+
* generation, which the drop of that cycle should have removed, makes the count stale, as reading it did.
|
|
389
|
+
*/
|
|
390
|
+
private workCounts;
|
|
363
391
|
private summary;
|
|
364
392
|
/**
|
|
365
|
-
*
|
|
393
|
+
* Counts a cycle's tally from its work rows, for a checkpoint that holds none, as an earlier release wrote it, or
|
|
394
|
+
* one whose counts the store could not have kept. `answered` and `prepared` come from the rows as they stand, every
|
|
395
|
+
* applied document counting as prepared, and the counts at the claim are the counts themselves, so only what the
|
|
396
|
+
* cycle does from here weighs a failure; the opening time is the one the checkpoint kept, or else its cutoff.
|
|
397
|
+
*/
|
|
398
|
+
private countTally;
|
|
399
|
+
/** The open cycle's tally: the one its checkpoint keeps, or one counted from its work rows when it keeps none. */
|
|
400
|
+
private tallyOf;
|
|
401
|
+
/**
|
|
402
|
+
* Records the cycle's progress: its examined and skipped reads from the counts its checkpoint keeps, which the
|
|
403
|
+
* transactions that change the work keep, so it reads no work row, and the retained documents counted in the
|
|
404
|
+
* database. A checkpoint that keeps no counts, as an earlier release wrote it, is counted from its work rows once,
|
|
405
|
+
* and the counts are kept with it from then on.
|
|
366
406
|
*
|
|
367
407
|
* @returns The state, or null for a stale handle.
|
|
368
408
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqlAccountSourceSyncStore.d.ts","sourceRoot":"","sources":["../../src/sync/SqlAccountSourceSyncStore.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EACL,wBAAwB,EACxB,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EACxE,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EACvE,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EACV,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EACtF,oBAAoB,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAC1E,kBAAkB,EAAyB,2BAA2B,EAAE,oBAAoB,EAC5F,yBAAyB,EAAE,oBAAoB,EAA+C,qBAAqB,
|
|
1
|
+
{"version":3,"file":"SqlAccountSourceSyncStore.d.ts","sourceRoot":"","sources":["../../src/sync/SqlAccountSourceSyncStore.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EACL,wBAAwB,EACxB,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,gBAAgB,EACxE,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EACvE,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EACV,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EACtF,oBAAoB,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAC1E,kBAAkB,EAAyB,2BAA2B,EAAE,oBAAoB,EAC5F,yBAAyB,EAAE,oBAAoB,EAA+C,qBAAqB,EAEpH,MAAM,YAAY,CAAC;AAOpB,OAAO,KAAK,EAAE,0BAA0B,EAA4B,MAAM,uBAAuB,CAAC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