Repository navigation
feat: deadline contract in the executor seeds - #65
Merged
Merged
Conversation
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.