You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wire sample_hidden_graph RNG through RNGRoot for cross-component reproducibility #9
sample_hidden_graph(seed) in leadforge/structure/sampler.py currently constructs a fresh np.random.default_rng(seed) directly from the integer seed. The repo convention (established in leadforge/core/rng.py) is that all stochastic components derive their randomness from a single RNGRoot(seed) with named child streams.
Problem
Bypassing RNGRoot makes cross-component RNG coupling harder to control when the sampler is integrated with the simulation engine. It also means the seed space isn't partitioned the same way as other components.
Proposed fix
When the sampler is wired into Generator/the simulation pipeline (M5/M6), change the API to accept an RNGRoot or a named substream:
The right substream name and API shape depends on how Generator calls the sampler — which is defined in Milestone 5 (population generation). Designing the interface now would be premature.
Activity
fix: address Copilot round-3 review on PR #8
feat: Milestone 4 — world structure layer (node types, graph, motifs,…
refactor: wire sample_hidden_graph RNG through RNGRoot (#35)
PR 5.2 self-review fixes (Kaggle + HF packagers)
PR 5.2: HuggingFace release packager + load_dataset smoke test (#72)