mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-04 05:25:56 +00:00
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. |
||
|---|---|---|
| .. | ||
| intercept.go | ||
| prompt.go | ||
| prompt_test.go | ||
| review_context.go | ||
| review_context_test.go | ||
| target.go | ||
| target_declared_test.go | ||
| target_dial.go | ||
| target_dial_pg_test.go | ||
| target_dial_test.go | ||
| target_exempt.go | ||
| target_exempt_test.go | ||
| target_extract.go | ||
| target_gate.go | ||
| target_gate_pg_test.go | ||
| target_gate_test.go | ||
| target_redirect.go | ||
| target_redirect_pg_test.go | ||
| target_redirect_test.go | ||
| target_rendered.go | ||
| target_rendered_test.go | ||
| target_request.go | ||
| target_request_test.go | ||
| target_resolve.go | ||
| target_test.go | ||
| testmain_test.go | ||
| trace.go | ||
| trace_test.go | ||