arXiv:2611.01145cs.AIOct 2026

Manuscript Offprint

arXiv:2611.01145

CivicBench: A Benchmark and Memory Framework for Web-Based Civic Data Analytics

Yangyu Wu, Siru Zhong, Haoyuan Liang, Yuxuan Liang

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†

yuxuanliang@hkust-gz.edu.cn

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

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.

References (29)