Skip to content

Deliver offline generic food search and calibrated augmentation - #117

Merged
syamaner merged 1 commit into
mainfrom
codex/issue-98-generic-food-search
Sep 21, 2026
Merged

syamaner merged 1 commit into
mainfrom
codex/issue-98-generic-food-search

Conversation

@syamaner

Copy link
Copy Markdown
Owner

Closes #98

Outcome

  • ships an offline, hash-verified 2,887-row CoFID 2021 search adapter using the frozen Eval: Generic-food retrieval, closest-match safety and calibration #92 matcher, hard rules, weights, threshold, result limit, aliases and deterministic tie-break
  • exposes the production flow at Food logging -> Search Generic Foods, with exact/closest explanations, explicit candidate choice, explicit decline, no-result guidance and shared populated confirmation
  • records release, row, matcher, score, material differences, fixed explicit-selection policy and per-nutrient provenance; no automatic acceptance path is introduced
  • saves confirmed name aliases atomically and resolves later exact saved-food searches locally before CoFID ranking
  • preserves old candidate archives when match metadata is absent and rejects altered selection-policy provenance

Review boundaries

Validation

  • swift test --package-path Packages/FoodLedgerKit (86 tests green: presentation 6, domain 17, contract 40, application 16, generic search 7)
  • bash Packages/FoodLedgerKit/Scripts/check-boundaries.sh
  • full xcodebuild test on iPhone 18 Pro / iOS 27.0 simulator with coverage
  • full xcodebuild analyze on the same simulator destination
  • frozen Eval: Generic-food retrieval, closest-match safety and calibration #92 evaluation suite and byte-identical corpus/hash checks
  • git diff --cached --check, project/Info.plist validation

Evidence

  • canonical bundled corpus SHA-256: 2b0fbbade4d405eabcad440cabb1560e9861d9388c5fb4032ef24c81fb45f445
  • reviewed head: 82318fe

@syamaner
syamaner merged commit 7f8ecaf into main Sep 21, 2026
11 checks passed
@syamaner
syamaner deleted the codex/issue-98-generic-food-search branch September 21, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deliver populated generic-food search and calibrated augmentation

1 participant