IntentGuard

S02.1 — Pin and implement the BANKING77 loader

Planning / historicaltaskdelivery

Historical

Planning material. It summarizes and links to the authoritative specification and the current measured state — it does not replace either, and it is not current engineering truth.

Migration identity#

  • Canonical identifier: S02.1 (GitHub issue type: subtask).
  • Legacy identifier: C02.1 (retained as old_identifier).
  • Parent epic: E02.
  • Milestone: M1 — IntentGuard Weekend MVP.

Objective#

Resolve an immutable PolyAI/banking77 revision and load it through one offline data boundary.

Rationale#

Dataset identity must be verifiable before any benchmark or split claim is valid.

Parent identifier#

E02.

Source task#

T-002.

Traceability#

Primary: T-002. Secondary: FR-001, AC-001.

Prerequisites#

U01 complete; network or verified cache available; upstream revision and license verified.

Likely files#

configs/default.toml, src/intentguard/data.py, scripts/prepare_data.py, tests/unit/test_data.py.

Implementation boundary#

Load BANKING77 by explicit revision; no substitute corpus or training behavior.

MUST scope#

Revision resolution, loader configuration, offline/cache error handling, and raw schema validation.

Explicit non-goals#

Synthetic fallback as strict data, augmentation, external OOD data, or model tokenization.

Acceptance criteria#

Loader records the exact revision and source, validates required fields, and fails with actionable diagnostics when neither source nor verified cache is usable.

Validation commands#

make data && uv run pytest tests/unit/test_data.py -q.

Expected evidence#

Resolved revision, source/license metadata, successful load summary, and deterministic failure tests.

Fallback and status consequence#

Verified cache is Implemented; synthetic data is Mocked/Partial and fails strict MVP.

Stop condition#

Stop for unresolved revision, incompatible schema, license conflict, or unverified cache.

Definition of ready#

U01 is done and revision verification can be performed without test leakage.

Definition of done#

The pinned loader passes and provenance contains an immutable revision.

Labels#

type:subtask, priority:MUST, area:data

Estimate#

0.5 hour.

Related in repository

Open in full graph →
DOCUMENTED_BYDOCUMENTED_BY — source: docs/backlog/tasks/C02.1-pin-banking77-loader.md § S02.1 — Pin and implement the BANKING77 loaderREFERENCESREFERENCES — source: docs/backlog/tasks/C02.1-pin-banking77-loader.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C02.1-pin-banking77-loader.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C02.1-pin-banking77-loader.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C02.1-pin-banking77-loader.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C02.1-pin-banking77-loader.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C02.1-pin-banking77-loader.mdPART_OF — source: docs/backlog/TRACEABILITY.md § Source tasksPART_OF — source: docs/backlog/TRACEABILITY.md § Source tasksREFERENCES — source: docs/backlog/tasks/C02.1-pin-banking77-loader.md § TraceabilityREFERENCES — source: docs/backlog/tasks/C02.1-pin-banking77-loader.md § TraceabilityREFERENCES — source: docs/backlog/tasks/C02.1-pin-banking77-loader.md § TraceabilitySATISFIES — source: docs/specification/docs/TRACEABILITY.md § Functional traceabilityREFERENCES — source: docs/backlog/umbrellas/U02-banking77-data-contract.md § TraceabilityREFERENCES — source: docs/backlog/umbrellas/U02-banking77-data-contract.md § TraceabilityREFERENCES — source: docs/backlog/umbrellas/U02-banking77-data-contract.md § TraceabilityCURRENTdocument: S02.1 — Pin and implement the BANKING77 loaderS02.1task: S02.1AC-001 — Data contractacceptance-criterion: AC-001 — Data contractE02epic: E02FR-001 — Dataset prepara…requirement: FR-001 — Dataset preparationT-002 — Pinned dataset p…task: T-002 — Pinned dataset provenance and validated splitsU01 — Project foundation…capability: U01 — Project foundation and reproducibility
Hover an edge for its provenance · click a node to open it7 nodes · 16 edges