Skip to content

CAP-PFM-ELG-003Try a rule against real records

Markdown

CAP-PFM-ELG-003

Try a rule against real records

Markdown
  • DocumentDraft
  • Product intentConfirmed
  • ImplementationObserved

KindCapabilityProduct areaPlatformModuleEligibility, Responsibilities and AttentionRevision1

Read atservices-platform ad3f6a65react-console baf6dae3

The Formal Contract

The narrative above explains; the sections below are authoritative — the rules, scenarios and tests this document binds.

Outcomes
Condition traces show Met, Not met, Unknown or Skipped alongside observed values.Trial evaluation performs no writes or decision recording.
Surfaces
consoleapi
Intent sources
services-platform:docs/milestones/plans/PLAT-M11-plan.md#3. How it works for the userservices-platform:docs/milestones/plans/PLAT-M11-plan.md#D3

Controls

18 controls apply, from the corpus control catalogue.

TC-AZ-001 TC-AZ-002 TC-AZ-003 TC-AZ-004 TC-DAT-001 TC-DAT-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

Permissions

KeyChecked atScope
platform.eligibility.readapitenant
crm.contacts.readservicerecord

Business Rules

7 rules, 5 to be proved before approval. A rule's product intent is derived from its origin: 7 confirmed by a product decision, the rest inheriting this capability's confirmed.

IdRuleKindEnforced atProvenance
01must prove
Confirmed
A trial evaluates the selected draft or numbered version for a subject, returns a full explanation and creates no decision record.
policyservicetest
services-platform:modules/eligibility/tests/e2e/eligibility-evaluate.e2e.spec.js#answers the version’s decision with the trace, never recorded
02must prove
Confirmed
Rule testing requires both eligibility read authority and access to the selected subject’s record.
permissionapi, servicetest
services-platform:modules/eligibility/tests/e2e/eligibility-evaluate.e2e.spec.js#refuses a caller who may not open the primary subject’s record, 403
03must prove
Confirmed
Testing without a current draft or a selected version is rejected, and a draft containing errors returns its problems instead of an eligibility result.
validationservicetest
04must prove
Confirmed
Test subjects are limited to contacts and organizations in the workspace, with an absent subject reported as not found.
validationservicetest
05
Confirmed
The subject-opening check projects its display name alone, excluding photographs and other record fields.
policyservicetest
06must prove
Confirmed
Condition rows display Met, Not met, Unknown or Skipped alongside the read value; an empty stored field does not satisfy its condition.
calculationservice, consoletest
07
Confirmed
Saved test examples belong to the author’s browser and are separated by workspace and rule rather than shared with other staff.
policyconsoleobserved

Scenarios

IdGivenWhenThenProvenance
01An active-adult draft has qualifying, inactive and birth-date-empty contact examples.The author runs all three trials.Condition rows display values with Met, Not met or Unknown, and the empty birth date fails age qualification.test

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.