D4.8 · Prompt Engineering20% of CCA-F8 min read

4D Framework.

Delegation, Description, Discernment, Diligence, Anthropic's 4D framework for agent prompt design. A full deep-dive guide is coming soon.

Mental modelDelegation, Description, Discernment, Diligence, Anthropic's 4D framework for agent prompt design.
4D Framework, hero illustration featuring Loop mascot in a warm gallery scene.
Share
On this page
01 · Summary

TLDR

Delegation, Description, Discernment, Diligence, Anthropic's 4D framework for agent prompt design. A full deep-dive guide is coming soon.

4
Pillars
D4
Exam domain
C
Coverage tier
stub
Status
research
Action
02 · Definition

What it is

The 4D Framework is Anthropic's pedagogical model for AI fluency, taught in Claude Certifications and operationalized in prompt design. The four dimensions are Delegation, Description, Discernment, Diligence, each addressing a phase of the human-AI collaboration lifecycle. Not a technical architecture; a mental model for how to interact with AI responsibly and effectively. Every exam question on prompt design tests whether you recognize which D is missing.

Delegation is the decision of what work the human should do vs the AI. Example: "Should I research ten competitors myself or ask Claude?" Informed by platform awareness (Claude's strengths like synthesis, weakness like real-time data) and task awareness (what work benefits from AI). Poor delegation: asking Claude to verify legal text (wrong; humans must validate). Right: asking Claude to draft for human review.

Description is how you communicate the delegated task. Three sub-dimensions: Product (desired format), Process (step-by-step instructions), Performance (the tone/style/role). "Summarize" (vague) vs "3-sentence summary in bullets, non-technical audience, friendly advisor voice" (Description done right). Techniques: few-shot examples, explicit constraints, chain-of-thought prompting.

Discernment is the human's quality-control lens. LLMs are not infallible. Three sub-dimensions: Product Discernment (accurate?), Process Discernment (logical reasoning?), Performance Discernment (effective tone?). Loop: evaluate, refine Description, re-prompt. Diligence is responsible use: choosing the right model, transparency about AI's role, verifying before shipping.

03 · Mechanics

How it works

The four Ds operate in sequence but as a cycle. Start with Delegation (what task to hand off), move to Description (write the prompt), execute, then Discernment (evaluate output), then Diligence (safe to deploy?). If Discernment detects a flaw, loop back to Description, re-execute, Discern again. Repeats until output meets standard, or you conclude the task is unsuitable for AI (back to Delegation).

Practical manifestation: (1) Delegation: "I need Claude to extract data from legal documents." (2) Description: prompt with input schema, few-shot examples, explicit rules. (3) Execute. (4) Discernment: validate JSON against schema, spot-check 5 documents. (5) Diligence: if 95%+ accurate, deploy with human-in-the-loop for edge cases; if <95%, loop back to Description.

The Framework is agnostic to model, task, scale. Whether Claude for a one-off question or a multi-agent system, the four Ds apply. In agentic loops, each turn re-runs the cycle: Delegation (which tool next?), Description (how to describe?), execute, Discernment (valid output?), Diligence (safe to append?).

The exam heavily tests Diligence + Delegation trade-offs. "Should we auto-approve refunds <$100?" Wrong: "Yes, automate everything." Right: "Diligence demands human review even for small amounts." The 4D lens makes this clear: Delegation decides what to hand off; Diligence validates that the outcome is safe to deploy without human oversight.

4D Framework mechanics, painterly diagram featuring Loop mascot.
04 · In production

Where you'll see it

Customer support refund workflow with 4D

Delegation: humans handle policy interpretation; Claude handles fact-gathering. Description: prompt extracts customer ID, order ID, refund reason, summarizes policy-violation status. Discernment: validate fields, check policy interpretation. Diligence: refunds >$500 bypass Claude; <$100 auto-approved by Claude but logged.

Code review automation for PRs

Delegation: Claude reviews; humans merge. Description: provide PR diff, ask for JSON {verdict, critical_issues, recommendations}. Discernment: read review, verify verdict matches findings. Diligence: never auto-merge; require human click-through. Transparency: "AI-assisted code review, human approval required."

Show 2 more examples

Expense report validation

Delegation: Claude extracts merchant, amount, category; humans authorize. Description: receipt image, structured output. Discernment: spot-check 10 manually. Diligence: expenses >$5000 auto-escalate; <$100 auto-approved + logged.

Email triage with 4D decomposition

Delegation: Claude filters spam, routes; humans respond. Description: classify (spam/feedback/billing/legal), extract intent, suggest routing. Discernment: false-positive rate <2% for legal mail. Diligence: escalate legal/compliance, never auto-delete.

05 · Implementation

Code examples

4D-aligned expense validation
from anthropic import Anthropic
import json

client = Anthropic()

# DELEGATION: Claude extracts; humans validate and authorize
# DESCRIPTION: structured prompt with schema and constraints
# DISCERNMENT: validate output, measure accuracy
# DILIGENCE: high-risk amounts escalate, low amounts auto-approve

def validate_expense_4d(receipt_b64: str, threshold: float = 5000):
    # DESCRIPTION: explicit schema + constraints
    prompt = """Extract expense from receipt. Return JSON:
{
  "merchant": "string",
  "amount": number,
  "currency": "USD" | "other",
  "category": "travel" | "meals" | "supplies" | "other",
  "tax": number,
  "confidence_score": 0.0-1.0
}
- Confidence < 0.7? Set amount to null.
- Missing? Use null, don't invent.
"""

    resp = client.messages.create(
        model="claude-opus-4-5",
        max_tokens=512,
        messages=[{
            "role": "user",
            "content": [
                {"type": "image", "source": {"type": "base64", "media_type": "image/jpeg", "data": receipt_b64}},
                {"type": "text", "text": prompt},
            ],
        }],
    )

    # DISCERNMENT: validate
    try:
        output = json.loads(resp.content[0].text)
    except json.JSONDecodeError:
        return {"status": "error", "reason": "invalid_json"}

    if output.get("confidence_score", 0) < 0.7:
        return {"status": "hold", "reason": "low_confidence", "data": output}

    # DILIGENCE: route by amount
    if output["amount"] and output["amount"] > threshold:
        return {"status": "escalate", "reason": f"amount > $threshold", "data": output, "action": "SEND_TO_MANAGER"}
    else:
        return {"status": "approved", "data": output, "audit_log": {"method": "ai_extracted_auto_approved", "reviewer": "claude-opus-4-5"}}
4D cycle visible: Delegation (Claude extracts), Description (schema + constraints), Discernment (validate confidence), Diligence (route by amount risk).
06 · Distractor patterns

Looks right, isn't

Each row pairs a plausible-looking pattern with the failure it actually creates. These are the shapes exam distractors are built from.

01The 4D Framework is a
× Looks right
The 4D Framework is a technical architecture (like MVC).
✓ What wins
It's a mental model for human-AI collaboration, not a code pattern.

Guides how you think about delegating, communicating, validating, and deploying responsibly.

02If Discernment detects a flaw,
× Looks right
If Discernment detects a flaw, increase max_tokens and retry.
✓ What wins
Discernment failures usually mean Description was vague or Delegation was wrong.

Refine the prompt or reconsider task suitability. More tokens rarely fix flawed delegation.

03Diligence means trusting Claude's output
× Looks right
Diligence means trusting Claude's output completely.
✓ What wins
Diligence means verifying and being honest about limitations.

Trusting blindly is the opposite. Diligence is "I validated this before shipping."

04All four Ds must be
× Looks right
All four Ds must be applied to every task.
✓ What wins
Low-stakes tasks (brainstorming): Discernment and Diligence can be minimal.

High-stakes (compliance, financial): all four are critical.

05Description is the same as
× Looks right
Description is the same as 'write a better prompt.'
✓ What wins
Description includes Product, Process, Performance.

"Better prompt" is vague. Description is specific: schema, examples, tone.

07 · Compare

Side-by-side

↔ scroll to compare
DimensionDelegationDescriptionDiscernmentDiligence
What it answersWhat work should AI do?How do I describe the task?Is the output correct?Is it safe to deploy?
PhaseBefore promptingPrompt designAfter executionFinal validation
Failure modeAI does non-AI work (legal validation)Vague promptAccepting output without reviewDeploying without auditing
FixReassign: human validates, Claude draftsAdd schema, examples, constraintsSpot-check; validate schemaLog decisions; escalate high-risk
Exam signal"Should AI or human do this?""Write a prompt that...""Why did the output fail?""When should this be escalated?"
08 · When to use

Decision tree

01

Should a human or Claude do this work?

YesThat's Delegation. Assign based on capability: humans for judgment/authority, Claude for synthesis/analysis.
NoContinue.
02

Is your prompt clear on Product, Process, Performance?

YesGood Description. Execute.
NoRefine: schema (Product), examples (Process), tone guidance (Performance).
03

Did the output meet expectations?

YesGood Discernment. Ready for Diligence.
NoDiscernment detected a flaw. Loop back to Description.
04

Is it safe to deploy without human review?

YesHigh-confidence, low-stakes, fully logged. Deploy.
NoDiligence says: escalate or refine.
05

Are you using all 4 Ds for high-stakes tasks?

YesGood. Compliance, financial, legal demand all 4.
NoAdd the missing D before shipping.
09 · On the exam

Question patterns

4D Framework exam trap, painterly cautionary scene featuring Loop mascot.

6 V2 questions wired to this concept. Tap an answer to check it instantly - you'll see whether it's right and why - then expand the full breakdown for the mental model and all four rationales.

Question 1 of 6 · D4Choose the best answer

Should you use Claude to verify legal text before it is sent to a client?

10 · FAQ

Frequently asked

Showing 10 of 10 questions

Help someone pass

Share this concept.

One share is one less person stuck on the same question.

Last reviewed: 2026-05-04·Refresh cadence: monthly