ARTEX/agent
BaaRai 4b815d5ee0 feat: ask_operator environmental handoff discipline
When a worker hits an environmental failure (sandboxed or filtered
network path, missing binary or key, TLS or proxy interception, missing
runtime permission), nothing today tells it how to stop: transcripts
show turn after turn of retries with different flags, equivalent tools,
or fallback transports, all burning budget against a wall the agent
cannot move.

Changes:

- the ask_operator tool description now covers environmental blocks
  explicitly: do not retry or work around; include the exact single
  command the operator should run in their own terminal as one
  copy-pastable line, plus what to paste back, then wait. The question
  parameter description gains the same guidance.
- worker and pentest seeds gain an "Operator handoff on environmental
  blocks" block: stop after the first environmental failure, no
  flag-hopping, no bypass hunting, one command per ask_operator request,
  never batch.
- tests: the tool description must keep the handoff markers
  (TestAskOperatorEnvHandoffGuidance) and the executor seeds must keep
  the block (TestPromptSeedsCarryOperatorHandoff).

Pattern adapted from bug-bounty-hunting-prompts (MIT), whose operator
handoff rule produced exactly this single-command format.
2026-10-12 06:45:21 +02:00
..
adversarial_gate_seed_test.go feat: adversarial verification gate before confirmed findings 2026-10-12 06:26:51 +02:00
assembly.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
blackboard_inheritance_test.go Skip the four known-broken tests in code instead of CI -skip flags 2026-10-10 18:12:42 +02:00
cancelcause.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
capture.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
capture_approval_test.go Skip the four known-broken tests in code instead of CI -skip flags 2026-10-10 18:12:42 +02:00
capture_usage_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
chat.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
coldgraph.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
coldgraph_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
compaction.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
constraints.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
deferred.go feat: 增加 Agent 流量绑定开关并补齐证据交接 2026-09-10 14:08:40 +08:00
deferred_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
finding_quality_seed_test.go feat: measured impact and attacker-goal proof standard for findings 2026-10-12 06:25:35 +02:00
finding_recorder.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
finding_recorder_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
finding_workflow.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
finding_workflow_test.go feat: 增加 Agent 流量绑定开关并补齐证据交接 2026-09-10 14:08:40 +08:00
goals.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
insert_assets_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
mainagent.go feat: first-layer prompt-injection hardening for agents 2026-10-12 00:58:53 +02:00
noa.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
operator_handoff_seed_test.go feat: ask_operator environmental handoff discipline 2026-10-12 06:45:21 +02:00
planner.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
prompt.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
prompt_injection_seed_test.go feat: first-layer prompt-injection hardening for agents 2026-10-12 00:58:53 +02:00
prompt_now_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
prompt_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
promptcatalog.go feat: ask_operator environmental handoff discipline 2026-10-12 06:45:21 +02:00
provider.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
provider_capture_e2e_test.go feat(llmrec): 录制 LLM 请求/响应 HTTP 原文 2026-08-25 09:40:05 -04:00
provider_capture_test.go feat(llm): 每个 LLM 配置支持自定义会话头 2026-09-07 11:21:50 -04:00
provider_quota_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
provider_responses_test.go feat(llm): 支持 OpenAI Responses API 格式的 LLM 配置 2026-08-25 11:39:24 -04:00
proxyenv_test.go feat(proxy): 新增全局出口代理配置 2026-09-07 10:43:38 -04:00
retester.go feat: adversarial verification gate before confirmed findings 2026-10-12 06:26:51 +02:00
review_context_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
runinfo.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
session_header_test.go feat(llm): 每个 LLM 配置支持自定义会话头 2026-09-07 11:21:50 -04:00
side_questions.go feat(agent): 支持持久化 /btw 旁路提问 2026-09-10 21:42:25 +08:00
side_questions_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
taskclock.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
terminalreason.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
terminalreason_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
testmain_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
toolcatalog.go feat(tasks): per-task test-account credentials 2026-10-09 14:28:08 +02:00
toolcatalog_test.go feat(coverage): 资产测试覆盖度(task_scope 范围 + fact 派生已测) 2026-08-08 09:09:38 -04:00
tools.go feat(tasks): per-task test-account credentials 2026-10-09 14:28:08 +02:00
tools_creds.go feat(tasks): per-task test-account credentials 2026-10-09 14:28:08 +02:00
tools_digest.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
tools_insert.go feat(tasks): per-task test-account credentials 2026-10-09 14:28:08 +02:00
tools_nil_store_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
tools_overview_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
worker.go feat: ask_operator environmental handoff discipline 2026-10-12 06:45:21 +02:00
worker_intervention_test.go 新增worker直接对话 2026-08-29 21:55:27 +08:00
wrapup.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00