Skip to content

feat: deadline contract in the executor seeds - #65

Merged
BaaRai merged 1 commit into
mainfrom
feat/deadline-contract
Oct 12, 2026
Merged

BaaRai merged 1 commit into
mainfrom
feat/deadline-contract

Conversation

@BaaRai

@BaaRai BaaRai commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Closes #$ISSUE_H

Budget discipline in the worker seed, deadline contract in the pentest seed, guard test. go build ./... and the agent seed tests pass.

Workers learn their budget is finite only when the wrap-up interrupt
arrives, which is too late: commands started minutes before exhaustion
die mid-flight, and their results are the ones lost. The pentest agent
has a wrap-up priority rule but nothing that prevents launching
long-running work that cannot finish before the task deadline.

Changes:
- worker seed: budget discipline block. Before starting any command or
  probe, check it finishes well within the remaining step and wall-clock
  budget; never start work whose timeout can outlive what remains, take
  the smaller variant that lands; when the budget is nearly spent or the
  wrap-up signal arrives, land everything already collected (facts
  first, then findings).
- pentest seed: deadline contract bullet. Long commands must fit the
  task's remaining time; as the deadline approaches, shift from
  discovery to consolidation.
- agent/deadline_contract_seed_test.go guards the markers.

Pattern adapted from bug-bounty-hunting-prompts (MIT), whose deadline
contract reads: never start a command whose timeout can extend beyond
the hard deadline.
@BaaRai
BaaRai merged commit 0fc9a1b into main Oct 12, 2026
3 checks passed
murilosoave pushed a commit to murilosoave/ARTEX that referenced this pull request Oct 25, 2026
测试连接此前只判 err:请求通了但模型一个字不吐(思考烧光预算、正文被
安全策略吞掉、兼容层丢 content)照样报成功,而这种配置在会话里就是不
回话——正是「测试成功、对话不成功」的来源。

- TestConnection 返回回复文本,空回复直接判失败
- 回复回传前端,成功 toast 里展示,测试通过有据可查
- 测试连接改用该配置真实的收发模式:此前恒走流式(ConfigFrom 默认
  Stream=true),选了非流式的配置测的是另一条通道;请求省略 streaming
  时仍默认流式,老客户端不受影响

Closes BaaRai#65
murilosoave pushed a commit to murilosoave/ARTEX that referenced this pull request Oct 25, 2026
feat: deadline contract in the executor seeds
BaaRai added a commit that referenced this pull request Nov 2, 2026
The toolbox entry claimed the tools were verified at build time. They are
version-pinned and smoke-tested by running them once; nothing is checksum
verified, sqlmap tracks the default branch, and the dalfox check cannot fail.
Say that plainly and point at #127, which adds checksum verification.

Also fix two misattributions: #65 is the deadline contract, not pause, and
#108 adds documentation rather than reporting code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant