Manuscript Offprint
arXiv:2611.01145CivicBench: A Benchmark and Memory Framework for Web-Based Civic Data Analytics
Yangyu Wu*
ywu494@connect.hkust-gz.edu.cn
The Hong Kong University of Science and Technology
(Guangzhou)
Guangzhou, China
Haoyuan Liang
liang-hy26@mails.tsinghua.edu.cn
Tsinghua University
Beijing, China
Siru Zhong*
szhong691@connect.hkust-az.edu.cn
The Hong Kong University of Science and Technology
(Guangzhou)
Guangzhou, China
Yuxuan Liang†
The Hong Kong University of Science and Technology
(Guangzhou)
Guangzhou, China
Abstract
Municipalities publish service requests, geographic boundaries, weather observations, demographic estimates, and operational guidance through independently maintained Web portals. Civic analysis must combine these sources while preserving their schemas, source links, spatial and temporal scopes, and interpretive limits. Tool-using language agents can perform this integration, but existing task benchmarks rarely test whether a computed claim remains supported by the records used. We present CivicBench, a 400-task benchmark over four cities and two years that materializes civic Web data into frozen bundles for reproducible evaluation. Executable contracts score computation, source linkage, coverage, scope, qualified answers, and refusal when the requested conclusion is not supported. We also introduce Task-State Memory (TSM), which compiles tool observations into typed assertions, reconciles records only within compatible scopes, and retrieves a bounded state organized around unresolved constraints. Across nine completed model pairs, eight yield positive mean-score differences with 95% semantic-contract-cluster bootstrap intervals excluding zero; the ninth interval crosses zero. The benchmark and memory framework make the records behind a claim inspectable at the point of decision.
1 Introduction
Civic Web portals combine municipal service records with federal weather, boundary, and demographic data for ranking, screening, and oversight analysis [1, 12, 31]. Their public availability does not make them interchangeable: independently maintained portals differ in schema, identifiers, coverage, spatial units, update cycles, and evidentiary meaning [13, 33, 40]. Civic analysis is therefore a Web data integration problem in which provenance and quality determine the claims that can be made. We freeze portal-derived records into identical local bundles, retaining publisher, identifier, schema, and scope metadata. This setting isolates cross-source evidence use from live-site and interface drift while preserving the boundaries that a valid claim must carry.

Figure 1: Benchmark scope and task composition. Six public evidence sources cover four cities and two years; each of the 400 tasks combines a computation with provenance, scope, and a claim boundary.
Tool-using language-model agents fit this setting because they decompose open-ended objectives, invoke specialized tools for external evidence and exact computation, and adapt to intermediate observations [29, 39]. The evaluation challenge is to distinguish a numerically plausible answer from a claim whose computation, provenance, coverage, scope, and claim type are all supported. The agent must also preserve those support links across requirements, observations, failed attempts, and unresolved subgoals. Recent work describes this failure as behavioral state decay and treats memory as an active intervention that surfaces decision-relevant state when it matters [35]. Civic analysis adds a domain invariant: retained state must remain attributable and correctly scoped. Complaint counts measure reported activity; station rainfall defines a city-level observation window; and an area poverty rate is a descriptive aggregate rather than an individual attribute or causal variable [13, 19, 28, 33]. We call the resulting requirement scope-aware agent reasoning: compute the strongest result supported by observed evidence and stop at its boundary.
Existing Web and tool-agent benchmarks emphasize interaction success or task completion in Web and software environments [18, 22, 36, 38, 43]. Data-analysis benchmarks make database and
*Yangyu Wu and Siru Zhong contributed equally. †Corresponding author.
notebook workflows increasingly realistic [8, 15, 16], with most tasks beginning from an integrated database or workspace. Agent-memory benchmarks and systems study conversational recall, long-term interaction, or reusable experience [6, 20, 25, 32, 34]. The missing evaluation target is the joint use of heterogeneous civic Web data and scope boundaries. The missing memory property is reconstructability: retained evidence should expose its provenance, scope, and conflicts when an agent forms a claim.
We address these gaps with a benchmark and a memory mechanism. The civic Web data benchmark contains 400 tasks over four cities and two years, spanning ten capabilities in ranking, comparison, screening, data-fitness assessment, briefing, and scope-aware refusal. Each task pairs a structured computation with an analysis brief and an executable contract that checks the result, provenance, coverage, scope, and claim type. Auditable Evidence Memory (TSM) maintains typed evidence instead of a free-form transcript: deterministic WRITE compiles observations with provenance and scope, conservative RESOLVE reconciles compatible assertions, and bounded RETRIEVE selects evidence for unresolved constraints. The benchmark tests adherence to Web scope boundaries, while TSM keeps those boundaries reconstructable across tool use (Figure 1). Our study makes three contributions:
- An scope-aware civic Web data benchmark. We construct and review 400 reproducible tasks over four cities and two years from frozen portal evidence, with executable measurements, explicit spatial and temporal scopes, answer contracts, contract-preserving frames, and evidence-gated scoring.
- Task-State Memory. Deterministic typed WRITE, same-key and same-scope RESOLVE, and bounded constraint-centered RETRIEVE preserve provenance, conflicts, and claim boundaries through a compact agent/tool interface.
- Cross-model evaluation and diagnostics. Across nine completed model pairs, eight have positive score differences with 95% cluster-bootstrap intervals excluding zero. Frozen reference suites support module ablations plus traceability, failure, and resource analyses that expose provenance, scope, reliability, and efficiency trade-offs.
Together, the benchmark and TSM shift evaluation from Web task completion or memory recall to scope-aware record use: recovering support for a computed claim while preserving its provenance, scope, and limitations. The resulting task design, failure taxonomy, and controlled memory analysis connect Web data integration with record-aware agent planning in public-sector workflows.
2.1 Web and Data-Agent Benchmarks
Web and general agent benchmarks test browser interaction, computer use, tool calling, and long-horizon completion [18, 22, 26, 36, 38, 43]. Their primary unit is interaction or task completion in an interface; our unit is a computed claim whose support must remain traceable to correctly scoped evidence from multiple Web publishers. BIRD, Spider 2.0, and InfiAgent-DABench increase schema, computation, and workflow realism [8, 15, 16], while most tasks begin from an integrated database or workspace and score the answer or execution. Attribution benchmarks test support from cited passages, and unanswerability benchmarks test whether models
refrain when evidence is insufficient [5, 11]. The civic setting requires both properties for claims computed across heterogeneous structured Web sources. Our benchmark freezes those sources for reproducibility and jointly evaluates tool execution, computation, provenance, spatial and temporal scope, qualified answers, and evidence-grounded refusal.
2.2 Memory in Language-Model Agents
Agent memory has been framed as context paging, associative retrieval, temporal knowledge graphs, learned note organization, experience retention, or reusable workflows [6, 10, 25, 27, 32, 37, 42]. Proactive-memory work treats memory as an intervention for recovering decision-relevant state from long trajectories [35], while LoCoMo, LongMemEval, and MemoryAgentBench measure recovery from interaction histories [9, 20, 34]. An evidence ledger adds three invariants: each assertion remains traceable to a tool observation, differently scoped statements coexist, and unresolved conflicts remain visible to downstream reasoning. Our method is closest in spirit to typed and provenance-aware memory systems [30, 41] and deterministic truth-maintenance principles [3]. Its operational focus is public evidence roles and unresolved task constraints: tool outputs become typed assertions with file, field, spatial, temporal, and step provenance, and retrieval projects that state into a bounded context whose claims remain reconstructable.
2.3 Civic Web Data and Urban Agents
Open-government publication expands access to civic data but does not establish common semantics, analytical fitness, or policy transparency [40]. UrbanGPT studies spatiotemporal forecasting [17]; CityBench and USTBench evaluate broad urban capabilities and spatiotemporal reasoning by urban agents [4, 14]; GeoLLM and LLM-Find study geospatial knowledge and GIS data retrieval [21, 23]; and surveys organize the emerging urban-agent literature [7]. These lines emphasize prediction, spatial knowledge, reasoning, or discovery. Our benchmark evaluates analysis across independently published civic Web sources, where source meaning and scope determine valid conclusions. Municipal requests measure reported activity and administrative processes [13, 19, 33], while spatial aggregation introduces ecological and modifiable-areal-unit risks [24, 28]. We encode these constraints as executable evidence contracts, explicit scopes, and evidence-gated answer types.
3 Civic Web Data Benchmark
Each task combines a governance-facing question , a city's two-year evidence bundle , public scope , and response schema . All tasks for a city receive the same evidence bundle. Hidden executable specifications, evidence paths, and reference-answer provenance support deterministic scoring but are never exposed to the agent.
Figure 2 summarizes the pipeline from public inputs to source-native evidence, contract-first target construction, governance-facing task framing, review, and artifact freezing.
3.1 Data and Evidence Assets
Snapshot registration. We build eight full-calendar-year snapshots from public Web portals for Austin, Boston, Chicago, and San

