farseer-cli 1.18.0 → 1.20.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.
- package/README.md +33 -10
- package/dist/commands/app.js +42 -3
- package/dist/commands/app.js.map +1 -2
- package/dist/commands/apps.js.map +0 -1
- package/dist/commands/cells.js +120 -85
- package/dist/commands/cells.js.map +1 -2
- package/dist/commands/code.js.map +0 -1
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/dashboards.js +246 -12
- package/dist/commands/dashboards.js.map +1 -2
- package/dist/commands/diff.js.map +0 -1
- package/dist/commands/dimensions.js +52 -27
- package/dist/commands/dimensions.js.map +1 -2
- package/dist/commands/docs.js +82 -0
- package/dist/commands/docs.js.map +6 -0
- package/dist/commands/files.js +49 -0
- package/dist/commands/files.js.map +2 -3
- package/dist/commands/folders.js +76 -0
- package/dist/commands/folders.js.map +6 -0
- package/dist/commands/formula.js +38 -30
- package/dist/commands/formula.js.map +1 -2
- package/dist/commands/install.js +32 -30
- package/dist/commands/install.js.map +2 -3
- package/dist/commands/list.js.map +0 -1
- package/dist/commands/login.js +3 -3
- package/dist/commands/login.js.map +1 -2
- package/dist/commands/logout.js.map +0 -1
- package/dist/commands/mcp-server.js.map +0 -1
- package/dist/commands/model.js +30 -5
- package/dist/commands/model.js.map +2 -3
- package/dist/commands/pipeline.js.map +0 -1
- package/dist/commands/pull.js +1 -1
- package/dist/commands/pull.js.map +1 -2
- package/dist/commands/push.js +6 -4
- package/dist/commands/push.js.map +1 -2
- package/dist/commands/refresh.js.map +0 -1
- package/dist/commands/run.js.map +0 -1
- package/dist/commands/sheets.js +289 -52
- package/dist/commands/sheets.js.map +1 -2
- package/dist/commands/skills.js +157 -0
- package/dist/commands/skills.js.map +6 -0
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/tool.js.map +0 -1
- package/dist/commands/variables.js +246 -82
- package/dist/commands/variables.js.map +1 -2
- package/dist/commands/whoami.js.map +0 -1
- package/dist/index.js +117 -23
- package/dist/index.js.map +1 -2
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/prompts/workflows.js.map +0 -1
- package/dist/mcp/resources/documentation.js +19 -12
- package/dist/mcp/resources/documentation.js.map +1 -2
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/skills.js.map +0 -1
- package/dist/mcp/tools/appTools.js +1 -7
- package/dist/mcp/tools/appTools.js.map +1 -2
- package/dist/mcp/tools/authTools.js +1 -1
- package/dist/mcp/tools/authTools.js.map +1 -2
- package/dist/mcp/tools/cellTools.js +6 -19
- package/dist/mcp/tools/cellTools.js.map +1 -2
- package/dist/mcp/tools/dashboardTools.js +30 -412
- package/dist/mcp/tools/dashboardTools.js.map +2 -3
- package/dist/mcp/tools/dataTools.js +15 -146
- package/dist/mcp/tools/dataTools.js.map +1 -2
- package/dist/mcp/tools/folderTools.js +12 -78
- package/dist/mcp/tools/folderTools.js.map +1 -2
- package/dist/mcp/tools/modelTools.js +23 -372
- package/dist/mcp/tools/modelTools.js.map +1 -2
- package/dist/mcp/tools/pipelineContract.js +5 -1
- package/dist/mcp/tools/pipelineContract.js.map +1 -2
- package/dist/mcp/tools/pipelineTools.js.map +0 -1
- package/dist/mcp/tools/runTools.js +8 -69
- package/dist/mcp/tools/runTools.js.map +1 -2
- package/dist/mcp/tools/sheetTools.js +14 -264
- package/dist/mcp/tools/sheetTools.js.map +1 -2
- package/dist/mcp/tools/syncTools.js +7 -3
- package/dist/mcp/tools/syncTools.js.map +1 -2
- package/dist/mcp/utils/helpers.js.map +0 -1
- package/dist/mcp/utils/launchPin.js.map +0 -1
- package/dist/mcp/utils/operationResponse.js +41 -0
- package/dist/mcp/utils/operationResponse.js.map +6 -0
- package/dist/mcp/utils/registerTool.js.map +0 -1
- package/dist/mcp/utils/session.js.map +0 -1
- package/dist/mcp/utils/tenantPin.js.map +0 -1
- package/dist/operations/cells.js +444 -0
- package/dist/operations/cells.js.map +6 -0
- package/dist/operations/dashboards.js +357 -0
- package/dist/operations/dashboards.js.map +6 -0
- package/dist/operations/data.js +206 -0
- package/dist/operations/data.js.map +6 -0
- package/dist/operations/errors.js +64 -0
- package/dist/operations/errors.js.map +6 -0
- package/dist/operations/exportModel.js +59 -0
- package/dist/operations/exportModel.js.map +6 -0
- package/dist/operations/folderPath.js +128 -0
- package/dist/operations/folderPath.js.map +6 -0
- package/dist/operations/folders.js +80 -0
- package/dist/operations/folders.js.map +6 -0
- package/dist/operations/install.js +109 -0
- package/dist/operations/install.js.map +6 -0
- package/dist/operations/model.js +271 -0
- package/dist/operations/model.js.map +6 -0
- package/dist/operations/sheets.js +428 -0
- package/dist/operations/sheets.js.map +6 -0
- package/dist/pipeline/compatibility.js.map +0 -1
- package/dist/pipeline/connect.js.map +0 -1
- package/dist/pipeline/create.js.map +0 -1
- package/dist/pipeline/errors.js.map +0 -1
- package/dist/pipeline/failStep.js +43 -0
- package/dist/pipeline/failStep.js.map +6 -0
- package/dist/pipeline/generated-reference.json +25 -13
- package/dist/pipeline/guide.js.map +0 -1
- package/dist/pipeline/init.js.map +0 -1
- package/dist/pipeline/operations.js.map +0 -1
- package/dist/pipeline/query.js.map +0 -1
- package/dist/pipeline/queryDownloads.js.map +0 -1
- package/dist/pipeline/queryWorker.js +3 -1
- package/dist/pipeline/queryWorker.js.map +1 -2
- package/dist/pipeline/readiness.js.map +0 -1
- package/dist/pipeline/reference.js.map +0 -1
- package/dist/pipeline/requests.js +3 -32
- package/dist/pipeline/requests.js.map +1 -2
- package/dist/pipeline/runArguments.js.map +0 -1
- package/dist/pipeline/runtime.js.map +0 -1
- package/dist/pipeline/service.js +46 -2
- package/dist/pipeline/service.js.map +1 -2
- package/dist/services/appSyncService.js +59 -9
- package/dist/services/appSyncService.js.map +1 -2
- package/dist/services/apps.js +10 -0
- package/dist/services/apps.js.map +1 -2
- package/dist/services/authErrors.js.map +0 -1
- package/dist/services/codefirst/api.js +38 -5
- package/dist/services/codefirst/api.js.map +1 -2
- package/dist/services/codefirst/binaryDisk.js.map +0 -1
- package/dist/services/codefirst/byteHashes.js +5 -0
- package/dist/services/codefirst/byteHashes.js.map +1 -2
- package/dist/services/codefirst/documents.js +41 -15
- package/dist/services/codefirst/documents.js.map +1 -2
- package/dist/services/codefirst/layoutBinaryProjection.js +24 -13
- package/dist/services/codefirst/layoutBinaryProjection.js.map +1 -2
- package/dist/services/codefirst/layoutCompose.js +44 -38
- package/dist/services/codefirst/layoutCompose.js.map +1 -2
- package/dist/services/codefirst/layoutCore.js +14 -1
- package/dist/services/codefirst/layoutCore.js.map +1 -2
- package/dist/services/codefirst/layoutPaths.js +80 -4
- package/dist/services/codefirst/layoutPaths.js.map +1 -2
- package/dist/services/codefirst/layoutProjection.js +73 -39
- package/dist/services/codefirst/layoutProjection.js.map +1 -2
- package/dist/services/codefirst/layoutReadback.js +357 -130
- package/dist/services/codefirst/layoutReadback.js.map +2 -3
- package/dist/services/codefirst/layoutReadbackPlacement.js +94 -57
- package/dist/services/codefirst/layoutReadbackPlacement.js.map +2 -3
- package/dist/services/codefirst/layoutReceipt.js +283 -243
- package/dist/services/codefirst/layoutReceipt.js.map +2 -3
- package/dist/services/codefirst/layoutScan.js +208 -110
- package/dist/services/codefirst/layoutScan.js.map +1 -2
- package/dist/services/codefirst/output.js +76 -10
- package/dist/services/codefirst/output.js.map +1 -2
- package/dist/services/codefirst/types.js.map +0 -1
- package/dist/services/codefirst/workflow.js +65 -29
- package/dist/services/codefirst/workflow.js.map +2 -3
- package/dist/services/codefirst/workspace.js.map +0 -1
- package/dist/services/codefirst/workspaceLock.js.map +0 -1
- package/dist/services/codefirst/workspaceRoot.js +2 -1
- package/dist/services/codefirst/workspaceRoot.js.map +1 -2
- package/dist/services/configService.js.map +0 -1
- package/dist/services/credentials.js.map +0 -1
- package/dist/services/farseerService.js +31 -7
- package/dist/services/farseerService.js.map +1 -2
- package/dist/services/httpError.js.map +0 -1
- package/dist/services/modelExport.js.map +0 -1
- package/dist/services/organisation.js.map +0 -1
- package/dist/services/preflight.js.map +0 -1
- package/dist/services/realms.js.map +0 -1
- package/dist/services/syncService.js +3 -3
- package/dist/services/syncService.js.map +1 -2
- package/dist/skills/bundled.js +106 -0
- package/dist/skills/bundled.js.map +6 -0
- package/dist/skills/install.js +257 -0
- package/dist/skills/install.js.map +6 -0
- package/dist/skills/pipeline.js +10 -18
- package/dist/skills/pipeline.js.map +1 -2
- package/dist/utils/agentSandbox.js +1 -1
- package/dist/utils/agentSandbox.js.map +0 -1
- package/dist/utils/cliOptions.js.map +0 -1
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/entityResolver.js +72 -25
- package/dist/utils/entityResolver.js.map +1 -2
- package/dist/utils/errorFormatter.js +72 -11
- package/dist/utils/errorFormatter.js.map +1 -2
- package/dist/utils/fileLogger.js.map +0 -1
- package/dist/utils/fileValidation.js.map +0 -1
- package/dist/utils/folderMatch.js.map +0 -1
- package/dist/utils/formulaFilters.js +11 -2
- package/dist/utils/formulaFilters.js.map +1 -2
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/nameResolver.js.map +0 -1
- package/dist/utils/operationCli.js +102 -0
- package/dist/utils/operationCli.js.map +6 -0
- package/dist/utils/packageManager.js.map +0 -1
- package/dist/utils/syncReporting.js.map +0 -1
- package/dist/utils/syncScope.js.map +0 -1
- package/dist/utils/updateCheck.js.map +0 -1
- package/dist/utils/variableValues.js.map +0 -1
- package/dist/utils/workspace.js.map +0 -1
- package/docs/cli-guide.md +182 -2
- package/docs/import-workflows.md +14 -14
- package/docs/new-app-template.md +1 -1
- package/docs/pipeline-client-guide.md +1 -1
- package/docs/pipeline-reference.md +304 -9
- package/docs/troubleshooting.md +18 -0
- package/package.json +2 -2
- package/skills/farseer-analysis/SKILL.md +132 -0
- package/skills/farseer-app-dev/SKILL.md +131 -0
- package/skills/farseer-app-dev/assignments.md +185 -0
- package/skills/farseer-app-dev/farseer-client-api-guide.md +907 -0
- package/skills/farseer-app-dev/farseer-client-release-notes.md +212 -0
- package/skills/farseer-app-dev/working-patterns.md +876 -0
- package/skills/farseer-authenticate-to-tenant/SKILL.md +60 -0
- package/skills/farseer-authenticate-to-tenant/app-authentication.md +91 -0
- package/skills/farseer-author-import-job/SKILL.md +114 -0
- package/skills/farseer-author-import-job/cell-writes.md +530 -0
- package/skills/farseer-author-import-job/deploying-a-farseer-app.md +383 -0
- package/skills/farseer-author-import-job/import-job-pattern.md +232 -0
- package/skills/farseer-build-model/SKILL.md +122 -0
- package/skills/farseer-build-model/formula-grain-alignment.md +612 -0
- package/skills/farseer-build-model/naming-conventions.md +435 -0
- package/skills/farseer-build-model/sparse-formulas-pattern.md +330 -0
- package/skills/farseer-build-pipeline/SKILL.md +190 -0
- package/skills/farseer-build-pipeline/erp-sales/README.md +108 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/bronze/erp_sales_invoice_lines.yaml +23 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/bronze/erp_sales_invoice_lines_raw.yaml +23 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/bronze/erp_sales_item_product_map.yaml +17 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/bronze/erp_sales_item_product_map_raw.yaml +11 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/gold/erp_sales_cells.yaml +40 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/silver/erp_sales_lines.yaml +35 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/silver/erp_sales_recon.yaml +43 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/silver/erp_sales_unmapped_items.yaml +28 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/main.py +49 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-load/Models/in/erp_sales_cells.yaml +17 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-load/Models/in/erp_sales_cells_raw.yaml +14 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-load/Models/load/erp_sales_to_model.yaml +47 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-load/main.py +44 -0
- package/skills/farseer-build-pipeline/erp-sales/item_to_product.csv +5 -0
- package/skills/farseer-build-pipeline/pipeline-app-failure-report-pattern.md +103 -0
- package/skills/farseer-build-pipeline/pipeline-source-encoding.md +68 -0
- package/skills/farseer-dashboards/SKILL.md +40 -0
- package/skills/farseer-formulas/SKILL.md +165 -0
- package/skills/farseer-help-center/SKILL.md +66 -0
- package/skills/farseer-model/SKILL.md +119 -0
- package/skills/farseer-modify-model/SKILL.md +158 -0
- package/skills/farseer-modify-model/model-validation-pattern.md +251 -0
- package/skills/farseer-optimize-model/SKILL.md +314 -0
- package/skills/farseer-optimize-model/stats-dump.ts +139 -0
- package/skills/farseer-pnl/SKILL.md +220 -0
- package/skills/farseer-review-model/SKILL.md +172 -0
- package/skills/farseer-run-apps/SKILL.md +102 -0
- package/skills/pipeline-authoring/SKILL.md +7 -5
- package/skills/pipeline-authoring/practices.md +21 -8
- package/dist/services/agentApprovalFetch.js +0 -86
- package/dist/services/agentApprovalFetch.js.map +0 -7
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: farseer-build-model
|
|
3
|
+
description: >-
|
|
4
|
+
Design rules for a new Farseer model or module: the four variable layers (IMPORT, IN, calculations, OUT) and their names, grain alignment, members pinned in the grain instead of in formulas, sparse formulas, a checklist that keeps calculation fast, and how to validate the result. Use when the user asks to design or build a new model or module, or to check a model's naming, grain or sparse formulas against these rules. To audit an existing model, use the farseer-review-model skill. The farseer-model skill covers how to create the variables and tables.
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1"
|
|
7
|
+
domain: modeling
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Build a Farseer Model
|
|
11
|
+
|
|
12
|
+
## When this skill applies
|
|
13
|
+
|
|
14
|
+
A new model from scratch, or a new module or domain added to an existing model.
|
|
15
|
+
|
|
16
|
+
Do **not** use this skill for:
|
|
17
|
+
- Changing a model that is already in use → the `farseer-modify-model` skill
|
|
18
|
+
- Creating or changing variables, tables, members, links or cells → the `farseer-model` skill
|
|
19
|
+
- Formula syntax → the `farseer-formulas` skill
|
|
20
|
+
|
|
21
|
+
This skill holds the design discipline; the rules and their reasons live in the reference files it links. It has no write steps: create what you design through the `farseer-model` skill. `farseer code` (Experimental) is the future path for writing a whole model from files.
|
|
22
|
+
|
|
23
|
+
The naming conventions are recommendations, not platform rules: the platform enforces only `readonly`.
|
|
24
|
+
|
|
25
|
+
## Inputs to gather first
|
|
26
|
+
|
|
27
|
+
1. **Domain in one sentence** — budgeting, forecasting, BS, PL, multi-entity FS, consolidation, workforce, cash flow, cost allocation, …
|
|
28
|
+
2. **Business question the model answers** — *"What does our cash position look like under three FX scenarios?"* / *"How does FTE plan roll up to OPEX by sector?"*
|
|
29
|
+
3. **Consumers** — planners (write), controlling (review), board (read-only), regulators (signed reports).
|
|
30
|
+
4. **CLI session** — can you run tenant reads (`farseer model --tables <tenant>`)? If not, the `farseer-authenticate-to-tenant` skill reconnects, or ask the user to paste `farseer model --variables <tenant>` output.
|
|
31
|
+
|
|
32
|
+
## Procedure
|
|
33
|
+
|
|
34
|
+
### 1. Read the reference files (before you create any variable)
|
|
35
|
+
|
|
36
|
+
- [`naming-conventions.md`](naming-conventions.md) — the names of the four layers, notes rather than a description, `readonly`, one word-separator style.
|
|
37
|
+
- [`sparse-formulas-pattern.md`](sparse-formulas-pattern.md) — keep null cells null.
|
|
38
|
+
- [`formula-grain-alignment.md`](formula-grain-alignment.md) — operand tables must match the output's tables; fixed members; the design-time performance rules.
|
|
39
|
+
- [`model-validation-pattern.md`](../farseer-modify-model/model-validation-pattern.md), in the `farseer-modify-model` skill — which validation regime applies and what "validated" means.
|
|
40
|
+
|
|
41
|
+
If a link does not open because this skill was installed on its own, `farseer skills show <skill> --file <file>` prints any file of a bundled skill.
|
|
42
|
+
|
|
43
|
+
If you start creating variables without reading the relevant reference, stop and read it.
|
|
44
|
+
|
|
45
|
+
### 2. Identify validation regime
|
|
46
|
+
|
|
47
|
+
Per `model-validation-pattern.md`, one of:
|
|
48
|
+
|
|
49
|
+
- **(A) Functional** — new model from scratch with scenario-based expectations
|
|
50
|
+
- **(B) Backtest** — modification of existing deployed model; bootstrap a baseline first if none exists
|
|
51
|
+
- **(C) Functional + Backtest** — new model with client reference data available
|
|
52
|
+
|
|
53
|
+
Decide this **before** creating any variable — it shapes how you design grain and IN/OUT interfaces.
|
|
54
|
+
|
|
55
|
+
### 3. Survey current tenant state (explicit-tenant CLI)
|
|
56
|
+
|
|
57
|
+
Before designing anything (reads only):
|
|
58
|
+
|
|
59
|
+
- `farseer model --tables <tenant>` — what tables already exist; reuse, don't create duplicates (`--table "<Table>"` for one table's columns and members, incl. system tables like `Years`/`Versions`)
|
|
60
|
+
- `farseer model --variables <tenant>` — is there already an IMPORT layer? Master data wiring? Existing ` OUT` variables that downstream modules consume? (`--variable "<Var>"` for one variable's formula, tables, fixed members and properties)
|
|
61
|
+
- `farseer model --json <tenant> > model.json` — the whole structure in one file for cross-checks if the model is non-trivial: every variable's formula, tables, fixed members, rollup, `readonly`, `zConstraint`, notes and folder, and every table's columns with their FK targets. A read where every variable comes back without a formula is a failed read, not an empty model: read again. So is one that prints `/model/export failed …; falling back to initTagMap`, which has no fixed members, notes, folder or `zConstraint`.
|
|
62
|
+
|
|
63
|
+
If the CLI session is missing — say so, use the `farseer-authenticate-to-tenant` skill, or ask the user to paste the relevant lists. Do not invent symbol names that may collide with what's actually in the tenant.
|
|
64
|
+
|
|
65
|
+
### 4. Draft the variable graph (before any variable is created)
|
|
66
|
+
|
|
67
|
+
Sketch the four layers, even for a small module:
|
|
68
|
+
|
|
69
|
+
| Layer | Naming | Purpose |
|
|
70
|
+
|---|---|---|
|
|
71
|
+
| **IMPORT** | `IMPORT_*`, lives in the `IMPORT` folder (an existing `Import` is fine) | Raw source-system inputs (GL feed, POS feed, HR exports, …) |
|
|
72
|
+
| **` IN`** | ` IN` suffix (e.g. `"Sales Volume IN"`; `Sales_Volume_IN` in an underscore-style project) | Planner-writable cells |
|
|
73
|
+
| **internal** | `readonly`, no suffix | Calc steps the planner doesn't touch |
|
|
74
|
+
| **` OUT`** | ` OUT` suffix | Final outputs delivered to the business (only the model-level outputs, not per-folder) |
|
|
75
|
+
|
|
76
|
+
For every variable, write down: grain (its tables), data type, rollup, number format, intended notes, folder placement. **Don't write the formula yet** — agree on the interfaces first, then fill the math.
|
|
77
|
+
|
|
78
|
+
Pin dimension members in the grain (a fixed member on the variable) — never hardcode in the formula. Use `>` syntax in formulas for member references (`hasDMember("Months">"M1")`).
|
|
79
|
+
|
|
80
|
+
If the graph has potential diamond paths (multiple dim routes between two dims), flag for human review.
|
|
81
|
+
|
|
82
|
+
### 5. Check performance before you write
|
|
83
|
+
|
|
84
|
+
**Performance checklist before push** — cheap to apply while the variable graph is still fresh, expensive to retrofit later:
|
|
85
|
+
|
|
86
|
+
- Broadcasting onto `Versions`? Use a condition (`if(eq(carrier, 1), X)`), never a product (`X * carrier`) — a cost difference of tens of times (the two are equal only when the carrier holds `1` or null, never a stored `0`), [`formula-grain-alignment.md` §7](formula-grain-alignment.md#7--avoid-it-at-the-start-design-time-performance-rules).
|
|
87
|
+
- Never combine a `Versions` broadcast and an FK hop in one product — split them.
|
|
88
|
+
- Lifting a coarse operand across an FK hop and the result must stay sparse? `if(hasValue(X), X)`, not `0 + X` (phantom zeros — [`sparse-formulas-pattern.md`](sparse-formulas-pattern.md)).
|
|
89
|
+
- Never let a formula produce a dense layout of cells: estimate the cells each new variable will actually hold (operand cells × every member it broadcasts over, incl. `Versions` × periods). Tens of millions is already the problem class, not only hundreds — a new module with several Versions members and a wide Customer × Item cross adds up fast, and the platform does not warn loudly. Prevent it in the model (`formula-grain-alignment.md`, "Dense cell production").
|
|
90
|
+
|
|
91
|
+
### 6. Check the names, then validate on a dev tenant — never raw
|
|
92
|
+
|
|
93
|
+
The naming checks a review runs ([`naming-conventions.md`](naming-conventions.md); recommended conventions, not platform rules):
|
|
94
|
+
|
|
95
|
+
- every imported variable carries the `IMPORT` prefix and sits in the `IMPORT` folder;
|
|
96
|
+
- the ` IN` / ` OUT` suffix is written in the project's one word-separator style, at the very end of the name;
|
|
97
|
+
- every variable without ` IN` is `readonly`;
|
|
98
|
+
- a description with text on a variable is a finding: the text belongs in the notes.
|
|
99
|
+
|
|
100
|
+
They do **not** ask for a table-name prefix — the `S_` / `D_` prefix is retired ([`naming-conventions.md` §6](naming-conventions.md#6-dimension-table-names--retired-s_--d_-prefix-no-longer-recommended)).
|
|
101
|
+
|
|
102
|
+
Then build on a **dev** tenant, and run `farseer model --variables <tenant>` to confirm the tenant has every variable you designed.
|
|
103
|
+
|
|
104
|
+
Build on dev first. Moving the model to test and prod follows the recommended dev → test → prod path of the `farseer-modify-model` skill, with explicit confirmation at each step.
|
|
105
|
+
|
|
106
|
+
### 7. Validate the build
|
|
107
|
+
|
|
108
|
+
Run the validation of the regime from step 2 ([`model-validation-pattern.md`](../farseer-modify-model/model-validation-pattern.md)): for a functional test, known inputs on a dev or test tenant and the computed outputs read back and compared; for a backtest (B or C), one reconciliation row per variable and period — model output, reference, delta, status.
|
|
109
|
+
|
|
110
|
+
- Outcome must be `pass` or `pass-with-expected-deltas` before declaring the model build done. `fail` outcomes don't get swept under the rug — surface and address.
|
|
111
|
+
|
|
112
|
+
### 8. Sheets — part of the definition of done
|
|
113
|
+
|
|
114
|
+
A model without sheets is **undelivered**: the planner-facing sheets are their own piece of work, built once the model stands.
|
|
115
|
+
While modeling, set variables up for it: any variable that will take
|
|
116
|
+
top-down entry needs `zConstraint` set (`variable.zConstraint` through the API, or Constrained Light Top Down in the UI) — cheaper to declare
|
|
117
|
+
now than to retrofit at sheet time.
|
|
118
|
+
|
|
119
|
+
## Constraints
|
|
120
|
+
|
|
121
|
+
- **Do not** hardcode dimension members inside formulas — pin them in the grain or expose as ` IN`-suffixed variable.
|
|
122
|
+
- **Do not** invent symbols that may collide with the tenant — survey first via the explicit-tenant CLI (step 3) or ask the user.
|