Skip to Content
SoftwareSoftware
  • Article
  • Open Access

29 November 2026

43 Pages

SocialRbSC Language for Social Agents and Role Identity Development with Smart Contract Technology

and
Software Technology Group, Technische Universität Dresden, Nöthnitzer Straße 46, 01187 Dresden, Germany
*
Authors to whom correspondence should be addressed.
†
These authors contributed equally to this work.

Abstract

Research on role-based modeling and agent-oriented programming has approached core concepts such as roles, contexts, agents, and agent types from several partially reconciled traditions: object-oriented role modeling (Object Teams, the Role Object pattern, powerJava, SCROLL), the OMG/MDA modeling tradition, and role-based collaboration. No single universally accepted definition has emerged. This paper addresses that situation by introducing SocialRbSC, a language and framework for specifying social agents, role-based coordination, and reasoning-oriented smart-contract behavior. SocialRbSC enables dynamic behavior adaptation through explicit role modeling, role-player bindings, and reasoning constructs such as beliefs, intentions, and goal–plan trees. Collaborative actions in changing environments can be represented through smart contracts that enforce role constraints and behavioral rules over shared blockchain state. The paper provides a precise language specification including its metamodel, concrete syntax grammar, well-formedness constraints, and the mapping from language constructs to generated Solidity smart-contract artifacts. Because implementing the BDI machinery directly as Solidity contracts is a deliberate and cost-bearing design decision, the paper also gives an operational semantics for beliefs, intentions, goal–plan trees, and the deliberation cycle, fixes the environment interface through which external information enters the belief base, states correctness properties for the construct-to-Solidity mapping, and reports a static-analysis-based security assessment of the generated artifacts. The runtime architecture is fully on-chain: roles, compartments, and the BDI reasoning machinery (beliefs, intentions, goal–plan trees, and the deliberation cycle) are implemented as Solidity contracts, while the Java annotation DSL and its code generator form the off-chain modeling and generation toolchain. The main contributions are: (1) a precisely specified language model for social agents, roles, and compartments, (2) an integration of role-based modeling with smart-contract programming, (3) a code-generation pipeline with compilable generated artifacts and stated correctness properties, (4) a reproducible gas-cost evaluation with absolute measurements, scaling experiments across agents, roles, and goal–plan-tree sizes, and a static-analysis-based security assessment of the access-control-hardened reference implementation, and (5) a publicly available software repository. The resulting approach provides a transparent, traceable, and tamper-resistant structure for context-aware social coordination on blockchain platforms.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.