This guide defines the v3 architecture used by the Agent Workflow Blueprint. It separates prompt-specific engineering instructions from shared governance and repeated specialist controls so copied output remains rich, reviewable, and deterministic.
Source layers
The library has three authored layers:
GOVERNANCE-KERNEL.mdowns scope, assumptions, evidence, traceability, status, escalation, claim control, the common handoff, and prompt/skill/contract execution profiles.SPECIALIST-CONTROLS.mdowns specialist instructions that are reused by more than one asset.- Each prompt, skill, or contract owns its applicability boundary, inputs, specialist procedure, domain evidence, domain failures, and output record.
research-sources.jsonresolves each curated research label to an exact paper or standard and states how the source is translated into an observable repository control.
assets.json records version, risk, required inputs, expected outputs, dependencies, and evaluation-case mappings. scripts/compose_assets.py and the website use the same composition rules.
v3 prompt source contract
Each of the 40 prompts contains these sections:
Metadata— type, category, v3 version, and governance profile.When to use— the intended task boundary.When not to use— an explicit exclusion and named alternative.DependenciesandShared specialist controls— resolvable composition inputs.Required inputs— four or more concrete items needed for safe execution.Specialist roleandTask-specific mission— narrow authority and desired outcome.Task-specific instructions— five to ten ordered domain actions.Decision gates— stop, approval, escalation, and completion decisions.Required evidence— concrete artefacts and failure-path proof.Failure modes and recovery— paired failure handling, not optimistic defaults.Task-specific rejection conditions— hard reasons not to accept the result.Output format— a compact domain record nested in the common handoff.Worked example— a concrete interpretation and final-status constraint.
The numerical quality thresholds are defined in QUALITY-RUBRIC.md and enforced by scripts/check_template_library.py.
Copy-ready composition
Body composition produces one agent-ready prompt in this order:
- selected source modules, beginning with required inputs and continuing through role, mission, instructions, gates, evidence, failures, rejection conditions, output record, and example;
- every referenced specialist control once;
- the applicable governance kernel rules and execution profiles once.
The source title, applicability sections, metadata, dependency declarations, raw shared-control ID lists, and research/source references are review context rather than agent instructions. The website renders them outside the code region and excludes them from both copy actions. scripts/compose_assets.py has the same body-only default; --with-references appends a separate review section when explicitly requested.
Common handoff and domain record
All assets use GOV-HANDOFF-01 once:
# Agent workflow handoff
## Scope and inputs
## Findings or implementation result
## Decisions and rejected alternative
## Evidence and failure-path results
## Remaining risks and required approvals
## Final statusThe selected prompt's domain output record belongs inside Findings or implementation result. Prompt sources do not repeat the full handoff schema.
Evidence ladder
| Evidence level | Meaning | Acceptable examples |
|---|---|---|
| Source evidence | The deciding artefact was inspected. | File, function, route, component, config, contract. |
| Behaviour evidence | The relevant runtime state was observed. | UI state, browser interaction, API response, log. |
| Command evidence | A reproducible check was run. | Test, lint, build, schema validator, security scan. |
| Specialist evidence | Domain risk was reviewed. | WCAG mapping, keyboard journey, threat boundary, performance budget. |
| Release evidence | A claim is tied to release criteria. | Review packet, known limitations, controlled final status. |
A fluent answer without the evidence required for its material claim is not accepted.
Decision and reasoning rules
Use branch evaluation for material, ambiguous, cross-cutting, security-sensitive, accessibility-sensitive, or hard-to-reverse choices. Record the selected route, at least one plausible alternative, evidence needed, and the reason for rejection.
Do not request hidden chain-of-thought. Require a public decision record containing assumptions, alternatives, evidence, verification, limitations, and status.
Controlled status
Only four final statuses are allowed:
verified— all material requirements have reproducible evidence;partially verified— useful work exists but material evidence is incomplete;not verified— evidence is insufficient, contradictory, or a material check failed;blocked— progress cannot safely continue without missing authority, context, tooling, or an external state change.
No marketing claim may follow the final status.
Quality boundary
Deterministic validation establishes source structure, manifest consistency, control resolution, composition limits, and fixture coverage. It does not establish model correctness or industry-wide effectiveness. Use the recorded-output process in evaluation-methodology.md for behavioural evidence.
Research vocabulary cross-reference
This architecture uses the repository's source-mapped control vocabulary: CoT-safe public reasoning, Tree-of-Thoughts branch evaluation, ReAct observation loops, Least-to-most decomposition, Self-consistency checks, Self-refinement after failed checks, Process supervision, and traceability. The terms describe design influences, not a claim that every model implements a named internal mechanism.