You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 11b7c67
Browse filesBrowse the repository at this point in the historyBrowse files
feat(spec,metadata-protocol): the publish receipt's seedApplied.landed names the rows a seed created and the rows it only matched
seedApplied gains an optional `landed` key on both publish responses, one
shared SeedAppliedLandedSchema: per object, `inserted` (rows this publish
created) and `matched` (pre-existing rows a seed key matched), each capped
at SEED_APPLIED_LANDED_IDS_CAP (200) ids with `total` and `truncated`.
The loader publishes SeedLoadResult.insertedIds beside landedIds so the
receipt can tell a created row from a customer row the seed only matched.
Both receipt producers fold through one exported projection.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzi6PCniByMTFP6RQ6P
feat(spec,metadata-protocol): the publish receipt's `seedApplied.landed` names the rows a seed created and the rows it only matched, per object, capped at 200 ids per list
8
+
9
+
Clause-②: yes (widening)
10
+
Metadata-protocol: added
11
+
12
+
-**`@objectstack/spec`: `seedApplied.landed`** on both publish responses (`PublishMetaItemResponseSchema`, `PublishPackageDraftsResponseSchema`), one shared schema `SeedAppliedLandedSchema`: per object, `inserted` (the rows this publish created) and `matched` (pre-existing rows a seed record's key matched: updated, left as they were, or refused an update), each a `SeedAppliedIdListSchema``{ ids, total, truncated }`. `ids` carries at most `SEED_APPLIED_LANDED_IDS_CAP` (200) ids, first landed first; past it `truncated` is `true` and `total` is the uncut count. Absent `landed` means "not reported" (a load that threw, or a producer that reports no ids), never "nothing landed". Only `inserted` names rows the seed created: a `matched` row may be a customer's own record that shares the seed's natural key, and under `ignore` (the default) such a row is matched without being written.
13
+
-**`@objectstack/spec`: `SeedLoadResult.insertedIds`**, the ids among `landedIds` whose row the load created. Per load: a row an earlier load inserted is matched on a replay, so a reader tracking a seed's rows across publishes accumulates `insertedIds` over every load. `landedIds`' TSDoc now says what each seed mode puts in it.
14
+
-**`@objectstack/metadata-protocol`**: `applySeedBodies` returns `landed`, so `publishPackageDrafts` and `publishMetaItem` both carry it; the loader records which landed rows it inserted. `seedAppliedLanded(results)` is exported, the one projection both receipt producers fold the loader's ids through.
15
+
-**`@objectstack/runtime`**: the package-publish door's fallback seed apply (for protocols that do not self-apply) reports the same `landed`.
16
+
- Accepted cost (objectstack-ai/cloud#3598 ruling A): row ids appear on the public publish responses, bounded by the cap.
Copy file name to clipboardExpand all lines: content/docs/references/data/seed-loader.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,6 +164,7 @@ Result of loading a single dataset
164
164
|**referencesDropped**|`integer`| optional (default: `0`) | Reference fields dropped from records that were still written |
165
165
|**summariesStale**|`integer`| optional (default: `0`) | Roll-up summary values left stale by writes for this dataset |
166
166
|**landedIds**|`string[]`| optional (default: `[]`) | Ids of the stored rows this dataset landed on: inserted, updated, or matched on replay |
167
+
|**insertedIds**|`string[]`| optional (default: `[]`) | Ids among landedIds whose row this load created (a successful insert); every other landed id was a pre-existing row a record key matched |
@@ -302,6 +303,7 @@ Result of loading a single dataset
302
303
|**referencesDropped**|`integer`| optional (default: `0`) | Reference fields dropped from records that were still written |
303
304
|**summariesStale**|`integer`| optional (default: `0`) | Roll-up summary values left stale by writes for this dataset |
304
305
|**landedIds**|`string[]`| optional (default: `[]`) | Ids of the stored rows this dataset landed on: inserted, updated, or matched on replay |
306
+
|**insertedIds**|`string[]`| optional (default: `[]`) | Ids among landedIds whose row this load created (a successful insert); every other landed id was a pre-existing row a record key matched |
|[Automation Protocol](/docs/references/automation)| 16 | 81 | Flows and their nodes, approvals, ETL pipelines, webhooks, state machines, execution records. |
26
26
|[Data Protocol](/docs/references/data)| 31 | 175 | Objects, fields, queries, filters, datasources and drivers — the ObjectQL layer. |
0 commit comments