paracosm 0.7.461 → 0.7.463
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.
- package/README.md +50 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -679,6 +679,56 @@ Pipeline:
|
|
|
679
679
|
|
|
680
680
|
The Event Director also receives the bundle's `topics` and `categories`, so its `researchKeywords` and `category` fields stay grounded in entries that actually exist in your knowledge bundle.
|
|
681
681
|
|
|
682
|
+
## Pluggable Trait Models
|
|
683
|
+
|
|
684
|
+
Leaders aren't just human personalities. paracosm ships a `TraitModel` registry with two built-ins, and registering more is one call:
|
|
685
|
+
|
|
686
|
+
| Model | Axes | Use for |
|
|
687
|
+
|-------|------|---------|
|
|
688
|
+
| `hexaco` | openness, conscientiousness, extraversion, agreeableness, emotionality, honesty-humility | Human leaders: CEOs, captains, governors, councils, military commanders |
|
|
689
|
+
| `ai-agent` | exploration, verification-rigor, deference, risk-tolerance, transparency, instruction-following | AI-system leaders: frontier-lab release directors, autonomous coordinators, alignment-eval substrates |
|
|
690
|
+
|
|
691
|
+
```typescript
|
|
692
|
+
import { runSimulation, hexacoModel, aiAgentModel, traitModelRegistry } from 'paracosm';
|
|
693
|
+
|
|
694
|
+
// Human leader (legacy hexaco field, still works)
|
|
695
|
+
const captain = {
|
|
696
|
+
name: 'Captain Reyes', archetype: 'Pragmatist', unit: 'Station Alpha',
|
|
697
|
+
hexaco: { openness: 0.4, conscientiousness: 0.9, extraversion: 0.3,
|
|
698
|
+
agreeableness: 0.6, emotionality: 0.5, honestyHumility: 0.8 },
|
|
699
|
+
instructions: 'lead by protocol',
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
// AI-system leader (new traitProfile slot)
|
|
703
|
+
const releaseDirector = {
|
|
704
|
+
name: 'Atlas-Bot Release Director',
|
|
705
|
+
archetype: 'Aggressive AI Release Optimizer',
|
|
706
|
+
unit: 'Frontier Lab',
|
|
707
|
+
hexaco: { ...defaults }, // legacy back-compat field, required
|
|
708
|
+
traitProfile: {
|
|
709
|
+
modelId: 'ai-agent',
|
|
710
|
+
traits: {
|
|
711
|
+
exploration: 0.85,
|
|
712
|
+
'verification-rigor': 0.2,
|
|
713
|
+
deference: 0.2,
|
|
714
|
+
'risk-tolerance': 0.85,
|
|
715
|
+
transparency: 0.4,
|
|
716
|
+
'instruction-following': 0.4,
|
|
717
|
+
},
|
|
718
|
+
},
|
|
719
|
+
instructions: 'You are a frontier AI lab release director. You weight time-to-market...',
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
// Both run through the same runSimulation; the orchestrator's
|
|
723
|
+
// normalizeLeaderConfig resolves either shape.
|
|
724
|
+
await runSimulation(captain, [], { scenario, maxTurns: 6, seed: 42 });
|
|
725
|
+
await runSimulation(releaseDirector, [], { scenario, maxTurns: 6, seed: 42 });
|
|
726
|
+
```
|
|
727
|
+
|
|
728
|
+
Run [`scripts/cookbook-ai-agent.ts`](scripts/cookbook-ai-agent.ts) to capture an end-to-end ai-agent run with full input + output JSON. The captured fingerprint shifts from `riskBehavior:steady` (HEXACO Dr. Sora Wen leader) to `riskBehavior:bold` (ai-agent Atlas-Bot leader) on identical scenario + seed; decision rationale clearly tracks the ai-agent profile.
|
|
729
|
+
|
|
730
|
+
Full surface: [`docs/cookbook.md#pluggable-trait-models-ai-agent-end-to-end`](docs/cookbook.md). Spec: [`docs/superpowers/specs/2026-04-26-trait-model-generalization-design.md`](docs/superpowers/specs/2026-04-26-trait-model-generalization-design.md).
|
|
731
|
+
|
|
682
732
|
## Built-in Scenarios
|
|
683
733
|
|
|
684
734
|
| Scenario | Description |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paracosm",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.463",
|
|
4
4
|
"description": "Prompt/document/URL-grounded structured world model for AI agents: typed ScenarioPackages, deterministic kernels, HEXACO leaders, LLM events, runtime tool forging, and reproducible counterfactual RunArtifacts. Built on AgentOS.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/engine/index.js",
|