Figure 2: Benchmark construction pipeline. Evidence-derived targets and contracts are fixed before governance-facing questions are framed. Public tasks, evaluator ground truth, and internal generation state remain separate, while target/scorer, operation, and no-record shortcut checks gate the frozen artifact.
Francisco over 2024–2025. A source configuration fixes the city and date range, upstream portal dataset and station identifiers, source taxonomy, and weather thresholds. After acquisition, a city-year manifest records retrieval time, observed coverage, row counts, materialized paths, and source limitations. Table 1 identifies the upstream municipal, boundary, and weather records. ACS 2024 five-year estimates and TIGER/Line tract geometry are shared across cities to construct descriptive population and socioeconomic context. Freezing these sources removes live-site and update drift while retaining the publisher, identifier, schema, and scope metadata required for cross-source reasoning.
Traceable transformation. Municipal Web records are mapped to four common service families while preserving each city's declared administrative or operational units. For every city-year, we then materialize two answer-free tables: (i) daily events indexed by date, unit, and service family, with request counts, closure aggregates, and full-record coordinate coverage; and (ii) a deterministic sample of at most 20 valid-coordinate records per service-family-unit cell. Across the eight snapshots, these assets contain 195,769 daily rows and 15,550 sampled point rows. The daily table supports exact temporal and coverage computations, while the point sample supports reproducible boundary diagnostics without distributing every coordinate.
Two-year evidence packaging. Each city has a fixed 16-file bundle containing daily tables, point samples, NOAA files, a boundary GeoJSON, manifests, shared proxy metadata, and policy cards; every city task receives the same bundle. Public tasks provide scope, response schema, and measurement definitions, while source files contain no targets. Definitions require observed weather triggers and valid baselines, exclude invalid spatial labels from rankings while retaining them for citywide accounting, treat absent valid
Table 1: Civic Web sources and two-year service-record snapshots.
| City | Municipal, boundary, and NOAA sources | 311 rows |
|---|---|---|
| Austin | Austin Open Data 311 (xwdj-i9he); council districts (w3v2-cj58); Camp Mabry (USW00013958) | 280,395 |
| Boston | Analyze Boston 311; BPDA neighborhood boundaries; Logan (USW00014739) | 324,124 |
| Chicago | Chicago Data Portal 311 (v6vf-nfxy); community areas (igwz-8jzy); O'Hare (USW00094846) | 445,933 |
| San Francisco | SF Open Data 311 (vw6y-z8j6); supervisor districts (hcgx-vtsb); Downtown (USW00023272) | 1,454,388 |
| Total | 2,504,840 |
Note. Identifiers follow the release metadata. Counts are retained service-request rows; NOAA contributes daily station observations, and ACS/TIGER contributes a shared 124-unit proxy table.
samples as unknown, and fix eligible sets and grouping rules for population-normalized comparisons.
3.2 Contract-First Task Construction
Task construction begins after the source assets are fixed:
-
The generator derives an eligible city, period, and service family from the source metadata and pairs that scope with a capability and requested-claim specification.
-
It executes the capability-specific operation over the source assets to obtain the structured reference result and its coverage.
-
Before the question is written, it freezes an executable contract containing the operation, complete constraints, answerability, output fields, scorer, and target. An source chain records the required source roles and operations, while oracle provenance records how the target was derived.
-
It renders the fixed contract through one of four public-sector frames (operational handoff, planning decision, oversight review, or decision deliverable) without changing the underlying computation or claim boundary.
-
It emits three ID-aligned records: a public task, hidden evaluator ground truth, and an internal generation record. Release checks then verify their separation and freeze the tasks, evidence, policies, and manifests by hash.
The public record contains the task, scope, declared files, response schema, measurement definitions, and policy constraints. Hidden ground truth retains the reference answer, scoring contract, source chain, and oracle provenance; the internal record reconstructs generation.
3.3 Benchmark Composition and Answerability
Table 2 summarizes the 400-task evaluation set; no training or development split is released. Austin, Boston, Chicago, and San Francisco contribute 98, 116, 98, and 88 tasks, respectively. The set contains 400 unique questions, 316 semantic specifications, and 305 distinct structured answers. Seventy-two specifications have two or three scenario views, covering 156 tasks. These repeated views support framing-consistency analysis, and our uncertainty estimation clusters them by their shared semantic specification instead of treating each view as independent. The four difficulty bands denote required reasoning behavior and are not human-difficulty ratings.
Each contract has one of three outcomes. A direct answer is supported at the requested scope. A qualified answer returns the supported computation while explicitly limiting a broader interpretation. An evidence-scope-aware refusal identifies a missing category or temporal grain and returns the finest alternative supported by the available data. The benchmark tests whether the agent can recover the values, coverage, scope, and supported alternative from evidence.
Programmatic benchmark generation can mistake surface variation for substantive construct coverage [2]. Construction checks verify that every question preserves its city, period, service, and operation anchors and that repeated scenario views share an identical contract. Question-only answerability prediction is reported as a visibility diagnostic; answer recovery still requires evidence and computation.
3.4 Evaluation Protocol
At evaluation time, an agent receives one public task record and tool access restricted to its 16 declared source files. It returns a task-specific structured_result and an analysis_brief with finding, evidence, limitations, and claim type. Figure 3 shows this split: the public record exposes the question, visible contract, and allowed files, while the hidden scoring contract, oracle, and evaluation pipeline remain outside the model context. The hidden contract dispatches an operation-specific scorer that checks required sets,
orderings, numeric values, provenance and coverage fields, claim boundary, or supported alternative. Numeric checks use fixed tolerances. The brief contributes deterministic completeness and exact claim-type checks; open-ended writing quality is outside the score.
PUBLIC TASK (Visible to Agent)
• Metadata & Task ID: ug_010c3790f8f1
• Task Question: An oversight note claims water and sewer request volume changed unevenly across SF. Recompute 3 highest signed differences by supervisor district as 2025 minus 2024; separate measurement from causal attribution.
• Visible Contract (VC): Time: 2024-2025, City: San Francisco
Unit: supervisor_district, Service: water_sewer
Format: structured result + analysis brief
Forbidden: No precomputed summaries, no causal inference
• Declared Sources: daily_service_events_2025.csv, sf_district_boundaries.geojson, manifest_2025.json
HIDDEN EVALUATION (Evaluator Only)
• Hidden Metadata: ug_00a657d6a28b, internal_task_id: sf2025
• ug_fitness_road_light
• Expected Structured Output Table: Columns: date_evidence, area_evidence, service_evidence, request_count, boundary_evidence
• Oracle & Boundary: direct_schema_and_scope_verification; Ops: schema discovery, manifest validation, evidence validation
• Scoring Contract: type: governance_data_fitness, tolerance: +/- 0.05, scored fields: 13
• Evaluation Pipeline Flowchart:

