ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)
Go aiai-agentsautonomous-agentsbug-bountydockergolanglinuxllmmcpnextjspenetration-testingpentestpostgresqlreareactred-teamsecuritysecurity-automationsqlitetypescript
chore: bump norma to v0.4.6 and enable untrusted-output boundary
BaaRai4fe80b860cde
diff --git a/agent/chat.go b/agent/chat.goindex ae52ee8..05128b3 100644--- a/agent/chat.go+++ b/agent/chat.go@@ -160,6 +160,9 @@ func (c *ChatAgent) Chat(ctx context.Context, agentKey, sessionID, message strinSettlement: wrapupSettlement(agentKey, nil),NonStreaming: c.nonStreaming(), // when this profile selects non-streaming, use Provider.CompleteMaxTokens: c.maxTokens(), // 0 = send no cap, the server's default decides++ // Frame tool results as untrusted data (nonce-tagged); see harness/untrusted.go.+ UntrustedOutputBoundary: true,}if c.guard != nil {opts.Hooks = c.guard.Hooks()diff --git a/agent/mainagent.go b/agent/mainagent.goindex 94585fb..b05d60c 100644--- a/agent/mainagent.go+++ b/agent/mainagent.go@@ -169,6 +169,9 @@ func (m *MainAgent) Chat(ctx context.Context, taskID int64, mainSeg int, as *db.Settlement: wrapupSettlement("mainagent", nil),NonStreaming: m.nonStreaming(), // when this profile selects non-streaming, use Provider.CompleteMaxTokens: m.maxTokens(), // 0 = send no cap, the server's default decides++ // Frame tool results as untrusted data (nonce-tagged); see harness/untrusted.go.+ UntrustedOutputBoundary: true,}if m.tx != nil { // persist raw human↔AI conversation; one accumulating file per segmentopts.Transcript = m.txdiff --git a/agent/planner.go b/agent/planner.goindex 7f53f80..637e04f 100644--- a/agent/planner.go+++ b/agent/planner.go@@ -457,6 +457,9 @@ func (p *Planner) Plan(ctx context.Context, taskID int64, as *db.AssetStore, tsSettlement: settle,NonStreaming: p.nonStreaming(), // when this profile selects non-streaming, use Provider.CompleteMaxTokens: p.maxTokens(), // 0 = send no cap; the server default decides++ // Frame tool results as untrusted data (nonce-tagged); see harness/untrusted.go.+ UntrustedOutputBoundary: true,}if p.tx != nil { // persist raw LLM conversation; one accumulating file per task's planneropts.Transcript = p.txdiff --git a/agent/worker.go b/agent/worker.goindex 93b5863..77a0842 100644--- a/agent/worker.go+++ b/agent/worker.go@@ -526,6 +526,9 @@ func (w *Worker) execute(ctx context.Context, name string, taskID int64, as *db.Todos: actool.NewTodoStore(), // session-level scratch todos (TodoWrite), pure planning, discarded on exitNonStreaming: w.nonStreaming(), // when this profile selects non-streaming, use Provider.CompleteMaxTokens: w.maxTokens(), // 0 = send no cap; the server default decides++ // Frame tool results as untrusted data (nonce-tagged); see harness/untrusted.go.+ UntrustedOutputBoundary: true,}if hooks != nil { // typed-nil guard: only set when concrete (avoids harness panic)opts.Hooks = hooksdiff --git a/go.mod b/go.modindex 717efd7..0ce2218 100644--- a/go.mod+++ b/go.mod@@ -61,4 +61,4 @@ require (modernc.org/memory v1.11.0 // indirect)-replace github.com/Autumn-27/norma => github.com/BaaRai/Norma v0.4.5+replace github.com/Autumn-27/norma => github.com/BaaRai/Norma v0.4.6diff --git a/go.sum b/go.sumindex 0da0865..fc83fe3 100644--- a/go.sum+++ b/go.sum@@ -1,7 +1,5 @@-github.com/BaaRai/Norma v0.4.4 h1:x5UAeaTuhREI1GiIYuwIEybRxr/pLCeCUvXmUbwv5Is=-github.com/BaaRai/Norma v0.4.4/go.mod h1:BudWrf7iHl96FgHqFr/HwN3mKYmGjJDt+xL2ZHXfFZw=-github.com/BaaRai/Norma v0.4.5 h1:k6xgLsR308CSYPrrcCzqQJDfyzMI7VjAUN5CDX+i0sY=-github.com/BaaRai/Norma v0.4.5/go.mod h1:BudWrf7iHl96FgHqFr/HwN3mKYmGjJDt+xL2ZHXfFZw=+github.com/BaaRai/Norma v0.4.6 h1:sEm58Gx7gw+UU/05aHZBZ+Xqm5dMYiuSQpc1aXnbElc=+github.com/BaaRai/Norma v0.4.6/go.mod h1:BudWrf7iHl96FgHqFr/HwN3mKYmGjJDt+xL2ZHXfFZw=github.com/andybalholm/brotli v1.2.1 h1:R+f5xP285VArJDRgowrfb9DqL18yVK0gKAW/F+eTWro=github.com/andybalholm/brotli v1.2.1/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=