Skip to content

Slice C: Deal Sheet + Wednesday Risk View - #5

Open
sheharyaralidev wants to merge 1 commit into
samay-cbh:mainfrom
sheharyaralidev:slice-c-deal-sheet-wednesday-view
Open

Slice C: Deal Sheet + Wednesday Risk View#5
sheharyaralidev wants to merge 1 commit into
samay-cbh:mainfrom
sheharyaralidev:slice-c-deal-sheet-wednesday-view

Conversation

@sheharyaralidev

@sheharyaralidev sheharyaralidev commented May 15, 2026

Copy link
Copy Markdown

Settlement starts on Wednesday, not at 2am. Most disputes are caused by ambiguities already present in the deal email the day it was signed — the venue and the agent just don't notice them until the room is empty and the tour bus is loading out. I built two surfaces:

  1. Deal Sheet (/shows/[id]/deal-sheet) — parses deal_notes_freetext against the structured fields and a catalog of dispute-causing patterns. Each ambiguity becomes a flag with severity, evidence quote, suggested action, and a pre-drafted clarification email. Each can be resolved, acknowledged, or dismissed — and the trail of those decisions becomes the audit record that's missing today.
  2. Wednesday Risk View (/wednesday) — every show with open flags, sorted by severity. Marcus's exact ask: "I wish she could see, before a show even happens, whether the deal is going to be a clean one or a messy one."

Hero demo path:

  • /wednesday → see the Coastal Spell dispute surfaced as a sign-off mismatch (status: disputed, sign-off: "Looks good") + 8 high-severity flags across the corpus.
  • Click into show_coastal_spell_dispute → 🔴 "Marketing recoup — inside or outside the expense cap?" flag, with evidence quoted from the prose, suggested action, and a draft email Mariana can copy-paste in 30 seconds.
  • Click into show_0000 (a clean flat deal) → 🟢 "Deal is settle-ready."

Settlement starts on Wednesday, not at 2am. Two new surfaces that surface
deal-capture ambiguities before they become 2am settlement fights.

- lib/dealParser.ts        deterministic parser + ambiguity catalog
                           (LLM-swappable; same interface)
- lib/clarifications.ts    JSON-file persistence for resolutions
- lib/riskQueries.ts       aggregate parse for the Wednesday view
- app/shows/[id]/deal-sheet  per-show deal sheet with flag cards
                              + structured-vs-prose comparison
- app/wednesday              risk view across all shows; surfaces the
                              brief's status/sign-off mismatch breadcrumb
- components/deal-sheet/flag-card.tsx
                           interactive flag card: resolve/acknowledge/
                           dismiss + draft clarification email
- Show detail page          new Deal Sheet entry-point button
- Sidebar nav               new Wednesday top-level link
- MEMO.md                  1.5-page PRD: why this slice, what I built,
                           what I cut, validation plan, ship-next list
- README.md                case-study overview at the top
@sheharyaralidev
sheharyaralidev force-pushed the slice-c-deal-sheet-wednesday-view branch from aca6e4f to dbb9784 Compare May 15, 2026 15:06
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