{
  "evidence_id": "D22_CANDIDATE_DISCOVERY_2026-09-15",
  "task": "[4.1] candidate link discovery",
  "result": "PASS",
  "verified_at": "2026-09-15",
  "implementation": {
    "file": "/mnt/ssd_projects/apps/mathchast_editor/app/save_internet_core.py",
    "bounded_inspection": "At most max(article_limit * 20, 100) raw links are inspected per discovery pass.",
    "preserve_order": true,
    "canonicalize_before_dedup": true,
    "candidate_evidence_persisted": true,
    "discovery_event": "discovery_completed with source_url, accepted and rejected counts",
    "rejection_reasons": [
      "invalid_https_url",
      "host_mismatch",
      "outside_allowed_path",
      "excluded_path",
      "non_html_resource",
      "duplicate_canonical_url",
      "discovery_bound_reached"
    ]
  },
  "fixture_test": {
    "accepted": ["https://example.com/articles/one"],
    "rejected_cases": [
      "tracking query normalized into duplicate canonical URL",
      "excluded path",
      "host mismatch",
      "non-HTML resource"
    ],
    "result": "all expected acceptance and rejection reasons observed"
  },
  "deployment": {
    "service": "mathchast-editor-api.service",
    "status": "active",
    "api_health": "ok; dispatcher_alive=true",
    "backup": "/mnt/ssd_projects/apps/mathchast_editor/app/save_internet_core.py.pre-discovery-race-20260915"
  },
  "tests": {
    "command": "python -m unittest /tmp/test_d22_runtime.py -q",
    "server2_result": "5 tests passed in each of 10 consecutive runs",
    "compile": "local and server2 py_compile passed"
  },
  "rollback": "Restore the recorded pre-discovery-race backup and restart mathchast-editor-api.service; preserve job state and receipts."
}
