22 August 2026 · Agent Skills × CDISC Context Engineering

How much regulatory knowledge should an AI programming agent load at once?

A 30-minute pack on graph-constrained skill loading, token budgets, attention saturation, SDTM agent workflows and deterministic CDISC validation.

DifficultyC1
Time30 minutes
Study design90 agent runs
OutputContext policy

Why this reading

More context is not automatically better context.

The controlled evaluation models a clinical-trial evidence pipeline as a 45-node DAG and selectively loads 59 domain-specific CDISC skill files according to graph proximity.

The graph-constrained condition improved regulatory compliance and terminology precision, while an additional layer of redundant global principles slightly reduced performance. For SP agents, context selection itself becomes part of validation architecture.

Reading order

Your 30-minute plan.

0-3 minPreview

Predict why more standards context can sometimes hurt.

3-14 minMain article

Read the graph, skill-loading, evaluation and attention-saturation results.

14-20 minCDISC US

Read current SDTM multi-agent and machine-verifiable-specification abstracts.

20-25 minCDISC CORE

Review deterministic conformance rules.

25-30 minOutput

Design a context-loading policy for one SP task.

Open-access sources

Controlled agent evidence plus current CDISC implementation direction.

Brief background

Route knowledge by workflow position.

The paper compares an unbounded baseline with a graph-constrained skill system across ten regulatory tasks and 90 total runs.

The pipeline contains 45 workflow nodes across seven procedural layers. An adaptive scheduler selects from 59 skill files containing controlled terminology, derivation logic and validation protocols.

Graph-constrained loading improved overall quality by 0.47 points on a five-point scale and regulatory-structure compliance by 0.63 points. It used about 12% more tokens than the baseline.

Adding distilled global principles slightly reduced performance, suggesting possible attention saturation when overlapping constraints are loaded together.

The practical pattern is: workflow node → relevant skills → generated proposal → deterministic checks → human review → next node.

Key vocabulary

Fifteen terms for agent context engineering.

Term中文Meaning / use
graph-constrained skill loading图约束技能加载Loading domain knowledge according to the agent's current position in a workflow graph.
workflow topology工作流拓扑The dependency structure that determines which tasks and knowledge are relevant at each stage.
graph proximity图邻近度How close a skill or task is to the current node in a workflow graph.
token budget上下文 Token 预算The limited amount of prompt/context capacity available to the agent.
attention saturation注意力饱和Performance degradation that can occur when too many redundant constraints compete for attention.
regulatory compliance监管符合性Conformance with applicable standards, terminology, derivation rules, and controlled processes.
terminology precision术语精确度Using the correct regulated or standards-defined terms rather than plausible alternatives.
derivation logic派生逻辑Explicit rules that transform source data into derived variables or analysis values.
metadata synthesis元数据综合生成Creating or combining structured metadata across standards, variables, or workflow artifacts.
adaptive scheduler自适应调度器A component that selects which skills or resources to activate for the current task.
unbounded baseline无约束基线A comparison condition where the model receives broad context without workflow-based restriction.
compliance margin符合性差值The measured performance gap between a controlled framework and a baseline.
inter-rater agreement评估者一致性The degree to which independent evaluators reach similar judgments.
human-in-the-loop人在回路A workflow in which domain experts review or approve AI-assisted work.
machine-executable rule机器可执行规则A formal rule that software can run repeatably without relying on model interpretation.

Useful phrases

Language for an AI workflow-design discussion.

  1. load only the knowledge relevant to the current workflow stage - The agent loads only the knowledge relevant to the current workflow stage.
  2. constrain context by process position - The framework constrains context by process position.
  3. trade a modest token increase for better compliance - The system trades a modest token increase for better compliance.
  4. avoid redundant global instructions - The experiment suggests that agents should avoid redundant global instructions.
  5. ground terminology in domain-specific rule files - Terminology is grounded in domain-specific rule files.
  6. separate reusable knowledge from task-specific execution - The architecture separates reusable knowledge from task-specific execution.
  7. measure compliance rather than fluency alone - Clinical-programming agents should measure compliance rather than fluency alone.
  8. route difficult metadata tasks to expert review - The workflow can route difficult metadata tasks to expert review.
  9. validate generated artifacts with deterministic rules - Generated artifacts should be validated with deterministic rules.
  10. treat context selection as part of system design - Context selection should be treated as part of system design.

Comprehension

Five questions.

  1. Why might workflow-position-based context improve regulatory compliance?
  2. What does the token-cost increase tell you about the design trade-off?
  3. Why is the slight degradation from extra global principles important?
  4. Why are metadata-synthesis tasks a useful boundary case?
  5. How can CDISC CORE provide an independent validation layer?

Retelling

Say it three times.

  • 30 seconds · Problem → graph-constrained skills → result.
  • 45 seconds · Workflow node → skill selection → generation → validation → review.
  • 60 seconds · Explain why an SP agent should not load every CDISC document for every task.

5-minute output task

Write a context policy for one SDTM or ADaM agent task.

  1. Minute 1: Choose AE mapping, VISIT logic, ADAE TEAE, ADSL flags, lab BDS or SDTM validation.
  2. Minutes 2-3: Separate always-load, node-specific and do-not-load-unless-needed context.
  3. Minute 4: Define deterministic validators independent of the LLM.
  4. Minute 5: Explain when ambiguous metadata work must escalate to an expert.

One sentence to keep

In regulated AI workflows, context is not simply information to maximize; it is a controlled resource that should be selected by process position, validated by deterministic rules, and escalated to experts when ambiguity remains.