AI System DesignData and Feature InfrastructureModule 12 — Advanced data architecture

Designing Purpose-Limited Partner Feature Sharing Without Exposing Raw Records

Question 42 of 47 · Updated

On this page

Share a narrowly defined, independently authorized computation result rather than access to a partner's records. Keep raw data in partner-owned data planes. Establish a contract for exactly which feature or statistic may be contributed, for which subjects, recipient, model, purpose, interval and lifetime. Link eligible subjects through an approved privacy-preserving protocol, compute only approved transformations, and enforce the actual release boundary. Treat the resulting feature, model and metadata as potentially sensitive derivatives. Where even a subject-level feature cannot be disclosed, move inference or training into an approved clean room or use an independently reviewed joint-computation protocol. No privacy technology replaces purpose-specific authorization.

How would you build a data-sharing architecture where business partners contribute purpose-limited features without exposing raw records?

ASD-093 | Module 12 — Advanced data architecture | Learning order 29. ASD-016 partitions training data across geographic constraints; this lesson governs exchanges between independently administered organizations, even when they occupy the same region. ASD-091 resolves identity across source records; here matching itself may disclose prohibited membership, and only an authorized linkage output is allowed. The existing MLOps differential-privacy lesson covers DP-SGD, accountant state and model release. This lesson focuses on partner feature contracts, permitted computation and output boundaries, linkage threat models, disclosure budgets, downstream reuse and revocation. The pending confidential-computation architecture concerns verified inference execution more broadly. All partners, budgets, workload and policy examples are fictional, not legal or vendor claims. The exact Python fixture was run locally.

1. Start with the information each partner may disclose#

Imagine a retailer forecasting stockouts. A logistics partner has shipment histories, carrier scan events, route details, driver identifiers and commercial costs. The retailer needs a coarse reliability band for a particular supplier-lane relationship, not the underlying shipment histories. The logistics partner wants to contribute useful signals without giving the retailer raw scan logs or unrestricted customer-level queries.

Define the permitted subject unit first. A supplier-lane aggregate is different from a person, device, shipment or household. A feature derived from a narrow group can identify an individual shipment; the label “aggregate” alone provides no guarantee. Both parties must understand whether the consumer can associate the result with a known subject and what that association reveals.

RequirementProposed boundary
PurposeStockout forecasting only, not advertising or employment decisions
ConsumerNamed retailer workload and approved model release
FeatureVersioned reliability band, low/mid/high; no individual scan times
SubjectApproved pairwise supplier-lane identifier for an eligible relationship
WindowDefined preceding 30-day operational period
EligibilityRequired volume, coverage, current permission and validity
LifetimeShort-lived feature receipt; separately governed training retention
Forbidden outputRaw shipment rows, personal identifiers, unrestricted queries or exact individual histories
WithdrawalBlock future release/use under current policy and assess dependent artifacts

These are hypothetical contractual requirements. Actual consent, lawful basis, permitted use, controller/processor responsibilities, retention, rights and remedies must be determined by qualified owners for the real parties and jurisdiction. Consent is not the only possible authorization basis, and a contract between companies is not automatically individual consent.

Distinguish four meanings of “no raw records exposed”:

  1. No raw records sent to the receiving partner.
  2. No raw records visible to a clean-room operator.
  3. No raw records or private intermediate values revealed to another protocol participant.
  4. No practically or mathematically prohibited information inferred from released results.

An ordinary restricted query service may achieve the first without the other three. Secure multiparty computation can protect inputs during the computation under a stated threat model, but an allowed result can still reveal information. Differential privacy addresses a specified inference risk for a randomized mechanism, not raw-data location. Specify which guarantees are actually required before selecting an architecture.

2. Reference architecture: local computation and explicit release#

Loading diagram…

Each data plane retains raw sources, native identity mappings, approved source snapshots, local access controls, keys, transformation code, evidence and detailed lineage. The joint control plane manages approved contract identifiers, workload identities, permitted participants, release manifests, disclosure policy, revocation versions and minimal audit metadata. It need not see raw identifiers or every local record.

Use two independent policy boundaries: the partner's computation/admission boundary and the output/recipient boundary. A consumer requesting a feature cannot decide unilaterally that a new purpose is compatible. The supplying partner verifies the currently approved subject, purpose, code, output and recipient. The consuming partner verifies the artifact's permitted use, validity and exact model contract at use. Both organizations retain accountable owners and independently review security and privacy claims.

