Skip to content

Dreadnought Protocol

RunningArmy6 edited this page Nov 18, 2026 · 2 revisions

Colossus v2.8.2 — Legacy Data Migration Engine

Version Component Migration

Dreadnought is the legacy data migration component of the SASL Core Engine.

Its primary responsibility is to transfer supported legacy lock records into the SecureAutoSmartLocks repository architecture.

In the Colossus v2.8.2 architecture, Dreadnought uses the Universal Bridge Adapter and BatchMigrationEngine to coordinate migration, validation, and bulk ingestion.


⚙️ 1. Migration Architecture

Dreadnought consists of several cooperating mechanisms.

Component Responsibility
UniversalBridgeAdapter Coordinates the legacy migration workflow.
Keyset Pagination Reads database records through an advancing cursor.
Migration Validation Checks migration entries and cursor progression.
MigrationGeometryUtil Supports migration-entry geometry handling and deduplication.
BatchMigrationEngine Receives and processes bulk migration entries.

These mechanisms work together to move supported legacy records into SASL's migration pipeline.


🗄️ 2. LWC SQLite Migration

Dreadnought includes a migration provider for legacy LWC SQLite data.

The migration workflow reads supported records and converts them into SASL migration entries.

The current LWC migration path extracts information such as:

  • World identification.
  • Block coordinates.
  • Owner UUID.
  • Block type.
  • Migration record identification.

The resulting entries are prepared for ingestion into the SASL migration system.

Important: The migration process should not be interpreted as a complete conversion of every LWC protection feature.


📦 3. Keyset-Based Database Paging

Dreadnought uses keyset-based paging to retrieve migration records.

Instead of relying on increasingly large SQL OFFSET values, the migration adapter advances through records using a cursor based on the database row identifier.

The workflow includes:

  1. Reading a migration page.
  2. Tracking the last processed row identifier.
  3. Requesting the next page using the advancing cursor.
  4. Validating the returned migration entries.
  5. Checking whether cursor progression occurred.
  6. Passing valid entries to the batch ingestion system.

This approach avoids the repeated offset-based traversal pattern.


🔄 4. BatchMigrationEngine Integration

After migration entries are retrieved and validated, Dreadnought submits them to BatchMigrationEngine.

The integration includes:

  • Bulk migration-entry ingestion.
  • Geometry-related validation and deduplication.
  • Tracking processed migration data.
  • Coordinating migration task completion.
  • Handling unsuccessful migration pages.

The batch engine provides the ingestion mechanism used by the migration workflow.

It is not the legacy database provider itself.


🛡️ 5. Migration Failure Handling

Dreadnought includes checks designed to prevent an unsuccessful migration page from being treated as a successfully completed migration step.

The migration workflow evaluates:

  • Whether a database page reports a failure.
  • Whether the migration cursor advances.
  • Whether migration entries can be processed.
  • Whether the ingestion task completes successfully.

If a migration page fails or the cursor cannot advance, the workflow can abort rather than continue as though the page had been processed correctly.

The migration source is not archived through the normal successful-completion path when migration errors remain.

This distinction is important: a migration attempt is not equivalent to a completed migration.


🔐 6. LWC Migration Limitations

The current SASL 2.8.2 migration implementation focuses on supported lock ownership and block information.

It does not represent complete preservation of all LWC access-control rules.

The following capabilities must not be advertised as fully migrated:

  • Public access permissions.
  • Password-based protection.
  • Complete legacy trust and access-right configurations.

Full LWC rights migration remains a planned improvement for a later development stage.

Administrators should review migrated locks and their access settings after migration.


🧭 7. Migration Preparation

Before starting a legacy migration:

  1. Create a Backup: Back up the server and original LWC database.
  2. Prepare SASL: Install and initialize the SASL version intended for migration.
  3. Check Migration Input: Verify that the required legacy database is available to the migration workflow.
  4. Run the Migration: Start the supported migration procedure.
  5. Review the Result: Check migration output and verify migrated locks in-game.
  6. Preserve the Backup: Keep the original database until the migration has been reviewed successfully.

Do not delete the original migration source merely because the migration process has started.


🔄 8. Dreadnought Within the Core Engine

Dreadnought has a specific responsibility within the five-component SASL Core Engine.

Component Responsibility
Argus Lock integrity monitoring and ghost-data evaluation
Phoenix Chunk-load recovery
Executioner Final purge operations
Dreadnought Legacy data migration
Maximus Cache and temporary-state maintenance

Dreadnought handles migration. It does not replace the normal lock repository, Phoenix recovery system, or the other Core Engine components.


⚠️ Version & Compatibility Notice

This documentation describes the migration implementation associated with SASL 2.8.2.

Migration behavior depends on the supported legacy data format and the information available in the source database.

Complete LWC permission migration, native SQL/MariaDB repository support, and future migration improvements must not be considered completed features of this release unless separately implemented and documented.

Always maintain a backup of the original database before migration.


Architected by Protocol-S Development

Lead Architect: RunningArmy6

Project: SecureAutoSmartLocks (SASL)

Clone this wiki locally