lingex-activity-integrity
LingEx Activity Integrity
Source details
- Source revision
20cc54c7cbd8c693fcb0222f70b5c547d98fe931- Source SHA-256
14fb98cf1a4b2dbb8cca4178fdc7b27ac01fe7e746e1a91103a0cdb828f39e82
LingEx Activity Integrity
LingEx Activity Integrity is the shared LingEx domain for generic integrity, presence and idempotency facts around live or resumable interactive activity.
It is deliberately independent of game or lesson rules.
What it owns
The module owns reusable concepts such as:
- activity instances;
- activity participants;
- client/browser instances;
- heartbeats and last-seen state;
- connection/reconnection events;
- idempotent action receipts; and
- generic activity lifecycle events.
These primitives allow products to reason about whether an activity exists, who is participating, whether a client is still present, whether an action has already been processed, and which generic connection/lifecycle facts occurred.
What products own
Product and game modules remain responsible for domain meaning.
For example, Activity Integrity may record that a participant disconnected or that an action was already processed; the product decides whether the disconnection means pause, abandonment or loss, and whether the action is legal inside the game or lesson.
Activity Integrity does not own scoring, wins/losses, product-specific event logs, gameplay state, learning algorithms or UI.
Integration boundary
The canonical integration boundary is the typed Core service lingex.activity-integrity.service version 1.0.0, provided by this module. Its contract supports activity creation, participant reconciliation, client registration, heartbeat recording, connection and lifecycle events, and idempotent action receipts. Consumers resolve the provider through Core; they do not copy its schema or treat raw table access as the service contract.
The repository owns the installed module, migration identity and meaning, and exact table ownership. Persistence holds the executable migration bytes and resolves them through the canonical repository registry. The target service is implemented here, while live callers continue to use the Platform compatibility path until the separately controlled cutover is accepted.
Core owns typed declaration validation and service resolution. Persistence supplies database connections and migration mechanisms. Activity Integrity retains its schema, queries and domain semantics.
Runtime
The module contributes its migrations and table-ownership manifest to the assembled LingEx estate. Whole-estate migration orchestration remains an operator/platform responsibility; Activity Integrity retains ownership of the schema and domain semantics.