Skip to content

feat(match): honest structural fallback + A3/A12 fixtures#32

Merged
officialCodeWork merged 1 commit into
developmentfrom
build/phase-4/gap-a3-a12
Jul 14, 2026
Merged

feat(match): honest structural fallback + A3/A12 fixtures#32
officialCodeWork merged 1 commit into
developmentfrom
build/phase-4/gap-a3-a12

Conversation

@officialCodeWork

Copy link
Copy Markdown
Owner

Gap-closing: A3 & A12 (structural fallback honesty)

The catalog files A3 (text served by API/CMS) and A12 (non-text UI — charts/canvases/icon buttons) under Phase 4.2, but only A1 had a fixture. This proves the "graceful degradation + explicit low confidence" contract.

  • Honesty rule: a structure-only match (zero text/alias/correction evidence) is now capped at medium confidence — shape alone is never high.
  • a3-api-text: labels are all {data.*} (no literals) → matched by structure at medium confidence; a text query honestly declineds.
  • a12-non-text: a chart + two icon buttons → a text query declineds (no false match), a structure descriptor returns a medium-confidence candidate.
  • GoldenQuery.confidence assertion added.

Verification

41 core tests pass; pnpm eval green — honesty metrics unchanged (high-conf correct 1.0, ambiguity honesty 1.0, poison 0.0).

🤖 Generated with Claude Code

Close the A3/A12 coverage gap from Phase 4.2. Structural matching already
handled text-free UIs, but nothing proved the "graceful degradation + explicit
low confidence" contract:

- A structure-only match (no text/alias/correction evidence) is now capped at
  medium confidence — shape alone is never "high".
- Fixtures a3-api-text (labels served by API/CMS → matched by structure, medium
  confidence; a text query honestly declines) and a12-non-text (chart + icon
  buttons → text declines, structure descriptor returns a medium-confidence
  candidate).
- GoldenQuery gains a `confidence` assertion.

41 core tests pass; eval green (honesty metrics still 1.0/1.0/0.0).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@officialCodeWork
officialCodeWork merged commit 20babbb into development Jul 14, 2026
1 check passed
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.

2 participants