Skip to content

setup: fix LLM fallback config patch#66

Merged
ai-hpc merged 9 commits into
mainfrom
fix/issue-65-setup-config-patch
May 18, 2026
Merged

setup: fix LLM fallback config patch#66
ai-hpc merged 9 commits into
mainfrom
fix/issue-65-setup-config-patch

Conversation

@ai-hpc
Copy link
Copy Markdown
Member

@ai-hpc ai-hpc commented May 18, 2026

Summary

  • Read [services.llm].backend through sudo awk after setup locks geniepod.toml down to 0600.
  • Make patch_services_llm_backend read the root-owned config through sudo and return errors on read/install failures.
  • Check both auto-fallback patch calls and abort setup instead of enabling services against an unpatched config.
  • Add a focused regression test pinning the privileged read + checked fallback behavior.

Tests

  • bash -n deploy/setup-jetson.sh
  • cargo test -p genie-core --test tool_dispatch_test setup_script_privileged_llm_backend_patch_is_checked
  • git diff --check

Closes #65

@ai-hpc ai-hpc force-pushed the fix/issue-65-setup-config-patch branch from 1cc7233 to d3051f1 Compare May 18, 2026 00:32
@ai-hpc ai-hpc force-pushed the fix/issue-65-setup-config-patch branch from d3051f1 to 491584a Compare May 18, 2026 00:45
@ai-hpc ai-hpc merged commit 32dea9d into main May 18, 2026
7 checks passed
@ai-hpc
Copy link
Copy Markdown
Member Author

ai-hpc commented May 18, 2026

Post-merge validation notes:

  • CI was green before merge: fmt, clippy, tests, no-default-features axis, aarch64 release build, ruff, and shellcheck.
  • Jetson setup path was validated with the v1.0.0 genie-ai-runtime release assets: binaries downloaded, SHA256 checks passed, config selected backend = "genie_ai_runtime" and systemd_unit = "genie-ai-runtime.service".
  • Runtime health passed with Qwen3-4B on genie-ai-runtime.
  • start_all.sh / stop_all.sh deployed cleanly; start_all now queues warmup oneshots with --no-block and exits normally.

Merged as 32dea9d. Follow-up runtime note: the latest board check still reported genie-core offline, so that should be diagnosed from genie-core logs separately from issue #65.

@ai-hpc ai-hpc deleted the fix/issue-65-setup-config-patch branch May 28, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setup-jetson.sh patch_services_llm_backend fails with 'Permission denied' — auto-fallback prints NOTE but never patches geniepod.toml

1 participant