Repository is archived
No release in over 3 years
Cascading thought-chain model for LegionIO — snowpack stability, trigger events, cascade propagation, and debris fields model how small perturbations become massive cognitive avalanches
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

 Project Readme

lex-cognitive-avalanche

Cascading thought-chain model for LegionIO. Models how small perturbations become massive cognitive avalanches through snowpack accumulation, trigger events, and cascade propagation.

What It Does

Thoughts accumulate like snow: slow buildup increases depth, reducing stability over time. When depth crosses a threshold and external force is applied, an avalanche triggers. The cascade type determines the character of the runaway — creative cascades are productive bursts of association, chaotic cascades are destabilizing spirals.

The extension tracks snowpacks by type (ideas, emotions, memories, associations, impulses) and domain, records cascade history with magnitude scores, and provides terrain stability reports.

Usage

client = Legion::Extensions::CognitiveAvalanche::Client.new

pack = client.create_snowpack(
  snowpack_type: :ideas,
  domain: :problem_solving,
  content: 'unprocessed ideas about the architecture',
  stability: 0.8
)

client.accumulate(rate: 0.06)   # call periodically to build depth

cascade = client.trigger(
  snowpack_id: pack[:snowpack][:id],
  force: 0.6,
  cascade_type: :creative
)

client.terrain_status

Development

bundle install
bundle exec rspec
bundle exec rubocop

License

MIT