A global gateway with universal raw read access would simply recreate the central data pool that the design is trying to avoid. Prefer least-privilege workload identities, fixed approved query templates or signed code, dedicated service accounts, independently governed egress, and scoped network destinations. Do not grant arbitrary notebook or SQL access to the raw source.

3. Purpose-limited feature contracts#

Register the feature's meaning and disclosure contract as one versioned artifact. Semantic versioning helps manage compatibility but does not authorize a new purpose.

FieldRequired evidence
Provider, recipient and workloadAuthenticated organizations, roles and approved execution identity
Purpose and model scopeEnumerated permitted use and compatible model releases
Feature definitionExact computation, units, cohort, window, representation and missingness
LinkageApproved subject unit, matching scope, protocol and token lifecycle
Input eligibilitySource authority, permission basis, coverage and quality
Output policyAllowed fields, granularity, bounds, minimum cohort or formal privacy mechanism
TimeEffective period, feature availability, validity and grant expiry
LineageLocal source revisions, transformation digest, policy and linkage epoch
RestrictionsOnward transfer, retention, training/retraining and deletion conditions
ApprovalResponsible owners, policy version, immutable release identity

Illustrative feature receipt:

JSON
{ "receipt": "opaque-release-18", "contract": "lane-reliability/v1", "purpose": "stockout_forecast", "recipient": "approved-retailer-workload", "subject_ref": "pairwise-lane-token", "band": "mid", "effective_window": "approved-prior-30-day-window", "revision": 2, "policy_epoch": 4, "valid_until": "2026-02-01T00:00:00Z", "lineage_ref": "restricted-provider-proof" }

The receipt is illustrative, not a real signed protocol. Minimize what the recipient sees: an opaque proof reference may be safer than detailed raw lineage, exact contributor counts or source identifiers. Even receipt metadata needs a disclosure review.

A reliability band must specify what it summarizes: the denominator, eligible delivery attempts, handling of cancellations and delayed outcomes, window and cutoffs. A feature missing because a subject is ineligible must not be converted to a zero or low band. A typed unavailable result may still leak membership if the status is observable; use a reviewed common external response where policy requires indistinguishability, with more detailed reasons restricted to authorized audit.

Feature access for inference is not permission to store the feature indefinitely or include it in training. Training transforms a feature into model parameters, checkpoints and possibly shared evaluation metrics. Require a distinct approved training contract and model-release assessment.

4. Choose the minimum disclosure topology#

PatternWhat the consumer receivesWhat remains to be trusted or verified
Partner feature APINarrow authorized subject-level featurePartner computation, recipient use and feature inference risk
Curated feature exchangeApproved versioned feature snapshotStorage, ongoing access and revocation enforcement
Data clean roomApproved analysis outputExecution environment, operator visibility and output policy
Private set intersection (PSI)Defined intersection or derived resultProtocol threat model, input authorization and membership leakage
Secure multiparty computation (MPC)Specified joint computation outputProtocol correctness, collusion assumptions and output leakage
Trusted execution environment (TEE)Approved computation resultHardware, attestation, trusted code, side channels and operator threat model
Vertical federated learningJoint model or approved predictionsSubject alignment, intermediate leakage and training/model governance
Independent local modelsApproved local predictions if export permittedPrediction semantics and information disclosure

Use the simplest option satisfying the required trust model. If the supplier can safely release a band for an approved business relationship, a tightly scoped feature API may be sufficient. A clean room or MPC does not automatically add value merely because it is sophisticated. If the recipient must never observe the band itself, a feature API returning it is inappropriate; instead consider approved scoring inside a protected computation environment or a jointly computed output. If the output itself violates purpose or privacy, no topology can make that release permissible just by hiding raw inputs.

5. Private linkage: matching is itself a disclosure surface#

ASD-091 teaches persistent canonical identity resolution; do not create a universal cross-partner identifier by default. A shared stable ID allows linkage far beyond the approved use. Prefer pairwise, purpose-specific pseudonymous linkage within an approved relationship and lifecycle. Keep local crosswalks local. Tokens must not be accepted as proof of identity or current permission.

Private set intersection allows participants with sets X and Y to compute a defined intersection without revealing all nonmatching set members, under a specific protocol and adversary model. A PSI variant might disclose matched IDs to one party, both parties, only an intersection cardinality, or enable a subsequent computation without releasing the full match list. These are different leakage contracts. Even the intersection cardinality reveals something, and the ability to test whether a specific subject belongs to another party's set may itself be prohibited.

A safe architecture reviews:

  • Input eligibility and authentication: which party is entitled to submit which subjects?
  • Canonicalization and identity unit: what exactly does an equal identifier establish?
  • Protocol: semi-honest versus malicious participant assumptions, collusion, setup, keys, message integrity and implementation review.
  • Output: whether membership, identities, counts or only a restricted function is revealed.
  • Repeated executions: rate, scope, input-set commitments and resistance to singleton or adaptive membership probes.
  • Scope and lifecycle: recipient/purpose-specific linkage tokens, rotation, withdrawal and expiration.

Plain SHA-256 hashes of email addresses or phone numbers are not private set intersection. Low-entropy identifiers can be enumerated. Sharing an unsalted or commonly keyed hash can create a stable cross-context identifier; a keyed digest can be useful inside a reviewed trust boundary but does not itself solve the joint-computation problem. Oblivious PRFs are a building block in some private linkage constructions, not a complete PSI protocol or a privacy guarantee for arbitrary implementations. Use reviewed implementations and specialist validation rather than invent a cryptographic protocol.

Exact PSI also does not resolve spelling variation, reused IDs or uncertain fuzzy matches. If linkage quality requires approximate matching, evaluate the leakage of any exchanged attributes or sketches and use an approved method. Forbid ambiguous or mismatched linkages from generating features. A successful match never grants access to unrelated local records.

Loading diagram…

The diagram is an abstract flow, not a specification of cryptographic messages. The joint computation may be distributed across the partners or hosted in an approved environment. Actual PSI/MPC protocol steps and trust boundaries must follow the chosen implementation, not this drawing.

6. Data clean rooms: control both computation and outputs#

A data clean room is a governed collaboration environment where parties can perform approved analyses against contributed data under specified controls. Products differ materially: some use access-controlled tables in a shared execution environment, some support cryptographic protections, and some integrate differential privacy. The name does not establish a cryptographic guarantee or absence of operator access.

Use a constrained analysis template rather than unrestricted SQL: fixed joins, approved grouping, bounded contribution, approved predicates, output schema and allowed metrics. Validate compiled query plans and runtime inputs, not just a query string or dashboard label. Restrict arbitrary UDFs, network egress, debugging exports, logs, exception payloads, external functions and notebook artifacts. A query that cannot export raw rows through its nominal result may still leak them through another sink.

Set minimum group sizes where appropriate, but recognize their limits. For example, if an exact allowed count for a group of 101 is 31 and an overlapping group of 100 excluding one known shipment has count 30, the difference reveals the excluded shipment's binary outcome. Both groups pass a threshold of 100. Suppressing small cells does not prevent differencing, arbitrary adaptive queries or reconstruction across many releases. The output controller needs a threat model, query-family constraints, cumulative release history, and a formal privacy mechanism where required. Timing and denial reasons may also reveal information.

A subject-level reliability band is intentionally informative about that supplier-lane. Coarsening it can reduce precision and some disclosure but is not equivalent to anonymity or DP. Repeated bands at different times may reveal threshold crossings. A low-volume band can expose a single delivery. Define minimum evidence, stable release cadence, permitted recipients and whether an independent statistical mechanism is needed. If the intended consumer knows all but one underlying event, even a coarse result may disclose the remaining event.

7. Secure computation and privacy-preserving feature construction#

MPC can evaluate an agreed function over privately held inputs while protecting inputs/intermediate values according to its protocol assumptions. Secret-sharing and homomorphic-encryption approaches differ in communication, computation, supported operations and key or collusion assumptions. A homomorphic computation keeps values encrypted during supported operations but the party decrypting the result sees that result. A TEE uses a different trusted-hardware/attestation model. Neither should be called universally secure.

A cross-partner feature architecture often has vertically partitioned data: the organizations hold different attributes for overlapping entities. In a vertical federated training or inference design, aligned subjects and intermediate representations may reveal sensitive information. Secure aggregation for horizontal training across participants is not automatically a solution for arbitrary vertical feature joins. Gradients, activations, individual scores and model weights can leak information. Refer to ASD-016 and the existing federated-learning lesson for training topology and secure aggregation; here require each intermediate message and output to be covered by the approved sharing contract.

Consider an approved jointly computed stockout score. The retailer holds inventory history, the logistics partner holds reliability inputs, and the computation returns only the authorized predicted risk band. The parties must still evaluate whether repeated scores reveal the logistics feature or the retailer's inventory. If the approved result is useful only for one prediction, do not release unrestricted feature lookup or model access. Limit queries, subject scope, model version and allowed outputs. A protected model runtime does not ensure purpose-limited use after release.

Production cryptographic review should establish exact leakage, participants, key ownership, authenticated channels, adversary/collusion assumptions, input validation, replay handling, secure randomness, library versions and side channels. An external audit and adversarial testing are necessary for the actual implementation. Never describe the local policy fixture below as cryptography.

8. Differential privacy for approved aggregate releases#

Differential privacy bounds the change in an output distribution between neighboring datasets under a specified protected unit and adjacency relation. For an approved aggregate of shipment outcomes, the relevant unit might be a shipment, supplier or person; choose it based on the actual privacy requirement. A record-level guarantee does not automatically protect all records associated with one individual or business.

For a randomized mechanism M, approximate DP requires that for neighboring datasets D and D' and output event S,

Pr[M(D) in S] <= exp(epsilon) * Pr[M(D') in S] + delta

with the corresponding reverse relationship under symmetric adjacency. Epsilon is not a percentage probability of leaking data. A pure-DP mechanism has delta=0. A protected computation can provide exact output to an approved audience, while DP intentionally changes the output distribution. They address different threats.

Worked hypothetical aggregate: define add/remove adjacency for one shipment and a count of qualifying failed deliveries with at most one contribution per shipment. Its global sensitivity is 1. Under the standard Laplace mechanism, releasing the count plus Laplace noise of scale 1/epsilon is pure DP under the stated assumptions. At epsilon=0.4 the scale is 2.5. This mathematical example does not implement or sample noise. A mean or ratio requires its own sensitivity and denominator design; publishing an exact sensitive denominator alongside a noisy count can invalidate the intended guarantee. If the privacy unit is a supplier with many shipments, the one-shipment sensitivity is not applicable. Contribution bounding and all other outputs must be included.

If two approved pure-DP releases over potentially overlapping protected units each use epsilon 0.4 and 0.6, basic sequential composition gives a conservative total epsilon bound of 1.0. Under a hypothetical approved budget of 1.0, a new independent epsilon 0.01 release must be denied. Identical retransmission of the same already-computed output is not another randomized mechanism, but it still requires current access authorization. Recomputing the same query with fresh independent noise is another mechanism and may spend additional budget. Store the exact protected output and release receipt; do not let a retry produce new noise under an old release ID.

Privacy accounting must be tied to a canonical protected population, adjacency, mechanism, release history and relevant colluding audiences—not just a partner ID or a notebook. Creating new recipient accounts, dataset versions or purpose labels must not reset exposure for overlapping protected units. Use reviewed accounting for approximate DP, subsampling or other advanced composition; the simple fixture uses pure-DP sequential addition only. Do not claim a privacy budget from an accountant disconnected from the actual mechanism.

The effective grant is the intersection of applicable provider authority, recipient authorization, approved purpose and model use, subject eligibility, data-use basis, current policy, release constraints and permitted retention. Derive identity and purpose from an authenticated workload and approved execution manifest, not arbitrary request parameters. The same partner may have several independently governed purposes and must not reuse receipts across them.

A policy decision at initial request time is insufficient for asynchronous jobs. A long-lived request may become unauthorized before its output is released. Recheck the grant and policy epoch at admission, at actual release, and at protected use. Use short-lived receipts and generation-fenced egress or other reviewed coordination. When a strict current-revocation guarantee is required, define the precise linearization point and enforce it at the responsible boundary. Across organizations, a local transaction cannot undo a remote disclosure or prove that a consumer removed a copy.

Loading diagram…

Renewal creates a new explicit approval with current evidence; do not automatically extend an old grant because a business agreement has historically existed. A revoked purpose must not be silently mapped to a similar purpose. Current revocation can invalidate a historical receipt even though that receipt remains useful as restricted audit evidence.

The provider should maintain a reverse dependency index from local subjects/source revisions to feature releases, training datasets, consumer job receipts and model artifacts. A scoped notification can identify affected release IDs without sending raw deletion identifiers to an unauthorized party. The recipient blocks future feature use, invalidates applicable caches and queued work, and confirms action on affected retained copies and downstream artifacts. If a model used the feature for training, assess retraining, restriction, removal or a validated unlearning method under the actual obligations. Deleting a feature row does not remove its influence from model weights. Prior disclosure cannot be technologically recalled in general; contractual and operational controls, auditing and incident response remain necessary.

10. Worked partner-sharing scenario: signal utility without source records#

Assume a supplier-lane has 200 eligible delivery attempts in the approved historical window and 30 failures. The logistics partner computes a failure fraction of 15% inside its own data plane. A fictional policy maps rates below 5% to low, 5% through less than 20% to mid, and 20% or greater to high, with sufficient cohort and coverage. The retailer receives only mid and the permitted receipt metadata, not 30/200, individual delays or identities.

If a lane has only four eligible attempts and two failures, the same policy holds the feature when its approved minimum cohort is 100. It must not return high solely because the point estimate is 50%. A cohort of 100 is an example product rule, not a formal privacy threshold. If the retailer already knows nearly all shipment outcomes, even the band may disclose the remaining outcome in some cases. Apply the approved threat model and disclosure review, not just the minimum-count check.

The retailer trains or evaluates an approved forecasting model using its own local inventory data and only those partner features it has separate permission to retain for training. It preserves availability at prediction time, feature definition and receipt lineage. If partner data is revoked or unavailable, route to a validated retailer-only model or abstain where partner input is mandatory. Missingness may be nonrandom: low-volume lanes are disproportionately excluded. Report coverage and quality by approved cohorts, including fallback outcomes. Do not infer the partner's confidential denominator by treating unavailable features as a class label.

For a fictional frozen evaluation with 10,000 offered cases, suppose 8,500 have eligible partner features, 1,200 receive a validated local-only forecast and 300 abstain. Full-feature coverage is 85%, numerical prediction coverage 97%, and abstention 3%. If the enhanced model improves error among its eligible subset, this alone does not prove improvement over all cases. Compare both eligible models on paired admissible cases and separately measure the policy's all-request outcomes, quality, cost and privacy constraints.

11. Tested implementation: feature release and disclosure-budget checks#

The standard-library Python fixture represents a trusted, synthetic feature grant and a narrow enumerated output. It independently checks the recipient, purpose, partner, subject, contract, policy epoch, availability, expiry, lineage and revocation. Only an approved low/mid/high band and minimal receipt fields are returned. A separate budget object demonstrates basic sequential composition reservations for already-approved pure-DP releases.

PYTHON
from dataclasses import dataclass, replace from decimal import Decimal @dataclass(frozen=True) class Grant: partner: str consumer: str purpose: str contract: str epoch: int expires: int subjects: frozenset[str] @dataclass(frozen=True) class Feature: partner: str subject: str contract: str revision: int available: int expires: int band: str lineage: tuple[str, ...] def release(grant, feature, consumer, purpose, now, epoch, revoked): # Trusted identities, time, grant and complete lineage in this fixture. if (grant.consumer != consumer or grant.purpose != purpose or grant.epoch != epoch or now >= grant.expires or feature.partner != grant.partner or feature.contract != grant.contract or feature.subject not in grant.subjects or not feature.available <= now < feature.expires or not feature.lineage or any(x in revoked for x in feature.lineage) or feature.subject in revoked or feature.band not in {'low', 'mid', 'high'}): return None return {'band': feature.band, 'contract': feature.contract, 'revision': feature.revision, 'expires': min(grant.expires, feature.expires)} class Budget: # Sequential basic composition for already-approved pure-DP releases. def __init__(self, limit): self.limit = limit self.receipts = {} def reserve(self, release_id, manifest, epsilon): if not isinstance(epsilon, Decimal) or not epsilon.is_finite() or epsilon <= 0: return False key = (manifest, epsilon) if release_id in self.receipts: return self.receipts[release_id] == key if sum(e for _, e in self.receipts.values()) + epsilon > self.limit: return False self.receipts[release_id] = key return True g = Grant('supplier', 'retailer', 'forecast', 'reliability/v1', 4, 100, frozenset({'pair-7'})) f = Feature('supplier', 'pair-7', 'reliability/v1', 2, 50, 90, 'mid', ('src-3',)) def run(grant=g, feature=f, consumer='retailer', purpose='forecast', now=60, epoch=4, revoked=()): return release(grant, feature, consumer, purpose, now, epoch, revoked) assert run() == {'band': 'mid', 'contract': 'reliability/v1', 'revision': 2, 'expires': 90} assert run(consumer='other') is None assert run(purpose='ads') is None assert run(epoch=5) is None assert run(now=90) is None assert run(grant=replace(g, expires=60)) is None assert run(now=49) is None assert run(feature=replace(f, partner='other')) is None assert run(feature=replace(f, subject='pair-8')) is None assert run(feature=replace(f, contract='reliability/v2')) is None assert run(feature=replace(f, band='raw payload')) is None assert run(feature=replace(f, lineage=())) is None assert run(revoked=('src-3',)) is None assert run(revoked=('pair-7',)) is None assert run(grant=replace(g, expires=70))['expires'] == 70 assert 'lineage' not in run() and 'subject' not in run() b = Budget(Decimal('1')) assert b.reserve('r1', 'm1', Decimal('.4')) assert b.reserve('r1', 'm1', Decimal('.4')) assert not b.reserve('r1', 'm2', Decimal('.4')) assert not b.reserve('r1', 'm1', Decimal('.3')) assert b.reserve('r2', 'm2', Decimal('.6')) assert not b.reserve('r3', 'm3', Decimal('.01')) assert not b.reserve('r4', 'm4', Decimal('NaN')) assert not b.reserve('r5', 'm5', Decimal('-1')) assert len(b.receipts) == 2 print('25 checks passed')

Actual local execution, Python 3.13.5:

25 checks passed

The 25 assertions cover valid release and output schema, wrong recipient, purpose, epoch, expired grant/feature, future availability, wrong partner/subject/contract, prohibited output value, missing lineage, source and subject withdrawal, effective receipt expiry, omission of internal lineage and subject fields, exact release reservation replay, identity collisions, cumulative budget exhaustion, NaN and negative budget values, and receipt count. Executed code length 3,476 bytes excluding terminal newline; MD5 230da0584e3d3466adbe30667c8fe26c.

Important limits: this code is not a cryptographic protocol, real authorization system, consent registry, clean room or differentially private mechanism. It assumes trusted normalized identities, grant data, times, policy epoch, and complete flattened lineage. It does not authenticate requests, verify signatures, validate grant start times, inspect source data, enforce cohort size, discover transitive dependencies or check that a band was computed correctly. The output omits raw records by construction for this toy object; a band may still disclose sensitive information. It does not prove that absence responses are non-disclosing. The recipient remains able to copy a released value. The budget object uses sequential Decimal arithmetic and a single assumed protected scope; it does not generate noise, validate adjacency or sensitivity, store actual output bytes, identify overlapping populations or implement a concurrent transactional budget ledger. Returning True for identical reservation is not permission to compute a new randomized output. Actual retries must retrieve an immutable previously generated result under current authorization or reserve a new mechanism's cost. In production validate the budget limit, precision, mechanism manifest and release ID, and bind the approved reservation to a durable state machine and exact output receipt. Do not refund uncertain expenditures automatically after a failure. No network, actual PSI, MPC, model inference, privacy study or distributed concurrency was tested.

The release check scans the lineage list and checks subject membership in a frozenset; under ordinary hashing assumptions the cost is O(L) for L lineage references, ignoring authorization and storage I/O. The simple budget implementation sums all reservations on each new release (O(R) for R releases). A production service maintains a protected cumulative ledger and conditional atomic reservation, with independent reconciliation of receipts and accountant state. This fixture tests only sequential policy and bookkeeping logic.

12. Transactional release accounting and failure semantics#

A production release has an immutable request ID, contract version, scoped recipient, authenticated workload, purpose, input snapshot and exact computation specification. Its lifecycle separates admitted request, reserved disclosure budget, staged output, authorized publication and confirmed receipt. Store a digest of the exact protected output and the actual delivery disposition. An identical logical retry with an incompatible request fingerprint is a conflict. A failed response might mean the consumer already received the output; do not automatically generate another result or restore the privacy budget.

Loading diagram…

When the budget ledger and external recipient are separate systems, there is no implicit exactly-once cross-boundary transaction. Keep conservative reservations and durable intents, use an idempotent recipient contract when supported, and reconcile uncertain deliveries. Charge actual privacy mechanisms under the approved accounting model; conservative reservations may consume capacity until evidence establishes that no protected computation or disclosure occurred. A timeout is not proof of non-disclosure.

For a partner outage, use the approved unavailable/degraded behavior, not a raw-data fallback or unauthorized mirror. If a policy registry is unreachable, deny or hold new protected releases under the strict contract. A cached authorization can only be used within its specifically approved staleness envelope. For current-use restrictions, stale policy is ineligible. Coordinate key rotation and workload retirement without permitting old tokens to become valid again.

13. Lineage, retention and auditability#

Maintain detailed lineage locally and minimal permitted shared provenance globally. A shared release record should allow an authorized auditor to establish who released what class of artifact, for which exact contract, recipient, purpose, code, policy and input snapshot, and whether use/withdrawal obligations were acknowledged. Raw source values, individual IDs, precise membership and secret protocol transcripts need not be centralized.

A practical dependency graph includes source snapshot → local feature computation → linkage release → authorized feature receipt → consumer dataset or inference job → model release/prediction. Record the actual input version and time at every boundary. Keep restricted evidence and integrity digests separately from shareable metadata. A digest does not prove content is correct or authorized; low-entropy hashes may themselves reveal information. Use authenticated receipts and independently governed storage as appropriate.

Retention applies to partner source data, local materializations, staged clean-room outputs, delivery receipts, consumer caches, backups, training features, logs and derivative model artifacts. A backup restore must apply current withdrawal and access policies before use. For replay, pinned historical manifests enable reconstruction only while the underlying data and purpose remain authorized. If deleted inputs cannot be restored, record a reproducibility limitation. Never use historic snapshots to circumvent current withdrawal.

Audits should check real enforcement: inspect actual allowed queries, output bytes, recipient identity, service access, data exports and receipt reconciliation. A policy document alone does not prove compliance. Retain evidence in accordance with approved requirements; do not retain raw records merely to create a convenient audit trail.

14. Scale, latency and cost: derive from the disclosure design#

Suppose 500,000 eligible supplier-lane feature subjects are refreshed daily. An approved receipt averages 250 bytes. The logical output is 125 MB/day, or 3.75 GB over 30 days before indexes, replication and protocol/metadata overhead. If individual raw event history would instead occupy 20 GB/day, the narrow release is much smaller, but the reduction alone is not a privacy guarantee. The remaining bytes may still be sensitive.

At a hypothetical 2,000 inference requests/s, a local approved cache with 95% eligible-hit rate leaves 100 misses/s. If the partner permits 60 foreground queries/s, the remaining 40/s must use authorized background refresh, coalescing of genuinely equivalent requests, fallback or abstention. Do not coalesce across purposes or recipients merely to improve efficiency. Cache keys bind partner, scoped subject, contract, purpose, consumer and applicable authorization epoch. Validity is bounded by both the grant and feature; actual revocation must be honored independently.

A nightly linkage operation over two approved sets of 1 million identifiers each may require substantial preprocessing, communication and private computation. Actual bytes and runtime depend on protocol, threat model, field sizes, duplicate handling, implementation and hardware. Benchmark reviewed cryptographic implementations with representative sizes, skew and dropout; do not estimate PSI/MPC cost by pretending it is a plain hash join. Reuse only an approved linkage result within its policy and membership lifetime. Frequent re-linkage may itself increase disclosure and cost.

For a hypothetical protected batch of 10,000 authorized feature computations at 50 computations/s per worker and ten workers with ideal scaling, computation alone takes 20 seconds. This excludes protocol setup, input validation, network, disclosure gates, encryption and result publication. Reserve capacity for revalidation and revocation. If a clean room runs 100 jobs/day at an invented $2/job, direct job cost is $200/day, not total platform cost. Include partner integration, key infrastructure, secure compute, egress, privacy review, audit, incident response and retained lineage. Choose cost per eligible useful prediction under hard disclosure limits, not raw-data extraction cost alone.

15. Operational monitoring, attacks and acceptance gates#

SignalOperational meaning
Authorized versus denied release attempts by purposeDetect misuse and configuration drift
Actual recipient, output schema and contract versionDetect unintended disclosure or incompatible feature
Linkage eligibility and qualityDetect mismatches without exposing forbidden match lists
Query frequency, overlap and narrow-cohort attemptsIdentify disclosure and membership-probing risk
Privacy reservation, committed budget and uncertain deliveriesAccount for cumulative protected releases
Feature freshness, expiry and coverageDetect unusable model input
Full/degraded/abstain and quality by approved cohortDetect availability bias and utility degradation
Revocation-to-block and downstream acknowledgment latencyTrack ongoing obligations
Unexpected network destinations, raw fields and exportsDetect trust-boundary violations
Audit receipt gaps and lineage inconsistencyDetect incomplete accountability

Metrics and logs are themselves outputs. A dashboard showing per-subject denial reasons or exact small-cohort counts can defeat the clean room. Restrict detailed logs to authorized parties and use approved aggregate monitoring. A denied response's body, timing and existence can reveal membership; test and assess the actual externally observable behavior. Avoid claiming perfect indistinguishability without evidence.

An incident scenario: a partner's new feature adapter starts returning an exact delivery count in an additional response field. Freeze the affected output release, identify the actual recipient and transferred artifact range, block further disclosures and preserve authorized forensic evidence. Notify accountable owners and follow applicable incident obligations. Assess whether the consumer cached or trained on the unapproved field; quarantine and remediate affected artifacts. A corrected schema does not undo data already received. Verify the new template and egress schema against actual output, and restore use only after current authorization and independent review.

Production acceptance must exercise authenticated partner identity, purpose substitution attempts, malformed output and arbitrary query rejection, membership-probing and repeated-query threats, exact linkage quality, malicious participant/collusion assumptions of the chosen protocol, cryptographic library and attestation verification where applicable, actual privacy-mechanism correctness and accountant consistency, concurrent budget reservation, uncertain delivery, stale policy/expiry, cache misuse, revocation during computation, backup restore, derivative model withdrawal and no unauthorized logs or egress. Verify model quality under actual missingness and data drift. Test production paths using authorized representative fixtures and reviewed security processes. The local code tests are not evidence that these controls exist in a deployed system.

16. Interview-ready answer#

I would establish the exact feature, subject, purpose, recipient and lifetime before discussing cryptography. Each partner would retain raw data and detailed lineage locally. A minimal joint control plane would distribute approved contracts and enforce authenticated computation and release policies. Where eligible subject matching is required, I would choose a reviewed PSI or other authorized linkage design that explicitly limits membership leakage. I would avoid universal shared IDs and plain hashed contact information.

I would select the lowest-disclosure topology that meets the trust model: a narrow feature API for an approved feature, a constrained clean room for approved analyses, or reviewed joint computation when individual features must remain hidden. I would inspect actual intermediate and output leakage and, for suitable aggregates, use an approved DP mechanism with protected-unit definition, contribution bounds and cumulative accounting. I would bind each output to its exact authorization, computation, recipient, validity and lineage, check current policy at release and use, and preserve durable release receipts with conservative failure handling.

Downstream models would use only compatible approved feature profiles, with training separately authorized and validated fallback on missing or revoked evidence. I would track derivative dependencies, retention and withdrawal across both parties, explicitly recognize the limits of recalling prior disclosures, and monitor actual release coverage, privacy exposure, quality and operational costs. If the required result itself cannot be disclosed, I would change the architecture or hold the workflow rather than claim that encryption solves the purpose problem.

The architectural invariant is that a partner contributes only the information authorized for a defined purpose, through a verifiable computation and release boundary. Keeping raw rows local is necessary in this scenario, but it is not sufficient to establish that the collaboration preserves privacy.

References and research transparency#

Authorized offline research exception applied. The following references identify established security, privacy, cryptographic, clean-room and provenance guidance. Their live contents and availability and the Supabase changelog were not verified. No jurisdiction-specific legal conclusions are asserted. Four standard triple-backtick Mermaid diagrams were structurally reviewed; parser execution and frontend rendering were not tested. The exact Python fixture was executed on Python 3.13.5 and passed 25 assertions. No actual cryptographic protocol, DP mechanism, partner integration, real data, security audit, model inference, production load or concurrency test was performed. All scenarios, costs and policy limits are illustrative.

Related questions

Explore other topics:Forward Deployed EngineeringMachine LearningMLOpsPython