@semacode/cli 2.2.0 → 2.3.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/LICENSE +39 -39
- package/README.md +251 -141
- package/dist/agentContext.d.ts +1 -1
- package/dist/agentContextPack.js +6 -1
- package/dist/agentContextTipos.d.ts +4 -2
- package/dist/agentContextTipos.js +7 -0
- package/dist/agentEntryPoints.js +551 -499
- package/dist/angular-consumer-standalone.d.ts +3 -1
- package/dist/angular-consumer-standalone.js +12 -8
- package/dist/comandos.js +4 -0
- package/dist/discovery/catalog.d.ts +11 -0
- package/dist/discovery/catalog.js +521 -0
- package/dist/discovery/command.d.ts +11 -0
- package/dist/discovery/command.js +226 -0
- package/dist/discovery/index.d.ts +5 -0
- package/dist/discovery/index.js +8 -0
- package/dist/discovery/ranker.d.ts +3 -0
- package/dist/discovery/ranker.js +310 -0
- package/dist/discovery/redaction.d.ts +2 -0
- package/dist/discovery/redaction.js +21 -0
- package/dist/discovery/render.d.ts +2 -0
- package/dist/discovery/render.js +100 -0
- package/dist/discovery/types.d.ts +119 -0
- package/dist/discovery/types.js +13 -0
- package/dist/drift.part01.d.ts +32 -2
- package/dist/drift.part01.js +2 -0
- package/dist/drift.part04.d.ts +3 -2
- package/dist/drift.part04.js +6 -3
- package/dist/drift.part05.d.ts +2 -1
- package/dist/drift.part05.js +4 -3
- package/dist/drift.part06.d.ts +2 -1
- package/dist/drift.part06.js +9 -5
- package/dist/drift.part07.d.ts +11 -10
- package/dist/drift.part07.js +40 -30
- package/dist/drift.part08.d.ts +2 -1
- package/dist/drift.part08.js +4 -3
- package/dist/drift.part11.js +71 -6
- package/dist/drift.part12.js +14 -1
- package/dist/drift.part13.d.ts +42 -7
- package/dist/drift.part13.js +660 -36
- package/dist/driftCache.d.ts +49 -0
- package/dist/driftCache.js +311 -0
- package/dist/driftCacheIncremental.d.ts +98 -0
- package/dist/driftCacheIncremental.js +596 -0
- package/dist/driftCatalogo.d.ts +91 -0
- package/dist/driftCatalogo.js +657 -0
- package/dist/driftCatalogoPersistente.d.ts +8 -0
- package/dist/driftCatalogoPersistente.js +77 -0
- package/dist/driftEscopo.d.ts +23 -0
- package/dist/driftEscopo.js +563 -0
- package/dist/driftEscopoReferencias.d.ts +4 -0
- package/dist/driftEscopoReferencias.js +265 -0
- package/dist/driftOrcamento.d.ts +12 -0
- package/dist/driftOrcamento.js +19 -3
- package/dist/execucoesExternas.js +5 -19
- package/dist/exemplosOficiais.js +29 -8
- package/dist/iaPrompts.d.ts +1 -1
- package/dist/iaPrompts.js +310 -307
- package/dist/index.d.ts +2 -0
- package/dist/index.js +23 -5
- package/dist/index.part01.d.ts +17 -2
- package/dist/index.part01.js +119 -8
- package/dist/index.part02.js +21 -21
- package/dist/index.part03.d.ts +2 -2
- package/dist/index.part03.js +14 -3
- package/dist/index.part04.d.ts +2 -2
- package/dist/index.part04.js +113 -101
- package/dist/index.part05.d.ts +1 -1
- package/dist/index.part05.js +99 -22
- package/dist/index.part06.js +6 -2
- package/dist/index.part07.js +24 -24
- package/dist/index.part08.js +1 -1
- package/dist/init/templates.part01.js +393 -393
- package/dist/init/templates.part02.js +189 -189
- package/dist/initTemplatesBackend.js +73 -73
- package/dist/initTemplatesBase.js +81 -80
- package/dist/initTemplatesFlutter.js +137 -137
- package/dist/initTemplatesRuntime.js +350 -350
- package/dist/initTemplatesWeb.js +309 -309
- package/dist/pipelineConteudo/command.js +1 -36
- package/dist/profileArtefatoValidadores.d.ts +3 -2
- package/dist/profileArtefatoValidadores.js +81 -0
- package/dist/profileAuthorTipos.d.ts +4 -3
- package/dist/profileCatalogo.d.ts +5 -5
- package/dist/profileCatalogo.js +30 -0
- package/dist/profileCommand.d.ts +8 -2
- package/dist/profileCommand.js +15 -5
- package/dist/profileRegras.d.ts +5 -5
- package/dist/profileRegras.js +13 -1
- package/dist/profileRulePacks.js +68 -0
- package/dist/projeto.d.ts +1 -1
- package/dist/projetoCarregar.d.ts +2 -2
- package/dist/projetoCarregar.js +47 -24
- package/dist/projetoCatalogo.d.ts +7 -0
- package/dist/projetoCatalogo.js +125 -0
- package/dist/projetoTipos.d.ts +14 -5
- package/dist/sistemasInterativos/adapterProtocol.d.ts +3 -0
- package/dist/sistemasInterativos/adapterProtocol.js +240 -0
- package/dist/sistemasInterativos/advancedCatalog.d.ts +5 -0
- package/dist/sistemasInterativos/advancedCatalog.js +442 -0
- package/dist/sistemasInterativos/autonomy.d.ts +230 -0
- package/dist/sistemasInterativos/autonomy.js +753 -0
- package/dist/sistemasInterativos/canonical.d.ts +3 -0
- package/dist/sistemasInterativos/canonical.js +43 -0
- package/dist/sistemasInterativos/catalog.d.ts +116 -0
- package/dist/sistemasInterativos/catalog.js +543 -0
- package/dist/sistemasInterativos/command.d.ts +7 -0
- package/dist/sistemasInterativos/command.js +311 -0
- package/dist/sistemasInterativos/controlRun.d.ts +56 -0
- package/dist/sistemasInterativos/controlRun.js +391 -0
- package/dist/sistemasInterativos/evidence.d.ts +5 -0
- package/dist/sistemasInterativos/evidence.js +306 -0
- package/dist/sistemasInterativos/experienceIr.d.ts +12 -0
- package/dist/sistemasInterativos/experienceIr.js +895 -0
- package/dist/sistemasInterativos/experienceIrSemantics.d.ts +30 -0
- package/dist/sistemasInterativos/experienceIrSemantics.js +368 -0
- package/dist/sistemasInterativos/experienceIrTypes.d.ts +370 -0
- package/dist/sistemasInterativos/experienceIrTypes.js +5 -0
- package/dist/sistemasInterativos/extensionCommand.d.ts +391 -0
- package/dist/sistemasInterativos/extensionCommand.js +383 -0
- package/dist/sistemasInterativos/index.d.ts +19 -0
- package/dist/sistemasInterativos/index.js +22 -0
- package/dist/sistemasInterativos/operations.d.ts +40 -0
- package/dist/sistemasInterativos/operations.js +1167 -0
- package/dist/sistemasInterativos/operationsTypes.d.ts +297 -0
- package/dist/sistemasInterativos/operationsTypes.js +11 -0
- package/dist/sistemasInterativos/planner.d.ts +2 -0
- package/dist/sistemasInterativos/planner.js +159 -0
- package/dist/sistemasInterativos/portability.d.ts +164 -0
- package/dist/sistemasInterativos/portability.js +539 -0
- package/dist/sistemasInterativos/render.d.ts +3 -0
- package/dist/sistemasInterativos/render.js +179 -0
- package/dist/sistemasInterativos/temporal.d.ts +183 -0
- package/dist/sistemasInterativos/temporal.js +543 -0
- package/dist/sistemasInterativos/types.d.ts +215 -0
- package/dist/sistemasInterativos/types.js +4 -0
- package/dist/sistemasInterativos/validator.d.ts +2 -0
- package/dist/sistemasInterativos/validator.js +305 -0
- package/dist/sync/index.js +35 -35
- package/docs/README.md +34 -28
- package/docs/ai-onboarding.md +62 -62
- package/docs/ai-workflow.md +9 -4
- package/docs/auth.md +26 -26
- package/docs/cli.md +79 -79
- package/docs/commands.md +47 -2
- package/docs/database.md +15 -15
- package/docs/deploy.md +41 -41
- package/docs/descoberta-capacidades.md +106 -0
- package/docs/documentation.md +39 -39
- package/docs/env.md +16 -16
- package/docs/frontend.md +41 -41
- package/docs/getting-started.md +57 -57
- package/docs/i18n.md +15 -15
- package/docs/pipeline-conteudo.md +246 -246
- package/docs/profiles.md +54 -45
- package/docs/repositories.md +43 -43
- package/docs/rollback.md +31 -31
- package/docs/security.md +32 -32
- package/docs/sistemas-interativos.md +376 -0
- package/docs/support.md +8 -8
- package/docs/testing.md +51 -35
- package/docs/vocabulary.md +29 -29
- package/exemplos/agendamento.sema +1 -1
- package/exemplos/assinatura.sema +1 -1
- package/exemplos/auditoria.sema +1 -1
- package/exemplos/autenticacao.sema +1 -1
- package/exemplos/author_obra_comum.sema +1 -1
- package/exemplos/author_tema_sensivel.sema +1 -1
- package/exemplos/automacao.sema +1 -1
- package/exemplos/cadastro_usuario.sema +1 -1
- package/exemplos/calculadora.sema +1 -1
- package/exemplos/crud_simples.sema +1 -1
- package/exemplos/estoque.sema +1 -1
- package/exemplos/exportacao.sema +1 -1
- package/exemplos/fila.sema +1 -1
- package/exemplos/integracao_externa.sema +1 -1
- package/exemplos/multi_tenant.sema +1 -1
- package/exemplos/notificacao.sema +1 -1
- package/exemplos/operacao_estrategia.sema +132 -132
- package/exemplos/operacao_estrategia_discovery.sema +220 -220
- package/exemplos/operacao_estrategia_fluxo.sema +114 -114
- package/exemplos/operacao_estrategia_gates.sema +106 -106
- package/exemplos/operacao_estrategia_quarentena.sema +133 -133
- package/exemplos/operacao_estrategia_rollout.sema +124 -124
- package/exemplos/pagamento.sema +1 -1
- package/exemplos/pagamento_dominio.sema +1 -1
- package/exemplos/pedido.sema +1 -1
- package/exemplos/permissao.sema +1 -1
- package/exemplos/persistencia_vendor_first.sema +1 -1
- package/exemplos/pipeline-conteudo/README.md +44 -44
- package/exemplos/pipeline-conteudo/alvos.json +23 -23
- package/exemplos/pipeline-conteudo/definicao.json +136 -136
- package/exemplos/profile_conversas.sema +165 -165
- package/exemplos/profile_game.sema +1 -1
- package/exemplos/profile_legal.sema +1 -1
- package/exemplos/profile_ops.sema +1 -1
- package/exemplos/profile_research.sema +1 -1
- package/exemplos/profile_simulation.sema +211 -0
- package/exemplos/profile_software.sema +1 -1
- package/exemplos/profile_workflow_n8n.sema +1 -1
- package/exemplos/relatorio.sema +1 -1
- package/exemplos/replica_analitica_erp.sema +1 -1
- package/exemplos/sistemas-interativos/README.md +100 -0
- package/exemplos/sistemas-interativos/advanced/acceptance-context-evaluate-valid.json +5 -0
- package/exemplos/sistemas-interativos/advanced/acceptance-lock-valid.json +16 -0
- package/exemplos/sistemas-interativos/advanced/asset-provenance-valid.json +32 -0
- package/exemplos/sistemas-interativos/advanced/autonomy-repair-valid.json +93 -0
- package/exemplos/sistemas-interativos/advanced/control-run-definition-valid.json +78 -0
- package/exemplos/sistemas-interativos/advanced/control-run-valid.json +27 -0
- package/exemplos/sistemas-interativos/advanced/distributed-workers-valid.json +79 -0
- package/exemplos/sistemas-interativos/advanced/editor-state-valid.json +42 -0
- package/exemplos/sistemas-interativos/advanced/engine-snapshot-after-valid.json +32 -0
- package/exemplos/sistemas-interativos/advanced/engine-snapshot-before-valid.json +23 -0
- package/exemplos/sistemas-interativos/advanced/job-orchestration-valid.json +39 -0
- package/exemplos/sistemas-interativos/advanced/multimodal-evidence-valid.json +46 -0
- package/exemplos/sistemas-interativos/advanced/multiplayer-authority-valid.json +39 -0
- package/exemplos/sistemas-interativos/advanced/playtest-fuzz-valid.json +37 -0
- package/exemplos/sistemas-interativos/advanced/portability-valid.json +104 -0
- package/exemplos/sistemas-interativos/advanced/temporal-evidence-valid.json +27 -0
- package/exemplos/sistemas-interativos/advanced/temporal-valid.json +118 -0
- package/exemplos/sistemas-interativos/experience-ir-valid.json +459 -0
- package/exemplos/sistemas-interativos/game-2d.json +83 -0
- package/exemplos/sistemas-interativos/game-3d-human.json +81 -0
- package/exemplos/sistemas-interativos/game-pixel-16-bit.json +97 -0
- package/exemplos/sistemas-interativos/game-pixel-8-bit.json +94 -0
- package/exemplos/sistemas-interativos/game-xr-human.json +80 -0
- package/exemplos/sistemas-interativos/hybrid-2-5d.json +108 -0
- package/exemplos/sistemas-interativos/protocol-mutating-rollback-valid.json +75 -0
- package/exemplos/sistemas-interativos/protocol-read-only-valid.json +58 -0
- package/exemplos/sistemas-interativos/simulation-2d-controlled.json +97 -0
- package/exemplos/sistemas-interativos/simulation-3d-calibrated-autonomous.json +141 -0
- package/exemplos/sistemas-interativos/simulation-headless-autonomous-batch.json +112 -0
- package/exemplos/sistemas-interativos/simulation-pixel-16-bit.json +103 -0
- package/exemplos/sistemas-interativos/simulation-text-controlled.json +95 -0
- package/exemplos/testes_embutidos.sema +1 -1
- package/exemplos/tratamento_erro.sema +1 -1
- package/exemplos/upload_arquivo.sema +1 -1
- package/exemplos/webhook.sema +1 -1
- package/node_modules/@sema/gerador-cpp/dist/index.js +176 -176
- package/node_modules/@sema/gerador-cpp/package.json +1 -1
- package/node_modules/@sema/gerador-css/dist/index.part01.js +10 -10
- package/node_modules/@sema/gerador-css/dist/index.part02.js +460 -460
- package/node_modules/@sema/gerador-dotnet/dist/index.js +169 -169
- package/node_modules/@sema/gerador-dotnet/package.json +1 -1
- package/node_modules/@sema/gerador-html/dist/index.js +17 -17
- package/node_modules/@sema/gerador-lua/dist/index.js +76 -47
- package/node_modules/@sema/gerador-lua/dist/index.js.map +1 -1
- package/node_modules/@sema/gerador-php/dist/index.js +113 -113
- package/node_modules/@sema/gerador-python/dist/index.part02.js +3 -3
- package/node_modules/@sema/gerador-typescript/dist/index.part02.js +11 -11
- package/node_modules/@sema/nucleo/dist/diagnosticos/melhorador.js +42 -42
- package/package.json +3 -3
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0",
|
|
3
|
+
"systemId": "example.simulation.3d.calibrated-autonomous",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"kind": "SIMULATION",
|
|
6
|
+
"spatialModel": "THREE_D",
|
|
7
|
+
"renderMode": "VISUAL",
|
|
8
|
+
"visualProfile": "REALISTIC",
|
|
9
|
+
"fidelity": "CALIBRATED",
|
|
10
|
+
"controlModes": [
|
|
11
|
+
"AUTONOMOUS"
|
|
12
|
+
],
|
|
13
|
+
"timeModel": "FIXED_STEP",
|
|
14
|
+
"determinism": "STRICT",
|
|
15
|
+
"capabilities": [
|
|
16
|
+
"interactive.control.autonomous",
|
|
17
|
+
"interactive.determinism.strict",
|
|
18
|
+
"interactive.event.log",
|
|
19
|
+
"interactive.fidelity.calibrated",
|
|
20
|
+
"interactive.kind.simulation",
|
|
21
|
+
"interactive.render.visual",
|
|
22
|
+
"interactive.replay.compare",
|
|
23
|
+
"interactive.seed.bind",
|
|
24
|
+
"interactive.snapshot.capture",
|
|
25
|
+
"interactive.spatial.three_d",
|
|
26
|
+
"interactive.state.model",
|
|
27
|
+
"interactive.time.fixed_step",
|
|
28
|
+
"interactive.visual.realistic",
|
|
29
|
+
"interactive.world.model",
|
|
30
|
+
"simulation.calibrate",
|
|
31
|
+
"simulation.hazard.model",
|
|
32
|
+
"simulation.invariants.validate",
|
|
33
|
+
"simulation.model",
|
|
34
|
+
"simulation.outputs.compare",
|
|
35
|
+
"simulation.outputs.observe",
|
|
36
|
+
"simulation.recovery.plan",
|
|
37
|
+
"simulation.reference.bind",
|
|
38
|
+
"simulation.scenario.define",
|
|
39
|
+
"simulation.stop.validate",
|
|
40
|
+
"simulation.telemetry.observe",
|
|
41
|
+
"simulation.uncertainty.measure",
|
|
42
|
+
"simulation.validity.report"
|
|
43
|
+
],
|
|
44
|
+
"pipelines": [
|
|
45
|
+
"simulation.scenario",
|
|
46
|
+
"simulation.calibrate",
|
|
47
|
+
"simulation.validate",
|
|
48
|
+
"simulation.safety",
|
|
49
|
+
"interactive.replay"
|
|
50
|
+
],
|
|
51
|
+
"adapterTargets": [
|
|
52
|
+
"engine.godot",
|
|
53
|
+
"telemetry.trace.local",
|
|
54
|
+
"validator.replay.local"
|
|
55
|
+
],
|
|
56
|
+
"world": {
|
|
57
|
+
"identity": "autonomous warehouse vehicle calibration scene",
|
|
58
|
+
"state": {
|
|
59
|
+
"vehicle": "idle",
|
|
60
|
+
"payloadKg": 250
|
|
61
|
+
},
|
|
62
|
+
"time": {
|
|
63
|
+
"fixedStepSeconds": 0.01
|
|
64
|
+
},
|
|
65
|
+
"events": [
|
|
66
|
+
"route.assigned",
|
|
67
|
+
"obstacle.detected",
|
|
68
|
+
"emergency.stop"
|
|
69
|
+
],
|
|
70
|
+
"initialConditions": {
|
|
71
|
+
"vehiclePose": [
|
|
72
|
+
0,
|
|
73
|
+
0,
|
|
74
|
+
0
|
|
75
|
+
],
|
|
76
|
+
"batteryPercent": 100
|
|
77
|
+
},
|
|
78
|
+
"units": "SI",
|
|
79
|
+
"scale": "1 unit = 1 metre",
|
|
80
|
+
"coordinateSystem": "right-handed Z-up",
|
|
81
|
+
"model": "rigid-body vehicle with measured acceleration and braking curves",
|
|
82
|
+
"assumptions": [
|
|
83
|
+
"floor friction remains inside the calibrated interval",
|
|
84
|
+
"sensor timestamps are monotonic"
|
|
85
|
+
],
|
|
86
|
+
"boundaryConditions": {
|
|
87
|
+
"maximumSpeedMetresPerSecond": 2.5,
|
|
88
|
+
"workspace": "40m x 20m x 6m"
|
|
89
|
+
},
|
|
90
|
+
"outputs": [
|
|
91
|
+
"stoppingDistanceMetres",
|
|
92
|
+
"routeTimeSeconds",
|
|
93
|
+
"minimumObstacleClearanceMetres"
|
|
94
|
+
],
|
|
95
|
+
"validation": {
|
|
96
|
+
"method": "compare calibrated outputs with the reference dataset and tolerances",
|
|
97
|
+
"invariants": ["speed remains bounded", "obstacle clearance remains positive"]
|
|
98
|
+
},
|
|
99
|
+
"seed": 2026071901,
|
|
100
|
+
"snapshot": "complete physical and controller state at tick zero",
|
|
101
|
+
"replay": "ordered sensor frames and controller decisions",
|
|
102
|
+
"step": "fixed 0.01 second integration step",
|
|
103
|
+
"stopCriteria": [
|
|
104
|
+
"scenario duration reaches 300 seconds",
|
|
105
|
+
"emergency stop is raised"
|
|
106
|
+
],
|
|
107
|
+
"safetyConstraints": [
|
|
108
|
+
"speed never exceeds 2.5 metres per second",
|
|
109
|
+
"obstacle clearance never falls below 0.25 metres"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"acceptance": {
|
|
113
|
+
"reference": {
|
|
114
|
+
"datasetId": "fixture.warehouse-braking-v1",
|
|
115
|
+
"provenance": "declared external measurement fixture"
|
|
116
|
+
},
|
|
117
|
+
"calibration": {
|
|
118
|
+
"method": "bounded least squares",
|
|
119
|
+
"parameters": [
|
|
120
|
+
"rollingResistance",
|
|
121
|
+
"brakeResponseDelay"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"tolerances": {
|
|
125
|
+
"stoppingDistanceMetres": 0.05,
|
|
126
|
+
"routeTimePercent": 2
|
|
127
|
+
},
|
|
128
|
+
"uncertainty": {
|
|
129
|
+
"method": "bootstrap confidence interval",
|
|
130
|
+
"confidence": 0.95
|
|
131
|
+
},
|
|
132
|
+
"telemetry": {
|
|
133
|
+
"sampleRateHz": 100,
|
|
134
|
+
"requiredSignals": [
|
|
135
|
+
"pose",
|
|
136
|
+
"velocity",
|
|
137
|
+
"brakeCommand"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0",
|
|
3
|
+
"systemId": "example.simulation.headless.autonomous-batch",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"kind": "SIMULATION",
|
|
6
|
+
"spatialModel": "NON_SPATIAL",
|
|
7
|
+
"renderMode": "HEADLESS",
|
|
8
|
+
"visualProfile": "NONE",
|
|
9
|
+
"fidelity": "SYSTEMIC",
|
|
10
|
+
"controlModes": [
|
|
11
|
+
"AUTONOMOUS"
|
|
12
|
+
],
|
|
13
|
+
"timeModel": "BATCH",
|
|
14
|
+
"determinism": "STRICT",
|
|
15
|
+
"capabilities": [
|
|
16
|
+
"interactive.control.autonomous",
|
|
17
|
+
"interactive.determinism.strict",
|
|
18
|
+
"interactive.event.log",
|
|
19
|
+
"interactive.fidelity.systemic",
|
|
20
|
+
"interactive.kind.simulation",
|
|
21
|
+
"interactive.render.headless",
|
|
22
|
+
"interactive.replay.compare",
|
|
23
|
+
"interactive.seed.bind",
|
|
24
|
+
"interactive.snapshot.capture",
|
|
25
|
+
"interactive.spatial.non_spatial",
|
|
26
|
+
"interactive.state.model",
|
|
27
|
+
"interactive.time.batch",
|
|
28
|
+
"interactive.visual.none",
|
|
29
|
+
"interactive.world.model",
|
|
30
|
+
"simulation.batch.aggregate",
|
|
31
|
+
"simulation.batch.plan",
|
|
32
|
+
"simulation.batch.seed",
|
|
33
|
+
"simulation.hazard.model",
|
|
34
|
+
"simulation.invariants.validate",
|
|
35
|
+
"simulation.model",
|
|
36
|
+
"simulation.outputs.compare",
|
|
37
|
+
"simulation.outputs.observe",
|
|
38
|
+
"simulation.recovery.plan",
|
|
39
|
+
"simulation.scenario.define",
|
|
40
|
+
"simulation.stop.validate",
|
|
41
|
+
"simulation.validity.report"
|
|
42
|
+
],
|
|
43
|
+
"pipelines": [
|
|
44
|
+
"simulation.scenario",
|
|
45
|
+
"simulation.batch_run",
|
|
46
|
+
"simulation.validate",
|
|
47
|
+
"simulation.safety",
|
|
48
|
+
"interactive.replay"
|
|
49
|
+
],
|
|
50
|
+
"adapterTargets": [
|
|
51
|
+
"simulation.runner.generic",
|
|
52
|
+
"telemetry.trace.local",
|
|
53
|
+
"validator.replay.local"
|
|
54
|
+
],
|
|
55
|
+
"world": {
|
|
56
|
+
"identity": "autonomous headless supply-network batch",
|
|
57
|
+
"state": {
|
|
58
|
+
"scenarioIndex": 0,
|
|
59
|
+
"completedRuns": 0
|
|
60
|
+
},
|
|
61
|
+
"time": {
|
|
62
|
+
"horizonDays": 365,
|
|
63
|
+
"batchRuns": 1000
|
|
64
|
+
},
|
|
65
|
+
"events": [
|
|
66
|
+
"shipment.dispatch",
|
|
67
|
+
"shipment.arrive",
|
|
68
|
+
"facility.disrupt"
|
|
69
|
+
],
|
|
70
|
+
"initialConditions": {
|
|
71
|
+
"inventoryDataset": "fixture.inventory-baseline-v1",
|
|
72
|
+
"scenarioMatrix": "fixture.disruption-matrix-v1"
|
|
73
|
+
},
|
|
74
|
+
"model": "discrete-event multi-echelon supply network",
|
|
75
|
+
"assumptions": [
|
|
76
|
+
"lead-time distributions are stationary within a scenario"
|
|
77
|
+
],
|
|
78
|
+
"boundaryConditions": {
|
|
79
|
+
"maximumFacilities": 500,
|
|
80
|
+
"horizonDays": 365
|
|
81
|
+
},
|
|
82
|
+
"outputs": [
|
|
83
|
+
"serviceLevel",
|
|
84
|
+
"stockoutDays",
|
|
85
|
+
"totalCost"
|
|
86
|
+
],
|
|
87
|
+
"validation": {
|
|
88
|
+
"method": "validate every batch member before deterministic aggregation",
|
|
89
|
+
"invariants": ["inventory is finite", "completed runs do not exceed matrix size"]
|
|
90
|
+
},
|
|
91
|
+
"seed": 2026071903,
|
|
92
|
+
"snapshot": "model state and random stream before each batch member",
|
|
93
|
+
"replay": "scenario parameters, seed, and ordered discrete events",
|
|
94
|
+
"step": "advance to the next discrete event",
|
|
95
|
+
"stopCriteria": [
|
|
96
|
+
"all 1000 batch members complete",
|
|
97
|
+
"a declared invariant fails"
|
|
98
|
+
],
|
|
99
|
+
"safetyConstraints": [
|
|
100
|
+
"a run cannot allocate more than 500 facilities",
|
|
101
|
+
"a failed invariant terminates only its current batch member"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"acceptance": {
|
|
105
|
+
"determinism": "each scenario and seed pair reproduces its result digest",
|
|
106
|
+
"aggregation": "aggregate output reports sample count and failed-run count",
|
|
107
|
+
"invariants": [
|
|
108
|
+
"inventory is never NaN",
|
|
109
|
+
"completed run count never exceeds the matrix size"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0",
|
|
3
|
+
"systemId": "example.simulation.pixel-16-bit.uncontrolled",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"kind": "SIMULATION",
|
|
6
|
+
"spatialModel": "TWO_D",
|
|
7
|
+
"renderMode": "VISUAL",
|
|
8
|
+
"visualProfile": "PIXEL_16_BIT",
|
|
9
|
+
"fidelity": "SYSTEMIC",
|
|
10
|
+
"controlModes": [
|
|
11
|
+
"UNCONTROLLED"
|
|
12
|
+
],
|
|
13
|
+
"timeModel": "EVENT_DRIVEN",
|
|
14
|
+
"determinism": "BEST_EFFORT",
|
|
15
|
+
"capabilities": [
|
|
16
|
+
"interactive.control.uncontrolled",
|
|
17
|
+
"interactive.determinism.best_effort",
|
|
18
|
+
"interactive.fidelity.systemic",
|
|
19
|
+
"interactive.kind.simulation",
|
|
20
|
+
"interactive.render.visual",
|
|
21
|
+
"interactive.spatial.two_d",
|
|
22
|
+
"interactive.state.model",
|
|
23
|
+
"interactive.time.event_driven",
|
|
24
|
+
"interactive.visual.pixel_16_bit",
|
|
25
|
+
"interactive.world.model",
|
|
26
|
+
"simulation.hazard.model",
|
|
27
|
+
"simulation.model",
|
|
28
|
+
"simulation.outputs.observe",
|
|
29
|
+
"simulation.recovery.plan",
|
|
30
|
+
"simulation.scenario.define",
|
|
31
|
+
"simulation.stop.validate"
|
|
32
|
+
],
|
|
33
|
+
"pipelines": [
|
|
34
|
+
"simulation.scenario",
|
|
35
|
+
"simulation.safety"
|
|
36
|
+
],
|
|
37
|
+
"adapterTargets": [
|
|
38
|
+
"engine.tic80",
|
|
39
|
+
"simulation.runner.generic",
|
|
40
|
+
"telemetry.trace.local",
|
|
41
|
+
"validator.replay.local"
|
|
42
|
+
],
|
|
43
|
+
"world": {
|
|
44
|
+
"identity": "uncontrolled cellular ecosystem visualisation",
|
|
45
|
+
"state": {
|
|
46
|
+
"generation": 0,
|
|
47
|
+
"population": 64
|
|
48
|
+
},
|
|
49
|
+
"time": {
|
|
50
|
+
"advance": "next scheduled ecosystem event"
|
|
51
|
+
},
|
|
52
|
+
"events": [
|
|
53
|
+
"organism.birth",
|
|
54
|
+
"organism.consume",
|
|
55
|
+
"organism.expire"
|
|
56
|
+
],
|
|
57
|
+
"initialConditions": {
|
|
58
|
+
"population": 64,
|
|
59
|
+
"resourceCells": 256
|
|
60
|
+
},
|
|
61
|
+
"grid": "160x90 logical cells rendered as 2x2 pixels",
|
|
62
|
+
"model": "event-driven predator-resource cellular system",
|
|
63
|
+
"assumptions": [
|
|
64
|
+
"all interactions are local to neighbouring cells"
|
|
65
|
+
],
|
|
66
|
+
"boundaryConditions": {
|
|
67
|
+
"topology": "toroidal",
|
|
68
|
+
"maximumPopulation": 2048
|
|
69
|
+
},
|
|
70
|
+
"outputs": [
|
|
71
|
+
"populationBySpecies",
|
|
72
|
+
"resourceCoverage",
|
|
73
|
+
"extinctionEvents"
|
|
74
|
+
],
|
|
75
|
+
"validation": {
|
|
76
|
+
"method": "check event and population invariants independently of pixel rendering",
|
|
77
|
+
"invariants": ["population remains non-negative", "events reference existing cells"]
|
|
78
|
+
},
|
|
79
|
+
"stopCriteria": [
|
|
80
|
+
"generation reaches 10000",
|
|
81
|
+
"all species become extinct"
|
|
82
|
+
],
|
|
83
|
+
"safetyConstraints": [
|
|
84
|
+
"population allocation never exceeds 2048 entities",
|
|
85
|
+
"event queue never exceeds 65536 entries"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"budgets": {
|
|
89
|
+
"paletteColors": 256,
|
|
90
|
+
"baseResolution": "320x180",
|
|
91
|
+
"tileSize": "2x2",
|
|
92
|
+
"spriteSize": "2x2 to 8x8",
|
|
93
|
+
"memoryBudgetBytes": 524288,
|
|
94
|
+
"audioProfile": "optional four-voice event sonification"
|
|
95
|
+
},
|
|
96
|
+
"acceptance": {
|
|
97
|
+
"invariants": [
|
|
98
|
+
"population counts remain non-negative",
|
|
99
|
+
"every event references an existing cell"
|
|
100
|
+
],
|
|
101
|
+
"visualisation": "pixel styling does not alter the model state or event order"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0",
|
|
3
|
+
"systemId": "example.simulation.text.controlled",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"kind": "SIMULATION",
|
|
6
|
+
"spatialModel": "NON_SPATIAL",
|
|
7
|
+
"renderMode": "TEXT",
|
|
8
|
+
"visualProfile": "NONE",
|
|
9
|
+
"fidelity": "SYSTEMIC",
|
|
10
|
+
"controlModes": [
|
|
11
|
+
"SCRIPTED"
|
|
12
|
+
],
|
|
13
|
+
"timeModel": "TURN_BASED",
|
|
14
|
+
"determinism": "STRICT",
|
|
15
|
+
"capabilities": [
|
|
16
|
+
"interactive.control.scripted",
|
|
17
|
+
"interactive.determinism.strict",
|
|
18
|
+
"interactive.event.log",
|
|
19
|
+
"interactive.fidelity.systemic",
|
|
20
|
+
"interactive.kind.simulation",
|
|
21
|
+
"interactive.render.text",
|
|
22
|
+
"interactive.replay.compare",
|
|
23
|
+
"interactive.seed.bind",
|
|
24
|
+
"interactive.snapshot.capture",
|
|
25
|
+
"interactive.spatial.non_spatial",
|
|
26
|
+
"interactive.state.model",
|
|
27
|
+
"interactive.time.turn_based",
|
|
28
|
+
"interactive.visual.none",
|
|
29
|
+
"interactive.world.model",
|
|
30
|
+
"simulation.invariants.validate",
|
|
31
|
+
"simulation.model",
|
|
32
|
+
"simulation.outputs.compare",
|
|
33
|
+
"simulation.outputs.observe",
|
|
34
|
+
"simulation.scenario.define",
|
|
35
|
+
"simulation.validity.report"
|
|
36
|
+
],
|
|
37
|
+
"pipelines": [
|
|
38
|
+
"simulation.scenario",
|
|
39
|
+
"simulation.validate",
|
|
40
|
+
"interactive.replay"
|
|
41
|
+
],
|
|
42
|
+
"adapterTargets": [
|
|
43
|
+
"runtime.text.generic",
|
|
44
|
+
"simulation.runner.generic",
|
|
45
|
+
"telemetry.trace.local",
|
|
46
|
+
"validator.replay.local"
|
|
47
|
+
],
|
|
48
|
+
"world": {
|
|
49
|
+
"identity": "turn-based queueing simulation with a text surface",
|
|
50
|
+
"state": {
|
|
51
|
+
"turn": 0,
|
|
52
|
+
"queueLength": 0
|
|
53
|
+
},
|
|
54
|
+
"time": {
|
|
55
|
+
"turnDurationMinutes": 1
|
|
56
|
+
},
|
|
57
|
+
"events": [
|
|
58
|
+
"request.arrive",
|
|
59
|
+
"request.complete",
|
|
60
|
+
"capacity.change"
|
|
61
|
+
],
|
|
62
|
+
"initialConditions": {
|
|
63
|
+
"servers": 4,
|
|
64
|
+
"queueLength": 0
|
|
65
|
+
},
|
|
66
|
+
"model": "finite-capacity discrete queue",
|
|
67
|
+
"assumptions": [
|
|
68
|
+
"one turn represents one minute"
|
|
69
|
+
],
|
|
70
|
+
"boundaryConditions": {
|
|
71
|
+
"maximumQueueLength": 1000,
|
|
72
|
+
"turns": 1440
|
|
73
|
+
},
|
|
74
|
+
"outputs": [
|
|
75
|
+
"meanWaitTurns",
|
|
76
|
+
"maximumQueueLength",
|
|
77
|
+
"completedRequests"
|
|
78
|
+
],
|
|
79
|
+
"validation": {
|
|
80
|
+
"method": "compare seeded turns with queue invariants and expected outputs",
|
|
81
|
+
"invariants": ["queue length remains non-negative", "completed requests do not exceed arrivals"]
|
|
82
|
+
},
|
|
83
|
+
"seed": 2026071905,
|
|
84
|
+
"snapshot": "queue, servers, counters, and random stream",
|
|
85
|
+
"replay": "ordered scripted arrivals and capacity events",
|
|
86
|
+
"step": "one declared turn"
|
|
87
|
+
},
|
|
88
|
+
"acceptance": {
|
|
89
|
+
"textSurface": "every turn can be inspected without a graphical renderer",
|
|
90
|
+
"invariants": [
|
|
91
|
+
"queue length is never negative",
|
|
92
|
+
"completed requests never exceed arrivals"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
}
|
package/exemplos/webhook.sema
CHANGED