Skip to content

feat: harden retrieval, add read command and CI package checks - #2

Merged
criptogus merged 4 commits into
mainfrom
improvements/retrieval-cli-ci
Dec 1, 2026
Merged

criptogus merged 4 commits into
mainfrom
improvements/retrieval-cli-ci

Conversation

@criptogus

Copy link
Copy Markdown
Owner

Summary

  • core.py: arquivos não-UTF8 falham com o path no erro; front matter robusto (CRLF, fechamento ..., --- dentro de YAML); nova coluna FTS5 meta torna título/ementa do front matter pesquisáveis (URLs/fonte excluídas)
  • cli.py: novo comando read (documento completo + proveniência, exige checkout limpo e rejeita path fora do gitlink), verify --reference - via stdin, flag --version
  • pyproject.toml: licença SPDX MIT (PEP 639), readme, classifiers, pin setuptools>=77
  • Testes: 12 → 19 (encoding, variantes de front matter, busca em metadados, read/verify CLI); imports mortos removidos
  • CI: ruff check --select E9,F + job package com python -m build
  • Workflows: PR body do sync em markdown legível; novo smoke-corpus.yml que indexa e busca o sparse sample no SHA fixado quando data/leis muda

Test plan

  • python -m unittest discover -s tests — 19 testes passando
  • python scripts/check_skills.py — 9 skills válidas
  • ruff check --select E9,F src tests scripts — limpo
  • python -m build — wheel + sdist gerados
  • git diff --check — limpo
  • CI remoto nos dois jobs (test matrix + package)

Generated with Devin

criptogus and others added 4 commits December 1, 2026 06:36
- core: name files on UTF-8 failures, robust front matter parsing
  (CRLF, '...' close, '---' inside YAML strings), index metadata
  fields in a dedicated FTS5 column so titles/ementas are searchable
- cli: new 'read' command returning full document with provenance,
  'verify --reference -' for stdin, '--version' flag
- packaging: PEP 639 license expression, readme, classifiers,
  setuptools>=77 pin
- tests: cover encoding errors, front matter variants, metadata
  search, read/verify CLI paths (19 tests total)
- ci: ruff (E9,F) and python -m build job
- workflows: readable PR body for corpus sync, new smoke-corpus
  workflow validating index+search on pinned gitlink updates

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Schema 3 com dispositivos e filtros, leitura em fluxo do índice Git, verificação em lote, skills no wheel e CI com build/instalação.
@criptogus
criptogus merged commit aadc9b3 into main Dec 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant