portfolio-optimiser-claude/pyproject.toml
Kjell Tore Guttormsen 5732d13369 feat(ingest): adopt llm-ingestion-okf as Door A implementation (first consumer)
Replace the local 391-line ingest implementation with a thin adapter over
the shared llm-ingestion-okf library (git-pinned dae0bd1a via Forgejo,
tool.uv.sources). The materialize() signature is preserved; error types are
now the library's typed hierarchy rooted in IngestError, re-exported from
the consumer seam.

- tests/test_ingest_adoption.py: new load-bearing seam tests (delegation,
  offline invariant — allow_network is never passed, error contract),
  detach-proven red twice.
- Golden suites (file + sql) pass UNCHANGED — byte-exact behaviour proven
  against the repo-local fixtures.
- 6 test files migrated to the library error hierarchy; escaping/typed-cell
  unit tests dropped (byte-bound by the ingest-edge.md golden, unit-owned by
  the library's own 189-test suite). Provenance stamp now asserted
  independently from the §5 rule.
- mypy override follow_untyped_imports for llm_ingestion_okf (no py.typed
  upstream yet — reported as a finding).

Suite: 386 passed; ruff + format + mypy --strict clean; shared/, examples/,
runs/s10/ and run_s10.py byte-untouched.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 20:46:51 +02:00

48 lines
1.3 KiB
TOML

[project]
name = "portfolio-optimiser-claude"
version = "0.1.0"
description = "Sibling implementation of the portfolio-optimiser method on the Claude Agent SDK (D7)"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"claude-agent-sdk>=0.2.111,<0.3",
"llm-ingestion-okf",
"pydantic>=2",
]
# Distribution channel (2026-07-16 decision, mirrors the library's B2 answer):
# git pin against the public Forgejo repo — reproducible for every consumer of
# this public repo, uv.lock pins the exact commit. Bump the rev to the release
# tag once the library tags one.
[tool.uv.sources]
llm-ingestion-okf = { git = "https://git.fromaitochitta.com/open/llm-ingestion-okf.git", rev = "dae0bd1a2898b69f436a877538d67afd71e48ad8" }
[dependency-groups]
dev = [
"pytest>=8",
"ruff>=0.8",
"mypy>=1.13",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/portfolio_optimiser_claude"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.mypy]
strict = true
# llm-ingestion-okf ships full inline type hints but (as of 0.1.0 @ dae0bd1a)
# no py.typed marker; follow its inline types instead of degrading to Any.
[[tool.mypy.overrides]]
module = "llm_ingestion_okf.*"
follow_untyped_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]