Skip to content

RuleTrek: Evaluating Agent Rule Reasoning in Complex ScenariosRuleTrek: Benchmarking Agentic Rule Reasoning in Complex Scenarios

Hugging Face Daily Papers· arXiv:2610.19698· Chenhao Yuan, Bohan Yu, Yinhao Xu, Chao Yin, Chenxi Zhou, Zhaoxuan Wang, Shuwen Xu, Shaoping Huang, Haolin Ren, Jiaxiang Liu, Yao Xu, Jun Zhao, Kang LiuThe Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences; School of Artificial Intelligence, University of Chinese Academy of Sciences; Beijing Academy of Artificial Intelligence (BAAI)Indexed by this site · 2026-10-15· Originally publishedAI updates

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

RuleTrek evaluates agentic rule reasoning across 11 LLMs, with the highest average E2E being GPT-6.1-Sol at 55.29%.

Questions
Professional tasks require applying domain rules, but evidence is scattered across multiple heterogeneous files. Existing rule reasoning benchmarks often use a few factual statements, and workspace benchmarks rarely evaluate rule identification and application.
Methods
RuleTrek extracts and manually verifies rule graphs from real rulebooks, generates sub-scenarios per rule, then incrementally combines them by dependencies and checks consistency and solvability. It evaluates RI, RD, and E2E in an interactive workspace.
Experiments and results
On 240 cases and 11 models, the highest average RI and RD are 62.47% and 60.43%, and E2E ranges from 26.97% to 55.29% (Table 2). When nodes go from ≤3 to ≥14, the 11 models' average E2E drops from 76.5 to 23.6 (Figure 3).
Limitations and future work
The authors state that the evaluation is limited to English rulebooks and scenarios and uses predefined repositories; future work could include multilingual settings and dynamic environments where rules and scenarios change over time. The experiments cover 11 models, 240 cases, and RI/RD/E2E.
Experimental setupGPT-6.1-Sol、Grok-4.7 et al. · RuleTrek · RI、RD et al.
Evaluated models
GPT-6.1-SolGrok-4.7DeepSeek-V4.1-FlashDeepSeek-V4-ProGLM-5.3-FlashGemini-3.7-FlashGPT-5.5Qwen3.8-FlashHY3GPT-6-LunaGemini-2.5-Flash
Benchmarks
RuleTrek
Metrics
RIRDE2E
AI summaryThe paper proposes RuleTrek, a multi-domain benchmark for rule reasoning of agents in complex scenarios. Evaluations of 11 frontier large language models show that rule reasoning still faces significant challenges. The benchmark construction pipeline extracts structured rule graphs, generates and progressively composes rule-related sub-scenarios, while ensuring scenario consistency and solvability. In an interactive workspace, it evaluates three capabilities: rule identification (RI), rule deduction (RD), and end-to-end rule reasoning (E2E). Experiments show that the highest RI and RD scores are only 62.47% and 60.43%, respectively, and E2E scores range from 26.97% to 55.29%. The code and dataset are publicly available at yuan247/RuleTrek on GitHub.

