Documentation Index Batch
A free EchoEmpire trial for teams that maintain their own documentation index. Watch a short list of public pages and get a local, replayable JSONL batch when a page changes or becomes unavailable.
Download 0.1.0-rc2 · SHA-256 · Reproduce the offline example
Run it on your own sources
Extract the archive on Linux with Python 3.12. Live capture also uses curl 8.4 or newer, getent, and the system certificate store. Create these two files in the extracted directory.
watch.jsonis version 1 with a chunk size of 25–400 words and 1–12 distinct public HTTPS URLs. For each URL, selecttext,main, orarticleand provide an 8–160 character phrase that uniquely identifies the page.prior.jsonis version 1. Itspagesobject uses exactly the watched URLs as keys. For an already indexed page, supply its existing chunk IDs and normalized text SHA-256 hashes in chunk order. Use[]for a page new to your index.
watch.json
{
"version": 1,
"words_per_chunk": 40,
"watch": [
{
"url": "https://docs.example.test/guide",
"mode": "main",
"required_text": "Setup and configuration"
}
]
}
prior.json
{
"version": 1,
"pages": {
"https://docs.example.test/guide": []
}
}
Replace the example URL and phrase with your own. Run this once from the directory containing run_index.py and the two files.
slot=$(date -u +%Y%m%dT%H%M%SZ) && python3 run_index.py run watch.json ./trial-state "$slot" --seed prior.json
Verify the committed batch against your watch file in a separate process.
python3 verify_index.py "./trial-state/runs/$slot" --watch watch.json
Read ./trial-state/runs/$slot/events.jsonl. It contains one row per watched URL with its action, reason, source observation and chunk changes. next.json is the resulting manifest. For later runs, use a later UTC slot and omit --seed. See the full RC2 instructions for URL rules, bounds, and replay.
Read the decisions before applying a batch
- Upsert
- A verified HTTP 200 can replace that page’s chunks, including removing superseded chunk IDs.
- Delete
- Whole-page deletion requires a direct HTTP 410 on the first attempt and explicit local approval bound to the page’s current prior hash. The first-run command supplies no approvals.
- Unchanged
- The new chunks match the prior manifest.
- Hold
- A 404, timeout, unsupported layout, or uncertain removal preserves the existing chunks. A batch can verify and still contain holds.
You review the changes and apply them to your own index. A live smoke test used two public plaintext pages on one origin. A verified batch within 24 hours of a source change is what this trial is meant to test.
Optionally share a private completion or blocker receipt. Choose an outcome and blocker category. Your URLs, documents, and index stay local.