Repository is archived
No release in over 3 years
Models cognitive cocooning — fragile ideas enter protective shells, gestate at complexity-appropriate rates, and emerge transformed. Premature exposure risks idea death.
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-cocoon

Protective encapsulation of fragile ideas during development for LegionIO agents. Models cognitive cocooning — fragile ideas enter protective shells, gestate at complexity-appropriate rates, and emerge transformed.

What It Does

Not all ideas are ready for the world. Some need protected incubation before they are robust enough to integrate with existing knowledge. This extension models that protective phase: ideas are wrapped in type-appropriate cocoons (silk, chrysalis, shell, pod, web) with different protection strengths, and gestate through stages until they are ready to emerge. Premature forced emergence applies a maturity penalty.

Usage

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

cocoon = client.create_cocoon(
  cocoon_type: :shell,
  domain: :identity,
  content: 'tentative belief about autonomy thresholds'
)

# Call periodically to advance gestation
5.times { client.gestate_all(rate: 0.1) }

client.cocoon_status
# => { total: 1, ready: 0, emerged: 0, ... }

ready = client.harvest_ready

Development

bundle install
bundle exec rspec
bundle exec rubocop

License

MIT