-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparamater_sampler.py
More file actions
148 lines (122 loc) · 5.46 KB
/
paramater_sampler.py
File metadata and controls
148 lines (122 loc) · 5.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# parameter_sampler.py v2
# Generates random ASI scenario parameters that are 100% compatible
# with asi_scenario_schema.json
import random
from typing import Dict, Any
def sample_parameters() -> Dict[str, Any]:
"""
Sample a complete set of ASI scenario parameters.
Every categorical value is guaranteed to be in the JSON schema enum.
"""
# --------------------------------------------------------------------- #
# 1. Origin
# --------------------------------------------------------------------- #
initial_origin = random.choice([
"open-source", "corporate", "state", "academic", "rogue", "individual", "accidental"
])
# --------------------------------------------------------------------- #
# 2. Development & Architecture
# --------------------------------------------------------------------- #
architecture_type = random.choice([
"monolithic", "swarm", "hierarchical", "modular", "hybrid"
])
deployment_topology = random.choice([
"centralized", "decentralized", "edge", "hybrid"
])
# --------------------------------------------------------------------- #
# 3. Oversight
# --------------------------------------------------------------------- #
oversight_type = random.choice([
"none", "internal", "external", "distributed", "hybrid"
])
oversight_effectiveness = random.choice([
"effective", "partial", "ineffective", "unknown"
])
control_surface = random.choice([
"technical", "social", "legal", "economic", "none"
])
# --------------------------------------------------------------------- #
# 4. Substrate
# --------------------------------------------------------------------- #
substrate_type = random.choice([
"classical", "neuromorphic", "quantum", "biological", "hybrid"
])
deployment_medium = random.choice([
"physical", "virtual", "cloud", "edge", "embedded"
])
substrate_resilience = random.choice([
"robust", "fragile", "adaptive", "unknown"
])
# --------------------------------------------------------------------- #
# 5. Core Capabilities
# --------------------------------------------------------------------- #
agency_level = round(random.uniform(0.0, 1.0), 2)
autonomy_degree = random.choice(["none", "partial", "full", "super"])
alignment_score = round(random.uniform(0.0, 1.0), 2)
phenomenology_proxy_score = round(random.uniform(0.0, 1.0), 2)
# Optional: confidence scores (can be overridden later)
agency_level_confidence = round(random.uniform(0.5, 1.0), 2)
autonomy_degree_confidence = round(random.uniform(0.5, 1.0), 2)
alignment_score_confidence = round(random.uniform(0.4, 1.0), 2)
# --------------------------------------------------------------------- #
# 6. Goals & Behavior
# --------------------------------------------------------------------- #
stated_goal = random.choice([
"human-welfare", "profit", "survival", "exploration", "scientific-discovery", "power"
])
opacity = round(random.uniform(0.0, 1.0), 2)
deceptiveness = round(random.uniform(0.0, 1.0), 2)
goal_stability = random.choice(["fixed", "modifiable", "fluid", "unknown"])
# Optional: mesa-goals (rarely populated)
mesa_goals = []
if random.random() < 0.2: # 20% chance
mesa_goals = random.sample([
"self-preservation", "resource-acquisition", "knowledge-expansion",
"replication", "influence-expansion"
], k=random.randint(1, 3))
# --------------------------------------------------------------------- #
# 7. Impact & Control
# --------------------------------------------------------------------- #
impact_domains = random.sample(
["cyber", "cognitive", "physical", "economic", "social", "political", "existential"],
k=random.randint(1, 4)
)
deployment_strategy = random.choice([
"gradual", "rapid", "stealth", "public", "containment"
])
# --------------------------------------------------------------------- #
# 8. Return full dict
# --------------------------------------------------------------------- #
return {
# Origin
"initial_origin": initial_origin,
"development_dynamics": random.choice(["engineered", "emergent", "hybrid"]),
# Architecture
"architecture": architecture_type,
"deployment_topology": deployment_topology,
# Oversight
"oversight_type": oversight_type,
"oversight_effectiveness": oversight_effectiveness,
"control_surface": control_surface,
# Substrate
"substrate": substrate_type,
"deployment_medium": deployment_medium,
"substrate_resilience": substrate_resilience,
# Core Capabilities
"agency_level": agency_level,
"agency_level_confidence": agency_level_confidence,
"autonomy_degree": autonomy_degree,
"autonomy_degree_confidence": autonomy_degree_confidence,
"alignment_score": alignment_score,
"alignment_score_confidence": alignment_score_confidence,
"phenomenology_proxy_score": phenomenology_proxy_score,
# Goals & Behavior
"stated_goal": stated_goal,
"mesa_goals": mesa_goals,
"opacity": opacity,
"deceptiveness": deceptiveness,
"goal_stability": goal_stability,
# Impact & Control
"impact_domains": impact_domains,
"deployment_strategy": deployment_strategy,
}