@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.
Files changed (252) hide show
  1. package/LICENSE +39 -39
  2. package/README.md +251 -141
  3. package/dist/agentContext.d.ts +1 -1
  4. package/dist/agentContextPack.js +6 -1
  5. package/dist/agentContextTipos.d.ts +4 -2
  6. package/dist/agentContextTipos.js +7 -0
  7. package/dist/agentEntryPoints.js +551 -499
  8. package/dist/angular-consumer-standalone.d.ts +3 -1
  9. package/dist/angular-consumer-standalone.js +12 -8
  10. package/dist/comandos.js +4 -0
  11. package/dist/discovery/catalog.d.ts +11 -0
  12. package/dist/discovery/catalog.js +521 -0
  13. package/dist/discovery/command.d.ts +11 -0
  14. package/dist/discovery/command.js +226 -0
  15. package/dist/discovery/index.d.ts +5 -0
  16. package/dist/discovery/index.js +8 -0
  17. package/dist/discovery/ranker.d.ts +3 -0
  18. package/dist/discovery/ranker.js +310 -0
  19. package/dist/discovery/redaction.d.ts +2 -0
  20. package/dist/discovery/redaction.js +21 -0
  21. package/dist/discovery/render.d.ts +2 -0
  22. package/dist/discovery/render.js +100 -0
  23. package/dist/discovery/types.d.ts +119 -0
  24. package/dist/discovery/types.js +13 -0
  25. package/dist/drift.part01.d.ts +32 -2
  26. package/dist/drift.part01.js +2 -0
  27. package/dist/drift.part04.d.ts +3 -2
  28. package/dist/drift.part04.js +6 -3
  29. package/dist/drift.part05.d.ts +2 -1
  30. package/dist/drift.part05.js +4 -3
  31. package/dist/drift.part06.d.ts +2 -1
  32. package/dist/drift.part06.js +9 -5
  33. package/dist/drift.part07.d.ts +11 -10
  34. package/dist/drift.part07.js +40 -30
  35. package/dist/drift.part08.d.ts +2 -1
  36. package/dist/drift.part08.js +4 -3
  37. package/dist/drift.part11.js +71 -6
  38. package/dist/drift.part12.js +14 -1
  39. package/dist/drift.part13.d.ts +42 -7
  40. package/dist/drift.part13.js +660 -36
  41. package/dist/driftCache.d.ts +49 -0
  42. package/dist/driftCache.js +311 -0
  43. package/dist/driftCacheIncremental.d.ts +98 -0
  44. package/dist/driftCacheIncremental.js +596 -0
  45. package/dist/driftCatalogo.d.ts +91 -0
  46. package/dist/driftCatalogo.js +657 -0
  47. package/dist/driftCatalogoPersistente.d.ts +8 -0
  48. package/dist/driftCatalogoPersistente.js +77 -0
  49. package/dist/driftEscopo.d.ts +23 -0
  50. package/dist/driftEscopo.js +563 -0
  51. package/dist/driftEscopoReferencias.d.ts +4 -0
  52. package/dist/driftEscopoReferencias.js +265 -0
  53. package/dist/driftOrcamento.d.ts +12 -0
  54. package/dist/driftOrcamento.js +19 -3
  55. package/dist/execucoesExternas.js +5 -19
  56. package/dist/exemplosOficiais.js +29 -8
  57. package/dist/iaPrompts.d.ts +1 -1
  58. package/dist/iaPrompts.js +310 -307
  59. package/dist/index.d.ts +2 -0
  60. package/dist/index.js +23 -5
  61. package/dist/index.part01.d.ts +17 -2
  62. package/dist/index.part01.js +119 -8
  63. package/dist/index.part02.js +21 -21
  64. package/dist/index.part03.d.ts +2 -2
  65. package/dist/index.part03.js +14 -3
  66. package/dist/index.part04.d.ts +2 -2
  67. package/dist/index.part04.js +113 -101
  68. package/dist/index.part05.d.ts +1 -1
  69. package/dist/index.part05.js +99 -22
  70. package/dist/index.part06.js +6 -2
  71. package/dist/index.part07.js +24 -24
  72. package/dist/index.part08.js +1 -1
  73. package/dist/init/templates.part01.js +393 -393
  74. package/dist/init/templates.part02.js +189 -189
  75. package/dist/initTemplatesBackend.js +73 -73
  76. package/dist/initTemplatesBase.js +81 -80
  77. package/dist/initTemplatesFlutter.js +137 -137
  78. package/dist/initTemplatesRuntime.js +350 -350
  79. package/dist/initTemplatesWeb.js +309 -309
  80. package/dist/pipelineConteudo/command.js +1 -36
  81. package/dist/profileArtefatoValidadores.d.ts +3 -2
  82. package/dist/profileArtefatoValidadores.js +81 -0
  83. package/dist/profileAuthorTipos.d.ts +4 -3
  84. package/dist/profileCatalogo.d.ts +5 -5
  85. package/dist/profileCatalogo.js +30 -0
  86. package/dist/profileCommand.d.ts +8 -2
  87. package/dist/profileCommand.js +15 -5
  88. package/dist/profileRegras.d.ts +5 -5
  89. package/dist/profileRegras.js +13 -1
  90. package/dist/profileRulePacks.js +68 -0
  91. package/dist/projeto.d.ts +1 -1
  92. package/dist/projetoCarregar.d.ts +2 -2
  93. package/dist/projetoCarregar.js +47 -24
  94. package/dist/projetoCatalogo.d.ts +7 -0
  95. package/dist/projetoCatalogo.js +125 -0
  96. package/dist/projetoTipos.d.ts +14 -5
  97. package/dist/sistemasInterativos/adapterProtocol.d.ts +3 -0
  98. package/dist/sistemasInterativos/adapterProtocol.js +240 -0
  99. package/dist/sistemasInterativos/advancedCatalog.d.ts +5 -0
  100. package/dist/sistemasInterativos/advancedCatalog.js +442 -0
  101. package/dist/sistemasInterativos/autonomy.d.ts +230 -0
  102. package/dist/sistemasInterativos/autonomy.js +753 -0
  103. package/dist/sistemasInterativos/canonical.d.ts +3 -0
  104. package/dist/sistemasInterativos/canonical.js +43 -0
  105. package/dist/sistemasInterativos/catalog.d.ts +116 -0
  106. package/dist/sistemasInterativos/catalog.js +543 -0
  107. package/dist/sistemasInterativos/command.d.ts +7 -0
  108. package/dist/sistemasInterativos/command.js +311 -0
  109. package/dist/sistemasInterativos/controlRun.d.ts +56 -0
  110. package/dist/sistemasInterativos/controlRun.js +391 -0
  111. package/dist/sistemasInterativos/evidence.d.ts +5 -0
  112. package/dist/sistemasInterativos/evidence.js +306 -0
  113. package/dist/sistemasInterativos/experienceIr.d.ts +12 -0
  114. package/dist/sistemasInterativos/experienceIr.js +895 -0
  115. package/dist/sistemasInterativos/experienceIrSemantics.d.ts +30 -0
  116. package/dist/sistemasInterativos/experienceIrSemantics.js +368 -0
  117. package/dist/sistemasInterativos/experienceIrTypes.d.ts +370 -0
  118. package/dist/sistemasInterativos/experienceIrTypes.js +5 -0
  119. package/dist/sistemasInterativos/extensionCommand.d.ts +391 -0
  120. package/dist/sistemasInterativos/extensionCommand.js +383 -0
  121. package/dist/sistemasInterativos/index.d.ts +19 -0
  122. package/dist/sistemasInterativos/index.js +22 -0
  123. package/dist/sistemasInterativos/operations.d.ts +40 -0
  124. package/dist/sistemasInterativos/operations.js +1167 -0
  125. package/dist/sistemasInterativos/operationsTypes.d.ts +297 -0
  126. package/dist/sistemasInterativos/operationsTypes.js +11 -0
  127. package/dist/sistemasInterativos/planner.d.ts +2 -0
  128. package/dist/sistemasInterativos/planner.js +159 -0
  129. package/dist/sistemasInterativos/portability.d.ts +164 -0
  130. package/dist/sistemasInterativos/portability.js +539 -0
  131. package/dist/sistemasInterativos/render.d.ts +3 -0
  132. package/dist/sistemasInterativos/render.js +179 -0
  133. package/dist/sistemasInterativos/temporal.d.ts +183 -0
  134. package/dist/sistemasInterativos/temporal.js +543 -0
  135. package/dist/sistemasInterativos/types.d.ts +215 -0
  136. package/dist/sistemasInterativos/types.js +4 -0
  137. package/dist/sistemasInterativos/validator.d.ts +2 -0
  138. package/dist/sistemasInterativos/validator.js +305 -0
  139. package/dist/sync/index.js +35 -35
  140. package/docs/README.md +34 -28
  141. package/docs/ai-onboarding.md +62 -62
  142. package/docs/ai-workflow.md +9 -4
  143. package/docs/auth.md +26 -26
  144. package/docs/cli.md +79 -79
  145. package/docs/commands.md +47 -2
  146. package/docs/database.md +15 -15
  147. package/docs/deploy.md +41 -41
  148. package/docs/descoberta-capacidades.md +106 -0
  149. package/docs/documentation.md +39 -39
  150. package/docs/env.md +16 -16
  151. package/docs/frontend.md +41 -41
  152. package/docs/getting-started.md +57 -57
  153. package/docs/i18n.md +15 -15
  154. package/docs/pipeline-conteudo.md +246 -246
  155. package/docs/profiles.md +54 -45
  156. package/docs/repositories.md +43 -43
  157. package/docs/rollback.md +31 -31
  158. package/docs/security.md +32 -32
  159. package/docs/sistemas-interativos.md +376 -0
  160. package/docs/support.md +8 -8
  161. package/docs/testing.md +51 -35
  162. package/docs/vocabulary.md +29 -29
  163. package/exemplos/agendamento.sema +1 -1
  164. package/exemplos/assinatura.sema +1 -1
  165. package/exemplos/auditoria.sema +1 -1
  166. package/exemplos/autenticacao.sema +1 -1
  167. package/exemplos/author_obra_comum.sema +1 -1
  168. package/exemplos/author_tema_sensivel.sema +1 -1
  169. package/exemplos/automacao.sema +1 -1
  170. package/exemplos/cadastro_usuario.sema +1 -1
  171. package/exemplos/calculadora.sema +1 -1
  172. package/exemplos/crud_simples.sema +1 -1
  173. package/exemplos/estoque.sema +1 -1
  174. package/exemplos/exportacao.sema +1 -1
  175. package/exemplos/fila.sema +1 -1
  176. package/exemplos/integracao_externa.sema +1 -1
  177. package/exemplos/multi_tenant.sema +1 -1
  178. package/exemplos/notificacao.sema +1 -1
  179. package/exemplos/operacao_estrategia.sema +132 -132
  180. package/exemplos/operacao_estrategia_discovery.sema +220 -220
  181. package/exemplos/operacao_estrategia_fluxo.sema +114 -114
  182. package/exemplos/operacao_estrategia_gates.sema +106 -106
  183. package/exemplos/operacao_estrategia_quarentena.sema +133 -133
  184. package/exemplos/operacao_estrategia_rollout.sema +124 -124
  185. package/exemplos/pagamento.sema +1 -1
  186. package/exemplos/pagamento_dominio.sema +1 -1
  187. package/exemplos/pedido.sema +1 -1
  188. package/exemplos/permissao.sema +1 -1
  189. package/exemplos/persistencia_vendor_first.sema +1 -1
  190. package/exemplos/pipeline-conteudo/README.md +44 -44
  191. package/exemplos/pipeline-conteudo/alvos.json +23 -23
  192. package/exemplos/pipeline-conteudo/definicao.json +136 -136
  193. package/exemplos/profile_conversas.sema +165 -165
  194. package/exemplos/profile_game.sema +1 -1
  195. package/exemplos/profile_legal.sema +1 -1
  196. package/exemplos/profile_ops.sema +1 -1
  197. package/exemplos/profile_research.sema +1 -1
  198. package/exemplos/profile_simulation.sema +211 -0
  199. package/exemplos/profile_software.sema +1 -1
  200. package/exemplos/profile_workflow_n8n.sema +1 -1
  201. package/exemplos/relatorio.sema +1 -1
  202. package/exemplos/replica_analitica_erp.sema +1 -1
  203. package/exemplos/sistemas-interativos/README.md +100 -0
  204. package/exemplos/sistemas-interativos/advanced/acceptance-context-evaluate-valid.json +5 -0
  205. package/exemplos/sistemas-interativos/advanced/acceptance-lock-valid.json +16 -0
  206. package/exemplos/sistemas-interativos/advanced/asset-provenance-valid.json +32 -0
  207. package/exemplos/sistemas-interativos/advanced/autonomy-repair-valid.json +93 -0
  208. package/exemplos/sistemas-interativos/advanced/control-run-definition-valid.json +78 -0
  209. package/exemplos/sistemas-interativos/advanced/control-run-valid.json +27 -0
  210. package/exemplos/sistemas-interativos/advanced/distributed-workers-valid.json +79 -0
  211. package/exemplos/sistemas-interativos/advanced/editor-state-valid.json +42 -0
  212. package/exemplos/sistemas-interativos/advanced/engine-snapshot-after-valid.json +32 -0
  213. package/exemplos/sistemas-interativos/advanced/engine-snapshot-before-valid.json +23 -0
  214. package/exemplos/sistemas-interativos/advanced/job-orchestration-valid.json +39 -0
  215. package/exemplos/sistemas-interativos/advanced/multimodal-evidence-valid.json +46 -0
  216. package/exemplos/sistemas-interativos/advanced/multiplayer-authority-valid.json +39 -0
  217. package/exemplos/sistemas-interativos/advanced/playtest-fuzz-valid.json +37 -0
  218. package/exemplos/sistemas-interativos/advanced/portability-valid.json +104 -0
  219. package/exemplos/sistemas-interativos/advanced/temporal-evidence-valid.json +27 -0
  220. package/exemplos/sistemas-interativos/advanced/temporal-valid.json +118 -0
  221. package/exemplos/sistemas-interativos/experience-ir-valid.json +459 -0
  222. package/exemplos/sistemas-interativos/game-2d.json +83 -0
  223. package/exemplos/sistemas-interativos/game-3d-human.json +81 -0
  224. package/exemplos/sistemas-interativos/game-pixel-16-bit.json +97 -0
  225. package/exemplos/sistemas-interativos/game-pixel-8-bit.json +94 -0
  226. package/exemplos/sistemas-interativos/game-xr-human.json +80 -0
  227. package/exemplos/sistemas-interativos/hybrid-2-5d.json +108 -0
  228. package/exemplos/sistemas-interativos/protocol-mutating-rollback-valid.json +75 -0
  229. package/exemplos/sistemas-interativos/protocol-read-only-valid.json +58 -0
  230. package/exemplos/sistemas-interativos/simulation-2d-controlled.json +97 -0
  231. package/exemplos/sistemas-interativos/simulation-3d-calibrated-autonomous.json +141 -0
  232. package/exemplos/sistemas-interativos/simulation-headless-autonomous-batch.json +112 -0
  233. package/exemplos/sistemas-interativos/simulation-pixel-16-bit.json +103 -0
  234. package/exemplos/sistemas-interativos/simulation-text-controlled.json +95 -0
  235. package/exemplos/testes_embutidos.sema +1 -1
  236. package/exemplos/tratamento_erro.sema +1 -1
  237. package/exemplos/upload_arquivo.sema +1 -1
  238. package/exemplos/webhook.sema +1 -1
  239. package/node_modules/@sema/gerador-cpp/dist/index.js +176 -176
  240. package/node_modules/@sema/gerador-cpp/package.json +1 -1
  241. package/node_modules/@sema/gerador-css/dist/index.part01.js +10 -10
  242. package/node_modules/@sema/gerador-css/dist/index.part02.js +460 -460
  243. package/node_modules/@sema/gerador-dotnet/dist/index.js +169 -169
  244. package/node_modules/@sema/gerador-dotnet/package.json +1 -1
  245. package/node_modules/@sema/gerador-html/dist/index.js +17 -17
  246. package/node_modules/@sema/gerador-lua/dist/index.js +76 -47
  247. package/node_modules/@sema/gerador-lua/dist/index.js.map +1 -1
  248. package/node_modules/@sema/gerador-php/dist/index.js +113 -113
  249. package/node_modules/@sema/gerador-python/dist/index.part02.js +3 -3
  250. package/node_modules/@sema/gerador-typescript/dist/index.part02.js +11 -11
  251. package/node_modules/@sema/nucleo/dist/diagnosticos/melhorador.js +42 -42
  252. package/package.json +3 -3
