If you write assertion definitions, this tutorial shows you one that binds two subjects in distinct
roles and releases one Boolean: is the candidate in the child’s complete legal-parent set? You
continue in the project from Control who can request evidence,
with the source and the run still going.
Outcome
A verified relationship assertion bound to a child and a candidate parent.
Time
About 10 minutes
Level
Local development with synthetic data
Prerequisites
The project, source, and run left going by Control who can request evidence
For the local commands in this tutorial, declare development in your shell.
rstack dev sets this value for the processes it starts.
The legal-parent-relationship definition in evidence.yaml names two roles under subjects:
evidence.yaml
subjects:
- role: child
selectors:
- record-by-id
- role: candidate-parent
selectors:
- record-by-id
Each role selects a record through the record-by-idselector profile. The parent-record source fetches the
parent set with the child selector alone, and its response shape requires complete: true, so an
incomplete set is refused before any Function runs. outputs declares one Boolean, is-parent, so
the parent list never enters the assertion.
Each role carries its own subject binding, an opaque value scoped to your audience
(subjectBinding: audience-scoped), in place of the record identifier.
You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.