Set FINANCE.md
layerz_set_finance_mdUpsert the FINANCE.md for a model. Accepts the full Markdown (YAML front matter + body). Typical usage: an agent running locally reads FINANCE.md at the project root and pushes it here at session start so subsequent layerz_patch / layerz_build_from_blueprint calls operate under the same conventions. Set source: "imported" when syncing from a local file, "user" when authoring/editing in-place. "auto" is reserved for generator output. When the model is a template (its id equals the template id), this FINANCE.md IS the template's usage guide (layerz_get_template description) — editing it here updates the guide live. The content must parse as a YAML front-matter document. Structural schema warnings are surfaced in the response but do not block persistence — the spec is intentionally progressive. Not available for read-only API keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Provenance: 'imported' when syncing from a project-root FINANCE.md, 'user' when editing in place. Defaults to 'user'. | |
| content | Yes | Full FINANCE.md Markdown (YAML front-matter + body). Max 5,000 chars — keep conventions in prose. | |
| summary | Yes | Required: short human-readable note (3–100 chars) summarising what this change does. Shown as the label in the model version history. Be specific (e.g. "Renamed Revenue to Net Revenue", "Imported 2024 OPEX from Excel"). | |
| model_id | No | Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys. |