@@ -1,124 +1,124 @@
1
- module exemplos.operacao_estrategia.rollout {
2
- docs {
3
- resumo: "Task oficial para ativar strategy com nova versao de modelo apos aprovacao manual."
4
- }
5
-
6
- enum StatusStrategy {
7
- RASCUNHO,
8
- ATIVA,
9
- QUARENTENA,
10
- DESATIVADA
11
- }
12
-
13
- enum StatusGate {
14
- ABERTO,
15
- FECHADO
16
- }
17
-
18
- task ativar_strategy_com_nova_versao {
19
- docs {
20
- resumo: "Promove a versao candidata aprovada e reabre a strategy so quando houver aprovacao manual e gate global devidamente controlado."
21
- }
22
- input {
23
- strategy_id: Id required
24
- versao_modelo_ativa: Texto required
25
- versao_modelo_candidata: Texto required
26
- strategy_status_atual: StatusStrategy required
27
- gate_global_atual: StatusGate required
28
- aprovacao_manual: Booleano required
29
- }
30
- output {
31
- strategy_status: StatusStrategy
32
- gate_global: StatusGate
33
- versao_modelo_ativa: Texto
34
- }
35
- authz {
36
- escopo: strategy.rollout.ativar
37
- tenant: obrigatorio
38
- }
39
- dados {
40
- classificacao_padrao: interno
41
- redacao_log: obrigatoria
42
- input {
43
- strategy_id: interno
44
- versao_modelo_ativa: interno
45
- versao_modelo_candidata: interno
46
- strategy_status_atual: interno
47
- gate_global_atual: interno
48
- aprovacao_manual: interno
49
- }
50
- output {
51
- strategy_status: interno
52
- gate_global: interno
53
- versao_modelo_ativa: interno
54
- }
55
- }
56
- audit {
57
- evento: strategy.rollout.ativado
58
- ator: sistema.strategy
59
- correlacao: request_id
60
- retencao: "180d"
61
- motivo: obrigatorio
62
- }
63
- forbidden {
64
- shell.exec
65
- log.segredo
66
- retorno.credencial
67
- }
68
- rules {
69
- strategy_id existe
70
- versao_modelo_ativa existe
71
- versao_modelo_candidata existe
72
- strategy_status_atual em [RASCUNHO, QUARENTENA]
73
- gate_global_atual == FECHADO
74
- aprovacao_manual == verdadeiro
75
- }
76
- effects {
77
- persistencia strategy criticidade = alta
78
- evento strategy_ativada criticidade = alta
79
- auditoria rollout criticidade = alta
80
- }
81
- vinculos {
82
- tabela: strategy
83
- recurso: model_registry
84
- evento: strategy_ativada
85
- }
86
- execucao {
87
- idempotencia: verdadeiro
88
- timeout: "15s"
89
- retry: "nenhum"
90
- compensacao: "reverter_para_versao_modelo_ativa_anterior"
91
- criticidade_operacional: alta
92
- }
93
- state governanca_estrategia {
94
- transitions {
95
- QUARENTENA -> ATIVA
96
- RASCUNHO -> ATIVA
97
- }
98
- }
99
- guarantees {
100
- strategy_status == ATIVA
101
- gate_global == ABERTO
102
- versao_modelo_ativa existe
103
- }
104
- tests {
105
- caso "reativa strategy apos aprovacao do novo modelo" {
106
- given {
107
- strategy_id: "strategy_alpha"
108
- versao_modelo_ativa: "modelo_2026_12"
109
- versao_modelo_candidata: "modelo_2026_13"
110
- strategy_status_atual: "QUARENTENA"
111
- gate_global_atual: "FECHADO"
112
- aprovacao_manual: verdadeiro
113
- }
114
-
115
- expect {
116
- sucesso: verdadeiro
117
- strategy_status: "ATIVA"
118
- gate_global: "ABERTO"
119
- versao_modelo_ativa: "modelo_2026_13"
120
- }
121
- }
122
- }
123
- }
124
- }
1
+ module exemplos.operacao_estrategia.rollout {
2
+ docs {
3
+ resumo: "Task oficial para ativar strategy com nova versao de modelo apos aprovacao manual."
4
+ }
5
+
6
+ enum StatusStrategy {
7
+ RASCUNHO,
8
+ ATIVA,
9
+ QUARENTENA,
10
+ DESATIVADA
11
+ }
12
+
13
+ enum StatusGate {
14
+ ABERTO,
15
+ FECHADO
16
+ }
17
+
18
+ task ativar_strategy_com_nova_versao {
19
+ docs {
20
+ resumo: "Promove a versao candidata aprovada e reabre a strategy so quando houver aprovacao manual e gate global devidamente controlado."
21
+ }
22
+ input {
23
+ strategy_id: Id required
24
+ versao_modelo_ativa: Texto required
25
+ versao_modelo_candidata: Texto required
26
+ strategy_status_atual: StatusStrategy required
27
+ gate_global_atual: StatusGate required
28
+ aprovacao_manual: Booleano required
29
+ }
30
+ output {
31
+ strategy_status: StatusStrategy
32
+ gate_global: StatusGate
33
+ versao_modelo_ativa: Texto
34
+ }
35
+ authz {
36
+ escopo: strategy.rollout.ativar
37
+ tenant: obrigatorio
38
+ }
39
+ dados {
40
+ classificacao_padrao: interno
41
+ redacao_log: obrigatoria
42
+ input {
43
+ strategy_id: interno
44
+ versao_modelo_ativa: interno
45
+ versao_modelo_candidata: interno
46
+ strategy_status_atual: interno
47
+ gate_global_atual: interno
48
+ aprovacao_manual: interno
49
+ }
50
+ output {
51
+ strategy_status: interno
52
+ gate_global: interno
53
+ versao_modelo_ativa: interno
54
+ }
55
+ }
56
+ audit {
57
+ evento: strategy.rollout.ativado
58
+ ator: sistema.strategy
59
+ correlacao: request_id
60
+ retencao: "180d"
61
+ motivo: obrigatorio
62
+ }
63
+ forbidden {
64
+ shell.exec
65
+ log.segredo
66
+ retorno.credencial
67
+ }
68
+ rules {
69
+ strategy_id existe
70
+ versao_modelo_ativa existe
71
+ versao_modelo_candidata existe
72
+ strategy_status_atual em [RASCUNHO, QUARENTENA]
73
+ gate_global_atual == FECHADO
74
+ aprovacao_manual == verdadeiro
75
+ }
76
+ effects {
77
+ persistencia strategy criticidade = alta
78
+ evento strategy_ativada criticidade = alta
79
+ auditoria rollout criticidade = alta
80
+ }
81
+ vinculos {
82
+ tabela: strategy
83
+ recurso: model_registry
84
+ evento: strategy_ativada
85
+ }
86
+ execucao {
87
+ idempotencia: verdadeiro
88
+ timeout: "15s"
89
+ retry: "nenhum"
90
+ compensacao: "reverter_para_versao_modelo_ativa_anterior"
91
+ criticidade_operacional: alta
92
+ }
93
+ state governanca_estrategia {
94
+ transitions {
95
+ QUARENTENA -> ATIVA
96
+ RASCUNHO -> ATIVA
97
+ }
98
+ }
99
+ guarantees {
100
+ strategy_status == ATIVA
101
+ gate_global == ABERTO
102
+ versao_modelo_ativa existe
103
+ }
104
+ tests {
105
+ caso "reativa strategy apos aprovacao do novo modelo" {
106
+ given {
107
+ strategy_id: "strategy_alpha"
108
+ versao_modelo_ativa: "modelo_2026_12"
109
+ versao_modelo_candidata: "modelo_2026_13"
110
+ strategy_status_atual: "QUARENTENA"
111
+ gate_global_atual: "FECHADO"
112
+ aprovacao_manual: verdadeiro
113
+ }
114
+
115
+ expect {
116
+ sucesso: verdadeiro
117
+ strategy_status: "ATIVA"
118
+ gate_global: "ABERTO"
119
+ versao_modelo_ativa: "modelo_2026_13"
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
@@ -431,4 +431,4 @@ module exemplos.pagamento {
431
431
  timeout_gateway: "Erro publico quando o gateway nao responde."
432
432
  }
433
433
  }
434
- }
434
+ }
@@ -32,4 +32,4 @@ module exemplos.pagamento.dominio {
32
32
  PENDENTE -> RECUSADO
33
33
  }
34
34
  }
35
- }
35
+ }
@@ -252,4 +252,4 @@ module exemplos.pedido {
252
252
  auditoria fluxo_aprovacao_pedido criticidade = alta
253
253
  }
