Composable imports prefer workspace packages over std facades¶
Summary¶
Ergonomic imports like physics.relativity resolve to monorepo packages/* when listed in packages/li.toml, falling back to std/ facades only when no workspace member matches.
Agent continuation¶
- Read
compiler/types/import_resolve.cpp(resolve_module_path). - Run
./li-tests/run_all.sh composableafter buildinglic. - Next: align
docs/ecosystem/composable-by-default.mdexamples withimport_namefrom each packageli.toml. - Blocked: none.
Changed¶
compiler/types/import_resolve.cpp— workspace lookup beforeeasy_std_module.li-tests/composable/import_{httpd_lib,physics_relativity,physics_runtime}.li— canonicalimport_namepaths.li-tests/manifest.toml— enableimport_physics_runtimecomposable test.
Not changed¶
defsyntax policy or package mirror repos.- Std facade files under
std/physics/*(still used when no workspace package).
Breaking¶
N/A for external users; in-monorepo import physics.* may bind to package APIs instead of std tag-only facades.
Security¶
N/A.
Performance¶
N/A.
Downstream¶
Package mirrors unchanged; behavior applies when building against full lic workspace.