ARTEX/agent
BaaRai b237fbaa32 feat(engine): ouroboros takes - goal ambiguity gate, failover escalation, stagnation surfacing
Three orchestration mechanisms from the Q00/ouroboros evaluation (#99):

- Goal ambiguity gate at task creation: a goal must name a target (URL,
  domain, IPv4, localhost:port or absolute path) and reach a length floor,
  else the API returns 400 before any token is spent. Deliberately
  target-less goals opt out with the literal marker [targetless]. Guards
  against the live failure where a goal naming no target sent every worker
  to an unrelated asset.

- Consecutive-failure escalation on the task LLM chain: quota exhaustion
  already advances the chain; now 3 consecutive non-quota call failures on
  the same chain profile advance it too, with the true reason recorded.
  Escalation-only by design (no auto-downgrade: mid-task model swaps risk
  behavior drift; the operator keeps the manual chain reset).

- Stagnation surfacing in the planner overview: finished intents are
  fingerprinted (case-folded, digits collapsed); a direction dispatched 3+
  times with zero findings since its first attempt is flagged in a
  self-describing stagnation_warning payload that instructs the planner to
  diversify instead of grinding. Absent when nothing stagnates.

Closes #99
2026-10-21 14:46:56 +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
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 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 feat(rsi): evidence-gated lesson library in shadow mode 2026-10-21 14:25:35 +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 Merge pull request #65 from BaaRai/feat/deadline-contract 2026-10-12 08:02:08 +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
stagnation_test.go feat(engine): ouroboros takes - goal ambiguity gate, failover escalation, stagnation surfacing 2026-10-21 14:46:56 +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 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 feat(coverage): 资产测试覆盖度(task_scope 范围 + fact 派生已测) 2026-08-08 09:09:38 -04:00
tools.go feat(engine): ouroboros takes - goal ambiguity gate, failover escalation, stagnation surfacing 2026-10-21 14:46:56 +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(rsi): evidence-gated lesson library in shadow mode 2026-10-21 14:25:35 +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