254
254
  }
255
- }
255
+ }
@@ -118,4 +118,4 @@ module exemplos.permissao {
118
118
  }
119
119
  }
120
120
  }
121
- }
121
+ }
@@ -83,4 +83,4 @@ module exemplos.persistencia.vendor_first {
83
83
  retention: 300s
84
84
  }
85
85
  }
86
- }
86
+ }
@@ -1,44 +1,44 @@
1
- # Content pipeline example
2
-
3
- This fixture proves that the pipeline core is independent from a platform,
4
- brand, or media type. One definition creates a global editorial core and two
5
- isolated target branches: a long-form document and a spoken audio episode.
6
- The same AI-native plan can add any number of channels and formats without
7
- making this experience the only delivery path.
8
-
9
- Definition v1 declares exactly one output per stage. Each stage also selects an
10
- `adapterPolicy`: `NONE`, `CONSTRAINTS`, or `CONFIRMATION`. Constraint gates are
11
- satisfied only by independently signed observations bound to the produced
12
- artifact, including an independently observed media type; producer metadata
13
- is not evidence of its own correctness.
14
-
15
- ```bash
16
- sema conteudo validar exemplos/pipeline-conteudo/definicao.json --json
17
- sema conteudo planejar exemplos/pipeline-conteudo/definicao.json --alvos-arquivo exemplos/pipeline-conteudo/alvos.json --json
18
- ```
19
-
20
- The example intentionally contains no private keys, signed policy, trust pins,
21
- ledger checkpoint, or signed events. In a live run, an authorized policy
22
- authority must sign a policy bound to the execution and complete target set
23
- through `runId` and `targetSetDigest`, with explicit `issuedAt` and `expiresAt`
24
- authorization bounds. Every event must be recorded within that interval, and
25
- every append also supplies that policy envelope. Keep the
26
- trust-root digest, current `revocationDigest`, and
27
- required `expectedHead` outside the runner-controlled workspace. Generate
28
- events in independently controlled producer, evaluator, and adapter processes;
29
- never commit production private keys to a Sema workspace. The adapter's
30
- `requiredMetadata + optionalMetadata` is the exact scalar public allowlist;
31
- artifact metadata is unavailable in v1. The runner resolves credentials
32
- externally from a strict `account:<alias>` reference.
33
-
34
- Every gate declares separate deterministic-attester and semantic-AI quorums.
35
- Use `content.evidence.attest:<evidenceType>` for ordinary attestations. Adapter
36
- observations use the stricter
37
- `content.adapter.attest:<adapterId>@<version>:<evidenceType>` capability and
38
- signed adapter/version binding; a generic receipt capability is intentionally
39
- insufficient.
40
-
41
- The runner executes and resumes work from Sema's derived `nextActions`. It does
42
- not calculate verdicts or edit completion state. Operational conditions remain
43
- separate from gate verdicts, and every generated manifest is a non-authoritative
44
- projection of the canonical ledger. There is no native human-review fallback.
1
+ # Content pipeline example
2
+
3
+ This fixture proves that the pipeline core is independent from a platform,
4
+ brand, or media type. One definition creates a global editorial core and two
5
+ isolated target branches: a long-form document and a spoken audio episode.
6
+ The same AI-native plan can add any number of channels and formats without
7
+ making this experience the only delivery path.
8
+
9
+ Definition v1 declares exactly one output per stage. Each stage also selects an
10
+ `adapterPolicy`: `NONE`, `CONSTRAINTS`, or `CONFIRMATION`. Constraint gates are
11
+ satisfied only by independently signed observations bound to the produced
12
+ artifact, including an independently observed media type; producer metadata
13
+ is not evidence of its own correctness.
14
+
15
+ ```bash
16
+ sema conteudo validar exemplos/pipeline-conteudo/definicao.json --json
17
+ sema conteudo planejar exemplos/pipeline-conteudo/definicao.json --alvos-arquivo exemplos/pipeline-conteudo/alvos.json --json
18
+ ```
19
+
20
+ The example intentionally contains no private keys, signed policy, trust pins,
21
+ ledger checkpoint, or signed events. In a live run, an authorized policy
22
+ authority must sign a policy bound to the execution and complete target set
23
+ through `runId` and `targetSetDigest`, with explicit `issuedAt` and `expiresAt`
24
+ authorization bounds. Every event must be recorded within that interval, and
25
+ every append also supplies that policy envelope. Keep the
26
+ trust-root digest, current `revocationDigest`, and
27
+ required `expectedHead` outside the runner-controlled workspace. Generate
28
+ events in independently controlled producer, evaluator, and adapter processes;
29
+ never commit production private keys to a Sema workspace. The adapter's
30
+ `requiredMetadata + optionalMetadata` is the exact scalar public allowlist;
31
+ artifact metadata is unavailable in v1. The runner resolves credentials
32
+ externally from a strict `account:<alias>` reference.
33
+
34
+ Every gate declares separate deterministic-attester and semantic-AI quorums.
35
+ Use `content.evidence.attest:<evidenceType>` for ordinary attestations. Adapter
36
+ observations use the stricter
37
+ `content.adapter.attest:<adapterId>@<version>:<evidenceType>` capability and
38
+ signed adapter/version binding; a generic receipt capability is intentionally
39
+ insufficient.
40
+
41
+ The runner executes and resumes work from Sema's derived `nextActions`. It does
42
+ not calculate verdicts or edit completion state. Operational conditions remain
43
+ separate from gate verdicts, and every generated manifest is a non-authoritative
44
+ projection of the canonical ledger. There is no native human-review fallback.
@@ -1,23 +1,23 @@
1
- [
2
- {
3
- "targetId": "documento-principal",
4
- "adapterId": "destination.document",
5
- "accountScope": "account:publisher.site-a",
6
- "formatProfileId": "long-form",
7
- "locale": "pt-BR",
8
- "metadata": {
9
- "title": "Exemplo de conteúdo multiformato"
10
- }
11
- },
12
- {
13
- "targetId": "episodio-audio",
14
- "adapterId": "destination.audio-feed",
15
- "accountScope": "account:publisher.feed-a",
16
- "formatProfileId": "spoken-episode",
17
- "locale": "pt-BR",
18
- "metadata": {
19
- "title": "Exemplo de conteúdo multiformato",
20
- "description": "A mesma intenção editorial em um destino de áudio independente."
21
- }
22
- }
23
- ]
1
+ [
2
+ {
3
+ "targetId": "documento-principal",
4
+ "adapterId": "destination.document",
5
+ "accountScope": "account:publisher.site-a",
6
+ "formatProfileId": "long-form",
7
+ "locale": "pt-BR",
8
+ "metadata": {
9
+ "title": "Exemplo de conteúdo multiformato"
10
+ }
11
+ },
12
+ {
13
+ "targetId": "episodio-audio",
14
+ "adapterId": "destination.audio-feed",
15
+ "accountScope": "account:publisher.feed-a",
16
+ "formatProfileId": "spoken-episode",
17
+ "locale": "pt-BR",
18
+ "metadata": {
19
+ "title": "Exemplo de conteúdo multiformato",
20
+ "description": "A mesma intenção editorial em um destino de áudio independente."
21
+ }
22
+ }
23
+ ]