Chapter 16 · Part IV — Change and operation

Treat every result as a disclosure

A calibration application eventually needs more than individual records. An operator asks how many instruments are awaiting review, which technician has the largest queue, and how long approvals take. Queries and exports answer those questions by combining data. That combination can expose information a simple record screen never showed.

Begin with the audience and purpose of the result. An inspector’s worklist, an administrator’s capacity report, and a customer’s certificate export are different disclosures, even if all read the same tables.

Filtering rows does not hide every fact

The current resource-policy implementation applies some list restrictions after a page has been read. Refused rows are omitted, but totalCount and hasMore can still describe the pre-policy result. A short page is therefore not proof that few qualifying rows exist, and the metadata can reveal that withheld rows exist.

This behavior matters for both usability and confidentiality. A UI that assumes every full underlying page yields limit visible rows may stop early or display confusing navigation. A privacy claim that promises to hide the existence of restricted records needs more than omission of their bodies.

The calibration lab does not impose a list policy, so it does not reproduce this pagination case. The behavior is documented in the current policy reference and belongs in a deployment review when that feature is used.

Aggregates have their own authority

A count or total can disclose information without returning individual records. Summing restricted salaries or counting rare diagnoses can reveal a fact the caller is not allowed to read directly. Conversely, a carefully bounded aggregate can serve a legitimate purpose without exposing raw values.

ADL’s declared-query and field-aggregate facilities have their own contracts. Review roles, allowed dimensions, group sizes, and record filtering for the particular query. Do not infer aggregate authorization solely from the ordinary GET permission or from a resource policy that the query route does not invoke.

The current implementation deliberately refuses some policy-covered query paths while other analytical surfaces have separate or incomplete coverage. That distinction should shape the application surface you expose. A refused route is an availability condition; an unchecked route is a different control problem.

Exports need a destination and an artifact identity

An export leaves the ordinary interactive view. Decide which records and fields it contains, who can request it, how its purpose is established, and where the resulting artifact is stored. Retaining only the fact that “an export happened” can be insufficient to identify what was delivered.

If a certificate contains an instrument name that can later change, consider whether the export should capture the historical name or resolve the current one. Both choices are possible; they answer different questions. Record the source revision and generation context needed to reproduce the chosen meaning.

The current handling rules can restrict supported export and dispatch paths. They do not turn every report, template, or AI output into a governed export automatically. Inventory the actual entry point and identify the control it uses.

Deletion and retention apply to copies too

Removing a primary record does not necessarily remove its captured history, policy decisions, exported files, search indexes, or remote copies. Each artifact has its own lifecycle. The right retention policy depends on the application’s requirements and the authority responsible for them.

The handbook makes no claim that its history settings satisfy a real organization’s privacy or retention obligations. It teaches the engineering task: enumerate copies, establish their identifiers and retention rules, and verify the requested behavior on each supported path. Where the engine deliberately refuses a contradictory erasure, the operator needs a documented resolution rather than a silent workaround.

Measure the query you deploy

A correct-looking response from a small fixture says little about latency, memory, or pagination at scale. Retain the query, data distribution, indexes, store, and resource limits used in a performance measurement. A benchmark without its workload cannot explain why a deployment behaves differently.

Start with ADL 27, ADL 38, and the policy coverage section in ADL 21. These references describe the relevant mechanisms; the application still supplies the disclosure requirement.

Workshop

Design a report of pending calibrations by technician. Decide whether an inspector may see all technicians, only their own group, or just an anonymous total. Identify what a zero, a small group, and a changing total could reveal under that choice.