Carlexxx commited on
Commit
b5023f2
·
1 Parent(s): 04bd839

feat: Implement self-contained specialist managers

Browse files
LICENSE ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Euia-AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR para geração de vídeo coerente.
2
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
3
+ #
4
+ # Contato:
5
+ # Carlos Rodrigues dos Santos
6
+ # carlex22@gmail.com
7
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
8
+ #
9
+ # Repositórios e Projetos Relacionados:
10
+ # GitHub: https://github.com/carlex22/Aduc-sdr
11
+ # Hugging Face (Ltx-SuperTime-60Secondos): https://huggingface.co/spaces/Carlexx/Ltx-SuperTime-60Secondos/
12
+ # Hugging Face (Novinho): https://huggingface.co/spaces/Carlexxx/Novinho/
13
+ #
14
+ # This program is free software: you can redistribute it and/or modify
15
+ # it under the terms of the GNU Affero General Public License as published by
16
+ # the Free Software Foundation, either version 3 of the License, or
17
+ # (at your option) any later version.
18
+ #
19
+ # This program is distributed in the hope that it will be useful,
20
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ # GNU Affero General Public License for more details.
23
+ #
24
+ # You should have received a copy of the GNU Affero General Public License
25
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
aduc_orchestrator.py CHANGED
@@ -1,6 +1,31 @@
1
  # aduc_orchestrator.py
 
 
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  #
5
  # Version: 2.1.1
6
  #
 
1
  # aduc_orchestrator.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as published by
15
+ # the Free Software Foundation, either version 3 of the License, or
16
+ # (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
25
+ #
26
+ # This program is free software: you can redistribute it and/or modify
27
+ # it under the terms of the GNU Affero General Public License...
28
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
29
  #
30
  # Version: 2.1.1
31
  #
aduc_types.py CHANGED
@@ -1,6 +1,31 @@
1
  # aduc_types.py
 
 
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  #
5
  # Version: 1.0.0
6
  #
 
1
  # aduc_types.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as published by
15
+ # the Free Software Foundation, either version 3 of the License, or
16
+ # (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
25
+ #
26
+ # This program is free software: you can redistribute it and/or modify
27
+ # it under the terms of the GNU Affero General Public License...
28
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
29
  #
30
  # Version: 1.0.0
31
  #
