Commit Graph

5 Commits

Author SHA1 Message Date
fegger 2e81fa57bd Add uv.lock and bump mypy target to 3.12
Adds the uv lockfile generated from pyproject.toml and updates

tool.mypy.python_version to 3.12 so third-party stubs parse cleanly

while keeping runtime compatibility at Python 3.11.
2026-08-21 16:44:04 +02:00
fegger 865b3bc6a9 Add mandatory development workflow to AGENTS.md
- Enforce Understand → Plan → Wait for Approval → Implement → Validate → Review.
- Require agents to read code, load skills, and produce a plan before changing files.
- Add explicit STOP after presenting the plan until user approval.
- Define minimum validation commands and self-review checklist.
- Allow trivial fixes to skip directly to implementation, but still require validation.
2026-08-21 15:09:03 +02:00
fegger 522a6a9867 Move skills reference to mandatory first step in AGENTS.md
- Add 'Mandatory First Step for Agents' section at the top of AGENTS.md.
- Require agents to inspect .agents/skills/ and load all applicable skills before starting work.
- Clarify that skill instructions take precedence over general instructions and that ambiguous or conflicting tasks must stop for user consultation.
- Remove the old bottom 'Skills Reference' section.
- Add 'Any project rule, skill instruction, or requirement is unclear or ambiguous' to the 'When to Ask the User' list.
2026-08-21 14:12:59 +02:00
fegger 3661831221 Add review skill and make review stage mandatory in AGENTS.md
- Add .agents/skills/review/SKILL.md with a required review checklist covering
  project rules, model client rules, pipeline rules, XML rules, and test rules.
- Update AGENTS.md with a dedicated 'Review Stage Rules' section that makes
  review mandatory and maps confidence thresholds to XML generation behavior.
- Add review skill to the skills reference.
- Add .ruff_cache/ to .gitignore and keep agent XML templates out of the '*.xml' ignore rule.
2026-08-21 14:06:48 +02:00
fegger 7e706793fa Initial scaffold: local invoice OCR pipeline with Ollama, classifier branches, structured extraction, review, and Odoo XML export
- Add AGENTS.md and project-specific Zed skills (odoo-ocr-pipeline, odoo-xml-import, local-vlm-client).
- Implement Pydantic schemas for documents, invoices, review results, and VLM responses.
- Add unified BaseVLMClient with Ollama implementation and llama.cpp stub.
- Build pipeline stages: loader, classifier, digital_pdf/scanned_print/handwritten/mixed_unknown branches, extractor, reviewer, xml_builder.
- Add CLI entry point  with sidecar JSON and confidence-gated XML output.
- Include prompts for classifier, OCR, extraction, and review models.
- Add tests with FakeVLMClient; pytest, ruff, and mypy all pass.
2026-08-21 14:04:42 +02:00