paracosm 0.9.763 → 0.9.764

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -52
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,9 +24,19 @@
24
24
  </p>
25
25
 
26
26
  <p align="center">
27
- <a href="https://paracosm.agentos.sh/demo/e2e-atlas-8-hero.mp4">▶ Watch the 90-second end-to-end demo</a>
27
+ <img src="assets/blog/readme/paracosm-hero.gif" alt="Paracosm end-to-end: paragraph in, two leaders running, fork-and-replay out" width="720" />
28
+ </p>
29
+
30
+ <p align="center">
31
+ <em>Type a what-if. Compile a typed world. Run two LLM commanders against it. Fork any past turn. Watch the trajectories diverge.</em>
32
+ </p>
33
+
34
+ <p align="center">
35
+ <a href="https://paracosm.agentos.sh/demo/e2e-atlas-8-hero.mp4">▶ Full 90-second demo</a>
36
+ &nbsp;·&nbsp;
37
+ <a href="https://paracosm.agentos.sh/demo/digital-twin-maria-2-hero.mp4">▶ Digital twin</a>
28
38
  &nbsp;·&nbsp;
29
- <a href="https://paracosm.agentos.sh/demo/digital-twin-maria-2-hero.mp4">▶ Digital twin walkthrough</a>
39
+ <a href="https://paracosm.agentos.sh/demo/branches.mp4">▶ Branches & forks</a>
30
40
  </p>
31
41
 
32
42
  ---
@@ -391,55 +401,15 @@ Numbers assume 6 turns, 5 departments, 100 agents, up to 3 events per turn. Forg
391
401
 
392
402
  ## How a turn runs
393
403
 
394
- ```
395
- 1. EVENT DIRECTOR Reads world state, prior decisions, tool intelligence.
396
- Generates an event that targets actual weaknesses.
397
-
398
- 2. KERNEL ADVANCE Deterministic time progression: births, deaths, aging,
399
- health decay, resource consumption. Seeded PRNG.
400
-
401
- 3. DEPARTMENT ANALYSIS All active departments analyze the event in parallel.
402
- Each head uses personality plus tools. Specialists can
403
- forge new computational tools at runtime in a hardened
404
- node:vm sandbox. An LLM judge approves each forge.
405
-
406
- 4. COMMANDER DECISION Reads all department reports. Selects an option.
407
- Personality shapes risk tolerance and priority weighting.
408
-
409
- 5. OUTCOME Kernel classifies the outcome (risky success, risky
410
- failure, safe success, safe failure) from option,
411
- probability, and colony state.
412
-
413
- 6. EFFECTS Kernel applies deltas (population, morale, food,
414
- power, etc.) per outcome and event category.
404
+ Director event → Kernel advance (deterministic, seeded) → Department analysis in parallel (with optional runtime tool forging in a hardened `node:vm` sandbox; an LLM judge approves each forge) → Commander decision (HEXACO-weighted) → Outcome classification → Kernel effects → Agent reactions → Memory consolidation → Personality drift.
415
405
 
416
- 7. AGENT REACTIONS ~100 agents react in parallel using a cheap model.
417
- Each reaction is shaped by the agent's personality,
418
- health, relationships, and accumulated memories.
419
-
420
- 8. MEMORY Reactions become persistent memories. Short-term
421
- consolidates into long-term. Stances drift.
422
- Relationships shift on shared experience.
423
-
424
- 9. PERSONALITY DRIFT HEXACO traits shift through actor pull, role activation,
425
- and outcome reinforcement. The commander drifts alongside
426
- their agents using peer-reviewed outcome-pull tables.
427
- ```
428
-
429
- Every structured LLM call (director events, department reports, commander decisions, reactions, verdict, promotions) runs through Zod schema validation with automatic retry-with-feedback on failure. Schemas live under [`src/runtime/schemas/`](src/runtime/schemas/). Two wrappers (`generateValidatedObject` for one-shot, `sendAndValidate` for session-aware) preserve conversation memory while enforcing validation discipline.
406
+ Every structured LLM call (director, departments, commander, reactions, verdict) is Zod-validated with retry-with-feedback. Schemas under [`src/runtime/schemas/`](src/runtime/schemas/). Full per-stage breakdown in [docs/architecture.md](docs/architecture.md).
430
407
 
431
408
  ---
432
409
 
433
- ## Seed enrichment and citations
434
-
435
- Real source material grounds the scenario all the way through to department reports.
436
-
437
- ```bash
438
- paracosm compile scenarios/lunar.json --seed-text "$(cat ./papers/iss-radiation.md)"
439
- paracosm compile scenarios/lunar.json --seed-url https://ntrs.nasa.gov/citations/20210018970
440
- ```
410
+ ## Seed enrichment
441
411
 
442
- The pipeline runs eight steps: extract topics and search queries from the seed, fan out to Firecrawl / Tavily / Serper / Brave in parallel, dedup and rerank with Cohere `rerank-v3.5`, assemble a `KnowledgeBundle`, ingest into an AgentOS `AgentMemory.sqlite()` store, recall per event during runtime, inject `[claim](url)` markdown into department prompts, and surface citations in the dashboard's Reports tab. The seed bundle is cached separately from the hook cache, keyed on the seed signature, so the same URL never re-extracts.
412
+ `paracosm compile <scenario.json> --seed-text "..."` or `--seed-url <url>` extracts topics, searches across Firecrawl + Tavily + Serper + Brave in parallel, reranks with Cohere `rerank-v3.5`, ingests the result into an AgentOS `AgentMemory.sqlite()` store, and threads citations into department prompts. Bundle cached per-seed. Surface citations land in the dashboard's Reports tab.
443
413
 
444
414
  ---
445
415
 
@@ -553,12 +523,6 @@ The engine owns the chassis. The scenario owns the domain. The kernel handles st
553
523
 
554
524
  ---
555
525
 
556
- ## Background
557
-
558
- Paracosm sits in the structured world model lineage ([Xing 2025](https://arxiv.org/abs/2507.05169), [ACM CSUR 2025](https://dl.acm.org/doi/full/10.1145/3746449)). The LLM-world-model implementation closest to it is [Yang et al, 2026](https://openreview.net/forum?id=XmYCERErcD), which evaluates LLM-based world models through policy verification, action proposal, and policy planning. Full taxonomy mapping in [`docs/positioning/world-model-mapping.md`](docs/positioning/world-model-mapping.md).
559
-
560
- ---
561
-
562
526
  ## Built on AgentOS
563
527
 
564
528
  > "You are not the kind of dead that can be brought back."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paracosm",
3
- "version": "0.9.763",
3
+ "version": "0.9.764",
4
4
  "description": "Agent swarm simulation for structured world modeling with LLMs. Multi-agent worlds with HEXACO personalities, deterministic kernels, runtime tool forging, and reproducible forkable RunArtifacts. Built on AgentOS.",
5
5
  "type": "module",
6
6
  "main": "dist/engine/index.js",