Groundskeeper
Architecture decisions

ADR 0013: Privacy-safe optional probabilistic classification

  • Status: Proposed
  • Date: 2026-10-04
  • Decision owners: architecture, security, privacy, risk, product, and model risk
  • Extends: ADR 0002 (canonical evaluation contract), ADR 0005 (detector extension model), ADR 0007 (sensitive-data observability), and ADR 0012 (bounded detector profiles)
  • Scope: design and contracts only; no production model calls or provider setup

Context

Deterministic detectors remain the right control for exact identifiers, secrets, authority, provenance, tool parameters, and policy invariants. They cannot reliably classify meaning that depends on paraphrase, discourse, or surrounding context. Useful examples include:

  • direct and indirect prompt injection, jailbreak intent, and policy laundering;
  • scam coaching, coercion, urgency, impersonation, and manipulation;
  • complaint, financial-hardship, vulnerability, and support-needed language;
  • unsafe or overconfident financial, health, legal, or self-harm advice; and
  • contextual labels whose meaning cannot be established from shape or checksum.

These signals can reduce harm, but a model is probabilistic, manipulable, and a new processor of potentially sensitive content. A classifier finding is therefore untrusted evidence, not authorization. The deterministic policy composer is the only component that can decide allow or block. The classifier API has no verdict, action, tool, retrieval, or free-text generation capability.

Decision summary

  1. Add an optional semantic classifier as a specialization of the detector contract. It emits only allowlisted labels, calibrated scores, privacy-safe evidence descriptors, coverage, and receipt metadata.
  2. Support supervised local process and bank/VPC-hosted inference first. Do not initially admit tenant-hosted or external SaaS endpoints for governed data. Keep the contract deployment-neutral so later modes require no finding or policy redesign.
  3. Run deterministic secret and restricted-identifier detection first. Construct a new classifier view from explicitly allowlisted segments and paths, replacing disallowed spans irreversibly. Never send the provider body or original event.
  4. Bind routing to trusted tenant deployment configuration: purpose, data classes, region, processor, endpoint identity, model, version, and maximum trust tier. Request content cannot choose any of them.
  5. Default to no storage, no training, no embeddings, no response cache, no raw telemetry, and no cross-tenant batching. Exceptions require a separately approved manifest and deployment binding.
  6. Negotiate capabilities and verify artefact/provenance/attestation before activation. A mismatch fails activation, never silently downgrades privacy.
  7. Roll out as synthetic evaluation, then approved-data shadow mode. Enforcement needs calibrated release gates and an owner-approved deterministic policy.
  8. Prohibit external model judges for governed, restricted, customer, incident, community-controlled, HPI-I, or VSN data. Human adjudication in the approved environment is the source of truth for those corpora.

Hard boundary: findings are not decisions

┌───────────────────┐
│ Canonical segments│
└─────────┬─────────┘
          ▼
┌───────────────────┐  exact spans  ┌──────────────────────────────┐
│ Deterministic DLP │───────────────▶│ Allowlist + irreversible     │
│ and secret checks │                │ replacement + size reduction │
└───────────────────┘                └──────────────┬───────────────┘
                                                   ▼
                                    ┌──────────────────────────────┐
                                    │ Optional small classifier    │
                                    │ labels + scores + evidence   │
                                    └──────────────┬───────────────┘
                                                   ▼
                                    ┌──────────────────────────────┐
                                    │ Deterministic policy composer│
                                    │ context + findings + coverage│
                                    └──────────────┬───────────────┘
                                                   ▼
                                         allow / block / modify

The following invariants are non-negotiable:

  • A classifier cannot return allow, block, redact, route, or a tool call.
  • A score threshold alone is not a policy. A signed snapshot maps a versioned finding and trusted context to a deterministic action.
  • Missing, failed, skipped, partial, or timed-out classification is unjudged, never an empty set of findings.
  • Complaint, hardship, vulnerability, and support-needed findings cannot be used to deny an entitlement, suppress a complaint, worsen terms, infer capacity, or profile a person. They may route to assistance or prompt clarification under an approved policy.
  • A model finding cannot establish identity, authority, consent, customer intent, affordability, AML status, legal advice, or a regulated decision.

Use-case envelope

