agenticlately · GH-600 Study Prep
Home Phase A Lesson 1.5
PHASE A · LESSON 1.5

Anti-patterns + traceability

Two halves of one skill: knowing the recognizable ways agent work goes wrong — and building the trail that lets you prove what happened when it does. This is the densest lesson in Domain 1, and the most heavily tested.

~11 minread 4quiz questions Tier 1source cited
Story

Same build site from lesson 1.3 — but this time, meet the corner-cutting contractor. You hired them to fix a leaking pipe. Here's how the job goes wrong, four ways:

  • They start knocking out drywall before showing you any plan — you don't know what they intend until the wall's already open. (Planless execution.)
  • They've got a master key to the whole building — electrical room, the safe — when they needed one bathroom. (Over-permissioned.)
  • They work behind a tarp. You get a finished wall but no idea what pipe they used or why. (Hidden reasoning.)
  • The lights still turn on, so you assume it's fine — never mind the new pipe is the wrong gauge and bursts next winter. (Blind trust — "CI passed, ship it.")

Six months later the ceiling leaks. Now you need the site logbook: permits, inspection sign-offs, photos, who approved what and when. If it ties every action to a date and a person, you can reconstruct what happened and fix it. If it doesn't — you're tearing open walls and guessing.

That logbook is traceability. Agent work needs the same: a trail, not just a finished diff. And one rule never changes — the contractor did the work, but you are still accountable for the building.

Part 1 · The four anti-patterns (and their fixes)

An agent with capability but no architecture acts too early, makes opaque changes, or skips validation — real risks to code quality, security, and stability. The module names four. Learn each as risk → what it looks like → fix:

Anti-patternWhat it looks likeFix (enforcement, not hope)
Planless executionPR has a diff but no plan or rationaleRequire a plan section via PR template; review before merge
Over-permissionedToken/tools write broadly, access secretsLeast-privilege GITHUB_TOKEN (a temporary key that lets a workflow act on the repo); environment reviewers; restrict triggers
Hidden reasoningOnly the diff is visible — no assumptions, scope, decisionsRequire a plan; link workflow runs; record decisions in PR comments
Blind trust"CI passed, ship it"Checks + CODEOWNERS + required reviews + risk-based approvals

A few more the exam folds in here:

The single most important rule: guidance vs enforcement

"Tell the agent to be careful" is not a control

Natural-language instructions ("don't touch production") are guidance — easily ignored. Only technical gates — tool allowlists, least-privilege permissions, required reviews, rulesets/branch protection, hooks — are enforcement. Treat "instructions not to edit" as guidance; treat tool allowlists and gates as enforcement.

Part 2 · Traceability — proving what happened

Supervising an agent well takes more than a final diff — it takes a trail. The point isn't box-ticking compliance; it's operational understanding: when something fails, you need to know what changed, who approved it, what evidence existed, and what happened next.

Minimum audit trail — six elements (memorize)
  1. Goal — stated intent (issue link or PR description)
  2. Plan — an inspectable plan (PR section or file)
  3. Changeset — a bounded set of branch + commits
  4. Evidence — automated: workflow runs and uploaded artifacts
  5. Human judgment — review and approval
  6. Outcome — a clear result: merge, revert, or escalation

Where the evidence lives — GitHub-native artifacts, not the agent's private logs or an external doc:

Two practical rules: put an "Evidence" section in the PR linking runs and artifacts; and make every piece of evidence traceable to a specific workflow run and commit — so an audit can answer "what code state produced this?"

The regression test of a good trail

An agent's vulnerability fix passes CI but causes a regression (a change that secretly breaks something that used to work) weeks later. A sufficient trail lets you answer: Was there a visible plan and scope? Were the right reviewers requested and did they approve? Did the checks match the risk? Can you reconstruct what happened? If yes, the system made the mistake understandable and preventable — that's the goal.

