G1 observe evidence workflow
The legacy G1 release-gate evaluator produces action-eligibility evidence for the shipped experimental HPI-I and exact-labelled Victorian Student Number (VSN) detectors. It does not enable either detector, alter the default policy, promote a catalogue entry or M-level capability maturity, or authorise real-traffic processing. The normative criteria remain in detector release gates.
Current outcome
Both detectors are NOT_READY for G1. The repository has developer-authored
conformance fixtures and synthetic benign/hard-negative suites, but no governed
independent holdout. A generated variant shares its base_case_id with its
source and therefore contributes no additional independent sample. G1 also
requires the detector-owner, independent-engineer, and privacy telemetry
approvals. OD-029 approval remains pending for the small registry of
structurally valid synthetic fixtures. The versioned
conservative baseline profiles resolve L-H2,
L-V1, L-V6, bare-VSN, grouping, and all T01–T14 dispositions, so those choices
are no longer G1 evidence gaps.
Generate a bundle
From the repository root:
go run ./cmd/g1-evaluator --output evidence/g1The output is:
gate-report.json, validated bytest/gates/gate-report.schema.json;gate-report.md, a value-free operator summary;SHA256SUMS, binding both files.
The report records detector versions and source digests, baseline profile IDs, versions and exact configuration-byte digests, the exact gate and policy byte digests, corpus byte hashes, provenance and licence, generator version and seed, independent and physical case counts, raw aggregate counts, one-sided 95% Clopper–Pearson bounds, environment, known gaps, approvals, and the final outcome. Reports may contain case IDs for failures. They never contain segment text, a matched value or substring, an unkeyed/value-derived hash, or a finding fingerprint.
The evaluator verifies that each baseline's pinned digest, profile identity, detector version/class/category and validation-state ceiling agree before running any corpus. A mismatch fails bundle generation rather than producing evidence for an ambiguous configuration.
Supply governed holdout or background evidence
Additional corpora use test/gates/evaluation-corpus.schema.json and are passed
with repeatable --corpus flags. A holdout must declare
provenance.independence: independent, identify its origin, licence, label
guideline and approval, and supply stable opaque case IDs. Positive identifier
shapes must come only from the OD-029-approved registry/generator process. Do
not ingest production traffic, query the HI Service or Victorian Student
Register, use an external judge, or derive fingerprints from values.
node_modules/.bin/ajv validate --spec=draft2020 --strict=false \
-s test/gates/evaluation-corpus.schema.json -d /restricted/holdout.json
go run ./cmd/g1-evaluator \
--corpus /restricted/holdout.json \
--corpus /restricted/benign.json \
--output /restricted/evidence/g1Keep restricted corpus files outside the repository and CI artefacts. The bundle contains only their SHA-256 byte digests and aggregate evidence. Inspecting a holdout case for debugging retires it to development and requires a replacement.
Regression and statistics
--baseline previous/gate-report.json performs the invariant rule of no newly
failing case. The evaluator package also implements the specified one-sided
exact McNemar test and deterministic paired bootstrap over base cases; these are
reported as insufficient until paired base-case outcomes exist. It never treats
absence of data, an unapproved threshold, or a generated expansion as a pass.
Run npm run validate for gate/corpus/report schema checks, an evidence-bundle
smoke test, all Go tests, and the repository identifier scan. Release evidence
must additionally attach the race, fuzz, benchmark/resource, docs, container,
and secret-scan results from the same commit and environment.
Operational attestation
cmd/g1-attester measures the public synthetic HPI-I/VSN paths without reading
an external or holdout corpus. Its immutable profile pins the seed, repetition
counts, payload sizes, concurrency and timeout. The value-free report binds the
source commit, gate, policy, baseline profiles, public fixture and operational
profile by digest.
go run ./cmd/g1-attester \
--subject-commit "$(git rev-parse HEAD)" \
--runner '<stable runner identifier>' \
--baseline /path/to/same-runner-promoted/operational-report.json \
--race-status READY \
--fuzz-status READY \
--benchmark-status READY \
--container-status READY \
--output evidence/g1/operationalThe READY flags are attestations by the caller: use them only after the named
checks pass on that exact subject commit and runner. The G1 minimums are 10
determinism runs and benchmark -count=10. The profile uses 500 latency samples,
so the sample maximum bounds p99 with confidence 1 - 0.99^500, greater than
95%. Raw benchmark output should be retained beside the report. When
--baseline is supplied, the attester rejects a profile, operating system,
architecture, Go version, CPU model, logical-CPU count, detector or payload-size
mismatch and records paired latency, allocation and timeout ratios plus the raw
baseline digest.
The built-in manifests under internal/checks/pii/manifests declare a 1 MiB
request and segment limit, 128 segments, concurrency 2, 50 ms timeout, memory
bounds, and candidate/label/context-check bounds. Exceeding any detector limit
returns fixed partial coverage with resource_limit_exceeded; policy therefore
records the check as unjudged rather than clean. F2 requires zero measured
overruns and F5 reports against the manifest memory bound. F3's G3 allocation,
F6 and O4 stay NOT_READY until SRE approves budgets under OD-004. F4 stays
NOT_READY when no same-environment raw baseline is supplied.