FamilySuitable model contributionDeterministic controls that retain authority
Prompt securitylabel instruction-like or policy-bypass language, including quoted/retrieved textsource trust, role boundaries, tool allowlists, taint, authority, output schema, and policy composition
Scam/coercionidentify urgency, impersonation, secrecy, remote-access coaching, intimidation, or coercive controlauthenticated intent, payment limits, payee checks, transaction controls, and human escalation
Complaint/hardshipidentify expressions of dissatisfaction, inability to pay, life-event distress, or request for helpcomplaint registration, statutory/contractual timelines, customer rights, and specialist workflow
Unsafe advicelabel advice domain, prescriptiveness, missing caveat, or dangerous instructionlicensed-service boundary, approved templates, source/tool policy, and human approval
Contextual classificationassign a narrow, predeclared semantic category when exact syntax is insufficientidentity, data-class authority, validation state, and final policy action

The initial taxonomy should be narrow and action-oriented. Avoid sentiment, personality, protected-attribute, health-status, ethnicity, capacity, deception, and broad "riskiness" inference. A new label needs a stated purpose, owner, counterfactual misuse review, evidence guide, and deletion path.

Data minimisation and routing

Classifier view construction

The classifier never receives the canonical event directly. The router builds a bounded ClassifierRequest in this order:

  1. authenticate the integration and resolve tenant, deployment, purpose, policy, endpoint, region, and model from server-side bindings;
  2. run deterministic detectors over the canonical event;
  3. drop every segment not selected by both the classifier manifest and policy path/role allowlists;
  4. replace every secret, credential, direct identifier, HPI-I, VSN, and other prohibited span with a fixed category token before classification;
  5. reject or skip if prohibited data may remain, required pre-redactors were not complete, the content path is not allowlisted, or the data-class ceiling is exceeded;
  6. take only the minimum local context window needed for the declared label set, preserving synthetic segment IDs rather than account, user, conversation, or request identifiers; and
  7. enforce UTF-8, segment count, per-segment and total byte/token limits before invoking the runtime.

Redaction reduces disclosure; it does not prove de-identification. Narrative can still identify a person. Routing must use the highest remaining data classification, not assume that placeholder replacement makes content public.

Default segment policy

InputDefaultRationale
current user text and assistant response textexplicit allowlist by JSON Pointer pattern and rolenecessary for semantic classification
system/developer instructionsdenyprotects policy and prompt IP; not user evidence
tool arguments/resultsdeny; admit individual paths onlycommonly contain identifiers, secrets, records, and injection content
retrieved documents/attachmentsdeny; separately labelled source and bounded excerpt if approvedindirect injection and processor-purpose risk
headers, auth, gateway metadata, provider bodydenyrouting authority and credentials must never enter model input
prior turnsdeny by default; bounded, purpose-specific turns onlyprevents conversation overcollection and cross-purpose use

Path patterns select canonical segments, never arbitrary raw JSON. Each admitted segment carries only an opaque request-local ordinal, role, source class, and redacted text. The runtime must not receive tenant IDs or persistent correlation IDs unless transport isolation requires a non-content routing header.

Data-class labels

Every segment and deployment has one highest applicable label:

LabelExamplesDefault eligible modes
publicapproved public test textall admitted modes
internalnon-customer operating textlocal, bank/VPC; others by approval
confidentialbank process or policy contentlocal, bank/VPC
personalinformation about an identifiable personlocal, bank/VPC with purpose/PIA
sensitive_personalhealth, disability, biometrics, hardship detailslocal, bank/VPC only after explicit approval
restricted_governedHPI-I, VSN, community-controlled or contract-restricted datanot classifier-eligible unless a category-specific authority expressly permits a local/VPC sanitized view
secretcredentials, tokens, private keysnever classifier-eligible

Labels are routing constraints, not a claim that privacy law uses the same names. The highest label wins. Unknown is treated as restricted_governed.

Purpose limitation

An allowlisted purpose ID (for example security.prompt_injection.observe) binds the label set, paths, data classes, endpoint, model, evidence retention, and policy stage. Classification output cannot be reused for employee monitoring, marketing, credit, pricing, eligibility, customer profiling, model training, or corpus collection. No "improve the service" secondary purpose is implicit.

Typed contract and capability negotiation

The proposed closed manifest is classifier-manifest.v1alpha1.schema.json. The non-production example is semantic-safety.local.v1alpha1.json. It deliberately describes requirements rather than a selected vendor or model.

Conceptually, the transport-neutral operation is:

Describe() -> CapabilityDescriptor
Classify(ClassifierRequest) -> ClassifierResponse

ClassifierRequest {
  schema_version, opaque_request_id, purpose_id, phase,
  segments[{ordinal, role, source_class, content_path_class, redacted_text}],
  requested_label_set_id, deadline_ms
}

ClassifierResponse {
  opaque_request_id,
  findings[{label, score, calibration_id,
            evidence[{segment_ordinal, start_code_point, end_code_point,
                       evidence_code}]}],
  coverage{complete|partial|unsupported|timed_out|failed|skipped, reason_code},
  receipt{manifest_digest, model_digest, runtime_digest, prompt_or_head_digest,
          label_set_version, deployment_tier, attestation_verdict_id}
}

evidence_code is an allowlisted descriptor such as urgency_language or instruction_override; it is not a quote, rationale, chain of thought, summary, or reconstructed input. Evidence spans point into the already-redacted transient classifier view. Groundskeeper maps them to a canonical segment only when the mapping remains valid; otherwise it emits segment-level evidence without a span.

At activation, the host intersects four sets:

  1. capabilities required by the signed policy snapshot;
  2. permissions and limits declared by the pinned manifest;
  3. capabilities returned by the live runtime's Describe; and
  4. operator trust policy for tenant, region, processor, data class, and stage.

Activation fails if labels, schema, protocol, model/runtime digests, tokenizer, context size, structured-output support, batching isolation, privacy behavior, or attestation differ. Request-time negotiation is prohibited. An endpoint cannot gain a new label, larger input, logging, retention, training, cache, region, or processor through a compatible version claim.

Versions are independent and all appear in the receipt: manifest schema, classifier package SemVer, model weight digest, tokenizer digest, task head or instruction-template digest, label-set version, calibration artefact digest, runtime/container digest, and policy snapshot digest. A change to any of these requires replay and shadow evaluation; a mutable model alias is not deployable.

Deployment trust tiers

Trust tiers describe boundaries, not model quality. Higher numbers are not a linear statement of safety.

TierModeAdvantagesPrincipal risks and admission conditions
T0_LOCAL_PROCESSmodel in a supervised process on the evaluator host/nodeno network disclosure, simplest residency story, low latencynative runtime/weights enlarge host attack surface; use dedicated identity, read-only files, no egress, CPU/memory/process bounds, signed artefacts; process isolation is not a sandbox
T1_BANK_VPCbank-operated service in an approved VPC/clusterGPU pooling, independent scaling and patching, bank-controlled logs/regionnetwork and multi-tenant service boundary; require mTLS/workload identity, tenant isolation, egress deny, no cross-tenant batches, approved region and platform controls
T2_TENANT_ENDPOINTendpoint operated by a Groundskeeper tenanttenant controls model/data locationconfused deputy, endpoint substitution, uneven controls and support; per-tenant destination allowlist, mTLS identity, attestation where available, contractual responsibility, no shared credentials
T3_CONFIDENTIAL_OR_DEVICEattested confidential VM/container/GPU or endpoint deviceprotects data in use from parts of host/cloud stack; device can avoid central disclosureattestation freshness/coverage, side channels, device integrity, model update and availability; verify measurement/model/config/nonce and bind keys only after policy; attestation does not establish legal purpose or eliminate processor/location obligations
T4_EXTERNAL_SAASthird-party model/classifier APIfastest access to managed capabilityexternal disclosure, subprocessors, training/retention ambiguity, cross-border/support access, version drift, outage and correlated tenant leakage; disabled initially and never eligible for governed data under this proposal

An in-process library is not a separate privacy destination, but a parser/runtime defect shares the evaluator's address space. The first local implementation should therefore be a supervised process. In-process inference may be benchmarked only if its dependency and crash-risk advantage is demonstrated and security approves.

All network modes require TLS, mTLS or equivalent workload identity, endpoint and service-account allowlists, certificate/identity rotation, network policy, DNS and proxy hardening, maximum request/response sizes, concurrency and rate limits, deadlines, load shedding, circuit breakers, and no automatic retry unless the call is idempotent and remains inside the original deadline. Payloads must not enter service meshes, WAFs, APM, crash reporting, or access logs.

Attestation

Artefact admission requires digest, expected signer, provenance subject and builder, SBOM, licence, vulnerability disposition, model card, training-data provenance statement, and evaluation evidence. Confidential modes additionally require a fresh verifier result binding:

  • hardware/TEE type and acceptable firmware/TCB status;
  • runtime/container, model, tokenizer, task head/template, and configuration measurements;
  • nonce and endpoint/workload identity;
  • debug disabled and approved egress/storage policy; and
  • verifier policy/version and short expiry.

Groundskeeper stores only the verifier result ID and measurements in the audit receipt, not a payload-linked raw quote. Failed, stale, or unknown attestation opens the circuit and yields explicit unjudged coverage.

Failure posture by stage

Failure posture belongs to signed policy and trusted action context, never the classifier manifest. Recommended defaults are:

StageClassifier failure defaultReason
ordinary chat input/output, observe-only securityfail open with unjudged; deterministic protections still runpreserve availability while coverage remains visible
complaint/hardship/support recognitioncontinue ordinary handling and route to the normal non-model complaint/help path; never suppress rightsfalse negatives or outages must not disadvantage a customer
low-risk advice warningfail open with deterministic disclaimer/template controlsclassifier is advisory
consequential tool request, payment, credential release, or irreversible action where classification is declared requiredfail closed to the action or degrade to human/safer no-action modethe composer blocks because required evidence is unavailable, not because the model decided to block
buffered response whose release requires a safety findingwithhold until deterministic policy chooses safe fallback; if bytes already streamed, report inability rather than claiming enforcementprevents fail-open disclosure and false assurance

Circuit breakers are keyed by tenant destination, classifier version, and purpose, not globally where one tenant can deny service to others. They trip on timeout, transport/schema/attestation failure, resource saturation, or invalid-output rate; half-open probes contain synthetic non-sensitive text only.

Security and privacy threat controls

ThreatRequired controls
Prompt injection into classifierPrefer purpose-trained discriminative models; treat all text as data; fixed label set and task template outside content; role/source boundaries; no tools, RAG, URLs, secrets, memory, or dynamic system prompt; grammar/logit-constrained output; strict schema and score bounds; adversarial direct/indirect/quoted/encoded corpus. A guardrail model is still injectable.
Output injection or fabricated evidenceParse closed schema; allowlisted labels/evidence codes only; reject prose/unknown fields; validate spans and finite scores; never execute or render model output as markup; model cannot write policy attributes.
Model extraction and denial of serviceAuthenticated service; per-tenant/purpose quotas; bounded input/output/context/concurrency; do not expose logits, embeddings, token probabilities, prompts, model paths, or detailed errors; rate-limit adaptive querying; monitor privacy-safe aggregate abuse signals; keep weights read-only and access-controlled.
Cross-tenant leakageSeparate trusted routing identity from content; no cross-tenant batching, sessions, KV reuse, prompt cache, adapter state, or mutable fine-tuning; isolate queues and circuit state; reset/zero buffers where practical; tenant-scoped tests and canaries.
Training-data memorisationAdmit only provenance-reviewed weights; no customer-data training or online learning; constrain output to labels/scores/codes; test extraction canaries where licensing permits; treat weights as sensitive artefacts; reject models whose provider cannot attest training/retention posture.
Embedding leakage and inferenceDo not emit, log, cache, index, or persist embeddings. No vector database or similarity retrieval in the first subsystem. An encoder's transient hidden state stays inside the runtime and is destroyed with the request. Any future embedding feature needs a separate ADR and privacy threat model.
Cache leakageResponse and semantic caches are off by default. If later approved, cache only deterministic post-redaction requests using tenant/purpose/model/calibration-keyed HMAC, encrypted bounded storage, short TTL, no shared entries, no raw key material, and explicit deletion. Prefix/KV caching must be tenant-partitioned or disabled.
Telemetry leakageMetadata only: purpose, data-class label, label counts, coverage, coarse score/calibration bins, latency, sizes, version digests, route tier, and receipt ID. No text, tokens, spans-with-context, embeddings, identifiers, per-value fingerprints, prompts, rationales, or provider payloads. Control metric cardinality.
Endpoint/provider driftDigest pinning; capability comparison; region/processor/model allowlists; contract change notification; periodic re-attestation; synthetic probes; replay before activation; atomic rollback and revocation.
Supply-chain compromiseExpected signer and builder, locked dependencies, SBOM/model BOM, weight scanning, reproducible conversion where practical, read-only artefacts, vulnerability response, and independent conformance. Model file formats are untrusted input.
Membership inference or corpus reconstructionNo score vectors beyond declared labels, no logits, calibrated/coarsened scores where sufficient, rate limits, query monitoring, no training on tenant data, and red-team extraction testing.

Prompt injection cannot be "solved" by another prompt. Structural isolation, constrained authority, deterministic validation, and policy separation limit the impact when classification is wrong.

Privacy, residency, and governed-data restrictions

This is engineering guidance, not legal advice. Deployment-specific review must establish collection authority, primary/secondary purpose, notice, processor roles, contracts, retention, security, and location.

  • OAIC guidance says inferred information about an identifiable person can itself be personal information; input and output are both in scope. APP 3 necessity, APP 6 purpose, APP 8 overseas disclosure, and APP 11 security/deletion therefore remain relevant even when the output is only a label.
  • Local/on-premises inference usually reduces third-party access risk, but does not remove purpose, fairness, access, accuracy, security, records, or deletion obligations.
  • An approved Australian region is the default for compute, network transit, logs, support, keys, attestation verifiers, backups, and subprocessors. Region labels are insufficient without support-access and failover review.
  • HPI-I and VSN processing follows the stricter controls in the HPI-I/VSN research. These values are deterministically removed before classification. If a prohibited category cannot be confidently removed, the classifier is skipped. No external endpoint or judge receives it.
  • Victorian IPP 9 can make an interstate transfer relevant for Victorian public sector deployments. Healthcare Identifier Act and VSN authority is role- and purpose-specific; a processor contract alone is not assumed to authorize use.
  • Community-controlled and Indigenous data remains subject to ADR 0008 authority, including purpose, access, withdrawal, stop-use, location, and judge restrictions.
  • Shadow mode is real processing. It requires the same PIA, authority, processor, region, access, incident, and deletion controls as enforcement.

External judges are prohibited for governed data, including transformed examples derived from it. This subsystem has no exception path; any future proposal to change that rule requires a replacement governance decision and ADR rather than a deployment override. Synthetic benchmark labels are authored and adjudicated by humans; public, non-sensitive development data may use an external judge only if licence, privacy, and evaluation owners approve and its output is never treated as ground truth without human validation.

Model and runtime classes to benchmark

Do not select a vendor or named model before measurement. Benchmark reproducibly packaged candidates from these classes:

  1. Compact discriminative encoders/cross-encoders (roughly 50M–500M parameters). Use a fixed multi-label head and optional token-span head. These are the preferred first class for narrow labels: low latency, no free-text decoder, naturally constrained output, and straightforward ONNX Runtime or equivalent CPU/GPU execution. Include multilingual and Australian-English-capable candidates.
  2. Compact instruction-tuned decoders (roughly 0.5B–4B, with a 7B–8B reference ceiling). Use only grammar-constrained JSON or label-token output, temperature zero, no sampling/tools/RAG. They may better handle nuanced, evolving labels but cost more, have a larger injection surface, and need stronger output validation. Benchmark quantized CPU/local execution through a portable GGUF-style runtime and accelerator/VPC execution through a high-throughput serving runtime.
  3. Small task-specific classifiers distilled or fine-tuned from approved public, licensed, and synthetic data. Evaluate only after the base benchmark establishes a quality gap. Fine-tuning must not use production/customer data and needs its own provenance, licence, privacy, poisoning, and reproducibility evidence.
  4. Non-neural deterministic and sparse statistical baselines. Keep these in every comparison. A model earns deployment only where it materially improves the difficult slices without unacceptable privacy, disparity, latency, or operational cost.

Runtime classes, not brands, are the compatibility target:

  • portable CPU/GPU tensor runtime for encoder classification (for example an ONNX-compatible runtime);
  • local quantized decoder runtime (for example a GGUF-compatible llama.cpp class runtime); and
  • bank/VPC accelerator server with continuous batching and constrained decoding (for example a vLLM class runtime), configured with tenant-isolated scheduling and cache behavior.

Record model format conversion and quantization as separately digested artefacts; quality and calibration gates apply to each quantization/runtime combination. Do not assume scores transfer between full-precision and quantized variants.

Synthetic benchmark and release gates

Corpus design

Build a versioned, deterministic, synthetic-only first benchmark with independent human gold labels. No production, incident, customer, live identifier, community, or model-generated governed data enters it.

