farseer-cli 1.15.0 → 1.17.0

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.
Files changed (55) hide show
  1. package/README.md +328 -0
  2. package/dist/commands/code.js +104 -0
  3. package/dist/commands/code.js.map +7 -0
  4. package/dist/commands/model.js +14 -4
  5. package/dist/commands/model.js.map +2 -2
  6. package/dist/index.js +16 -0
  7. package/dist/index.js.map +2 -2
  8. package/dist/pipeline/generated-reference.json +30 -30
  9. package/dist/pipeline/service.js +2 -2
  10. package/dist/pipeline/service.js.map +2 -2
  11. package/dist/services/codefirst/api.js +269 -0
  12. package/dist/services/codefirst/api.js.map +7 -0
  13. package/dist/services/codefirst/binaryDisk.js +67 -0
  14. package/dist/services/codefirst/binaryDisk.js.map +7 -0
  15. package/dist/services/codefirst/byteHashes.js +129 -0
  16. package/dist/services/codefirst/byteHashes.js.map +7 -0
  17. package/dist/services/codefirst/documents.js +563 -0
  18. package/dist/services/codefirst/documents.js.map +7 -0
  19. package/dist/services/codefirst/layoutBinaryProjection.js +974 -0
  20. package/dist/services/codefirst/layoutBinaryProjection.js.map +7 -0
  21. package/dist/services/codefirst/layoutCompose.js +593 -0
  22. package/dist/services/codefirst/layoutCompose.js.map +7 -0
  23. package/dist/services/codefirst/layoutCore.js +260 -0
  24. package/dist/services/codefirst/layoutCore.js.map +7 -0
  25. package/dist/services/codefirst/layoutPaths.js +492 -0
  26. package/dist/services/codefirst/layoutPaths.js.map +7 -0
  27. package/dist/services/codefirst/layoutProjection.js +995 -0
  28. package/dist/services/codefirst/layoutProjection.js.map +7 -0
  29. package/dist/services/codefirst/layoutReadback.js +2552 -0
  30. package/dist/services/codefirst/layoutReadback.js.map +7 -0
  31. package/dist/services/codefirst/layoutReadbackPlacement.js +1517 -0
  32. package/dist/services/codefirst/layoutReadbackPlacement.js.map +7 -0
  33. package/dist/services/codefirst/layoutReceipt.js +1592 -0
  34. package/dist/services/codefirst/layoutReceipt.js.map +7 -0
  35. package/dist/services/codefirst/layoutScan.js +882 -0
  36. package/dist/services/codefirst/layoutScan.js.map +7 -0
  37. package/dist/services/codefirst/output.js +179 -0
  38. package/dist/services/codefirst/output.js.map +7 -0
  39. package/dist/services/codefirst/types.js +17 -0
  40. package/dist/services/codefirst/types.js.map +7 -0
  41. package/dist/services/codefirst/workflow.js +581 -0
  42. package/dist/services/codefirst/workflow.js.map +7 -0
  43. package/dist/services/codefirst/workspace.js +310 -0
  44. package/dist/services/codefirst/workspace.js.map +7 -0
  45. package/dist/services/codefirst/workspaceLock.js +148 -0
  46. package/dist/services/codefirst/workspaceLock.js.map +7 -0
  47. package/dist/services/codefirst/workspaceRoot.js +147 -0
  48. package/dist/services/codefirst/workspaceRoot.js.map +7 -0
  49. package/dist/utils/logger.js +9 -3
  50. package/dist/utils/logger.js.map +2 -2
  51. package/docs/pipeline-client-guide.md +2 -2
  52. package/docs/pipeline-reference.md +156 -99
  53. package/package.json +3 -2
  54. package/skills/pipeline-authoring/SKILL.md +10 -8
  55. package/skills/pipeline-authoring/practices.md +39 -25
@@ -1,4 +1,4 @@
1
- # Pipeline YAML reference: engine 2.9.1
1
+ # Pipeline YAML reference: engine 3.0.0
2
2
 
3
3
  Generated file. Regenerate with `tools/pipeline/generate_docs.py`.
4
4
 