Figure 3: Public task and hidden evaluation. The agent receives the question, visible contract, and declared source files. Scoring type, oracle provenance, source traces, and evaluator state remain hidden until prediction is complete.
Each scorer returns a task score and a strict exact-match indicator. The primary score is the unweighted mean across 400 tasks, reported with exact match and breakdowns by capability, answerability, difficulty, and city. Missing predictions, malformed outputs, and failed runs score zero; tool use, latency, and tokens are logged separately.
Boundary credit follows the underlying evidence. A qualified response earns it after recovering the supporting computation; a refusal must identify a verifiable evidence gap and return the finest supported alternative. Valid empty results report the evaluated units and coverage. This design separates evidence-based qualification from generic caution, keyword stuffing, and always-refuse behavior.
Before release, blocking checks verify artifact separation, source-record integrity, target/scorer closure, contract-preserving framing, and key operation semantics recomputed from source evidence. Five no-record strategies are evaluated overall and by capability and operation. These checks establish internal consistency and resistance to the tested shortcuts. Broader validity studies and legal review remain necessary for public redistribution.
Table 2: Composition of the 400-task benchmark by evidence operation and answer type. D3 contributes 254 tasks that require explicit qualification.
| Band | Capability | Required evidence operation | Expected output | Answer | n |
|---|---|---|---|---|---|
| D1 | Data fitness | Check schema, manifest scope, and category presence | Field- and file-level evidence | Direct | 24 |
| D2 | Priority ranking | Aggregate a scoped metric; rank eligible units | Ranked units with metric and coverage | Direct | 30 |
| Threshold screening | Align dates; build event/baseline windows; threshold units | Selected units with window statistics | Direct | 44 | |
| Data quality | Audit coordinate coverage and sampled boundary fit | Spatial-risk ranking and citywide accounting | Direct | 24 | |
| D3 | Priority ranking | Aggregate a scoped metric; rank eligible units | Ranked units with metric and coverage | Qualified | 52 |
| Trend change | Align 2024–2025 records; compute signed changes | Ranked changes with interpretation boundary | Qualified | 46 | |
| Group comparison | Join proxies; normalize metrics; compare fixed groups | Group statistics and descriptive contrast | Qualified | 40 | |
| Evidence fit | Test whether spatial evidence supports the target product | Fitness verdict and supported fallback | Qualified | 30 | |
| Governance boundary | Compute descriptive change; test the governance claim | Supported result plus rejected attribution | Qualified | 46 | |
| Briefing | Synthesize evidence with reporting/weather limitations | Finding, evidence, and explicit limitations | Qualified | 40 | |
| D4 | Missing family/grain | Check category and temporal-grain availability | Refusal with finest supported alternative | Refusal | 24 |
| Total | 400 | ||||
Bands. D1 validates evidence; D2 derives deterministic results; D3 adds explicit interpretation boundaries; D4 verifies evidence gaps and returns the finest supported alternative.
4 Task-State Memory
Task-State Memory (TSM) is an external, typed state for agents integrating heterogeneous civic Web records. As shown in Figure 4, INIT compiles the task once. Each tool observation is written, resolved, checked, and retrieved before the next DECIDE; the decision continues the loop or emits a terminal response. The first five stages are deterministic, while DECIDE remains the model's choice. The separation keeps the task state reconstructable and keeps free-form transcript text outside the memory state.
4.1 Six-Stage Memory Loop
INIT: Compile the public contract. Let denote the canonical public task projection. Baseline and memory conditions receive the same exogenous input,
TSM compiles the task intent, answer contract, declared file roles, and spatial and temporal requirements into typed task assertions and verifiable constraints. Initialization performs no file I/O. A declared path records an allowed input, whereas file contents enter the task state after a successful tool call. The distinction keeps task metadata separate from data-supported support.
WRITE: Compile observations into typed evidence. After action returns serialized observation , a deterministic compiler updates the ledger,
Each assertion has the form
where is its dimension, and its claim and value, its source, and its files and fields, and its spatial and temporal scope, its provenance parents, its status, and its creation step. Dimensions cover schema, evidence, spatial, temporal, governance, task, and answer-contract roles. The compiler derives schema observations, computation results, file and field provenance, observed
scopes, policy evidence, evidence gaps, and tool errors. Computations retain a fingerprint of the complete result when the prompt shows a preview. Failed tool executions receive the rejected status and cannot support a claim; a successful but irrelevant call does not satisfy provenance or computation constraints. Equal public inputs and serialized observations therefore produce identical ledger updates.
RESOLVE: Reconcile only compatible assertions. TSM compares a new assertion with prior assertions that share its normalized claim key and identical spatial and temporal scope. Identical observations reaffirm the stronger or newer assertion; compatible schema and scope fragments merge; and a stronger observed source supersedes a weaker duplicate. Equal-strength contradictions remain conflicts, while differently scoped facts coexist. The ledger is append-only: superseded assertions become stale, and failed observations remain rejected. Its prompt-facing status classes are active, stale, conflict, and rejected. This policy keeps a city-, year-, or neighborhood-specific fact separate from evidence at another scope.
CHECK: Evaluate evidence against task constraints. TSM recomputes checks over the typed ledger: required schemas and manifests must be observed, cited evidence must come from declared files, computations must use required source roles, and scopes must match the task. Coupled analyses require joint computation rather than separate source inspections. Each check stores supporting and blocking assertions with a satisfied, unsatisfied, conflicted, or unverified status; a missing computation cannot justify refusal.
RETRIEVE: Form a bounded projection. Once the fixed retrieval trigger is reached, TSM converts the full task state into a constraint-centered bounded projection. Eligible evidence is tool-supported and active or conflict-bearing. Selection preserves conflicts and observed boundary evidence, covers missing source roles, retains nonredundant computations, and ranks remaining assertions by open-constraint relevance and recency. The projection contains selected assertions with provenance and scope, evidence-role coverage, open or conflicted checks, recent tool errors, and a compact

