Traceability matrix — gap → contract → module → test → scenario

Source plan: docs/challenge/plan-agente-consultoria.md (Fases 0–7).
Updated: 2026-09-13.

Review order: start with the five-minute judge path, then use this matrix to trace each claimed capability to its contract, implementation, test, and scenario.

Gap / phaseContract / docsModuleTestScenario / fixture
P2.5 docs baselinedocs/testing.md, docs/contracts/*tests/contract/test_schemas.py
P1.1 case from evidencedocs/contracts/investigation.mdservices/investigation_service.py, agent/investigator.pytests/unit/test_agent.py, tests/e2e/test_investigation_flow.pydemo seed, cycle fixtures
P1.2 / tools protocoldocs/contracts/agent-tools.md, docs/investigation/protocol.mdagent/tools.pytests/contract/test_agent_tools.pyallowlisted tools
Fase 2 import pipelinedocs/contracts/api.md (/api/imports/*)services/import_service.py, seeder/ingestion/*tests/unit/test_import_pipeline.py, tests/integration/test_database.pydata/fixtures/{cfdi,bank,efos}
Fase 3 persistencemigrations 00030008, database/README.mddatabase/repositories/postgres.pytests/integration/test_database.py, database/tests/001_demo_invariants.sqldatabase/seeds/001_demo.sql
Fase 4 demo UXdocs/contracts/api.md, docs/demo/runbook.mddemo_injection_service.py, presenters.py, frontend panelstests/contract/test_api_contract.py, frontend/__tests__/investigationUi.test.mjshidden_pass_through, hidden_duplicate_payment
Fase 5 detectorsdocs/detection/rules.md, answer keysdetection/rules/*, detection/scoring/*tests/unit/test_*detector*, scenario seedsdata/answer_keys/*, data/fixtures/bank/valid_cycle.csv
Fase 6 policy / evalagent/policy/v1.md, data/eval_corpus/README.mdagent/eval/*, scripts/eval_agent.pytests/e2e/*, CI promotion gatedata/eval_corpus/{train,eval}/*
Fase 7 opsdocs/ops/recovery-runbook.md, Compose healthprovider_router.py, usage_ledger.pyscripts/verify_recovery.py, CI composeprovider failover budgets
Money trail UIGET /api/graph/{case_id}MoneyTrailGraph.tsxtest_memory_graph_for_case, frontend builddemo graph nodes/edges
Browser smokePlaywright frontend/e2enpm run test:e2e (opt-in)live API + Next

Explicit deferrals (not gaps for this cut)

  • Fine-tuning / custom model weights
  • NetworkX / Solana analytics
  • Full 14-tool catalogue beyond the allowlisted protocol set