Skip to content

feat: PolicyInsight pattern extraction (hardened)#3

Merged
ChimdumebiNebolisa merged 8 commits into
mainfrom
feat/policyinsight-pattern-extraction
Jul 11, 2026
Merged

feat: PolicyInsight pattern extraction (hardened)#3
ChimdumebiNebolisa merged 8 commits into
mainfrom
feat/policyinsight-pattern-extraction

Conversation

@ChimdumebiNebolisa

Copy link
Copy Markdown
Owner

Summary

  • Adds typed analysis stages, evidence ID-first highlighting, and hardened model-only retry (POST /api/analyze/retry-model) with server-side payload validation and evidence rebuild.
  • Adds analysis mode banner, full report Markdown export, and expanded unit/integration coverage (135 tests; >=95% on critical modules).
  • Tracks docs/POLICYINSIGHT_EXTRACTION_AUDIT.md normally; dedupes analysis mode labels and report copy (shared download button, removed dead public-copy constants, reduced Texas section repetition).

Test plan

  • npm test (135/135)
  • npm run test:coverage (98.09% statements; thresholds pass)
  • npm run typecheck
  • npm run lint (3 pre-existing warnings)
  • npm run verify:legal
  • npm run evaluate
  • npm run build
  • Manual dev smoke: sample lease -> report, mode banner, both Markdown downloads, no developer debug panel
  • PDF upload / paste text / Gemini-unavailable retry (not run in this pass)

Remaining risks

  • Content integrity key (documentId) is a stale-state check only, not authentication.
  • Playwright e2e not run in CI for this PR.

ChimdumebiNebolisa and others added 8 commits July 11, 2026 16:14
Document feature comparison, defer/reject decisions, and reference SHAs for the extraction pass.
Add typed analysis stages, evidence index in responses, ID-first highlighting, and stronger fallback quote resolution.
Add model-only retry API, client cache, mode banner, and full report Markdown export.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
before-you-sign Ready Ready Preview, Comment Jul 11, 2026 10:28pm

@ChimdumebiNebolisa ChimdumebiNebolisa merged commit 33b730b into main Jul 11, 2026
5 checks passed
@ChimdumebiNebolisa ChimdumebiNebolisa deleted the feat/policyinsight-pattern-extraction branch July 11, 2026 22:30
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.

1 participant