executive: deliberation, state-query, roll-up, peer-alarm faculties + foundation#7
Merged
Merged
Conversation
… foundation Completes the executive faculty layer on the band foundation (public mirror): - temporal.py: SustainedLoadTracker Protocol + EwmaLoadTracker (EWMA + consecutive-breach) — the sole SPIKE-vs-SUSTAINED authority. Reuses sustained_load.LoadTrend (no shadow enum); strain is sustained > pivot, debt is sustained > danger_line (corrected thresholds, from the profile). - scale.py: ExecutiveScale / ScaleAxis + axis_of / physical_parent / entity_parent (entity, physical cell→rack→zone→region, grouping roll-up axes). - deliberation.py (+ _trajectory.TrajectoryClass): roll out N candidates, score each affected entity FROM ITS OWN FRAME (care-weight × φ-proportioned trajectory), disqualify floor-harm + net-negative-long-cycle extraction, surface trade-offs, arg-max long-horizon NPG. Perspective-taking = the empathy. - state_query.py: integrate a load history → energy / effort (slacking=avoidance) / trajectory + a human summary. - roll_up.py: aggregate member loads up a parent scale → distribution, worst member, over-load/idle failure-tell fractions. - peer_alarm.py: herd-panic correlation (N peers weird → enclosing scale) + alarm propagation (trust × independent-corroboration, panic-injection guard). Also scrubs an internal codename from the (already-merged) observed-graph test docstring. 91 executive conformance tests; pyright clean; pylint 10.00. Public — no internal lineage. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the
substrate.executivefaculty layer on top of the band foundation (the first PR).Foundation
temporal—SustainedLoadTrackerProtocol +EwmaLoadTracker(EWMA + consecutive-breach): the sole SPIKE-vs-SUSTAINED authority, so the pivot and damage/debt fire by duration (a transient peak is absorbed). Reusessustained_load.LoadTrend(no shadow enum); corrected thresholds from the profile.scale—ExecutiveScale/ScaleAxis+axis_of/physical_parent/entity_parent(entity / physical cell→rack→zone→region / grouping roll-up axes).Faculties
deliberate— roll out N candidate actions, score each affected entity's impact from its own frame (care-weight × φ-proportioned trajectory), disqualify floor-harm + net-negative-long-cycle extraction, surface investment/extraction/redistributive trade-offs, pick the arg-max long-horizon net-potential-gain action. The perspective-taking is the empathy.integrate_state— integrate a load history → energy / effort (slacking = avoidance) / trajectory over time + a human-readable summary.roll_up— aggregate member loads up a parent scale → zone distribution, worst member, over-load/idle failure-tell fractions.correlate_anomalies/assess_alarm— herd-panic correlation (N peers weird together ⇒ the enclosing scale has a problem) + trust × independent-corroboration alarm weighting with a panic-injection guard.Also scrubs an internal codename from the (already-merged) observed-graph test docstring.
Verification
91 executive conformance tests; pyright clean; pylint 10.00. No internal lineage.