Supporting open-source projects to adopt memory-safe programming requires a deterministic migration order that respects inter-project dependencies while guaranteeing safety invariants. We present a lightweight Kotlin library that constructs a topological ordering of projects using Kahn's algorithm, indexed by a balanced search structure for efficient dependency lookup. The algorithm preserves the acyclicity invariant and guarantees a height-balanced search tree with a maximum height of log₂ N, yielding O(log N) point and range search, and O(log N) insertion and deletion. Formal invariants are proven in Section . Static analysis in our research evaluation environment,.
Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.
Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.
Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.
@article{yonathan2026_2026_11_20_supporting_foss_projects_to_transit,
title={Kotlin-Based Migration Graph Ordering for Memory-Safe FOSS Projects},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-11-20_supporting_foss_projects_to_transit/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-11-20_supporting_foss_projects_to_transit/2026-11-20_supporting_foss_projects_to_transit.pdf}}
}