{
  "id": "DN-N014",
  "version": "1.0.0",
  "commission": "N014",
  "title": "Moving a Stock Screener in 2027: Test Missing Values Before Migrating Rules",
  "checkedOn": "2026-12-04",
  "planningEdition": 2027,
  "evidenceClass": "Original DN deterministic methodology and labelled synthetic fixture",
  "readerDecision": "Whether two entered bounded predicates give the same known inclusion decisions on a fixed small fixture, and which comparisons remain unresolved.",
  "sourceReview": [
    {
      "id": "S1",
      "url": "https://www.koyfin.com/help/my-screens/",
      "title": "Koyfin — My Screens",
      "lastUpdated": "2024-07-12",
      "checkedOn": "2026-12-04",
      "claim": "The documented minimum-P/E example includes the minimum; screen universe and dynamic rescan are separate settings.",
      "limitation": "Older documentation, not a current UI observation; no missing-value behavior inferred."
    },
    {
      "id": "S2",
      "url": "https://help.trendspider.com/kb/scripts/scripts-scripts-everywhere-scan-backtest-create-alerts",
      "title": "TrendSpider — Visual Scripts",
      "checkedOn": "2026-12-04",
      "claim": "The specific Within range of operator is documented as strict greater-than and less-than, excluding equality at its endpoints.",
      "limitation": "Specific operator only; not a claim that every TrendSpider comparison is exclusive or that it matches any Koyfin field."
    },
    {
      "id": "S3",
      "url": "https://help.trendspider.com/kb/scanner/market-scanner-faq-markdown-html",
      "title": "TrendSpider — Scanner FAQ",
      "checkedOn": "2026-12-04",
      "claim": "Any, All and None have distinct group meanings; scanner results have a refresh control; Current Candle includes a forming candle.",
      "limitation": "No missing-data policy or real-time feed measurement inferred."
    },
    {
      "id": "S4",
      "url": "https://www.koyfin.com/help/release-notes/check-ticker/",
      "title": "Koyfin — Check Ticker",
      "lastUpdated": "2026-09-10",
      "checkedOn": "2026-12-04",
      "claim": "The feature documents a security-by-criterion pass/fail view; current plan availability is stated on the linked page.",
      "limitation": "No paid account was opened; this is a documented evidence-collection route, not a DN hands-on test."
    },
    {
      "id": "S5",
      "url": "https://www.koyfin.com/help/faq/can-i-download-data/",
      "title": "Koyfin — Can I download data?",
      "lastUpdated": "2026-12-01",
      "checkedOn": "2026-12-04",
      "claim": "The current FAQ excludes global-equity financials, estimates and valuation data from download under supplier restrictions while allowing specified other categories.",
      "limitation": "No licence or extraction permission is granted by this article."
    },
    {
      "id": "S6",
      "url": "https://www.postgresql.org/docs/current/functions-comparison.html",
      "title": "PostgreSQL — Comparison Functions and Operators",
      "checkedOn": "2026-12-04",
      "claim": "Ordinary comparisons with null produce unknown; BETWEEN includes endpoints.",
      "limitation": "A public technical reference illustrating explicit semantics, not proof of either provider's implementation."
    }
  ],
  "scope": {
    "rows": "1 to 100 explicitly identified rows on one shared metric and unit",
    "states": [
      "observed",
      "missing"
    ],
    "freshness": [
      "current",
      "stale",
      "unknown"
    ],
    "ruleFields": [
      "label",
      "min",
      "minInclusive",
      "max",
      "maxInclusive",
      "missing",
      "freshness"
    ],
    "missingPolicies": [
      "unknown",
      "exclude"
    ],
    "freshnessPolicies": [
      "current-only",
      "ignore"
    ]
  },
  "algorithm": [
    "Require a distinct nonempty row ID, explicit observed/missing state and explicit freshness label.",
    "Require observed values and bounds as decimal strings; a missing value must be null.",
    "Compare decimals with integer scaling to eight fractional places, without binary floating-point or epsilon tests.",
    "For missing rows, retain an unknown result or exclude by explicit policy. Never synthesize zero.",
    "For current-only rules, withhold a membership decision when a stored observation is stale or freshness is unknown. A reader-declared current label is not verified.",
    "Otherwise apply lower AND upper bounds using their independent inclusion flags.",
    "A row is unresolved if either outcome is unknown. If both are known, compare include/exclude states; equal states agree and unequal states mismatch.",
    "Only zero mismatches AND zero unresolved rows produce fixture-only matched status. No result asserts actual provider parity."
  ],
  "default": {
    "counts": {
      "a": {
        "include": 3,
        "exclude": 2,
        "unknown": 3
      },
      "b": {
        "include": 4,
        "exclude": 4,
        "unknown": 0
      },
      "definiteMismatches": 1,
      "unresolved": 3,
      "knownAgreements": 4
    },
    "mismatchIds": [
      "upper"
    ],
    "unresolvedIds": [
      "missing",
      "stale",
      "unknown_age"
    ],
    "fixtureParity": "not matched",
    "actualProviderParity": "not established"
  },
  "validation": {
    "decimalFormat": "Optional minus, 1 to 15 integer digits (no excess leading zeros), optionally 1 to 8 decimal digits; no exponent or symbol.",
    "ids": "Unique; up to 50 letters/digits/dot/underscore/hyphen; starts with letter or digit.",
    "limits": "100 rows; record JSON at most 60000 characters; each rule at most 5000; source basis at most 2000.",
    "unknownBasis": "Blank source basis remains explicitly unknown in the export.",
    "edgeCases": [
      "Inclusive/exclusive equality",
      "Observed zero versus missing null",
      "Negative values",
      "Equal min/max and empty interval",
      "Stale and unknown freshness",
      "Both outcomes unknown",
      "Eight-place decimal comparison",
      "Duplicate IDs",
      "Invalid types or missing schema fields",
      "Bounds in reverse order"
    ]
  },
  "limitations": [
    "No actual provider screen, feed, entitlement, universe, field mapping or data licence is tested.",
    "Source and destination rules are independent reader declarations; this tool does not establish that they reconstruct a provider UI.",
    "One shared fixed dataset isolates rule semantics; mismatches caused by provider datasets or different observation times require separate evidence.",
    "Freshness labels are entered, not inferred. Current-only withholds stale inputs before applying the current-value predicate.",
    "Only bounded numeric AND predicates are implemented. Nested groups, ranks, percentiles, temporal crossings and multimetric joins require their own fixtures.",
    "A finite matching fixture does not prove all-input equivalence, investment merit, execution readiness or historical performance."
  ],
  "recheckTriggers": [
    "Provider operator or field definition changes",
    "Source or destination universe changes",
    "Export/API permissions change",
    "Missing or freshness policy changes",
    "A new edge case fails parity"
  ],
  "duplicationBoundary": {
    "canonicalIds": [
      44936,
      45154,
      45501
    ],
    "distinction": "This compares row membership under two predicates. It neither ranks platforms nor aggregates API observations."
  },
  "license": {
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "scope": "DN original method, code and synthetic fixture only; linked third-party documentation retains its rights."
  }
}
