# TACITUS portable inference From a checkout or download of the GitHub toolkit, use Python 3.12 and Node 20 or later. Clone the Hugging Face Space and enter its `toolkit` directory if you prefer to use the Hub copy. ```sh python -m research.fetch_models python -m research.fetch_models --check echo '{"task":"events","text":"The council requested a review.","include_participants":true}' | node tacitus.cjs ``` The same runner handles Evidence requests with a `claim` field and Actors requests with just `task` and `text`. Results use exact Unicode offsets and include the weights revision. Use `node tacitus.cjs --jsonl` to stream a batch. Invalid rows return an error with the input line number and the remaining rows are still processed. The process exits with status 2 for a batch containing an invalid row. A known trigger for Events is optional. Supply `trigger` with its exact code-point `start`, exclusive `end`, and canonical `event_type`. Set `include_participants` to `true` to score participants. The result distinguishes disabled, scored, and capped participant scans. Treat candidate participants as suggestions for source review. [Request schema](contracts/request.schema.json) · [Result schema](contracts/result.schema.json) · [Weight hashes and revisions](contracts/models.lock.json) · [GitHub toolkit](https://github.com/sargonxg/TCGC_TACITUS-Conflict-Grammar-Corpus_BENCHMARK/tree/main/source-toolkit) ## Portable files and benchmark replay Use `node tacitus.cjs --input fixtures/request.json` on Linux, macOS, or Windows. The npm alias is `npm run analyze -- --input fixtures/request.json`. The CLI also accepts stdin, validates UTF-8, and bounds each request to 64 KiB before parsing. A malformed or oversized JSONL record produces a line-numbered error while later records are processed. Run `npm test` after fetching the weights. Use `python -m research.civic.compact_eval --output build/civic-compact.json` to replay the compact models against both pinned civic cohorts and record exact revisions. The reference labels are provisional.