Record mapping decisions
record_decisionRecords decisions on warehouse mappings—such as keys, tables, fields, and metric owners—then lists open questions or candidates when no decisions are supplied.
Instructions
Record the decisions people make on a profiled and proposed warehouse, the Decide step of readiness level 2. Pass semantic_model and mapping (the ones propose_mapping returned) and decisions: a YAML or JSON list where each entry names what it is about, the subject by content and its owner. about: key, time, kind or type answers a profiler question and is written into the model (dataset, answer: the key columns or "none", the time column or "none", snapshot|event|fact|reference or an Ossie datatype with column); about: table accepts (or with accept: false rejects) a table as a GASP dataset (dataset, to: the GASP dataset) and maps its columns as the proposer would; about: field accepts or rejects a column as a GASP field of the dataset its table is mapped to (dataset, column, to: the GASP field, optional transform over {{value}}, which becomes a calculated field); about: owner names the team that owns a metric (metric, owner, optional contact), the slot validate_mapping reads; about: topic records a judgement call GASP cannot apply, such as which system owns customer identity, the reporting currency or what date marks churn (topic, answer). Every decision carries owner, an optional date (today when omitted) and note. It lands in the mapping's GASP extension; a later decision on the same subject replaces the earlier one. With no decisions it lists what is open: the questions no decision or model state has settled, the candidates no decision has settled and the covered metrics without an owner. Level 2 is reached when no question and no candidate is open. Returns the report with the updated mapping and, when it changed, the model, to pass on to validate_mapping, compile_model and score_drift.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"semantic_model": "<semantic_model>",
"mapping": "<mapping>"
},
"name": "record_decision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | 'report' (default): what was applied, what is open and the updated documents as YAML; 'mapping': the mapping alone; 'model': the model alone; 'json': everything as data. | |
| mapping | Yes | The Ossie mapping propose_mapping returned, as YAML or JSON; its candidates and the decisions already on file are read from the GASP extension; the decisions are written back into it. | |
| decisions | No | The decisions as a YAML or JSON list: [{about: key, dataset: usage_daily, answer: [account_id, workspace_id, day], owner: Data platform}, {about: table, dataset: plan_prices, to: plan, accept: false, owner: Billing}, {about: field, dataset: subscriptions, column: plan_code, to: plan_id, owner: Billing}, {about: owner, metric: Net Revenue Retention, owner: Finance, contact: fp&a@example.com}, {about: topic, topic: reporting currency, answer: USD, owner: Finance, note: ...}]. Omit it to list what is open. | |
| semantic_model | Yes | The Ossie semantic model the mapping reads, as YAML or JSON: the one propose_mapping returned (its profile questions are read from the GASP extension). |