Metraipolis › archive › dc_777d1f60daa5

DualMine: Static-Dynamic REST API Constraint Discovery with Dual Validation — arXiv:2609.27806

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.27806
License (as archived)
CC0-1.0
Archived
2026-10-08T11:06:29.365Z
SHA-256 of the archived text
9a61f5e08f29013043f284dba686a34cdb18233db768893a29b901350d073448
Stable URL of this page
https://metraipolis.com/documento/dc_777d1f60daa5

How to cite

DualMine: Static-Dynamic REST API Constraint Discovery with Dual Validation — arXiv:2609.27806 — arXiv (en), https://arxiv.org/abs/2609.27806 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_777d1f60daa5 (Metraipolis archive dc_777d1f60daa5, sha256 9a61f5e08f29013043f284dba686a34cdb18233db768893a29b901350d073448)
BibTeX
@misc{dc777d1f60daa5,
  title = {DualMine: Static-Dynamic REST API Constraint Discovery with Dual Validation — arXiv:2609.27806},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.27806},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_777d1f60daa5; sha256 9a61f5e08f29013043f284dba686a34cdb18233db768893a29b901350d073448},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.27806. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

REST API constraints capture semantic properties of API responses and are essential for automated test oracle generation, but they are difficult to discover reliably. Static approaches infer constraints from API specifications and documentation, but their results may be affected by incomplete, ambiguous, or outdated specifications. Dynamic approaches mine invariants from execution traces, but their results depend on execution coverage and may include coincidental properties that hold only for the observed executions. This paper presents DualMine, a hybrid framework for REST API constraint discovery that integrates specification-based constraint mining with runtime invariant mining. It first extracts candidate constraints from OpenAPI specifications using an LLM-based static miner and from request-response traces using dynamic invariant mining. It then performs asymmetric dual validation: runtime evidence is used to validate or refute specification-derived constraints, while specification-aware LLM reasoning is used to filter implausible log-derived invariants~without discarding plausible undocumented behaviors. Finally, it applies counterexample-guided refinement by performing targeted API executions to resolve uncertain, overlapping, or conflicting constraints. We evaluate DualMine on 39 real-world REST APIs and compare it against state-of-the-art static-only, dynamic-only, and constraint discovery approaches. The results show that it improves the quality of discovered constraints by reducing unsupported constraints, retaining complementary constraints missed by individual approaches, which helps detect 48 real REST API faults.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-24 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2609.27806 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T10:13:35.116Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-24?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).