Skip to content

Remove Evidence-based and All sources chips from answer footer - #293

Closed
BigSimmo wants to merge 22 commits into
cursor/fix-all-db-issues-5f13from
cursor/remove-answer-bar-chips-8b1a
Closed

Remove Evidence-based and All sources chips from answer footer#293
BigSimmo wants to merge 22 commits into
cursor/fix-all-db-issues-5f13from
cursor/remove-answer-bar-chips-8b1a

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Summary

Removes the Evidence-based and All sources footer chips from the answer-mode composer on all screen sizes. The answer bar now shows only the input pill and send button.

Scope and evidence remain reachable via the integrated + menu (Scope and Evidence map actions).

Changes

  • master-search-header.tsx: Hide footer chip row when searchMode === "answer" only.
  • ui-accessibility.spec.ts / ui-smoke.spec.ts: Open scope via + menu (Scope).
  • capture-chrome-parity.ts: Drop removed chip selectors.
  • scripts/capture-answer-bar-screenshot.ts: QA screenshot helper.

Verification

Previously on this branch: accessibility e2e (2 passed) and demo answer smoke test passed.

Local screenshot:

npm run ensure
npx tsx scripts/capture-answer-bar-screenshot.ts
Open in Web Open in Cursor 

BigSimmo and others added 20 commits July 3, 2026 21:00
The golden retrieval set was 100% lexical fast-path (embedding_skipped_rate=1.0), so
it could not measure whether a re-index changes vector/embedding retrieval quality.

- forceEmbedding option on searchChunksWithTelemetry (SearchChunksArgs): bypasses every
  lexical text-fast-path so retrieval always exercises the embedding/vector stage.
  Diagnostic/eval-only; folded into the search cache key; never set on production paths.
- eval-retrieval.ts: per-case `forceEmbedding` field + a global `--force-embedding` flag.
- 10 `vector-*` cases (psychiatric monographs: PTSD, OCD, panic, anorexia, GAD, Tourette,
  postnatal, bipolar, ADHD, opioid) with forceEmbedding=true. Each is a clinical query that
  must be answered by vector retrieval of the right monograph — verified live at
  document_recall@5=1.0, content_recall@5=1.0, all via strategy=hybrid (embedding used).

Rationale: forcing embedding is the correct instrument for re-index measurement — you want
to measure the vector index directly, not have a lexical shortcut mask a regression. Wording
alone can't reliably force the vector path (the fast-path is driven by emergent lexical-match
strength), so the flag makes these probes deterministic.

Live golden eval: 34/34 pass (24 existing + 10 new), no regression. verify:cheap green (980).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Wire forceEmbedding through eval runners and retrieval cache keys, bypass coverage/lexical shortcuts when forced, and add golden-case failure metrics so vector regressions cannot hide behind text-fast-path or cache hits.
…board

Delete post-extraction dead code left in the monolith and trim unused imports. Also fix minor lint issues in favourites-hub, visual-evidence, and services-navigator.
…rdening

fix(access): complete public retrieval scope and production access hardening
fix: restore anonymous production setup-status for psychiatry.tools
@supabase

supabase Bot commented Jul 5, 2026

Copy link
Copy Markdown

Updates to Preview Branch (cursor/remove-answer-bar-chips-8b1a) ↗︎

Deployments Status Updated
Database Sun, 05 Jul 2026 18:59:33 UTC
Services Sun, 05 Jul 2026 18:59:33 UTC
APIs Sun, 05 Jul 2026 18:59:33 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Sun, 05 Jul 2026 18:59:35 UTC
Migrations Sun, 05 Jul 2026 18:59:38 UTC
Seeding ⏸️ Sun, 05 Jul 2026 18:59:28 UTC
Edge Functions ⏸️ Sun, 05 Jul 2026 18:59:28 UTC

❌ Branch Error • Sun, 05 Jul 2026 18:59:39 UTC

ERROR: column "updated_at" of relation "document_table_facts" does not exist (SQLSTATE 42703)
At statement: 6
update public.document_table_facts dtf
set owner_id = null, updated_at = now()
                     ^

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@BigSimmo
BigSimmo force-pushed the cursor/fix-all-db-issues-5f13 branch from bf46bb0 to 09b3567 Compare July 5, 2026 17:53
@BigSimmo
BigSimmo marked this pull request as ready for review July 5, 2026 17:59
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

