Skip to content

design review: shared sandbox, evaluation and training boundaries #12

Description

@Sam123ben

Parent: #1. Related: #7, #10, tesserix/devai#392, #393, tesserix/ai-agents#26 and tesserix/australis#21.

Outcome

Define product-neutral GCS, CNPG and identity boundaries for Document Intelligence sandbox execution, evaluation corpora/results, training/calibration data and candidate model artefacts. The OCR service is reusable by every authorized product and agent through versioned service endpoints and Australis tools; it is not owned by Kora.

Kora is one consumer. Its production document buckets and Langfuse credentials remain product-specific and cannot become shared service training/evaluation infrastructure.

This is a design-review issue. It does not authorize live bucket, IAM, KMS, CNPG, Kubernetes, dataset-copy, training, model-promotion or rollout changes.

Proposed shared logical storage classes

  • document-intelligence sandbox: ephemeral synthetic/public/de-identified documents only.
  • document-intelligence dataset candidates: quarantined, governed nominations from any eligible product.
  • document-intelligence training corpus: only approved train/calibration objects; never held-out test objects.
  • document-intelligence development evaluation corpus: immutable approved fixtures for ordinary non-production evaluation.
  • document-intelligence evaluation results: redacted scores, reports and safe trace correlation metadata.
  • document-intelligence candidate models: signed model/profile bundles awaiting qualification.
  • protected document-intelligence golden corpus: sealed held-out test set, unavailable to developers, sandboxes, training and ordinary CI identities.

Physical names and projects remain placeholders until GitOps review. A dedicated evaluation/training GCP project is preferred. Dataset manifests carry product source, tenant-policy class, allowed purpose, residency and consent/licence without granting one product access to another products raw data.

Reusable integration boundary

  • Products upload/read only through authenticated v1 service endpoints, never shared bucket credentials.
  • AI agents call the provider-neutral Australis extract_document tool or generated service SDK.
  • Tenant and product identity come from verified workload/user identity, never request-controlled fields.
  • API/result/event schemas are additive and versioned independently from OCR engines/models.
  • Product-specific agents, prompts, policies and Langfuse projects remain outside the OCR service.
  • Service model/evaluation promotion publishes a signed compatibility manifest usable by all approved consumers.

Review checklist

  • Approve data classification and allowed provenance for every shared storage class.
  • Approve globally unique physical names, owning GCP project, region, encryption and lifecycle rules.
  • Prove every product runtime, including Kora, cannot directly read shared training/golden buckets.
  • Prove sandbox/training identities cannot read any production product document bucket or the held-out test corpus.
  • Prove the protected evaluator cannot mutate frozen corpus versions.
  • Define immutable manifest promotion without in-place edits or cross-product data leakage.
  • Define poisoning, licence/consent, de-identification, duplicate/leakage and human-adjudication gates.
  • Define global CNPG registry states and roles; bytes remain in GCS.
  • Define DevAI PR, nightly, release, shadow and canary execution with separate non-production credentials.
  • Define reproducibility tuple: dataset, labels, code, model, preprocessing, calibration, schema, runtime and hardware digests.
  • Define TTL cleanup, cost quotas, deletion/withdrawal, audit, backup/restore and incident response.
  • Require zero production credentials and zero corpus bytes in PR/fork workflows or CI artefacts.
  • Add contract tests proving two different products can use the service without data, cache, trace or policy crossover.

Exit criteria

A reviewer-approved matrix shows which shared service identity can read/write each bucket and CNPG relation; product identities use endpoints/tools only; datasets cannot enter training/evaluation without immutable governed versions; test leakage is mechanically prevented; DevAI compares candidates reproducibly; and promotion/rollback operate on a signed service compatibility manifest.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:evaluationGolden datasets, metrics, experiments, or promotion gatesarea:storageObject storage, lifecycle, backup, or deletion designdesign-reviewArchitecture or contract awaiting recorded reviewplatform:sharedReusable cross-product service or platform capability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions