ARTEX/agent
BaaRai 4bcb6d7250 Add agentic guards for goals, hint origin and planner Bash (F5, F6, F11)
Audit findings F5, F6 and F11 for issue #124.

F5, goal guards:
- goal_met refuses while any goal node of the task is open, and when the
  goals cannot be read. A task without goal nodes keeps the old behavior.
- prove_goal accepts a fact as evidence only when its confidence is
  "observed"; otherwise it refuses and the goal stays open. Findings are
  still accepted.

F6, hint origin:
- add_hint stores the calling ToolSet's worker as the hint origin instead
  of "human", and passes it to the planner trigger (TriggerEvent.HintOrigin).
- renderTriggers names the writer: the human via the main agent, a
  cross-task orchestration, or an agent, with a neutral fallback.

F11, built-in rules for the planner and the main agent:
- Interceptor.MatchBuiltin evaluates the enabled "[built-in]" deny rules on
  the intercept-enabled tools.
- The target-only guard applies them before the target gate, whether the
  gate is on or off. User rules and the judge stay out of it.
- SetRulesForTest is a test seam for the store-less guard tests; Log is a
  no-op without a store.
2026-11-11 22:39:13 +01:00
..
adversarial_gate_seed_test.go feat: adversarial verification gate before confirmed findings 2026-10-12 06:26:51 +02:00
agentic_guards_test.go Add agentic guards for goals, hint origin and planner Bash (F5, F6, F11) 2026-11-11 22:39:13 +01: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 feat(engine): intent claim heartbeat, TTL and fencing token (S3c) 2026-11-10 17:45:11 +01:00
capture.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
capture_approval_test.go feat(intercept): target-gate schema, opt-in flag and approval requests (S3b 1.2-1.4) 2026-11-10 23:05:47 +01:00
capture_usage_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
chat.go agent: untrusted-content tail for every chat agent; evidence wording fits the reporter 2026-11-11 21:59:09 +01: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 agent: code-owned prompt-injection tails and planner goal anchor (#124) 2026-11-11 21:47:44 +01:00
constraints.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
deadline_contract_seed_test.go feat: deadline contract in the executor seeds 2026-10-12 07:30:27 +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_dedup_seed_test.go feat: duplicate discipline before report_finding and in the reporter 2026-10-12 07:29:59 +02: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 feat: verified findings backend (S1) 2026-11-09 20:21:27 +01: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
hooks_reach_test.go feat(guard): planner and main-agent hooks, target-gate scope in every session (S3b 1.1) 2026-11-10 22:14:24 +01:00
insert_assets_test.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
mainagent.go Add agentic guards for goals, hint origin and planner Bash (F5, F6, F11) 2026-11-11 22:39:13 +01: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 Add agentic guards for goals, hint origin and planner Bash (F5, F6, F11) 2026-11-11 22:39:13 +01:00
prompt.go Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
prompt_injection_seed_test.go agent: untrusted-content tail for every chat agent; evidence wording fits the reporter 2026-11-11 21:59:09 +01: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 agent: code-owned prompt-injection tails and planner goal anchor (#124) 2026-11-11 21:47:44 +01:00
provider.go feat(llm): optional custom User-Agent for LLM requests 2026-11-08 17:11:43 +01:00
provider_capture_e2e_test.go feat(llmrec): 录制 LLM 请求/响应 HTTP 原文 2026-08-25 09:40:05 -04:00
provider_capture_test.go feat(llm): optional custom User-Agent for LLM requests 2026-11-08 17:11:43 +01:00
provider_env_test.go fix(agent): match ARTEX_LLM_PROVIDER case-insensitively 2026-11-03 23:20:21 +01: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
stagnation_test.go feat(engine): ouroboros takes - goal ambiguity gate, failover escalation, stagnation surfacing 2026-10-21 14:46:56 +02:00
target_gate_tools_test.go feat(intercept): target extraction, resolver, exemptions and the gate in the hook (S3b 1.5-1.7) 2026-11-11 00:34:55 +01: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 feat(engine): intent claim heartbeat, TTL and fencing token (S3c) 2026-11-10 17:45:11 +01:00
testmain_test.go feat: each test package runs on its own database 2026-10-12 18:43:29 +02:00
toolcatalog.go feat(tasks): per-task test-account credentials 2026-10-09 14:28:08 +02:00
toolcatalog_test.go fix(tools): harden obj against blank required names and heal seeded list_task_credentials rows 2026-11-10 09:46:49 +01:00
tools.go Add agentic guards for goals, hint origin and planner Bash (F5, F6, F11) 2026-11-11 22:39:13 +01:00
tools_creds.go fix(tools): drop empty required entry from list_task_credentials schema 2026-11-02 09:05:03 +03: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
untrusted_boundary.go feat: enable the untrusted-output boundary with ARTEX_UNTRUSTED_BOUNDARY 2026-11-09 23:42:49 +01:00
untrusted_boundary_test.go feat: enable the untrusted-output boundary with ARTEX_UNTRUSTED_BOUNDARY 2026-11-09 23:42:49 +01:00
untrusted_prompt.go agent: untrusted-content tail for every chat agent; evidence wording fits the reporter 2026-11-11 21:59:09 +01:00
user_agent_test.go fix(llm): validate custom User-Agent in the connection-test path 2026-11-08 18:15:33 +01:00
webfetch.go feat(intercept): pinned dialer for WebFetch and the custom http tool (S3b 2.1) 2026-11-11 19:19:55 +01:00
webfetch_dialer_test.go feat(intercept): pinned dialer for WebFetch and the custom http tool (S3b 2.1) 2026-11-11 19:19:55 +01:00
webfetch_redirect_test.go feat(intercept): pinned dialer for WebFetch and the custom http tool (S3b 2.1) 2026-11-11 19:19:55 +01:00
worker.go agent: code-owned prompt-injection tails and planner goal anchor (#124) 2026-11-11 21:47:44 +01: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