Skip to content

[Epic] Dimensions 5-7 roadmap: peer-group scoring, HITL calibration, lineage packet, real extraction #699

Description

@stranske

Why

The 2026-06-28 audit's field/opportunity research (Code/Audits/Inv-Man-Intake/2026-06-28-05-field-and-opportunities.md)
found the contracts and the explainable-scoring stance are at/ahead of the institutional manager-DD field, but the
highest-leverage gaps are adjacent problems the existing machinery almost solves. This epic tracks them so
dimensions 5–7 (approach-vs-field / missed-opportunities / tools) are not lost; each child is a separately-scoped
2-week issue. This is a roadmap epic, not a single mergeable change.

Scope

Track and sequence the four highest-leverage opportunities. Each becomes its own AGENT_ISSUE_FORMAT child issue
with its own test/verification gate before implementation.

Non-Goals

  • This epic itself ships no code; do NOT implement everything in one PR.
  • Do NOT claim extraction accuracy/throughput on fixtures (the README disclaimer is correct) — any accuracy claim
    must be backed by a real-document eval set.
  • Scaffold-only completion does NOT count: closing this epic requires the child issues to be filed (and the
    peer-group child to land with a test), not a single placeholder.

Tasks (each → its own child issue)

  • Peer-group / percentile relative scoring (highest leverage, no ML). The asset-class partition
    (scoring/weights.py:LAUNCH_ASSET_CLASSES) and component metrics already exist; add a cohort store
    (DuckDB/SQLite) and emit a percentile rank vs. asset-class cohort alongside the absolute 0–1 score. Child issue
    must include a deterministic test on a seeded cohort.
  • Close the HITL calibration loop. CorrectionRecord + escalations are captured but never measured. Build
    a job that joins corrections to extractions → field-level precision/recall + confidence calibration, used to
    tune the 0.85/0.75/0.60 thresholds in config/extraction_thresholds.yaml with evidence.
  • Regulatory-defensibility lineage packet. Assemble existing provenance/versioning/trace data into a
    one-shot per-decision lineage export (no new capture needed).
  • Make extraction real behind the provider Protocol. Evaluate Docling (MIT, local) as a provider
    implementation + instructor for schema-valid LLM output + DeepEval (PR-gate) / LangSmith datasets (drift).
    Keep the stlite demo fixture-backed.

Acceptance Criteria

  • Four child issues are filed (one per task), each AGENT_ISSUE_FORMAT-compliant with its own named
    test/verification gate, and linked back to this epic.
  • The peer-group child issue includes a concrete deterministic test
    (tests/scoring/test_peer_group.py::test_percentile_rank_against_seeded_cohort) as its gate.
  • This epic links Code/Audits/Inv-Man-Intake/2026-06-28-05-field-and-opportunities.md as the source analysis.

Implementation Notes

  • Source analysis with citations: 2026-06-28-05-field-and-opportunities.md (commercial peers: Canoe, Accelex,
    Backstop, Dynamo; tools: Docling, instructor, DeepEval).
  • Sequence by leverage: peer-group → HITL calibration → lineage packet → real extraction.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions