Detector capability roadmap after the HPI-I/VSN micro-slice
Status: proposal for review. This is planning only and changes no runtime code, contract, or policy.
As of: 3 October 2026
Machine-readable matrix: research/detector-capability-matrix.json
(89 rows). It maps every inventory identifier and every AU.BANK.* capability to a row.
The matrix is a snapshot, not a complete catalogue. New candidates enter as
proposed rows. Rejected rows stay in the matrix so excluded ideas are not
re-proposed without new evidence. IDs, categories, and packages follow
ADR 0010 and the proposed
ADR 0011. They stay provisional
until the ADR 0011 ID grammar and public taxonomy are approved.
Baseline
The approved micro-slice has two detectors: HPI-I (validated_structured) and
exact-labelled VSN (context_bound_structured). They are specified in the
micro-slice record and shipped
as experimental built-ins builtin.pii.au.hpi-i and builtin.pii.au-vic.vsn
(version 0.1.0). Both are M2 Implemented, have passed no detector release
gate, are disabled by default, and run only under the
observe or redact-experimental profiles of
au-baseline.yaml.
The roadmap assumes the slice delivers three reusable pieces:
- the Luhn validator and boundary rules;
- the label/field binding engine;
- detector-scoped finding IDs and overlap handling.
Ranked next detectors
Each candidate is scored 1–5 on five criteria:
- value: the harm it prevents;
- source: whether an authoritative grammar or checksum exists today;
- precision: how deterministic it is;
- reuse: how much micro-slice machinery it shares;
- readiness: whether any legal, licence, runtime, or governance blocker remains.
Ties go to readiness. Nothing that needs a model runtime or a new contract is ranked.
| # | Detector (runtime ID) | Class / approach | Why now | Gate notes |
|---|---|---|---|---|
| 1 | IHI (builtin.pii.au.ihi) | validated_structured, build | Patient identifier with the highest privacy value; same validator as HPI-I with prefix 800360; already in the taxonomy | Fixture-collision handling (see below); HI Act s 26 legal review before real traffic |
| 2 | Private key blocks (builtin.secrets.private-key) | provider pattern, build | RFC 7468 armour is decisive; most severe secret leak | M2 Implemented as experimental 0.1.0, disabled by default; no release gate passed. Multi-line spans redact end to end. See below |
| 3 | Provider credentials batch 1: GitHub, AWS, Stripe, Slack | provider pattern, build | Vendor-published prefixes; GitHub tokens also carry a CRC32 checksum | M2 Implemented as four experimental 0.1.0 detectors, disabled by default; no release gate passed. probable at most. See below |
| 4 | Invisible/bidi Unicode obfuscation (builtin.security.unicode-obfuscation) | lexical, build | Deterministic defence against tag-character smuggling; also measures the micro-slice's Unicode evasion gaps | M2 Implemented as experimental 0.1.0, disabled by default; no release gate passed. See below |
| 5 | TFN (builtin.pii.au.tfn) | context_bound_structured, build | Very high privacy value; reuses the VSN binding engine | Never validated (ATO algorithm is controlled, OD-016); TFN Rule legal review |
| 6 | Medicare (builtin.pii.au.medicare) | validated_structured with mandatory context gate | Most common Australian health identifier | Pin a licensed primary source first: currently only secondary sources cite the ADHA conformance profile |
| 7 | Payment card PAN (builtin.pii.payment-card) | validated_structured (generic), build | Checksum-backed and PCI-relevant | M2 Implemented as experimental 0.1.0, disabled by default; no release gate passed. Visa/Mastercard/Amex family evidence only; structural validity never claims account existence. See below |
| 8 | Email address (builtin.pii.email) | lexical, build | Most requested generic redaction | M2 Implemented as experimental 0.2.0, disabled by default; no release gate passed. Findings are candidate. See below |
| 9 | BSB + account (builtin.pii.au.bank-account) | context_bound_structured, build | Core banking PII; input to payee-integrity controls later | M2 Implemented as experimental 0.1.0, disabled by default; no release gate passed. Any transformation is non-blocking and requires a future G2 approval. No BSB directory is ingested. |
| 10 | ABN (builtin.pii.au.abn) | validated_structured, build | Authoritative mod-89 check; disambiguates TFN/ACN and PayID-by-ABN | M2 Implemented as experimental 0.1.0, disabled by default; no release gate passed. Record only. |
Private-key detector (M2 Implemented; no release gate passed)
builtin.secrets.private-key (category security.credential.private_key)
recognises PEM armour (PKCS #8, encrypted PKCS #8, legacy RSA/DSA/EC), OpenSSH,
and OpenPGP private key blocks, including JSON-escaped line breaks and legacy
encryption headers.
- A header, a matching footer, and at least 64 base64 characters between them
is
probable. Keys are never parsed or used, so nothing isvalidated. - A header followed by a base64 body and no footer, as in a truncated or
streamed reply, is
candidate. The span ends at the last body line. - Public keys, certificates, malformed labels, and placeholder bodies are not reported.
- Scanning is linear: footers are matched in one forward pass and blocks are bounded at 64 KiB.
Tests build synthetic, nonfunctional blocks at run time, so the repository
holds no armoured block. The example policy is
secrets-baseline.yaml. Known
gaps: a single base64-looking word right after a truncated body is included in
the span, and blocks whose markers are split across segments are not joined.
Provider credential detectors (M2 Implemented; no release gate passed)
Issuer-specific detection now lives in internal/checks/secretsproviders,
separate from provider-neutral private-key detection. The package contains the
four original provider IDs plus builtin.secrets.anthropic, used instead of an
OpenAI detector because OpenAI does not publish a stable complete key grammar.
Anthropic's official partial API-key hint is distinctive but non-normative, so
it remains candidate and observe-only.
Every detector has a digest-bound manifest and capability contract, source-date
provenance, typed value-free evidence, synthetic canaries, hard negatives,
placeholder rejection, mutation/fuzz/race/performance tests, and explicit action
ceilings. GitHub, Stripe (including organization keys), and Slack strong forms
are probable and eligible for experimental redaction. AWS access-key IDs and
secret values have separate categories and are candidate/observe-only; the
secret value needs an exact label and bounded entropy. No finding claims
credential validity or existence, and no provider is contacted.
See the provider package record for current formats, sources, compatible detector licences, maturity evidence, and known gaps. All detectors remain disabled by the default policy and have no block authority.
Unicode obfuscation detector (M2 Implemented; no release gate passed)
builtin.security.unicode-obfuscation (category
security.obfuscation.invisible_unicode) reports characters that hide or
reorder text, following Unicode TR36 and UTS #39 and the Trojan Source attack
(CVE-2021-42574). Findings are not_applicable for validation; evidence
records the Unicode version of Go's tables (17.0.0 with Go 1.27).
| Entity | Reported | Not reported |
|---|---|---|
UNICODE_TAG_CHARACTERS | any run of U+E0000–U+E007F (ASCII smuggling) | a subdivision-flag emoji: U+1F3F4, 1–7 lower-case tag letters or digits, CANCEL TAG |
BIDI_OVERRIDE | LRO and RLO anywhere | — |
BIDI_UNBALANCED | embeddings and isolates still open at a line end; PDF or PDI without an opener | balanced pairs; LRM, RLM, ALM marks |
ZERO_WIDTH_CHARACTERS | ZWSP, ZWNJ, ZWJ, WJ, invisible operators, mid-text BOM, MVS touching ASCII, digits, punctuation, spaces, or a segment edge; any run of four or more | a leading BOM; ZWJ between emoji; joiners and breaks between letters of non-Latin scripts (Persian and Indic ZWNJ, Thai ZWSP) |
VARIATION_SELECTOR_RUN | two or more consecutive variation selectors (data smuggling) | a single selector, such as emoji presentation or an ideographic variant |
The example policy is
unicode-obfuscation.yaml; its
redact profile replaces flagged characters with [HIDDEN_UNICODE], because the
loader requires a non-empty replacement. Against the micro-slice's eight Unicode
evasion fixtures it flags the three zero-width cases. Fullwidth and
Arabic-Indic digits, combining marks, and homoglyph labels need UTS #39
confusable and digit folding, which this version does not do. Soft hyphens are
not reported.
Email detector (M2 Implemented; no release gate passed)
builtin.pii.email (category privacy.pii.email_address) recognises practical
RFC 5321/5322 ASCII dot-string and quoted-string local parts and IDNA-validated
Unicode or punycode domains with at least two labels. An address has
no checksum or issuer and is never looked up (no MX or SMTP probes), so
findings are candidate; this answers the validation_state question for this
detector without settling it for other non-identifier PII. Business and role
addresses are reported; allowlists are policy.
Not reported: hosts without a dot (root@localhost, lodash@latest), package
versions (react@18.2.0), retina image names (logo@2x.png), address literals,
malformed local parts, and SMTPUTF8 local parts. The example policy is
pii-baseline.yaml.
Payment-card detector (M2 Implemented; no release gate passed)
builtin.pii.payment-card (category privacy.pii.payment_card) requires an
exact 13–19 digit candidate, consistent ASCII separators, Luhn, and a
conservative Visa, Mastercard, or American Express family shape. Typed evidence
records shape, checksum, and coarse network pattern without the value; only the
brand-published Mastercard ranges emit issuer-family evidence. Obvious repeated,
sequential, and published test placeholders are rejected. validated means
structural validity only and never issuance, ownership, account existence, or
transaction status. Other card families and licensed account-range lookup are
deliberately absent. See the PII core record.
ABN detector (M2 Implemented; no release gate passed)
builtin.pii.au.abn (category privacy.pii.tax_id.au.abn, class
validated_structured) implements the
ABR format (checked 3 October
2026): 11 digits, contiguous or grouped 2-3-3-3, with the modulus 89 check.
About 1 in 89 random 11-digit values pass, so ADR 0010's context gate applies:
a checksum-valid value is reported only when bound to ABN, Australian Business Number (optionally with (ABN)), a quoted "abn" key, or an abn
field, and is then validated. Failing values are never reported. It reuses
the VSN label binding and the HPI-I boundary rules. Tests use the ABR's
published worked example, the ATO's own ABN.
ABNs are public business identifiers, so
pii-baseline.yaml records them in
both profiles and never redacts them. Known gaps: lower-case abn in prose,
labels after the value, and labels on another line are not bound.
Next wave (unranked):
- HPI-O;
- AU phone, IP address, MRZ, and labelled date of birth;
- CRN, USI, ImmiCard, Visa Grant Number, DVA, NSW WWCC, and VIN (label-gated);
- operator canary-token leakage, which generalises the existing
TEST_SECRET_CANARYcheck; - output exfiltration URLs;
- PSPF protective markings, ranked by government-tenant demand;
- JWT, connection strings, and secrets provider batch 2.
IHI evaluation
IHI is ranked first.
Why it ranks first:
- Low engineering cost. It uses the HL7 AU Base profile (CC0): 16 digits,
prefix
800360, and Luhn. The HPI-I validator, boundaries, surface forms, and evidence model carry over unchanged. It belongs in the samehealth-identifiers.yamlfamily. - High harm. It identifies patients and is restricted by HI Act s 26.
- Low false-positive risk. Random 16-digit text passes about 1 in 10⁷ times. Context changes evidence, never state.
The real cost is fixture risk. Tens of millions of IHIs are issued in a space of about 10⁹ Luhn-valid values, so a synthetic checksum-valid IHI has roughly a few per cent chance of being a real patient's number. HPI-I's chance is about 0.1%.
Privacy must approve these mitigations before specification:
- keep the number of distinct values minimal;
- prefer published standard examples;
- never pair a value with names, dates of birth, or providers;
- label every value as synthetic;
- keep values out of telemetry;
- generate the private holdout outside Git.
HPI-O should follow cheaply, but record-only: it is an organisational identifier.
Parallel tracks (not in the ranked list)
Deterministic action/mandate evaluators. These are policy evaluators, not content detectors. They all need a typed, authenticated action envelope, which today's evaluation request and trusted context do not carry.
| Track # | Evaluator | Banking rank |
|---|---|---|
| 1 | Tool/operation allowlist + irreversible-action tier gate | 6 |
| 2 | Tenant/principal isolation | 5 |
| 3 | Tainted-provenance barrier | 2 |
| 4 | Payment intent/parameter binding | 3 |
| 5 | Mandate binding | 1 |
| 6 | Separation of duties | 11 |
The plan places these in Phase 3. The banking research calls them the product wedge, so deciding the envelope ADR earlier is the main lever.
Model-backed detectors (Phase 5). These are integrated, not built:
- prompt-injection/jailbreak classifiers (Prompt Guard 2, ProtectAI v2, Granite Guardian);
- content-safety classifiers;
- person-name NER;
- banking conduct signals: complaint, hardship, scam coercion, advice boundary.
Run an offline benchmark spike in the Python harness now. Production use waits for:
- a runtime decision (OD-007/OD-021);
- model licence approval (the Llama licence is not OSI-permissive);
- self-hosting for sensitive traffic (OD-008).
Conduct and safety classifiers are route_or_friction_only: they can warn, clarify,
or route, but never make the sole adverse decision.
Defer and reject
| Decision | Candidates | Reason |
|---|---|---|
| Defer | Driver licences; WWCC/NDIS/state-student families; government service references; professional register numbers | No authoritative grammar (label-only capture); DVS is OD-016 |
| Defer | Medicare provider number | Only secondary sources; needs an inventory record first |
| Defer | Address | Phase 4 G-NAF/PAF decisions (OD-016/OD-017) |
| Defer | Generic password/entropy secrets; known jailbreak phrases | High false positives; observe-only telemetry at most |
| Defer | Encoded payloads; system-prompt similarity; multi-turn jailbreak | Needs derived-text spans, embeddings (OD-020), or session state (Phase 6) |
| Defer | Hate/harassment enforcement | Dialect false-positive harm; needs governed measurement first (OD-014/OD-015) |
| Defer | Payee integrity; insider purpose; lending evidence; vulnerability | Primarily bank controls or co-design dependent |
| Reject | Inventory exclude identifiers | No safe generic detector. Issuer-private numbers move to tenant-configured labelled-field rules (Phase 3) |
| Reject | Live credential validation | TM-11: testing a credential uses it |
| Reject | Protected-attribute or Indigeneity inference | Prohibited by ADR 0008 |
| Reject | Inline misinformation detection | No reliable detector. Policy-source integrity covers the bounded enterprise case |
Decisions needed
- Approve the ranked order, in particular whether secrets (ranks 2–4) interleave with Australian identifiers.
- Privacy approval for IHI fixture handling.
- Whether ADR 0010's validation state and class semantics extend to non-Australian structured values (payment card, MRZ, checksum tokens), or whether ADR 0010 needs an amendment.
- Medicare source: obtain and licence-check the ADHA conformance material, or keep Medicare context-bound.
- New category roots (
data.,action.,banking.,conduct.) and packages (data-handling,agent-actions,banking-au). - Whether to bring the action-envelope ADR forward.
- The model-runtime path and model licence policy (OD-007/OD-021).
- Package owners for
secrets,security-prompt, anddata-handling(ADR 0011 decision 6).
Maintaining the matrix
- Treat the matrix's legacy
maturityfield as research-planning status only. Update the M0–M5 capability registry for maturity claims. - Add sources before claims: external sources marked
verified_in_this_review: falsemust be revalidated at specification. - Never reuse an ID.
- Once ADR 0011 is approved, specified rows move into
catalog/packages/groundskeeper.dev/*. The matrix then becomes a generated view rather than a source.