{"id":"53b62511-d550-4e64-976e-4f344b2a2538","arxiv_id":"2607.21835","paper_version":1,"verdict":"CONDITIONAL","confidence":"MODERATE","novelty_score":5.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":2,"one_line_summary":"ToolGuardian uses Answer Set Programming to provide deterministic, auditable policy enforcement for AI agent-tool interactions, with layered tool characterization.","lead":"ToolGuardian is a security framework for LLM agents that use external tools, separating pre-admission tool vetting from task-aware runtime authorization with a logic-based (ASP) policy layer. On a small, author-built benchmark it reports strong detection and perfect runtime classification, but the benchmark was co-designed with the rules.","discovery_kind":"new_application","skeptic_critique":{"model":"deepseek-v4-flash","headline":"The reported F1 and 20/20 runtime numbers rest on a self-referential benchmark: ground truth is derived from the authors' intended policy and the runtime catalog is co-designed with the rules, so the evaluation demonstrates rule-implementation alignment, not security effectiveness.","rationale":"Read in good faith, ToolGuardian's architectural contribution is plausible and the paper is unusually transparent about its limitations: it separates characterization from policy, compares three realizations on identical facts, and explicitly acknowledges that the runtime catalog validates alignment, not coverage. Those are real strengths. The problem is that the empirical headline—especially the 20/20 runtime result—cannot carry the security weight the abstract places on it. A benchmark whose labels are 'derived from the intended policy behavior' and whose scenarios were 'co-designed with the policy rules' cannot falsify the policy; it only checks that the implementation matches the spec. The vetting numbers are on somewhat firmer ground because malicious tools are constructed independently, but the corpus of 16 tools is far too small for the reported F1/accuracy to be stable, and the internal count contradictions make even the runtime 20/20 unverifiable. This does not require rejection: the framework's contribution is the declarative policy layer, and the paper itself frames the result as implementation alignment. However, it does require conditional acceptance with an independent, blinded benchmark as a precondition for the security-effectiveness claim. The reader's weakest assumption already identified this circularity, and the count inconsistencies reinforce it; I agree with that assessment and do not see a reason to change the verdict.","tokens_in":16778,"tokens_out":6046,"duration_ms":64615,"concrete_test":"Commission an independent security team to author a new benchmark: 40 MCP-style tools (benign/malicious, blinded to the authors' rules) and 40 runtime workflows (atomic and composite) with ground-truth labels fixed from a natural-language threat model before any rule implementation is shared. Run the unchanged ToolGuardian ASP realization at tiers P0–P3 and report vetting F1/accuracy and runtime accuracy. First reconcile the scenario-count inconsistency (12+8 vs 12+7 vs 6+7) so the baseline is one authoritative list. If the independent numbers remain near 0.86/88% and 100%, the co-design concern is refuted; if they drop materially, the reported results are an artifact of label-policy overlap rather than generalizable security.","verdict_should_be":"UNCHANGED","load_bearing_attack":"The load-bearing weakness is the benchmark's circularity. Section VIII defines ground-truth labels as 'benchmark-defined reference outcomes derived from the intended policy behavior.' For runtime, Section VIII-C states the catalog is 'small and co-designed with the policy rules' and therefore 'validates specification–implementation alignment rather than deployment-scale coverage.' If labels are generated from the same intended policy that is encoded in the ASP rules, then a faithful implementation will reproduce those labels; 20/20 is a conformance check, not evidence that ToolGuardian detects malicious compositions in real deployments. Vetting is less circular because malicious tools are constructed independently, but with 8 malicious and 8 benign tools, the headline F1=0.86 at tier P2 corresponds to approximately TP=7, FP=1, FN=1, TN=7; a single relabeled tool changes F1 by about 0.06, so the empirical claim is inherently fragile. An internal inconsistency compounds this: Section VII.B and Table II say 12 atomic and 8 composite scenarios, Section VII.C says 7 composite, Table IX's text says 12 atomic and 7 composite, and Appendix B enumerates only T1–T6 and CT1–CT7. The '20/20' runtime result is therefore not reproducible from the text as written. The central claim that ASP reaches deny-class F1 0.86 / 88% accuracy and perfectly classifies runtime scenarios is not yet supported as a security-effectiveness result; it supports the narrower claim that the ASP layer can encode and execute the authors' policy on the authors' examples.","agreement_with_reader":"agree"},"referee_report":{"model":"deepseek-v4-flash","summary":"ToolGuardian proposes a two-stage policy framework for securing LLM agent-tool interactions: pre-admission vetting and task-aware runtime authorization. It separates tool characterization (description, syscall traces, mock-execution effects, static source analysis) from policy enforcement, and introduces an Answer Set Programming (ASP)-based policy layer as its main contribution. The paper compares ASP, heuristic, and LLM policy realizations on a corpus of 16 MCP-style tools (8 benign, 8 malicious) and 20 runtime scenarios, reporting a best vetting deny-class F1 of 0.86 with 88% accuracy for ASP at characterization tier P2, and 20/20 correct runtime classifications for all fully specified realizations. Ablations show that removing compositional reasoning degrades runtime performance.","tokens_in":17209,"tokens_out":4690,"duration_ms":54351,"significance":"The architectural idea is sound and worth publishing if properly scoped: separating characterization from policy, using ASP for deterministic and auditable policy reasoning, and evaluating three policy realizations over identical inputs is a useful contribution. The paper is also commendably explicit about the co-designed nature of its runtime catalog. However, the empirical evaluation as written is a self-consistency check rather than a test of security effectiveness. The ground-truth labels are derived from the authors' intended policy, the runtime scenarios are co-designed with the policy rules, and the benchmark is small; the headline F1 and 20/20 numbers therefore do not yet support generalization claims. The paper's value lies more in its framework and in making the conformance problem explicit than in its current security-effectiveness evidence.","major_comments":[{"comment":"The paper states that \"Ground-truth labels are benchmark-defined reference outcomes derived from the intended policy behavior.\" Since the ASP rules encode that same intended policy, the reported vetting F1 and runtime 20/20 results primarily measure whether the implementations match the authors' rules—not whether ToolGuardian detects malicious tools or unsafe compositions in an independent sense. The runtime result is explicitly conceded to \"validate specification–implementation alignment rather than deployment-scale coverage,\" yet the abstract and conclusion present 20/20 as a headline success. This circularity is load-bearing for the central empirical claim. The authors should either reframe the contribution as a policy-conformance demonstration or provide independent ground-truth labeling (e.g., third-party labels, separate rule authors, or malicious tools sourced from outside the rul","section":"Section VIII, ground-truth definition (and Section VIII-C)"},{"comment":"The runtime benchmark counts are internally inconsistent and not reproducible from the text. Section VII.B and Table II say 12 atomic and 8 composite scenarios; Section VII.C says 12 atomic and 7 composite; Table IX's table header says 8 composite but the accompanying text says 7; Appendix B enumerates only T1–T6 (6 atomic) and CT1–CT7 (7 composite), totaling 13, not 20; Appendix C references a composite workflow \"c08\", implying an eighth composite. Until the exact catalog of 20 scenarios is provided with consistent counts, the central 20/20 runtime result cannot be verified. Please reconcile the text, tables, and appendix, and list all 20 scenarios explicitly.","section":"Section VII.B, VII.C, Table II, Table IX, Appendix B"},{"comment":"The paper reports P2 as the best characterization tier, but the selection of P2 as the headline result appears to be made after inspecting all tiers. With only 16 tools, a single relabeled tool changes F1 by roughly 0.06, so the difference between P2 and P3 (0.86 vs 0.82 for ASP) is not statistically meaningful. The authors should provide per-tool confusion tables at P2, specify the tier-selection rule in advance, and avoid presenting post-hoc best-tier results as the main finding without a sensitivity analysis.","section":"Table III and Section VII.D (tier selection)"}],"minor_comments":[{"comment":"The section is titled \"Case Study: ToolGuardian Enforcement on a Malicious Tool\" but the case study concerns two benign tools whose composition is unsafe. The heading should be corrected.","section":"Appendix C heading"},{"comment":"The first sentence says \"12 atomic and 7 composite cases,\" but Table IX lists 8 composite. The same inconsistency appears in Section VII.B vs VII.C. Please standardize the counts.","section":"Section VIII-C"},{"comment":"The ablation reports FP=4 and FN=1 but does not state the number of ground-truth deny scenarios in the runtime set. Without this, the reported F1 values (1.00 and 0.84) cannot be independently checked. Please report the full confusion counts and the deny-class prevalence.","section":"Section VIII-D, Table X"},{"comment":"The notation \"P0 = L0, P1 = P0 ∪ L1\" renders awkwardly; use \"P1 = L0 ∪ L1\" for clarity.","section":"Section V.D"}],"recommendation":"major_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek-v4-flash","letter":"Quick take: ToolGuardian is a serious, clearly written paper that applies Answer Set Programming to agent-tool security, with a clean separation between tool characterization and policy enforcement. That separation, plus the progressive evidence tiers and the three-way comparison (ASP vs heuristic vs LLM), is the genuinely useful part. The authors also do the field a service by being unusually transparent about limitations — they explicitly say the runtime result validates specification–implementation alignment, not deployment-scale coverage.\n\nThe new contribution is the ASP policy layer: encoding deny rules, exceptions, effect-conformance checks, and compositional constraints declaratively, with deterministic and auditable outputs, applied to both pre-admission vetting and runtime authorization. As far as I know, nobody has done that for MCP-style tool security. The case study in Appendix C is a nice illustration of why composition is the hard case and how ASP handles it cleanly.\n\nWhere the paper is soft is exactly where the authors themselves hedge. The benchmark is small: 16 tools, 8 malicious variants of the same 8 benign tools, and 20 runtime scenarios. The ground truth is derived from the intended policy, and the runtime scenarios are co-designed with the rules. So the 20/20 result is a faithful implementation check, not a demonstration that ToolGuardian catches novel malicious tools. The vetting numbers are less circular — the malicious tools are independently constructed — but with 8 malicious and 8 benign tools, an F1 of 0.86 corresponds to roughly 7 TP, 1 FP, 1 FN; one relabeled tool moves it by ~0.06. That's fragile.\n\nThere is also a real reproducibility problem in the scenario counts. Section VII.B and Table II say 12 atomic + 8 composite = 20; Section VII.C says 7 composite; Section VIII-C text says 12 atomic and 7 composite; Table IX says 8 composite; and Appendix B lists only T1–T6 and CT1–CT7 — 6 atomic and 7 composite, 13 total. You cannot recover the 20 scenarios from the text. That needs fixing before the paper is publishable.\n\nNo artifacts are released — no code, no rule files, no benchmark catalog. That matters for a paper whose central claim is that declarative rules are auditable and reproducible.\n\nBottom line: the architecture is a real contribution and the writing is honest. The evaluation does not support a strong security-effectiveness claim yet. This deserves peer review — it's a legitimate framework paper — but the reviewers should insist on corrected scenario counts, released artifacts, and an independently labeled benchmark before acceptance.","headline":"A well-designed declarative policy framework for agent-tool security; worth reading for the architecture, but the evaluation numbers are conformance checks on a self-referential benchmark rather than evidence of real-world security effectiveness.","tokens_in":17611,"tokens_out":2197,"duration_ms":21760},"pith_extraction":{"msc":[],"pacs":[],"model":"deepseek-v4-flash","headline":"ToolGuardian claims that a declarative Answer Set Programming policy layer, fed progressively richer structured facts about tool behavior, can vet tools before admission and authorize each invocation in task context, with deny-class F1 of 0","keywords":["AI agent security","LLM tool use","Answer Set Programming","declarative policy","tool vetting","runtime authorization","Model Context Protocol","compositional security"],"falsifier":"An independently authored set of MCP-style tools with hidden malicious behavior, labeled by third parties, evaluated under ToolGuardian's P2 facts: if deny-class F1 falls substantially below 0.86 or accuracy below 88%, the characterization-plus-ASP claim would be weakened. A runtime catalog with longer, non-co-designed workflows would similarly test whether composition rules generalize beyond the curated 20 scenarios.","tokens_in":16715,"feed_emoji":"🛡️","tokens_out":3617,"duration_ms":35917,"temperature":0.7,"pith_summary":"ToolGuardian sets out to secure LLM agents that call external tools by splitting the problem into two decisions: whether a tool should be admitted at all, and whether a specific invocation is safe in the current task. Its central claim is that both decisions are best made by a declarative Answer Set Programming policy layer that reasons over structured facts about a tool's capabilities, observed effects, and mismatches between declared and actual behavior. On a curated corpus of 16 MCP-style tools, the ASP realization reaches deny-class F1 of 0.86 and 88% accuracy at vetting when fed description, syscall, and mock-execution evidence; all three realizations classify 20 curated runtime scenarios correctly, while ablations show that composition rules are what make multi-step workflows safe. A sympathetic reader would take the paper's contribution to be the separation of tool characterization from policy enforcement, with composition as the hard case.","feed_headline":"Declarative rules screen AI tools and block unsafe multi-step calls","feed_subtitle":"ToolGuardian splits tool vetting from task-aware authorization and shows composition, not atomic checks, is the hard security case.","key_machinery":"Progressive characterization converts four additive evidence levels (declarations, system-call traces, mock-execution effects, and static source analysis) into a common fact vocabulary about capabilities, data access, communication, state mutation, provenance, and effect-conformance mismatches. The load-bearing mechanism is the ASP policy layer: Answer Set Programming, a declarative logic-programming paradigm where solutions are computed as stable models, expressed as deterministic rules that derive deny decisions from combinations of these facts, task permissions, and composition constraints. ASP's contribution is that multi-condition interactions (sensitive read before external sink, crede","core_discovery":"The paper's central discovery is that structured characterization facts, rather than raw metadata or a single scanner judgment, can support an auditable policy layer that handles both pre-admission vetting and task-aware runtime authorization. It shows that adding evidence in layers changes the security-utility tradeoff: dynamic evidence at tier P2 gives the best binary vetting performance, while static source analysis at P3 exposes more high-risk behavior but also overblocks benign high-capability tools. For runtime authorization, the paper shows that atomic checks are not the hard problem; the hard problem is composition, where individually admissible actions become unsafe in ordered combi","pith_inferences":["A natural next test is to run ToolGuardian's pipeline on tools whose malicious behaviors are authored independently of the policy rules; this would separate rule quality from benchmark co-design.","The same fact vocabulary could extend beyond MCP to browser agents, code-execution agents, and cloud APIs, though each would need new characterization sources and rules.","In deployment, expect composition to dominate errors: longer workflows with indirect dependencies will likely require history- and provenance-aware rules beyond the short source-sink pairs tested here.","The LLM ablation suggests that LLM policy evaluators are only as good as the explicit guidance they receive; treating an LLM as a standalone security authority would be unsupported by these results."],"forward_implications":["Tool vetting can be made evidence-adaptive: each additional characterization layer changes the balance between catching malicious tools and preserving benign utility.","Runtime security depends on explicit composition rules; removing them lets unsafe multi-step workflows through even when atomic checks are correct.","Heuristic, LLM, and ASP realizations can agree when given identical structured facts and full policy specifications, so the choice of realization can be made on cost and auditability rather than raw accuracy.","Richer static evidence is not automatically better; it can trigger hard rejects of legitimate high-capability tools, so operational outcomes like restricted admission need to be part of the evaluation.","The perfect 20/20 runtime score should be read as evidence that the implementation matches the intended policy on the curated catalog, not as deployment-scale coverage."],"fun_headline_variants":["Composition breaks AI tool safety, not atomic checks","Layered evidence beats metadata for AI tool vetting","ToolGuardian splits vetting from authorization to stop unsafe combos","Declarative policy layer catches dangerous multi-step tool calls","Inside ToolGuardian: facts, not metadata, secure agent-tool interactions"],"cache_read_input_tokens":2304,"weakest_assumption_plain":"The benchmark labels and runtime scenarios were authored by the same team that wrote the policy rules, and the paper itself notes that the perfect runtime score validates specification-implementation alignment rather than deployment-scale coverage; if those labels are unrepresentative, the reported F1 and accuracy do not show generalization.","fun_headline_variants_meta":{"raw":{"variants":["Composition breaks AI tool safety, not atomic checks","Layered evidence beats metadata for AI tool vetting","ToolGuardian splits vetting from authorization to stop unsafe combos","Declarative policy layer catches dangerous multi-step tool calls","Inside ToolGuardian: facts, not metadata, secure agent-tool interactions"]},"model":"deepseek-v4-flash","effort":"low","cost_usd":0.000195,"raw_usage":{"total_tokens":1212,"prompt_tokens":777,"completion_tokens":435,"prompt_tokens_details":{"cached_tokens":256},"prompt_cache_hit_tokens":256,"prompt_cache_miss_tokens":521,"completion_tokens_details":{"reasoning_tokens":350}},"tokens_in":521,"tokens_out":435,"duration_ms":5081,"temperature":1.0,"reasoning_tokens":350,"cache_read_input_tokens":256,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-08-01T06:32:06.236252+00:00","model_set":{"reader":"deepseek-v4-flash"},"pipeline_version":"pith-pipeline@v1.3.0-alltime-deepseek","input_kind":null,"input_chars":null,"input_total_chars":null,"passes_missing":null,"published_standing":null,"published_confidence":null,"objection_audit":null,"run_record":null,"basis":{"kind":"not_recorded","source":null,"chars_given":null,"chars_total":null},"receipt":null,"falsifier":"An independently authored set of MCP-style tools with hidden malicious behavior, labeled by third parties, evaluated under ToolGuardian's P2 facts: if deny-class F1 falls substantially below 0.86 or accuracy below 88%, the characterization-plus-ASP claim would be weakened. A runtime catalog with longer, non-co-designed workflows would similarly test whether composition rules generalize beyond the curated 20 scenarios.","supporting_citations":[],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}