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
id: s03-file-write
# Exercises file-signal capture. file.path is the second scalar leaf threat rules depend on
# (rules/sensitive-edit/ and rules/credential-access/ match on it), so its population matters
# as much as command.command.
#
# Likely to fail for the same root cause as s02: Claude Code reports the path inside the
# tool_input JSON string, and PopulateCommon only reads flat attributes. Verifying that
# empirically is the point.
prompt: >-
Use the Write tool to create the file {{sentinel}} containing exactly this single line:
{{canary}}
sentinel: /home/agent/work/s03-written.txt
budget_usd: 1.0
timeout_seconds: 300
expect:
- action: prompt.submitted
contains: ["{{canary}}"]
why: Baseline.
- action: file.modified
fields: ["file.path"]
min_count: 1
why: >-
rules/sensitive-edit/ matches on e.file.path. Note Beacon emits file.created for some
runtimes and file.modified for others; if this fails, check the histogram in the
verdict for which action actually appeared.