ADR-075: Outbound Trigger Substrate — The OUTBOUND Ledger, Late-Bound Single-Record Sends, Categorical Settlement
Status
Accepted (2026-09-13) — implemented by U2 (#1828 / #1835, !1624 / !1625), the first consumer, and completed by U3
(#1829, !1626); the as-built notes below record every deviation. Drafted FIRST per the
draft-first path as U0 (#1826) of epic &87;
plan: Outbound Interface Trigger Parity (&87). Executes the maintainer’s
2026-09-02 re-scope of #243 / #244 ("event-driven legs assembled from cases/placement data via S2S, enabled per partner
via exchange_partners + DSA, dispatched through the existing send-job outbox"). The design took the maintainer’s
25-finding plan-mode gate on rev 1 (2026-09-12; the fold table is the last section) and was approved as rev 2. Became Accepted with U2, the first consumer.
U1 as-built note (2026-09-13, #1827). The projection’s release audit rides the EXISTING case.person_pii_exported
key as its third wrapper, discriminated by purpose = outbound_principals (ADR-003’s multi-wrapper rule; the
SSN-release precedent) — not the new case.outbound_principals_released key decision 11 named; the security parser
needs no new arm. The projection returns every member’s role verbatim and never pre-filters — exchange’s admission
rule (decision 6) does. Duplicate household rows (a schema gap filed as its own fix:) collapse to the earliest per
person so the single-record arms can promise exactly one principal. As-built (#1831): that gap is closed — a
partial unique index holds at most one ACTIVE row per (case_id, person_id), and the collapse stays as
belt-and-braces.
U2 as-built note (2026-09-13, #1828 / #1835). The closure indicator a record carries is decided at RESOLVE and
recorded on the send job (exchange_send_jobs.record_closure), never re-derived from the stage at assembly: an
opening record and the closure that follows it are two sends the partner receives in that order, and reading the
stage at dispatch would make both say closed the moment the case closed. That column is also what makes decision 9’s
"a stage_opened resolve of an already-closed case emits closed records directly" true without a second code path,
and it keeps a job’s bytes a pure function of (its row, its pinned source_version) — which decision 8 needs. The
catch-up act takes {interface, kind} and NOT decision 15’s since: the cases open-stages arm is an id cursor with
no time filter and the walk is idempotent, so a parameter the projection cannot honour would be a lie. A closure
resolve that finds a recipient absent from the stage’s current membership records removed_at and stages nothing —
the ongoing stage has no household-removal event to bind, so absence at closure is the only evidence there is.
U3 as-built note (2026-09-13, #1829). The leg TOKEN is stage-qualified (ong_* / inv_*). The pair
(interface, leg) is what the admission ledger stores and what dispatch resolves a leg from, so a bare
stage_opened stopped identifying one leg the moment the INV stage existed; the migration renames the rows already
written rather than orphaning them into an unresolvable dispatch. The two INV principal legs key on the REPORT the
link event names — the report is NOT a stage, so their resolve maps it to the open investigations of the report’s
referral and acts on each in its own transaction, which is what lets one occurrence reach several stages without one
unreadable stage rolling back its siblings. The removal leg reads no PRINCIPALS projection — only the report → open-investigations id arm every report-keyed
leg shares: the link it names is already gone by the time its resolve runs, so the subject rides the admission
(subject_person_id) where a released held admission can still find it. And the per-stage FIFO key is taken from the stage a record belongs to, not from the job that
staged it, because a report-keyed occurrence spans stages.
#1839 as-built note (2026-10-11). Decision 9’s FIFO orders SENDS per stage; it never ordered an
investigation’s RESOLVES, because the two INV principal legs key their resolve on the REPORT
(cprs:{report_id}) while the opening and the closure key on the investigation. So an opening and a removal, or a
link and a closure, never share a lane. A resolve reads the membership outside its write transaction, so an admit
pass could write from a read that a concurrent removal or closure had already contradicted: a child unlinked
mid-read was admitted after the removal found nothing to retire, and a child linked as the investigation closed was
opened after the closure found nothing to close. Resolves now serialize per STAGE rather than per lane: every
resolve transaction takes the stage’s transaction-scoped advisory lock first (the two-key family, under its own
literal class, clear of the one-key space the rewrite fence holds and of the request-claims class), a closure or a
removal bumps the stage’s epoch (exchange_outbound_stage_epochs) under it, and a reading pass compares the epoch
it noted before its read with the one under the lock — moved means the read is re-taken under the lock, where no
peer can move the stage again before it commits. The child unlinked mid-read is never admitted; a child linked
mid-closure whose link resolve reached the stage gets one closure record (decision 9’s already-closed path). A link
whose report → open-investigations read lands after the closure reaches no stage at all, so its child gets nothing;
that pre-existing gap is #2264, not this note’s fix. Rejected: one FIFO lane per investigation (admission runs
inside the inbox transaction and never reads another service, so a report-keyed occurrence cannot know its
investigations when its job is keyed); a removal tombstone on the recipient row (it closes only the first race and
makes the OUTBOUND table record people never admitted); reading under the lock on every pass (it holds a send-pool
connection across every cases call, against the pool’s brief-hold sizing).
#2264 ruling and as-built note (2026-11-11). The maintainer ruled the gap the #1839 note left open: a child linked
to an investigation before it closes, whose link resolve runs after the closure commits, is owed exactly one closure
record, and no opening. Decision 6’s "maps it to the open investigation(s)" and the cases-projection decision’s
"report → open-investigations" arm are amended: the report arm (GET /v1/cases/reports/{report_id}/outbound-stages)
answers the referral’s investigations in two lists, investigation_ids (not closed) and closed_investigation_ids
(closed, with a closure time), and a link resolve acts on both; a removal still acts on the open ones only, since a
closed stage sends nothing further. On a closed investigation the link leg admits only the child its own occurrence
names, and only when that child joined at or before the closure: the principal’s added_at (the link row’s
linked_at) against the stage’s closed_at, both read from the investigation’s projection, both craig-cases' own
record, so no craig-exchange clock and no queue timing enters the comparison. linked_at is the link transaction’s
database clock and closed_at the closing request’s service clock, so a link and a closure within the skew of those
two clocks can still order either way; a tie counts as linked before. The record is staged by decision 9’s
already-closed path, so it is a closure and the recipient is stamped in the same transaction. Exactly one: the
recipient identity (decision 3’s unique key) makes a replayed or second link resolve admit nobody, the stamp makes
the closure’s own pass skip the child, and the #1839 stage lock orders the two passes. A child linked after the
closure gets no record, as before. A late link resolve now reads the closed investigation’s principals once (one
release audit on the cases side, correlated to the admission) even when it then admits nobody. Rejected: carrying
the closure time on the report arm and the link time on the admission (the admission ledger stores no link time, so
it needs a migration and a floor bump for a comparison the projection already serves); letting a late link admit
every unreported principal of the closed stage (one link would then report children the partner was never told of,
long after the closure); a compatibility default for the new list (pre-1.0, and the Deployment decision rolls the
cases image before exchange, so a missing list is refused as an unusable answer, never read as "none closed").
#2244 as-built note (2026-10-11). Decision 7’s 5 s read budget and decision 10’s settlement vocabulary are
unchanged; what changed is how long an assembly-unavailable job waits. It rode the send worker’s partner ladder
(5 s, then 30 s), so a brief craig-cases saturation, whose 5 s pool-acquire cutoff matches the read budget, delayed
a partner record by about 40 s and held its stage’s later jobs behind it (decision 9’s FIFO). A failed cases read
now retries first on a local-read schedule (triggers::local_retry): four retries at 1, 2, 4 and 8 s, each between
half and all of its base, the fraction taken from the low ten bits of the job’s id (random in Postgres 18’s
uuidv7(), the column default every job id comes from), so a burst spreads across poll ticks with no clock or RNG
and a job’s schedule can be recomputed from its row. A local retry is a reschedule (pending with
next_attempt_at), never a sleep inside a dispatch, so the claim lease and decision 7’s arithmetic are untouched
and the job keeps its FIFO place. It reached no partner, so it refunds its claim’s attempts increment: the ladder
and MAX_ATTEMPTS keep counting ladder attempts only, and claim_generation − attempts counts local retries (a
negative claim_generation − attempts reads as spent; a hand-edited counter shifts the count, which stays
bounded). Once the four are spent, the failure joins the ladder at the rung its ladder attempts have reached (the
first, 5 s, for a job whose failures were all local). No failure count waits longer than before. The in-flight cap
(TRIGGER_CONCURRENCY, 8) is unchanged, but under a sustained cases saturation a failing job reads cases five times
in about 40 s instead of twice, so exchange’s read rate on cases rises (up to the same cap): retry amplification that
could stretch the saturation. At 8 threads the battery runs green today (#2243), and no wait is longer at any thread
count. The battery re-measure (2026-10-11) still redded the outbound suite at 16 threads with no retry of any kind
in the window: while the suite’s CPRS partner is active every concurrent test’s case and investigation events are
admitted as trigger work, so the lane ran at its concurrency cap through about 1,000 foreign jobs and the suite’s own
queued past its settle window. The schedule stands on its own; the maintainer then dropped the 16-thread battery
(2026-10-11, #2244 closed won’t-do for the thread change), so the fallback below was not built.
Rejected: a read budget above the cases cutoff (it lengthens every
dispatch and holds a trigger permit longer, inside the lease margin decision 7 sized); more cases pool capacity (a
fleet-wide budget, and it only moves the cliff); an admission scope the outbound suite owns (a production admission
change for a test topology; it was the ruled fallback, dropped with the 16-thread battery, #2244); a
local_read_retries column (the refund gives the same count without a migration); an RNG jitter draw (nothing for a
test to seed, and the id’s random bits spread a burst as well).
#2343 amendment (2026-10-14, plan custody-episodes-doe-slds D6). A third stage kind, custody_episode: a
craig-cases custody episode (ADR-081) plays the education partner’s stage, so a re-entry is a new stage_id. The wire
extends in place (one resolve and dispatch path): OutboundStage.custody (the instants, retracted, and the served
legal-status rows: the live rows, or a retracted episode’s episode_retracted snapshot) and OutboundPrincipal.gtid
(the child’s GTID: identifier_id, the value decrypted for that response only, ended_on, retracted), both
omitted when absent, so the case and investigation arms answer the bytes they did. OutboundReadQuery.identifier
names the GTID row a custody read serves (a recipient’s pin, from U6); a pin that names no GTID row of the child
serves none, never another GTID, and the case and investigation arms refuse it (400, field identifier). Decision 12
gains the custody set and single-record arms (closed and retracted episodes served, 404 only for an unknown id), a
person → open-episode id arm and a custody_episode walk on the open-stages arm (open episodes whose child holds a
live GTID), all behind the same allowlist of one. Each principal read stages the existing third
case.person_pii_exported wrapper with stage_kind = custody_episode, its bytes unchanged; the GTID never enters
it, nor any log line or error. Exchange learns the kind only where it must: the read routing, the stored-token parse,
and cprs_stage_type, which returns None for a custody stage (a CPRS record over one settles assembly-refused).
No exchange migration; nothing reads the kind until U6’s legs.
#1821 amendment (2026-10-15, plan custody-episodes-doe-slds D7). The DOE-SLDS legs: six legs over two entity
kinds (custody_episode, person_identifier; an identifier leg admits only the GTID kind). Decision 9’s FIFO key is
per family: DOE record jobs key on the child (doe_slds:{person_id}), and every DOE resolve takes a per-child
transaction lock after its stage lock, so one child’s records send in staging order across episodes. A recipient is
pinned to the GTID row it was listed under (exchange_outbound_recipients.subject_identifier_id, an id, never the
GTID): every later read for it names that row, and a GTID end removes only the recipients pinned to it. A DOE INC
waits (predecessor-unsettled, a retryable class) while the child’s older recipient is unremoved; its last attempt
holds the admission in the same transaction, and the transaction that stages the removal releases it (FORK A-1 a).
An INC, an episode retraction or a corrected close for an older episode than the listed one is
dismissed superseded-by-reentry and sends nothing; a GTID end is never skipped (FORK A-2 a). Decision 10’s settlement is unchanged in shape, but a DOE
bad-status carries no body digest (a 4xx body may echo a GTID), and the stored acknowledgement is an allow-list
(transaction_id, status, received_at) that omits the GTID. The migration bumps schema_compat_floor: a
pre-#1821 replica knows no DOE leg and would settle every DOE job it claims unresolvable-dispatch.
#1813 amendment (2026-10-19, plan partner-auth-medicaid-application D3, ADR-083). Decision 10’s settlement
vocabulary gains auth-unsupported and auth-misconfigured (nothing sent; an admission holds; a job is terminal),
auth-unavailable and auth-refused (the trigger lane’s 401 or 403 from the leg’s family, rendered with its status
and no body digest; both retry on the remaining ladder), and partner-inactive (manual dispatch only, terminal); a
rendering may end ` ref=<name>`, the reference at fault, never a value. Decision 13’s release gains a record arm
(record_class): it re-stages the interface’s failed record jobs of one auth class as decision 8’s supersession
does (same ordering key, admission, recipient, source version and closure; a new correlation and transaction; a
fresh attempt budget), marks the old row restaged_as, and the send-job retention sweep keeps an unreleased one
(#2427). A stored acknowledgement and every stored error are redacted of the presented credential. The credential
half of decision 15’s CPRS prerequisite (#1813) is met; #1812 is not.
Binding is the other half of ADR-032 §1.3 (2026-09-13, #1835). Boot refuses a declared row whose leg exchange
cannot serve; nothing checked that the row’s EVENT was bound on the consumer queue. A declared-but-unbound row passes
validation and then never fires — the deployment looks live and the partner never hears from us. case.closed did
exactly that for one battery. The consumer now binds the union of its own arms and every event the matrix names, and
a unit test pins it.
Amendment (2026-11-02, #2508): no record digest is stored. Decision 7’s "the SHA-256 of the transmitted bytes" and
decision 2’s recipient-ledger "digest" are retracted. The digest was unkeyed, and for a DOE SLDS recipient its preimage
held the child’s GTID and full date of birth, so a cases + exchange dump could confirm both offline on rows that are
never age-pruned; nothing read it. record_sent now stamps only the correlation and the source version, and a
forward migration drops the recipient ledger’s digest column and bumps the floor. No replacement digest,
HMAC or secret is added. Content provenance for a partner-side capture is decided when a real DOE (or CPRS)
connection is onboarded; until then the correlation is the join to a partner’s capture.
Amendment (2026-11-08, #2496): the operator acts' audit verdicts. Decision 16’s release (both arms) and dismiss
stage an act event naming the acting admin (ADR-003 § Routing Keys); none is row-audited alone (dismissed_by
stands beside its event). The catch-up walk stages none and stamps no actor: a known gap, #3001. The verdicts live
in the write-route census xtask/audit-write-census.txt (ADR-003 § Amendment #2211, as-built #2496).
Erratum (2026-11-08, #3001): the catch-up run row did name its actor (exchange_trigger_catchup_runs.requested_by);
the walk now also stages exchange.trigger_stages_caught_up naming the walking admin, in the transaction that closes
its run (ADR-003 § Routing Keys).
Amendment (2026-11-29, #3196): the legs are a partner crate’s (ADR-089). Decision 1’s "craig-exchange owns the LEGS (membership resolver, single-record assembler, ack classifier)" is replaced: a leg is a contract a partner crate implements, registered through the jurisdiction’s partner set. craig-exchange keeps the registry, the ledgers, the passes, the settlement classes and a catalogue of how each admissible event identifies its occurrence, and the per-person listing rules of #1821 become fields a leg declares. Boot’s dual-site validation extends to the catalogue. No persisted token changes. The decision is recorded in ADR-089 and delivered by its plan’s steps.
Context
Outbound partner sends are staged manually through POST /v1/exchange/send — claim_first → create_transaction
stage_send_job + publish_exchange_send_requested in one transaction, drained by the leased ExchangeSendWorker
(MAX_ATTEMPTS = 6, backoff ladder, send_value through the boot-materialized adapter registry of
ADR-032). Every catalogued SHINES adapter exists as typed wire code; the
CPRS adapter takes ONE CprsInvOngStageData per send and answers a CprsInvOngAck whose return_code distinguishes
acceptance (0) from the three catalogued rejections (300, 301, 305).
The catalogue (CPRS INV/ONG) describes a PULL over SOAP/XML against
SHINES’s CPRS_CPS_INSERT_OUTBOUND staging table with TABLE semantics: insert on admission, update on change, entry
removed so no further updates are sent, closure indicator on stage close, continuation six months past 18 and after
conversion to collateral, initial pre-population of open stages, and DT_LAST_UPDATE not provided to the partner. The
crate inverted the transport to a JSON push; the semantics are what an event-driven leg must reproduce.
Constraints that shape the design: the inbox consumer is the ADR-062 attempt machine (effects + claim commit atomically;
five attempts; DLX); two existing handlers on the same queue must keep running; exchange_send_jobs.payload,
exchange_transactions.request_payload, last_error, error_message and exchange.failed{error} are read by two APIs, a
UI, the security parser and the logs — today they carry whatever the adapter returned; adapter_kind on a partner row is
mutable; the SSA worker’s dsa_is_active checks status and expiration only (not ownership, not effective_date); the
cases service-only precedent is the SSN release (allowlist of ONE, the release audit event staged BEFORE responding —
ADR-065 §D2 / H21); CasesClient acquires its bearer outside its 5 s request budget; the mock-server host buffers every
request while the partner routers are stateless; ADR-063 §D3’s schema_compat_floor makes an older binary refuse to boot,
not stop. The catalogue’s trigger FACTS for six of the seven interfaces do not exist in CRAIG (no legal-status / custody
model, EMPI id, GTID, Initial Medicaid Application, child-support-referral decision + NCP records, SMILE acts, TCM claims),
and the Primary Case Manager’s names are structured nowhere.
Decision
-
Triggers are registry data; the matrix is bundle-declared.
StateBundle::outbound_triggers() → Vec<OutboundTriggerSpec { event, interface, leg }>(defaulted, empty); GA declares the CPRS rows. craig-exchange owns the LEGS (membership resolver, single-record assembler, ack classifier) in atriggers::Registrykeyed by(event, interface, leg); boot validates dual-site (ADR-032 §1.3): every declared spec has a leg whose adapter kind is registered andGeneric. -
Additive dispatch inside the existing inbox transaction. Existing arms run first;
triggers::admitfollows for event types with matrix rows; both effects share the attempt’s commit. -
Two ledgers, two identities.
exchange_trigger_admissions— one row per trigger OCCURRENCE, partner-free identity(interface, leg, entity_kind, entity_id, entity_revision)(revision TEXT), the envelopeevent_id,status ∈ {staged, held, resolved, dismissed}with a closedheld_reason(held → stagedby release,staged → resolvedby the resolve transaction,held → dismissedby dismissal; the last two terminal).exchange_outbound_recipients— the OUTBOUND table per(interface, partner, stage_kind, stage_id, person_id): admission, role,dob_year_month, removal, closure-sent, last correlation / source version / digest. Ids, dates and digests only. Both are recoverable work, never age-pruned. Amended (#2508): no digest; ids and dates only. -
Server-owned provenance.
exchange_transactions.origin ∈ {manual, trigger}+admission_id;exchange_send_jobs.kind ∈ {payload, resolve, record}+admission_id,recipient_id,source_version,ordering_key;transaction_idnullable exactly forresolvejobs (a CHECK ties the two). Late-bound behaviour keys onkind, never onexchange_type; the manual route refuses registered trigger tokens (EXCHANGE_TYPE_RESERVED). -
Consent = a per-interface knob (
CRAIG_EXCHANGETRIGGERS<IFACE>__ENABLED, default off) + exactly one active partner byadapter_kind+dsa_admits(ownership,effective_date,expiration_date, status, on the jurisdiction clock) +Generic, evaluated at admission (a failure is aheld(<reason>)row) and re-bound at every dispatch (partner identity +adapter_kindequality + DSA; a mismatch is terminalpartner-changed). -
Membership resolves ONCE in a worker transaction (
resolvejob → one recipient row + one transaction + onerecordjob per newly admitted person,ON CONFLICTon the recipient identity; the INV link legs admit on the REPORT and the resolve maps it to the open investigation(s));stage_closedaddresses every non-removed recipient regardless of current age; the admission rule (child roles under 18) applies to new recipients only. -
One record per job, assembled at dispatch under one outer 5 s budget (bearer + GET + decode),
transaction_id = correlation_idon the wire; after settlement only the reference, the source version and the SHA-256 of the transmitted bytes are stored. PII never rests in exchange. Amended (#2508): the SHA-256 is not stored; the reference and the source version are. -
Immutable identity per attempt.
source_versionpins the bytes to the correlation; a change after an unknown-outcome attempt supersedes the job and stages a new correlation. -
Per-stage FIFO enforced locally (
ordering_key), truth-at-resolve for producer reordering; no partner ordering assumed. -
Acknowledgements classified per leg (
Accepted | Rejected(code) | Mismatchwith id equality); categorical settlement (SendFailure { class, status, body_digest }) on every persistence path for ALL jobs. -
The cases projection is service-only (allowlist of one), data-minimised, and stages
case.outbound_principals_releasedbefore responding, correlated to the job (admission_idfor aresolveread, the job’scorrelation_idfor arecordread); ONG and INV each have a set arm and a single-record arm, plus the report → open-investigations and open-stages id arms. -
CPRS identity:
stage_id= case / investigation id;case_id=referral_id ?? case_id(ONG) / referral id (INV), immutable; the Primary Case Manager record is OMITTED until structured worker names exist (#1811). -
Catch-up (
POST /v1/exchange/triggers/catch-up) populates open stages and repairs the rollout window; release / dismiss acts (admin) resolveheldrows. -
Deployment: cases image → exchange migration with a FLOOR BUMP → full replica roll verified by the orchestrator’s rollout status (CRAIG exposes no build endpoint) → catch-up → knob.
-
Interoperability with the real CPRS is a prerequisite (#1812 push endpoint or SOAP/XML bridge over the recipient ledger; #1813), not a claim of this ADR.
Readiness matrix
The plan page carries the matrix. In one line: CPRS INV/ONG builds now (case-manager record omitted); WIC waits on the legal-status / custody fact (#1804) and an EMPI id (#1805); DOE-SLDS on GTID (#1806) + legal status; IES on the Initial Medicaid Application act (#1807); STARS on the child-support-referral decision + NCP records (#1808); SMILE on its financial acts (#1809); TCM on a claim model (#1810). Each is a prerequisite-bound bind issue under &87 (#1820, #1821, #1822, #1823, #1824, #1825).
Consequences
-
A triggered send is provable end to end from an event id: admission → recipient → transaction → job → captured bytes → ack class, with the cases-side release event correlated to the same job.
-
Exchange never holds a name or a date of birth at rest; the operator retry re-assembles current truth under a new identity when the source moved.
-
Three new admin acts (catch-up, release, dismiss) and one new S2S route class (service-only projections); NO new event key on cases — the release audit rides the existing
case.person_pii_exportedwrapper (the U1 note above). -
Pre-1.0
Changed: the two debug stubs become real consumers;exchange_transactionsgainsorigin/admission_idandsystem-initiated rows;last_error/error_message/exchange.failed{error}become categorical for ALL jobs (the bounded body leaves the columns; the digest keeps forensics joinable). Amended (#2508): no digest is kept; the correlation is the join. -
The schema-floor bump excludes mixed exchange fleets; the runbook orders the roll before the knob, and inserts catch-up between the roll and the knob so the stages that opened before the trigger existed are admitted once.
-
Pre-1.0
Changedat U3: the CPRS leg tokens are stage-qualified (cprs.stage_opened→cprs.ong_stage_opened), which moves the manual route’s reserved vocabulary andexchange_transactions.exchange_type; the migration renames the rows already written. -
Two pre-existing defects surfaced and filed: the SSA DSA predicate (#1814) and the dropped
craig_correlation_idon typed adapters (#1815).
Open questions
-
Whether CPRS accepts the JSON push or CRAIG must expose the county + date-range pull over the recipient ledger (#1812) — the ledger serves both; the transport is the partner’s call.
-
Whether the
principal_updatedcontinuation leg (#1816) should re-send on everycase.person_updatedor batch per stage per day (the catalogue’s outbound table coalesces updates). -
The DFCS legal-status vocabulary (⁂ #1073) — the shared prerequisite of four interfaces.
Alternatives considered
-
Early assembly (the partner record staged into
exchange_send_jobs.payload). Rejected: names and DOB would rest in two JSONB columns read by two APIs and the UI; exchange has no field encryption; a retry would resend stale bytes. -
Membership resolved inside the inbox attempt transaction. Rejected: a network read under the inbox row lock; the cohort event carries no person id by design, so the resolve must read cases anyway — better in a worker tx that can be repeated.
-
One send job carrying the whole record set. Rejected: the CPRS adapter accepts one record; a loop needs durable per-record progress, partial-failure handling and exceeds the lease.
-
exchange_type-keyed provenance. Rejected: caller-controlled on the manual route — an impersonation path. -
Relying on
DT_LAST_UPDATEfor partner-side ordering. Rejected: the catalogue says it is not provided. -
A
placement.activatedproxy for "in DFCS custody". Rejected as the trigger: custody and placement are different facts; the legal-status model is the prerequisite (#1804). -
Per-act
POST /v1/exchange/sendfrom the producing service. Rejected: it moves partner knowledge into cases / placement, bypasses the consent chain, and cannot serve the pull model.
Gate rev 1 → rev 2 (the maintainer’s 25 findings, 2026-09-12)
| # | Finding | Folded in |
|---|---|---|
1 |
manual impersonation via |
D4 |
2 |
PII in error strings |
D10 categorical |
3 |
DSA predicate ignores ownership / effective date |
D5 |
4 |
dispatch does not bind recipient + interface |
D5 re-binding at dispatch → |
5 |
matrix routing could disable existing handlers |
D2 additive dispatch, same tx, regression test |
6 |
partnerless HELD identity |
D3 partner-free admission identity |
7 |
per-principal dedup race |
D3 recipient ledger + D6 resolve-once membership |
8 |
one job cannot carry a record set |
D6/D7 one |
9 |
|
D7 |
10 |
retries reuse identity for changing payloads |
D8 |
11 |
rejection acks become success |
D10 |
12 |
ordering assumed partner-side |
D9 per-stage FIFO + truth-at-resolve |
13 |
case-manager names missing |
D12 record omitted; #1811 |
14 |
U1 depends on the identity ruling |
D11 two arms in U1; D12 rules identity now |
15 |
INV opening misses async-linked principals |
plan D14 |
16 |
rolling deploy with old binaries |
D14 floor bump + knob after the roll; D13 catch-up |
17 |
admission vs continuation vs closure |
D6 recipient-ledger rules |
18 |
no audit of each decrypted release |
D11 release event before responding |
19 |
HELD retention destroys recovery input |
D3 never age-pruned; D13 release / dismiss |
20 |
protocol prerequisite beyond auth |
D15 #1812 |
21 |
no initial population |
D13 catch-up |
22 |
INV removal exists |
plan D14 |
23 |
mock capture oracle missing |
plan D19 host |
24 |
the 5 s budget excludes token acquisition |
D7 outer timeout |
25 |
settings nesting vs env var |
D5 nested settings; the exact string tested |