Mirror Market: Frankenstein for Secondhand Listing Verification
Paste a secondhand listing URL. Mirror Market shows what the page hides, with a source behind every line.
Why I Built It
Before writing code, I read 154 prior competition entries: 62 Kiroween 2025 winners and 92 public 2026 submissions. The entries that did well named a specific buyer and shipped something a judge could open. Most "AI detects a bad thing" entries ended in a bare score with nothing behind it.
The concrete trigger was a Wayback Machine CDX query against a retail product page. It returned real snapshots at $69.99 in 2017 and $79.00 in 2020. A live listing can quietly drop that history; an archive remembers it. Mirror Market puts the page's own claims and the archive's receipts in the same view.
What It Does
Paste a URL. The server retrieves the page (Tavily key stays server-side), and the report shows four shipped signals plus the page's own data:
- Photo reuse: Where a photo was seen earlier, with the source named.
- Seller account age: Younger than thirty days, at least thirty days, unknown, or contradictory across receipts.
- Pressure language: Three or more listed pressure phrases in the listing text, fewer than three, unknown, or contradictory.
- Photo scope: The fourth signal, generated by the Kiro hook (details below).
- Comparable and archived prices: Including the Wayback timeline where a snapshot exists.
- Compressed Ghost DOM: The listing's compressed DOM appears beside the buyer view, making removed or rewritten fields visible.
Every finding is a receipt: a Fact ID, a named source, and a SHA-256 digest of the canonical evidence.
States are "KNOWN", "UNKNOWN", or "CONTRADICTORY". An unreachable source stays "UNKNOWN"; it does not silently become clean.
There is no "safe" or "legit" verdict anywhere in the engine. The lowest green state reads "no known red flags found in sources checked."
The report ends with a downloadable "what to ask the seller" card, so the user leaves with a question to ask rather than a score to stare at.
Demo mode needs no key or sign-in: a controlled listing URL and five labelled fixtures. The controlled listing returns two "KNOWN" and two "UNKNOWN" findings. That is deliberate: a missing source is shown, not hidden.
How I Built It
Tech stack: TypeScript, Node 22, Express 5, Zod 4, Vite 8, Vitest 5, fast-check 4, and Node's Web Crypto SHA-256.
The engine is deterministic: extraction and the model may emit claims, but code decides every finding.
Five slices shipped:
- The evidence contract.
- Property-based tests.
- The photo-reuse signal.
- The receipts-rail UI.
- The hook-generated fourth signal.
Three read-only MCP tools came with them.
Kiro feature| How it was used| Why it mattered Specs| Requirements, design and tasks for the evidence engine and signals; every task carries an "Requirements: x.y" tag. The fourth signal came from ".kiro/specs/photo-scope.signal.json".| A finding can be traced back to the requirement that produced it, and a spec can be fed straight into the generator hook. Hooks (one generator hook, proven firing)| ".kiro/hooks/generate-signal.json" fired via "node .kiro/hooks/generate-signal.ts --spec .kiro/specs/photo-scope.signal.json". It emitted an analyzer, a PBT test, a registry entry and a README row.| The hook actually ran. The four generated artifacts can be diffed against base commit "4ca9aac" instead of trusting a config file. Steering| "product.md", "tech.md", "structure.md", "never-safe.md" on every file; "retro-ui.md" scoped by fileMatch.| Generated code inherits the receipt-first rules: never assert "legit", keep UNKNOWN first-class, keep the forensic UI. No separate review pass was needed. MCP (read-only)| Three auto-approved tools: "explain_evidence", "compare_prices", "photo_reuse".| Kiro could interrogate the same evidence surface a buyer sees, without mutating a finding. PBT (falsification that changed the product)| fast-check properties over the evidence contract. P6 falsified "more evidence always lowers risk" at seed "20261123" with "[Known, Contradictory]"; P7 enforces the corrected rule.| A test broke one of my own assumptions and the UI changed: attention is now the maximum tri-state rank, contradiction dominates, and a conflict label suppresses green.
".kiro/" is committed at the repo root and is not gitignored. The test suite passes and typecheck is clean.
The Hook, With a Before/After Trace
The generator hook was triggered by a spec, not described in one.
Before the run, the photo-scope analyzer, its PBT test, the registry entry and the README row did not exist. After the run, all four did.
The committed artifacts under "artifacts/hook-trace/" record the before and after states at base commit "4ca9aac".
That trace is the proof I chose over a folder of configured-but-unfiring hooks.
When a Test Broke the Product's Assumption
I assumed more evidence always lowers attention.
Property P6 disagreed at seed "20261123", run index 4, with the minimal counterexample:
"[Known, Contradictory]"
The rail's attention went from 0 to 2.
The rule changed rather than the test.
P7 now enforces max tri-state rank with contradiction dominating, a visible state transition, and a conflict label that suppresses green.
Challenges
- Prior art was occupied. Several 2026 entries already shipped one engine with two apps, line-level receipts and a never-safe posture. I did not claim those as novel. The kept frame is the buyer-side secondhand-listing domain and a hook shown firing with a reviewer-checkable diff.
- The archive is patchy. Individual marketplace listings are rarely archived; retail product pages often are. No price history was fabricated. "No archived snapshots" is a first-class UNKNOWN receipt with a handoff.
- Live marketplace pages often return no usable data. The demo therefore uses a controlled listing URL and labelled fixtures. A known limitation remains: an unrelated UNKNOWN receipt can suppress a supported finding, and that fix is not in this build.
What I Learned
- Impact beats novelty: A named buyer with real money at stake and a demo a judge can touch mattered more than clever architecture in the entries I studied.
- A configured hook is not a firing hook: One hook with a committed before/after trace is worth more than a directory of JSON that never ran.
- UNKNOWN is a feature: Refusing to call an unchecked source clean is what makes the receipts trustworthy.
- Let a test change the product: P6 found a wrong assumption; the UI rule, not the test, was edited.
Why Frankenstein?
Frankenstein fits this build: a live page, a compressed DOM, an archived price and a seller's claim are incompatible sources stitched into one report that has to agree on the evidence.
Built With
- css
- express.js
- fast-check
- github
- html
- kiro
- node.js
- tavily
- typescript
- vite
- vitest
- wayback-machine
- zod