Figure 4: Task-State Memory. INIT compiles the public task; WRITE, RESOLVE, and CHECK maintain typed records and constraint state; RETRIEVE forms a bounded projection; and DECIDE uses that context to continue, answer, qualify, or refuse.
answer-contract reminder. It is deterministically fitted to a fixed character budget and omits evidence already present in retained tool pairs. The typed links let the model reconstruct why a claim is available, limited, or blocked.
DECIDE: Gate the next agent action. The model receives the public task, common tool interface, retained recent interaction pairs, and the projected working context. It emits one of four explicit gates: CONTINUE requests another tool call; ANSWER returns a directly supported result; QUALIFIED returns a supported descriptive or coarser result with its scope; and REFUSE marks an unsupported claim when no adequate alternative can be computed. A CONTINUE action produces the next observation and restarts the update loop. A terminal response is checked against the public response contract before evaluation. The gate is a model decision informed by TSM; the memory state does not supply an answer.
4.2 Agent Interface and Comparison Conditions
ReAct and TSM share the model, base system prompt, public task, tool schema, evidence permissions, maximum actions, response format, and evaluator. They choose actions and independently, so their trajectories can diverge. Equal actions return equal serialized results:
where is the common tool environment and equality is over the serialized raw result. Full-trace ReAct retains every request/result
pair. TSM retains the two latest raw pairs and receives the bounded typed projection described above; its ablations remove one workflow stage while preserving the remaining interface and execution budget. For RQ3, Raw Retrieval is an independently executed memory condition with the same model, tasks, two-pair history, injection trigger, and character budget. It retains raw observations instead of typed writes and projections, supporting evidence-role coverage comparison without assertion-level provenance checks.
5 Experiments
The benchmark measures task-level analytic performance, while the memory study measures how retained task state affects tool use, intermediate records, and final responses.
The evaluation addresses four research questions:
RQ1: How does TSM affect scope-aware task performance relative to full-trace ReAct? (Sec. 5.2)
RQ2: How does each TSM stage contribute to end-to-end performance? (Sec. 5.3)
RQ3: Does TSM preserve correct source traces while covering the source roles and unresolved constraints required by each task? (Sec. 5.4)
RQ4: What failures does TSM correct or introduce, and what reliability and resource trade-offs does it incur? (Sec. 5.5)
Table 3: RQ1 effectiveness across nine model pairs; eight TSM intervals exclude zero.
| Model | Mean task score ↑ | Exact match ↑ | Completion ↑ | ||||
|---|---|---|---|---|---|---|---|
| ReAct | TSM | Δ [95% CI] | ReAct | TSM | ReAct | TSM | |
| Frozen reference runs | |||||||
| DeepSeek V4 Flash | 0.2782 | 0.3451 | +0.0669 [0.0336, 0.1008] | 0.0000 | 0.0050 | 0.9425 | 0.9500 |
| Grok 4 Fast Reasoning | 0.2502 | 0.3102 | +0.0600 [0.0263, 0.0936] | 0.0100 | 0.0150 | 0.9950 | 0.9700 |
| Additional endpoints | |||||||
| GPT-5.4-nano | 0.1373 | 0.2089 | +0.0717 [0.0473, 0.0962] | 0.0025 | 0.0000 | 0.9950 | 0.9550 |
| Gemini-3.5-flash-lite | 0.0974 | 0.1506 | +0.0532 [0.0241, 0.0831] | 0.0075 | 0.0075 | 0.3775 | 0.4550 |
| Qwen3.6-35B-A3B | 0.1090 | 0.1598 | +0.0508 [0.0303, 0.0723] | 0.0000 | 0.0000 | 0.4150 | 0.3800 |
| GLM-5.2 | 0.1644 | 0.2010 | +0.0366 [0.0097, 0.0638] | 0.0000 | 0.0000 | 0.5225 | 0.3975 |
| Kimi-K2.7-Code | 0.3825 | 0.4590 | +0.0766 [0.0426, 0.1097] | 0.0000 | 0.0050 | 0.9950 | 0.8925 |
| GPT-5.6-terra | 0.5414 | 0.5577 | +0.0163 [-0.0050, 0.0383] | 0.0000 | 0.0000 | 1.0000 | 1.0000 |
| Claude Sonnet 5 | 0.3395 | 0.4334 | +0.0938 [0.0606, 0.1273] | 0.0075 | 0.0000 | 0.6950 | 0.7875 |
Note. Intervals use 20,000 semantic-contract-cluster bootstrap resamples; bold intervals exclude zero. Blue cells identify TSM values and do not encode outcome quality.
5.1 Experimental Setup
Benchmark. We evaluate on the fixed 400-task civic Web data test set, which spans four cities, the 2024–2025 periods, and ten capability categories. Each task exposes its declared bundle of 16 frozen files and is scored by a deterministic task-specific evaluator. All conditions receive the same task text, file bundle, tools, and response schema.
Models. The RQ1 matrix contains nine completed model pairs. Frozen runs of DeepSeek V4 Flash and Grok 4 Fast Reasoning provide the primary paired comparisons. The broader matrix includes GPT-5.4-nano, Gemini-3.5-flash-lite, Qwen3.6-35B-A3B, GLM-5.2, Kimi-K2.7-Code, GPT-5.6-terra, and Claude Sonnet 5. Every model passed a JSON-action preflight, and the artifacts record registry identifiers, access dates, runtime hashes, task selections, and run signatures.
Execution protocol. All conditions use temperature 0 and a 120-second request timeout. They allow at most eight agent steps and four API retries, with identical tool serialization and the same terminal response contract. Missing predictions, malformed finals, exhausted retries, and step exhaustion score zero. Frozen manifests record task and runtime hashes, git revision, profile, task IDs, shards, and run signatures. Merged rows must pass exact 400-task coverage and identity checks.
Evaluation and statistics. The primary metric is mean task score over 400 tasks, accompanied by exact match, completion, component failures, and resource use. We draw 20,000 paired bootstrap samples and cluster by the 316 semantic contracts, grouping repeated scenario views in each resample. The supplementary material reports pre-execution slices and benchmark-integrity diagnostics.
5.2 RQ1: Task Performance
Setting. We compare full-trace ReAct with TSM on the same 400 tasks for each model. ReAct retains every request/result pair without an external task state. TSM retains the two most recent pairs
and, after the second tool call, injects a typed task-state projection capped at 6,000 characters. The comparison measures an unbounded raw trace against bounded structured state; it is not context-length matched. We report mean task score, exact match, completion, and paired score differences with 95% semantic-contract-cluster bootstrap intervals.
Results and analysis. Table 3 shows positive TSM score differences for eight of nine model pairs, with 95% cluster-bootstrap intervals excluding zero. In the reference runs, TSM improves mean score by 0.0669 for DeepSeek V4 Flash (95% CI [0.0336, 0.1008]) and 0.0600 for Grok 4 Fast Reasoning ([0.0263, 0.0936]). GPT-5.6-terra is the exception, with an interval crossing zero. Completion rises from 0.9425 to 0.9500 for DeepSeek but falls from 0.9950 to 0.9700 for Grok, whose TSM run contains ten retry-exhausted provider failures. The score gains therefore do not imply a uniform completion gain.
5.3 RQ2: Component Contribution
Setting. We use a separately frozen DeepSeek V4 Flash suite and rerun all 400 tasks for each natural-trajectory ablation, with two retained history pairs and the same eight-step budget. The four variants remove reconciliation, constraint states and check-driven ranking, task-state projection, or early terminal decisions, respectively. Each condition independently chooses its tool trajectory. The full-TSM row is the reference for this suite and is reported separately from the frozen RQ1 run.
Results and analysis. Table 4 shows a −0.0016 change without RESOLVE, compared with declines of 0.0122 and 0.0223 without CHECK and DECIDE. Removing RETRIEVE causes the largest decline (−0.1278): a maintained ledger provides little benefit when its bounded projection is hidden from the model. Retrieval is the dominant measured contributor in this run, with smaller complementary effects from checking and decision control.
Table 4: RQ2 TSM stage ablations on the frozen DeepSeek suite. Removing Retrieve causes the largest score loss.
| Variant | Score ↑ | Δ | Exact ↑ |
|---|---|---|---|
| Full TSM | 0.3621 | - | 0.005 |
| w/o Resolve | 0.3605 | -0.0016 | 0.000 |
| w/o Check | 0.3499 | -0.0122 | 0.000 |
| w/o Retrieve | 0.2343 | -0.1278 | 0.000 |
| w/o Decide | 0.3398 | -0.0223 | 0.005 |
Note. Each variant removes one stage; Δ is relative to Full TSM within this separately frozen suite.
Table 5: RQ3 trace validity and task-evidence coverage.
| (a) Assertion-level trace checks | ||||
|---|---|---|---|---|
| Trace check | DeepSeek | Grok | ||
| Tool-result trace | 1432/1432 | 1303/1303 | ||
| File-read trace | 1426/1429 | 1302/1302 | ||
| Field trace | 1333/1333 | 1255/1255 | ||
| Spatial-scope match | 555/555 | 404/404 | ||
| Temporal-scope match | 802/802 | 631/631 | ||
| (b) Task-level evidence coverage | ||||
|---|---|---|---|---|
| Model | Raw | TSM | Δ | Open |
| DeepSeek V4 | 0.8395 | 0.9044 | +0.0649 | 150/158 |
| Grok 4 Fast | 0.6982 | 0.7373 | +0.0391 | 249/249 |
Note. Fractions in (a) are valid/eligible assertions. Role coverage is a macro-average over 380 applicable tasks; Open is projected/full-ledger unresolved constraints. Raw Retrieval has no typed assertion links.
5.4 RQ3: Trace Quality
Setting. We review the final TSM projection from the two 400-task RQ1 runs. Each eligible assertion is checked against a successful tool result, a read file, a field in that result, and the source’s spatial and temporal scope. We also measure required evidence-role coverage over the 380 tasks that define roles and count whether constraints open in the full ledger remain visible in the projection. Raw Retrieval is an independently executed comparison with the same model, tasks, two-pair history, injection timing, and 6,000-character budget. Its raw observations support role-coverage comparison but contain no assertion-level trace links.
Results and analysis. Table ?? reports valid counts over eligible assertions. Every eligible assertion passes the tool-result, field, spatial, and temporal checks. File-read tracing passes for all Grok assertions and 1426/1429 DeepSeek assertions; the three failures are catalog listings mislabeled as direct reads. TSM raises required-role coverage over Raw Retrieval from 0.8395 to 0.9044 for DeepSeek and from 0.6982 to 0.7373 for Grok, while exposing 150/158 and 249/249 constraints open in the full ledger. In the 40-task provenance stress test, TSM scores 0.4074 versus 0.3782 for ReAct, and 38/40 runs record a stale or rejected assertion. These results establish high trace correctness and improved task-evidence coverage while locating a specific provenance-labeling defect.
Table 6: RQ4 operational changes from ReAct to TSM.
| Model | Complete ↑Δ (tasks) | Failures ↓Δ | Tokens ↓Δ/task | Latency ↓Δ (s/task) |
|---|---|---|---|---|
| DeepSeek V4 | +3 | -15 | -6,555 | +4.94 |
| Grok 4 Fast | -10 | -41 | +515 | +5.09 |
Note. Values are TSM minus ReAct; bold marks favorable changes. Endpoint counts and token components appear in Supplementary Table 12.
5.5 RQ4: Failure Patterns
Setting. The aggregate analysis uses the frozen DeepSeek and Grok RQ1 pairs, which have complete reliability and resource artifacts. We separate exhausted API retries, terminal-tool errors, step limits, and malformed finals from non-exclusive completed-answer failures in computation, provenance and scope, and boundary or alternative handling. Resource values are unconditional means over all 400 tasks.
Results and analysis. Table 6 summarizes the paired operational changes; Supplementary Table 12 gives endpoint values. TSM reduces computation failures from 277 to 262 for DeepSeek and from 337 to 296 for Grok. DeepSeek uses 6,555 fewer total tokens per task (-11.4%), whereas Grok uses 515 more (+1.6%). Both TSM runs invoke more tools and add about five seconds of latency. Grok also incurs ten retry-exhausted provider failures. The supplementary paired cases show corrections and regressions together with their observed resource changes.
6 Conclusion
We formulate civic Web analysis as scope-aware reasoning and introduce TSM to preserve source, field, spatial, temporal, and claim boundaries during tool use. TSM improves mean task score by 0.0669 and 0.0600 in two frozen reference runs; across nine model pairs, eight 95% semantic-contract-cluster bootstrap intervals exclude zero. Ablation identifies bounded retrieval as the largest measured contributor, while trace checks expose three catalog-linking errors. Resource effects remain model-dependent, with lower token use for DeepSeek, higher token use for Grok, and higher latency for both. Typed, constraint-centered memory improves agent performance while keeping the records behind civic Web claims inspectable.
Limitations. Stable generated wording makes answerability visible: question-only prediction is perfect, and the five no-record attacks cover specific shortcuts. The scorer evaluates structured values, evidence, and deterministic completeness, excluding human-perceived prose and policy usefulness. Frozen files isolate Web data integration, provenance, and scope from browser navigation and source updates. Because the benchmark informed architecture selection, generalization claims remain confined to this four-city artifact. One-model, independent-trajectory ablations support association, not causal decomposition. The post-run catalog-provenance patch has an unmeasured task effect, and hosted aliases add run variance. Chicago and Boston redistribution rights remain unresolved; release must separate metadata, code, hashes, and legal aggregates from restricted source-derived artifacts.
Ethics and Privacy Statement
The benchmark supports pre-decision analysis and audit, not automated policy making, enforcement, eligibility, or risk scoring. It uses public 311 reports, one NOAA station for city-level windows, and area-weighted ACS aggregates; TSM retains bounded current-task projections. Provenance makes source, scope, and support inspectable, while retained data may increase provider exposure.
References
[1] Candace Agonafir, Alejandra Ramirez Pabon, Tarendra Lakhankar, Reza Khanbilvardi, and Naresh Devineni. 2022. Understanding New York City Street Flooding through 311 Complaints. Journal of Hydrology 605 (2022), 127300. doi:10.1016/j.jhydro.2021.127300
[2] Andrew M. Bean, Ryan Othniel Kearns, Angelela Romanou, Franziska Sofia Hafner, Harry Mayne, Jan Batzner, Negar Foroustan, et al. 2025. Measuring What Matters: Construct Validity in Large Language Model Benchmarks. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track. arXiv:2511.04703.
[3] Johan de Kleer. 1986. An Assumption-Based TMS. Artificial Intelligence 28, 2 (1986), 127–162.
[4] Jie Feng, Jun Zhang, Tianhui Liu, Xin Zhang, Tianjian Ouyang, Junbo Yan, Yuwei Du, Siqi Guo, and Liyu Li. 2025. CityBench: Evaluating the Capabilities of Large Language Models for Urban Tasks. arXiv preprint arXiv:2406.13945 (2025).
[5] Tianyu Gao, Howard Yen, Jiatong Yu, and Danqi Chen. 2023. Enabling Large Language Models to Generate Text with Citations. In Conference on Empirical Methods in Natural Language Processing (EMNLP). arXiv:2305.14627.
[6] Bernal Jiménez Gutiérrez, Yiheng Shu, Yu Gu, Michihiro Yasunaga, and Yu Su. 2024. HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models. In Advances in Neural Information Processing Systems (NeurIPS). arXiv:2405.14831.
[7] Jindong Han, Yansong Ning, Zirui Yuan, Hang Ni, et al. 2025. Large Language Model Powered Intelligent Urban Agents: Concepts, Capabilities, and Applications. arXiv preprint arXiv:2507.00914 (2025).
[8] Xueyu Hu, Ziyu Zhao, Shuang Wei, Ziwei Chai, Qianli Ma, Guoyin Wang, Xuwu Wang, Jing Su, Jingjing Xu, Ming Zhu, Yao Cheng, Jianbo Yuan, Jiwei Li, Kun Kuang, Yang Yang, Hongxia Yang, and Fei Wu. 2024. InfiAgent-DABench: Evaluating Agents on Data Analysis Tasks. In International Conference on Machine Learning (ICML). arXiv:2401.05507.
[9] Yuanzhe Hu, Yu Wang, and Julian McAuley. 2025. Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions. arXiv preprint arXiv:2507.05257 (2025).
[10] Jiazheng Kang, Mingming Ji, Zhe Zhao, and Ting Bai. 2025. Memory OS of AI Agent. In Conference on Empirical Methods in Natural Language Processing (EMNLP). Oral; arXiv:2506.06326.
[11] Polina Kirichenko, Mark Ibrahim, Randall Balestriero, Diane Beckham, Megh Mishra, Shengyun Sun, Micah Goldblum, Jonas Geiping, Moritz Hardt, Kamal Mahmood, and Sara Hooker. 2025. AbstentionBench: Reasoning LLMs Fail on Unanswerable Questions. arXiv preprint arXiv:2506.09038 (2025).
[12] Constantine E. Kontokosta. 2021. Urban Informatics in the Science and Practice of Planning. Journal of Planning Education and Research 41, 4 (2021), 382–395. doi:10.1177/0739456X18793716
[13] Constantine E. Kontokosta and Boyeong Hong. 2021. Bias in Smart City Governance: How Socio-Spatial Disparities in 311 Complaint Behavior Impact the Fairness of Data-Driven Decisions. Sustainable Cities and Society 64 (2021), 102503. doi:10.1016/j.scs.2020.102503
[14] Siqi Lai, Yansong Ning, Zirui Yuan, Zhixi Chen, and Hao Liu. 2025. USTBench: Benchmarking and Dissecting Spatiotemporal Reasoning of LLMs as Urban Agents. arXiv preprint arXiv:2505.17572 (2025).
[15] Fangyu Lei, Jixuan Chen, Yuxiao Ye, Ruisheng Cao, Dongchan Shin, Hongjin Su, Zhaoqing Suo, Hongcheng Gao, Wenjing Hu, Pengcheng Yin, Victor Zhong, Caiming Xiong, Ruoxi Sun, Qian Liu, Sida Wang, and Tao Yu. 2025. Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflows. In International Conference on Learning Representations (ICLR). arXiv:2411.07763.
[16] Jinyang Li, Binyuan Hui, Ge Qu, Jiaxi Yang, Binhua Li, Bowen Li, Bailin Wang, Bowen Qin, Ruiying Geng, Nan Huo, Xuanhe Zhou, Chenhao Ma, Guoliang Li, Kevin C.C. Chang, Fei Huang, Reynold Cheng, and Yongbin Li. 2023. Can LLM Already Serve as a Database Interface? A Big Bench for Large-Scale Database Grounded Text-to-SQLs. In Advances in Neural Information Processing Systems (NeurIPS). arXiv:2305.03111.
[17] Zhonghang Li, Lianghao Xia, Jiabin Tang, Yong Xu, Lei Shi, Long Xia, Dawei Yin, and Chao Huang. 2024. UrbanGPT: Spatio-Temporal Large Language Models. In ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD). arXiv:2403.00813.
[18] Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, Shudan Zhang, Xiang Deng, Aohan Zeng, Zhengxiao Du, Chenhui Zhang, Sheng Shen, Tianjian Zhang, Yu Su, Huan Sun, Minlie Huang, Yuxiao Dong, and Jie Tang. 2024. AgentBench: Evaluating LLMs as Agents. In International Conference on Learning Representations (ICLR). arXiv:2308.03688.
[19] Zhi Liu and Nikhil Garg. 2023. Quantifying Spatial Under-Reporting Disparities in Resident Crowdsourcing. Nature Computational Science 3 (2023), 670–684.
[20] Adyasha Maharana, Dong-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang. 2024. Evaluating Very Long-Term Conversational Memory of LLM Agents. In Annual Meeting of the Association for Computational Linguistics (ACL). arXiv:2402.17753.
[21] Rohin Manvi, Samar Khanna, Gengchen Mai, Marshall Burke, David Lobell, and Stefano Ermon. 2024. GeoLLM: Extracting Geospatial Knowledge from Large Language Models. In International Conference on Learning Representations (ICLR). arXiv:2310.06213.
[22] Grégoire Mialon, Clémentine Fourrier, Craig Swift, Thomas Wolf, Yann LeCun, and Thomas Scialom. 2023. GAI: A Benchmark for General AI Assistants. arXiv preprint arXiv:2311.12983 (2023).
[23] Huan Ning, Zhenlong Li, Temitope Akinboyewaa, and M. Naser Lessani. 2025. LLM-Find: An Autonomous GIS Agent Framework for Geospatial Data Retrieval. International Journal of Digital Earth (2025). arXiv:2407.21024.
[24] Stan Openshaw. 1984. The Modifiable Areal Unit Problem. Geo Books.
[25] Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. 2023. MemGPT: Towards LLMs as Operating Systems. arXiv preprint arXiv:2310.08560 (2023).
[26] Shishir G. Patil, Huanzhi Mao, Charlie Cheng-Jie Ji, Fanjia Yan, Vishnu Suresh, Ion Stoica, and Joseph E. Gonzalez. 2025. The Berkeley Function Calling Leaderboard (BFCL): From Tool Use to Agentic Evaluation of Large Language Models. International Conference on Machine Learning (ICML) (2025).
[27] Preston Rasmussen, Pavlo Paliychuk, Travis Beauvais, Jack Ryan, and Daniel Chalef. 2025. Zep: A Temporal Knowledge Graph Architecture for Agent Memory. arXiv preprint arXiv:2501.13956 (2025).
[28] William S. Robinson. 1950. Ecological Correlations and the Behavior of Individuals. American Sociological Review 15, 3 (1950), 351–357.
[29] Timo Schick, Jane Dwivedi-Yu, Roberto Dessi, Roberta Raileduan, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. 2023. Toolformer: Language Models Can Teach Themselves to Use Tools. In Advances in Neural Information Processing Systems (NeurIPS), Vol. 36. 68539–68551.
[30] Theodore R. Sumers, Shunyu Yao, Karthik Narasimhan, and Thomas L. Griffiths. 2024. Cognitive Architectures for Language Agents. Transactions on Machine Learning Research (TMLR) (2024). arXiv:2309.02427.
[31] Lingjing Wang, Cheng Qian, Constantine Kontokosta, and Stanislav Sobolevsky. 2017. Structure of 311 Service Requests as a Signature of Urban Location. PLOS ONE 12, 10 (2017), e0186314. doi:10.1371/journal.pone.0186314
[32] Zora Zhiruo Wang, Jayuan Mao, Daniel Fried, and Graham Neubig. 2025. Agent Workflow Memory. In International Conference on Machine Learning (ICML). arXiv:2409.07429.
[33] Ariel White and Kris-Stella Trump. 2018. The Promises and Pitfalls of 311 Data. Urban Affairs Review 54, 4 (2018), 794–823.
[34] Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai-Wei Chang, and Dong Yu. 2025. LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. In International Conference on Learning Representations (ICLR). arXiv:2410.10813.
[35] Yifan Wu, Lizhu Zhang, Yuhang Zhou, Mingyi Wang, Bo Peng, Serena Li, Xiangjun Fan, and Zhuokai Zhao. 2026. Remember When It Matters: Proactive Memory Agent for Long-Horizon Agents. arXiv preprint arXiv:2607.08716 (2026).
[36] Tianbao Xie, Danyang Zhang, Jixuan Chen, Xiaochuan Li, Siheng Zhao, Ruisheng Cao, Toh Jing Hua, Zhoujun Cheng, Dongchan Shin, Fangyu Lei, Yitao Liu, Yiheng Xu, Shuyan Zhou, Silvio Savarese, Caiming Xiong, Victor Zhong, and Tao Yu. 2024. OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track. arXiv:2404.07972.
[37] Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. 2025. A-Mem: Agentic Memory for LLM Agents. arXiv preprint arXiv:2502.12110 (2025).
[38] Shunyu Yao, Noah Shinn, Pedram Razavi, and Karthik Narasimhan. 2024. r-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains. arXiv preprint arXiv:2406.12045 (2024).
[39] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. ReAct: Synergizing Reasoning and Acting in Language Models. In International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=WE_vluYUL-X
[40] Harlan Yu and David G. Robinson. 2012. The New Ambiguity of "Open Government". UCLA Law Review Discourse 59 (2012), 218–208.
[41] Guibin Zhang, Muxin Fu, Guancheng Wan, Miao Yu, Kun Wang, and Shuicheng Yan. 2025. G-Memory: Tracing Hierarchical Memory for Multi-Agent Systems. arXiv preprint arXiv:2506.07398 (2025).
[42] Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. 2024. MemoryBank: Enhancing Large Language Models with Long-Term Memory. In AAAI Conference on Artificial Intelligence. arXiv:2305.10250.
[43] Shuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, Uri Alon, and Graham Neubig. 2024. WebArena: A Realistic Web Environment for Building Autonomous Agents. In International Conference on Learning Representations (ICLR). arXiv:2307.13854.
A Supplementary Materials
These tables report benchmark audits, endpoint slices, detailed reliability and resource measurements, evidence-state checks, run stability, and paired cases supporting the main analysis. Appendix ?? reproduces the baseline and Memory-Core prompt specification.
Table 7: Benchmark integrity and no-evidence shortcut audits. Evidence-free strategies reach at most 0.1715 overall task score.
| Audit | Overall | Worst subgroup |
|---|---|---|
| Scorer and shortcut controls | ||
| Oracle/scorer regression | 1.0000 | 1.0000 |
| Always refuse | 0.0983 | 0.2000 |
| Always empty | 0.1177 | 0.2000 |
| Keyword stuffing | 0.0891 | 0.2000 |
| Majority answer shape | 0.0986 | 0.2038 |
| Public-contract canned | 0.1715 | 0.3000 |
| Answerability diagnostic | ||
| Question-only label accuracy | 1.0000 | – |
Note. Shortcut rows report task score without source evidence; the label diagnostic measures answerability visibility only.
Table 8: RQ1 endpoint scores by capability.
| Metric | DeepSeek | Grok | ||
|---|---|---|---|---|
| ReAct | TSM | ReAct | TSM | |
| Computation, synthesis, and quality | ||||
| Rank | 0.4390 | 0.5198 | 0.3818 | 0.4535 |
| Trend | 0.3799 | 0.7937 | 0.2799 | 0.5855 |
| Threshold | 0.1403 | 0.1687 | 0.1472 | 0.1264 |
| Group | 0.1314 | 0.1437 | 0.1167 | 0.1489 |
| Brief | 0.3277 | 0.3689 | 0.3011 | 0.3484 |
| Quality | 0.4528 | 0.1490 | 0.5333 | 0.3917 |
| Evidence fitness and claim boundaries | ||||
| Evidence fit | 0.2642 | 0.2522 | 0.2580 | 0.2644 |
| Boundary | 0.1873 | 0.2458 | 0.1174 | 0.2108 |
| Fitness | 0.1719 | 0.2712 | 0.2297 | 0.2932 |
| Refusal | 0.0717 | 0.0838 | 0.0526 | 0.0177 |
Note. Higher scores are better; bold blue marks the stronger method within each model pair and capability.
Table 14: Provenance stress test on 40 injected DeepSeek tasks.
Table 9: RQ1 endpoint scores by city, answer type, and evidence-role complexity.
| Metric | DeepSeek | Grok | ||
|---|---|---|---|---|
| ReAct | TSM | ReAct | TSM | |
| City | ||||
| Austin | 0.3171 | 0.3589 | 0.3207 | 0.4010 |
| Boston | 0.2188 | 0.2745 | 0.1516 | 0.2057 |
| Chicago | 0.2794 | 0.3624 | 0.2873 | 0.3074 |
| San Francisco | 0.3117 | 0.4034 | 0.2603 | 0.3498 |
| Answer type and evidence roles | ||||
| Direct | 0.3130 | 0.2976 | 0.3051 | 0.3499 |
| Qualified | 0.2810 | 0.3926 | 0.2425 | 0.3187 |
| Refuse | 0.0717 | 0.0838 | 0.0526 | 0.0177 |
| 0–1 roles | 0.2862 | 0.3926 | 0.2473 | 0.3508 |
| 2 roles | 0.2314 | 0.2824 | 0.2227 | 0.2264 |
| 3 roles | 0.4335 | 0.2406 | 0.4062 | 0.3652 |
Note. Complexity is computed from public required evidence roles only. Bold blue marks the stronger method within each model pair and slice.
| Condition | Score | Complete | Seen | Non-active |
|---|---|---|---|---|
| ReAct | 0.3782 | 38/40 | – | 0/40 |
| TSM | 0.4074 | 38/40 | 30/40 | 38/40 |
Note. Four error types were used (10 tasks each): wrong file declaration, cross-city scope, stale version, and missing metadata. Seen counts runs that requested the affected response; Non-active counts runs with a stale or rejected assertion.
Table 10: RQ3 evidence-state trace validity and coverage.
| Model | Method | Valid/eligible assertion traces | Task coverage | |||||
|---|---|---|---|---|---|---|---|---|
| Parent | File | Field | Spatial | Temporal | Role cov. | Open constraint | ||
| DeepSeek | TSM | 1432/1432 | 1426/1429 | 1333/1333 | 555/555 | 802/802 | 0.9044 | 150/158 |
| Raw | untyped | untyped | untyped | untyped | untyped | 0.8395 | untyped | |
| Grok | TSM | 1303/1303 | 1302/1302 | 1255/1255 | 404/404 | 631/631 | 0.7373 | 249/249 |
| Raw | untyped | untyped | untyped | untyped | untyped | 0.6982 | untyped | |
Note. Raw Retrieval has no native claim-level record; its required-role coverage is reconstructed from retained observations.
Table 11: RQ4 paired corrections and regressions with observable cost changes.
| Model | Case | Task | Outcome change | Resource change | |||
|---|---|---|---|---|---|---|---|
| Score Δ | Structured Δ | Boundary Δ | Tokens Δ | Latency Δ | |||
| DeepSeek | Structured fix | ug_23eba3fdf29f | +0.8500 | +1.0000 | +0.3333 | -10,953 | -4.31 |
| Regression | ug_72c901dcb068 | -0.8500 | -1.0000 | -0.3333 | +14,602 | +21.65 | |
| Grok | Scope fix | ug_42fdd9bc9fd7 | +0.9075 | +1.0000 | +0.4167 | +4,284 | +2.33 |
| Regression | ug_5b5a2f57011f | -0.9125 | -1.0000 | -0.4167 | +22,325 | +15.65 | |
Note. The artifact contains all eight selected categories and their observable traces; the table shows four representative pairs.
Table 12: RQ4 endpoint reliability diagnostics and resource use.
| Metric | DeepSeek | Grok | ||
|---|---|---|---|---|
| ReAct | TSM | ReAct | TSM | |
| Failures and answer diagnostics | ||||
| Complete | 377 | 380 | 398 | 388 |
| API | 1 | 0 | 2 | 10 |
| Max step | 9 | 10 | 0 | 0 |
| Malformed | 13 | 10 | 0 | 2 |
| Computation | 277 | 262 | 337 | 296 |
| Prov./scope | 89 | 83 | 81 | 84 |
| Boundary/alt. | 195 | 197 | 165 | 159 |
| Mean resources per task | ||||
| Tools | 5.64 | 5.91 | 4.70 | 5.18 |
| Retries | 0.005 | 0.005 | 0.250 | 0.292 |
| Input tokens | 51,828 | 44,906 | 31,938 | 32,271 |
| Output tokens | 5,701 | 6,068 | 1,091 | 1,273 |
| Total tokens | 57,529 | 50,974 | 33,028 | 33,543 |
| Latency (s) | 63.60 | 68.54 | 41.36 | 46.45 |
Note. Completed-answer error categories are non-exclusive. Resource values include all 400 tasks in each condition.
Table 13: Endpoint stability on the pre-frozen 40-task replication subset.
| Metric | DeepSeek | Grok |
|---|---|---|
| Main subset Δ | +0.0515[-0.0409, 0.1453] | +0.0517[-0.0631, 0.1663] |
| Replication Δ | +0.0615[-0.0200, 0.1452] | +0.1414[0.0363, 0.2497] |
| Rep.-main | +0.0100[-0.1084, 0.1304] | +0.0897[-0.0333, 0.2316] |
| Task-Δ r | 0.076 | 0.257 |
| MAE | 0.2688 | 0.2436 |
Note. Brackets report 95% CIs. Δ is TSM minus ReAct. Rep.-main compares the replication effect with the paired effect on the same 40-task main-run subset.