---
title: Check the Markdown before handing a page to an agent
description: >-
  We collected Onevium’s English and Chinese blog and guide exports, then used
  two offline controls to see what an HTTP 200 check would miss. Replay the
  results and reuse the handoff checklist.
canonical_url: 'https://onevium.com/blog/agent-markdown-handoff-check'
language: en
published_at: '2026-11-22'
publisher: Onevium
---
# Check the Markdown before handing a page to an agent

We collected Onevium’s English and Chinese blog and guide exports, then used two offline controls to see what an HTTP 200 check would miss. Replay the results and reuse the handoff checklist.

## A successful download can still be the wrong source

We were reviewing how readers could pass a Onevium article to a personal agent. The first question was whether the same English or Chinese article actually arrived as Markdown. A response marked HTTP 200 can still contain an error page. A valid Markdown document can come from the other language version, and an agent can translate it so smoothly that the mix-up is hard to spot.

On November 22, 2026, we used Codex, Python and curl to check two collections from the public site. Six published exports passed the checks; one deliberately missing URL returned 404. Two separately constructed offline controls both had HTTP 200 and both were held by the full check. The exercise verified the material we would hand over. It did not run the files through Claude Code, Onevium or a third-party chat service.

## Write down what you expect to receive

For each input, we saved the exact HTML URL and language, plus two markers from the body. The first collection covered the [Anthropic IPO analysis](https://onevium.com/blog/anthropic-ipo-claude-compute-costs) and the [getting-started guide](https://onevium.com/docs/getting-started), each in English and Chinese. In the IPO article we used the heading about the $5 billion short-term capacity bill and the link to the calculation file. In the guide we used the headings for checking the result and choosing a next step.

The collector requested each page’s `.md` URL and saved the status, media type, canonical link header and response body. The review also checked `language` and `canonical_url` in Onevium’s Markdown header and searched for both markers in the body. This catches a response that points at a plausible page but supplies different text. For another site, check the export format first. `text/markdown` identifies the media type, while these metadata fields are part of Onevium’s export format.

## Change one input and compare the two decisions

All four exports in the first live collection passed. That sample alone could not tell us whether a status-only check would catch the failures we cared about. We kept the original capture and made two offline variants:

- **An HTML document in a response labelled Markdown.** We kept the status and headers of the Chinese blog response, and replaced the body with a small HTML error page. The full check held it as `HTML_DOCUMENT`.
- **English content at the expected Chinese address.** We substituted the actual saved English response. It was still valid Markdown with HTTP 200, but its language, both canonical values and body markers disagreed with the Chinese manifest. The report shows each mismatch.

The second live run used different inputs: both language versions of the [custom-provider guide](https://onevium.com/docs/providers/custom), whose Markdown URL is nested, and one deliberately missing address. The two guides passed. The missing address was held at HTTP 404. These results let a reviewer distinguish a missing page from a response whose body belongs to another source.

![Actual reports: the first live run allowed 4 of 4 both ways. The two offline controls passed HTTP 200 but were held by the full check. The second live run allowed 2 of 3 both ways.](https://onevium.com/assets/blog/markdown-handoff/result-en.webp)

Counts from the saved reports. The offline controls were constructed locally from captured responses.

## Replay the reports and try another source

[Download the Markdown handoff workshop](https://onevium.com/downloads/markdown-handoff-workshop.zip). It contains the expected inputs, saved response bodies, three reports, the check script and a handoff prompt. Extract the archive and open its `markdown-handoff` directory. Python 3.10 or later can replay the same decisions offline:

```sh
python3 review.py check targets-first.json snapshot-first.json
python3 review.py check targets-controls.json snapshot-controls.json
python3 review.py check targets-followup.json snapshot-followup.json
```

Read `verified` and `reasons` beside `status_only`. We replayed these commands and compared all three outputs byte for byte with the saved reports. For a fresh collection, make a new manifest from published pages and use a fresh output file:

```sh
python3 review.py capture targets-followup.json fresh-followup.json
python3 review.py check targets-followup.json fresh-followup.json
```

The capture uses curl and visits the explicit public Onevium URLs in the manifest. The report’s SHA-256 identifies the decoded text that was saved, so another reviewer can check they have the same input.

## Give the agent the source and the reason to stop

For a reading brief, hand over the checked Markdown and its canonical URL together. Ask the agent to name the section that supports each key claim, quote the smallest relevant passage and flag any question the source does not answer. The workshop prompt gives it a separate place to list held inputs.

If a check fails, first open the canonical HTML page in the intended language. Compare the expected heading and link, and fetch the Markdown again if necessary. A site can genuinely revise a heading, so update the manifest only after reading the revised source. The two body markers are a spot check. For a number you plan to cite or a procedure you plan to follow, compare that exact passage with the HTML article. This is the same kind of review you can preserve when you [inspect files and terminal results](https://onevium.com/docs/files-terminal-review).

Source: [RFC 7763 · The text/markdown media type](https://www.rfc-editor.org/rfc/rfc7763.html)
