Skip to content

Add deterministic triage_run module and MCP tool - #189

Merged
dnncha merged 2 commits into
mainfrom
feat/mcp-triage-run
Nov 24, 2026
Merged

dnncha merged 2 commits into
mainfrom
feat/mcp-triage-run

Conversation

@dnncha

@dnncha dnncha commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Why

Bio-AI agents and automated sequencing pipelines need a single local diagnostic check before counts feed downstream inference. Today callers must run audit, sensitivity, and unmatched-read checks separately and stitch together ad-hoc heuristics to tell whether low assignment comes from an offset shift, reverse-complemented reads, library collisions, or policy sensitivity.

What changed

  • Added python/dotmatch/triage.py with typed domain models (TriageFinding, TriageReport, TriageVerdict) and triage_run(...).
    • Runs run_sensitivity(...) for exact, radius k=1, and best k=1 outcomes and artifacts.
    • Audits the target library in-process with native Matcher for duplicate sequences and Hamming k=1 neighbors.
    • Samples unmatched reads to diagnose offset shifts and reverse-complemented windows.
    • Classifies findings into healthy, review_required, or likely_misconfigured and writes triage_report.json into a fresh directory without overwriting existing runs.
  • Exposed triage_run on the local MCP server (python/dotmatch/mcp_server.py) with strict JSON schema validation and structured envelopes.
  • Added behavior-focused TDD test suites in python/tests/test_triage.py and python/tests/test_mcp_server.py.

Verification

  • make lint typecheck python-test on Linux worker (Agent37):
    • ruff check (typed sources and pyflakes): passed.
    • mypy --strict: passed (45 source files, 0 issues).
    • pyright: 0 errors.
    • pytest python/tests: 2,168 passed, 3 skipped.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T00:51:04.355865Z
We couldn’t complete this review. Comment @codex review to try again.
3398abc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@dnncha
dnncha merged commit f387858 into main Nov 24, 2026
11 of 29 checks passed
@dnncha
dnncha deleted the feat/mcp-triage-run branch November 24, 2026 01:04
dnncha added a commit that referenced this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant