Skip to content

Category overview v2: gender-specific source data and drift checks #134

Closed

Description

@Atrium0804

Goal

Build the source-data slice of the independent second implementation of Combineer categorie, verzet en licentie in bypass met geslachtsspecifieke verzetdata. This is an ordinary implementation ticket, not a wayfinder decision.

Authoritative requirements

Use the parent feature specification and its later flat-output decision. The recognition/state decision governs dependent lookup behavior. Do not copy or cherry-pick the preserved implementation.

Scope and contracts

  • Migrate app/knwu_categories.json to gender x age-category x discipline gearing data, using verzetten.per_geslacht with jongens and meisjes keys. Retain source, version, articles and auditable correction metadata. Do not maintain a second independently editable gender-neutral table.
  • Give the gearing accessor in app/knwu_categories.py an explicit, typed gender input. Migrate every directly dependent caller/test in the same slice. A caller without a gender filter must handle both genders explicitly and label their values; never silently default to boys. Keep valid standalone lookups working while the later overview slice is not yet wired into chat.
  • Distinguish a source value NVT from an invalid/unknown lookup through validation; do not silently turn absent/invalid data into a valid fact. Preserve ordinary valid source values and the existing pure-function style.
  • Verify both source columns in tests/test_knwu_categories.py. Cover boys U11 road = 5.90 m, girls U11 road = 5.50 m, and girls U9 cyclocross = free gearing.
  • Apply only the explicitly approved girls U9 cyclocross correction. The feature issue identifies the duplicated source rows in Title 20, page 8, article 20.1.007. Record the source/correction evidence; do not rewrite the source document, show an uncertainty warning for this approved case, or disable general drift checking. Track values can remain for source checking but do not become a supported answer discipline.
  • Keep directly relevant document-change/drift instructions consistent. Do not add a temporal-validity engine, dependencies, broad refactors or unrelated fixes.

Validation and completion

Use TDD for the gender-specific behavior and narrow correction allowance. Run the source-data tests plus affected accessor/lookup/context tests, and pyright. Preserve relevant existing route behavior; add test-first route-contract rows if this slice intentionally changes routing rather than merely the data/access interface. Existing flat-format checks must remain green. Review the diff before committing, with the required co-author trailer.

Branch/worktree handoff

At execution time, create the feature integration branch feature/102-category-overview-v2 from freshly fetched current origin/main if it does not yet exist; record its base commit. Never reset an existing branch. Keep feature/bypass-verzetten-en-categorieen-tonen unchanged.

Work in this ticket's own branch/worktree based on the integration branch. PR into the integration branch, not main. Include the issue reference and validation results. Later slices start after this slice is merged there; partial integration builds are not deployed or presented as a completed comparison build. No branch or worktree is created by the planning session that files this ticket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions