Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.56 KB

File metadata and controls

35 lines (28 loc) · 1.56 KB

AGENTS.md (article-extractor)

Scope

  • Follow repository conventions in .github/copilot-instructions.md and CONTRIBUTING docs.
  • Use JustHTML for parsing; do not introduce BeautifulSoup.
  • Keep extraction logic centralized in src/article_extractor/extractor.py; keep CLI/server thin.

Workflow

  • Use uv run for all Python commands.
  • Prefer small, surgical diffs; remove dead code instead of adding layers.
  • Avoid hiding errors with broad try/except.
  • Do not add summary reports unless explicitly requested.

Fixtures Policy

  • Never rewrite or regenerate fixture expected outputs unless the user explicitly asks for fixture updates.
  • Treat fixtures as golden references; fix extractor code/tests to match fixture intent.
  • If fixture content appears inconsistent, stop and ask before mutating fixture files.

Validation

  • Run: uv run ruff format . && uv run ruff check --fix .
  • Run: timeout 60 uv run pytest -v
  • Run: timeout 60 uv run pytest tests/ --cov=src/article_extractor --cov-report=term-missing --cov-fail-under=95
  • Run: uv run article-extractor --help

Coverage Policy

  • Minimum unit test coverage: 95% (target near-100% with MECE tests).
  • Always run unit tests with timeout 60 to keep suites fast and detect hangs.

Planning

  • Store PRP plans in ~/codex-prp-plans (not in-repo).
  • Update the plan after each phase; keep UTC timestamps with Z suffix.

Privacy / Safety

  • Do not include local machine details, IPs, or tenant-specific data in code or docs.
  • Sanitize any real URLs before committing; use example.com placeholders.