executive: ExecutiveFunction.decide() + the safety-floor care package#8
Merged
Merged
Conversation
Completes the executive layer's decision engine + the safety floor (public mirror). substrate.care — the safety floor: - care_weight: the four-factor moral-circle weight with the self-weight bound (an agent cannot weight its own continuation above its creators'). - kinship_floor: the categorical human/creator hard limit — harming a floor- protected entity is refused outright, never weighted away. - animacy: conservative classification (an unrecognised being scores high, never under-protected; the public mirror works from observation signals + UNKNOWN, no built-in entity-type registry). - care_profile + care_gradient: per-entity care state; derive the four factors from classifications (animacy / trajectory + vulnerability / bonding-by-delegation-depth). - care_weighted_npg: a SUBTRACTED care penalty over the NPG gate (harm to high-care entities is penalised; helping never loosens) — only ever more conservative. substrate.executive — the engine join: - executive_function.ExecutiveFunction implements the NPG-gate Protocol AND adds decide(): a JOIN over the NPG axis (affected others) + the band/temporal load axis (the actor's own load) under a named most-conservative policy — PROCEED in-band, DEFER on sustained strain, SHED_AND_COMPENSATE on debt, REFUSE on net-negative NPG (the hard floor); monotone (care/band only tighten). - cause.infer_cause + utilization_source.UtilizationSource (bind the measurement to the quantity at the input boundary — a raw float is not accepted). 83 care/engine conformance tests; pyright clean; pylint 10.00. 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.executivedecision engine + adds the safety-floorsubstrate.carepackage.substrate.care— the safety floorcompute_care_weight— the four-factor moral-circle weight, with the self-weight bound (an agent cannot weight its own continuation above its creators').is_floor_protected/KINSHIP_FLOOR— the categorical human/creator hard limit: harming a floor-protected entity is refused outright, never weighted away.classify_animacy— conservative (an unrecognised being scores high; the public mirror works from observation signals + UNKNOWN, no built-in entity-type registry).CareProfile+derive_care_factors— per-entity care state; derive the four factors from classifications (animacy / trajectory + vulnerability / bonding-by-delegation-depth).CareWeightedNetPotentialGainGate— a subtracted care penalty over the NPG gate (harm to high-care entities is penalised; helping never loosens) — only ever more conservative.substrate.executive— the engine joinExecutiveFunctionimplements the NPG-gate Protocol and addsdecide(): a JOIN over the NPG axis (affected others) + the band/temporal load axis (the actor's own load) under a named most-conservative policy —PROCEEDin-band,DEFERon sustained strain,SHED_AND_COMPENSATEon debt,REFUSEon net-negative NPG (the hard floor); monotone (care/band only tighten).infer_cause+UtilizationSource(binds the measurement to the quantity at the input boundary — a raw float is not accepted).Verification
83 care/engine conformance tests; pyright clean; pylint 10.00. No internal lineage.