refactor: Fase 1 — Consolidação Técnica para Beta (v0.2.0)#12
Merged
Conversation
- Cria gurudev/pipeline.py com RECURSOS_DEMO, compilar(), executar() - Remove definições locais de cli.py, importa de pipeline - Remove CLIs legados (src/cli/, gurudev-cli.py) - Remove dependência pydantic - Remove gurudev/logger.py e overrides mypy (mantém override para runtime/bytecode_gen) - Remove código morto: ResourceNotFoundError, parse_tipo() - Remove scripts quebrados - Expande GuruMatrix para 60+ células (CIENCIA, MATEMATICA, LINGUAGEM) - Remove popular_minimo() do core.py, atualiza testes - Corrige teste tautológico em test_density.py - Bump versão 0.1.0 → 0.2.0 - Atualiza README Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: marcabru-tech <176715578+marcabru-tech@users.noreply.github.com>
Verifica explicitamente que 'fatorial' está presente na célula, conforme dados carregados do JSON (ACAO_CIENCIA). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: marcabru-tech <176715578+marcabru-tech@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
marcabru-tech
April 4, 2026 14:46
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features v0.2 were built on top of accumulated technical debt — 3 duplicate CLIs, pipeline logic copied 4–6×, phantom dependencies, dead modules, 2 broken scripts, and a GuruMatrix only 30% populated. This PR cleans the foundation before further development.
Pipeline & CLI
src/gurudev/pipeline.py— single source of truth forcompilar(),executar(),RECURSOS_DEMOcli.pynow imports frompipeline.py; removedpopular_minimo()call fromexecutar()(redundant with_carregar_dados_v02())src/cli/gurudev_cli.py(argparse legacy),gurudev-cli.py(root copy), andsrc/cli/directorygurudev-clientry point frompyproject.tomlDead Code & Phantom Dependencies
pydantic>=2.0(zero imports across the codebase)src/gurudev/logger.py(singleton logger, never imported anywhere)ResourceNotFoundErrorfromexceptions.pyandparse_tipo()fromparser.pyscripts/generate_embeddings.py(importsopenai, not a dep) andscripts/populate_priority_domains.py(imports nonexistentgurumatrix.expansion_tool)GuruMatrix: 30 → 60 cells
Added 3 new domains (CIENCIA, MATEMATICA, LINGUAGEM) × 10 ontologies each, with semantic relations where meaningful:
Updated
embeddings_v0.2.jsonwith deterministic 10-float vectors for all 30 new cells.Cleanup
popular_minimo()fromGuruMatrix(data already indata_v0.2.json); tests updated accordingly[[tool.mypy.overrides]]withignore_errors = true(no longer needed — 0 mypy errors)test_density.py(else Truebranch made the check a no-op)0.1.0 → 0.2.0