Skip to main content

Module learning_sync

Module learning_sync 

Source
Expand description

Team sync of the learning layers (#550, VIS-4).

Bundles the machine-local learning state — learned compression-threshold deltas (#538) and LITM placement calibration (#539) — into a versioned, secret-free JSON document that can be shared across a team and merged back without double counting:

  • threshold deltas merge as sample-weighted averages (clamped),
  • LITM counters merge as element-wise maxima,

both of which make export → import on the same machine a no-op (idempotent roundtrip). The bundle deliberately contains only file extensions, client-profile names and aggregate numbers — no paths, no file contents, no identifiers.

Structs§

LearningBundle
MergeReport

Constants§

BUNDLE_SCHEMA_VERSION

Functions§

export_bundle
Snapshot the current learning state into a bundle.
import_bundle
Parse and merge a bundle into the local stores. Fails on schema mismatch rather than guessing — a future schema bump must ship its own migration.