Skip to content

Core Engine

RunningArmy6 edited this page Nov 20, 2026 · 4 revisions

Colossus v2.8.2 — Core Architecture & Internal Systems

Version Architecture Platform

The Core Engine is the central internal architecture of SecureAutoSmartLocks (SASL).

It coordinates the plugin's lock-data operations, persistence workflows, chunk recovery, maintenance processes, and supported legacy migrations.

SASL uses specialized internal components to handle these responsibilities rather than relying on a single monolithic process.


⚙️ Core Architecture

SASL 2.8.2 uses a hybrid persistence architecture consisting of:

  • In-Memory State: Runtime access to lock information and associated caches.
  • Block-Level PDC: Persistent metadata associated with individual blocks.
  • Chunk-Level PDC: Persistent lock data associated with chunks.
  • YAML Repository: The central lock repository implemented through LockRepository and YamlLockRepository.

These mechanisms cooperate to maintain and reconcile lock information during normal operation, chunk loading, and persistence workflows.


🛡️ The Five Core Components

The Core Engine contains five specialist components. The names below describe their architectural responsibilities; they do not imply that each component is implemented as an independent Java class.

1. 🛰️ Argus — Lock Integrity Monitoring

Primary Responsibility: Lock scanning and ghost-data evaluation.

Argus evaluates lock-related records and identifies data that may no longer correspond to valid locked blocks.

Its responsibilities include:

  • Scanning and evaluating lock records.
  • Using player and chunk activity information during integrity checks.
  • Evaluating relevant block, world, and persistent-data states.
  • Tracking potential ghost-lock records.
  • Applying delayed confirmation checks before suspected records proceed toward cleanup.

Argus handles detection and evaluation. It is not the final purge executor.

Detailed Documentation: Argus Protocol


2. 🔥 Phoenix — Chunk Recovery System

Primary Responsibility: Persistent-data recovery during chunk loading.

Phoenix processes chunk-load recovery workflows and reconciles recovered lock information with the active repository.

Its responsibilities include:

  • Processing chunk-load events.
  • Reading chunk-level PDC data.
  • Inspecting block-associated TileState PDC data.
  • Applying processing limits and debounce controls.
  • Parsing persistent data in batches.
  • Dispatching Bukkit world and block operations to the appropriate server thread.
  • Reconciling recovered information with the active lock state.

Phoenix focuses on recovering and reconciling lock information when chunks become available.

Detailed Documentation: Phoenix Protocol


3. ⚔️ Executioner — Final Purge System

Primary Responsibility: Executing queued lock-data cleanup operations.

Executioner handles the final purge stage for lock records identified for removal.

Its responsibilities include:

  • Processing queued lock keys.
  • Preventing overlapping purge executions through a running-state guard.
  • Executing the final cleanup workflow.
  • Coordinating the removal of obsolete lock information from relevant runtime and persistence structures.

Argus evaluates suspicious records; Executioner handles the final purge workflow.

Detailed Documentation: Executioner Protocol


4. ⚓ Dreadnought — Migration Engine

Primary Responsibility: Supported legacy lock-data migration.

Dreadnought provides the migration infrastructure used to transfer supported legacy lock data into SASL's repository architecture.

Its migration workflow includes:

  • Universal Bridge Adapter integration.
  • Keyset-based database paging.
  • Cursor progression and migration failure checks.
  • Migration-entry validation and deduplication.
  • Bulk ingestion through BatchMigrationEngine.
  • Controlled handling of unsuccessful migration pages.

Migration Scope Notice

The current 2.8.2 migration implementation does not guarantee preservation of every legacy protection permission.

Full LWC rights migration, including public and password-based access rules, remains a planned improvement and must not be considered a completed 2.8.2 feature.

Detailed Documentation: Dreadnought Protocol


5. 🧠 Maximus — Memory & Cache Watchdog

Primary Responsibility: Periodic cache and temporary-state maintenance.

Maximus performs scheduled maintenance of selected runtime caches and temporary records.

Its responsibilities include:

  • Maintaining configured cache limits.
  • Cleaning stale hopper and hopper-minecart ownership cache entries.
  • Managing temporary lock-related records.
  • Cleaning expired cooldown and tracking entries.
  • Maintaining pending PDC write records.
  • Running periodic lightweight and heavier maintenance tasks.

Maximus is a maintenance component. It is not the lock repository or the persistence system itself.

Detailed Documentation: Maximus Protocol


🔄 Component Responsibility Overview

Component Main Responsibility
Argus Lock integrity scanning and ghost-data evaluation
Phoenix Chunk-load recovery and persistent-data reconciliation
Executioner Final purge execution
Dreadnought Legacy data migration
Maximus Cache and temporary-state maintenance

Each component has a distinct responsibility within the wider SASL architecture.


📚 Related Documentation

Documentation Purpose
Migration Protocol Supported legacy migration workflows
Commands & Permissions Command and permission reference
Automation Chain Hopper and hopper-minecart transfer protection
Structural Integrity Protocol Double-chest and multi-block lock behavior

⚠️ Architecture & Version Notice

This document describes the SASL 2.8.2 architecture.

Capabilities planned for later releases must not be interpreted as implemented 2.8.2 features.

Future architectural changes will be documented against their corresponding release versions.


Architected by Protocol-S Development

Lead Architect: RunningArmy6

Project: SecureAutoSmartLocks (SASL)

Clone this wiki locally