Danil Sharov - ~/portfolio/cases open for projects

danil@agent:~/portfolio$ cat cases/yasnost.md

Home page of the Yasnost service

Yasnost

Whole project · subscription health-tech service · yasnosty.ru

A person uploads PDFs from any lab and gets one view of their test results over time, a health score and an explanation in plain language. Inside there are payments, subscriptions, a dashboard for the supervising doctor, a blog and an admin panel.

# client and role

The product owner set the task and the budget. I was the only developer and built everything: the database schema, the server, payments, the CMS and analytics. We had regular calls, and on the same day I turned the decisions from each call into tracker tasks and started on them.

# what was built

  • Document upload and parsing. The service turns PDFs from any lab, as well as ultrasound and MRI reports and discharge summaries, into one list of markers with reference ranges for sex and age.
  • Chat about your own results. The model answers based on the person's own markers, it does not need generic articles from the internet for that.
  • Report and trends. Health score, a breakdown by body system, an action plan, comparison with past tests.
  • Money. Plans, subscriptions, auto-renewal and promo codes, payments via YooKassa (a Russian payment provider).
  • Supervisor dashboard. A doctor manages their clients and adds to their plans.
  • Blog and SEO. Articles are published without a developer. Most users come from Yandex search (Russia's main search engine).
  • Server and reliability. One-command deploy, backups, monitoring.
  • Personal data law. Servers in Russia, consent forms, data export and deletion on request, as Russia's personal data law (152-FZ) requires.

# product screens

Finished report screen: health score and biological age
Report: health score, biological age, "see a doctor now" priorities and a plan
Biomarkers screen: markers with history and status
Biomarkers: each marker has a history and an in-range or out-of-range status
Report on a phone
The same dashboard on a phone
Chat about test results on a phone
Chat about your own results: every answer is based on a specific marker

# working with the client: changing course mid-flight

The product was planned for a premium audience, but three months after launch it became clear that mass-market search traffic was coming in. On a call with the owner we reworked pricing and the home screen. We wrote the decisions down, split them into tasks and shipped them one by one while the service kept running. I see writing code to spec as the smaller part of the job. The bigger part is rebuilding the product quickly when users do not behave the way you expected.

# how the model's output is checked

The first version of the report was a single request to the model. The text looked convincing, but the model regularly made things up: it linked an old test result to a medication the person started taking later, or put forward a hypothesis not backed by any specific marker. For a medical product that is not acceptable, so I split the report into stages and added a check at each one.

Analysis screen: processing stages run one after another
The user sees the analysis step by step: extraction from PDF, matching against the marker catalog, building the report
  1. 01
    Code prepares the data

    Code puts test results, medications and doctors' notes on one timeline and collects them into a fact table where every fact has its own ID. The model gets the order of events ready-made and does not have to guess anything about the past.

  2. 02
    The analysis fans out into parallel passes

    About fifteen independent passes by topic (heart, metabolism, hormones, medications vs. markers) run in parallel. If one fails, the others still finish, and the report is built from whatever is ready.

  3. 03
    Every claim is verified

    Code checks numbers against the fact table, and references to publications against the list of ones actually retrieved. At the end it checks coverage: every abnormal result must be addressed or explicitly marked as unimportant. Code finds made-up and missing items by comparison, nobody has to proofread the report for that.

  4. 04
    Spending cap

    Every model call goes into a spending log tied to the user. A soft limit sends a warning, a hard limit stops the analysis, so one report cannot suddenly cost as much as a hundred.

I got to this design over three versions of the report, and each one was cheaper and more predictable than the last. More on that on a separate page: AI inside a product.

The key numbers, the health score and biological age, are calculated by code with plain arithmetic using a published method, the model is not involved. People judge their health by these numbers, so they must not change from run to run: the same test results give the same result today and a month from now.

# an in-house webvisor

Yasnost's recordings show a personal account with other people's medical test results, and those cannot go to Yandex Metrica or any other third-party service. So I built Yasnost its own session recorder. Metrica shows how many people left, this shows why: what the person saw and clicked, at which funnel step they left, what was happening on the server at that minute. An AI picks the visits worth reviewing and reviews the person as a whole, across all their visits.

Visit player: screen recording, event feed, goals and signals
A whole visit: screen recording, event feed on the right, funnel goals and the spots where the person stumbled. The data on screen is for demo.

# webvisor: visit recordings

Every visit is recorded and plays back like a video. Inside is the reconstructed page, so you see every click, input, scroll, server request and console error. At the top is a summary of the selection: how many people, how many reached the chat, payment, the report, where they get stuck and where they leave without a funnel step. Friction signals are tagged automatically: a click followed by an error, a series of taps on one spot, a button that does nothing, going back after a couple of seconds.

Weekly visits summary: goals, problems, where we lose people
A week on one screen: filters by source, entry page, goals and problems, and a "where we lose people" summary
Stats: funnel by people and by source
Stats: the funnel counts people, broken down by source, device and entry page

# webvisor: AI review of visitors

Nobody can watch thousands of recordings by hand, so every visit gets a score: did the person reach sign-up, upload, payment, were there errors. The ones worth reviewing end up at the top of the list. For each, a cheap model writes one sentence: where they came from, how far they got, what to look at in the recording. Notes for the whole base of several hundred candidates cost about five cents.

The full review is done by an agent. It collects all of the person's visits, their data in the database (read-only) and the server logs for the same minutes, and writes a card: who this is, where they came from, a timeline, what broke, what to fix. Every conclusion links to evidence: a recording timestamp, a log line, a database record.

Review candidates: score, model note, visit path
Candidates: visit score, the model's note and the path step by step, grouped by person
Finished AI review of a visitor
Finished review: the gist in plain words, timeline, friction and takeaways for the product

# webvisor: server logs

Logs open alongside and are described in the same plain language. At the top are the day's problems, grouped ("PDF text: timeout, 9 times from 6 am to 10 pm"). The daily view shows when there are more errors than usual. Below is a log by topic: uploads, chat, payments, reports. Noise such as page views, search bots and empty cron runs is hidden by default. Clicking a user ID shows everything that happened to that user on the server.

Server logs: the day's problems and a log by topic
Logs: errors by day, the day's problems in groups, a log by topic without noise

# webvisor: problems solved along the way

  • Purchases were lost in the funnel. A person uploaded test results in one visit and paid in another, and the purchase did not show up in the funnel. Now the funnel counts it by the furthest step the person reached across all visits, and the numbers match the payment system.
  • Bots pretended to be people. Crawlers came with a normal screen size, scrolled pages, even typed into forms and skewed the funnel. Now they are detected by the browser signature and by a square window that no monitor or phone has.
  • The list took half a minute to open. The program went through the whole archive on every start. Now it caches visit cards, and a list of over a hundred thousand visits opens in seconds.
  • Two people got merged into one. An acquaintance signed up from the same Wi-Fi network. Now a visitor is identified by network and device together: it is better to split one person into two profiles than to merge two different people.

In six months the recorder captured over 130,000 visits on Yasnost, and the AI wrote over 600 visitor reviews. The reviews found things the numbers do not show: a button led to the wrong place, the chat answer ignored the person's test results, an error appeared only on two-column scans. A separate product later grew out of this tool: Vidno.

# result

The first payments came in 107 days after the first commit. We traced one real user's path end to end: a Yandex search on a phone, a blog article, sign-up, 6 uploaded PDFs and a finished report. It all took 30 minutes, and the analysis ran without a single error. The product is live in production and still being developed.

danil@agent:~/portfolio$ ls cases/

# client work

# side projects