@zergai/ztc 0.26.6-dev.202611240947 → 0.27.0-beta.1
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 +629 -167
- package/RUST_THIRD_PARTY_LICENSES.txt +5 -5
- package/bin/zmux-darwin-arm64 +0 -0
- package/bin/zmux-linux-x64 +0 -0
- package/bin/ztc-audio-darwin-arm64 +0 -0
- package/bin/ztc-capture-darwin-arm64 +0 -0
- package/bin/ztc-computer-darwin-arm64 +0 -0
- package/bin/ztc-llm-darwin-arm64 +0 -0
- package/bin/ztc-tts-darwin-arm64 +0 -0
- package/bin/ztc-tui-darwin-arm64 +0 -0
- package/bin/ztc-tui-linux-x64 +0 -0
- package/bin/zterm-darwin-arm64 +2 -2
- package/dist/App.js +6 -1
- package/dist/agent/agent.d.ts +21 -15
- package/dist/agent/agent.js +389 -163
- package/dist/agent/backends/codex_app_server.d.ts +7 -1
- package/dist/agent/backends/codex_app_server.js +11 -1
- package/dist/agent/backends/gemini.js +22 -8
- package/dist/agent/commands/batch.js +8 -0
- package/dist/agent/commands/config.js +10 -0
- package/dist/agent/commands/environment.js +5 -5
- package/dist/agent/commands/goal.d.ts +1 -0
- package/dist/agent/commands/goal.js +2 -1
- package/dist/agent/commands/index.js +2 -1
- package/dist/agent/commands/manifest.js +4 -0
- package/dist/agent/commands/optimize.js +5 -2
- package/dist/agent/commands/pane_cli.d.ts +29 -0
- package/dist/agent/commands/pane_cli.js +303 -0
- package/dist/agent/commands/settings.js +13 -3
- package/dist/agent/commands/shannon.js +8 -0
- package/dist/agent/commands/update.js +15 -3
- package/dist/agent/commands/zerg.js +31 -1
- package/dist/agent/commands/ztc_pane.js +3 -1
- package/dist/agent/factory.d.ts +4 -0
- package/dist/agent/factory.js +11 -1
- package/dist/agent/loop_policy.d.ts +42 -5
- package/dist/agent/loop_policy.js +206 -3
- package/dist/agent/runtime/command_jobs.d.ts +5 -0
- package/dist/agent/runtime/command_jobs.js +241 -31
- package/dist/agent/runtime/command_wait.d.ts +2 -0
- package/dist/agent/runtime/command_wait.js +1 -0
- package/dist/agent/runtime/done_report.d.ts +18 -0
- package/dist/agent/runtime/done_report.js +130 -0
- package/dist/agent/runtime/execution_context.js +4 -1
- package/dist/agent/runtime/failure_cause.d.ts +2 -0
- package/dist/agent/runtime/failure_cause.js +35 -0
- package/dist/agent/runtime/policy.d.ts +14 -2
- package/dist/agent/runtime/policy.js +104 -12
- package/dist/agent/runtime/quiet_job.d.ts +18 -0
- package/dist/agent/runtime/quiet_job.js +48 -0
- package/dist/agent/runtime/recovery.d.ts +1 -5
- package/dist/agent/runtime/recovery.js +2 -44
- package/dist/agent/runtime/tool_runtime.d.ts +1 -0
- package/dist/agent/runtime/tool_runtime.js +2 -0
- package/dist/agent/subagent.js +6 -1
- package/dist/agent/tools/deferred.js +1 -0
- package/dist/agent/tools/index.d.ts +2 -0
- package/dist/agent/tools/index.js +1 -0
- package/dist/agent/tools/outcome.d.ts +15 -0
- package/dist/agent/tools/outcome.js +107 -0
- package/dist/agent/tools/pane.d.ts +2 -1
- package/dist/agent/tools/pane.js +21 -3
- package/dist/agent/tools/registry.js +2 -0
- package/dist/agent/tools/shell.d.ts +1 -0
- package/dist/agent/tools/shell.js +128 -17
- package/dist/agent/tools/sim_domain_tools.js +4 -2
- package/dist/agent/tools/supervision.js +4 -2
- package/dist/agent/tools/types.d.ts +3 -0
- package/dist/app/command_context.js +5 -9
- package/dist/app/conversation_compaction.d.ts +4 -2
- package/dist/app/conversation_compaction.js +16 -5
- package/dist/app/headless_shell_mode.d.ts +14 -0
- package/dist/app/headless_shell_mode.js +7 -0
- package/dist/app/hosted_resident.d.ts +356 -0
- package/dist/app/hosted_resident.js +677 -0
- package/dist/app/restart.js +11 -2
- package/dist/app/session_manager.d.ts +5 -0
- package/dist/app/session_manager.js +21 -6
- package/dist/app/session_messages.js +6 -6
- package/dist/app/workspace_layout_controller.js +7 -0
- package/dist/batch/worktree.d.ts +10 -0
- package/dist/batch/worktree.js +15 -0
- package/dist/bench/registry.js +4 -2
- package/dist/cli_args.js +1 -1
- package/dist/cli_main.js +80 -10
- package/dist/cli_ratatui.d.ts +75 -0
- package/dist/cli_ratatui.js +485 -84
- package/dist/components/InputArea.js +4 -4
- package/dist/config/execution.d.ts +10 -0
- package/dist/config/execution.js +10 -0
- package/dist/config/hosted_runtime.d.ts +4 -1
- package/dist/config/hosted_runtime.js +4 -1
- package/dist/config/permission_pin.d.ts +34 -2
- package/dist/config/permission_pin.js +52 -2
- package/dist/config/person_command_policy.d.ts +38 -0
- package/dist/config/person_command_policy.js +11 -0
- package/dist/config/profiles.d.ts +21 -0
- package/dist/config/profiles.js +56 -2
- package/dist/config/types.d.ts +4 -1
- package/dist/config.js +34 -19
- package/dist/desktop/daily/codex_exec_adapter.js +7 -2
- package/dist/desktop/daily/desktop_wiring.d.ts +7 -1
- package/dist/desktop/daily/desktop_wiring.js +11 -3
- package/dist/desktop/daily/recipes.js +20 -4
- package/dist/desktop/health.d.ts +24 -0
- package/dist/desktop/health.js +151 -0
- package/dist/desktop/native_dialogs.d.ts +37 -0
- package/dist/desktop/native_dialogs.js +105 -0
- package/dist/diagnostics/session_export.d.ts +1 -0
- package/dist/diagnostics/session_export.js +28 -0
- package/dist/embedded/registry.js +4 -2
- package/dist/emulation/tool_adapters.js +9 -4
- package/dist/emulation/ztc_addendum.js +3 -0
- package/dist/headless.d.ts +11 -4
- package/dist/headless.js +99 -34
- package/dist/headless_approval.d.ts +6 -0
- package/dist/headless_cli.js +1 -1
- package/dist/hooks/runner.js +7 -6
- package/dist/library.d.ts +4 -0
- package/dist/library.js +3 -0
- package/dist/mcp/client.js +3 -3
- package/dist/modes/registry.js +13 -4
- package/dist/onboarding/setup_environment.js +13 -1
- package/dist/optimize/adapters/kernelbench.js +88 -10
- package/dist/optimize/adapters/types.d.ts +5 -0
- package/dist/optimize/executor.js +21 -0
- package/dist/panes/cli_install.d.ts +54 -0
- package/dist/panes/cli_install.js +157 -0
- package/dist/panes/model_catalog.js +3 -0
- package/dist/panes/new_pane_choices.d.ts +6 -2
- package/dist/panes/new_pane_choices.js +24 -12
- package/dist/panes/pane_cli_launch.d.ts +50 -0
- package/dist/panes/pane_cli_launch.js +124 -0
- package/dist/panes/pane_clis.d.ts +171 -0
- package/dist/panes/pane_clis.js +325 -0
- package/dist/panes/person_only_panes.d.ts +45 -0
- package/dist/panes/person_only_panes.js +117 -0
- package/dist/plugin/simulation_living.js +0 -2
- package/dist/plugin/simulation_living_engine.d.ts +1 -0
- package/dist/plugin/simulation_living_engine.js +1 -0
- package/dist/plugin/simulation_living_labels.d.ts +3 -0
- package/dist/plugin/simulation_living_labels.js +2 -0
- package/dist/router_auth.js +12 -1
- package/dist/session.js +26 -1
- package/dist/simulation/art/gemini_image.js +11 -5
- package/dist/simulation/domains/loader.js +25 -3
- package/dist/simulation/living/cold.d.ts +23 -0
- package/dist/simulation/living/cold.js +41 -0
- package/dist/simulation/living/context.d.ts +591 -1283
- package/dist/simulation/living/context.js +378 -244
- package/dist/simulation/living/contradictions.d.ts +14 -0
- package/dist/simulation/living/contradictions.js +282 -0
- package/dist/simulation/living/core/ids.d.ts +53 -0
- package/dist/simulation/living/core/ids.js +39 -0
- package/dist/simulation/living/core/kind.d.ts +20 -0
- package/dist/simulation/living/core/kind.js +15 -0
- package/dist/simulation/living/core/laws.d.ts +179 -0
- package/dist/simulation/living/core/laws.js +184 -0
- package/dist/simulation/living/core/ops.d.ts +257 -0
- package/dist/simulation/living/core/ops.js +34 -0
- package/dist/simulation/living/definer.d.ts +17 -1
- package/dist/simulation/living/definer.js +130 -51
- package/dist/simulation/living/definition.d.ts +174 -65
- package/dist/simulation/living/definition.js +287 -180
- package/dist/simulation/living/director.d.ts +80 -0
- package/dist/simulation/living/director.js +363 -0
- package/dist/simulation/living/frame.d.ts +108 -21
- package/dist/simulation/living/frame.js +111 -66
- package/dist/simulation/living/identifiers.d.ts +0 -1
- package/dist/simulation/living/identifiers.js +0 -3
- package/dist/simulation/living/index.d.ts +18 -9
- package/dist/simulation/living/index.js +18 -9
- package/dist/simulation/living/inference.d.ts +92 -50
- package/dist/simulation/living/inference.js +319 -175
- package/dist/simulation/living/knowledge.d.ts +28 -0
- package/dist/simulation/living/knowledge.js +73 -0
- package/dist/simulation/living/library.json +1177 -0
- package/dist/simulation/living/mechanics.d.ts +31 -34
- package/dist/simulation/living/mechanics.js +222 -138
- package/dist/simulation/living/model-input.d.ts +6 -3
- package/dist/simulation/living/model-input.js +18 -26
- package/dist/simulation/living/open-world.d.ts +74 -94
- package/dist/simulation/living/open-world.js +151 -30
- package/dist/simulation/living/phrases.d.ts +3 -0
- package/dist/simulation/living/phrases.js +37 -0
- package/dist/simulation/living/phrases.json +560 -0
- package/dist/simulation/living/projection.d.ts +316 -2
- package/dist/simulation/living/projection.js +50 -2
- package/dist/simulation/living/prompts/example-spec.json +11 -0
- package/dist/simulation/living/prompts/role-text.json +14 -0
- package/dist/simulation/living/prompts.d.ts +5 -0
- package/dist/simulation/living/prompts.js +275 -0
- package/dist/simulation/living/recall.d.ts +2 -2
- package/dist/simulation/living/reduce.d.ts +51 -14
- package/dist/simulation/living/reduce.js +941 -579
- package/dist/simulation/living/replay.d.ts +5 -4
- package/dist/simulation/living/replay.js +10 -9
- package/dist/simulation/living/runtime.d.ts +135 -25
- package/dist/simulation/living/runtime.js +1641 -583
- package/dist/simulation/living/scale.d.ts +96 -0
- package/dist/simulation/living/scale.js +124 -0
- package/dist/simulation/living/script.d.ts +5 -0
- package/dist/simulation/living/script.js +115 -0
- package/dist/simulation/living/shared-kinds.d.ts +4 -11
- package/dist/simulation/living/shared-kinds.js +11 -81
- package/dist/simulation/living/space.d.ts +14 -0
- package/dist/simulation/living/space.js +132 -0
- package/dist/simulation/living/state.d.ts +100 -0
- package/dist/simulation/living/state.js +393 -0
- package/dist/simulation/living/types.d.ts +829 -512
- package/dist/simulation/living/types.js +162 -187
- package/dist/simulation/living/world-rules.d.ts +100 -0
- package/dist/simulation/living/world-rules.js +267 -0
- package/dist/simulation/plugins/loader.js +11 -0
- package/dist/skills/loader.js +4 -0
- package/dist/tools.d.ts +1 -0
- package/dist/tools.js +1 -0
- package/dist/ui/ratatui/headless_pane_manager.d.ts +4 -1
- package/dist/ui/ratatui/headless_pane_manager.js +13 -9
- package/dist/ui/ratatui/pane_relay.js +29 -0
- package/dist/ui/ratatui/pane_type.d.ts +10 -0
- package/dist/ui/ratatui/pane_type.js +11 -0
- package/dist/ui/ratatui/process.d.ts +30 -0
- package/dist/ui/ratatui/process.js +133 -19
- package/dist/ui/ratatui/protocol.d.ts +124 -2
- package/dist/ui/ratatui/protocol.js +35 -0
- package/dist/ui/ratatui/relay_policy.js +3 -0
- package/dist/ui/ratatui/ztc_launch_trust.d.ts +2 -1
- package/dist/ui/ratatui/ztc_launch_trust.js +8 -1
- package/dist/ui/terminal_image.d.ts +12 -0
- package/dist/ui/terminal_image.js +21 -1
- package/dist/utils/codex_project_trust.d.ts +19 -0
- package/dist/utils/codex_project_trust.js +37 -0
- package/dist/utils/compaction.js +103 -20
- package/dist/utils/git_program_files.d.ts +19 -12
- package/dist/utils/git_program_files.js +411 -83
- package/dist/utils/host_shell.d.ts +10 -1
- package/dist/utils/host_shell.js +14 -1
- package/dist/utils/mid_turn_compaction.d.ts +2 -0
- package/dist/utils/mid_turn_compaction.js +2 -0
- package/dist/utils/models.js +6 -1
- package/dist/utils/sandbox.d.ts +109 -8
- package/dist/utils/sandbox.js +981 -187
- package/dist/utils/shell.d.ts +2 -0
- package/dist/utils/shell.js +10 -4
- package/dist/utils/subprocess_env.d.ts +47 -11
- package/dist/utils/subprocess_env.js +107 -15
- package/dist/utils/system_ps.d.ts +8 -0
- package/dist/utils/system_ps.js +39 -7
- package/dist/utils/unattended_compaction.d.ts +9 -0
- package/dist/utils/unattended_compaction.js +13 -0
- package/dist/utils/ztc_own_state.d.ts +8 -5
- package/dist/utils/ztc_own_state.js +17 -11
- package/dist/web/mirror_client.js +1 -0
- package/dist/web/mirror_stream.d.ts +50 -6
- package/dist/web/mirror_stream.js +160 -15
- package/dist/workflows/registry.js +3 -1
- package/dist/workspace/controller.js +12 -0
- package/dist/workspace_collision.d.ts +3 -0
- package/dist/workspace_collision.js +14 -1
- package/dist/workspace_session_context.js +2 -1
- package/dist/zlm-embed.mjs +3823 -1970
- package/node_modules/@zerg/model-contracts/README.md +16 -4
- package/node_modules/@zerg/model-contracts/index.js +6 -1
- package/npm-shrinkwrap.json +1 -1
- package/package.json +42 -24
- package/packages/model-contracts/README.md +16 -4
- package/packages/model-contracts/index.js +6 -1
|
@@ -0,0 +1,1177 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "fire",
|
|
4
|
+
"name": "Fire",
|
|
5
|
+
"meaning": "Heat and flame that may grow or move.",
|
|
6
|
+
"properties": [
|
|
7
|
+
{
|
|
8
|
+
"id": "intensity",
|
|
9
|
+
"type": "level"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "severity",
|
|
13
|
+
"type": "number"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"relations": [
|
|
17
|
+
{
|
|
18
|
+
"id": "connected-to",
|
|
19
|
+
"targetKindId": "fire"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"mechanics": [
|
|
23
|
+
{
|
|
24
|
+
"kind": "spread",
|
|
25
|
+
"propertyId": "intensity",
|
|
26
|
+
"relationId": "connected-to"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"kind": "signal",
|
|
30
|
+
"propertyId": "intensity",
|
|
31
|
+
"relationId": "connected-to",
|
|
32
|
+
"channel": "sight"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"laws": [
|
|
36
|
+
{
|
|
37
|
+
"kind": "react",
|
|
38
|
+
"on": {
|
|
39
|
+
"changed": "severity"
|
|
40
|
+
},
|
|
41
|
+
"when": {
|
|
42
|
+
"op": "crossed",
|
|
43
|
+
"slot": "severity",
|
|
44
|
+
"threshold": 1,
|
|
45
|
+
"direction": "at-least"
|
|
46
|
+
},
|
|
47
|
+
"do": [
|
|
48
|
+
{
|
|
49
|
+
"op": "happen",
|
|
50
|
+
"intent": "Check the consequences of this danger.",
|
|
51
|
+
"delayMinutes": 15,
|
|
52
|
+
"minImportance": 7
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "water",
|
|
60
|
+
"name": "Water",
|
|
61
|
+
"meaning": "Liquid that may flow to connected places.",
|
|
62
|
+
"properties": [
|
|
63
|
+
{
|
|
64
|
+
"id": "amount",
|
|
65
|
+
"type": "level"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"relations": [
|
|
69
|
+
{
|
|
70
|
+
"id": "connected-to",
|
|
71
|
+
"targetKindId": "water"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"mechanics": [
|
|
75
|
+
{
|
|
76
|
+
"kind": "spread",
|
|
77
|
+
"propertyId": "amount",
|
|
78
|
+
"relationId": "connected-to"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "smoke",
|
|
84
|
+
"name": "Smoke",
|
|
85
|
+
"meaning": "Airborne matter that can be seen or smelled.",
|
|
86
|
+
"properties": [
|
|
87
|
+
{
|
|
88
|
+
"id": "density",
|
|
89
|
+
"type": "level"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "severity",
|
|
93
|
+
"type": "number"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"relations": [
|
|
97
|
+
{
|
|
98
|
+
"id": "connected-to",
|
|
99
|
+
"targetKindId": "smoke"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"mechanics": [
|
|
103
|
+
{
|
|
104
|
+
"kind": "spread",
|
|
105
|
+
"propertyId": "density",
|
|
106
|
+
"relationId": "connected-to"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"kind": "signal",
|
|
110
|
+
"propertyId": "density",
|
|
111
|
+
"relationId": "connected-to",
|
|
112
|
+
"channel": "smell"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"laws": [
|
|
116
|
+
{
|
|
117
|
+
"kind": "react",
|
|
118
|
+
"on": {
|
|
119
|
+
"changed": "severity"
|
|
120
|
+
},
|
|
121
|
+
"when": {
|
|
122
|
+
"op": "crossed",
|
|
123
|
+
"slot": "severity",
|
|
124
|
+
"threshold": 1,
|
|
125
|
+
"direction": "at-least"
|
|
126
|
+
},
|
|
127
|
+
"do": [
|
|
128
|
+
{
|
|
129
|
+
"op": "happen",
|
|
130
|
+
"intent": "Check the consequences of this danger.",
|
|
131
|
+
"delayMinutes": 15,
|
|
132
|
+
"minImportance": 7
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "sound",
|
|
140
|
+
"name": "Sound",
|
|
141
|
+
"meaning": "A disturbance that can be heard along a channel.",
|
|
142
|
+
"properties": [
|
|
143
|
+
{
|
|
144
|
+
"id": "strength",
|
|
145
|
+
"type": "level"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"relations": [
|
|
149
|
+
{
|
|
150
|
+
"id": "connected-to",
|
|
151
|
+
"targetKindId": "sound"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"mechanics": [
|
|
155
|
+
{
|
|
156
|
+
"kind": "signal",
|
|
157
|
+
"propertyId": "strength",
|
|
158
|
+
"relationId": "connected-to",
|
|
159
|
+
"channel": "sound"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "injury",
|
|
165
|
+
"name": "Injury",
|
|
166
|
+
"meaning": "Physical harm to a living person.",
|
|
167
|
+
"properties": [
|
|
168
|
+
{
|
|
169
|
+
"id": "severity",
|
|
170
|
+
"type": "level"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "person",
|
|
174
|
+
"type": "id"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"relations": [],
|
|
178
|
+
"mechanics": [],
|
|
179
|
+
"laws": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "forbid",
|
|
182
|
+
"on": {
|
|
183
|
+
"attempted": "incapacitate"
|
|
184
|
+
},
|
|
185
|
+
"when": {
|
|
186
|
+
"op": "allOf",
|
|
187
|
+
"of": [
|
|
188
|
+
{
|
|
189
|
+
"op": "eq",
|
|
190
|
+
"left": {
|
|
191
|
+
"slot": "person"
|
|
192
|
+
},
|
|
193
|
+
"right": {
|
|
194
|
+
"actor": true
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"op": "eq",
|
|
199
|
+
"left": {
|
|
200
|
+
"slot": "severity"
|
|
201
|
+
},
|
|
202
|
+
"right": {
|
|
203
|
+
"value": "high"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"then": "injury"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"neverHeld": true
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "illness",
|
|
215
|
+
"name": "Illness",
|
|
216
|
+
"meaning": "A condition that affects a living person over time.",
|
|
217
|
+
"properties": [
|
|
218
|
+
{
|
|
219
|
+
"id": "severity",
|
|
220
|
+
"type": "level"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "person",
|
|
224
|
+
"type": "id"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"relations": [],
|
|
228
|
+
"mechanics": [],
|
|
229
|
+
"laws": [
|
|
230
|
+
{
|
|
231
|
+
"kind": "forbid",
|
|
232
|
+
"on": {
|
|
233
|
+
"attempted": "incapacitate"
|
|
234
|
+
},
|
|
235
|
+
"when": {
|
|
236
|
+
"op": "allOf",
|
|
237
|
+
"of": [
|
|
238
|
+
{
|
|
239
|
+
"op": "eq",
|
|
240
|
+
"left": {
|
|
241
|
+
"slot": "person"
|
|
242
|
+
},
|
|
243
|
+
"right": {
|
|
244
|
+
"actor": true
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"op": "eq",
|
|
249
|
+
"left": {
|
|
250
|
+
"slot": "severity"
|
|
251
|
+
},
|
|
252
|
+
"right": {
|
|
253
|
+
"value": "high"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"then": "illness"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"neverHeld": true
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"id": "posture",
|
|
265
|
+
"name": "Posture",
|
|
266
|
+
"meaning": "A person’s current physical position.",
|
|
267
|
+
"properties": [
|
|
268
|
+
{
|
|
269
|
+
"id": "state",
|
|
270
|
+
"type": "level"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "person",
|
|
274
|
+
"type": "id"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"relations": [],
|
|
278
|
+
"mechanics": [
|
|
279
|
+
{
|
|
280
|
+
"kind": "change",
|
|
281
|
+
"propertyId": "state",
|
|
282
|
+
"deltaPerMinute": 0,
|
|
283
|
+
"onEvent": {
|
|
284
|
+
"kind": "move",
|
|
285
|
+
"subjectPropertyId": "person",
|
|
286
|
+
"value": "none"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"neverHeld": true
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"id": "custody",
|
|
294
|
+
"name": "Custody",
|
|
295
|
+
"meaning": "A person kept from leaving by another person; a thing in hand needs no custody.",
|
|
296
|
+
"properties": [
|
|
297
|
+
{
|
|
298
|
+
"id": "holder",
|
|
299
|
+
"type": "id"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"id": "held",
|
|
303
|
+
"type": "id"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"relations": [],
|
|
307
|
+
"mechanics": [],
|
|
308
|
+
"laws": [
|
|
309
|
+
{
|
|
310
|
+
"kind": "forbid",
|
|
311
|
+
"on": {
|
|
312
|
+
"attempted": "move"
|
|
313
|
+
},
|
|
314
|
+
"when": {
|
|
315
|
+
"op": "allOf",
|
|
316
|
+
"of": [
|
|
317
|
+
{
|
|
318
|
+
"op": "eq",
|
|
319
|
+
"left": {
|
|
320
|
+
"slot": "held"
|
|
321
|
+
},
|
|
322
|
+
"right": {
|
|
323
|
+
"actor": true
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"op": "on",
|
|
328
|
+
"subject": "self",
|
|
329
|
+
"slot": "holder"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"op": "ne",
|
|
333
|
+
"left": {
|
|
334
|
+
"slot": "holder"
|
|
335
|
+
},
|
|
336
|
+
"right": {
|
|
337
|
+
"actor": true
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"op": "beside",
|
|
342
|
+
"subject": "actor",
|
|
343
|
+
"other": {
|
|
344
|
+
"slot": "holder"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
"then": "custody"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"neverHeld": true
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"id": "authority",
|
|
356
|
+
"name": "Authority",
|
|
357
|
+
"meaning": "A grant of power to act for a group.",
|
|
358
|
+
"properties": [
|
|
359
|
+
{
|
|
360
|
+
"id": "active",
|
|
361
|
+
"type": "flag"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"id": "holder",
|
|
365
|
+
"type": "id"
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"relations": [],
|
|
369
|
+
"mechanics": [],
|
|
370
|
+
"neverHeld": true
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"id": "detention",
|
|
374
|
+
"name": "Detention",
|
|
375
|
+
"meaning": "A person is held under another’s authority.",
|
|
376
|
+
"properties": [
|
|
377
|
+
{
|
|
378
|
+
"id": "active",
|
|
379
|
+
"type": "flag"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"id": "subject",
|
|
383
|
+
"type": "id"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"id": "holder",
|
|
387
|
+
"type": "id"
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"relations": [],
|
|
391
|
+
"mechanics": [],
|
|
392
|
+
"laws": [
|
|
393
|
+
{
|
|
394
|
+
"kind": "forbid",
|
|
395
|
+
"on": {
|
|
396
|
+
"attempted": "move"
|
|
397
|
+
},
|
|
398
|
+
"when": {
|
|
399
|
+
"op": "allOf",
|
|
400
|
+
"of": [
|
|
401
|
+
{
|
|
402
|
+
"op": "eq",
|
|
403
|
+
"left": {
|
|
404
|
+
"slot": "subject"
|
|
405
|
+
},
|
|
406
|
+
"right": {
|
|
407
|
+
"actor": true
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"op": "on",
|
|
412
|
+
"subject": "self",
|
|
413
|
+
"slot": "active"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"op": "beside",
|
|
417
|
+
"subject": "actor",
|
|
418
|
+
"other": {
|
|
419
|
+
"slot": "holder"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
"then": "detention"
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
"neverHeld": true
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"id": "record",
|
|
431
|
+
"name": "Record",
|
|
432
|
+
"meaning": "A written record with content, a writer and a date; a sealed one keeps the words it was made with until someone opens it; a mark on it records who made it, and when.",
|
|
433
|
+
"properties": [
|
|
434
|
+
{
|
|
435
|
+
"id": "words",
|
|
436
|
+
"type": "text",
|
|
437
|
+
"sealedBy": "sealed",
|
|
438
|
+
"requiredOnCreate": true
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"id": "writer",
|
|
442
|
+
"type": "id",
|
|
443
|
+
"perActor": true
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"id": "recorded-at",
|
|
447
|
+
"type": "time"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"id": "signed",
|
|
451
|
+
"type": "flag"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"id": "sealed",
|
|
455
|
+
"type": "flag"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"id": "marks",
|
|
459
|
+
"type": "series"
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"relations": [],
|
|
463
|
+
"mechanics": []
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"id": "document",
|
|
467
|
+
"name": "Document",
|
|
468
|
+
"meaning": "A written record with content, an author and a date; a sealed one keeps the words it was made with until someone opens it; a mark on it records who made it, and when.",
|
|
469
|
+
"properties": [
|
|
470
|
+
{
|
|
471
|
+
"id": "body",
|
|
472
|
+
"type": "text",
|
|
473
|
+
"sealedBy": "sealed",
|
|
474
|
+
"requiredOnCreate": true
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"id": "author",
|
|
478
|
+
"type": "id",
|
|
479
|
+
"perActor": true
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"id": "recorded-at",
|
|
483
|
+
"type": "time"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"id": "signed",
|
|
487
|
+
"type": "flag"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"id": "sealed",
|
|
491
|
+
"type": "flag"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"id": "marks",
|
|
495
|
+
"type": "series"
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"relations": [],
|
|
499
|
+
"mechanics": []
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"id": "tally",
|
|
503
|
+
"name": "Tally",
|
|
504
|
+
"meaning": "Tally",
|
|
505
|
+
"properties": [
|
|
506
|
+
{
|
|
507
|
+
"id": "question",
|
|
508
|
+
"type": "text",
|
|
509
|
+
"requiredOnCreate": true
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"id": "members",
|
|
513
|
+
"type": "series"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"id": "choice",
|
|
517
|
+
"type": "series",
|
|
518
|
+
"options": [
|
|
519
|
+
"yes",
|
|
520
|
+
"no",
|
|
521
|
+
"abstain"
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"id": "needed",
|
|
526
|
+
"type": "number"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"id": "outcome",
|
|
530
|
+
"type": "text"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"id": "settles",
|
|
534
|
+
"type": "id",
|
|
535
|
+
"target": "tension"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"id": "closes-at",
|
|
539
|
+
"type": "time"
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
"relations": [],
|
|
543
|
+
"mechanics": [],
|
|
544
|
+
"laws": [
|
|
545
|
+
{
|
|
546
|
+
"kind": "forbid",
|
|
547
|
+
"on": {
|
|
548
|
+
"added": "choice"
|
|
549
|
+
},
|
|
550
|
+
"when": {
|
|
551
|
+
"op": "not",
|
|
552
|
+
"of": {
|
|
553
|
+
"op": "wrote",
|
|
554
|
+
"subject": "self",
|
|
555
|
+
"slot": "members",
|
|
556
|
+
"person": "target"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"then": "member"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"kind": "forbid",
|
|
563
|
+
"on": {
|
|
564
|
+
"added": "choice"
|
|
565
|
+
},
|
|
566
|
+
"when": {
|
|
567
|
+
"op": "wrote",
|
|
568
|
+
"subject": "self",
|
|
569
|
+
"slot": "choice",
|
|
570
|
+
"person": "target"
|
|
571
|
+
},
|
|
572
|
+
"then": "chosen"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"kind": "forbid",
|
|
576
|
+
"on": {
|
|
577
|
+
"added": "choice"
|
|
578
|
+
},
|
|
579
|
+
"when": {
|
|
580
|
+
"op": "gte",
|
|
581
|
+
"left": {
|
|
582
|
+
"now": true
|
|
583
|
+
},
|
|
584
|
+
"right": {
|
|
585
|
+
"slot": "closes-at"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
"then": "closed"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"kind": "react",
|
|
592
|
+
"on": {
|
|
593
|
+
"added": "choice"
|
|
594
|
+
},
|
|
595
|
+
"when": {
|
|
596
|
+
"op": "gte",
|
|
597
|
+
"left": {
|
|
598
|
+
"count": {
|
|
599
|
+
"slot": "choice",
|
|
600
|
+
"equals": "yes"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"right": {
|
|
604
|
+
"slot": "needed"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"do": [
|
|
608
|
+
{
|
|
609
|
+
"op": "set",
|
|
610
|
+
"slot": "outcome",
|
|
611
|
+
"value": {
|
|
612
|
+
"value": "passed"
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
]
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"kind": "react",
|
|
619
|
+
"on": {
|
|
620
|
+
"added": "choice"
|
|
621
|
+
},
|
|
622
|
+
"when": {
|
|
623
|
+
"op": "allOf",
|
|
624
|
+
"of": [
|
|
625
|
+
{
|
|
626
|
+
"op": "gte",
|
|
627
|
+
"left": {
|
|
628
|
+
"count": {
|
|
629
|
+
"slot": "choice",
|
|
630
|
+
"equals": "yes"
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"right": {
|
|
634
|
+
"slot": "needed"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"op": "present",
|
|
639
|
+
"subject": "self",
|
|
640
|
+
"slot": "settles"
|
|
641
|
+
}
|
|
642
|
+
]
|
|
643
|
+
},
|
|
644
|
+
"do": [
|
|
645
|
+
{
|
|
646
|
+
"op": "settle",
|
|
647
|
+
"tension": {
|
|
648
|
+
"slot": "settles"
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"kind": "react",
|
|
655
|
+
"on": {
|
|
656
|
+
"added": "choice"
|
|
657
|
+
},
|
|
658
|
+
"when": {
|
|
659
|
+
"op": "allOf",
|
|
660
|
+
"of": [
|
|
661
|
+
{
|
|
662
|
+
"op": "eq",
|
|
663
|
+
"left": {
|
|
664
|
+
"size": {
|
|
665
|
+
"slot": "choice"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"right": {
|
|
669
|
+
"size": {
|
|
670
|
+
"slot": "members"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"op": "lt",
|
|
676
|
+
"left": {
|
|
677
|
+
"count": {
|
|
678
|
+
"slot": "choice",
|
|
679
|
+
"equals": "yes"
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
"right": {
|
|
683
|
+
"slot": "needed"
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
"do": [
|
|
689
|
+
{
|
|
690
|
+
"op": "set",
|
|
691
|
+
"slot": "outcome",
|
|
692
|
+
"value": {
|
|
693
|
+
"value": "failed"
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
]
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"kind": "react",
|
|
700
|
+
"on": {
|
|
701
|
+
"added": "choice"
|
|
702
|
+
},
|
|
703
|
+
"when": {
|
|
704
|
+
"op": "allOf",
|
|
705
|
+
"of": [
|
|
706
|
+
{
|
|
707
|
+
"op": "eq",
|
|
708
|
+
"left": {
|
|
709
|
+
"size": {
|
|
710
|
+
"slot": "choice"
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
"right": {
|
|
714
|
+
"size": {
|
|
715
|
+
"slot": "members"
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"op": "lt",
|
|
721
|
+
"left": {
|
|
722
|
+
"count": {
|
|
723
|
+
"slot": "choice",
|
|
724
|
+
"equals": "yes"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
"right": {
|
|
728
|
+
"slot": "needed"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"op": "present",
|
|
733
|
+
"subject": "self",
|
|
734
|
+
"slot": "settles"
|
|
735
|
+
}
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
"do": [
|
|
739
|
+
{
|
|
740
|
+
"op": "settle",
|
|
741
|
+
"tension": {
|
|
742
|
+
"slot": "settles"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"kind": "react",
|
|
749
|
+
"on": {
|
|
750
|
+
"changed": "closes-at"
|
|
751
|
+
},
|
|
752
|
+
"when": {
|
|
753
|
+
"op": "allOf",
|
|
754
|
+
"of": [
|
|
755
|
+
{
|
|
756
|
+
"op": "gte",
|
|
757
|
+
"left": {
|
|
758
|
+
"now": true
|
|
759
|
+
},
|
|
760
|
+
"right": {
|
|
761
|
+
"slot": "closes-at"
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"op": "not",
|
|
766
|
+
"of": {
|
|
767
|
+
"op": "present",
|
|
768
|
+
"subject": "self",
|
|
769
|
+
"slot": "outcome"
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
},
|
|
774
|
+
"do": [
|
|
775
|
+
{
|
|
776
|
+
"op": "set",
|
|
777
|
+
"slot": "outcome",
|
|
778
|
+
"value": {
|
|
779
|
+
"value": "lapsed"
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
]
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"kind": "react",
|
|
786
|
+
"on": {
|
|
787
|
+
"changed": "closes-at"
|
|
788
|
+
},
|
|
789
|
+
"when": {
|
|
790
|
+
"op": "allOf",
|
|
791
|
+
"of": [
|
|
792
|
+
{
|
|
793
|
+
"op": "gte",
|
|
794
|
+
"left": {
|
|
795
|
+
"now": true
|
|
796
|
+
},
|
|
797
|
+
"right": {
|
|
798
|
+
"slot": "closes-at"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"op": "present",
|
|
803
|
+
"subject": "self",
|
|
804
|
+
"slot": "settles"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"op": "eq",
|
|
808
|
+
"left": {
|
|
809
|
+
"slot": "outcome"
|
|
810
|
+
},
|
|
811
|
+
"right": {
|
|
812
|
+
"value": "lapsed"
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
]
|
|
816
|
+
},
|
|
817
|
+
"do": [
|
|
818
|
+
{
|
|
819
|
+
"op": "settle",
|
|
820
|
+
"tension": {
|
|
821
|
+
"slot": "settles"
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
]
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"library": true,
|
|
828
|
+
"neverHeld": true
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"id": "accord",
|
|
832
|
+
"name": "Accord",
|
|
833
|
+
"meaning": "Accord",
|
|
834
|
+
"properties": [
|
|
835
|
+
{
|
|
836
|
+
"id": "terms",
|
|
837
|
+
"type": "text",
|
|
838
|
+
"requiredOnCreate": true
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"id": "consent",
|
|
842
|
+
"type": "series",
|
|
843
|
+
"options": [
|
|
844
|
+
"accept",
|
|
845
|
+
"refuse"
|
|
846
|
+
]
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"id": "consenters",
|
|
850
|
+
"type": "number"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"id": "effective",
|
|
854
|
+
"type": "flag"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"id": "outcome",
|
|
858
|
+
"type": "text"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"id": "settles",
|
|
862
|
+
"type": "id",
|
|
863
|
+
"target": "tension"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"id": "from",
|
|
867
|
+
"type": "id"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"id": "to",
|
|
871
|
+
"type": "id"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"id": "amount",
|
|
875
|
+
"type": "number"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"id": "resource",
|
|
879
|
+
"type": "text"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"relations": [],
|
|
883
|
+
"mechanics": [],
|
|
884
|
+
"laws": [
|
|
885
|
+
{
|
|
886
|
+
"kind": "forbid",
|
|
887
|
+
"on": {
|
|
888
|
+
"added": "consent"
|
|
889
|
+
},
|
|
890
|
+
"when": {
|
|
891
|
+
"op": "wrote",
|
|
892
|
+
"subject": "self",
|
|
893
|
+
"slot": "consent",
|
|
894
|
+
"person": "target"
|
|
895
|
+
},
|
|
896
|
+
"then": "answered"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"kind": "react",
|
|
900
|
+
"on": {
|
|
901
|
+
"added": "consent"
|
|
902
|
+
},
|
|
903
|
+
"when": {
|
|
904
|
+
"op": "eq",
|
|
905
|
+
"left": {
|
|
906
|
+
"count": {
|
|
907
|
+
"slot": "consent",
|
|
908
|
+
"equals": "accept"
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
"right": {
|
|
912
|
+
"slot": "consenters"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"do": [
|
|
916
|
+
{
|
|
917
|
+
"op": "set",
|
|
918
|
+
"slot": "effective",
|
|
919
|
+
"value": {
|
|
920
|
+
"value": true
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"op": "set",
|
|
925
|
+
"slot": "outcome",
|
|
926
|
+
"value": {
|
|
927
|
+
"value": "accepted"
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
]
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"kind": "react",
|
|
934
|
+
"on": {
|
|
935
|
+
"added": "consent"
|
|
936
|
+
},
|
|
937
|
+
"when": {
|
|
938
|
+
"op": "allOf",
|
|
939
|
+
"of": [
|
|
940
|
+
{
|
|
941
|
+
"op": "eq",
|
|
942
|
+
"left": {
|
|
943
|
+
"count": {
|
|
944
|
+
"slot": "consent",
|
|
945
|
+
"equals": "accept"
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"right": {
|
|
949
|
+
"slot": "consenters"
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"op": "present",
|
|
954
|
+
"subject": "self",
|
|
955
|
+
"slot": "from"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"op": "present",
|
|
959
|
+
"subject": "self",
|
|
960
|
+
"slot": "to"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"op": "present",
|
|
964
|
+
"subject": "self",
|
|
965
|
+
"slot": "amount"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"op": "present",
|
|
969
|
+
"subject": "self",
|
|
970
|
+
"slot": "resource"
|
|
971
|
+
}
|
|
972
|
+
]
|
|
973
|
+
},
|
|
974
|
+
"do": [
|
|
975
|
+
{
|
|
976
|
+
"op": "shift",
|
|
977
|
+
"slot": {
|
|
978
|
+
"slot": "resource"
|
|
979
|
+
},
|
|
980
|
+
"from": {
|
|
981
|
+
"slot": "from"
|
|
982
|
+
},
|
|
983
|
+
"to": {
|
|
984
|
+
"slot": "to"
|
|
985
|
+
},
|
|
986
|
+
"amount": {
|
|
987
|
+
"slot": "amount"
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
]
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"kind": "react",
|
|
994
|
+
"on": {
|
|
995
|
+
"added": "consent"
|
|
996
|
+
},
|
|
997
|
+
"when": {
|
|
998
|
+
"op": "allOf",
|
|
999
|
+
"of": [
|
|
1000
|
+
{
|
|
1001
|
+
"op": "eq",
|
|
1002
|
+
"left": {
|
|
1003
|
+
"count": {
|
|
1004
|
+
"slot": "consent",
|
|
1005
|
+
"equals": "accept"
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
"right": {
|
|
1009
|
+
"slot": "consenters"
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"op": "present",
|
|
1014
|
+
"subject": "self",
|
|
1015
|
+
"slot": "settles"
|
|
1016
|
+
}
|
|
1017
|
+
]
|
|
1018
|
+
},
|
|
1019
|
+
"do": [
|
|
1020
|
+
{
|
|
1021
|
+
"op": "settle",
|
|
1022
|
+
"tension": {
|
|
1023
|
+
"slot": "settles"
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
]
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"kind": "react",
|
|
1030
|
+
"on": {
|
|
1031
|
+
"added": "consent"
|
|
1032
|
+
},
|
|
1033
|
+
"when": {
|
|
1034
|
+
"op": "gt",
|
|
1035
|
+
"left": {
|
|
1036
|
+
"count": {
|
|
1037
|
+
"slot": "consent",
|
|
1038
|
+
"equals": "refuse"
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"right": {
|
|
1042
|
+
"value": 0
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
"do": [
|
|
1046
|
+
{
|
|
1047
|
+
"op": "set",
|
|
1048
|
+
"slot": "outcome",
|
|
1049
|
+
"value": {
|
|
1050
|
+
"value": "refused"
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
]
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"kind": "react",
|
|
1057
|
+
"on": {
|
|
1058
|
+
"added": "consent"
|
|
1059
|
+
},
|
|
1060
|
+
"when": {
|
|
1061
|
+
"op": "allOf",
|
|
1062
|
+
"of": [
|
|
1063
|
+
{
|
|
1064
|
+
"op": "gt",
|
|
1065
|
+
"left": {
|
|
1066
|
+
"count": {
|
|
1067
|
+
"slot": "consent",
|
|
1068
|
+
"equals": "refuse"
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"right": {
|
|
1072
|
+
"value": 0
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"op": "present",
|
|
1077
|
+
"subject": "self",
|
|
1078
|
+
"slot": "settles"
|
|
1079
|
+
}
|
|
1080
|
+
]
|
|
1081
|
+
},
|
|
1082
|
+
"do": [
|
|
1083
|
+
{
|
|
1084
|
+
"op": "settle",
|
|
1085
|
+
"tension": {
|
|
1086
|
+
"slot": "settles"
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
]
|
|
1090
|
+
}
|
|
1091
|
+
],
|
|
1092
|
+
"library": true,
|
|
1093
|
+
"neverHeld": true
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"id": "auction",
|
|
1097
|
+
"name": "Auction",
|
|
1098
|
+
"meaning": "Auction",
|
|
1099
|
+
"properties": [
|
|
1100
|
+
{
|
|
1101
|
+
"id": "item",
|
|
1102
|
+
"type": "id"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"id": "bid",
|
|
1106
|
+
"type": "number"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"id": "bidder",
|
|
1110
|
+
"type": "id"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"id": "closes-at",
|
|
1114
|
+
"type": "time"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"id": "winner",
|
|
1118
|
+
"type": "id"
|
|
1119
|
+
}
|
|
1120
|
+
],
|
|
1121
|
+
"relations": [],
|
|
1122
|
+
"mechanics": [],
|
|
1123
|
+
"laws": [
|
|
1124
|
+
{
|
|
1125
|
+
"kind": "forbid",
|
|
1126
|
+
"on": {
|
|
1127
|
+
"changed": "bid"
|
|
1128
|
+
},
|
|
1129
|
+
"when": {
|
|
1130
|
+
"op": "lte",
|
|
1131
|
+
"left": {
|
|
1132
|
+
"slot": "value",
|
|
1133
|
+
"of": "target"
|
|
1134
|
+
},
|
|
1135
|
+
"right": {
|
|
1136
|
+
"slot": "bid"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
"then": "higher"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"kind": "react",
|
|
1143
|
+
"on": {
|
|
1144
|
+
"changed": "bid"
|
|
1145
|
+
},
|
|
1146
|
+
"do": [
|
|
1147
|
+
{
|
|
1148
|
+
"op": "set",
|
|
1149
|
+
"slot": "bidder",
|
|
1150
|
+
"value": {
|
|
1151
|
+
"actor": true
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
]
|
|
1155
|
+
}
|
|
1156
|
+
],
|
|
1157
|
+
"library": true,
|
|
1158
|
+
"neverHeld": true
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"id": "item",
|
|
1162
|
+
"name": "Item",
|
|
1163
|
+
"meaning": "An ordinary physical thing, such as a tool, food, a container or a device; its condition says how it is now.",
|
|
1164
|
+
"properties": [
|
|
1165
|
+
{
|
|
1166
|
+
"id": "count",
|
|
1167
|
+
"type": "number"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"id": "owner",
|
|
1171
|
+
"type": "id"
|
|
1172
|
+
}
|
|
1173
|
+
],
|
|
1174
|
+
"relations": [],
|
|
1175
|
+
"mechanics": []
|
|
1176
|
+
}
|
|
1177
|
+
]
|