- Reduce answer composer inset to match chipless footer and restore scope focus target
- Remove one-shot commit-access-rag-fix maintenance script
- Include public corpus in owner-scoped retrieval_owner_matches SQL
- Pin tools launcher selection while detail panel is open
- Store anonymous public uploads with null owner_id and public storage paths
- Register document_upload API rate limit bucket with defaults
@BigSimmo
BigSimmo force-pushed the cursor/fix-all-db-issues-5f13 branch 2 times, most recently from 6201117 to 09b3567 Compare July 5, 2026 18:42
Co-authored-by: Cursor <cursoragent@cursor.com>
@BigSimmo

BigSimmo commented Jul 5, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #303 — clean branch from main with full footer chip removal (all modes, not answer-only).

@BigSimmo

BigSimmo commented Jul 5, 2026

Copy link
Copy Markdown
Owner Author

Closing in favor of #303

@BigSimmo BigSimmo closed this Jul 5, 2026
cursor Bot pushed a commit that referenced this pull request Aug 9, 2026
Keep main's shared #290-#293 queue. Drop duplicate pr-handoff #291 (already #284).
Archive this PR's #279 canvas-gate resolution alongside main's #264/#277 closures.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
BigSimmo pushed a commit that referenced this pull request Aug 12, 2026
… rows

Repairs. Two main-merges silently reverted edits from this branch, and the
re-apply script missed them because it was hand-enumerated from round 1's
second commit only:
- #293 the entire min-h-tap refutation was gone (grep sm:min-h-0 returned 0);
  the row was back to asserting a defect that does not exist. Restored from
  a6bfc6f. This was the live hazard — as reverted it directed a reader to
  strip desktop step-downs and pin every control to 48px.
- #266 restored the 2026-08-12 counts (54/31/23) over main's older 53/30/23.
- #262 deliberately NOT restored: main's version is newer than mine and
  records --shadow-tight retired outright on 2026-08-10.
- #289 archived; verified fixed in round 1 and never actually closed.

Stamps. Sixteen rows were checked during the sweep, found correct, and left
unchanged — which left no trace, so they were indistinguishable from rows
nobody had opened. Each now carries VERIFIED CORRECT 2026-08-12 plus the
measurement that settled it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017paT42ZVMf8jaLtkjFxdy5
BigSimmo added a commit that referenced this pull request Aug 12, 2026
…310) and the ledger loss-detector (#311) (#1870)

* docs(issues): capture the fuzzy-search drug-match finding and the loss-detector

#310 — PR #1851's fuzzy catalogue search matches DIFFERENT drugs at edit
distance 2. Measured by running the PR's own algorithm rather than reading it:
fluoxetine -> duloxetine (Damerau counts the lu->ul transposition as one edit,
both are 10 chars, so the >=8 tier's 2-edit budget allows it) and
prednisone -> prednisolone. Intended recovery still works (sertraline,
olanzapine) and the short-term guards hold (SSRI/SNRI, ADHD/ODD). Two real
mitigations recorded so it is not over-read: fuzzy fires only when nothing
matched literally, and sub-5-character terms are excluded. Tested fix is one
line — cap the >=8 tier at 1 edit, which kills both cross-drug hits and keeps
every legitimate typo case. Blast radius is eleven modules including
medications.ts, because catalog-search.ts feeds the whole clinical catalogue.

#311 — promote the derived ledger loss-detector into scripts/. Two main-merges
silently reverted ledger edits this session, including the whole #293
refutation, and the hand-enumerated recovery list could not catch it. The
derived version has now earned its place twice.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017paT42ZVMf8jaLtkjFxdy5

* chore(ledger): record the finding-capture handoff

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore(ci): run focused PR 1870 ledger correction

* chore(ci): use repository Node version for PR 1870 fix

* ci(pr-1870): merge current main and finalise ledger fixes

* ci(pr-1870): scope final verification and publish normally

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
BigSimmo pushed a commit that referenced this pull request Aug 14, 2026
…merged

#215, #210, and #293 were queued as `done` in this same PR, each citing a PR
(#1949, #1953, #1962) that turned out still to be open, not merged — verified
by checking whether each PR's actual file change is present on origin/main
(none are). Reconciling the original `done` requests would have closed these
rows while their fixes exist only on unmerged branches, one of which (#1949)
currently has failing required CI.

Converts all three to `update` requests documenting the correction and the
real current state, so reconciling this PR now cannot close a row before its
fix has actually landed. Leaves #98, #189, and #194 as `done` unchanged —
those cite PR #1950 and PR #1947, both confirmed merged into main.
BigSimmo pushed a commit that referenced this pull request Aug 15, 2026
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