Skip to content

feat: expose Shen Batteries host features - #18

Merged
pyrex41 merged 1 commit into
mainfrom
feat/batteries-features
Aug 25, 2026
Merged

pyrex41 merged 1 commit into
mainfrom
feat/batteries-features

Conversation

@pyrex41

@pyrex41 pyrex41 commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Summary

Expose shen.x.features.current so Shen Batteries can discover optional host capabilities after kernel boot.

  • Register the query in both the live native namespace and the AOT direct-dispatch table.
  • Report shen.x/sha256-host when the SHA host backend is enabled; return an empty list when SHEN_X_SHA256=pure.
  • Keep the query installed even in pure mode so a missing primitive is not confused with an empty feature set.

This is the unique unmerged work from a17c415, cherry-picked onto current main (which already has the Yggdrasil rename). The rename commit is not included.

Test plan

  • cargo test -p shen-rust --test boot_kernel -- shen_batteries_features_query_reports_sha_host --exact

@pyrex41
pyrex41 merged commit 923e87e into main Aug 25, 2026
1 of 2 checks passed
@pyrex41
pyrex41 deleted the feat/batteries-features branch August 25, 2026 14:52
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.

1 participant