# Local Data
URL: /documentation/plugin/local-data



## What it does [#what-it-does]

Free Local stores its project index, checkpoints, work items, findings, and generated file
artifacts in a local SQLite database (`.strata19/state.db`) on the machine running the plugin.
Deterministic analysis — the code graph, the verification gate, checkpoints — never requires a
Strata19 account or a source upload. This build sends no telemetry and has no telemetry consent tool.
`strata19.settings_manage` controls how spend is capped, and `strata19.sync_publish` governs what can leave that boundary.
`strata19.sync_publish` is the one explicit, always-manual path across the local-to-hosted
boundary; nothing in Strata19 syncs on a timer, a file save, or a watcher.

Model-assisted operations are a separate boundary from "local." When a model key is configured,
the operation sends the context it needs to that provider under your own provider relationship —
this is not a Strata19-hosted call. A read does not call a model on its own: `strata19.get_spec_context`
runs a small, budget-capped model-assisted top-up of an incomplete Code map only when you pass
`autoGenerate: true`; see Limits.

## When to use it [#when-to-use-it]

Call `strata19.settings_manage` (`action: "list"`) to see every setting's resolved value and which
tier it came from (environment variable, stored setting, or built-in default) — useful when a
tool refused because a spend or effort ceiling was hit. Call `strata19.sync_publish`
(`action: "status"` or `"authority"`) before assuming anything has left the machine.

Do not assume a generated Markdown proposal or a local SQLite row is encrypted merely because it
is local — it is subject to the same source-control, backup, and access policies as the rest of
the repository. Do not call `strata19.sync_publish` expecting a bulk repository mirror — the
authority matrix sets `automatic_raw_graph_upload: false` by design, so there is no "publish
everything" mode.

## How to use it [#how-to-use-it]

<Steps>
  <Step>
    List every setting and its source. A real call against this install returned (excerpt):

    ```json title="Call — strata19.settings_manage"
    { "action": "list" }
    ```

    ```json title="Response (excerpt)"
    {
      "settings": [
        { "key": "STRATA19_MODEL", "value": "gemini-3.5-flash-lite", "source": "env" },
        { "key": "STRATA19_SPECBOOK_BUDGET_USD", "value": 25, "source": "default" },
        { "key": "STRATA19_AUTO_BATCH_BUDGET_USD", "value": 1, "source": "default" },
        { "key": "STRATA19_AUTO_BATCH_FILES", "value": 20, "source": "default" },
        { "key": "STRATA19_API_KEY", "value": "", "source": "default" },
        { "key": "STRATA19_MCP_PRESET", "value": "full", "source": "env" }
      ]
    }
    ```

    `source` names precedence directly: `env` beats a stored setting, which beats the built-in
    `default` — every value on this page discloses which tier it came from rather than leaving the
    reader to guess.
  </Step>

  <Step>
    Check whether anything can leave the machine before assuming it has:

    ```json title="Call — strata19.sync_publish"
    { "action": "status" }
    ```
  </Step>
</Steps>

## Parameters [#parameters]

<TypeTable
  type="{
  action: {
    description: 'settings_manage: list, get, set, or reset. sync_publish: status, authority, preview, publish, or promote_work_item.',
    type: 'string',
  },
  key: {
    description: 'settings_manage. The exact STRATA19_* setting name — required for get, set, and reset.',
    type: 'string',
  },
  value: {
    description: 'settings_manage. The value to persist for set, coerced to the setting’s declared type.',
    type: 'string | number | boolean',
  },
  scope: {
    description: 'settings_manage. global (every project this install opens) or project. Defaults to global.',
    type: '&#x22;global&#x22; | &#x22;project&#x22;',
  },
}"
/>

`strata19.sync_publish` additionally takes `objectType` (for `authority`), `filePaths` (required
for `preview`/`publish`, capped at 200 per call — there is deliberately no "publish everything"
mode), and `workItemId` (required for `promote_work_item`).

## What you get back [#what-you-get-back]

`strata19.settings_manage` (`list`) returns every setting with its resolved `value` and `source`.
`strata19.sync_publish` (`status`) returns the authority matrix and whether a real publish is
currently permitted, with no I/O; `preview` reports exactly what would be sent for the given
`filePaths`, sending nothing.

## Limits [#limits]

Reads do not spend model budget by default. `strata19.get_spec_context` runs a bounded,
budget-capped auto-generation batch (`STRATA19_AUTO_BATCH_BUDGET_USD`, default $1;
`STRATA19_AUTO_BATCH_FILES`, default 20 files per call) only when you pass `autoGenerate: true`, a
model key is configured and the Specbook is incomplete; the answer then names what was spent.
`strata19.compute_change_impact` and `strata19.get_implementation_context` read the specs already
stored and never start a batch. See [Specs and Specbook](/documentation/plugin/specs-and-specbook).
`strata19.sync_publish`'s `publish` and `promote_work_item` actions are premium-gated and fail
closed with a named reason when the account is not entitled — they never silently no-op. A local
SQLite record or generated Markdown proposal carries no encryption of its own; protecting it is
the same responsibility as protecting the rest of the repository.

Every way data can leave the machine from Strata19's own code is listed in one place, derived from a scan of the shipped plugin rather than written from memory:
`docs/index-integrity/PRIVACY-AND-EGRESS.md` in the repository. It also covers credential custody, which tools degrade offline, and the one thing Strata19
cannot speak for: the AI host's own traffic to its model provider.

## Related [#related]

* [Specs and Specbook](/documentation/plugin/specs-and-specbook) — where the auto-generation spend side effect is documented in context
* [Integrations](/documentation/plugin/integrations) — which host surfaces can reach connected state
* [Limits](/documentation/reference/limits) — plugin-wide negative-space boundaries
* [`strata19.settings_manage`](/documentation/reference/tools/settings_manage)
* [`strata19.sync_publish`](/documentation/reference/tools/sync_publish)