The paper proposes RuleTrek, a multi-domain benchmark for rule reasoning of agents in complex scenarios. Evaluations of 11 frontier large language models show that rule reasoning still faces significant challenges. The benchmark construction pipeline extracts structured rule graphs, generates and progressively composes rule-related sub-scenarios, while ensuring scenario consistency and solvability. In an interactive workspace, it evaluates three capabilities: rule identification (RI), rule deduction (RD), and end-to-end rule reasoning (E2E). Experiments show that the highest RI and RD scores are only 62.47% and 60.43%, respectively, and E2E scores range from 26.97% to 55.29%. The code and dataset are publicly available at yuan247/RuleTrek on GitHub.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    When scenario information is distributed across files, agents still struggle to identify and correctly apply domain rules.

    When scenario information is scattered across multiple files, agents struggle to find and correctly apply domain rules.

    • Scenario: The authors state that agents already handle professional tasks such as tax assessment, where solutions depend on rules like residency status, tax rates, and deductions. When records such as taxpayer profiles, wages, and royalties are spread across multiple files, agents must first integrate the information, then identify the applicable rules from rule documents and compute the tax (Figure 1).
    • Existing gaps: The authors state that existing rule reasoning benchmarks typically represent scenarios with only a few factual statements, simplifying rule finding and application. Workspace agent benchmarks evaluate retrieval, tool use, and multi-step tasks, but rarely evaluate identifying and applying domain rules in complex scenarios.
    • Approach: The authors aim to construct complex multi-file scenarios that can still be solved using a given rulebook. To this end, they propose the multi-domain benchmark RuleTrek, along with a construction pipeline that extracts rule graphs, generates sub-scenarios per rule, and incrementally composes them by dependencies.
    • What is evaluated: The six domains are taxation, PostgreSQL, cybersecurity, software policy, procurement, and game rules. Agents operate in an interactive workspace where they can search, view files, and execute code as needed, and are evaluated on Rule Identification (RI), Rule Deduction (RD), and End-to-End Rule Reasoning (E2E).
  2. What related research exists?

    Rule reasoning benchmarks have overly simple scenarios, and workspace benchmarks rarely evaluate domain rule application.

    The authors divide related work into rule reasoning benchmarks and real workspace agent benchmarks. Table 1 uses five comparisons: Rule App., Native Rules, Dist. Scenario, Multi-Domain, Workspace; ✓, ✗, ⊖ indicate full support, no support, partial support.

    Rule reasoning benchmarks

    • Normalized deduction: RuleTaker (Clark et al., 2020) performs deduction on normalized rules and facts. The introduction lists RuleTaker and ProofWriter (Tafjord et al., 2021) among rule reasoning benchmarks that typically represent scenarios with only a few factual statements.
    • Policy and law: PolicyQA (Ahmad et al., 2020) extends rule reasoning to real policies; LegalBench (Guha et al., 2023) extends to the legal domain. Related work only describes this extension without separately criticizing these two.
    • More complex rule systems: RuleArena (Zhou et al., 2025) evaluates reasoning on complex real rules; RuleWeaver (Yu et al., 2026b) constructs scenario-based reasoning tasks from corpus rules; SearchFireSafety (Chae et al., 2026) evaluates retrieval and reasoning on structured legal provisions. The authors state that even when raw rulebooks are provided, these benchmarks often use simplified scenarios rather than information-dispersed scenarios, thereby reducing the difficulty of identifying and applying applicable rules.

    Workspace agent benchmarks

    • Workplace and enterprise: TheAgentCompany (Xu et al., 2025) evaluates real workplace tasks; EnterpriseOps-Gym (Malay et al., 2026) focuses on stateful enterprise operations.
    • Archives and file dependencies: AGORA (Guo et al., 2026) evaluates reasoning on workspace document archives; Workspace-Bench (Tang et al., 2026) examines large-scale file dependency tasks.
    • Strategic behavior: PhantomPolicy (Wu and Gong, 2026) studies policy-sensitive agent behavior. The authors state that this group evaluates distributed information retrieval, tool use, multi-step tasks, or behavioral policy adherence, but rarely evaluates identifying and applying domain rules to solve problems in complex scenarios.

    Comparison and citations not used as experimental baselines

    • Table 1: RuleTrek's row has all five ✓. Other rule reasoning benchmarks in the table have ✗ for Dist. Scenario and Workspace; workspace benchmarks have ✗ for Native Rules and ✗ or ⊖ for Rule App.
    • Named in the introduction, not expanded in the main text: Sun et al. (2024), TableEval (Zhu et al., 2025), Yu et al. (2026a), and Stage-claw (Liang et al., 2026) are listed among works with limited evaluation of identifying and applying rules in complex multi-file scenarios. The paper does not report scores on these benchmarks nor use any of them as experimental baselines.

    The authors position RuleTrek at the gap of the two lines: rules retain original representation, scenario evidence is distributed across multiple files, and agents perform rule identification, rule deduction, and end-to-end rule reasoning in an interactive workspace.

  3. How does the paper address this problem?

    RuleTrek extracts rule graphs from real rulebooks, then combines solvable multi-file scenarios based on dependencies.

    RuleTrek uses a rule-anchored three-stage pipeline to create multi-file scenarios from real rulebooks that can still be solved using those rules, then evaluates agents on the same scenario under three information conditions. All LLM-based construction steps use GPT-6-Astra. Appendix D provides prompts for construction, execution, human verification, and review.

    Rule graph extraction

    • Rulebook: For each instance, collect the real rule files Rd for domain d. The six domains are taxation, PostgreSQL, cybersecurity, software policy, procurement, and game rules. Repositories retain their original organization and format, including documents, tables, configuration files, and source code.
    • Graph: An LLM extracts a rule graph Γd = (Vd, Ed). Nodes Ri are rules anchored in the original repository; edges record only relationships that change how rules are used together, including applicability dependencies, eligibility conditions, aggregation, exceptions, overrides, precedence, and time constraints.
    • Verification: Humans check rules, provenance, and dependencies against the original repository and revise inaccurate or missing information. Thereafter, Γd remains fixed during composition and is used to increase scenario complexity without changing the underlying rules.

    Sub-scenario and dependency composition

    • Per-rule generation: The authors state that generating complex scenarios directly from the entire rule graph makes it difficult to control which rules are used and whether the scenario is consistent. Therefore, for each Ri, generate a sub-scenario si based on that rule and its dependencies in Γd: it contains the information needed to apply the rule, and solving it requires that rule.
    • File formats: Sub-scenarios use file formats common in the domain, such as spreadsheets, configurations, logs, forms, messages, tables, or source code. The example in the text uses a table recording the number of days a taxpayer resided in different tax years.
    • Incremental composition: Starting from an initial scenario S1, incorporate sub-scenarios according to the dependencies in Γd. One composition step is written as St+1=CΓd(St,sit+1), where C is an LLM-assisted composition guided by rule dependencies. New material may require modifying existing files to align entities, timestamps, states, versions, units, and cross-file references.
    • Two checks: Each step is manually checked for consistency (whether cross-file information is coherent) and solvability (whether it can be solved using the underlying rules). If either fails, the LLM revises and humans verify again; both must pass before continuing. Experts remove redundant cases and maintain differences in entities, context, and information organization.

    Questions and three capabilities

    • Question generation: After the final scenario ST passes checks, generate question Q and answer A based on ST and Γd. Humans solve the question using the original rules and scenario files, checking answerability, answer uniqueness, and rule alignment; if it fails, revise and re-verify. Each instance contains Rd, Γd, ST, and Q.
    • RI: Input is (Rd, ST, Q). Γd is not provided, and answering Q is not required. The agent identifies the rules needed to solve the question and their dependencies from the original rule documents, and outputs an estimated rule graph.
    • RD: Input is (Γd, ST, Q). The full verified rule graph is provided, and only application is evaluated: integrate scattered information, judge conditions, handle dependencies and exceptions, and arrive at the answer.
    • E2E: Input is (Rd, ST, Q). The agent must simultaneously identify rules from the original documents and apply them to scattered information to produce the final answer. All three settings use the same scenarios and questions; agents can search, view files, and execute code as needed.

    Construction-time human quality control

    • Five aspects: answerability, answer uniqueness, rule alignment, scenario consistency, and difficulty validity. Two annotators with domain knowledge independently solve and check; failures are revised and re-checked independently until all pass (Appendix A). Difficulty validity requires that solving depends on scattered evidence and interactive rule dependencies, not simple keyword matching.
  4. What experiments did the paper conduct?

    The highest average RI, RD, and E2E across 11 models are 62.47%, 60.43%, and 55.29%.

    Experimental setup

    • Tested models: 11, from seven families: GPT-6.1-Sol, GPT-5.5, GPT-6-Luna; Grok-4.7; DeepSeek-V4-Pro, DeepSeek-V4.1-Flash; Qwen3.8-Flash; GLM-5.3-Flash; Gemini-3.7-Flash, Gemini-2.5-Flash; HY3.
    • Evaluation set: RuleTrek has 240 cases, 30–48 per domain (Table 3): Cybersecurity 38, Game 45, PostgreSQL 30, Procurement 42, Software 37, Tax 48. Software Policy in Table 2 and Software in Table 3 correspond to the same domain. The operational rule graph averages 9.05 nodes, 8.69 edges, average depth 2.69, where depth is the longest directed path in terms of edge count.
    • Run: pi CLI, isolated workspace, file and shell access, no external network. Single-run limit 30 minutes, 200 steps, submit JSON. Each model runs 3 times at temperature 1, scores averaged. Failed or missing submissions count as 0.
    • Scores: Main judge is gpt-5.6-luna, temperature 0. RI evaluates whether the rule set is correct and whether the stated relationships are logically valid; the appendix states that the RI score is the simple average of two 0–100 rubrics. RD and E2E give reasoning scores on four dimensions: factual basis, rule application, calculation, evidence support; the appendix states that the reasoning score is the simple average of the four dimensions. The main text states that the final score is the product of binary answer correctness (0 or 1) and the reasoning score; the appendix states that answer correctness is checked separately by deterministic code. Scores are 0–100, averaged over 240 cases. Table 2's title writes E2E as End-to-End Decision, while the main text calls it End-to-End Rule Reasoning.
    • Consistency check: Two annotators independently evaluate all RI, RD, E2E instances with the same inputs and criteria. Additionally, GLM-5 and Gemini-2.5-Pro re-evaluate the same submissions, with the main judge as reference.
    • Construction model: The LLM steps in scenario construction use GPT-6-Astra, not among the 11 tested models.

    Main results

    The table below is based on Table 2, with columns for average scores and Tax, PostgreSQL E2E. Selected by average E2E, and retaining the lowest overall Gemini-2.5-Flash. Omitted DeepSeek-V4-Pro (average E2E 49.07%), Gemini-3.7-Flash (46.26%), GPT-6-Luna (34.36%).

    Swipe horizontally to read the table

    ModelAverage RIAverage RDAverage E2ETax E2EPostgreSQL E2E
    GPT-6.1-Sol62.47%60.43%55.29%85.89%25.49%
    Grok-4.761.86%56.12%51.34%85.95%15.02%
    DeepSeek-V4.1-Flash59.21%56.39%50.06%77.78%26.46%
    GPT-5.560.20%52.57%45.47%61.58%17.14%
    GLM-5.3-Flash56.53%51.06%47.16%81.00%12.34%
    Qwen3.8-Flash55.02%52.01%44.59%70.55%15.15%
    HY350.97%47.62%39.47%62.45%8.96%
    Gemini-2.5-Flash33.35%35.26%26.97%39.19%11.66%
    • The authors state that identifying applicable rules and their dependencies from original documents remains difficult, and correctly applying them even when given the verified rule graph remains difficult. On the seven models in Figure 4, average RD is 3.79–8.15 points higher than average E2E.
    • Average ranking does not equal per-domain ranking. In Table 2, the highest RD in Tax is DeepSeek-V4.1-Flash's 92.30%; the highest E2E in Cybersecurity is Grok-4.7's 48.15%; the highest E2E in Procurement is GPT-6.1-Sol's 26.92%.
    • "Average RD higher than average E2E" does not hold for every cell: GPT-6.1-Sol has E2E 71.99% and RD 69.20% on Game (Table 2).

    Rule graph complexity

    • What was measured: Tasks are binned by the number of nodes and depth of the gold rule graph, and the 11 models' average E2E is examined (Figure 3). Shading indicates the min–max range of each bin; the main text does not give endpoint values.
    • Results: For nodes ≤3, 4–7, 8–13, ≥14, the averages are 76.5, 45.8, 33.5, 23.6 (n=60, 57, 60, 63). For depth ≤1, 2, 3–4, ≥5, the averages are 62.3, 40.7, 34.6, 26.4 (n=88, 46, 66, 40).
    • Authors' interpretation: The authors believe that more nodes increase the rules that must be identified and considered, and deeper graphs require reasoning along longer dependency chains; more complex rule graphs are associated with more difficult end-to-end reasoning.

    Identification and application

    • Two settings: Figure 4 compares seven models. RD provides the verified rule graph; E2E requires identifying rules and dependencies from original documents. The authors state that RD is consistently higher than E2E by 3.79–8.15 points, so identification adds extra difficulty; meanwhile, the authors state that even with the verified rule graph, agents still struggle to integrate dispersed information and correctly apply interactive rules.
    • Failure categorization: The authors categorize GPT-6.1-Sol's failure trajectories by the earliest error that makes the result untenable into retrieval omission, rule selection error, reasoning error, and final synthesis error. Rule selection errors account for 54.9% of failures, the largest category. The paper does not give the proportions of the other three categories. The authors believe that even when relevant evidence is already available, agents often struggle to identify applicable rules.
    • Cross-model examples: In Table 4, cybersecurity often misses fine-grained firewall and remote access controls; tax often misses data loading and tax year initialization rules; games merge movement rules with different speeds and applicability conditions. The authors summarize three points: mapping scenario evidence to specific rules, identifying dependencies, and distinguishing rules with different applicability conditions.

    Scoring consistency

    • Human: In Table 5, Spearman ρ between human and judge is RI 0.822, RD 0.857, E2E 0.846; human-human is RI 0.951, RD 0.933, E2E 0.945. Corresponding Pearson r: human-judge 0.821, 0.798, 0.837; human-human 0.939, 0.919, 0.928. The authors state that scoring consistency is high, but human-human is higher.
    • Cross-family judge: GLM-5 and Gemini-2.5-Pro use the same inputs and criteria. Submission-level Spearman ρ is 0.903–0.934, model ranking correlation is 0.955–0.991. The authors state that scoring behavior is consistent and rankings are relatively stable.

    Other ablations and analyses

    • Figure 5: Average steps and average E2E for seven models. The authors state that GPT-6.1-Sol achieves E2E 55.29% with relatively few steps; Gemini-3.7-Flash and Qwen3.8-Flash use many more steps, with E2E 46.26% and 44.59%; GLM-5.3-Flash uses fewer steps than most models, with E2E 47.16%. The paper does not give step counts for Figure 5 points.
    • Appendix C: On game-025, GPT-6.1-Sol uses 34 steps, E2E 100; Qwen3.8-Flash uses 57 steps, E2E 0. The authors state that the latter retrieves the protection rule but still treats the protection as valid after the first trigger. On tax-003, the same model has RD 97.75 (6 steps, tax amount $15,644) and E2E 0 (15 steps, tax amount $16,564).
    • Figure 6: The authors state that average output tokens and E2E have no consistent correlation. The paper does not give token counts per model.
    • Appendix A: Table 6 initial check Cohen's κ averages 0.89; five-criterion initial check pass rates range from difficulty validity 79.6% to answerability 91.7%, averaging 86.1%. Table 7: initial check 184/240 (76.7%), after revision 228/240 (95.0%), final check 240/240 (100%).
    • Table 8 summarizes identification difficulties by domain, including cross-file evidence, upstream prerequisite rules, rules with similar descriptions but different conditions, state-dependent operations, hierarchical object scope, and parameterized policies. The paper does not give frequencies for these types.
    • In Table 2, Gemini-2.5-Flash's average RD 35.26% is higher than its average RI 33.35%; the other 10 models have average RI higher than average RD. PostgreSQL's highest E2E is 26.46%, Procurement's highest is 26.92%, Tax's highest E2E is 85.95%.
  5. What are some points that can be further explored?

    The authors state that it is currently limited to English and predefined repositories; future work could explore multilingual and dynamic environments.

    Limitations and future directions noted by the authors

    • Language: RuleTrek focuses on English rulebooks and scenarios to maintain a consistent evaluation setup (§6 Limitations).
    • Repository form: Uses predefined rule and scenario repositories for controlled, reproducible evaluation (§6).
    • Multilingual: The authors state that future extensions could explore multilingual settings (§6).
    • Dynamic environments: The authors state that dynamic environments where rules and scenario information change over time could be explored to broaden the benchmark's scope (§6).

    Experimental coverage

    • The subjects are 11 frontier LLMs from seven families; the evaluation set has 240 cases, with 30–48 per domain (§4.1, Table 3).
    • All three tasks run in the pi CLI isolated workspace, no external network, single-run limit 30 minutes, 200 steps; each model repeated 3 times at temperature 1 and averaged (§4.1).
    • The main judge is gpt-5.6-luna (temperature 0); GLM-5 and Gemini-2.5-Pro re-evaluate the same submissions (§4.7, Table 5). Two annotators independently evaluate all instances of RI, RD, E2E.
    • The LLM steps in the construction phase use GPT-6-Astra; this model is not among the 11 tested models (§3).
    • The paper does not report the dispersion of the three runs, nor the breakdown of answer correctness vs. reasoning score in RD/E2E scores.
  6. Summarize the main content of the paper

    RuleTrek evaluates three rule abilities with multi-file scenarios; the highest E2E among 11 models is 55.29%.

    RuleTrek is a multi-domain benchmark for evaluating agents' ability to identify and apply domain rules in complex, multi-file scenarios.

    • Problem: Professional tasks like taxation depend on domain rules, but archives, records, and rules are spread across multiple files. The authors state that rule reasoning benchmarks using only a few factual statements, and workspace benchmarks that rarely evaluate rule application, have not fully tested this.
    • Approach: Extract and manually verify rule graphs from real rulebooks, generate sub-scenarios per rule, then incrementally combine them by dependencies into consistent and solvable scenarios. The LLM steps in construction use GPT-6-Astra. On the same scenarios, set RI, RD, E2E: the difference is whether the verified rule graph is provided and whether a final answer is required.
    • Main results: 240 cases, 11 models, averaged over 3 runs at temperature 1. The highest average RI, RD, E2E are GPT-6.1-Sol's 62.47%, 60.43%, 55.29%; E2E is as low as Gemini-2.5-Flash's 26.97% (Table 2). Tax's highest E2E is 85.95%, Procurement and PostgreSQL's highest E2E are 26.92% and 26.46%.
    • Other results: When rule nodes increase from ≤3 to ≥14, the 11 models' average E2E drops from 76.5 to 23.6 (Figure 3). On the seven models in Figure 4, average RD is 3.79–8.15 points higher than average E2E. Among GPT-6.1-Sol's E2E failures, rule selection errors account for 54.9%.
    • Authors' conclusion: The authors state that current LLM agents face challenges in rule reasoning in complex scenarios; even when verified rules are provided, identifying applicable rules and correctly applying them remains difficult.
Read originalhuggingface.co