Security and trust
What it touches
Section titled “What it touches”What rnd writes, by where it lands:
- Inside the repo (the library:
--library, else$RND_ROOT, else the nearest folder at or above the working directory that holdsentries/andinstruments/, else the checkout the package runs from):rnd new(one new file underentries/orinstruments/, never overwriting),rnd new-question(questions/),rnd new-experiment,rnd runs recordandrnd collect <name>(experiments/<name>/),rnd claims assign,rnd reconcileandrnd sync(claim lines and bound numbers in existing Markdown files),rnd change(changes/),rnd bump(mcptoolshop_rnd/__init__.pyandCHANGELOG.md, through temporary files beside each, and it deletes thechanges/fragments it used),rnd catalog sync(catalogs/<name>/catalog.json),rnd datapack build(datapacks/<name>/datapack.json) andrnd layout(docs/layout.json). - The index:
rnd.db, or the path given by--dbor$RND_DB, with a temporary.db.tmpfile beside it while it is built.rnd buildwrites it, and every command that reads the index (search,show,list,tools,stats,catalog,claims,questions,sql,runs,ledger,where,probe) rebuilds it first when a source file has changed. The miss logrnd.misses.jsonlsits beside it (see below). - Your home folder:
rnd watchwrites its seen-items file to--state, else$RND_WATCH_STATE, else~/.rnd/watch-state.json(built in code asPath.home() / ".rnd" / "watch-state.json"), where it stays across runs. It is written through a.tmpfile beside it.--no-saveskips the write. - The raw-data stores, outside the repo:
rnd raw ingest,rnd raw privateandrnd raw relicensewrite to the public store (--public, else$RND_DATA, else../rnd-data) and the private store (--private, else$RND_DATA_PRIVATE, else../rnd-data-privatebeside the library; whenrnd rawis run outside a library,rnd-data-privatebeside the public store).rnd raw ingestalso puts every file over 256 KB into the blob store, underblobs/in the folder named by$RND_DATA_STORE_Dor by the"d"entry of the public store’sstore.local.json(there is no default; without one, ingest refuses). Blobs are written through a.tmpfile beside them and marked read-only. With--linka new blob is a hard link to the source file, so that source file becomes read-only too (a blob already in the store is left alone, and so is its source); without--linkthe source is not changed.rnd raw ingest --updatedeletes a run’s earlier small files in the two stores before writing the new ones.--dry-runwrites nothing. - Read, never written:
rnd readouts(SQLite read-only mode),rnd collectsource clones (git show),rnd raw verify,rnd datapack verify --copy,rnd runs record --from,rnd abmine, andrnd similarandrnd digest, which work in memory and write nothing anywhere: no temporary file, no working-tree, git index orrnd.dbchange. - Code it runs:
rnd collect <name>, with or without--check, loads and runsexperiments/<name>/extract.py(or the module that folder’scollect.jsonnames) from the library (mcptoolshop_rnd/collect.py:142-149). Python may cache that module’s bytecode inexperiments/<name>/__pycache__/.rndlimits what it writes itself toexperiments/<name>/; it does not limit what that module’s own code does, so run it only on a library you trust. - Outside the
rndcommand: the package also shipsmcptoolshop_rnd.localbuilders, the harness of the local-builders experiment. Norndcommand runs it. Run directly (for examplepython -m mcptoolshop_rnd.localbuilders.runner), on the rented machine it was written for and partly as root, it creates, deletes and changes the owner and permissions of files under the paths its caller passes (work, home, history, virtual-environment, receipt, log, report, secret-directory and containment-probe paths), and its scorer uses a temporary folder in the operating system’s temp folder, removed when it finishes.
What it never touches
Section titled “What it never touches”- No
rndcommand writes, deletes or changes a file anywhere other than the places listed above. - No credentials: it neither stores nor reads any.
- No network, except
rnd catalog sync,rnd probeandrnd watch, which read public metadata or call the GitHub API through your ownghCLI login when you run them. - No background service, and no
rndcommand needs elevated permissions.
The local-only usage log
Section titled “The local-only usage log”Nothing is collected or sent anywhere. One thing is written on your own machine:
when rnd search returns no matches, it appends one line (the UTC time and the
query) to rnd.misses.jsonl beside rnd.db (git-ignored in the repo), or beside
the index named by --db or $RND_DB (with --db foo.db the file is
foo.misses.jsonl beside it, not foo.db.misses.jsonl).
- Set
RND_NO_USAGE=1to turn it off. - Delete the
.misses.jsonlfile at any time to clear it. rnd stats --usageprints the count and the most frequent missed queries.- No other usage data is recorded.
Public-repo hygiene
Section titled “Public-repo hygiene”The repo is public and entries are written fast, so hygiene is a step, not a hope:
- Before every push, the tracked tree is scanned for home-directory paths and operator identity. A hit stops the push.
- Entries are written in the author’s own words. Copyrighted text is not pasted in.
- Generated images are re-saved without their embedded generator metadata.
- Experiment receipts are checked before they are committed. Large inputs stay outside the repo, pinned by checksum.
Reporting
Section titled “Reporting”See SECURITY.md. Content that should not be public is in scope too: report it the same way.
