feat(pdf): extract standalone PDF ingest package (ESRC-WP-0001)
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s

Bootstrap evidence-source from the citation-evidence src/source PDF slice.

- Headless core (src/pdf): ingest/extract/fingerprint, importing domain
  contracts from @citation-evidence/engine/shared (no local copies)
- Browser upload helpers isolated under src/browser behind a ./browser
  entry point, with an eslint boundary keeping the core browser-free
- pnpm/TS/vitest/eslint scaffold; 52 tests (contract + determinism)
- Fixtures resolved from the sibling citation-evidence checkout, not
  duplicated (real PII) — see docs/ADR-0002; suites skip when absent
- Boundary + fixture decisions recorded as docs/ADR-0001 / ADR-0002
- README/SCOPE rewritten; capability.infotech.pdf-evidence-ingest
  registered, NO_CAPABILITIES removed
- Follow-on workplans ESRC-WP-0002..0004 queued; ESRC-WP-0001 finished

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
tegwick 2026-07-08 20:55:28 +02:00
parent 2fd715ba45
commit cb93c322c0
31 changed files with 5066 additions and 105 deletions

View file

@ -4,7 +4,7 @@ type: workplan
title: "Bootstrap standalone source repo from citation-evidence PDF slice"
domain: infotech
repo: evidence-source
status: ready
status: finished
owner: codex
topic_slug: citation_evidence_mvp
created: "2026-06-21"
@ -64,7 +64,7 @@ T01 extraction boundary and import plan
```task
id: ESRC-WP-0001-T01
status: todo
status: done
priority: high
```
@ -93,7 +93,7 @@ the extraction relies on copying `citation-engine` shared types locally.
```task
id: ESRC-WP-0001-T02
status: todo
status: done
priority: high
```
@ -119,7 +119,7 @@ runtime host.
```task
id: ESRC-WP-0001-T03
status: todo
status: done
priority: high
```
@ -147,7 +147,7 @@ Acceptance: a consumer can pass PDF bytes to this repo and receive a valid
```task
id: ESRC-WP-0001-T04
status: todo
status: done
priority: high
```
@ -176,7 +176,7 @@ browser/session-only behavior after extraction.
```task
id: ESRC-WP-0001-T05
status: todo
status: done
priority: high
```
@ -203,7 +203,7 @@ source-to-anchor round-trip remains an umbrella integration test.
```task
id: ESRC-WP-0001-T06
status: todo
status: done
priority: high
```
@ -227,7 +227,7 @@ package rather than the local `src/source/` copy for the PDF slice.
```task
id: ESRC-WP-0001-T07
status: todo
status: done
priority: medium
```