{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,5]],"date-time":"2026-09-05T06:55:20Z","timestamp":1788591320806,"version":"build-2803163510"},"reference-count":42,"publisher":"Association for Computing Machinery (ACM)","issue":"9","license":[{"start":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T00:00:00Z","timestamp":1787270400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/legalcode"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2026,9,30]]},"abstract":"<jats:p>\n                    <jats:italic toggle=\"yes\">Background.<\/jats:italic>\n                    As Large Language Models (LLMs)\u00a0become a routine \u2018interaction layer\u2019 inside Software Engineering (SE) toolchains, teams increasingly rely on prompts, retrieval scope and lightweight checks to steer behaviour without access to model internals, while still needing accountability, reproducibility, and cost awareness across the Software Development Lifecycle (SDLC).\n                  <\/jats:p>\n                  <jats:p>\n                    <jats:italic toggle=\"yes\">Motivating Scenario<\/jats:italic>\n                    . Consider an organization where multiple LLM-backed tools are invoked throughout development (requirements critique, design reviews, code review, testing, maintenance) across heterogeneous repositories, evolving policies, and sometimes different jurisdictions. In such a setting, the practical governance problem is not a single task prompt, but the need to make interaction-time controls reviewable and replayable: what policy and context were bound at invocation, what sources were retrievable, what checks ran, what tradeoffs were accepted, and what evidence supports the output.\n                  <\/jats:p>\n                  <jats:p>\n                    <jats:italic toggle=\"yes\">Aim and Scope<\/jats:italic>\n                    . This article proposes an evidence-informed roadmap to 2030 for Ethical Prompt Engineering (EPE), scoped strictly to interaction-time. It frames prompts, policy\/context bindings, retrieval scope, and checks as versioned, auditable artefacts integrated into existing SE workflows, while making explicit what EPE cannot guarantee and when escalation beyond the prompt layer is required.\n                  <\/jats:p>\n                  <jats:p>\n                    <jats:italic toggle=\"yes\">Method<\/jats:italic>\n                    . Adopting a design-science stance, the roadmap is built via a focused rapid review that consolidates convergent evidence from prompting surveys, LLM-for-SE syntheses, and governance-oriented sources, extending the authors\u2019 earlier SE2030 workshop version with broader evidence and a capability-oriented synthesis plus reporting guidance.\n                  <\/jats:p>\n                  <jats:p>\n                    <jats:italic toggle=\"yes\">Results and Contributions<\/jats:italic>\n                    . The roadmap delivers: (i) a challenge map centered on policy\/context binding, provenance for review, robustness and transfer across models and repositories, sustainability of safeguards and human oversight; (ii) harmonized evaluation constructs and a reporting kit that co-reports utility with ethical compliance, robustness to prompt perturbations, traceability from constraints to output spans\/tool calls and sustainability overhead with full configuration disclosure and (iii) a reference capability model that groups policy\/context handling, prompt planning\/patterning, provenance\/audit and evaluation\/reporting, mapped across SDLC activities and distilled into actionable agenda cards to 2030.\n                  <\/jats:p>\n                  <jats:p>\n                    <jats:italic toggle=\"yes\">Boundaries and implications<\/jats:italic>\n                    . Within its remit, EPE can constrain outputs, scope retrieval to vetted artefacts, require citations and capture provenance; it cannot remove entrenched representational harms or unintended memorization, so the roadmap treats escalation to model\/data or organizational governance as a first-class requirement, alongside risk-based and cost\/energy-transparent adoption.\n                  <\/jats:p>","DOI":"10.1145\/3801980","type":"journal-article","created":{"date-parts":[[2026,3,26]],"date-time":"2026-03-26T13:51:13Z","timestamp":1774533073000},"page":"1-45","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Ethical Prompt Engineering for AI-driven SE: Evidence-informed Interaction-time Governance Roadmap to\u00a02030"],"prefix":"10.1145","volume":"35","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-7824-529X","authenticated-orcid":false,"given":"Patrizio","family":"Migliarini","sequence":"first","affiliation":[{"name":"DISIM, University of L\u2019Aquila (UNIVAQ), L\u2019Aquila,\u00a0Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5951-1567","authenticated-orcid":false,"given":"Marco","family":"Autili","sequence":"additional","affiliation":[{"name":"DISIM, University of L\u2019Aquila (UNIVAQ), L\u2019Aquila,\u00a0Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6734-1318","authenticated-orcid":false,"given":"Paola","family":"Inverardi","sequence":"additional","affiliation":[{"name":"Gran Sasso Science Institute (GSSI), L\u2019Aquila,\u00a0Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5438-2281","authenticated-orcid":false,"given":"Patrizio","family":"Pelliccione","sequence":"additional","affiliation":[{"name":"Gran Sasso Science Institute (GSSI), L\u2019Aquila,\u00a0Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,8,21]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2025.112531"},{"key":"e_1_3_1_3_2","first-page":"1 8","volume-title":"Proceedings of the 38th AAAI Conference on Artificial Intelligence and 36th Conference on Innovative Applications of Artificial Intelligence and Fourteenth Symposium on Educational Advances in Artificial Intelligence (AAAI \u201924\/IAAI \u201924\/EAAI \u201924)","author":"Ali Safinah","year":"2024","unstructured":"Safinah Ali, Prerna Ravi, Katherine Moore, Hal Abelson, and Cynthia Breazeal. 2024. A picture is worth a thousand words: Co-designing text-to-image generation learning materials for K-12 with educators. In Proceedings of the 38th AAAI Conference on Artificial Intelligence and 36th Conference on Innovative Applications of Artificial Intelligence and Fourteenth Symposium on Educational Advances in Artificial Intelligence (AAAI \u201924\/IAAI \u201924\/EAAI \u201924). AAAI Press, 1\u20138. DOI: 10.1609\/aaai.v38i21.30373"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","DOI":"10.1145\/3712006"},{"key":"e_1_3_1_5_2","first-page":"293","volume-title":"Proceedings of the 28th International Conference on Evaluation and Assessment in Software Engineering (EASE \u201924)","author":"Baldassarre Maria Teresa","year":"2024","unstructured":"Maria Teresa Baldassarre, Domenico Gigante, Marcos Kalinowski, Azzurra Ragone, and Sara Tibid\u00f2. 2024. Trustworthy AI in practice: An analysis of practitioners\u2019 needs and challenges. In Proceedings of the 28th International Conference on Evaluation and Assessment in Software Engineering (EASE \u201924). ACM, 293\u2013302. DOI: 10.1145\/3661167.3661214"},{"key":"e_1_3_1_6_2","first-page":"1","volume-title":"Proceedings of the 38th AAAI Conference on Artificial Intelligence","author":"Besta Maciej","year":"2024","unstructured":"Maciej Besta, Nils Blach, Ales Kubicek, Robert Gerstenberger, Micha\u0142 Podstawski, Lukas Gianinazzi, Joanna Gajda, Tomasz Lehmann, Hubert Niewiadomski, Piotr Nyczyk, et al. 2024. Graph of thoughts: Solving elaborate problems with large language models. In Proceedings of the 38th AAAI Conference on Artificial Intelligence. AAAI Press, 1\u20139. DOI: 10.1609\/aaai.v38i16.29720"},{"key":"e_1_3_1_7_2","first-page":"24","volume-title":"Proceedings of the 22nd International Conference on Evaluation and Assessment in Software Engineering 2018 (EASE \u201918)","author":"Cartaxo Bruno","year":"2018","unstructured":"Bruno Cartaxo, Gustavo Pinto, and Sergio Soares. 2018. The role of rapid reviews in supporting decision-making in software engineering practice. In Proceedings of the 22nd International Conference on Evaluation and Assessment in Software Engineering 2018 (EASE \u201918). ACM, New York, NY, 24\u201334. DOI: 10.1145\/3210459.3210462"},{"key":"e_1_3_1_8_2","doi-asserted-by":"crossref","first-page":"2778","DOI":"10.1145\/3485447.3511998","volume-title":"Proceedings of the ACM Web Conference 2022 (WWW \u201922)","author":"Chen Xiang","year":"2022","unstructured":"Xiang Chen, Ningyu Zhang, Xin Xie, Shumin Deng, Yunzhi Yao, Chuanqi Tan, Fei Huang, Luo Si, and Huajun Chen. 2022. KnowPrompt: Knowledge-aware prompt-tuning with synergistic optimization for relation extraction. In Proceedings of the ACM Web Conference 2022 (WWW \u201922). ACM, New York, NY, 2778\u20132788. DOI: 10.1145\/3485447.3511998"},{"key":"e_1_3_1_9_2","doi-asserted-by":"crossref","first-page":"47","DOI":"10.1109\/MODELS58315.2023.00020","volume-title":"Proceedings of the 2023 ACM\/IEEE 26th International Conference on Model Driven Engineering Languages and Systems (MODELS)","author":"Claris\u00f3 Robert","year":"2023","unstructured":"Robert Claris\u00f3 and Jordi Cabot. 2023. Model-driven prompt engineering. In Proceedings of the 2023 ACM\/IEEE 26th International Conference on Model Driven Engineering Languages and Systems (MODELS), 47\u201354. DOI: 10.1109\/MODELS58315.2023.00020"},{"key":"e_1_3_1_10_2","volume-title":"Proceedings of the 38th AAAI Conference on Artificial Intelligence and IAAI\/EAAI","author":"Cohn Clayton","year":"2024","unstructured":"Clayton Cohn, Nicole Hutchins, Tuan Le, and Gautam Biswas. 2024. A chain-of-thought prompting approach with LLMs for evaluating students\u2019 formative assessment responses in science. In Proceedings of the 38th AAAI Conference on Artificial Intelligence and IAAI\/EAAI. DOI: 10.1609\/aaai.v38i21.30364"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","DOI":"10.1145\/3709357"},{"key":"e_1_3_1_12_2","doi-asserted-by":"crossref","first-page":"112548","DOI":"10.1016\/j.jss.2025.112548","article-title":"Analyzing the dependability of large language models for code clone generation","volume":"230","author":"Eagal Abhijith","year":"2025","unstructured":"Abhijith Eagal, Kathryn T. Stolee, and John-Paul Ore. 2025. Analyzing the dependability of large language models for code clone generation. Journal of Systems and Software 230 (2025), 112548.","journal-title":"Journal of Systems and Software"},{"key":"e_1_3_1_13_2","unstructured":"European Parliamentary Research Service. 2021. The European Union\u2019s Artificial Intelligence Act: A Brief Overview. Retrieved February 24 2025 from https:\/\/www.europarl.europa.eu\/RegData\/etudes\/BRIE\/2021\/698792\/EPRS_BRI(2021)698792_EN.pdf"},{"key":"e_1_3_1_14_2","first-page":"1 13","volume-title":"Proceedings of the IEEE\/ACM 46th International Conference on Software Engineering (ICSE \u201924)","author":"Feng Sidong","year":"2024","unstructured":"Sidong Feng and Chunyang Chen. 2024. Prompting is all you need: Automated android bug replay with large language models. In Proceedings of the IEEE\/ACM 46th International Conference on Software Engineering (ICSE \u201924). ACM, New York, NY, 1\u201313. DOI: 10.1145\/3597503.3608137"},{"key":"e_1_3_1_15_2","doi-asserted-by":"crossref","unstructured":"Haoyu Gao Mansooreh Zahedi Christoph Treude Sarita Rosenstock and Marc Cheong. 2024. Documenting ethical considerations in open source AI models. arXiv:2406.18071. Retrieved from https:\/\/arxiv.org\/abs\/2406.18071","DOI":"10.1145\/3674805.3686679"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3695988"},{"key":"e_1_3_1_17_2","first-page":"1","volume-title":"Proceedings of the 38th AAAI Conference on Artificial Intelligence (AAAI \u201924\/IAAI \u201924\/EAAI \u201924)","author":"Kirk James R.","year":"2024","unstructured":"James R. Kirk, Robert E. Wray, Peter Lindes, and John E. Laird. 2024. Improving knowledge extraction from LLMs for task learning through agent analysis. In Proceedings of the 38th AAAI Conference on Artificial Intelligence (AAAI \u201924\/IAAI \u201924\/EAAI \u201924). AAAI Press, 1\u20139. DOI: 10.1609\/aaai.v38i16.29799"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/3560815"},{"key":"e_1_3_1_19_2","first-page":"1","volume-title":"Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems (CHI \u201922)","author":"Liu Vivian","year":"2022","unstructured":"Vivian Liu and Lydia B. Chilton. 2022. Design guidelines for prompt engineering text-to-image generative models. In Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems (CHI \u201922). ACM, New York, NY, 1\u201323. DOI: 10.1145\/3491102.3501825"},{"key":"e_1_3_1_20_2","first-page":"364","volume-title":"Proceedings of the 2024 IEEE\/ACM 46th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion \u201924)","author":"Liu Yilun","year":"2024","unstructured":"Yilun Liu, Shimin Tao, Weibin Meng, Feiyu Yao, Jingchao Ni, and Yuxin Su. 2024. LogPrompt: Prompt engineering towards zero-shot and interpretable log analysis. In Proceedings of the 2024 IEEE\/ACM 46th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion \u201924). ACM, New York, NY, 364\u2013365. DOI: 10.1145\/3639478.3643108"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1145\/3722554"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","DOI":"10.1145\/3696117.3696126"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/3731559"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2024.107523"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10515-024-00485-2"},{"key":"e_1_3_1_26_2","unstructured":"Jeba Rezwana and Mary Lou Maher. 2022. Identifying ethical issues in AI partners in human-AI co-creation. arXiv:2204.07644. Retrieved from https:\/\/arxiv.org\/abs\/2204.07644"},{"key":"e_1_3_1_27_2","first-page":"455","volume-title":"Proceedings of the 2023 IEEE 31st International Requirements Engineering Conference Workshops (REW)","author":"Rodriguez Alberto D.","year":"2023","unstructured":"Alberto D. Rodriguez, Katherine R. Dearstyne, and Jane Cleland-Huang. 2023. Prompts matter: Insights and strategies for prompt engineering in automated software traceability. In Proceedings of the 2023 IEEE 31st International Requirements Engineering Conference Workshops (REW). IEEE Computer Society, Los Alamitos, CA, USA, 455\u2013464. DOI: 10.1109\/REW57809.2023.00087"},{"key":"e_1_3_1_28_2","first-page":"670","volume-title":"Proceedings of the 2024 IEEE 48th Annual Computers, Software, and Applications Conference (COMPSAC)","author":"Sasaki Yuya","year":"2024","unstructured":"Yuya Sasaki, Hironori Washizaki, Jialong Li, Dominik Sander, Nobukazu Yoshioka, and Yoshiaki Fukazawa. 2024. Systematic literature review of prompt engineering patterns in software engineering. In Proceedings of the 2024 IEEE 48th Annual Computers, Software, and Applications Conference (COMPSAC), 670\u2013675. DOI: 10.1109\/COMPSAC61105.2024.00096"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.1145\/3708525"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","DOI":"10.1109\/MS.2024.3469488"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.1145\/3715003"},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2024.3368208"},{"key":"e_1_3_1_33_2","first-page":"1","volume-title":"Proceedings of the 36th International Conference on Neural Information Processing Systems (NeurIPS \u201922)","author":"Wei Jason","year":"2022","unstructured":"Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed. H. Chi, Quoc V. Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Proceedings of the 36th International Conference on Neural Information Processing Systems (NeurIPS \u201922). Curran Associates Inc., 1\u201314."},{"key":"e_1_3_1_34_2","unstructured":"Laura Weidinger John Mellor Maribeth Rauh Conor Griffin Jonathan Uesato Po-Sen Huang Myra Cheng Mia Glaese Borja Balle Atoosa Kasirzadeh et al. 2021. Ethical and social risks of harm from language models. arXiv2112.04359. Retrieved from https:\/\/arxiv.org\/abs\/2112.04359"},{"key":"e_1_3_1_35_2","volume-title":"Proceedings of the 4th International Conference on Design Science Research in Information Systems and Technology","author":"Wieringa Roel","year":"2009","unstructured":"Roel Wieringa. 2009. Design science as nested problem solving. In Proceedings of the 4th International Conference on Design Science Research in Information Systems and Technology."},{"key":"e_1_3_1_36_2","first-page":"1","volume-title":"Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems (CHI \u201922)","author":"Wu Tongshuang","year":"2022","unstructured":"Tongshuang Wu, Michael Terry, and Carrie Jun Cai. 2022. AI chains: Transparent and controllable Human-AI interaction by chaining large language model prompts. In Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems (CHI \u201922). ACM, New York, NY, 1\u201322. DOI: 10.1145\/3491102.3517582"},{"key":"e_1_3_1_37_2","first-page":"1665","volume-title":"Proceedings of the IEEE\/ACM 47th International Conference on Software Engineering (ICSE \u201925)","author":"Xu Weiwei","year":"2025","unstructured":"Weiwei Xu, Kai Gao, Hao He, and Minghui Zhou. 2025. LiCoEval: Evaluating LLMs on license compliance in code generation. In Proceedings of the IEEE\/ACM 47th International Conference on Software Engineering (ICSE \u201925). IEEE, 1665\u20131667. DOI: 10.1109\/ICSE55347.2025.00052"},{"key":"e_1_3_1_38_2","doi-asserted-by":"crossref","first-page":"112234","DOI":"10.1016\/j.jss.2024.112234","article-title":"DLAP: A deep learning augmented large language model prompting framework for software vulnerability detection","volume":"225","author":"Yang Yanjing","year":"2025","unstructured":"Yanjing Yang, Xin Zhou, Runfeng Mao, Jinwei Xu, Lanxin Yang, Yu Zhang, Haifeng Shen, and He Zhang. 2025. DLAP: A deep learning augmented large language model prompting framework for software vulnerability detection. Journal of Systems and Software 225 (2025), 112234. Retrieved from https:\/\/www.sciencedirect.com\/science\/article\/abs\/pii\/S0164121224002784","journal-title":"Journal of Systems and Software"},{"key":"e_1_3_1_39_2","first-page":"355","volume-title":"Proceedings of the Findings of the Association for Computational Linguistics (ACL \u201924)","author":"Ye Qinyuan","year":"2024","unstructured":"Qinyuan Ye, Mohamed Ahmed, Reid Pryzant, and Fereshte Khani. 2024. Prompt engineering a prompt engineer. In Proceedings of the Findings of the Association for Computational Linguistics (ACL \u201924). Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.), Association for Computational Linguistics, 355\u2013385. DOI: 10.18653\/v1\/2024.findings-acl.21"},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2024.112149"},{"key":"e_1_3_1_41_2","first-page":"1","volume-title":"Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems (CHI \u201923)","author":"Zamfirescu-Pereira J. D.","year":"2023","unstructured":"J. D. Zamfirescu-Pereira, Richmond Y. Wong, Bjoern Hartmann, and Qian Yang. 2023. Why Johnny can\u2019t prompt: How non-AI experts try (and fail) to design LLM prompts. In Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems (CHI \u201923). ACM, New York, NY, 1\u201321. DOI: 10.1145\/3544548.3581388"},{"key":"e_1_3_1_42_2","first-page":"1","volume-title":"Proceedings of the 38th AAAI Conference on Artificial Intelligence","author":"Zhang Chenrui","year":"2024","unstructured":"Chenrui Zhang, Lin Liu, Chuyuan Wang, Xiao Sun, Hongyu Wang, Jinpeng Wang, and Mingchen Cai. 2024. PREFER: Prompt ensemble learning via feedback-reflect-refine. In Proceedings of the 38th AAAI Conference on Artificial Intelligence. AAAI Press, 1\u20138. DOI: 10.1609\/aaai.v38i17.29924"},{"key":"e_1_3_1_43_2","unstructured":"Yongchao Zhou Andrei Ioan Muresanu Ziwen Han Keiran Paster Silviu Pitis Harris Chan and Jimmy Ba. 2023. Large language models are human-level prompt engineers. arXiv:2211.01910. Retrieved from https:\/\/arxiv.org\/abs\/2211.01910"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3801980","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T16:27:02Z","timestamp":1787329622000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3801980"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,8,21]]},"references-count":42,"journal-issue":{"issue":"9","published-print":{"date-parts":[[2026,9,30]]}},"alternative-id":["10.1145\/3801980"],"URL":"https:\/\/doi.org\/10.1145\/3801980","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"value":"1049-331X","type":"print"},{"value":"1557-7392","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,8,21]]},"assertion":[{"value":"2025-10-07","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-02-26","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-08-21","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}