FORGE Gatekeeper
The FORGE Gatekeeper enforces stage-gated execution by validating entry/exit conditions and producing the Verification & Traceability Matrix (VTM) for compliance auditing.Quick Reference
| Property | Value |
|---|---|
| Domain | Orchestration |
| FORGE Stage | Cross-cutting (all stages) |
| Version | 1.0.0 |
| Primary Output | VTM (Verification & Traceability Matrix) |
Overview
The Gatekeeper ensures that:- All entry gates are satisfied before stage execution
- All exit gates are met before stage completion
- Agent outputs conform to their defined schemas
- Full traceability from requirements to deliverables
Core Capabilities
Gate Validation
Verify entry/exit conditions for each FORGE stage
VTM Production
Generate comprehensive verification matrix
Compliance Audit
Check agent outputs against schemas
Traceability
Track requirements through to deliverables
When Gatekeeper is Invoked
Automatic Invocation
The Gatekeeper is called automatically:- By Factory Orchestrator at each stage transition
- By individual agents before producing final output
- In CI/CD pipelines during validation
Manual Invocation
Manually invoke the Gatekeeper to:- Generate VTM for documentation
- Audit existing implementations
- Validate compliance before deployment
- Troubleshoot failed gate transitions
Usage Example
- Check each Stage 2 agent completed
- Verify all exit conditions met
- Generate validation report
- Update VTM with results
- List any blocking issues
Primary Output: VTM
The Verification & Traceability Matrix is the source of truth for agent validation:Validation Checks
The Gatekeeper performs 11 checks per agent:Structure Validation
- YAML frontmatter present
- Required sections exist (Identity, Core Capabilities, FORGE Gates)
Veritas Integration
veritas.consumesconfigured- Prompt IDs match format (
vrt-xxxxxxxx) veritas.produceshas valid category
Gate Validation Process
Integration Points
Control Plane API
| Endpoint | Purpose |
|---|---|
/api/validation | Submit gate validation results |
/api/vtm | Retrieve/update VTM |
Veritas Integration
Consumes:vrt-gate001: Gate validation patternsvrt-audit01: Compliance audit templates
- Validation task prompts (for manual gate reviews)
CLI Validation
Run the Gatekeeper validation locally:Strict Mode
Common Gate Failures
| Failure | Cause | Resolution |
|---|---|---|
| Entry gate not met | Prerequisites missing | Complete dependent stages first |
| Exit gate not met | Deliverables incomplete | Finish all required outputs |
| Schema validation failed | Output doesn’t match schema | Fix output format |
| Missing decision record | Significant choice not logged | Add ADR-format decision |