Engram · Import & sync
engram ingest-transcript
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; 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 for shared configuration and exit behavior, or browse all commands.