STABLE RELEASE v0.1.0-alpha | BUILD 4092

The Cognitive Kernel for
Civilization-Scale Simulation.

A deterministic BDI/GOAP runtime for Unity. Replace bespoke NPC architecture with a battle-tested middleware kernel.

SUPPORTED RUNTIME: UNITY 6+

Middleware Scope.

Warweaver is an architectural kernel, not a content asset. It enforces strict boundaries to ensure stability in large-scale production environments.

  • [x] DOES provide 100% replayability across platforms.
  • [x] DOES integrate with DOTS/ECS workflows.
  • [ ] Does NOT handle rendering or physics.
  • [ ] Does NOT wrap LLM APIs (Deterministic only).
// AUTOMATED_TEST_RUNNER ALL SYSTEMS GO
GATE-PERF-01 [SCALE] PASS (10,000 AGENTS)
GATE-PERF-02 [TPS] PASS (>= 30.0 FIXED)
GATE-MEM-04 [ALLOC] PASS (0 BYTES HOTLOOP)
GATE-DET-01 [REPLAY] PASS (BIT-EXACT)
* Reference Hardware: Intel i7-13700HX, 32GB RAM, RTX 4060 Laptop.

The Execution Loop

Namespace: Warweaver.Kernel
// 1. Schema Definition (Data-Oriented)
// Configuration is separate from execution.

var schema = new WorldSchema();

// Define Attributes (Quantized floats)
var greed = schema.CreateAttribute("Personality_Greed", 0f, 100f);
var reputation = schema.CreateAttribute("Reputation_Player", -100f, 100f);
var gold = schema.CreateAttribute("Resource_Gold", 0f, 9999f);

// Define Operators (The verbs of the system)
// Logic: "Scam Player" requires high Greed + low Reputation
var scamOp = schema.DefineOperator("Trade_Scam_Player")
    .Requires(gold, Condition.LessThan(500f)) // Desperation
    .AddScoreModifier(greed, 1.5f)            // Greed multiplier
    .AddScoreModifier(reputation, -2.0f);     // Rep multiplier

// Register Archetype (Vectorized automatically)
schema.CreateArchetype("Merchant")
    .AddAttribute(greed)
    .AddAttribute(reputation)
    .AddOperator(scamOp);