The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
Threat Rules — Event field reference
Generated from the Beacon Event schema. These are the fields a rule's CEL
expression can reference, bound to the variable e (e.g. e.event.action).
Field selection is null-safe: an absent sub-object yields the zero value.
Regenerate with beacon rules fields --markdown > spec/threat-rules/FIELDS.md.
| Field | Type |
|---|---|
e.approval.decision |
string |
e.approval.reason |
string |
e.approval.required |
bool |
e.branch |
string |
e.command.command |
string |
e.command.duration_ms |
int |
e.command.exit_code |
int |
e.command.output |
string |
e.command.parsed_commands |
list(asymptoteobserve.ParsedCommand) |
e.content.bytes |
int |
e.content.hash |
string |
e.content.included |
bool |
e.content.redacted |
bool |
e.content.retention |
string |
e.content.truncated |
bool |
e.destination.mode |
string |
e.destination.status |
string |
e.destination.type |
string |
e.endpoint.agent_version |
string |
e.endpoint.hostname |
string |
e.endpoint.os |
string |
e.error.type |
string |
e.event.action |
string |
e.event.category |
string |
e.event.fidelity |
string |
e.event.id |
string |
e.event.kind |
string |
e.field_truncated |
bool |
e.file.diff |
string |
e.file.diff_bytes |
int |
e.file.diff_hash |
string |
e.file.language |
string |
e.file.operation |
string |
e.file.path |
string |
e.gen_ai.agent.description |
string |
e.gen_ai.agent.id |
string |
e.gen_ai.agent.name |
string |
e.gen_ai.agent.version |
string |
e.gen_ai.context.limit_tokens |
int |
e.gen_ai.context.used_tokens |
int |
e.gen_ai.conversation.id |
string |
e.gen_ai.data_source.id |
string |
e.gen_ai.embeddings.dimension_count |
int |
e.gen_ai.evaluation.explanation |
string |
e.gen_ai.evaluation.name |
string |
e.gen_ai.evaluation.score.label |
string |
e.gen_ai.evaluation.score.value |
double |
e.gen_ai.operation.name |
string |
e.gen_ai.output.type |
string |
e.gen_ai.prompt.name |
string |
e.gen_ai.provider.name |
string |
e.gen_ai.request.choice_count |
int |
e.gen_ai.request.encoding_formats |
list(string) |
e.gen_ai.request.frequency_penalty |
double |
e.gen_ai.request.max_tokens |
int |
e.gen_ai.request.model |
string |
e.gen_ai.request.presence_penalty |
double |
e.gen_ai.request.seed |
int |
e.gen_ai.request.stop_sequences |
list(string) |
e.gen_ai.request.stream |
bool |
e.gen_ai.request.temperature |
double |
e.gen_ai.request.top_k |
double |
e.gen_ai.request.top_p |
double |
e.gen_ai.response.finish_reasons |
list(string) |
e.gen_ai.response.id |
string |
e.gen_ai.response.model |
string |
e.gen_ai.response.time_to_first_chunk |
double |
e.gen_ai.retrieval.query_text |
string |
e.gen_ai.system_instructions_text |
string |
e.gen_ai.token.type |
string |
e.gen_ai.tool.call.id |
string |
e.gen_ai.tool.call.result_text |
string |
e.gen_ai.tool.description |
string |
e.gen_ai.tool.name |
string |
e.gen_ai.tool.type |
string |
e.gen_ai.usage.cache_creation.ephemeral_1h_input_tokens |
int |
e.gen_ai.usage.cache_creation.input_tokens |
int |
e.gen_ai.usage.cache_read.input_tokens |
int |
e.gen_ai.usage.cost_usd |
double |
e.gen_ai.usage.input_tokens |
int |
e.gen_ai.usage.output_tokens |
int |
e.gen_ai.usage.reasoning.output_tokens |
int |
e.gen_ai.workflow.name |
string |
e.handoff.source_harness |
string |
e.handoff.source_session_id |
string |
e.harness.collection_method |
string |
e.harness.config_path |
string |
e.harness.executable_path |
string |
e.harness.name |
string |
e.harness.profile |
string |
e.harness.version |
string |
e.health.component |
string |
e.health.reason |
string |
e.health.status |
string |
e.jsonrpc.protocol.version |
string |
e.jsonrpc.request.id |
string |
e.mcp.method.name |
string |
e.mcp.protocol.version |
string |
e.mcp.resource.uri |
string |
e.mcp.server |
string |
e.mcp.session.id |
string |
e.mcp.tool |
string |
e.message |
string |
e.model |
string |
e.network.protocol.name |
string |
e.network.protocol.version |
string |
e.network.transport |
string |
e.origin |
string |
e.policy.decision |
string |
e.policy.enforcement |
string |
e.policy.id |
string |
e.policy.name |
string |
e.policy.reason |
string |
e.product |
string |
e.prompt.id |
string |
e.prompt.text |
string |
e.repository |
string |
e.rpc.response.status_code |
string |
e.run.actor |
string |
e.run.branch |
string |
e.run.commit |
string |
e.run.ephemeral |
bool |
e.run.event_name |
string |
e.run.job |
string |
e.run.pr |
string |
e.run.pr_number |
string |
e.run.provider |
string |
e.run.repository |
string |
e.run.run_attempt |
string |
e.run.run_id |
string |
e.run.workflow |
string |
e.schema_version |
string |
e.sequence |
uint |
e.server.address |
string |
e.server.port |
int |
e.session.id |
string |
e.session.working_directory |
string |
e.severity |
string |
e.share.visibility |
string |
e.system_context.kind |
string |
e.system_context.skills |
list(asymptoteobserve.SkillRefInfo) |
e.system_context.source |
string |
e.timestamp |
string |
e.tool.command |
string |
e.tool.name |
string |
e.tool.path |
string |
e.trace.id |
string |
e.trace.parent_span_id |
string |
e.trace.span_id |
string |
e.turn.status |
string |
e.user.name |
string |
e.user.uid |
string |
e.user_agent.name |
string |
e.user_agent.version |
string |
e.vcs.attribution.changed_files |
int |
e.vcs.attribution.matched_files |
int |
e.vcs.attribution.method |
string |
e.vcs.hook.budget_ms |
int |
e.vcs.hook.cut_short |
bool |
e.vcs.hook.elapsed_ms |
int |
e.vcs.hook.git_spawns |
int |
e.vcs.hook.name |
string |
e.vcs.hook.phase |
string |
e.vcs.hook.phase_elapsed_ms |
int |
e.vcs.ref.head.name |
string |
e.vcs.ref.head.revision |
string |
e.vcs.ref.head.type |
string |
e.vcs.repository.url.full |
string |
e.vendor |
string |
Derived fields
These are computed by the engine from the event just before evaluation. They are never written to or read from the log, so a fixture sets the source field, not these.
e.command.parsed_commands:command.commandread as a bash command line (spec v1.2): one entry per command it runs, each withname(base name after sudo/env/exec/... wrappers, "" when unknown),argvandargv_raw(every word, wrappers included: as passed, "" when it depends on an expansion, glob or~; and as written),env(NAME=value prefixes),file_effects({path, op}),pipeline,stage(0-based) andnested(inside$(...),<(...)or a shell's-cscript, which is read too). Here-document bodies and other strings are not commands. The first 4096 bytes are read; a cut capture yields the commands before the cut, and one that does not parse yields an empty list.e.gen_ai.system_instructions_text:gen_ai.system_instructionsas text: thecontentof eachtextpart, one per line (a bare string as is), when content was retained. These are runtime-provided instructions such as a skill index, never operator prompt text. Each part is capped at 4096 bytes and secret-redacted like other retained text; empty otherwise.e.gen_ai.tool.call.result_text:gen_ai.tool.call.resultas text, only on read-type tool results (file.read,mcp.tool_invoked, MCP-named tools, web fetch/search tools, atool.paththat is an http(s) URL) whose content was retained. String leaves of an object or list result are joined one per line; content blocks in a list contribute their text without metadata or encoded bytes. Capped at 4096 bytes and secret-redacted like other retained text; empty otherwise.