Label AI-scored room conditions as AI-generated on inspection report in /sign/[token]#6
Open
keywise-app wants to merge 1 commit into
Open
Label AI-scored room conditions as AI-generated on inspection report in /sign/[token]#6keywise-app wants to merge 1 commit into
keywise-app wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposal: Label AI-scored room conditions as AI-generated on inspection report in /sign/[token]
Severity: high · Route: /sign/[token]
Friction
On
/sign/[token], tenants are shown a move-in or move-out inspection report that includes room-level condition scores ("Excellent", "Good", "Fair", "Poor") and areport_textblock before they sign. The code renders these directly fromdocData.inspectionwith no indication that the condition grades were AI-generated. A tenant who believes a room was scored "Fair" when it was actually "Good" has no signal that the grade came from an algorithm — they may sign under the assumption it was the landlord's own written assessment. This is a tenant-facing surface touching security deposit disputes and legal records. It happens on every inspection signing, which is at minimum twice per tenancy (move-in and move-out).Proposed change
On
/sign/[token], add a small inline label — e.g. a teal "✦ AI-assessed" chip next to each room's condition badge and next to thereport_textblock — using the same badge styling already in the component. Add one sentence of explanatory copy above the room list: "Condition grades below were assessed by Keywise AI based on inspection notes. Contact your landlord to dispute any grade before signing." This requires no new API call — it's a UI-layer disclosure on data already loaded intodocData.inspection.Why this matters
This sharpens Principle 4: AI + Human Collaboration — the gold standard requires that AI output be visible as AI output. Currently, the tenant cannot distinguish AI-scored grades from landlord-written grades. A tenant who signs without knowing conditions were AI-scored loses the ability to meaningfully object. Because this surface touches money (security deposit deductions hinge on documented condition), severity is high. Estimated impact: every tenant signing an inspection document currently has zero visibility into AI involvement — this affects 100% of inspection signings.
What I changed
✦ AI-assessedchip (teal, matching the existing badge style) next to each room's condition badge, rendered only when a condition exists.✦ AI-assessedchip next to the "Inspection Summary" label in thereport_textblock, using a flex row for alignment.<div style={{ display: 'flex', ... gap: 6 }}>to accommodate the second chip cleanly — the condition badge itself is untouched.No new API calls, no new dependencies, no schema changes.
Files touched
app/sign/[token]/page.tsx— Added AI disclosure banner, per-room "✦ AI-assessed" chip, and "✦ AI-assessed" chip on the report_text block header.Notes
rooms.length > 0, so it won't show on inspection documents that have no room data.report_textchip only appears whenreport_textis present — same conditional guard as before.overall_conditionfield does not get a chip because it's not currently labeled as a condition badge in the UI — it's a plain text line. If that needs a chip too, that's a follow-up.