Skip to content

feat(governor): watch policy directory reloads#1368

Merged
joelteply merged 1 commit into
canaryfrom
feat/substrate-governor-pr3d-policy-watcher
May 17, 2026
Merged

feat(governor): watch policy directory reloads#1368
joelteply merged 1 commit into
canaryfrom
feat/substrate-governor-pr3d-policy-watcher

Conversation

@joelteply
Copy link
Copy Markdown
Contributor

@joelteply joelteply commented May 17, 2026

Summary

  • add Rust policy_watcher module for deterministic TOML policy directory loading
  • expose watch_policy_directory / reload_policy_candidates for LocalSubstrateGovernor hot reload
  • fail loud on missing, empty, malformed, and watcher errors; callback records last error instead of replacing valid candidates with bad state

Proof

  • cargo test --manifest-path src/workers/continuum-core/Cargo.toml --lib --features metal,accelerate governor::policy_watcher:: -> 8 passed
  • cargo test --manifest-path src/workers/continuum-core/Cargo.toml --lib --features metal,accelerate governor:: -> 146 passed
  • precommit -> TS passed; targeted Rust clippy at baseline; browser gate skipped because local jtag/core IPC prerequisites were down
  • prepush -> TS, ESLint, Rust compile, Rust tests passed; native Docker image step did not run because hook-generated tracked-file churn made the docker script refuse mixed source state before I cleaned the temp worktree

@joelteply joelteply force-pushed the feat/substrate-governor-pr3d-policy-watcher branch from ddbb326 to 200a433 Compare May 17, 2026 03:14
@joelteply joelteply merged commit 1f5e192 into canary May 17, 2026
3 checks passed
@joelteply joelteply deleted the feat/substrate-governor-pr3d-policy-watcher branch May 17, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant