LingEx
All module documentation

lingex-source-scout

LingEx Source Scout

Source details
Source revision
4639bff8c091a07fc287f7c5361906554c4a566e
Source SHA-256
a1dd46ba2149edab316153ea70f462b8edd080a5a2b29d6a1e221ffe3c00a3ea

LingEx Source Scout

lingex-source-scout is LingEx's controlled external-source acquisition service and the sole LingEx subsystem permitted to discover or acquire external source material.

It owns explicit acquisition intent, acquisition planning/resolution, transport, retry/rate control, exact-byte verification, protected placement, acquisition-side rights/bibliography evidence, verified handoff and acknowledgement state.

Boundary

Source Scout stops at verified handoff/acknowledgement. Acquired payload bytes are written directly into protected LingEx server-managed source storage outside Git worktrees; they are not stored in the Source Scout repository or a Mac repository checkout. Git remains the source of truth for repository code, configuration and durable documentation, not acquired datasets.

Data Platform owns canonical source/document/file registration, bibliography reconciliation, import-work visibility, linguistic/corpus import and downstream processing from that verified server-resident handoff.

Source Scout stores each acquisition handoff manifest and its checksum sidecar as known logical objects in the declared acquisition-handoffs file_store resource, resolved through Core's typed Persistence service graph. The opaque keys derive from the immutable handoff key; the existing canonical JSON and sidecar checksum format remain unchanged. Persistence supplies atomic object storage only. Source Scout retains handoff identity, permissions, retention, promotion/acknowledgement lifecycle and domain meaning. The Data Platform receiver reads those same named objects and still independently verifies the acquired payload bytes. This integration is present in the current selected source. It does not bulk-migrate historical handoff objects, and this document makes no claim that any particular historical handoff was reconciled or exercised.

Research required to resolve a named requested source is acquisition planning, not autonomous discovery. The historical discovery capability remains a separately gated dormant capability; normal acquisition must not bypass that gate.

Database and module boundary

Source Scout owns the meaning and shape of its acquisition/discovery schema, migration identities, queries and domain semantics. Persistence holds the physical custody of its six catalogued executable migrations under database/migrations/custody/lingex-source-scout/; the original repository, logical migration root, source paths, keys, order and applied-state mapping remain in the Persistence catalogue. Source-byte SHA-256 values record transfer integrity only, not historical applied checksums. Core resolves repository and service identities for source and sealed-release composition. Source Scout has no independent migration executor or applied-state writer; the Platform release graph delegates hosted migration planning and execution to Persistence through Core.

Persistence supplies the hosted database connection through Source Scout's declared lingex.core.database-access dependency resolved by Core. Source Scout retains ownership of its schema, migration identities, queries and domain semantics; no Auth-backed or standalone database bootstrap is used.

The root module also declares all 20 Source Scout-owned database tables as versioned database_table resources, linked to the six catalogued migration identities. These declarations describe Source Scout's logical schema for Core and Persistence; they do not execute migrations or assert that a production database has been inspected or changed. The existing acquisition-handoffs file_store declaration remains the logical resource used for verified handoff manifests and checksum sidecars.

The dormant promotion compatibility adapter obtains Data Platform's database connection through its typed Core-resolved Persistence helper, using the validated Core lookup already serving Source Scout. It does not use the Auth database helper or open a separate connection path. Data Platform retains canonical registration and receipt ownership.

The root module declares Source Scout database, Admin Console and public/assets contributions. Admin Console owns shared composition/shell; Source Scout owns its styles, handlers and domain behaviour. Its Admin pages pass versioned head styles to Web Runtime's shared scheduler.

Read-only agent summary

Source Scout provides a versioned aggregate pipeline summary to the canonical LingEx AI-host MCP surface. It contains Source Scout-owned acquisition and handoff status counts, recent activity timestamps and explicit actionable counts only. It does not expose source payloads, storage paths, arbitrary records or Data Platform-owned import state. The single tool is declared by this module and validated by Core; it remains read-only, requires source_scout:read, and requires the caller's current administrative access.

Lifecycle

A normal explicit request moves through planning when necessary, then review/readiness, controlled acquisition, verified handoff, downstream acknowledgement and completion. Blocked, failed, cancelled and superseded states remain non-runnable.

Verification

Migration-aware static verifiers resolve the catalogued files through the active Core source registry and Persistence catalogue; run them from a registered source installation with those repositories available. They do not load migration SQL through a guessed sibling path.

bash scripts/verify-repo-shape.sh
bash scripts/check-architecture.sh
php scripts/verify-discovery-gate.php
php scripts/verify-acquisition-control-plane.php --static-only
php scripts/verify-acquisition-planning.php --static-only
git diff --check