# engram ingest-transcript

Source: https://usecns.dev/engram-cli-ingest-transcript/

[Start here](https://usecns.dev/manual-engram/)
[CLI commands](https://usecns.dev/commands-engram/)
[Configuration & integration](https://usecns.dev/engram-topics/)

Required `--input PATH` or positional JSONL path; `--ring RING` defaults M4; `--kind KIND` defaults first permitted of incident/failure\_mode/environment\_fact; `--seat-token TOKEN` applies when capability enforcement is active (environment fallback); shared `--ote`, `--db`. Mines gate-failure/fix episodes after envelope stripping. Invalid file/vocabulary/access/token fails. This explicit import is neither source discovery nor a redactor.

Input is normalized event JSONL, not automatic support for every harness archive. User context comes from `type` (fallback `role`) = `user` with string `content`. Tool name/arguments/path use the [hook fields](https://usecns.dev/engram-topic-hook-payloads-and-feedback/); command may also be top-level `command`. Unlike post-tool-use, integer `exit_code` wins over `tool_response.is_error` here, and missing indicators default to non-error. A classified failed gate is retained until a subsequent classified non-error gate (not necessarily the same command); intervening file edits and last user prompt become the episode body. Both lint/test gates count for mining, without awarding pass likelihood. Invalid JSON lines are skipped. Result: `input`, `episodes_mined`, `minted_keys`, `minted_memory_ids`; zero is not proof the entire transcript was interpreted. Under capability enforcement, prefer `ENGRAM_SEAT_TOKEN`, since the importer also invokes record internally and its outer `--seat-token` is not forwarded to that call.

See [CLI conventions](https://usecns.dev/engram-cli-usage/) for shared configuration and exit behavior, or [browse all commands](https://usecns.dev/commands-engram/).