This guide helps you verify the end-to-end functionality of OriginSteward, from dropping a file to searching for it.
- Ensure you are in the project root.
- Activate the virtual environment:
source venv/bin/activate.
Open a terminal and run:
python ingest_daemon.pyLeave this running.
Open a new terminal tab (keep the daemon running in the first one).
Drop a JSON payload representing a URL.
# Create a test payload
echo '{"type": "url", "payload": "https://example.com", "timestamp": 123}' > Inbox/web_test.jsonVerify:
- Check the Daemon terminal: Should say
New file detected->Processing payload type: url->Indexed artifact. - Check
Archive/YYYY-MM-DD/: You should seeweb_test.md.
Drop a JSON payload representing a Tweet.
# Create a test payload
echo '{"type": "url", "payload": "https://twitter.com/jack/status/20", "timestamp": 123}' > Inbox/tweet_test.jsonVerify:
- Check the Daemon terminal.
- Check
Archive/YYYY-MM-DD/: You should seetweet_test.mdcontaining "just setting up my twttr".
Now that data is ingested and indexed, search for it.
python cli.py search "example"Expect: The Web Capture artifact.
python cli.py search "twttr"Expect: The Tweet artifact.
- Logs: Check
Error/*.logif files disappear from Inbox but don't appear in Archive. - Dependencies: If
yt-dlpfails, ensure you have internet access.