Repository navigation
feat(perturbation): distinguish grid and telecom outage causes - #1691
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Purpose
Apply the now-merged #1689 egglog/eggcc/3LA research as a bounded independent oracle contract for
perturbation-sim, usingAdaWorldAPI/Bangladesh-outageas a historical behaviour/data-source reference without confusing it for measured causal ground truth.Changes
crates/perturbation-sim/src/outage_oracle.rs: scalar strong-Kleene 3-state oracle for grid-supply, backup-power and telecom-path availability. Keep grid incidents, service loss, telecom failures and simultaneous causes separate.assess_bound: reject invalid windows, cross-tower identities and stale per-source generations before any future egglog/R2IL extraction.src/lib.rs.BANGLADESH_EGGLOG_ORACLE.md: exact legacy Python source mapping, leakage audit, effect-safe cold egglog -> typed R2IL -> Quack/mask-risc target, and independent acceptance gates.Source-grounded blockers
Historical A10H telemetry labels
grid_status = offwhenever a tower outage interval is active. It is not an independent power-grid observation, and the A10H event generator lacks a separate telecom-path failure. Region/day aggregation loses site/incident cause. The legacy training pipeline also includes a precomputed futuretarget_outage_15din model features; fits scaler before split; feeds Sigmoid to BCEWithLogitsLoss; calibrates on scored validation. Do not cite historical synthetic metrics as a physically validated causal oracle.perturbation-sim::simulate_outagestill computes a transmission-grid perturbation, not a tower-down signal. It cannot infer distribution/site power, tower batteries, radio equipment or backhaul without explicit independent evidence.Verification and status
cargo test --manifest-path crates/perturbation-sim/Cargo.tomlin a checkout with siblingndarraybefore merging.Acceptance/red lines
Grid loss does not imply tower loss when backup works; tower failure does not imply grid loss; simultaneous causes do not collapse. UNKNOWN does not become FALSE. Local row ordinal cannot stand in for tower identity. A cascade's spectral risk ranking cannot be used as an observed site power outage. No cross-table positional gather or effect reordering is admitted by equality saturation.
Links: #1689; Bangladesh-outage.