Skip to content

executive: deliberation, state-query, roll-up, peer-alarm faculties + foundation#7

Merged
TrevorKagin merged 1 commit into
mainfrom
feat/executive-faculties
Jun 9, 2026
Merged

executive: deliberation, state-query, roll-up, peer-alarm faculties + foundation#7
TrevorKagin merged 1 commit into
mainfrom
feat/executive-faculties

Conversation

@TrevorKagin

Copy link
Copy Markdown
Contributor

Summary

Completes the substrate.executive faculty layer on top of the band foundation (the first PR).

Foundation

  • temporalSustainedLoadTracker Protocol + EwmaLoadTracker (EWMA + consecutive-breach): the sole SPIKE-vs-SUSTAINED authority, so the pivot and damage/debt fire by duration (a transient peak is absorbed). Reuses sustained_load.LoadTrend (no shadow enum); corrected thresholds from the profile.
  • scaleExecutiveScale / 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.

… 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>
@TrevorKagin TrevorKagin merged commit 49120af into main Jun 9, 2026
0 of 4 checks passed
@TrevorKagin TrevorKagin deleted the feat/executive-faculties branch June 9, 2026 20:44
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