@@ -8,14 +8,13 @@ Read a topic through `farseer pipeline guide --topic NAME` or MCP `farseer_pipel
8
8
 
9
9
  - [DatasetDefinition](#datasetdefinition)
10
10
  - [BusinessCentralExtractConfig](#businesscentralextractconfig)
11
- - [CSVWriteOptions](#csvwriteoptions)
12
11
  - [CellsOptions](#cellsoptions)
13
12
  - [ColumnSchema](#columnschema)
14
13
  - [ConflictBehavior](#conflictbehavior)
15
14
  - [Connection](#connection)
16
15
  - [CsvParseOptions](#csvparseoptions)
16
+ - [CsvWriteOptions](#csvwriteoptions)
17
17
  - [CustomField](#customfield)
18
- - [DataFormat](#dataformat)
19
18
  - [DataSchema](#dataschema)
20
19
  - [DateColumn](#datecolumn)
21
20
  - [DimensionTableEntryOptions](#dimensiontableentryoptions)
@@ -100,14 +99,14 @@ Read a topic through `farseer pipeline guide --topic NAME` or MCP `farseer_pipel
100
99
  - [TransformConfig](#transformconfig)
101
100
  - [TransformEngine](#transformengine)
102
101
  - [WriteMode](#writemode)
103
- - [XLSXWriteOptions](#xlsxwriteoptions)
104
102
  - [XlsxParseOptions](#xlsxparseoptions)
103
+ - [XlsxWriteOptions](#xlsxwriteoptions)
105
104
 
106
105
  ## DatasetDefinition
107
106
 
108
107
  Validated representation of a single dataset YAML file.
109
108
 
110
- - Set exactly the configuration block matching type: extract, transform, load or export.
109
+ - Set exactly the configuration block matching type: extract, parse, transform, load or export.
111
110
  - For load/export, deps must match the explicitly referenced source_dataset names in both directions. Use qualified names verbatim.
112
111
  - Authored pipelines are validated before any source is read: sql_file and farseer_credentials are refused; read the method guide before using this full engine reference.
113
112
  - Steps run in dependency order, and steps at the same depth run in name order, so a quality check or reconciliation runs before a load only if the load's source dataset depends on it.
@@ -122,6 +121,7 @@ Unknown fields are rejected.
122
121
  | `deps` | array of string | no | none | |
123
122
  | `description` | string | no | `""` | |
124
123
  | `extract` | [ExtractConfig](#extractconfig) or null | no | `null` | |
124
+ | `parse` | [ParseConfig](#parseconfig) or null | no | `null` | |
125
125
  | `transform` | [TransformConfig](#transformconfig) or null | no | `null` | |
126
126
  | `load` | [LoadConfig](#loadconfig) or null | no | `null` | |
127
127
  | `export` | [ExportConfig](#exportconfig) or null | no | `null` | |
@@ -188,20 +188,6 @@ Unknown fields are rejected.
188
188
  | `client_id` | string or null | no | `null` | |
189
189
  | `client_secret` | string or null | no | `null` | |
190
190
 
191
- ## CSVWriteOptions
192
-
193
- Options for DataFrame → CSV serialization on export.
194
-
195
- Unknown fields are rejected.
196
-
197
- | YAML field | Type | Required | Default | Constraints / description |
198
- | --- | --- | --- | --- | --- |
199
- | `separator` | string | no | `","` | |
200
- | `decimal` | string | no | `"."` | |
201
- | `encoding` | string | no | `"utf-8"` | |
202
- | `include_header` | boolean | no | `true` | |
203
- | `lineterminator` | string | no | `"\n"` | minLength=`1` |
204
-
205
191
  ## CellsOptions
206
192
 
207
193
  Per-entry options for cell value import.
@@ -263,7 +249,7 @@ Unknown fields are rejected.
263
249
 
264
250
  ## CsvParseOptions
265
251
 
266
- csv-specific parse options (passed to `pd.read_csv`).
252
+ How to read a csv payload.
267
253
 
268
254
  Unknown fields are rejected.
269
255
 
@@ -275,6 +261,20 @@ Unknown fields are rejected.
275
261
  | `has_header` | boolean | no | `true` | |
276
262
  | `columns` | string or null | no | `null` | |
277
263
 
264
+ ## CsvWriteOptions
265
+
266
+ Options for DataFrame → CSV serialization on export.
267
+
268
+ Unknown fields are rejected.
269
+
270
+ | YAML field | Type | Required | Default | Constraints / description |
271
+ | --- | --- | --- | --- | --- |
272
+ | `separator` | string | no | `","` | |
273
+ | `decimal` | string | no | `"."` | |
274
+ | `encoding` | string | no | `"utf-8"` | |
275
+ | `include_header` | boolean | no | `true` | |
276
+ | `lineterminator` | string | no | `"\n"` | minLength=`1` |
277
+
278
278
  ## CustomField
279
279
 
280
280
  Maps a DataFrame column to a CUSTOM column meta.
@@ -289,10 +289,6 @@ Unknown fields are rejected.
289
289
  | --- | --- | --- | --- | --- |
290
290
  | `source_column` | string | yes | none | |
291
291
 
292
- ## DataFormat
293
-
294
- Values: `"parquet"`, `"csv"`, `"json"`
295
-
296
292
  ## DataSchema
297
293
 
298
294
  Top-level `schema:` block in a dataset YAML.
@@ -403,8 +399,7 @@ Unknown fields are rejected.
403
399
  | `hubspot` | [HubspotExtractConfig](#hubspotextractconfig) or null | no | `null` | |
404
400
  | `sap_odata` | [SapOdataExtractConfig](#sapodataextractconfig) or null | no | `null` | |
405
401
  | `s3` | [S3ExtractConfig](#s3extractconfig) or null | no | `null` | |
406
- | `parse` | [ParseConfig](#parseconfig) | no | none | |
407
- | `optional` | boolean | no | `false` | When true, a source that does not exist (404, no such table, no such file) skips this dataset instead of failing the run. The skip propagates to every step that depends on it, loads and exports included, and the run still finishes successfully. Network errors, authentication failures, timeouts and 5xx responses still fail the run. |
402
+ | `optional` | boolean | no | `false` | When true, a source that does not exist (404, no such table, no such file) skips this extract instead of failing the run. The skip propagates to the parse step reading it and every step that depends on that, loads and exports included, and the run still finishes successfully. Network errors, authentication failures, timeouts and 5xx responses still fail the run. |
408
403
 
409
404
  ## ExtractType
410
405
 
@@ -627,8 +622,8 @@ Unknown fields are rejected.
627
622
 
628
623
  ```yaml
629
624
  # Models/sales_raw.yaml: a file's name must match its `name:`.
630
- # Reads one month's CSV from Files. The run argument picks the file, so each run
631
- # reads its own month.
625
+ # Stores one month's CSV from Files unread, for the parse step `sales` to read.
626
+ # The run argument picks the file, so each run reads its own month.
632
627
  name: sales_raw
633
628
  type: extract
634
629
  extract:
@@ -637,8 +632,6 @@ extract:
637
632
  source: files
638
633
  files:
639
634
  file: "Imports/{{ pipeline_args.SOURCE_FILE }}"
640
- parse:
641
- format: csv
642
635
  ```
643
636
 
644
637
  ## FarseerImportsExtractConfig
@@ -858,9 +851,10 @@ token is supplied as a YAML field, typically templated via
858
851
  `source:` picks the grain; the matching inner block carries its
859
852
  config. One token covers every source, so it lives out here.
860
853
 
861
- Every source lands parquet, so a surrounding `parse:` block is never
862
- consulted — same as `business_central` and `sql_database`. A declared
863
- `schema:` therefore checks the result rather than instructing the read.
854
+ Every source stores a parquet payload, which a parse step reads with
855
+ `format: parquet` — same as `business_central` and `sql_database`. A
856
+ `schema:` goes on that parse step, where it checks the result rather than
857
+ instructing the read.
864
858
 
865
859
  HubSpot serializes every record property as a JSON *string*, including
866
860
  numbers, booleans and dates. The extractor reads the object's property
@@ -1058,9 +1052,9 @@ workspace (a "private" app for this one workspace is the usual shape);
1058
1052
  it is supplied as a YAML field, typically templated via
1059
1053
  `{{ pipeline_args.INTERCOM_ACCESS_TOKEN }}`. `region` picks the API host.
1060
1054
 
1061
- Every source lands parquet, so a surrounding `parse:` block is never
1062
- consulted, and a declared `schema:` checks the result rather than
1063
- instructing the read. Timestamps arrive as seconds since the epoch and
1055
+ Every source stores a parquet payload, which a parse step reads with
1056
+ `format: parquet`; a `schema:` on that parse step checks the result rather
1057
+ than instructing the read. Timestamps arrive as seconds since the epoch and
1064
1058
  land as timezone-naive UTC datetimes. Lists on a record (contact ids,
1065
1059
  tag names) land as `|`-joined text; structures with no fixed shape
1066
1060
  (custom attributes) land as JSON text.
@@ -1096,7 +1090,7 @@ Values: `"conversations"`, `"conversation_parts"`, `"contacts"`, `"admins"`
1096
1090
 
1097
1091
  ## JsonParseOptions
1098
1092
 
1099
- json-specific parse options (passed to `pd.read_json`).
1093
+ How to read a json payload.
1100
1094
 
1101
1095
  Unknown fields are rejected.
1102
1096
 
@@ -1335,7 +1329,8 @@ database directly; Notion's later versions split a database from its
1335
1329
  data sources, and a database with more than one data source needs the
1336
1330
  query addressed to a data source, which this extractor does not do.
1337
1331
 
1338
- Every source lands parquet; a `parse:` block is never consulted.
1332
+ Every source stores a parquet payload, which a parse step reads with
1333
+ `format: parquet`.
1339
1334
 
1340
1335
  Unknown fields are rejected.
1341
1336
 
@@ -1383,22 +1378,56 @@ Unknown fields are rejected.
1383
1378
 
1384
1379
  ## ParseConfig
1385
1380
 
1386
- Parsing options for downloaded extract data.
1381
+ The `parse:` block of a `type: parse` dataset.
1382
+
1383
+ Exactly one of `format` or `script` says how the payload is read: a
1384
+ built-in reader for a format we handle, or an author's `@parse` function in
1385
+ `Code/`, for a source the built-ins cannot read. Neither is defaulted --
1386
+ a step that quietly assumed csv would read a spreadsheet as text and
1387
+ produce one unusable column.
1388
+
1389
+ `function` names which `@parse` function in `script` backs this dataset,
1390
+ for a script holding several; it binds by dataset leaf name when omitted.
1387
1391
 
1388
- Format-specific options live in per-format blocks (`csv_options` /
1389
- `xlsx_options` / `json_options`); only the block matching `format`
1390
- may be set, and the matching block defaults when omitted. `parquet` has
1391
- no read options. Same per-format block *shape* as the export side, but
1392
- stricter: a block that does not match `format` is rejected, not ignored.
1392
+ Read options live in the block named for `format` -- `csv:`, `xlsx:`, `json:`
1393
+ -- and a block that does not match is rejected rather than ignored, so an
1394
+ option written under the wrong format fails instead of silently doing
1395
+ nothing. `parquet` carries its own types and has no options.
1396
+
1397
+ parse:
1398
+ format: csv
1399
+ csv:
1400
+ encoding: windows-1250
1401
+
1402
+ The four formats are the four the built-in readers handle: a source that
1403
+ hands back a table lands parquet, a file source lands the file it
1404
+ downloaded, and `xlsx` reads both Excel containers by sniffing the file,
1405
+ because one logical dataset can arrive as `.xlsx` one month and legacy
1406
+ `.xls` the next.
1393
1407
 
1394
1408
  Unknown fields are rejected.
1395
1409
 
1396
1410
  | YAML field | Type | Required | Default | Constraints / description |
1397
1411
  | --- | --- | --- | --- | --- |
1398
- | `format` | `"csv"`, `"parquet"`, `"json"`, `"xlsx"` | no | `"csv"` | |
1399
- | `csv_options` | [CsvParseOptions](#csvparseoptions) or null | no | `null` | |
1400
- | `xlsx_options` | [XlsxParseOptions](#xlsxparseoptions) or null | no | `null` | |
1401
- | `json_options` | [JsonParseOptions](#jsonparseoptions) or null | no | `null` | |
1412
+ | `format` | `"csv"`, `"parquet"`, `"json"`, `"xlsx"` or null | no | `null` | |
1413
+ | `script` | string or null | no | `null` | |
1414
+ | `function` | string or null | no | `null` | |
1415
+ | `csv` | [CsvParseOptions](#csvparseoptions) or null | no | `null` | |
1416
+ | `xlsx` | [XlsxParseOptions](#xlsxparseoptions) or null | no | `null` | |
1417
+ | `json` | [JsonParseOptions](#jsonparseoptions) or null | no | `null` | |
1418
+
1419
+ ### Example
1420
+
1421
+ ```yaml
1422
+ # Models/sales.yaml: a file's name must match its `name:`.
1423
+ # Reads the CSV the extract `sales_raw` stored. Every extract is read by a parse
1424
+ # step, and only a parse step reads an extract.
1425
+ name: sales
1426
+ type: parse
1427
+ deps: [sales_raw]
1428
+ parse:
1429
+ format: csv
1430
+ ```
1402
1431
 
1403
1432
  ## QualityRuleEntry
1404
1433
 
@@ -1555,17 +1584,23 @@ typically templated via `{{ pipeline_args.NAME }}`.
1555
1584
 
1556
1585
  The entity URL is composed as `{base_url}{service_path}/{entity_set}`,
1557
1586
  kept as separate fields so authors can't glue them into a malformed path.
1587
+ `entity_set` is the set's name as the service's `$metadata` lists it,
1588
+ since that entry types the columns: a key, a parameterised view's
1589
+ parameters or a navigation path is refused.
1558
1590
 
1559
- Without `cursor`, every run re-reads the whole entity set, so pair it
1560
- with the dataset's `write_mode: overwrite` for a full refresh.
1591
+ Without `cursor` or `odp`, every run re-reads the whole entity set, so pair it
1592
+ with `write_mode: overwrite` on the parse step reading it for a full
1593
+ refresh.
1561
1594
 
1562
1595
  With `cursor` (see `SapOdataCursor`) the read is incremental: each run
1563
1596
  reads only the rows whose change stamp moved since the last published
1564
- run, and the dataset's watermark, kept by the backend, remembers how far
1565
- that was. Discovery then requires `write_mode: upsert` on the entity's
1566
- key, because a changed row arrives again and has to replace the row it
1567
- was, and `sap_client`, because the stream is one client's data. Nothing
1568
- is registered in SAP -- the position lives only in the watermark.
1597
+ run, and the watermark of the parse step's dataset, kept by the backend,
1598
+ remembers how far that was. The one parse step reading it must then declare
1599
+ `write_mode: upsert` with the entity's key as `merge_keys`, because a
1600
+ changed row arrives again and has to replace the row it was, and the
1601
+ extract needs `sap_client`, because the stream is one client's data. Both
1602
+ are refused before any step runs. Nothing is registered in SAP -- the
1603
+ position lives only in the watermark.
1569
1604
 
1570
1605
  What the cursor cannot see: a change that does not move the stamp, a
1571
1606
  row whose commit lagged its stamp by more than the settle lag, a column
@@ -1576,15 +1611,21 @@ all but the last; deleted rows stay.
1576
1611
  **Changing the stream needs an operator step.** The stored progress is
1577
1612
  keyed by the Gateway origin and path, the entity set, the client, the
1578
1613
  cursor columns, the zero-stamp rule and a hash of `select`. Changing any of them makes every
1579
- later run refuse, until `DELETE /labs/datasets/{id}/watermark` resets the
1614
+ later run refuse, until `DELETE /labs/datasets/{id}/watermark` -- the id
1615
+ of the parse step's dataset, where the position is kept -- resets the
1580
1616
  progress and the next run reads the whole entity set again.
1581
1617
 
1582
1618
  With `odp` (see `SapOdataOdp`) the read is incremental through SAP's own
1583
1619
  change tracking instead. It opens a subscription in SAP, so it needs a
1584
- dedicated SAP user or service per dataset and environment. Discovery
1585
- applies the same rules as for `cursor`, refuses both together, requires
1586
- `odp.key` to equal `merge_keys`, and refuses `select`: how SAP applies
1587
- the initial load's projection to a delta read is not verified.
1620
+ dedicated SAP user or service per dataset and environment. Its stored
1621
+ progress is keyed by a digest of the SAP user instead of the cursor
1622
+ settings, and after the watermark is deleted a run refuses while the
1623
+ user's subscription exists, until `odp.reset_subscription_until` is set
1624
+ for one run. The parse-step and `sap_client` rules apply as for `cursor`,
1625
+ and besides them both together are refused,
1626
+ `odp.key` has to equal the parse step's `merge_keys`, and `select` is
1627
+ refused: how SAP applies the initial load's projection to a delta read
1628
+ is not verified.
1588
1629
 
1589
1630
  `select` is OData `$select` passthrough. There is no `$filter`: SAP drops
1590
1631
  a filter its ODP translation cannot handle and answers with every row,
@@ -1632,8 +1673,8 @@ the same. A recovery sends its requests in the order SAP delivered them,
1632
1673
  but within one request SAP's order is not change order, so a source that
1633
1674
  sends two different images of one key in one request, as an extractor's
1634
1675
  after-image delta process may, can keep the older one. It is wrong for
1635
- sources that send differences. `key` has to equal the dataset's
1636
- `merge_keys`.
1676
+ sources that send differences. `key` has to equal the `merge_keys` of the
1677
+ parse step reading the extract.
1637
1678
 
1638
1679
  `deletes` is the rule for SAP's delete records. `ignore` is the only rule
1639
1680
  for now: they are dropped and counted, so an archived document stays in
@@ -1645,8 +1686,9 @@ or forgotten setting stops acting. `reset_subscription_until` ends this
1645
1686
  user's subscription on the service before the initial load of a dataset
1646
1687
  with no committed position; without it such a run refuses, since the
1647
1688
  subscription may be another dataset's. `release_until` ends the
1648
- subscription of a dataset that holds a committed position and publishes
1649
- a released position, which every later run reads as nothing to do;
1689
+ subscription of a dataset that holds a committed position, and the parse
1690
+ step reading the extract publishes a released position, which every later
1691
+ run reads as nothing to do;
1650
1692
  nothing else ends it, because the backend holds no SAP credentials.
1651
1693
 
1652
1694
  Unknown fields are rejected.
@@ -1669,6 +1711,15 @@ SharePoint extractor already ships with — same `tenant_id` /
1669
1711
  `client_id` / `client_secret` triple, same `{{ pipeline_args.* }}`
1670
1712
  templating, same `library_name` conventions.
1671
1713
 
1714
+ Write options live in the block named for `format` -- `csv:` or `xlsx:` --
1715
+ by the rule a parse step's read options follow: the block for `format` is
1716
+ filled with defaults when omitted, a block for another format is refused
1717
+ rather than ignored, and `parquet` has none.
1718
+
1719
+ format: xlsx
1720
+ xlsx:
1721
+ sheet_name: Monthly
1722
+
1672
1723
  Required Azure AD application permissions: either `Sites.ReadWrite.All`
1673
1724
  (tenant-wide) or `Sites.Selected` + per-site `write` grant.
1674
1725
 
@@ -1692,8 +1743,8 @@ Unknown fields are rejected.
1692
1743
  | `client_secret` | string or null | no | `null` | |
1693
1744
  | `format` | [ExportFormat](#exportformat) | no | `"csv"` | |
1694
1745
  | `conflict_behavior` | [ConflictBehavior](#conflictbehavior) | no | `"replace"` | |
1695
- | `csv_options` | [CSVWriteOptions](#csvwriteoptions) | no | none | |
1696
- | `xlsx_options` | [XLSXWriteOptions](#xlsxwriteoptions) | no | none | |
1746
+ | `csv` | [CsvWriteOptions](#csvwriteoptions) or null | no | `null` | |
1747
+ | `xlsx` | [XlsxWriteOptions](#xlsxwriteoptions) or null | no | `null` | |
1697
1748
 
1698
1749
  ## SharePointExtractConfig
1699
1750
 
@@ -1737,9 +1788,12 @@ remembers that position across runs. The window is fixed before it is
1737
1788
  read: the run first asks the source for the column's current maximum, then
1738
1789
  reads `(committed, maximum]`. Each retry measures a new maximum; the bound
1739
1790
  is fixed within one attempt and does not provide a shared database snapshot.
1740
- The tenant chooses `write_mode` independently: append and upsert accumulate
1741
- rows, while overwrite retains only the latest published window. The store
1742
- must support the requested mode and the extraction lifecycle (see `WriteMode`).
1791
+ Exactly one parse step reads it, and that step chooses `write_mode`
1792
+ independently: append and upsert accumulate rows, while overwrite retains
1793
+ only the latest published window. The window is published as part of the
1794
+ parse step's dataset, which is why the position is tracked on that dataset
1795
+ rather than on this one. The store must support the requested mode and the
1796
+ extraction lifecycle (see `WriteMode`).
1743
1797
 
1744
1798
  What the cursor cannot see: a row whose cursor value does not change when
1745
1799
  the row changes, and a row deleted at the source. Both stay as they were
@@ -1758,7 +1812,8 @@ a `query`, the relation is a hash of its exact text), plus a hash of any
1758
1812
  driver options left in the URL. Changing any of them in this YAML makes
1759
1813
  every later run refuse:
1760
1814
  a position measured against one stream never applied to another. Answering
1761
- that refusal is `PUT /labs/datasets/{id}/watermark`, which states the new
1815
+ that refusal is `PUT /labs/datasets/{id}/watermark` -- the id of the parse
1816
+ step's dataset, where the position is kept -- which states the new
1762
1817
  key and the position to carry over. Nothing about the data already stored
1763
1818
  changes. The position carried over names the column it was measured on, and
1764
1819
  a run whose cursor is a different column refuses it rather than bounding on
@@ -1776,7 +1831,7 @@ Unknown fields are rejected.
1776
1831
 
1777
1832
  ## StepType
1778
1833
 
1779
- Values: `"extract"`, `"transform"`, `"load"`, `"export"`
1834
+ Values: `"extract"`, `"parse"`, `"transform"`, `"load"`, `"export"`
1780
1835
 
1781
1836
  ## TenantCredentialsConfig
1782
1837
 
@@ -1857,7 +1912,7 @@ extractor logs and skips per meeting rather than failing the run.
1857
1912
  `meetings` is one row per meeting; `transcripts` one row per spoken
1858
1913
  segment; `notes` one row per meeting with tl;dv's generated notes as
1859
1914
  Markdown. The filter block is the same on all three. Every source
1860
- lands parquet; a `parse:` block is never consulted.
1915
+ stores a parquet payload, which a parse step reads with `format: parquet`.
1861
1916
 
1862
1917
  Unknown fields are rejected.
1863
1918
 
@@ -1942,11 +1997,9 @@ back many datasets (e.g. a single `tb_any` used by `tb_c4c`, `tb_cdg`,
1942
1997
  keyword-only `args` parameter, if it declares one. The script lives under
1943
1998
  `Code/`, mirroring the dataset's folder under `Models/`.
1944
1999
 
1945
- `format` must be parquet, which is also its default, so there is normally
1946
- no reason to set it. A transform's output is typed and read back by
1947
- scanning it, and neither survives csv or json; the rule is enforced at
1948
- discovery by `validate_transform_declarations`, not here, so that a bad
1949
- value fails the run rather than skipping the dataset.
2000
+ Whatever the engine, the output is parquet, so there is no format to set:
2001
+ a transform's output is typed and read back by scanning it, and neither
2002
+ survives csv or json.
1950
2003
 
1951
2004
  Unknown fields are rejected.
1952
2005
 
@@ -1957,7 +2010,6 @@ Unknown fields are rejected.
1957
2010
  | `function` | string or null | no | `null` | |
1958
2011
  | `query` | string or null | no | `null` | |
1959
2012
  | `sql_file` | string or null | no | `null` | |
1960
- | `format` | [DataFormat](#dataformat) | no | `"parquet"` | |
1961
2013
  | `args` | object | no | none | |
1962
2014
  | `max_file_size` | string or integer or null | no | `null` | |
1963
2015
 
@@ -1969,7 +2021,7 @@ Unknown fields are rejected.
1969
2021
  # its leaf name; cast SUMs and dates, which DuckDB returns as DECIMAL and DATE.
1970
2022
  name: sales_monthly
1971
2023
  type: transform
1972
- deps: [sales_raw]
2024
+ deps: [sales]
1973
2025
  transform:
1974
2026
  engine: duckdb
1975
2027
  query: |
@@ -1978,7 +2030,7 @@ transform:
1978
2030
  region,
1979
2031
  strftime(CAST(sale_date AS DATE), '%Y-%m-01') AS month,
1980
2032
  CAST(SUM(amount) AS DOUBLE) AS amount
1981
- FROM sales_raw
2033
+ FROM sales
1982
2034
  GROUP BY ALL
1983
2035
  ```
1984
2036
 
@@ -2006,14 +2058,18 @@ Values: `"python"`, `"duckdb"`, `"ibis"`
2006
2058
 
2007
2059
  ## WriteMode
2008
2060
 
2009
- Choose how an extract or transform writes its output to a dataset.
2061
+ Choose how a parse step or transform writes its output to a dataset.
2010
2062
 
2011
2063
  `overwrite` replaces the rows, `append` adds rows, and `upsert` replaces
2012
2064
  matching keys while retaining the others. The tenant chooses the mode on
2013
- each run, independently of whether the source uses a cursor. Overwriting
2014
- an incremental window and appending a complete result are both intentional
2015
- choices we support. The store must implement the requested mode; currently
2016
- only the Iceberg store supports append and upsert.
2065
+ each run, independently of whether the source uses a SQL cursor.
2066
+ Overwriting an incremental window and appending a complete result are both
2067
+ intentional choices we support. A SAP OData window (`cursor` or `odp`) is
2068
+ the exception: a changed row arrives again, so the parse step reading it
2069
+ must upsert on the entity's key, or the run fails before any step runs. The
2070
+ store must implement the requested mode; currently only the Iceberg store
2071
+ supports append and upsert. An extract declares no mode: it stores a
2072
+ payload, and the dataset is the parse step reading it.
2017
2073
 
2018
2074
  Quality rules and `schema:` see the accumulated dataset rather than this
2019
2075
  run's rows, because validation loads back what was persisted. A rule has to
@@ -2028,10 +2084,11 @@ serves an older delta token only as a recovery of what it already
2028
2084
  delivered): that window is published, empty, to carry it. Declared validation
2029
2085
  still checks the published dataset: rules may have changed since the last
2030
2086
  publication. A first run over an empty source does publish, so a consumer
2031
- finds an empty dataset rather than none, provided the step declares its
2032
- column types under `schema:`. Without them the Iceberg store refuses that
2033
- run: every column of an empty result arrives untyped, and a new table needs
2034
- types.
2087
+ finds an empty dataset rather than none, provided its columns are typed:
2088
+ declared under `schema:`, or already typed in the payload, as a SAP OData
2089
+ read's are from the service's `$metadata`. Without types the Iceberg store
2090
+ refuses that run: every column of an empty result arrives untyped, and a
2091
+ new table needs types.
2035
2092
 
2036
2093
  The candidate that a quiet run opened is cancelled and its logical version
2037
2094
  number stays consumed. Physical cleanup and metadata retention are deferred;
@@ -2039,26 +2096,26 @@ the abandonment sweep only marks eligible active attempts cancelled.
2039
2096
 
2040
2097
  Values: `"overwrite"`, `"append"`, `"upsert"`
2041
2098
 
2042
- ## XLSXWriteOptions
2099
+ ## XlsxParseOptions
2043
2100
 
2044
- Options for DataFrame → XLSX serialization on export.
2101
+ How to read an xlsx payload.
2045
2102
 
2046
2103
  Unknown fields are rejected.
2047
2104
 
2048
2105
  | YAML field | Type | Required | Default | Constraints / description |
2049
2106
  | --- | --- | --- | --- | --- |
2050
- | `sheet_name` | string | no | `"Sheet1"` | |
2051
- | `include_header` | boolean | no | `true` | |
2107
+ | `sheet_name` | string or integer | no | `0` | |
2108
+ | `columns` | string or null | no | `null` | |
2109
+ | `has_header` | boolean | no | `true` | |
2110
+ | `start_row` | integer or null | no | `null` | |
2052
2111
 
2053
- ## XlsxParseOptions
2112
+ ## XlsxWriteOptions
2054
2113
 
2055
- xlsx-specific parse options (passed to `pd.read_excel`).
2114
+ Options for DataFrame → XLSX serialization on export.
2056
2115
 
2057
2116
  Unknown fields are rejected.
2058
2117
 
2059
2118
  | YAML field | Type | Required | Default | Constraints / description |
2060
2119
  | --- | --- | --- | --- | --- |
2061
- | `sheet_name` | string or integer | no | `0` | |
2062
- | `columns` | string or null | no | `null` | |
2063
- | `has_header` | boolean | no | `true` | |
2064
- | `start_row` | integer or null | no | `null` | |
2120
+ | `sheet_name` | string | no | `"Sheet1"` | |
2121
+ | `include_header` | boolean | no | `true` | |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "farseer-cli",
3
- "version": "1.15.0",
3
+ "version": "1.17.0",
4
4
  "description": "CLI tool for syncing Farseer App scripts between local folder and Farseer instances",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -17,6 +17,7 @@
17
17
  "build": "node build.js",
18
18
  "docs:check": "node scripts/check-pipeline-docs.js",
19
19
  "typecheck": "tsc --noEmit",
20
+ "typecheck:codefirst-tests": "tsc -p tsconfig.codefirst-tests.json",
20
21
  "build:tsc": "tsc",
21
22
  "lint": "eslint src --ext .ts",
22
23
  "format:check": "prettier --check src",
@@ -54,7 +55,7 @@
54
55
  "chalk": "^4.1.2",
55
56
  "commander": "^11.1.0",
56
57
  "diff": "^5.1.0",
57
- "farseer-client": "npm:@farseerdev/farseer-client@1.18.1",
58
+ "farseer-client": "npm:@farseerdev/farseer-client@1.22.0",
58
59
  "inquirer": "^8.2.6",
59
60
  "js-yaml": "4.1.1",
60
61
  "zod": "^3.25.0"
@@ -4,12 +4,12 @@ description: Author all new repeatable Farseer data pipelines with Simple Pipeli
4
4
  metadata:
5
5
  version: "1"
6
6
  minimum-cli: "1.14.2"
7
- engine-profile: "2.9"
7
+ engine-profile: "3.0"
8
8
  ---
9
9
 
10
10
  # Pipeline authoring
11
11
 
12
- Pipeline authoring for simple-pipelines 2.9, the engine line in the runner image this CLI was released with. Patch releases keep the grammar, so any 2.9 engine runs what this skill describes.
12
+ Pipeline authoring for simple-pipelines 3.0, the engine line in the runner image this CLI was released with. Patch releases keep the grammar, so any 3.0 engine runs what this skill describes.
13
13
 
14
14
  ## What this is
15
15
 
@@ -22,7 +22,7 @@ If a required Simple Pipelines job, profile or source connection is missing, exp
22
22
  ## First pipeline in six steps
23
23
 
24
24
  1. `init name=<folder>` (CLI: `farseer pipeline init <org> <tenant> --new <name>`) creates the local folder under files/<name>/ (`main.py`, an empty `Models/` and `Code/`), uploads `main.py` into a new source folder Files/<name>, creates a job named <name> with that folder, `main.py` as entrypoint and the runner-python-simple-pipelines image this CLI was released with, then writes the profile farseer-apps/<tenant>/.pipelines/<name>.json. If files/<name>/ already exists locally with a `main.py`, init adopts it instead: it uploads the folder's source files as they are and writes no starter.
25
- 2. Write the YAML under `Models/`, one file per dataset, named after its `name:`. The guide topics `FarseerFilesExtractConfig`, `TransformConfig` and `LoadCellsConfig` each end with a complete example the engine accepts; start from those. Discover real source, dataset and model names with the existing tools first.
25
+ 2. Write the YAML under `Models/`, one file per step, named after its `name:`. The guide topics `FarseerFilesExtractConfig`, `ParseConfig`, `TransformConfig` and `LoadCellsConfig` each end with a complete example the engine accepts; start from those. Discover real source, dataset and model names with the existing tools first.
26
26
  3. Give the job its secrets. A source that needs a key or password (Business Central, a private Drive folder, SharePoint) reads it from a secret-typed job argument and the YAML names it as `{{ pipeline_args.NAME }}`; never write the value into YAML, the engine refuses `farseer_credentials` blocks. init creates the job with no arguments, so add each one with `farseer_configure_app` (`arguments: [{name, dataType: "string", secret: true, defaultValue: "<the value>"}]`) or in the web app before the first real run. The value is the argument's `defaultValue`; reads and run logs show it masked. Setting it through the tool puts the value in this conversation, so when the client prefers, ask the admin to type it into the web app instead. `check` lists every `pipeline_args.NAME` the YAML uses that the job does not define.
27
27
  4. `push` uploads the edited files.
28
28
  5. `run` submits one run and returns a run UUID receipt. To change a job argument for one run, pass it by name: `args: ["MONTH=2026-08"]` (CLI: `--arg MONTH=2026-08`, repeatable). Arguments you do not name keep the job's default; a name the job does not declare, a bare value, an empty value or a fixed argument is refused before anything is sent, and the receipt lists the arguments it used, secrets masked.
@@ -36,7 +36,7 @@ Edit, `push`, `run`, `inspect`. `run` requires pushed files: it compares every l
36
36
 
37
37
  A refused `run` accepted no new run: read the reason, fix what it names or tell the user; never loop or switch to the ordinary CLI or API to retry.
38
38
 
39
- Iterate without runs where you can, because every run reads the sources again. Run the extracts once so they publish, then test each SQL transform with `query`, binding its inputs to those published extract versions, until it returns what you expect; only then push and run. Ask for shapes, not rows: `DESCRIBE <your SELECT>` shows the column types the run will produce, and `COUNT`, `SUM` and `GROUP BY` check totals and duplicates. Query results go to the model provider, so prefer these over reading raw rows. A Python transform cannot be tested this way, so keep its logic small and check its output with `query` after the run. Run `check` after every edit as well, knowing what it covers: the job, its image, the arguments the YAML names and whether this CLI is current. It does not validate the YAML against the grammar, look up model names or check export folders; the run's preflight does that within seconds, before any source is read.
39
+ Iterate without runs where you can, because every run reads the sources again. Run the extracts and their parse steps once so the parsed datasets publish, then test each SQL transform with `query`, binding its inputs to those published versions, until it returns what you expect; only then push and run. Ask for shapes, not rows: `DESCRIBE <your SELECT>` shows the column types the run will produce, and `COUNT`, `SUM` and `GROUP BY` check totals and duplicates. Query results go to the model provider, so prefer these over reading raw rows. A Python transform cannot be tested this way, so keep its logic small and check its output with `query` after the run. Run `check` after every edit as well, knowing what it covers: the job, its image, the arguments the YAML names and whether this CLI is current. It does not validate the YAML against the grammar, look up model names or check export folders; the run's preflight does that within seconds, before any source is read.
40
40
 
41
41
  Submit once after sync and save the UUID receipt. Inspect that UUID after reconnect; never select the latest run. Each API call, including authentication, sync and reading the response body, has a 30-second deadline. Tool cancellation, connection close or Ctrl-C aborts the network requests but does not undo server writes or cancel an accepted run. A lost response is unconfirmed: the receipt is saved before the request and survives a client restart even when the run finished quickly, and requests with an uncertain outcome are never repeated automatically. Recovery is a terminal step for the author, not an MCP operation: `farseer pipeline recover` clears the receipt when the job's history has no run since the submission (the backend records an admitted run before dispatching it, so none means none was accepted), and otherwise lists the runs in that window and clears nothing; `recover --uuid <uuid>` attaches the run that is this submission. A stale local operation lock needs the direct CLI `unlock` after its process has stopped. A queued acceptance with no runner observation needs operator investigation, not a timeout-based retry.
42
42
 
@@ -52,13 +52,15 @@ Submit once after sync and save the UUID receipt. Inspect that UUID after reconn
52
52
 
53
53
  ## Setup facts
54
54
 
55
- The backend records each run before dispatch and answers with its run UUID. The tenant's jobrunner must be 3.6.0 or newer: an older one cannot keep the run id the backend assigns, so the backend refuses to send it the run and says so, and no run starts. Reading datasets, their versions and download links needs the right to update jobs (CLASS.REMOTE_JOB.UPDATE) or the Data Hub permission (FEATURE.DATA_HUB); `init`, `check`, `query` and `versions` rely on it. `restore` needs the right to update jobs; creating or deleting datasets stays with super users and the runner. Download links, restores and other dataset changes made by a person are recorded in the audit log. A permission refusal from `check` is a setup issue to report to the setup owner.
55
+ The backend records each run before dispatch and answers with its run UUID. The tenant's jobrunner must be 3.6.0 or newer: an older one cannot keep the run id the backend assigns, so the backend refuses to send it the run and says so, and no run starts. A 3.0 pipeline keeps each extract's file for 30 days in the backend's payload area, which needs a backend that has it, storage that can sign download and upload links, and a runner key that is a super user's or holds CLASS.REMOTE_JOB.RUN_AS_SERVICE; without them the first extract fails. Reading datasets, their versions and download links needs the right to update jobs (CLASS.REMOTE_JOB.UPDATE) or the Data Hub permission (FEATURE.DATA_HUB); `init`, `check`, `query` and `versions` rely on it. `restore` needs the right to update jobs; creating or deleting datasets stays with super users and the runner. Download links, restores and other dataset changes made by a person are recorded in the audit log. A permission refusal from `check` is a setup issue to report to the setup owner.
56
56
 
57
- `check` reads the prepared job, its runner image, whether a newer CLI was released with the tenant's runner image (`cli-version`, pending means update before authoring), and the output manifests, then probes the first Parquet file using signed HTTPS access, or through the API when the CLI runs with an agent turn key, because an agent sandbox can reach only the API. This CLI authors for exactly one engine: the one inside the runner image it was released with. Only jobs already using a Simple Pipelines runner are eligible for image pinning. TypeScript, other runner families and an unknown or inherited image are refused by init, source sync and run; use the existing app tools and preserve the app. The CLI never changes a job's image on its own. A Simple Pipelines job on an older released image is reported as failed: `run`, `pull` and reads still work on its own image, but `push` is refused (`RUNTIME_UPGRADE_REQUIRED`) until the job is upgraded with `upgrade-runtime` (CLI: `farseer pipeline upgrade-runtime`), which moves it to this CLI's image and reports where it moved from. Upgrading changes the engine for everyone on that tenant and, on a scheduled job, for the next scheduled run, so ask the user before upgrading, then `run` once and fix whatever the newer engine's preflight rejects. A job on a moving tag such as `latest`, or on a digest, is reported as pending and left as it is: `upgrade-runtime` refuses it, and each run reports the engine it started on (`engine` in `inspect`). A job on a newer released image is reported as pending: it runs and accepts pushes, but update the CLI to author what the newer engine added. No job is ever moved down. A dataset declared under `Models/` is created by the engine on the first run, so init and check report a dataset that does not exist yet as pending, not as an error; after the first run, rerun `init jobId=<id> force=true` to record the new dataset IDs (a rerun for the same job and folder keeps the setup record, declared config files and author), and the profile's `datasetIds` lists the outputs recorded so far. No published version means read verification stays pending until the first prepared run. The setup record (owner, evidence, checkedAt, retentionDays, otherWritersExcluded=true, runtimeVerified=true) is the owner's statement, not an API-verified fact: do not invent it, and reconfirm it after setup changes. `readyForAcceptance` does not establish source replay, reconciliation or real-client acceptance.
57
+ `check` reads the prepared job, its runner image, whether a newer CLI was released with the tenant's runner image (`cli-version`, pending means update before authoring), and the output manifests, then probes the first Parquet file using signed HTTPS access, or through the API when the CLI runs with an agent turn key, because an agent sandbox can reach only the API. This CLI authors for exactly one engine: the one inside the runner image it was released with. Only jobs already using a Simple Pipelines runner are eligible for image pinning. TypeScript, other runner families and an unknown or inherited image are refused by init, source sync and run; use the existing app tools and preserve the app. The CLI never changes a job's image on its own. A Simple Pipelines job on an older released image is reported as failed: `run`, `pull` and reads still work on its own image, but `push` is refused (`RUNTIME_UPGRADE_REQUIRED`) until the job is upgraded with `upgrade-runtime` (CLI: `farseer pipeline upgrade-runtime`), which moves it to this CLI's image and reports where it moved from. Upgrading changes the engine for everyone on that tenant and, on a scheduled job, for the next scheduled run, so ask the user before upgrading, then `run` once and fix whatever the newer engine's preflight rejects. A pipeline written for simple-pipelines 2.x never passes it: split every extract into `<name>_raw` and a parse step (Authoring rules below) and push the split right after the upgrade, before the job runs again, because every run from the upgrade on, scheduled ones included, uses this engine and fails until the split is pushed. A job on a moving tag such as `latest`, or on a digest, is reported as pending and left as it is: `upgrade-runtime` refuses it, and each run reports the engine it started on (`engine` in `inspect`). A job on a newer released image is reported as pending: it runs and accepts pushes, but update the CLI to author what the newer engine added. No job is ever moved down. A dataset declared under `Models/` is created by the engine on the first run, so init and check report a dataset that does not exist yet as pending, not as an error; an extract (`<name>_raw`) stores a payload and a load writes no dataset, so those two stay pending after the first run as well, which is expected; after the first run, rerun `init jobId=<id> force=true` to record the new dataset IDs (a rerun for the same job and folder keeps the setup record, declared config files and author), and the profile's `datasetIds` lists the outputs recorded so far. No published version means read verification stays pending until the first prepared run. The setup record (owner, evidence, checkedAt, retentionDays, otherWritersExcluded=true, runtimeVerified=true) is the owner's statement, not an API-verified fact: do not invent it, and reconfirm it after setup changes. `readyForAcceptance` does not establish source replay, reconciliation or real-client acceptance.
58
58
 
59
59
  ## Authoring rules
60
60
 
61
- Extract: one dataset per source extraction, separate from the transformation that reshapes it. Read another pipeline's or this pipeline's published dataset with `extract.type: farseer`, `source: datasets` and the dataset's `qualified_name` (optionally pinned to a `version_id`). Never add a `farseer_credentials` block; the pipeline always uses the tenant it runs in.
61
+ Extract: one step per source extraction, named `<name>_raw`, separate from the parse step that reads it and the transformation that reshapes it. It stores what the source hands over, unread, as a payload (a file source's file as it came, a typed source's rows as parquet), so it carries no `parse:`, `schema:`, quality rules, `write_mode` or `merge_keys`. Read another pipeline's or this pipeline's published dataset with `extract.type: farseer`, `source: datasets` and the dataset's `qualified_name` (optionally pinned to a `version_id`). Never add a `farseer_credentials` block; the pipeline always uses the tenant it runs in.
62
+
63
+ Parse: a `type: parse` step named `<name>` with `deps: [<the extract>]` reads the payload into the dataset. It names exactly one of `parse.format` (`csv`, `xlsx`, `json` or `parquet`; `parquet` for a source that hands back rows rather than a file, such as `sql_database`, `business_central` or `source: datasets`) or `parse.script` (an `@parse` function in `Code/`), with read options in the block named for the format, such as `csv: {decimal: ","}`. The parse step carries the dataset's `schema:`, quality rules and `write_mode`/`merge_keys`. Every extract must be read by a parse step, and only a parse step may read an extract: a transform, load or export with an extract in its `deps` fails the run before any step executes.
62
64
 
63
65
  Transform: choose SQL first (`engine: duckdb` with inline `transform.query`, never a SQL file), then `engine: ibis` with an `@ibis_transform` script when the logic needs Python to compose, and `engine: python` (`@transform`, pandas) only for work with no lazy form, because it is the one surface that holds whole frames in memory. Always write `engine:`; the default is `python`. Section 3 of `topic=practices` has the rules. A script transform names its `Code/` script in `transform.script`; missing code, compile errors and invalid definitions fail before extraction when the pipeline policy is enabled. Declare `deps`, add quality checks, and reconcile the agreed business scope. Folder names under `Models/` become dataset namespaces. Output versions are candidates until published, failed quality checks do not publish the failed candidate, and publication is per dataset, so a later failure can leave earlier effects in place.
64
66
 
@@ -77,7 +79,7 @@ from farseer_simple_pipelines.authoring import PipelinePolicy
77
79
  run_pipeline(store_type=StoreType.DATASETS, pipeline_policy=PipelinePolicy(), experimental__emit_pipeline_visualization_markers=True)
78
80
  ```
79
81
 
80
- Incremental recipes are not the default. They need `StoreType.ICEBERG` in `main.py`, which applies to the whole pipeline, so give an incremental source its own pipeline folder and read it downstream with `source: datasets`. Section 8 of `topic=practices` covers choosing the store, `overwrite`, `append` or `upsert`, qualifying a cursor, and rebuilding safely; read it before declaring `cursor_column`, `write_mode` or `merge_keys`, because the store, the format and the merge keys of a dataset are fixed once it exists.
82
+ Incremental recipes are not the default. They need `StoreType.ICEBERG` in `main.py`, which applies to the whole pipeline, so give an incremental source's extract, and the one parse step that reads it, a pipeline folder of their own, and read the parse step's dataset downstream with `source: datasets`. Section 8 of `topic=practices` covers choosing the store, `overwrite`, `append` or `upsert`, qualifying a cursor, and rebuilding safely; read it before declaring `cursor_column` (on the extract) or `write_mode` and `merge_keys` (on its parse step), because the store, the format and the merge keys of a dataset are fixed once it exists.
81
83
 
82
84
  ## Moving a pipeline to another tenant
83
85