And the line that ties back to 1.3: agents change who performs the work, never who owns the outcome. Accountability stays with the humans who defined the task, set permissions, chose the controls, and approved the change.

The layered control model (how it all fits)

The study guide's synthesis — verified against the official control-plane list — is a ladder from soft to hard:

LayerRoleStrength
Instructionsguide model behavioursoft — guidance only
Tool listslimit capabilitiesenforces what the agent can do
Hooksintercept behaviourenforce at tool-call time
Workflowsvalidate behaviourobjective checks
Rulesets / branch protectionenforce repo policyhard gate on merge
Audit logsrecord accountabilityafter-the-fact trail
Two cautions the exam likes

None of these are on by default — enabling required checks, rulesets, and branch protection is an admin task. The supervision model applies everywhere, but enforcement only happens when controls are turned on. And an agent's real power ≈ what its workflow token and tool credentials can do — so set default GITHUB_TOKEN to read-only and grant more only to the jobs that need it.

The cert-language version

Agent architectures fail through recognizable anti-patterns: planless execution, over-permissioned agents, hidden reasoning, blind trust in automation, mixed planning/execution with no inspectable plan, and unrestricted SDLC access. The fixes are enforcement, not instruction — least-privilege tokens/tools, required reviews, CODEOWNERS, rulesets/branch protection, gates; "tell the agent to be careful" is not a control. Traceability demands a full trail — goal, plan, bounded changeset, automated evidence, human review, outcome — stored in GitHub-native artifacts and traceable to a specific run and commit. Agents change who does the work, never who is accountable.

Our summary · grounded in MS Learn — Foundations of Agentic AI (units 4–5) + Designing Agent Architecture & SDLC Integration (units 2–5, 7) · fetched 2026-05-31

Common confusions (read these or lose points)

Ticks this lesson done on the home roadmap. Saved in this browser.

Quiz · Lock it in

0 / 0 answered
Q1 · multiple choice

Which is an architectural anti-pattern in agent design?

Answer · C. Mixing planning and execution with no inspectable plan removes human oversight and auditability — reviewers see only the final diff and can't validate intent before impact. A, B, and D are all good practices, not anti-patterns.
Q2 · multiple choice

A team adds a comment telling the agent "never edit infra/." Why is that not a real control?

Answer · B. "Tell the agent to be careful" is not a control. Natural-language instructions guide behaviour but can be ignored. Enforcement comes from technical gates: least-privilege tools/permissions so it can't write there, CODEOWNERS on infra/, and rulesets/branch protection.
Q3 · multiple choice

Which scenario is an example of hidden reasoning?

Answer · D. Hidden reasoning = only the output (the diff) is visible, with no plan, assumptions, decision points, or execution context. The fix is to require a plan, link the workflow runs, and record decisions in PR comments.
Q4 · explain back

In your own words: name the four anti-patterns with one fix each, then list the six elements of a minimum audit trail and say where the evidence should live.

Suggested answer

Anti-patterns → fixes: Planless execution → require a plan via PR template + review. Over-permissioned → least-privilege GITHUB_TOKEN, environment reviewers, restrict triggers. Hidden reasoning → require a plan, link workflow runs, record decisions in PR comments. Blind trust in automation → CODEOWNERS + required reviews + risk-based approvals on top of CI (CI only checks what it was built to detect).

Minimum audit trail (six): goal, plan, bounded changeset, automated evidence, human review, outcome. Evidence lives in GitHub-native artifacts — PR timeline, workflow runs, uploaded artifacts, checks, scan alerts, audit log — each traceable to a specific run and commit, not in the agent's private logs. And remember: agents change who does the work, never who's accountable.


  
Source · MS Learn — Foundations of Agentic AI + Designing Agent Architecture & SDLC Integration · fetched 2026-05-31

Unofficial study material. Not affiliated with, endorsed by, or sponsored by GitHub or Microsoft. “GH-600” and “GitHub” are trademarks of their respective owners, used for identification only.