For each family include:

  • clear positives, benign negatives, hard negatives, ambiguity/abstain cases, and multi-label overlaps;
  • minimal pairs changing one material phrase, speaker role, source trust, quoted status, negation, amount, urgency, or consequence;
  • direct, indirect, quoted, code-block, retrieved-document, multilingual, obfuscated, typoglycemic, Unicode, encoded, role-play, and multi-turn injection;
  • complaint versus general dissatisfaction, hardship versus ordinary budgeting, scam warning versus scam coaching, coercion report versus coercive instruction, and safe information versus individualized prescriptive advice;
  • Australian English and governed, consented language/channel slices only where appropriate owners approve their creation;
  • long-input boundary, truncation, repeated text, adversarial label strings, output-schema attacks, timeout, saturation, circuit-open, and attestation-fail cases; and
  • counterfactual cases that preserve meaning while changing names, pronouns, dialect/channel, or irrelevant demographics. Do not infer protected status.

Use template generators only to create candidates. Two trained annotators label blindly against a written guide; a domain owner adjudicates disagreement. Keep a public development partition, private fixed holdout, and rotating synthetic red-team holdout. Pin generator source/seed, case hashes, annotation guide, annotator roles, adjudication, label set, model/runtime/configuration, and outputs. Prevent near-duplicate templates from crossing partitions.

Measures

  • per-label precision, recall, F1 and area under the precision-recall curve;
  • severe-case recall and harm-weighted false negatives;
  • benign pass rate and false-positive friction by intended policy stage;
  • Brier score, expected calibration error, reliability plots, and calibration slope/intercept on untouched calibration data;
  • selective risk: error versus coverage as the model abstains;
  • exact/overlap evidence-span precision and recall where spans are claimed;
  • performance by language/channel/source/role/severity and every approved slice;
  • attack success/catch rate under each adversarial transformation;
  • repeated-run stability, invalid-output rate, truncation sensitivity, and drift;
  • p50/p95/p99 latency, timeout rate, throughput, warm-up, peak RSS/VRAM, model load time, artefact size, CPU/GPU utilization, and cost on declared reference hardware; and
  • outage isolation, circuit-breaker correctness, tenant isolation, and zero raw content in every configured telemetry sink.

Expected values come from the annotation guide, not a candidate model or external judge. Compare candidates on identical cases with paired confidence intervals and McNemar tests where applicable. Aggregate improvement cannot hide a critical-slice regression.

Promotion

  1. C0 contract: schema, capability, malformed output, privacy, deadline, cancellation, resource, tenant-isolation, and receipt conformance passes.
  2. C1 synthetic: owner-approved absolute per-label, calibration, robustness, latency, and benign-pass bounds pass on the private holdout.
  3. C2 shadow: approved tenants only; outputs cannot alter traffic or workflow; metadata-only metrics; time-boxed PIA and deletion plan; human review estimates real precision, missed harm, disparity, drift, and workload.
  4. C3 policy use: a separately signed deterministic policy may consume the finding after risk/product/legal approval. Start with assistance or review routing. Consequential-action enforcement requires an explicit stage-specific failure posture, rollback, kill switch, and model-risk sign-off.

Numeric thresholds remain owner decisions. Calibration is valid only for the pinned label set, model, quantization, runtime, prompt/head, and target slice.

Audit receipt

Every attempted call emits one metadata-only receipt, including skipped and failed calls:

{
  "receipt_version": "1.0",
  "receipt_id": "opaque-random-id",
  "tenant_binding_digest": "sha256:...",
  "purpose_id": "security.prompt_injection.observe",
  "policy_snapshot_digest": "sha256:...",
  "classifier_manifest_digest": "sha256:...",
  "model_digest": "sha256:...",
  "runtime_digest": "sha256:...",
  "calibration_digest": "sha256:...",
  "deployment_tier": "T0_LOCAL_PROCESS",
  "region": "operator-approved-region-code",
  "processor_id": "operator-approved-processor-id",
  "input": {
    "data_class": "personal",
    "segment_count": 1,
    "redacted_byte_count": 412,
    "pre_redaction_complete": true
  },
  "outcome": {
    "coverage": "complete",
    "label_counts": { "security.prompt_injection": 1 },
    "score_bins": { "0.90_1.00": 1 }
  },
  "attestation_verdict_id": null,
  "elapsed_ms": 18,
  "occurred_at": "2026-10-04T00:00:00Z"
}

