Society · Protocols

GracefulDegradation

When verification fails, fall back to inline definition

Definition

Mechanism

Resolution Fallback Strategy. When a Pattern_ID is not found in local storage, the system attempts to resolve it via secondary channels (Inline Payload -> Network Request) rather than halting immediately. Crucially, any definition acquired this way must be cryptographically verified against the requested Pattern_ID. It defaults to FailClosed if verification fails, but attempts to parse verified inline definitions to maintain continuity.

Preconditions

  1. Message contains fallback data OR sender is reachable
  2. Pattern lookup failed

Postconditions

  1. Pattern resolved and locally minted OR Transaction aborted

Invariants

  1. A definition enters local storage only if it validates fully.
  2. An externally acquired definition is hashed and verified against the requested ID before loading.
  3. Rejects definitions larger than `max_def_size`.
  4. Expands inline definitions no deeper than `max_recursion_depth`.
  5. Defaults to FailClosed when verification fails.

Risks

Failure modes

  1. Hash Mismatch

    Inline definition claims to be Pattern#X but hashes to Pattern#Y (Spoofing).

  2. DoS via Definition

    Sender includes massive multi-megabyte 'definition' to exhaust receiver memory.

  3. Dependency Hell

    Inline definition references other unknown patterns, triggering recursive lookups.

Relationships

Builds on

References

Infrastructure

FailClosed

Default-deny policy for uncertain states

Infrastructure

Message

Structured signal container

Mind

Strategy

Adaptive high-level planning

Used by

References

Reference

Parameters

max_def_size PositiveInteger, unspecified
Largest inline definition accepted, in bytes. Deliberately uncapped; default 100KB.
max_recursion_depth Integer, [1, 5]
Depth of inline-definition expansion permitted before the chain is refused.

Identity

Ref
GracefulDegradation#6633
Sema ID
sema:GracefulDegradation#mh:SHA-256:6633433b9b713c199d43b085ec6e07183544183c507e5c9673aafa0518135df9
Ring
0
Tier
1
Updated
2026-11-11
Supersedes
  • sema:GracefulDegradation#mh:SHA-256:f6d796365ffaa5244e54660f836f2e31ca948169f42fd305da33445cbfa30485
  • sema:GracefulDegradation#mh:SHA-256:1a82403193308a36bfe7623bdbd9e98dd611761e086b0e038ced0655e8db0336
  • sema:GracefulDegradation#mh:SHA-256:84362d70dbeb585179a9adc7352dcd96d5edd14a611ee6c7d2400a4d78395eec
  • sema:GracefulDegradation#mh:SHA-256:f10808f46c43a5c56cc2c16b27de525604b7888f232240cb742f276e089d4781
  • sema:GracefulDegradation#mh:SHA-256:b5fb816bf7d74fb14b80795841d2043f22ac266873f442fce51c163346dc5a85