{"id":47589031,"url":"https://github.com/legionio/lex-agentic-inference","last_synced_at":"2026-04-22T09:05:25.392Z","repository":{"id":345222280,"uuid":"1184968653","full_name":"LegionIO/lex-agentic-inference","owner":"LegionIO","description":"LegionIO agentic domain gem: inference cognition extensions","archived":false,"fork":false,"pushed_at":"2026-04-15T16:59:21.000Z","size":306,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-15T18:36:01.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LegionIO.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-18T05:26:17.000Z","updated_at":"2026-04-15T16:58:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/LegionIO/lex-agentic-inference","commit_stats":null,"previous_names":["legionio/lex-agentic-inference"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/LegionIO/lex-agentic-inference","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LegionIO%2Flex-agentic-inference","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LegionIO%2Flex-agentic-inference/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LegionIO%2Flex-agentic-inference/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LegionIO%2Flex-agentic-inference/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LegionIO","download_url":"https://codeload.github.com/LegionIO/lex-agentic-inference/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LegionIO%2Flex-agentic-inference/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32128705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-01T17:02:15.891Z","updated_at":"2026-04-22T09:05:25.387Z","avatar_url":"https://github.com/LegionIO.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lex-agentic-inference\n\nDomain consolidation gem for reasoning, inference, and belief management. Bundles 27 source extensions into one loadable unit under `Legion::Extensions::Agentic::Inference`.\n\n## Overview\n\n**Gem**: `lex-agentic-inference`\n**Version**: 0.1.8\n**Namespace**: `Legion::Extensions::Agentic::Inference`\n\n## Sub-Modules\n\n| Sub-Module | Source Gem | Purpose |\n|---|---|---|\n| `Inference::Abductive` | `lex-abductive-reasoning` | Best-explanation inference — hypothesis generation and ranking |\n| `Inference::Analogical` | `lex-analogical-reasoning` | Structural analogy mapping between domains |\n| `Inference::ArgumentMapping` | `lex-argument-mapping` | Argument tree — premises, conclusions, objections, rebuttals |\n| `Inference::Bayesian` | `lex-bayesian-belief` | Bayesian belief updating with likelihood ratios |\n| `Inference::BeliefRevision` | `lex-belief-revision` | AGM-model contraction, expansion, and revision |\n| `Inference::CausalAttribution` | `lex-causal-attribution` | Weiner's attribution model — internal/external, stable/unstable |\n| `Inference::CausalReasoning` | `lex-causal-reasoning` | Causal graph inference, do-calculus |\n| `Inference::Counterfactual` | `lex-counterfactual` | Nearest-world counterfactual simulation |\n| `Inference::HypothesisTesting` | `lex-hypothesis-testing` | Scientific reasoning loop — generate, predict, test, evaluate |\n| `Inference::Prediction` | `lex-prediction` | Forward-model prediction — four modes, rolling accuracy tracking |\n| `Inference::PredictiveCoding` | `lex-predictive-coding` | Hierarchical predictive coding with precision-weighted error |\n| `Inference::PredictiveProcessing` | `lex-predictive-processing` | Unified perception/action loop |\n| `Inference::FreeEnergy` | `lex-free-energy` | Friston Free Energy Principle — minimize prediction error |\n| `Inference::Intuition` | `lex-intuition` | Fast heuristic-based inference |\n| `Inference::Schema` | `lex-schema` | Organized knowledge structures — schema activation |\n| `Inference::ExpectationViolation` | `lex-expectation-violation` | Surprise from violated predictions |\n| `Inference::UncertaintyTolerance` | `lex-uncertainty-tolerance` | Tolerance for ambiguity and incomplete information |\n| `Inference::RealityTesting` | `lex-reality-testing` | Tests whether beliefs match available evidence |\n| `Inference::Affordance` | `lex-affordance` | Gibson affordance theory — action possibilities from environment |\n| `Inference::EnactiveCognition` | `lex-enactive-cognition` | Varela/Maturana enactivism — sensorimotor loops as meaning |\n| `Inference::PerceptualInference` | `lex-perceptual-inference` | Bayesian perception — sensory likelihoods + priors |\n| `Inference::Coherence` | `lex-cognitive-coherence` | Belief coherence assessment and maintenance |\n| `Inference::Debugging` | `lex-cognitive-debugging` | Systematic diagnosis of cognitive errors |\n| `Inference::Horizon` | `lex-cognitive-horizon` | Reasoning boundary and scope management |\n| `Inference::Gravity` | `lex-cognitive-gravity` | Attractor patterns in belief space |\n| `Inference::Momentum` | `lex-cognitive-momentum` | Inference momentum — continuation bias in reasoning chains |\n| `Inference::Magnet` | `lex-cognitive-magnet` | Magnetic pull of salient attractors |\n\n## Actors\n\n| Actor | Interval | What It Does |\n|-------|----------|--------------|\n| `Abductive::Actor::UpdateAbductiveReasoning` | Every 60s | Prunes low-probability hypotheses |\n| `Affordance::Actors::Scan` | interval | Scans for available affordances in current context |\n| `BeliefRevision::Actor::UpdateBeliefRevision` | Every 120s | AGM contraction on low-confidence beliefs |\n| `Coherence::Actor::UpdateCognitiveCoherence` | Every 120s | Recomputes coherence scores across belief graph |\n| `ExpectationViolation::Actor::DecayViolations` | Every 300s | Decays stale expectation violation records |\n| `FreeEnergy::Actor::UpdateFreeEnergy` | Every 30s | Minimizes free energy — updates variational estimates |\n| `Horizon::Actors::Adjust` | interval | Adjusts reasoning horizon bounds |\n| `Momentum::Actor::UpdateCognitiveMomentum` | Every 60s | Decays inference momentum, updates continuation bias |\n| `Prediction::Actors::ExpirePredictions` | Every 300s | Expires stale predictions |\n| `PredictiveCoding::Actors::Decay` | interval | Decays precision weights in predictive coding hierarchy |\n| `RealityTesting::Actor::DecayBeliefs` | Every 300s | Decays beliefs that are no longer supported by evidence |\n\n## Installation\n\n```ruby\ngem 'lex-agentic-inference'\n```\n\n## Development\n\n```bash\nbundle install\nbundle exec rspec        # 2293 examples, 0 failures\nbundle exec rubocop      # 0 offenses\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegionio%2Flex-agentic-inference","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flegionio%2Flex-agentic-inference","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegionio%2Flex-agentic-inference/lists"}