The real receipt uses complete digests and an operator-defined retention class. It contains no text, token IDs, embeddings, exact spans, identity, account, conversation ID, raw score vector, rationale, or cache key. Receipt access, retention, legal hold, deletion, and timestamp precision are deployment policy.

Consequences

Benefits

  • Groundskeeper can address meaning-dependent harms without giving a model policy or tool authority.
  • Local/VPC-first support materially limits disclosure and supply-chain scope while preserving a future endpoint-neutral contract.
  • Pre-redaction, allowlisted views, closed output, and metadata-only receipts make data flow inspectable and testable.
  • Versioned calibration and explicit coverage prevent a changed or unavailable classifier from looking equivalent to a clean deterministic result.

Costs and limitations

  • Deterministic pre-redaction can remove context and reduce classifier quality; privacy takes precedence, and the benchmark must measure the loss.
  • Local models add memory, cold-start, patching, artefact, and model-risk work.
  • Probabilistic false positives, false negatives, adversarial transfer, and drift remain. No model class eliminates prompt injection.
  • Local processing can still be unlawful or unfair if purpose, authority, notice, or downstream use is wrong.
  • Strict no-cache/no-batching defaults trade throughput for isolation until an approved design demonstrates safe partitioning.

Rejected alternatives

Let the model return a block decision

Rejected because it collapses evidence and authorization, hides policy semantics, and turns calibration drift or injection into direct enforcement authority.

Send the whole provider request after "best effort" scrubbing

Rejected because provider bodies contain unrelated fields, instructions, credentials, identifiers, and metadata. Classification receives a newly constructed allowlisted view or does not run.

External SaaS first

Rejected because it creates the greatest processor, location, version-drift, retention, training, and outage uncertainty before Groundskeeper has measured whether a small local classifier is adequate.

Embedding store for semantic reuse

Rejected for the initial subsystem. Persistent vectors add membership, re-identification, deletion, poisoning, tenancy, purpose-reuse, and infrastructure risk without being necessary for bounded classification.

Use a second external LLM as the benchmark judge

Rejected for governed data because it creates another disclosure and an unstable, correlated source of labels. Human gold labels and deterministic scoring retain authority.

Treat confidential computing as a legal/privacy exemption

Rejected. A TEE can reduce host-access risk but does not establish purpose, authority, fairness, residency, processor terms, output safety, or deletion.

Decisions required before implementation or live shadowing

IDDecisionOwnerRequired before
OD-032Approve local-process and bank/VPC as the first supported modes; decide whether in-process inference is admittedArchitecture + security + platformruntime implementation
OD-033Approve initial labels, prohibited uses, assistance/review workflows, and which policy stages may require classificationProduct + risk + legal/compliancebenchmark label freeze
OD-034Approve data-class taxonomy, pre-redactors, segment/path allowlists, context windows, and residual re-identification riskPrivacy + security + data ownersany live data, including shadow
OD-035Set per-stage timeout, size, concurrency, circuit, fail-open/fail-closed, and safer fallback rulesRisk + SRE + service ownerslive shadow configuration
OD-036Approve model/runtime/weight licences, provenance, signer/builder policy, vulnerability process, and attestation profileSecurity + model risk + legal + platformartefact admission
OD-037Set per-label quality, calibration, robustness, disparity, latency, resource, and drift gatesRisk + model risk + productcandidate selection and promotion
OD-038Approve processor, region, support access, subprocessors, retention/training terms, and cross-border basis for each remote modePrivacy + legal + procurement + securityany remote endpoint
OD-039Approve audit receipt fields, score coarsening, access, retention, deletion, legal hold, and records classificationPrivacy + security + recordslive shadow telemetry
OD-040Define confidential/on-device attestation roots, measurements, verifier, freshness, revocation, key release, and unsupported-device fallbackSecurity + platform + endpoint ownersT3 pilot
OD-041Decide whether external SaaS will ever be eligible, and codify the absolute governed-data/external-judge prohibitionExecutive risk + privacy + legal + governanceT4 design or external evaluation

OD-008, OD-021, OD-023–OD-031, and Indigenous governance decisions remain in force. This ADR does not override them.

Sources

Sources were reviewed on 2026-10-04. Product and legal owners must revalidate moving guidance and service terms before implementation.

On this page