Architecture

Static Import Resolution

How Septum resolves extracted imports across languages, project manifests, and uncertainty boundaries.

Boundary enforcement relies on knowing whether an import statement targets a local file in another domain, a declared external package, or an unresolved symbol. Septum's ImportResolver evaluates extracted import statements alongside workspace manifests and project references.


Resolution Statuses

Every evaluated import resolves to an explicit status rather than guessing:

StatusMeaning
resolvedMapped to one or more local source files or packages inside the workspace.
externalRecognized as a standard-library module or manifest-declared external dependency (does not prove the package is installed).
unresolvedTarget could not be located within static workspace scope.
ambiguousMultiple candidate targets matched without a deterministic disambiguator.
unsupportedLanguage syntax or configuration construct lies outside current resolver support.

Coverage is reported explicitly as partial or conditional (when build tags, profiles, or preprocessor directives can alter which files participate). Boundary checks treat conditional resolution as incomplete evidence rather than silent approval.


Supported Language Scope & Limits

LanguageSupported Static InputsDocumented Limits
TypeScript / JSRelative paths, configured tsconfig aliases, workspace packages.Dynamic import() expressions and runtime path generation remain unresolved.
PHPPSR-4 namespace mappings and manifest ownership.Dynamic class loading and runtime container bindings remain outside static resolution.
PythonNearest ancestor manifest (pyproject.toml, requirements*, Pipfile, Poetry/uv locks), relative/local imports, selected distribution aliases (e.g. PyJWT → jwt).Namespace packages, runtime sys.path mutations, and lockfile distributions without explicit module mappings remain incomplete.
Gogo.mod, go.work workspace members, local replace directives inside the workspace, multi-file packages.External downloads and source outside the Septum workspace are excluded; build-tag files are conditional.
Rustcrate/self/super module trees, out-of-line/inline modules, Cargo.toml aliases and path libraries.cfg / optional dependencies are conditional; procedural macros, arbitrary build scripts, and re-exports can remain partial.
RubyLiteral require_relative, owner/lib load paths, literal Gemfile and lockfile gem declarations.Dynamic load paths, evaluated Gemfile logic, and Zeitwerk constant autoloading are not executed.
JavaLocal source package/type lookup, nested types, literal Maven reactor roots and conventional Gradle project references.No build execution or complete binary .jar classpath resolution; custom Gradle source sets are unsupported.
C#Local namespace/type file sets, using aliases, literal .csproj references and Compile includes/removes.MSBuild conditions and #if preprocessor directives remain conditional.

Resource Bounds & Freshness

  • Resolution is strictly workspace-contained (including symlink destination checks), enforces a 2 MiB per-file read limit and 16 MiB per-resolution read cap, and caps recursive scans (20,000 entries / 64 levels).
  • When project manifests or lockfiles change on disk (or in staged Git snapshots), Septum triggers watcher reconciliation and widens staged analysis so import ownership reflects updated dependencies.