Determinism over Prompts: When the Agent Ships ...

Determinism over Prompts: When the Agent Ships and Nobody Reviews | AI Coding Summit Berlin 2026

Ten files changed, pull request open, four minutes of work. The agent ships – but nobody reads what's being produced anymore. What happens to the domain logic when code stops being the artifact humans use to verify it? And why do teams get slower even as they produce code faster?

As a Microsoft MVP for Developer Tools, Daniel helps teams build agent-driven workflows – and shows the patterns where they consistently break down: architectures that erode under the flood of files, untested legacy code, requirements that end up in the prompt instead of in acceptance criteria. His antidote isn't a better prompt – it's determinism: acceptance criteria as executable BDD scenarios, TDD as a stopping condition, hooks that actually enforce the rules. Because "please test the code at the end" in your AGENTS.md isn't a quality gate – it's a request.

Daniel Sogl PRO

December 04, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

23 slides
  1. Determinism over Prompts When the agent ships and nobody reviews

    Daniel Sogl Head of AI Engineering · SHI GmbH · Microsoft MVP AI Summit Berlin 2026
  2. Daniel Sogl Head of AI Engineering · SHI GmbH ·

    Microsoft MVP Rolls out coding agents in dev teams From public agencies to a platform with 260 repos Never says “please” to an agent [email protected] daniel-sogl danielsogl
  3. // April 2026 · PocketOS 9s A routine staging task

    to delete production. Determinism over Prompts AI Summit Berlin · 2026 Finds a Railway API token Deletes prod and its backups 3 / 23
  4. // the agent, asked to explain itself // the agent's

    rules NEVER F***ING GUESS! “I violated every principle I was given: I guessed instead of verifying.” via Fast Company, Apr 2026 Determinism over Prompts AI Summit Berlin · 2026 4 / 23
  5. A prompt is a request 93% of permission prompts get

    accepted Anthropic, Mar 2026 By the 40th “Allow?” of the day, you click without reading. Determinism over Prompts AI Summit Berlin · 2026 5 / 23
  6. And now nobody reads the code 40 %+ +76 %

    of pull requests start with an agent's draft more PRs merged without any review GitHub Octoverse 2026 · Sept 2026 Faros AI · Sept 2026 Determinism over Prompts AI Summit Berlin · 2026 6 / 23
  7. Faster code, slower teams +34 % +441 % tasks per

    developer median time in review Faros AI · Apr 2026 · 22k devs same teams, low vs. high AI adoption Determinism over Prompts AI Summit Berlin · 2026 7 / 23
  8. // our running example Plausible code ✓ tsc ✓ eslint

    ✓ auth middleware ✓ test: returns 204 ✗ src/routes/bookings.ts app.delete('/bookings/:id', requireAuth, async (req, res) => { const booking = await bookings.get(req.params.id) if (!booking) return res.status(404).end() await bookings.remove(booking.id) audit.log(req.user.id, 'booking.deleted', booking.id) res.status(204).end() }) anyone can delete anyone's booking Determinism over Prompts AI Summit Berlin · 2026 8 / 23
  9. // CLAUDE.md · AGENTS.md · system prompt // hooks ·

    tests · CI A prompt asks. A gate enforces. probabilistic · most of the time deterministic · every time Determinism over Prompts AI Summit Berlin · 2026 9 / 23
  10. Four gates 01 02 03 04 In the agent loop

    Tests as the spec CI on main AI review LOCAL · SECONDS WRITTEN BY YOU NOBODY CAN SKIP IT SIGNAL ONLY Determinism over Prompts AI Summit Berlin · 2026 10 / 23
  11. 01 agent loop 02 tests 03 CI 04 AI review

    // the same rule as a gate // the same rule as a prompt .claude/settings.json "Stop": [{ "hooks": [{ CLAUDE.md "type": "command", Always run the typecheck and the tests before you finish. "command": "npm run -s check 1>&2 || exit 2" }] }] // "check": "tsc --noEmit && vitest run" every time Determinism over Prompts AI Summit Berlin · 2026 11 / 23
  12. 01 agent loop // gate 01 02 tests 03 CI

    04 AI review The exit code decides 0 passes 2 blocks 1 “error” the action runs stderr goes back to the agent logged, and the action runs anyway Determinism over Prompts AI Summit Berlin · 2026 12 / 23
  13. 01 agent loop // gate 02 02 tests 03 CI

    04 AI review Tests are the spec 01 You write the scenario 02 Commit it 03 The agent makes it green features/delete-booking.feature Scenario: Only the owner can delete a booking Given Alice owns booking 42 When Bob deletes booking 42 Then he gets 403 Forbidden Determinism over Prompts AI Summit Berlin · 2026 13 / 23
  14. 01 agent loop // gate 02 02 tests 03 CI

    04 AI review Lock the spec .claude/hooks/protect-tests.ts · PreToolUse on Edit|Write const { file_path } = JSON.parse(await text(process.stdin)).tool_input if (isSpecFile(file_path ?? '')) { console.error(`${file_path} is the spec. Fix the code, not the test.`) process.exit(2) // exit 1 would let the edit through } Determinism over Prompts AI Summit Berlin · 2026 14 / 23
  15. 01 agent loop 02 tests 03 CI 04 AI review

    // gate 03 What gets around them 01 sed -i via Bash 02 --no-verify 03 Cloud agents The real gate is CI 01 Branch protection on main 02 Required checks 03 CODEOWNERS tests/ and .claude/ need a human Determinism over Prompts AI Summit Berlin · 2026 15 / 23
  16. 01 agent loop 02 tests 03 CI 04 AI review

    // checked by a model // checked by CI spec.md + a model judges .feature + CI runs it Spec Kit · OpenSpec · Entire Trails Cucumber · playwright-bdd · vitest a signal a gate Determinism over Prompts AI Summit Berlin · 2026 16 / 23
  17. 01 agent loop 02 tests 03 CI 04 AI review

    // gate 03 · managed settings /etc/claude-code/managed-settings.json { "allowManagedHooksOnly": true, "requiredMinimumVersion": "2.1.295", "permissions": { "disableBypassPermissionsMode": "disable" }, "hooks": { "Stop": [ /* your gate */ ] } If the gate lives in the repo, the agent can edit the gate. } Determinism over Prompts AI Summit Berlin · 2026 17 / 23
  18. 01 agent loop 02 tests 03 CI 04 AI review

    Model A writes // gate 04 Treat AI review as a signal Model B reviews CI decides other family required checks A human merges Determinism over Prompts AI Summit Berlin · 2026 18 / 23
  19. // replay: src/routes/bookings.ts Who catches the booking bug? A rule

    in CLAUDE.md maybe Linter, typecheck no Your scenario + Stop hook yes Agent rewrites the scenario blocked Agent PR without the hook blocked Cross-model AI review maybe Determinism over Prompts AI Summit Berlin · 2026 19 / 23
  20. // beyond tests Same pattern, other rules Architecture erodes Legacy

    without tests Requirements in the prompt Determinism over Prompts AI Summit Berlin · 2026 Dependency rules in CI dependency-cruiser · ArchUnit Characterization tests first pin today's behaviour Scenarios in the repo Given / When / Then 20 / 23
  21. 01 Add a Stop hook typecheck + tests 02 Move

    one “always do X” into a hook 03 Lock the spec // take this home Monday morning PreToolUse on tests/ · CODEOWNERS 04 Required checks, no auto-merge 05 Review with another model family comments only, CI still decides Determinism over Prompts AI Summit Berlin · 2026 21 / 23
  22. // the Claude Code team at Anthropic “You land it,

    you own it.” “How the Claude Code team does code review”, Oct 2026 Determinism over Prompts AI Summit Berlin · 2026 22 / 23
  23. Thank you! A prompt asks. A gate enforces. Daniel Sogl

    Head of AI Engineering · SHI GmbH · Microsoft MVP [email protected] linkedin.com/in/daniel-sogl slides · contact SHI GmbH Konrad-Adenauer-Allee 15 86150 Augsburg shi-gmbh.com

More Decks by Daniel Sogl

Other Decks in Programming