engineers/LICENSE ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR para geração de vídeo coerente.
2
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
3
+ #
4
+ # Contato:
5
+ # Carlos Rodrigues dos Santos
6
+ # carlex22@gmail.com
7
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
8
+ #
9
+ # Repositórios e Projetos Relacionados:
10
+ # GitHub: https://github.com/carlex22/Aduc-sdr
11
+ #
12
+ # This program is free software: you can redistribute it and/or modify
13
+ # it under the terms of the GNU Affero General Public License as published by
14
+ # the Free Software Foundation, either version 3 of the License, or
15
+ # (at your option) any later version.
16
+ #
17
+ # This program is distributed in the hope that it will be useful,
18
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ # GNU Affero General Public License for more details.
21
+ #
22
+ # You should have received a copy of the GNU Affero General Public License
23
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
engineers/NOTICE.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NOTICE
2
+
3
+ Copyright (C) 2025 Carlos Rodrigues dos Santos. All rights reserved.
4
+
5
+ ---
6
+
7
+ ## Aviso de Propriedade Intelectual e Licenciamento
8
+
9
+ ### **Processo de Patenteamento em Andamento (EM PORTUGUÊS):**
10
+
11
+ O método e o sistema de orquestração de prompts denominados **ADUC (Automated Discovery and Orchestration of Complex tasks)**, conforme descritos neste documento e implementados neste software, estão atualmente em processo de patenteamento.
12
+
13
+ O titular dos direitos, Carlos Rodrigues dos Santos, está buscando proteção legal para as inovações chave da arquitetura ADUC, incluindo, mas não se limitando a:
14
+
15
+ * Fragmentação e escalonamento de solicitações que excedem limites de contexto de modelos de IA.
16
+ * Distribuição inteligente de sub-tarefas para especialistas heterogêneos.
17
+ * Gerenciamento de estado persistido com avaliação iterativa e realimentação para o planejamento de próximas etapas.
18
+ * Planejamento e roteamento sensível a custo, latência e requisitos de qualidade.
19
+ * O uso de "tokens universais" para comunicação agnóstica a modelos.
20
+
21
+ ### **Reconhecimento e Implicações (EM PORTUGUÊS):**
22
+
23
+ Ao acessar ou utilizar este software e a arquitetura ADUC aqui implementada, você reconhece:
24
+
25
+ 1. A natureza inovadora e a importância da arquitetura ADUC no campo da orquestração de prompts para IA.
26
+ 2. Que a essência desta arquitetura, ou suas implementações derivadas, podem estar sujeitas a direitos de propriedade intelectual, incluindo patentes.
27
+ 3. Que o uso comercial, a reprodução da lógica central da ADUC em sistemas independentes, ou a exploração direta da invenção sem o devido licenciamento podem infringir os direitos de patente pendente.
28
+
29
+ ---
30
+
31
+ ### **Patent Pending (IN ENGLISH):**
32
+
33
+ The method and system for prompt orchestration named **ADUC (Automated Discovery and Orchestration of Complex tasks)**, as described herein and implemented in this software, are currently in the process of being patented.
34
+
35
+ The rights holder, Carlos Rodrigues dos Santos, is seeking legal protection for the key innovations of the ADUC architecture, including, but not limited to:
36
+
37
+ * Fragmentation and scaling of requests exceeding AI model context limits.
38
+ * Intelligent distribution of sub-tasks to heterogeneous specialists.
39
+ * Persistent state management with iterative evaluation and feedback for planning subsequent steps.
40
+ * Cost, latency, and quality-aware planning and routing.
41
+ * The use of "universal tokens" for model-agnostic communication.
42
+
43
+ ### **Acknowledgement and Implications (IN ENGLISH):**
44
+
45
+ By accessing or using this software and the ADUC architecture implemented herein, you acknowledge:
46
+
47
+ 1. The innovative nature and significance of the ADUC architecture in the field of AI prompt orchestration.
48
+ 2. That the essence of this architecture, or its derivative implementations, may be subject to intellectual property rights, including patents.
49
+ 3. That commercial use, reproduction of ADUC's core logic in independent systems, or direct exploitation of the invention without proper licensing may infringe upon pending patent rights.
50
+
51
+ ---
52
+
53
+ ## Licença AGPLv3
54
+
55
+ This program is free software: you can redistribute it and/or modify
56
+ it under the terms of the GNU Affero General Public License as published by
57
+ the Free Software Foundation, either version 3 of the License, or
58
+ (at your option) any later version.
59
+
60
+ This program is distributed in the hope that it will be useful,
61
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
62
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
63
+ GNU Affero General Public License for more details.
64
+
65
+ You should have received a copy of the GNU Affero General Public License
66
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
67
+
68
+ ---
69
+
70
+ **Contato para Consultas:**
71
+
72
+ Para mais informações sobre a arquitetura ADUC, o status do patenteamento, ou para discutir licenciamento para usos comerciais ou não conformes com a AGPLv3, por favor, entre em contato:
73
+
74
+ Carlos Rodrigues dos Santos
75
+ carlex22@gmail.com
76
+ Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
engineers/README.md ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Euia-AducSdr
3
+ emoji: 🎥
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: gradio
7
+ app_file: app.py
8
+ pinned: true
9
+ license: agpl-3.0
10
+ short_description: Uma implementação aberta e funcional da arquitetura ADUC-SDR
11
+ ---
12
+
13
+
14
+ ### 🇧🇷 Português
15
+
16
+ Uma implementação aberta e funcional da arquitetura ADUC-SDR (Arquitetura de Unificação Compositiva - Escala Dinâmica e Resiliente), projetada para a geração de vídeo coerente de longa duração. Este projeto materializa os princípios de fragmentação, navegação geométrica e um mecanismo de "eco causal 4bits memoria" para garantir a continuidade física e narrativa em sequências de vídeo geradas por múltiplos modelos de IA.
17
+
18
+ **Licença:** Este projeto é licenciado sob os termos da **GNU Affero General Public License v3.0**. Isto significa que se você usar este software (ou qualquer trabalho derivado) para fornecer um serviço através de uma rede, você é **obrigado a disponibilizar o código-fonte completo** da sua versão para os usuários desse serviço.
19
+
20
+ - **Copyright (C) 4 de Agosto de 2025, Carlos Rodrigues dos Santos**
21
+ - Uma cópia completa da licença pode ser encontrada no arquivo [LICENSE](LICENSE).
22
+
23
+ ---
24
+
25
+ ### 🇬🇧 English
26
+
27
+ An open and functional implementation of the ADUC-SDR (Architecture for Compositive Unification - Dynamic and Resilient Scaling) architecture, designed for long-form coherent video generation. This project materializes the principles of fragmentation, geometric navigation, and a "causal echo 4bits memori" mechanism to ensure physical and narrative continuity in video sequences generated by multiple AI models.
28
+
29
+ **License:** This project is licensed under the terms of the **GNU Affero General Public License v3.0**. This means that if you use this software (or any derivative work) to provide a service over a network, you are **required to make the complete source code** of your version available to the users of that service.
30
+
31
+ - **Copyright (C) August 4, 2025, Carlos Rodrigues dos Santos**
32
+ - A full copy of the license can be found in the [LICENSE](LICENSE) file.
33
+
34
+ ---
35
+
36
+ ## **Aviso de Propriedade Intelectual e Patenteamento**
37
+
38
+ ### **Processo de Patenteamento em Andamento (EM PORTUGUÊS):**
39
+
40
+ A arquitetura e o método **ADUC (Automated Discovery and Orchestration of Complex tasks)**, conforme descritos neste projeto e nas reivindicações associadas, estão **atualmente em processo de patenteamento**.
41
+
42
+ O titular dos direitos, Carlos Rodrigues dos Santos, está buscando proteção legal para as inovações chave da arquitetura ADUC, que incluem, mas não se limitam a:
43
+
44
+ * Fragmentação e escalonamento de solicitações que excedem limites de contexto de modelos de IA.
45
+ * Distribuição inteligente de sub-tarefas para especialistas heterogêneos.
46
+ * Gerenciamento de estado persistido com avaliação iterativa e realimentação para o planejamento de próximas etapas.
47
+ * Planejamento e roteamento sensível a custo, latência e requisitos de qualidade.
48
+ * O uso de "tokens universais" para comunicação agnóstica a modelos.
49
+
50
+ Ao utilizar este software e a arquitetura ADUC aqui implementada, você reconhece a natureza inovadora desta arquitetura e que a **reprodução ou exploração da lógica central da ADUC em sistemas independentes pode infringir direitos de patente pendente.**
51
+
52
+ ---
53
+
54
+ ### **Patent Pending (IN ENGLISH):**
55
+
56
+ The **ADUC (Automated Discovery and Orchestration of Complex tasks)** architecture and method, as described in this project and its associated claims, are **currently in the process of being patented.**
57
+
58
+ The rights holder, Carlos Rodrigues dos Santos, is seeking legal protection for the key innovations of the ADUC architecture, including, but not limited to:
59
+
60
+ * Fragmentation and scaling of requests exceeding AI model context limits.
61
+ * Intelligent distribution of sub-tasks to heterogeneous specialists.
62
+ * Persistent state management with iterative evaluation and feedback for planning subsequent steps.
63
+ * Cost, latency, and quality-aware planning and routing.
64
+ * The use of "universal tokens" for model-agnostic communication.
65
+
66
+ By using this software and the ADUC architecture implemented herein, you acknowledge the innovative nature of this architecture and that **the reproduction or exploitation of ADUC's core logic in independent systems may infringe upon pending patent rights.**
67
+
68
+ ---
69
+
70
+ ### Detalhes Técnicos e Reivindicações da ADUC
71
+
72
+ #### 🇧🇷 Definição Curta (para Tese e Patente)
73
+
74
+ **ADUC** é um *framework pré-input* e *intermediário* de **gerenciamento de prompts** que:
75
+
76
+ 1. **fragmenta** solicitações acima do limite de contexto de qualquer modelo,
77
+ 2. **escala linearmente** (processo sequencial com memória persistida),
78
+ 3. **distribui** sub-tarefas a **especialistas** (modelos/ferramentas heterogêneos), e
79
+ 4. **realimenta** a próxima etapa com avaliação do que foi feito/esperado (LLM diretor).
80
+
81
+ Não é um modelo; é uma **camada orquestradora** plugável antes do input de modelos existentes (texto, imagem, áudio, vídeo), usando *tokens universais* e a tecnologia atual.
82
+
83
+ #### 🇬🇧 Short Definition (for Thesis and Patent)
84
+
85
+ **ADUC** is a *pre-input* and *intermediate* **prompt management framework** that:
86
+
87
+ 1. **fragments** requests exceeding any model's context limit,
88
+ 2. **scales linearly** (sequential process with persisted memory),
89
+ 3. **distributes** sub-tasks to **specialists** (heterogeneous models/tools), and
90
+ 4. **feeds back** to the next step with an evaluation of what was done/expected (director LLM).
91
+
92
+ It is not a model; it is a pluggable **orchestration layer** before the input of existing models (text, image, audio, video), using *universal tokens* and current technology.
93
+
94
+ ---
95
+
96
+ #### 🇧🇷 Elementos Essenciais (Telegráfico)
97
+
98
+ * **Agnóstico a modelos:** opera com qualquer LLM/difusor/API.
99
+ * **Pré-input manager:** recebe pedido do usuário, **divide** em blocos ≤ limite de tokens, **prioriza**, **agenda** e **roteia**.
100
+ * **Memória persistida:** resultados/latentes/“eco” viram **estado compartilhado** para o próximo bloco (nada é ignorado).
101
+ * **Especialistas:** *routers* decidem quem faz o quê (ex.: “descrição → LLM-A”, “keyframe → Img-B”, “vídeo → Vid-C”).
102
+ * **Controle de qualidade:** LLM diretor compara *o que fez* × *o que deveria* × *o que falta* e **regenera objetivos** do próximo fragmento.
103
+ * **Custo/latência-aware:** planeja pela **VRAM/tempo/custo**, não tenta “abraçar tudo de uma vez”.
104
+
105
+ #### 🇬🇧 Essential Elements (Telegraphic)
106
+
107
+ * **Model-agnostic:** operates with any LLM/diffuser/API.
108
+ * **Pre-input manager:** receives user request, **divides** into blocks ≤ token limit, **prioritizes**, **schedules**, and **routes**.
109
+ * **Persisted memory:** results/latents/“echo” become **shared state** for the next block (nothing is ignored).
110
+ * **Specialists:** *routers* decide who does what (e.g., “description → LLM-A”, “keyframe → Img-B”, “video → Vid-C”).
111
+ * **Quality control:** director LLM compares *what was done* × *what should be done* × *what is missing* and **regenerates objectives** for the next fragment.
112
+ * **Cost/latency-aware:** plans by **VRAM/time/cost**, does not try to “embrace everything at once”.
113
+
114
+ ---
115
+
116
+ #### 🇧🇷 Reivindicações Independentes (Método e Sistema)
117
+
118
+ **Reivindicação Independente (Método) — Versão Enxuta:**
119
+
120
+ 1. **Método** de **orquestração de prompts** para execução de tarefas acima do limite de contexto de modelos de IA, compreendendo:
121
+ (a) **receber** uma solicitação que excede um limite de tokens;
122
+ (b) **analisar** a solicitação por um **LLM diretor** e **fragmentá-la** em sub-tarefas ≤ limite;
123
+ (c) **selecionar** especialistas de execução para cada sub-tarefa com base em capacidades declaradas;
124
+ (d) **gerar** prompts específicos por sub-tarefa em **tokens universais**, incluindo referências ao **estado persistido** de execuções anteriores;
125
+ (e) **executar sequencialmente** as sub-tarefas e **persistir** suas saídas como memória (incluindo latentes/eco/artefatos);
126
+ (f) **avaliar** automaticamente a saída versus metas declaradas e **regenerar objetivos** do próximo fragmento;
127
+ (g) **iterar** (b)–(f) até que os critérios de completude sejam atendidos, produzindo o resultado agregado;
128
+ em que o framework **escala linearmente** no tempo e armazenamento físico, **independente** da janela de contexto dos modelos subjacentes.
129
+
130
+ **Reivindicação Independente (Sistema):**
131
+
132
+ 2. **Sistema** de orquestração de prompts, compreendendo: um **planejador LLM diretor**; um **roteador de especialistas**; um **banco de estado persistido** (incl. memória cinética para vídeo); um **gerador de prompts universais**; e um **módulo de avaliação/realimentação**, acoplados por uma **API pré-input** a modelos heterogêneos.
133
+
134
+ #### 🇬🇧 Independent Claims (Method and System)
135
+
136
+ **Independent Claim (Method) — Concise Version:**
137
+
138
+ 1. A **method** for **prompt orchestration** for executing tasks exceeding AI model context limits, comprising:
139
+ (a) **receiving** a request that exceeds a token limit;
140
+ (b) **analyzing** the request by a **director LLM** and **fragmenting it** into sub-tasks ≤ the limit;
141
+ (c) **selecting** execution specialists for each sub-task based on declared capabilities;
142
+ (d) **generating** specific prompts per sub-task in **universal tokens**, including references to the **persisted state** of previous executions;
143
+ (e) **sequentially executing** the sub-tasks and **persisting** their outputs as memory (including latents/echo/artifacts);
144
+ (f) **automatically evaluating** the output against declared goals and **regenerating objectives** for the next fragment;
145
+ (g) **iterating** (b)–(f) until completion criteria are met, producing the aggregated result;
146
+ wherein the framework **scales linearly** in time and physical storage, **independent** of the context window of the underlying models.
147
+
148
+ **Independent Claim (System):**
149
+
150
+ 2. A prompt orchestration **system**, comprising: a **director LLM planner**; a **specialist router**; a **persisted state bank** (incl. kinetic memory for video); a **universal prompt generator**; and an **evaluation/feedback module**, coupled via a **pre-input API** to heterogeneous models.
151
+
152
+ ---
153
+
154
+ #### 🇧🇷 Dependentes Úteis
155
+
156
+ * (3) Onde o roteamento considera **custo/latência/VRAM** e metas de qualidade.
157
+ * (4) Onde o banco de estado inclui **eco cinético** para vídeo (últimos *n* frames/latentes/fluxo).
158
+ * (5) Onde a avaliação usa métricas específicas por domínio (Lflow, consistência semântica, etc.).
159
+ * (6) Onde *tokens universais* padronizam instruções entre especialistas.
160
+ * (7) Onde a orquestração decide **cut vs continuous** e **corte regenerativo** (Déjà-Vu) ao editar vídeo.
161
+ * (8) Onde o sistema **nunca descarta** conteúdo excedente: **reagenda** em novos fragmentos.
162
+
163
+ #### 🇬🇧 Useful Dependents
164
+
165
+ * (3) Wherein routing considers **cost/latency/VRAM** and quality goals.
166
+ * (4) Wherein the state bank includes **kinetic echo** for video (last *n* frames/latents/flow).
167
+ * (5) Wherein evaluation uses domain-specific metrics (Lflow, semantic consistency, etc.).
168
+ * (6) Wherein *universal tokens* standardize instructions between specialists.
169
+ * (7) Wherein orchestration decides **cut vs continuous** and **regenerative cut** (Déjà-Vu) when editing video.
170
+ * (8) Wherein the system **never discards** excess content: it **reschedules** it in new fragments.
171
+
172
+ ---
173
+
174
+ #### 🇧🇷 Como isso conversa com SDR (Vídeo)
175
+
176
+ * **Eco Cinético**: é um **tipo de estado persistido** consumido pelo próximo passo.
177
+ * **Déjà-Vu (Corte Regenerativo)**: é **uma política de orquestração** aplicada quando há edição; ADUC decide, monta os prompts certos e chama o especialista de vídeo.
178
+ * **Cut vs Continuous**: decisão do **diretor** com base em estado + metas; ADUC roteia e garante a sobreposição/remoção final.
179
+
180
+ #### 🇬🇧 How this Converses with SDR (Video)
181
+
182
+ * **Kinetic Echo**: is a **type of persisted state** consumed by the next step.
183
+ * **Déjà-Vu (Regenerative Cut)**: is an **orchestration policy** applied during editing; ADUC decides, crafts the right prompts, and calls the video specialist.
184
+ * **Cut vs Continuous**: decision made by the **director** based on state + goals; ADUC routes and ensures the final overlap/removal.
185
+
186
+ ---
187
+
188
+ #### 🇧🇷 Mensagem Clara ao Usuário (Experiência)
189
+
190
+ > “Seu pedido excede o limite X do modelo Y. Em vez de truncar silenciosamente, o **ADUC** dividirá e **entregará 100%** do conteúdo por etapas coordenadas.”
191
+
192
+ Isso é diferencial prático e jurídico: **não-obviedade** por transformar limite de contexto em **pipeline controlado**, com **persistência de estado** e **avaliação iterativa**.
193
+
194
+ #### 🇬🇧 Clear User Message (Experience)
195
+
196
+ > "Your request exceeds model Y's limit X. Instead of silently truncating, **ADUC** will divide and **deliver 100%** of the content through coordinated steps."
197
+
198
+ This is a practical and legal differentiator: **non-obviousness** by transforming context limits into a **controlled pipeline**, with **state persistence** and **iterative evaluation**.
199
+
200
+ ---
201
+
202
+ ### Contact / Contato / Contacto
203
+
204
+ - **Author / Autor:** Carlos Rodrigues dos Santos
205
+ - **Email:** carlex22@gmail.com
206
+ - **GitHub:** [https://github.com/carlex22/Aduc-sdr](https://github.com/carlex22/Aduc-sdr)
207
+ - **Hugging Face Spaces:**
208
+ - [Ltx-SuperTime-60Secondos](https://huggingface.co/spaces/Carlexx/Ltx-SuperTime-60Secondos/)
209
+ - [Novinho](https://huggingface.co/spaces/Carlexxx/Novinho/)
210
+
211
+ ---
engineers/deformes2D_thinker.py CHANGED
@@ -1,14 +1,33 @@
1
  # engineers/deformes2D_thinker.py
 
 
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
 
 
4
  #
5
- # Version: 1.0.1
 
6
  #
7
- # This file defines the Deformes2DThinker, the primary cognitive engine of the
8
- # ADUC framework. It encapsulates all prompt engineering and creative decision-making
9
- # logic. This version corrects the method calls to the GeminiManager, ensuring that
10
- # all prompt components are assembled into a single list before being passed to the
11
- # communication layer.
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  import logging
14
  from pathlib import Path
 
1
  # engineers/deformes2D_thinker.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
  #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
  #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as published by
15
+ # the Free Software Foundation, either version 3 of the License, or
16
+ # (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
25
+ #
26
+ # This program is free software: you can redistribute it and/or modify
27
+ # it under the terms of the GNU Affero General Public License...
28
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
29
+ #
30
+ # Version 1.0.1
31
 
32
  import logging
33
  from pathlib import Path
engineers/deformes3D.py CHANGED
@@ -1,12 +1,33 @@
1
  # engineers/deformes3D.py
 
 
2
  #
3
- # Copyright (C) 2025 Carlos Rodrigues dos Santos
 
 
 
4
  #
5
- # Version: 1.1.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  #
7
  # This program is free software: you can redistribute it and/or modify
8
  # it under the terms of the GNU Affero General Public License...
9
  # PENDING PATENT NOTICE: Please see NOTICE.md.
 
 
10
 
11
  from PIL import Image
12
  import os
 
1
  # engineers/deformes3D.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
  #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as published by
15
+ # the Free Software Foundation, either version 3 of the License, or
16
+ # (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
25
  #
26
  # This program is free software: you can redistribute it and/or modify
27
  # it under the terms of the GNU Affero General Public License...
28
  # PENDING PATENT NOTICE: Please see NOTICE.md.
29
+ #
30
+ # Version 1.4.5
31
 
32
  from PIL import Image
33
  import os
engineers/deformes4D.py CHANGED
@@ -1,13 +1,34 @@
1
  # engineers/deformes4D.py
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
4
  #
5
- # Version: 2.2.0
 
 
 
6
  #
7
- # This file contains the Deformes4D Engine, which acts as the primary "Editor" or
8
- # "Film Crew" specialist within the ADUC-SDR architecture. It implements the Camera (Ψ)
9
- # and Distiller (Δ) concepts. Its core responsibilities include the low-level orchestration
10
- # of video fragment generation, latent manipulation, and final rendering/post-production tasks.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  import os
13
  import time
 
1
  # engineers/deformes4D.py
2
  #
3
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
4
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
5
  #
6
+ # Contato:
7
+ # Carlos Rodrigues dos Santos
8
+ # carlex22@gmail.com
9
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
10
  #
11
+ # Repositórios e Projetos Relacionados:
12
+ # GitHub: https://github.com/carlex22/Aduc-sdr
13
+ #
14
+ # This program is free software: you can redistribute it and/or modify
15
+ # it under the terms of the GNU Affero General Public License as published by
16
+ # the Free Software Foundation, either version 3 of the License, or
17
+ # (at your option) any later version.
18
+ #
19
+ # This program is distributed in the hope that it will be useful,
20
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ # GNU Affero General Public License for more details.
23
+ #
24
+ # You should have received a copy of the GNU Affero General Public License
25
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
26
+ #
27
+ # This program is free software: you can redistribute it and/or modify
28
+ # it under the terms of the GNU Affero General Public License...
29
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
30
+ #
31
+ # Version 2.0.1
32
 
33
  import os
34
  import time
managers/LICENSE ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Euia-AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR para geração de vídeo coerente.
2
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
3
+ #
4
+ # Contato:
5
+ # Carlos Rodrigues dos Santos
6
+ # carlex22@gmail.com
7
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
8
+ #
9
+ # Repositórios e Projetos Relacionados:
10
+ # GitHub: https://github.com/carlex22/Aduc-sdr
11
+ # Hugging Face (Ltx-SuperTime-60Secondos): https://huggingface.co/spaces/Carlexx/Ltx-SuperTime-60Secondos/
12
+ # Hugging Face (Novinho): https://huggingface.co/spaces/Carlexxx/Novinho/
13
+ #
14
+ # This program is free software: you can redistribute it and/or modify
15
+ # it under the terms of the GNU Affero General Public License as published by
16
+ # the Free Software Foundation, either version 3 of the License, or
17
+ # (at your option) any later version.
18
+ #
19
+ # This program is distributed in the hope that it will be useful,
20
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ # GNU Affero General Public License for more details.
23
+ #
24
+ # You should have received a copy of the GNU Affero General Public License
25
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
managers/LICENSE.txt ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
managers/NOTICE.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NOTICE
2
+
3
+ Copyright (C) 2025 Carlos Rodrigues dos Santos. All rights reserved.
4
+
5
+ ---
6
+
7
+ ## Aviso de Propriedade Intelectual e Licenciamento
8
+
9
+ ### **Processo de Patenteamento em Andamento (EM PORTUGUÊS):**
10
+
11
+ O método e o sistema de orquestração de prompts denominados **ADUC (Automated Discovery and Orchestration of Complex tasks)**, conforme descritos neste documento e implementados neste software, estão atualmente em processo de patenteamento.
12
+
13
+ O titular dos direitos, Carlos Rodrigues dos Santos, está buscando proteção legal para as inovações chave da arquitetura ADUC, incluindo, mas não se limitando a:
14
+
15
+ * Fragmentação e escalonamento de solicitações que excedem limites de contexto de modelos de IA.
16
+ * Distribuição inteligente de sub-tarefas para especialistas heterogêneos.
17
+ * Gerenciamento de estado persistido com avaliação iterativa e realimentação para o planejamento de próximas etapas.
18
+ * Planejamento e roteamento sensível a custo, latência e requisitos de qualidade.
19
+ * O uso de "tokens universais" para comunicação agnóstica a modelos.
20
+
21
+ ### **Reconhecimento e Implicações (EM PORTUGUÊS):**
22
+
23
+ Ao acessar ou utilizar este software e a arquitetura ADUC aqui implementada, você reconhece:
24
+
25
+ 1. A natureza inovadora e a importância da arquitetura ADUC no campo da orquestração de prompts para IA.
26
+ 2. Que a essência desta arquitetura, ou suas implementações derivadas, podem estar sujeitas a direitos de propriedade intelectual, incluindo patentes.
27
+ 3. Que o uso comercial, a reprodução da lógica central da ADUC em sistemas independentes, ou a exploração direta da invenção sem o devido licenciamento podem infringir os direitos de patente pendente.
28
+
29
+ ---
30
+
31
+ ### **Patent Pending (IN ENGLISH):**
32
+
33
+ The method and system for prompt orchestration named **ADUC (Automated Discovery and Orchestration of Complex tasks)**, as described herein and implemented in this software, are currently in the process of being patented.
34
+
35
+ The rights holder, Carlos Rodrigues dos Santos, is seeking legal protection for the key innovations of the ADUC architecture, including, but not limited to:
36
+
37
+ * Fragmentation and scaling of requests exceeding AI model context limits.
38
+ * Intelligent distribution of sub-tasks to heterogeneous specialists.
39
+ * Persistent state management with iterative evaluation and feedback for planning subsequent steps.
40
+ * Cost, latency, and quality-aware planning and routing.
41
+ * The use of "universal tokens" for model-agnostic communication.
42
+
43
+ ### **Acknowledgement and Implications (IN ENGLISH):**
44
+
45
+ By accessing or using this software and the ADUC architecture implemented herein, you acknowledge:
46
+
47
+ 1. The innovative nature and significance of the ADUC architecture in the field of AI prompt orchestration.
48
+ 2. That the essence of this architecture, or its derivative implementations, may be subject to intellectual property rights, including patents.
49
+ 3. That commercial use, reproduction of ADUC's core logic in independent systems, or direct exploitation of the invention without proper licensing may infringe upon pending patent rights.
50
+
51
+ ---
52
+
53
+
54
+ **Contato para Consultas:**
55
+
56
+ Para mais informações sobre a arquitetura ADUC, o status do patenteamento, ou para discutir licenciamento para usos comerciais ou não conformes com a AGPLv3, por favor, entre em contato:
57
+
58
+ Carlos Rodrigues dos Santos
59
+ carlex22@gmail.com
60
+ Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
managers/README.md ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 🛠️ managers/ - Ferramentas de IA de Terceiros para orquestração ADUC-SDR
2
+
3
+ Esta pasta contém implementações adaptadas de modelos e utilitários de IA de terceiros, que servem como "especialistas" ou "ferramentas" de baixo nível para a arquitetura ADUC-SDR.
4
+
5
+ **IMPORTANTE:** O conteúdo desta pasta é de autoria de seus respectivos idealizadores e desenvolvedores originais. Esta pasta **NÃO FAZ PARTE** do projeto principal ADUC-SDR em termos de sua arquitetura inovadora. Ela serve como um repositório para as **dependências diretas e modificadas** que os `Deformes enginers` (os estágios do "foguete" ADUC-SDR) invocam para realizar tarefas específicas (geração de imagem, vídeo, áudio).
6
+
7
+ As modificações realizadas nos arquivos aqui presentes visam principalmente:
8
+ 1. **Adaptação de Interfaces:** Padronizar as interfaces para que se encaixem no fluxo de orquestração do ADUC-SDR.
9
+ 2. **Gerenciamento de Recursos:** Integrar lógicas de carregamento/descarregamento de modelos (GPU management) e configurações via arquivos YAML.
10
+ 3. **Otimização de Fluxo:** Ajustar as pipelines para aceitar formatos de entrada mais eficientes (ex: tensores pré-codificados em vez de caminhos de mídia, pulando etapas de codificação/decodificação redundantes).
11
+
12
+ ---
13
+
14
+ ## 📄 Licenciamento
15
+
16
+ O conteúdo original dos projetos listados abaixo é licenciado sob a **Licença Apache 2.0**, ou outra licença especificada pelos autores originais. Todas as modificações e o uso desses arquivos dentro da estrutura `helpers/` do projeto ADUC-SDR estão em conformidade com os termos da **Licença Apache 2.0**.
17
+
18
+ As licenças originais dos projetos podem ser encontradas nas suas respectivas fontes ou nos subdiretórios `incl_licenses/` dentro de cada módulo adaptado.
19
+
20
+ ---
21
+
22
+ ## 🛠️ API dos Helpers e Guia de Uso
23
+
24
+ Esta seção detalha como cada helper (agente especialista) deve ser utilizado dentro do ecossistema ADUC-SDR. Todos os agentes são instanciados como **singletons** no `hardware_manager.py` para garantir o gerenciamento centralizado de recursos de GPU.
25
+
26
+ ### **gemini_helpers.py (GeminiAgent)**
27
+
28
+ * **Propósito:** Atua como o "Oráculo de Síntese Adaptativo", responsável por todas as tarefas de processamento de linguagem natural, como criação de storyboards, geração de prompts, e tomada de decisões narrativas.
29
+ * **Singleton Instance:** `gemini_agent_singleton`
30
+ * **Construtor:** `GeminiAgent()`
31
+ * Lê `configs/gemini_config.yaml` para obter o nome do modelo, parâmetros de inferência e caminhos de templates de prompt. A chave da API é lida da variável de ambiente `GEMINI_API_KEY`.
32
+ * **Métodos Públicos:**
33
+ * `generate_storyboard(prompt: str, num_keyframes: int, ref_image_paths: list[str])`
34
+ * **Inputs:**
35
+ * `prompt`: A ideia geral do filme (string).
36
+ * `num_keyframes`: O número de cenas a serem geradas (int).
37
+ * `ref_image_paths`: Lista de caminhos para as imagens de referência (list[str]).
38
+ * **Output:** `tuple[list[str], str]` (Uma tupla contendo a lista de strings do storyboard e um relatório textual da operação).
39
+ * `select_keyframes_from_pool(storyboard: list, base_image_paths: list[str], pool_image_paths: list[str])`
40
+ * **Inputs:**
41
+ * `storyboard`: A lista de strings do storyboard gerado.
42
+ * `base_image_paths`: Imagens de referência base (list[str]).
43
+ * `pool_image_paths`: O "banco de imagens" de onde selecionar (list[str]).
44
+ * **Output:** `tuple[list[str], str]` (Uma tupla contendo a lista de caminhos de imagens selecionadas e um relatório textual).
45
+ * `get_anticipatory_keyframe_prompt(...)`
46
+ * **Inputs:** Contexto narrativo e visual para gerar um prompt de imagem.
47
+ * **Output:** `tuple[str, str]` (Uma tupla contendo o prompt gerado para o modelo de imagem e um relatório textual).
48
+ * `get_initial_motion_prompt(...)`
49
+ * **Inputs:** Contexto narrativo e visual para a primeira transição de vídeo.
50
+ * **Output:** `tuple[str, str]` (Uma tupla contendo o prompt de movimento gerado e um relatório textual).
51
+ * `get_transition_decision(...)`
52
+ * **Inputs:** Contexto narrativo e visual para uma transição de vídeo intermediária.
53
+ * **Output:** `tuple[dict, str]` (Uma tupla contendo um dicionário `{"transition_type": "...", "motion_prompt": "..."}` e um relatório textual).
54
+ * `generate_audio_prompts(...)`
55
+ * **Inputs:** Contexto narrativo global.
56
+ * **Output:** `tuple[dict, str]` (Uma tupla contendo um dicionário `{"music_prompt": "...", "sfx_prompt": "..."}` e um relatório textual).
57
+
58
+ ### **flux_kontext_helpers.py (FluxPoolManager)**
59
+
60
+ * **Propósito:** Especialista em geração de imagens de alta qualidade (keyframes) usando a pipeline FluxKontext. Gerencia um pool de workers para otimizar o uso de múltiplas GPUs.
61
+ * **Singleton Instance:** `flux_kontext_singleton`
62
+ * **Construtor:** `FluxPoolManager(device_ids: list[str], flux_config_file: str)`
63
+ * Lê `configs/flux_config.yaml`.
64
+ * **Método Público:**
65
+ * `generate_image(prompt: str, reference_images: list[Image.Image], width: int, height: int, seed: int = 42, callback: callable = None)`
66
+ * **Inputs:**
67
+ * `prompt`: Prompt textual para guiar a geração (string).
68
+ * `reference_images`: Lista de objetos `PIL.Image` como referência visual.
69
+ * `width`, `height`: Dimensões da imagem de saída (int).
70
+ * `seed`: Semente para reprodutibilidade (int).
71
+ * `callback`: Função de callback opcional para monitorar o progresso.
72
+ * **Output:** `PIL.Image.Image` (O objeto da imagem gerada).
73
+
74
+ ### **dreamo_helpers.py (DreamOAgent)**
75
+
76
+ * **Propósito:** Especialista em geração de imagens de alta qualidade (keyframes) usando a pipeline DreamO, com capacidades avançadas de edição e estilo a partir de referências.
77
+ * **Singleton Instance:** `dreamo_agent_singleton`
78
+ * **Construtor:** `DreamOAgent(device_id: str = None)`
79
+ * Lê `configs/dreamo_config.yaml`.
80
+ * **Método Público:**
81
+ * `generate_image(prompt: str, reference_images: list[Image.Image], width: int, height: int)`
82
+ * **Inputs:**
83
+ * `prompt`: Prompt textual para guiar a geração (string).
84
+ * `reference_images`: Lista de objetos `PIL.Image` como referência visual. A lógica interna atribui a primeira imagem como `style` e as demais como `ip`.
85
+ * `width`, `height`: Dimensões da imagem de saída (int).
86
+ * **Output:** `PIL.Image.Image` (O objeto da imagem gerada).
87
+
88
+ ### **ltx_manager_helpers.py (LtxPoolManager)**
89
+
90
+ * **Propósito:** Especialista na geração de fragmentos de vídeo no espaço latente usando a pipeline LTX-Video. Gerencia um pool de workers para otimizar o uso de múltiplas GPUs.
91
+ * **Singleton Instance:** `ltx_manager_singleton`
92
+ * **Construtor:** `LtxPoolManager(device_ids: list[str], ltx_model_config_file: str, ltx_global_config_file: str)`
93
+ * Lê o `ltx_global_config_file` e o `ltx_model_config_file` para configurar a pipeline.
94
+ * **Método Público:**
95
+ * `generate_latent_fragment(**kwargs)`
96
+ * **Inputs:** Dicionário de keyword arguments (`kwargs`) contendo todos os parâmetros da pipeline LTX, incluindo:
97
+ * `height`, `width`: Dimensões do vídeo (int).
98
+ * `video_total_frames`: Número total de frames a serem gerados (int).
99
+ * `video_fps`: Frames por segundo (int).
100
+ * `motion_prompt`: Prompt de movimento (string).
101
+ * `conditioning_items_data`: Lista de objetos `LatentConditioningItem` contendo os tensores latentes de condição.
102
+ * `guidance_scale`, `stg_scale`, `num_inference_steps`, etc.
103
+ * **Output:** `tuple[torch.Tensor, tuple]` (Uma tupla contendo o tensor latente gerado e os valores de padding utilizados).
104
+
105
+ ### **mmaudio_helper.py (MMAudioAgent)**
106
+
107
+ * **Propósito:** Especialista em geração de áudio para um determinado fragmento de vídeo.
108
+ * **Singleton Instance:** `mmaudio_agent_singleton`
109
+ * **Construtor:** `MMAudioAgent(workspace_dir: str, device_id: str = None, mmaudio_config_file: str)`
110
+ * Lê `configs/mmaudio_config.yaml`.
111
+ * **Método Público:**
112
+ * `generate_audio_for_video(video_path: str, prompt: str, negative_prompt: str, duration_seconds: float)`
113
+ * **Inputs:**
114
+ * `video_path`: Caminho para o arquivo de vídeo silencioso (string).
115
+ * `prompt`: Prompt textual para guiar a geração de áudio (string).
116
+ * `negative_prompt`: Prompt negativo para áudio (string).
117
+ * `duration_seconds`: Duração exata do vídeo (float).
118
+ * **Output:** `str` (O caminho para o novo arquivo de vídeo com a faixa de áudio integrada).
119
+
120
+
121
+ ### **seedvr_helpers.py (SeedVrManager)**
122
+
123
+ * **Propósito:** Especialista em pós-produção de vídeo, aplicando super-resolução com IA (`Video Super-Resolution`) para adicionar detalhes finos, nitidez e texturas realistas a um vídeo já renderizado.
124
+ * **Singleton Instance:** `seedvr_manager_singleton`
125
+ * **Construtor:** `SeedVrManager(workspace_dir: str, device_id: str = None)`
126
+ * Lê `configs/seedvr_config.yaml`.
127
+ * **Método Público:**
128
+ * `process_video(input_video_path: str, output_video_path: str, prompt: str, model_version: str = '7B', steps: int = 100, seed: int = 666)`
129
+ * **Inputs:**
130
+ * `input_video_path`: Caminho para o vídeo de entrada a ser aprimorado (string).
131
+ * `output_video_path`: Caminho onde o vídeo finalizado será salvo (string).
132
+ * `prompt`: Um prompt de estilo geral para guiar o aprimoramento (string).
133
+ * `model_version`: A versão do modelo a ser usada, '3B' ou '7B' (string).
134
+ * `steps`: Número de passos de inferência para o processo de aprimoramento (int).
135
+ * `seed`: Semente para reprodutibilidade (int).
136
+ * **Output:** `str` (O caminho para o vídeo finalizado em alta definição).
137
+
138
+ ---
139
+
140
+ ## 🔗 Projetos Originais e Atribuições
141
+ (A seção de atribuições e licenças permanece a mesma que definimos anteriormente)
142
+
143
+ ### DreamO
144
+ * **Repositório Original:** [https://github.com/bytedance/DreamO](https://github.com/bytedance/DreamO)
145
+ ...
146
+
147
+ ### LTX-Video
148
+ * **Repositório Original:** [https://github.com/Lightricks/LTX-Video](https://github.com/Lightricks/LTX-Video)
149
+ ...
150
+
151
+ ### MMAudio
152
+ * **Repositório Original:** [https://github.com/hkchengrex/MMAudio](https://github.com/hkchengrex/MMAudio)
153
+ ...
154
+
155
+ ### SeedVr
156
+ * **Repositório Original:** [https://github.com/ByteDance-Seed/SeedVR](https://github.com/ByteDance-Seed/SeedVR)
managers/flux_kontext_manager.py CHANGED
@@ -1,5 +1,19 @@
1
  # flux_kontext_helpers.py (ADUC: O Especialista Pintor - com suporte a callback)
 
2
  # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  import torch
5
  from PIL import Image, ImageOps
 
1
  # flux_kontext_helpers.py (ADUC: O Especialista Pintor - com suporte a callback)
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
  # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
+ #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ #
14
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
15
+ #
16
+ # Version 1.0.1
17
 
18
  import torch
19
  from PIL import Image, ImageOps
managers/gemini_manager.py CHANGED
@@ -1,6 +1,16 @@
1
  # managers/gemini_manager.py
 
 
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
 
 
 
 
 
 
 
4
  #
5
  # Version: 1.1.1
6
  #
 
1
  # managers/gemini_manager.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
14
  #
15
  # Version: 1.1.1
16
  #
managers/latent_enhancer_manager.py CHANGED
@@ -1,6 +1,19 @@
1
  # latent_enhancer_specialist.py
2
- # Copyright (C) 2025 Carlos Rodrigues
3
- # Especialista ADUC para pós-produção e melhoria de tensores latentes.
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  import torch
6
  import logging
 
1
  # latent_enhancer_specialist.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
+ #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ #
14
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
15
+ #
16
+ # Version 1.0.1
17
 
18
  import torch
19
  import logging
managers/ltx_manager.py CHANGED
@@ -1,6 +1,16 @@
1
  # managers/ltx_manager.py
 
 
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
 
 
 
 
 
 
 
4
  #
5
  # Version: 2.2.2
6
  #
 
1
  # managers/ltx_manager.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
14
  #
15
  # Version: 2.2.2
16
  #
managers/mmaudio_manager.py CHANGED
@@ -1,6 +1,16 @@
1
  # managers/mmaudio_manager.py
 
 
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
 
 
 
 
 
 
 
4
  #
5
  # Version: 2.3.0
6
  #
 
1
  # managers/mmaudio_manager.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
14
  #
15
  # Version: 2.3.0
16
  #
managers/seedvr_manager.py CHANGED
@@ -1,6 +1,16 @@
1
  # managers/seedvr_manager.py
 
 
2
  #
3
- # Copyright (C) 2025 Carlos Rodrigues dos Santos
 
 
 
 
 
 
 
 
4
  #
5
  # Version: 2.3.0
6
  #
 
1
  # managers/seedvr_manager.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
14
  #
15
  # Version: 2.3.0
16
  #
managers/vae_manager.py CHANGED
@@ -1,14 +1,26 @@
1
  # managers/vae_manager.py
 
 
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
 
 
4
  #
5
- # Version: 1.0.0
 
6
  #
 
 
 
7
  # This file defines the VaeManager specialist. Its purpose is to abstract all
8
  # direct interactions with the Variational Autoencoder (VAE) model. It handles
9
  # the model's state (CPU/GPU memory), provides clean interfaces for encoding and
10
  # decoding, and ensures that the heavy VAE model only occupies VRAM when actively
11
  # performing a task, freeing up resources for other specialists.
 
 
 
12
 
13
  import torch
14
  import logging
 
1
  # managers/vae_manager.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
  #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
  #
13
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
14
+ #
15
+ #
16
  # This file defines the VaeManager specialist. Its purpose is to abstract all
17
  # direct interactions with the Variational Autoencoder (VAE) model. It handles
18
  # the model's state (CPU/GPU memory), provides clean interfaces for encoding and
19
  # decoding, and ensures that the heavy VAE model only occupies VRAM when actively
20
  # performing a task, freeing up resources for other specialists.
21
+ #
22
+ # Version 1.0.1
23
+
24
 
25
  import torch
26
  import logging
prompts/LICENSE ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Euia-AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR para geração de vídeo coerente.
2
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
3
+ #
4
+ # Contato:
5
+ # Carlos Rodrigues dos Santos
6
+ # carlex22@gmail.com
7
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
8
+ #
9
+ # Repositórios e Projetos Relacionados:
10
+ # GitHub: https://github.com/carlex22/Aduc-sdr
11
+ # Hugging Face (Ltx-SuperTime-60Secondos): https://huggingface.co/spaces/Carlexx/Ltx-SuperTime-60Secondos/
12
+ # Hugging Face (Novinho): https://huggingface.co/spaces/Carlexxx/Novinho/
13
+ #
14
+ # This program is free software: you can redistribute it and/or modify
15
+ # it under the terms of the GNU Affero General Public License as published by
16
+ # the Free Software Foundation, either version 3 of the License, or
17
+ # (at your option) any later version.
18
+ #
19
+ # This program is distributed in the hope that it will be useful,
20
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ # GNU Affero General Public License for more details.
23
+ #
24
+ # You should have received a copy of the GNU Affero General Public License
25
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
prompts/NOTICE.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NOTICE
2
+
3
+ Copyright (C) 2025 Carlos Rodrigues dos Santos. All rights reserved.
4
+
5
+ ---
6
+
7
+ ## Aviso de Propriedade Intelectual e Licenciamento
8
+
9
+ ### **Processo de Patenteamento em Andamento (EM PORTUGUÊS):**
10
+
11
+ O método e o sistema de orquestração de prompts denominados **ADUC (Automated Discovery and Orchestration of Complex tasks)**, conforme descritos neste documento e implementados neste software, estão atualmente em processo de patenteamento.
12
+
13
+ O titular dos direitos, Carlos Rodrigues dos Santos, está buscando proteção legal para as inovações chave da arquitetura ADUC, incluindo, mas não se limitando a:
14
+
15
+ * Fragmentação e escalonamento de solicitações que excedem limites de contexto de modelos de IA.
16
+ * Distribuição inteligente de sub-tarefas para especialistas heterogêneos.
17
+ * Gerenciamento de estado persistido com avaliação iterativa e realimentação para o planejamento de próximas etapas.
18
+ * Planejamento e roteamento sensível a custo, latência e requisitos de qualidade.
19
+ * O uso de "tokens universais" para comunicação agnóstica a modelos.
20
+
21
+ ### **Reconhecimento e Implicações (EM PORTUGUÊS):**
22
+
23
+ Ao acessar ou utilizar este software e a arquitetura ADUC aqui implementada, você reconhece:
24
+
25
+ 1. A natureza inovadora e a importância da arquitetura ADUC no campo da orquestração de prompts para IA.
26
+ 2. Que a essência desta arquitetura, ou suas implementações derivadas, podem estar sujeitas a direitos de propriedade intelectual, incluindo patentes.
27
+ 3. Que o uso comercial, a reprodução da lógica central da ADUC em sistemas independentes, ou a exploração direta da invenção sem o devido licenciamento podem infringir os direitos de patente pendente.
28
+
29
+ ---
30
+
31
+ ### **Patent Pending (IN ENGLISH):**
32
+
33
+ The method and system for prompt orchestration named **ADUC (Automated Discovery and Orchestration of Complex tasks)**, as described herein and implemented in this software, are currently in the process of being patented.
34
+
35
+ The rights holder, Carlos Rodrigues dos Santos, is seeking legal protection for the key innovations of the ADUC architecture, including, but not limited to:
36
+
37
+ * Fragmentation and scaling of requests exceeding AI model context limits.
38
+ * Intelligent distribution of sub-tasks to heterogeneous specialists.
39
+ * Persistent state management with iterative evaluation and feedback for planning subsequent steps.
40
+ * Cost, latency, and quality-aware planning and routing.
41
+ * The use of "universal tokens" for model-agnostic communication.
42
+
43
+ ### **Acknowledgement and Implications (IN ENGLISH):**
44
+
45
+ By accessing or using this software and the ADUC architecture implemented herein, you acknowledge:
46
+
47
+ 1. The innovative nature and significance of the ADUC architecture in the field of AI prompt orchestration.
48
+ 2. That the essence of this architecture, or its derivative implementations, may be subject to intellectual property rights, including patents.
49
+ 3. That commercial use, reproduction of ADUC's core logic in independent systems, or direct exploitation of the invention without proper licensing may infringe upon pending patent rights.
50
+
51
+ ---
52
+
53
+ ## Licença AGPLv3
54
+
55
+ This program is free software: you can redistribute it and/or modify
56
+ it under the terms of the GNU Affero General Public License as published by
57
+ the Free Software Foundation, either version 3 of the License, or
58
+ (at your option) any later version.
59
+
60
+ This program is distributed in the hope that it will be useful,
61
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
62
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
63
+ GNU Affero General Public License for more details.
64
+
65
+ You should have received a copy of the GNU Affero General Public License
66
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
67
+
68
+ ---
69
+
70
+ **Contato para Consultas:**
71
+
72
+ Para mais informações sobre a arquitetura ADUC, o status do patenteamento, ou para discutir licenciamento para usos comerciais ou não conformes com a AGPLv3, por favor, entre em contato:
73
+
74
+ Carlos Rodrigues dos Santos
75
+ carlex22@gmail.com
76
+ Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
prompts/README.md ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Euia-AducSdr
3
+ emoji: 🎥
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: gradio
7
+ app_file: app.py
8
+ pinned: true
9
+ license: agpl-3.0
10
+ short_description: Uma implementação aberta e funcional da arquitetura ADUC-SDR
11
+ ---
12
+
13
+
14
+ ### 🇧🇷 Português
15
+
16
+ Uma implementação aberta e funcional da arquitetura ADUC-SDR (Arquitetura de Unificação Compositiva - Escala Dinâmica e Resiliente), projetada para a geração de vídeo coerente de longa duração. Este projeto materializa os princípios de fragmentação, navegação geométrica e um mecanismo de "eco causal 4bits memoria" para garantir a continuidade física e narrativa em sequências de vídeo geradas por múltiplos modelos de IA.
17
+
18
+ **Licença:** Este projeto é licenciado sob os termos da **GNU Affero General Public License v3.0**. Isto significa que se você usar este software (ou qualquer trabalho derivado) para fornecer um serviço através de uma rede, você é **obrigado a disponibilizar o código-fonte completo** da sua versão para os usuários desse serviço.
19
+
20
+ - **Copyright (C) 4 de Agosto de 2025, Carlos Rodrigues dos Santos**
21
+ - Uma cópia completa da licença pode ser encontrada no arquivo [LICENSE](LICENSE).
22
+
23
+ ---
24
+
25
+ ### 🇬🇧 English
26
+
27
+ An open and functional implementation of the ADUC-SDR (Architecture for Compositive Unification - Dynamic and Resilient Scaling) architecture, designed for long-form coherent video generation. This project materializes the principles of fragmentation, geometric navigation, and a "causal echo 4bits memori" mechanism to ensure physical and narrative continuity in video sequences generated by multiple AI models.
28
+
29
+ **License:** This project is licensed under the terms of the **GNU Affero General Public License v3.0**. This means that if you use this software (or any derivative work) to provide a service over a network, you are **required to make the complete source code** of your version available to the users of that service.
30
+
31
+ - **Copyright (C) August 4, 2025, Carlos Rodrigues dos Santos**
32
+ - A full copy of the license can be found in the [LICENSE](LICENSE) file.
33
+
34
+ ---
35
+
36
+ ## **Aviso de Propriedade Intelectual e Patenteamento**
37
+
38
+ ### **Processo de Patenteamento em Andamento (EM PORTUGUÊS):**
39
+
40
+ A arquitetura e o método **ADUC (Automated Discovery and Orchestration of Complex tasks)**, conforme descritos neste projeto e nas reivindicações associadas, estão **atualmente em processo de patenteamento**.
41
+
42
+ O titular dos direitos, Carlos Rodrigues dos Santos, está buscando proteção legal para as inovações chave da arquitetura ADUC, que incluem, mas não se limitam a:
43
+
44
+ * Fragmentação e escalonamento de solicitações que excedem limites de contexto de modelos de IA.
45
+ * Distribuição inteligente de sub-tarefas para especialistas heterogêneos.
46
+ * Gerenciamento de estado persistido com avaliação iterativa e realimentação para o planejamento de próximas etapas.
47
+ * Planejamento e roteamento sensível a custo, latência e requisitos de qualidade.
48
+ * O uso de "tokens universais" para comunicação agnóstica a modelos.
49
+
50
+ Ao utilizar este software e a arquitetura ADUC aqui implementada, você reconhece a natureza inovadora desta arquitetura e que a **reprodução ou exploração da lógica central da ADUC em sistemas independentes pode infringir direitos de patente pendente.**
51
+
52
+ ---
53
+
54
+ ### **Patent Pending (IN ENGLISH):**
55
+
56
+ The **ADUC (Automated Discovery and Orchestration of Complex tasks)** architecture and method, as described in this project and its associated claims, are **currently in the process of being patented.**
57
+
58
+ The rights holder, Carlos Rodrigues dos Santos, is seeking legal protection for the key innovations of the ADUC architecture, including, but not limited to:
59
+
60
+ * Fragmentation and scaling of requests exceeding AI model context limits.
61
+ * Intelligent distribution of sub-tasks to heterogeneous specialists.
62
+ * Persistent state management with iterative evaluation and feedback for planning subsequent steps.
63
+ * Cost, latency, and quality-aware planning and routing.
64
+ * The use of "universal tokens" for model-agnostic communication.
65
+
66
+ By using this software and the ADUC architecture implemented herein, you acknowledge the innovative nature of this architecture and that **the reproduction or exploitation of ADUC's core logic in independent systems may infringe upon pending patent rights.**
67
+
68
+ ---
69
+
70
+ ### Detalhes Técnicos e Reivindicações da ADUC
71
+
72
+ #### 🇧🇷 Definição Curta (para Tese e Patente)
73
+
74
+ **ADUC** é um *framework pré-input* e *intermediário* de **gerenciamento de prompts** que:
75
+
76
+ 1. **fragmenta** solicitações acima do limite de contexto de qualquer modelo,
77
+ 2. **escala linearmente** (processo sequencial com memória persistida),
78
+ 3. **distribui** sub-tarefas a **especialistas** (modelos/ferramentas heterogêneos), e
79
+ 4. **realimenta** a próxima etapa com avaliação do que foi feito/esperado (LLM diretor).
80
+
81
+ Não é um modelo; é uma **camada orquestradora** plugável antes do input de modelos existentes (texto, imagem, áudio, vídeo), usando *tokens universais* e a tecnologia atual.
82
+
83
+ #### 🇬🇧 Short Definition (for Thesis and Patent)
84
+
85
+ **ADUC** is a *pre-input* and *intermediate* **prompt management framework** that:
86
+
87
+ 1. **fragments** requests exceeding any model's context limit,
88
+ 2. **scales linearly** (sequential process with persisted memory),
89
+ 3. **distributes** sub-tasks to **specialists** (heterogeneous models/tools), and
90
+ 4. **feeds back** to the next step with an evaluation of what was done/expected (director LLM).
91
+
92
+ It is not a model; it is a pluggable **orchestration layer** before the input of existing models (text, image, audio, video), using *universal tokens* and current technology.
93
+
94
+ ---
95
+
96
+ #### 🇧🇷 Elementos Essenciais (Telegráfico)
97
+
98
+ * **Agnóstico a modelos:** opera com qualquer LLM/difusor/API.
99
+ * **Pré-input manager:** recebe pedido do usuário, **divide** em blocos ≤ limite de tokens, **prioriza**, **agenda** e **roteia**.
100
+ * **Memória persistida:** resultados/latentes/“eco” viram **estado compartilhado** para o próximo bloco (nada é ignorado).
101
+ * **Especialistas:** *routers* decidem quem faz o quê (ex.: “descrição → LLM-A”, “keyframe → Img-B”, “vídeo → Vid-C”).
102
+ * **Controle de qualidade:** LLM diretor compara *o que fez* × *o que deveria* × *o que falta* e **regenera objetivos** do próximo fragmento.
103
+ * **Custo/latência-aware:** planeja pela **VRAM/tempo/custo**, não tenta “abraçar tudo de uma vez”.
104
+
105
+ #### 🇬🇧 Essential Elements (Telegraphic)
106
+
107
+ * **Model-agnostic:** operates with any LLM/diffuser/API.
108
+ * **Pre-input manager:** receives user request, **divides** into blocks ≤ token limit, **prioritizes**, **schedules**, and **routes**.
109
+ * **Persisted memory:** results/latents/“echo” become **shared state** for the next block (nothing is ignored).
110
+ * **Specialists:** *routers* decide who does what (e.g., “description → LLM-A”, “keyframe → Img-B”, “video → Vid-C”).
111
+ * **Quality control:** director LLM compares *what was done* × *what should be done* × *what is missing* and **regenerates objectives** for the next fragment.
112
+ * **Cost/latency-aware:** plans by **VRAM/time/cost**, does not try to “embrace everything at once”.
113
+
114
+ ---
115
+
116
+ #### 🇧🇷 Reivindicações Independentes (Método e Sistema)
117
+
118
+ **Reivindicação Independente (Método) — Versão Enxuta:**
119
+
120
+ 1. **Método** de **orquestração de prompts** para execução de tarefas acima do limite de contexto de modelos de IA, compreendendo:
121
+ (a) **receber** uma solicitação que excede um limite de tokens;
122
+ (b) **analisar** a solicitação por um **LLM diretor** e **fragmentá-la** em sub-tarefas ≤ limite;
123
+ (c) **selecionar** especialistas de execução para cada sub-tarefa com base em capacidades declaradas;
124
+ (d) **gerar** prompts específicos por sub-tarefa em **tokens universais**, incluindo referências ao **estado persistido** de execuções anteriores;
125
+ (e) **executar sequencialmente** as sub-tarefas e **persistir** suas saídas como memória (incluindo latentes/eco/artefatos);
126
+ (f) **avaliar** automaticamente a saída versus metas declaradas e **regenerar objetivos** do próximo fragmento;
127
+ (g) **iterar** (b)–(f) até que os critérios de completude sejam atendidos, produzindo o resultado agregado;
128
+ em que o framework **escala linearmente** no tempo e armazenamento físico, **independente** da janela de contexto dos modelos subjacentes.
129
+
130
+ **Reivindicação Independente (Sistema):**
131
+
132
+ 2. **Sistema** de orquestração de prompts, compreendendo: um **planejador LLM diretor**; um **roteador de especialistas**; um **banco de estado persistido** (incl. memória cinética para vídeo); um **gerador de prompts universais**; e um **módulo de avaliação/realimentação**, acoplados por uma **API pré-input** a modelos heterogêneos.
133
+
134
+ #### 🇬🇧 Independent Claims (Method and System)
135
+
136
+ **Independent Claim (Method) — Concise Version:**
137
+
138
+ 1. A **method** for **prompt orchestration** for executing tasks exceeding AI model context limits, comprising:
139
+ (a) **receiving** a request that exceeds a token limit;
140
+ (b) **analyzing** the request by a **director LLM** and **fragmenting it** into sub-tasks ≤ the limit;
141
+ (c) **selecting** execution specialists for each sub-task based on declared capabilities;
142
+ (d) **generating** specific prompts per sub-task in **universal tokens**, including references to the **persisted state** of previous executions;
143
+ (e) **sequentially executing** the sub-tasks and **persisting** their outputs as memory (including latents/echo/artifacts);
144
+ (f) **automatically evaluating** the output against declared goals and **regenerating objectives** for the next fragment;
145
+ (g) **iterating** (b)–(f) until completion criteria are met, producing the aggregated result;
146
+ wherein the framework **scales linearly** in time and physical storage, **independent** of the context window of the underlying models.
147
+
148
+ **Independent Claim (System):**
149
+
150
+ 2. A prompt orchestration **system**, comprising: a **director LLM planner**; a **specialist router**; a **persisted state bank** (incl. kinetic memory for video); a **universal prompt generator**; and an **evaluation/feedback module**, coupled via a **pre-input API** to heterogeneous models.
151
+
152
+ ---
153
+
154
+ #### 🇧🇷 Dependentes Úteis
155
+
156
+ * (3) Onde o roteamento considera **custo/latência/VRAM** e metas de qualidade.
157
+ * (4) Onde o banco de estado inclui **eco cinético** para vídeo (últimos *n* frames/latentes/fluxo).
158
+ * (5) Onde a avaliação usa métricas específicas por domínio (Lflow, consistência semântica, etc.).
159
+ * (6) Onde *tokens universais* padronizam instruções entre especialistas.
160
+ * (7) Onde a orquestração decide **cut vs continuous** e **corte regenerativo** (Déjà-Vu) ao editar vídeo.
161
+ * (8) Onde o sistema **nunca descarta** conteúdo excedente: **reagenda** em novos fragmentos.
162
+
163
+ #### 🇬🇧 Useful Dependents
164
+
165
+ * (3) Wherein routing considers **cost/latency/VRAM** and quality goals.
166
+ * (4) Wherein the state bank includes **kinetic echo** for video (last *n* frames/latents/flow).
167
+ * (5) Wherein evaluation uses domain-specific metrics (Lflow, semantic consistency, etc.).
168
+ * (6) Wherein *universal tokens* standardize instructions between specialists.
169
+ * (7) Wherein orchestration decides **cut vs continuous** and **regenerative cut** (Déjà-Vu) when editing video.
170
+ * (8) Wherein the system **never discards** excess content: it **reschedules** it in new fragments.
171
+
172
+ ---
173
+
174
+ #### 🇧🇷 Como isso conversa com SDR (Vídeo)
175
+
176
+ * **Eco Cinético**: é um **tipo de estado persistido** consumido pelo próximo passo.
177
+ * **Déjà-Vu (Corte Regenerativo)**: é **uma política de orquestração** aplicada quando há edição; ADUC decide, monta os prompts certos e chama o especialista de vídeo.
178
+ * **Cut vs Continuous**: decisão do **diretor** com base em estado + metas; ADUC roteia e garante a sobreposição/remoção final.
179
+
180
+ #### 🇬🇧 How this Converses with SDR (Video)
181
+
182
+ * **Kinetic Echo**: is a **type of persisted state** consumed by the next step.
183
+ * **Déjà-Vu (Regenerative Cut)**: is an **orchestration policy** applied during editing; ADUC decides, crafts the right prompts, and calls the video specialist.
184
+ * **Cut vs Continuous**: decision made by the **director** based on state + goals; ADUC routes and ensures the final overlap/removal.
185
+
186
+ ---
187
+
188
+ #### 🇧🇷 Mensagem Clara ao Usuário (Experiência)
189
+
190
+ > “Seu pedido excede o limite X do modelo Y. Em vez de truncar silenciosamente, o **ADUC** dividirá e **entregará 100%** do conteúdo por etapas coordenadas.”
191
+
192
+ Isso é diferencial prático e jurídico: **não-obviedade** por transformar limite de contexto em **pipeline controlado**, com **persistência de estado** e **avaliação iterativa**.
193
+
194
+ #### 🇬🇧 Clear User Message (Experience)
195
+
196
+ > "Your request exceeds model Y's limit X. Instead of silently truncating, **ADUC** will divide and **deliver 100%** of the content through coordinated steps."
197
+
198
+ This is a practical and legal differentiator: **non-obviousness** by transforming context limits into a **controlled pipeline**, with **state persistence** and **iterative evaluation**.
199
+
200
+ ---
201
+
202
+ ### Contact / Contato / Contacto
203
+
204
+ - **Author / Autor:** Carlos Rodrigues dos Santos
205
+ - **Email:** carlex22@gmail.com
206
+ - **GitHub:** [https://github.com/carlex22/Aduc-sdr](https://github.com/carlex22/Aduc-sdr)
207
+ - **Hugging Face Spaces:**
208
+ - [Ltx-SuperTime-60Secondos](https://huggingface.co/spaces/Carlexx/Ltx-SuperTime-60Secondos/)
209
+ - [Novinho](https://huggingface.co/spaces/Carlexxx/Novinho/)
210
+
211
+ ---
requirements.txt CHANGED
@@ -1,6 +1,3 @@
1
- # --- Core ML & AI Frameworks ---
2
- # Usamos versões específicas para garantir a reprodutibilidade.
3
- # diffusers está fixado em um commit específico da branch 'main' do GitHub para estabilidade.
4
  torch
5
  torchao
6
  torchvision
@@ -10,65 +7,38 @@ accelerate
10
  safetensors
11
  einops
12
  sentencepiece
13
-
14
  git+https://github.com/hkchengrex/MMAudio.git@main
15
-
16
- # O formato 'package @ git+...' é o padrão moderno para dependências do Git.
17
  git+https://github.com/huggingface/diffusers.git@main
18
-
19
- # --- User Interface ---
20
- #Gradio para uma que contém 'mount_app'
21
  gradio>=5.23.1
22
  gradio[oauth]
23
  fastapi
24
  uvicorn[standard]
25
  pydantic
26
  soundfile
27
-
28
-
29
  tiktoken
30
  transformers_stream_generator
31
-
32
  rotary-embedding-torch
33
-
34
- # --- Data Handling & I/O ---
35
  Pillow
36
  numpy
37
  PyYAML
38
-
39
- # --- Video & Image Processing ---
40
  opencv-python
41
  imageio
42
  imageio-ffmpeg
43
  av
44
-
45
- # --- Hugging Face Hub ---
46
  huggingface_hub
47
-
48
  google-generativeai
49
-
50
-
51
- # Metrics
52
- torchmetrics # Core module for metric
53
- pycocotools # COCO-related
54
- torch-fidelity # FID-related
55
-
56
- # Experiment Tracking
57
- moviepy # WandB Logging Image & Video
58
- imageio # WandB Logging Image & Video
59
- tabulate # Logging Table
60
- deepdiff # Find difference of config
61
-
62
- # Testing
63
- parameterized # Define multiple tests through decorators.
64
-
65
- # Notebook
66
- mediapy # Notebook Visualization
67
-
68
- # DevOPs
69
- black # Code formatting
70
- flake8 # Code style
71
- isort # Import sorting
72
- pre-commit # Pre-commit hooks
73
- expecttest # Pytorch dist tests
74
- hypothesis # Fix randomness
 
 
 
 
1
  torch
2
  torchao
3
  torchvision
 
7
  safetensors
8
  einops
9
  sentencepiece
 
10
  git+https://github.com/hkchengrex/MMAudio.git@main
 
 
11
  git+https://github.com/huggingface/diffusers.git@main
 
 
 
12
  gradio>=5.23.1
13
  gradio[oauth]
14
  fastapi
15
  uvicorn[standard]
16
  pydantic
17
  soundfile
 
 
18
  tiktoken
19
  transformers_stream_generator
 
20
  rotary-embedding-torch
 
 
21
  Pillow
22
  numpy
23
  PyYAML
 
 
24
  opencv-python
25
  imageio
26
  imageio-ffmpeg
27
  av
 
 
28
  huggingface_hub
 
29
  google-generativeai
30
+ torchmetrics
31
+ pycocotools
32
+ torch-fidelity
33
+ moviepy
34
+ imageio
35
+ tabulate
36
+ deepdiff
37
+ parameterized
38
+ mediapy
39
+ black
40
+ flake8
41
+ isort
42
+ pre-commit
43
+ expecttest
44
+ hypothesis
 
 
 
 
 
 
 
 
 
 
 
tools/LICENSE ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Euia-AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR para geração de vídeo coerente.
2
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
3
+ #
4
+ # Contato:
5
+ # Carlos Rodrigues dos Santos
6
+ # carlex22@gmail.com
7
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
8
+ #
9
+ # Repositórios e Projetos Relacionados:
10
+ # GitHub: https://github.com/carlex22/Aduc-sdr
11
+ # Hugging Face (Ltx-SuperTime-60Secondos): https://huggingface.co/spaces/Carlexx/Ltx-SuperTime-60Secondos/
12
+ # Hugging Face (Novinho): https://huggingface.co/spaces/Carlexxx/Novinho/
13
+ #
14
+ # This program is free software: you can redistribute it and/or modify
15
+ # it under the terms of the GNU Affero General Public License as published by
16
+ # the Free Software Foundation, either version 3 of the License, or
17
+ # (at your option) any later version.
18
+ #
19
+ # This program is distributed in the hope that it will be useful,
20
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ # GNU Affero General Public License for more details.
23
+ #
24
+ # You should have received a copy of the GNU Affero General Public License
25
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
tools/NOTICE.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NOTICE
2
+
3
+ Copyright (C) 2025 Carlos Rodrigues dos Santos. All rights reserved.
4
+
5
+ ---
6
+
7
+ ## Aviso de Propriedade Intelectual e Licenciamento
8
+
9
+ ### **Processo de Patenteamento em Andamento (EM PORTUGUÊS):**
10
+
11
+ O método e o sistema de orquestração de prompts denominados **ADUC (Automated Discovery and Orchestration of Complex tasks)**, conforme descritos neste documento e implementados neste software, estão atualmente em processo de patenteamento.
12
+
13
+ O titular dos direitos, Carlos Rodrigues dos Santos, está buscando proteção legal para as inovações chave da arquitetura ADUC, incluindo, mas não se limitando a:
14
+
15
+ * Fragmentação e escalonamento de solicitações que excedem limites de contexto de modelos de IA.
16
+ * Distribuição inteligente de sub-tarefas para especialistas heterogêneos.
17
+ * Gerenciamento de estado persistido com avaliação iterativa e realimentação para o planejamento de próximas etapas.
18
+ * Planejamento e roteamento sensível a custo, latência e requisitos de qualidade.
19
+ * O uso de "tokens universais" para comunicação agnóstica a modelos.
20
+
21
+ ### **Reconhecimento e Implicações (EM PORTUGUÊS):**
22
+
23
+ Ao acessar ou utilizar este software e a arquitetura ADUC aqui implementada, você reconhece:
24
+
25
+ 1. A natureza inovadora e a importância da arquitetura ADUC no campo da orquestração de prompts para IA.
26
+ 2. Que a essência desta arquitetura, ou suas implementações derivadas, podem estar sujeitas a direitos de propriedade intelectual, incluindo patentes.
27
+ 3. Que o uso comercial, a reprodução da lógica central da ADUC em sistemas independentes, ou a exploração direta da invenção sem o devido licenciamento podem infringir os direitos de patente pendente.
28
+
29
+ ---
30
+
31
+ ### **Patent Pending (IN ENGLISH):**
32
+
33
+ The method and system for prompt orchestration named **ADUC (Automated Discovery and Orchestration of Complex tasks)**, as described herein and implemented in this software, are currently in the process of being patented.
34
+
35
+ The rights holder, Carlos Rodrigues dos Santos, is seeking legal protection for the key innovations of the ADUC architecture, including, but not limited to:
36
+
37
+ * Fragmentation and scaling of requests exceeding AI model context limits.
38
+ * Intelligent distribution of sub-tasks to heterogeneous specialists.
39
+ * Persistent state management with iterative evaluation and feedback for planning subsequent steps.
40
+ * Cost, latency, and quality-aware planning and routing.
41
+ * The use of "universal tokens" for model-agnostic communication.
42
+
43
+ ### **Acknowledgement and Implications (IN ENGLISH):**
44
+
45
+ By accessing or using this software and the ADUC architecture implemented herein, you acknowledge:
46
+
47
+ 1. The innovative nature and significance of the ADUC architecture in the field of AI prompt orchestration.
48
+ 2. That the essence of this architecture, or its derivative implementations, may be subject to intellectual property rights, including patents.
49
+ 3. That commercial use, reproduction of ADUC's core logic in independent systems, or direct exploitation of the invention without proper licensing may infringe upon pending patent rights.
50
+
51
+ ---
52
+
53
+ ## Licença AGPLv3
54
+
55
+ This program is free software: you can redistribute it and/or modify
56
+ it under the terms of the GNU Affero General Public License as published by
57
+ the Free Software Foundation, either version 3 of the License, or
58
+ (at your option) any later version.
59
+
60
+ This program is distributed in the hope that it will be useful,
61
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
62
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
63
+ GNU Affero General Public License for more details.
64
+
65
+ You should have received a copy of the GNU Affero General Public License
66
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
67
+
68
+ ---
69
+
70
+ **Contato para Consultas:**
71
+
72
+ Para mais informações sobre a arquitetura ADUC, o status do patenteamento, ou para discutir licenciamento para usos comerciais ou não conformes com a AGPLv3, por favor, entre em contato:
73
+
74
+ Carlos Rodrigues dos Santos
75
+ carlex22@gmail.com
76
+ Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
tools/README.md ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Euia-AducSdr
3
+ emoji: 🎥
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: gradio
7
+ app_file: app.py
8
+ pinned: true
9
+ license: agpl-3.0
10
+ short_description: Uma implementação aberta e funcional da arquitetura ADUC-SDR
11
+ ---
12
+
13
+
14
+ ### 🇧🇷 Português
15
+
16
+ Uma implementação aberta e funcional da arquitetura ADUC-SDR (Arquitetura de Unificação Compositiva - Escala Dinâmica e Resiliente), projetada para a geração de vídeo coerente de longa duração. Este projeto materializa os princípios de fragmentação, navegação geométrica e um mecanismo de "eco causal 4bits memoria" para garantir a continuidade física e narrativa em sequências de vídeo geradas por múltiplos modelos de IA.
17
+
18
+ **Licença:** Este projeto é licenciado sob os termos da **GNU Affero General Public License v3.0**. Isto significa que se você usar este software (ou qualquer trabalho derivado) para fornecer um serviço através de uma rede, você é **obrigado a disponibilizar o código-fonte completo** da sua versão para os usuários desse serviço.
19
+
20
+ - **Copyright (C) 4 de Agosto de 2025, Carlos Rodrigues dos Santos**
21
+ - Uma cópia completa da licença pode ser encontrada no arquivo [LICENSE](LICENSE).
22
+
23
+ ---
24
+
25
+ ### 🇬🇧 English
26
+
27
+ An open and functional implementation of the ADUC-SDR (Architecture for Compositive Unification - Dynamic and Resilient Scaling) architecture, designed for long-form coherent video generation. This project materializes the principles of fragmentation, geometric navigation, and a "causal echo 4bits memori" mechanism to ensure physical and narrative continuity in video sequences generated by multiple AI models.
28
+
29
+ **License:** This project is licensed under the terms of the **GNU Affero General Public License v3.0**. This means that if you use this software (or any derivative work) to provide a service over a network, you are **required to make the complete source code** of your version available to the users of that service.
30
+
31
+ - **Copyright (C) August 4, 2025, Carlos Rodrigues dos Santos**
32
+ - A full copy of the license can be found in the [LICENSE](LICENSE) file.
33
+
34
+ ---
35
+
36
+ ## **Aviso de Propriedade Intelectual e Patenteamento**
37
+
38
+ ### **Processo de Patenteamento em Andamento (EM PORTUGUÊS):**
39
+
40
+ A arquitetura e o método **ADUC (Automated Discovery and Orchestration of Complex tasks)**, conforme descritos neste projeto e nas reivindicações associadas, estão **atualmente em processo de patenteamento**.
41
+
42
+ O titular dos direitos, Carlos Rodrigues dos Santos, está buscando proteção legal para as inovações chave da arquitetura ADUC, que incluem, mas não se limitam a:
43
+
44
+ * Fragmentação e escalonamento de solicitações que excedem limites de contexto de modelos de IA.
45
+ * Distribuição inteligente de sub-tarefas para especialistas heterogêneos.
46
+ * Gerenciamento de estado persistido com avaliação iterativa e realimentação para o planejamento de próximas etapas.
47
+ * Planejamento e roteamento sensível a custo, latência e requisitos de qualidade.
48
+ * O uso de "tokens universais" para comunicação agnóstica a modelos.
49
+
50
+ Ao utilizar este software e a arquitetura ADUC aqui implementada, você reconhece a natureza inovadora desta arquitetura e que a **reprodução ou exploração da lógica central da ADUC em sistemas independentes pode infringir direitos de patente pendente.**
51
+
52
+ ---
53
+
54
+ ### **Patent Pending (IN ENGLISH):**
55
+
56
+ The **ADUC (Automated Discovery and Orchestration of Complex tasks)** architecture and method, as described in this project and its associated claims, are **currently in the process of being patented.**
57
+
58
+ The rights holder, Carlos Rodrigues dos Santos, is seeking legal protection for the key innovations of the ADUC architecture, including, but not limited to:
59
+
60
+ * Fragmentation and scaling of requests exceeding AI model context limits.
61
+ * Intelligent distribution of sub-tasks to heterogeneous specialists.
62
+ * Persistent state management with iterative evaluation and feedback for planning subsequent steps.
63
+ * Cost, latency, and quality-aware planning and routing.
64
+ * The use of "universal tokens" for model-agnostic communication.
65
+
66
+ By using this software and the ADUC architecture implemented herein, you acknowledge the innovative nature of this architecture and that **the reproduction or exploitation of ADUC's core logic in independent systems may infringe upon pending patent rights.**
67
+
68
+ ---
69
+
70
+ ### Detalhes Técnicos e Reivindicações da ADUC
71
+
72
+ #### 🇧🇷 Definição Curta (para Tese e Patente)
73
+
74
+ **ADUC** é um *framework pré-input* e *intermediário* de **gerenciamento de prompts** que:
75
+
76
+ 1. **fragmenta** solicitações acima do limite de contexto de qualquer modelo,
77
+ 2. **escala linearmente** (processo sequencial com memória persistida),
78
+ 3. **distribui** sub-tarefas a **especialistas** (modelos/ferramentas heterogêneos), e
79
+ 4. **realimenta** a próxima etapa com avaliação do que foi feito/esperado (LLM diretor).
80
+
81
+ Não é um modelo; é uma **camada orquestradora** plugável antes do input de modelos existentes (texto, imagem, áudio, vídeo), usando *tokens universais* e a tecnologia atual.
82
+
83
+ #### 🇬🇧 Short Definition (for Thesis and Patent)
84
+
85
+ **ADUC** is a *pre-input* and *intermediate* **prompt management framework** that:
86
+
87
+ 1. **fragments** requests exceeding any model's context limit,
88
+ 2. **scales linearly** (sequential process with persisted memory),
89
+ 3. **distributes** sub-tasks to **specialists** (heterogeneous models/tools), and
90
+ 4. **feeds back** to the next step with an evaluation of what was done/expected (director LLM).
91
+
92
+ It is not a model; it is a pluggable **orchestration layer** before the input of existing models (text, image, audio, video), using *universal tokens* and current technology.
93
+
94
+ ---
95
+
96
+ #### 🇧🇷 Elementos Essenciais (Telegráfico)
97
+
98
+ * **Agnóstico a modelos:** opera com qualquer LLM/difusor/API.
99
+ * **Pré-input manager:** recebe pedido do usuário, **divide** em blocos ≤ limite de tokens, **prioriza**, **agenda** e **roteia**.
100
+ * **Memória persistida:** resultados/latentes/“eco” viram **estado compartilhado** para o próximo bloco (nada é ignorado).
101
+ * **Especialistas:** *routers* decidem quem faz o quê (ex.: “descrição → LLM-A”, “keyframe → Img-B”, “vídeo → Vid-C”).
102
+ * **Controle de qualidade:** LLM diretor compara *o que fez* × *o que deveria* × *o que falta* e **regenera objetivos** do próximo fragmento.
103
+ * **Custo/latência-aware:** planeja pela **VRAM/tempo/custo**, não tenta “abraçar tudo de uma vez”.
104
+
105
+ #### 🇬🇧 Essential Elements (Telegraphic)
106
+
107
+ * **Model-agnostic:** operates with any LLM/diffuser/API.
108
+ * **Pre-input manager:** receives user request, **divides** into blocks ≤ token limit, **prioritizes**, **schedules**, and **routes**.
109
+ * **Persisted memory:** results/latents/“echo” become **shared state** for the next block (nothing is ignored).
110
+ * **Specialists:** *routers* decide who does what (e.g., “description → LLM-A”, “keyframe → Img-B”, “video → Vid-C”).
111
+ * **Quality control:** director LLM compares *what was done* × *what should be done* × *what is missing* and **regenerates objectives** for the next fragment.
112
+ * **Cost/latency-aware:** plans by **VRAM/time/cost**, does not try to “embrace everything at once”.
113
+
114
+ ---
115
+
116
+ #### 🇧🇷 Reivindicações Independentes (Método e Sistema)
117
+
118
+ **Reivindicação Independente (Método) — Versão Enxuta:**
119
+
120
+ 1. **Método** de **orquestração de prompts** para execução de tarefas acima do limite de contexto de modelos de IA, compreendendo:
121
+ (a) **receber** uma solicitação que excede um limite de tokens;
122
+ (b) **analisar** a solicitação por um **LLM diretor** e **fragmentá-la** em sub-tarefas ≤ limite;
123
+ (c) **selecionar** especialistas de execução para cada sub-tarefa com base em capacidades declaradas;
124
+ (d) **gerar** prompts específicos por sub-tarefa em **tokens universais**, incluindo referências ao **estado persistido** de execuções anteriores;
125
+ (e) **executar sequencialmente** as sub-tarefas e **persistir** suas saídas como memória (incluindo latentes/eco/artefatos);
126
+ (f) **avaliar** automaticamente a saída versus metas declaradas e **regenerar objetivos** do próximo fragmento;
127
+ (g) **iterar** (b)–(f) até que os critérios de completude sejam atendidos, produzindo o resultado agregado;
128
+ em que o framework **escala linearmente** no tempo e armazenamento físico, **independente** da janela de contexto dos modelos subjacentes.
129
+
130
+ **Reivindicação Independente (Sistema):**
131
+
132
+ 2. **Sistema** de orquestração de prompts, compreendendo: um **planejador LLM diretor**; um **roteador de especialistas**; um **banco de estado persistido** (incl. memória cinética para vídeo); um **gerador de prompts universais**; e um **módulo de avaliação/realimentação**, acoplados por uma **API pré-input** a modelos heterogêneos.
133
+
134
+ #### 🇬🇧 Independent Claims (Method and System)
135
+
136
+ **Independent Claim (Method) — Concise Version:**
137
+
138
+ 1. A **method** for **prompt orchestration** for executing tasks exceeding AI model context limits, comprising:
139
+ (a) **receiving** a request that exceeds a token limit;
140
+ (b) **analyzing** the request by a **director LLM** and **fragmenting it** into sub-tasks ≤ the limit;
141
+ (c) **selecting** execution specialists for each sub-task based on declared capabilities;
142
+ (d) **generating** specific prompts per sub-task in **universal tokens**, including references to the **persisted state** of previous executions;
143
+ (e) **sequentially executing** the sub-tasks and **persisting** their outputs as memory (including latents/echo/artifacts);
144
+ (f) **automatically evaluating** the output against declared goals and **regenerating objectives** for the next fragment;
145
+ (g) **iterating** (b)–(f) until completion criteria are met, producing the aggregated result;
146
+ wherein the framework **scales linearly** in time and physical storage, **independent** of the context window of the underlying models.
147
+
148
+ **Independent Claim (System):**
149
+
150
+ 2. A prompt orchestration **system**, comprising: a **director LLM planner**; a **specialist router**; a **persisted state bank** (incl. kinetic memory for video); a **universal prompt generator**; and an **evaluation/feedback module**, coupled via a **pre-input API** to heterogeneous models.
151
+
152
+ ---
153
+
154
+ #### 🇧🇷 Dependentes Úteis
155
+
156
+ * (3) Onde o roteamento considera **custo/latência/VRAM** e metas de qualidade.
157
+ * (4) Onde o banco de estado inclui **eco cinético** para vídeo (últimos *n* frames/latentes/fluxo).
158
+ * (5) Onde a avaliação usa métricas específicas por domínio (Lflow, consistência semântica, etc.).
159
+ * (6) Onde *tokens universais* padronizam instruções entre especialistas.
160
+ * (7) Onde a orquestração decide **cut vs continuous** e **corte regenerativo** (Déjà-Vu) ao editar vídeo.
161
+ * (8) Onde o sistema **nunca descarta** conteúdo excedente: **reagenda** em novos fragmentos.
162
+
163
+ #### 🇬🇧 Useful Dependents
164
+
165
+ * (3) Wherein routing considers **cost/latency/VRAM** and quality goals.
166
+ * (4) Wherein the state bank includes **kinetic echo** for video (last *n* frames/latents/flow).
167
+ * (5) Wherein evaluation uses domain-specific metrics (Lflow, semantic consistency, etc.).
168
+ * (6) Wherein *universal tokens* standardize instructions between specialists.
169
+ * (7) Wherein orchestration decides **cut vs continuous** and **regenerative cut** (Déjà-Vu) when editing video.
170
+ * (8) Wherein the system **never discards** excess content: it **reschedules** it in new fragments.
171
+
172
+ ---
173
+
174
+ #### 🇧🇷 Como isso conversa com SDR (Vídeo)
175
+
176
+ * **Eco Cinético**: é um **tipo de estado persistido** consumido pelo próximo passo.
177
+ * **Déjà-Vu (Corte Regenerativo)**: é **uma política de orquestração** aplicada quando há edição; ADUC decide, monta os prompts certos e chama o especialista de vídeo.
178
+ * **Cut vs Continuous**: decisão do **diretor** com base em estado + metas; ADUC roteia e garante a sobreposição/remoção final.
179
+
180
+ #### 🇬🇧 How this Converses with SDR (Video)
181
+
182
+ * **Kinetic Echo**: is a **type of persisted state** consumed by the next step.
183
+ * **Déjà-Vu (Regenerative Cut)**: is an **orchestration policy** applied during editing; ADUC decides, crafts the right prompts, and calls the video specialist.
184
+ * **Cut vs Continuous**: decision made by the **director** based on state + goals; ADUC routes and ensures the final overlap/removal.
185
+
186
+ ---
187
+
188
+ #### 🇧🇷 Mensagem Clara ao Usuário (Experiência)
189
+
190
+ > “Seu pedido excede o limite X do modelo Y. Em vez de truncar silenciosamente, o **ADUC** dividirá e **entregará 100%** do conteúdo por etapas coordenadas.”
191
+
192
+ Isso é diferencial prático e jurídico: **não-obviedade** por transformar limite de contexto em **pipeline controlado**, com **persistência de estado** e **avaliação iterativa**.
193
+
194
+ #### 🇬🇧 Clear User Message (Experience)
195
+
196
+ > "Your request exceeds model Y's limit X. Instead of silently truncating, **ADUC** will divide and **deliver 100%** of the content through coordinated steps."
197
+
198
+ This is a practical and legal differentiator: **non-obviousness** by transforming context limits into a **controlled pipeline**, with **state persistence** and **iterative evaluation**.
199
+
200
+ ---
201
+
202
+ ### Contact / Contato / Contacto
203
+
204
+ - **Author / Autor:** Carlos Rodrigues dos Santos
205
+ - **Email:** carlex22@gmail.com
206
+ - **GitHub:** [https://github.com/carlex22/Aduc-sdr](https://github.com/carlex22/Aduc-sdr)
207
+ - **Hugging Face Spaces:**
208
+ - [Ltx-SuperTime-60Secondos](https://huggingface.co/spaces/Carlexx/Ltx-SuperTime-60Secondos/)
209
+ - [Novinho](https://huggingface.co/spaces/Carlexxx/Novinho/)
210
+
211
+ ---
tools/hardware_manager.py CHANGED
@@ -1,6 +1,33 @@
1
  # tools/hardware_manager.py
2
- # Gerencia a detecção e alocação de GPUs para os especialistas.
3
- # Copyright (C) 2025 Carlos Rodrigues dos Santos
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  import torch
6
  import logging
 
1
  # tools/hardware_manager.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
+ #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as published by
15
+ # the Free Software Foundation, either version 3 of the License, or
16
+ # (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
25
+ #
26
+ # This program is free software: you can redistribute it and/or modify
27
+ # it under the terms of the GNU Affero General Public License...
28
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
29
+ #
30
+ # Version 1.0.1
31
 
32
  import torch
33
  import logging
tools/optimization.py CHANGED
@@ -1,5 +1,31 @@
1
  # optimization.py
2
- # Focado apenas na otimização estável de quantização FP8.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  import torch
5
  import logging
 
1
  # optimization.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
+ #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as published by
15
+ # the Free Software Foundation, either version 3 of the License, or
16
+ # (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
25
+ #
26
+ # This program is free software: you can redistribute it and/or modify
27
+ # it under the terms of the GNU Affero General Public License...
28
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
29
 
30
  import torch
31
  import logging
tools/tensor_utils.py CHANGED
@@ -1,6 +1,31 @@
1
  # tools/tensor_utils.py
 
 
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  #
5
  # Version: 1.0.1
6
  #
 
1
  # tools/tensor_utils.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
+ #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as published by
15
+ # the Free Software Foundation, either version 3 of the License, or
16
+ # (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
25
+ #
26
+ # This program is free software: you can redistribute it and/or modify
27
+ # it under the terms of the GNU Affero General Public License...
28
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
29
  #
30
  # Version: 1.0.1
31
  #
tools/video_encode_tool.py CHANGED
@@ -1,8 +1,33 @@
1
  # tools/video_encode_tool.py
 
 
2
  #
3
- # Copyright (C) August 4, 2025 Carlos Rodrigues dos Santos
 
 
 
4
  #
5
- # Version: 1.1.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  #
7
  # This file defines the VideoEncodeTool specialist. Its purpose is to abstract away
8
  # the underlying command-line tools (like FFmpeg) used for video manipulation tasks
 
1
  # tools/video_encode_tool.py
2
+ # AducSdr: Uma implementação aberta e funcional da arquitetura ADUC-SDR
3
+ # Copyright (C) 4 de Agosto de 2025 Carlos Rodrigues dos Santos
4
  #
5
+ # Contato:
6
+ # Carlos Rodrigues dos Santos
7
+ # carlex22@gmail.com
8
+ # Rua Eduardo Carlos Pereira, 4125, B1 Ap32, Curitiba, PR, Brazil, CEP 8102025
9
  #
10
+ # Repositórios e Projetos Relacionados:
11
+ # GitHub: https://github.com/carlex22/Aduc-sdr
12
+ #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as published by
15
+ # the Free Software Foundation, either version 3 of the License, or
16
+ # (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
25
+ #
26
+ # This program is free software: you can redistribute it and/or modify
27
+ # it under the terms of the GNU Affero General Public License...
28
+ # PENDING PATENT NOTICE: Please see NOTICE.md.
29
+ #
30
+ # Version 1.0.1
31
  #
32
  # This file defines the VideoEncodeTool specialist. Its purpose is to abstract away
33
  # the underlying command-line tools (like FFmpeg) used for video manipulation tasks