---
id: SCR-PFM-ELG-008
title: Eligibility rule tester
route: '/console/{tenantId}/configuration/platform/eligibilityRules/{key}/test'
surface: console
product_area: platform
module: eligibility
revision: 1
status: draft
design_intent: confirmed
origin: >-
  PLAT-M11 plan approved by Andrew 2026-10-21, D1 "Always check" for unknown
  persons and D3 "Browser-only for now" for saved test cases; the built screen
  is the approved baseline under the UI change approval rule
implementation_evidence: observed
inference: []
source_sha:
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
purpose: >-
  Try draft or released qualification against accessible records and a chosen
  day, inspecting explanations without recording decisions.
supports:
  - JNY-PFM-ELG-001
  - CAP-PFM-ELG-003
permission: platform.eligibility.read and read access to the chosen subject's record
entry_from:
  - 'SCR-PFM-ELG-007: tester navigation'
  - A copied subject-and-day test link
exits_to:
  - SCR-PFM-ELG-007
displays:
  - field: >-
      Subject slots, evaluation day, selected purpose and supplied facts with
      trust levels
    source: getEligibilityDefinition; listEligibilityConsumerKinds
  - field: >-
      Overall decision and condition explanation using Met, Not Met, Unknown and
      Skipped
    source: 'testEligibilityDefinition (DOM-PFM-ELG-003, never recorded)'
  - field: Member-facing rendering and draft-versus-release comparison
    source: testEligibilityDefinition explanation
  - field: Rule-specific saved cases retained in this browser only
    source: browser storage only
actions:
  - label: Run test
    operation_id: testEligibilityDefinition
    permission: platform.eligibility.read
    confirm: false
  - label: Save test case
    operation_id: 'none: stored in the browser'
    permission: platform.eligibility.read
    confirm: false
  - label: Copy link
    operation_id: 'none: client action'
    permission: platform.eligibility.read
    confirm: false
states:
  - empty
  - loading
  - error
validation:
  - BR-CAP-PFM-ELG-003-01
  - BR-CAP-PFM-ELG-003-02
  - BR-CAP-PFM-ELG-003-03
  - BR-CAP-PFM-ELG-003-04
  - BR-CAP-PFM-ELG-003-05
  - BR-CAP-PFM-ELG-003-06
  - BR-CAP-PFM-ELG-003-07
patterns:
  - SubjectCombobox with CRM picker sources
  - RelativeDateInput
  - ExplanationTree
  - DecisionBadge
  - SaveCaseDialog and SavedTestCases
  - Full-page TestPage
component: components/eligibility/test/test-workspace.tsx
evidence:
  - >-
    react-console at baf6dae: components/eligibility/test/ (test-page,
    test-workspace, explanation-tree, decision-badge, saved-test-cases,
    subject-combobox); lib/eligibility-test/.
controls: [TC-AVL-005, TC-AZ-001, TC-AZ-002, TC-AZ-003, TC-AZ-004, TC-DAT-001, TC-DAT-003, TC-IAM-001, TC-IAM-002, TC-IAM-004, TC-IAM-005, TC-LOG-002, TC-LOG-003, TC-LOG-005, TC-PI-001, TC-PI-003, TC-PI-005, TC-PRV-001, TC-PRV-002, TC-TEN-001, TC-TEN-002, TC-TEN-003, TC-VEN-001, TC-VEN-002, TC-VEN-003]
---
# Eligibility rule tester

## What the Screen Is For

The tester lets staff investigate the answer before relying on a qualification rule.

## What It Shows and Lets People Do

Choose subjects, day, purpose and fact inputs, then evaluate draft or release logic. The result marks conditions and values, can compare draft with publication and offers member-facing rendering. Saved cases stay in this browser, and shared links carry selected subject and day context.

## States and Errors

Missing expressions, inaccessible or absent subjects and invalid drafts have distinct feedback. Tests make no history inserts. Built Unknown terminology differs from approved Can’t Tell wording and remains a finding.

## Patterns It Must Respect

Use the actual SubjectCombobox, RelativeDateInput, ExplanationTree and DecisionBadge components. Browser-only case storage follows the recorded planning choice rather than introducing shared tests.
