Offer Description
You will conduct research on the role of software testing in providing guardrails for AI coding agents. These agents generate and modify code with increasing autonomy. A key challenge is to ground the guardrails in requirements and stakeholder intent, which are clarified and communicated through developer conversations with agents. The research also addresses how to maintain human control when expectations are incomplete, ambiguous, or conflicting.
The primary goal is to guide and verify AI coding agents through two connected artifacts: human-readable behavior specifications and executable tests, both grounded in requirements and stakeholder intent. The specifications let stakeholders understand, discuss, and validate the intended behavior. The tests give deterministic, automated checks that AI-generated code and later modifications conform to that behavior and signal misalignment or drift.
Depending on the research questions developed during the project, the work may include:
- Investigating how intended behavior can be captured and refined from requirements, stakeholder input, developer-AI interactions, and development artifacts, and how gaps, ambiguities, and conflicts can be detected and resolved with humans in the loop.
- Developing and evaluating methods that connect human-readable behavior specifications with executable tests while keeping traceability to stakeholder intent.
- Exploring how specifications and tests can guide and verify agent-generated changes, and how they can be maintained as requirements and software evolve.
- Evaluating the effectiveness, reliability, and practicality of testing-based guardrails, with a focus on defect detection, stakeholder understanding, and support for human oversight.
The work combines method and tool development with empirical evaluation, including experiments and industrial case studies. Specific research questions, methods, and technical solutions will be developed together with the supervision team.
We are looking for a candidate with strong software engineering and programming skills and an interest in software testing and agentic software engineering.
The Ph.D. position is a part of the strategic research area in IT and mobile communication ELLIIT, which is a partnership between Linköping University, Lund University, Halmstad University, and Blekinge Institute of Technology.
Rules and benefits for Ph.D. students in Sweden apply to this position. The Ph.D. student will develop an individual study plan in software engineering together with his/her supervisors. The position may include up to 20% of other services, e.g., teaching at the undergraduate and graduate levels.
Where to apply
Requirements
Research Field: Computer science
Education Level: Master Degree or equivalent
Skills/Qualifications
In addition to the requirements described in the work description and the eligibility requirements for the position, the following degrees, competencies, and experiences are considered a merit:
- Master’s degree in software engineering, computer science, AI, or data science
- Documented programming and software development experience, for example in Python, and familiarity with version management and CI/CD tools
- Experience with generative AI in software development, such as LLM-based agents, code agents, or AI-assisted development tools
- Knowledge of or experience with software testing, including automated or specification-based testing and behavior-driven development, and with requirements engineering or traceability
- Experience with empirical research methods, such as experiments, case studies, or surveys, and with working with industry partners
- Proficiency in written and oral communication in English.
Additional Information
Benefits
As an employee at BTH, you are offered a comprehensive benefits package that promotes quality of life, health, and security both at work and in your private life. You can ready more about our benefits at our website: Benefits for employees | Blekinge Tekniska Högskola
Eligibility criteria
To be employed as a Ph.D. student, it is required that the applicant is or will be admitted to postgraduate education.
Eligible for admission to postgraduate education is a person who has completed a degree at an advanced level in a technical, mathematical, or scientific field or who has otherwise acquired knowledge to be able to benefit from postgraduate education in the subject.
Website for additional job details: https://www.bth.se/english/about-bth/work-at-bth
Work Location(s)
Number of offers available: 1
Company/Institute: Blekinge Institute of Technology
Country: Sweden
State/Province: Blekinge
City: Karlskrona
Postal Code: 37179
Street: Valhallavägen 1
Contact
State/Province: Blekinge
City: Karlskrona
Website: https://www.bth.se/eng/
Street: Valhallavägen 1
Postal Code: 37179
E-Mail: nauman.ali@bth.se

