EMRY-005: DeployMode detection (embedded/sidecar/file) #53
No reviewers
Labels
No labels
blocked
bug
compat
docs
documentation
duplicate
emry-cli
emry-core
emry-engine
emry-ingest
emry-py
emry-store
emry-tui
emry-web
enhancement
good first issue
gpu-compute
help wanted
hpc
infra
integrations
invalid
needs-design
P0-blocker
P1-core
P2-enhanced
P3-future
performance
pull-request
python
pytorch
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
femboy/emry!53
Loading…
Reference in a new issue
No description provided.
Delete branch "emry-005-deploy-mode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes EMRY-005 (#6). Branched off
main.What
crates/emry-core/src/mode.rs—DeployMode(Embedded/Sidecar/File),DeployEnvinputs struct,FromStr/Display,ParseDeployModeError.Precedence: API override →
EMRY_MODE→ auto-detect (SSH/SLURM → sidecar, TTY → embedded, else file). Detection logic is a pure function ofDeployEnv; onlyfrom_env()/detect()touch the real environment — so resolution is tested with deterministic table-driven cases, no racy global-env mutation.Module doc is the canonical
EMRY_MODE/EMRY_LIVE/EMRY_SOCKET/EMRY_LOG_DIRreference.Verification
./scripts/pre-commit-rust.shgreen: fmt, clippy-D warnings, tests, mode.rs 99% linesEMRY_MODE(pinned so the Python mirror EMRY-031 matches)Review
No bugs found. Added the empty/whitespace-
EMRY_MODEcases per review to lock the contract for EMRY-031.