@agent-blueprint/free-blueprints 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +72 -0
  2. package/dist/blueprints/employee-onboarding/files/agent-specifications.d.ts +1 -0
  3. package/dist/blueprints/employee-onboarding/files/agent-specifications.js +278 -0
  4. package/dist/blueprints/employee-onboarding/files/agent-specifications.js.map +1 -0
  5. package/dist/blueprints/employee-onboarding/files/agents.d.ts +1 -0
  6. package/dist/blueprints/employee-onboarding/files/agents.js +61 -0
  7. package/dist/blueprints/employee-onboarding/files/agents.js.map +1 -0
  8. package/dist/blueprints/employee-onboarding/files/architecture-decisions.d.ts +1 -0
  9. package/dist/blueprints/employee-onboarding/files/architecture-decisions.js +79 -0
  10. package/dist/blueprints/employee-onboarding/files/architecture-decisions.js.map +1 -0
  11. package/dist/blueprints/employee-onboarding/files/business-context.d.ts +1 -0
  12. package/dist/blueprints/employee-onboarding/files/business-context.js +107 -0
  13. package/dist/blueprints/employee-onboarding/files/business-context.js.map +1 -0
  14. package/dist/blueprints/employee-onboarding/files/evaluation-criteria.d.ts +1 -0
  15. package/dist/blueprints/employee-onboarding/files/evaluation-criteria.js +126 -0
  16. package/dist/blueprints/employee-onboarding/files/evaluation-criteria.js.map +1 -0
  17. package/dist/blueprints/employee-onboarding/files/getting-started.d.ts +1 -0
  18. package/dist/blueprints/employee-onboarding/files/getting-started.js +89 -0
  19. package/dist/blueprints/employee-onboarding/files/getting-started.js.map +1 -0
  20. package/dist/blueprints/employee-onboarding/files/guardrails-and-governance.d.ts +1 -0
  21. package/dist/blueprints/employee-onboarding/files/guardrails-and-governance.js +182 -0
  22. package/dist/blueprints/employee-onboarding/files/guardrails-and-governance.js.map +1 -0
  23. package/dist/blueprints/employee-onboarding/files/implementation-state.d.ts +1 -0
  24. package/dist/blueprints/employee-onboarding/files/implementation-state.js +91 -0
  25. package/dist/blueprints/employee-onboarding/files/implementation-state.js.map +1 -0
  26. package/dist/blueprints/employee-onboarding/files/platform-connectivity.d.ts +1 -0
  27. package/dist/blueprints/employee-onboarding/files/platform-connectivity.js +140 -0
  28. package/dist/blueprints/employee-onboarding/files/platform-connectivity.js.map +1 -0
  29. package/dist/blueprints/employee-onboarding/files/skill.d.ts +1 -0
  30. package/dist/blueprints/employee-onboarding/files/skill.js +126 -0
  31. package/dist/blueprints/employee-onboarding/files/skill.js.map +1 -0
  32. package/dist/blueprints/employee-onboarding/index.d.ts +2 -0
  33. package/dist/blueprints/employee-onboarding/index.js +37 -0
  34. package/dist/blueprints/employee-onboarding/index.js.map +1 -0
  35. package/dist/blueprints/index.d.ts +3 -0
  36. package/dist/blueprints/index.js +14 -0
  37. package/dist/blueprints/index.js.map +1 -0
  38. package/dist/blueprints/rfx-procurement/files/agent-specifications.d.ts +1 -0
  39. package/dist/blueprints/rfx-procurement/files/agent-specifications.js +313 -0
  40. package/dist/blueprints/rfx-procurement/files/agent-specifications.js.map +1 -0
  41. package/dist/blueprints/rfx-procurement/files/agents.d.ts +1 -0
  42. package/dist/blueprints/rfx-procurement/files/agents.js +66 -0
  43. package/dist/blueprints/rfx-procurement/files/agents.js.map +1 -0
  44. package/dist/blueprints/rfx-procurement/files/architecture-decisions.d.ts +1 -0
  45. package/dist/blueprints/rfx-procurement/files/architecture-decisions.js +95 -0
  46. package/dist/blueprints/rfx-procurement/files/architecture-decisions.js.map +1 -0
  47. package/dist/blueprints/rfx-procurement/files/business-context.d.ts +1 -0
  48. package/dist/blueprints/rfx-procurement/files/business-context.js +99 -0
  49. package/dist/blueprints/rfx-procurement/files/business-context.js.map +1 -0
  50. package/dist/blueprints/rfx-procurement/files/evaluation-criteria.d.ts +1 -0
  51. package/dist/blueprints/rfx-procurement/files/evaluation-criteria.js +165 -0
  52. package/dist/blueprints/rfx-procurement/files/evaluation-criteria.js.map +1 -0
  53. package/dist/blueprints/rfx-procurement/files/getting-started.d.ts +1 -0
  54. package/dist/blueprints/rfx-procurement/files/getting-started.js +97 -0
  55. package/dist/blueprints/rfx-procurement/files/getting-started.js.map +1 -0
  56. package/dist/blueprints/rfx-procurement/files/guardrails-and-governance.d.ts +1 -0
  57. package/dist/blueprints/rfx-procurement/files/guardrails-and-governance.js +159 -0
  58. package/dist/blueprints/rfx-procurement/files/guardrails-and-governance.js.map +1 -0
  59. package/dist/blueprints/rfx-procurement/files/implementation-state.d.ts +1 -0
  60. package/dist/blueprints/rfx-procurement/files/implementation-state.js +127 -0
  61. package/dist/blueprints/rfx-procurement/files/implementation-state.js.map +1 -0
  62. package/dist/blueprints/rfx-procurement/files/platform-connectivity.d.ts +1 -0
  63. package/dist/blueprints/rfx-procurement/files/platform-connectivity.js +153 -0
  64. package/dist/blueprints/rfx-procurement/files/platform-connectivity.js.map +1 -0
  65. package/dist/blueprints/rfx-procurement/files/skill.d.ts +1 -0
  66. package/dist/blueprints/rfx-procurement/files/skill.js +127 -0
  67. package/dist/blueprints/rfx-procurement/files/skill.js.map +1 -0
  68. package/dist/blueprints/rfx-procurement/index.d.ts +2 -0
  69. package/dist/blueprints/rfx-procurement/index.js +37 -0
  70. package/dist/blueprints/rfx-procurement/index.js.map +1 -0
  71. package/dist/server.d.ts +2 -0
  72. package/dist/server.js +55 -0
  73. package/dist/server.js.map +1 -0
  74. package/dist/transports/stdio.d.ts +2 -0
  75. package/dist/transports/stdio.js +7 -0
  76. package/dist/transports/stdio.js.map +1 -0
  77. package/dist/transports/worker.d.ts +4 -0
  78. package/dist/transports/worker.js +29 -0
  79. package/dist/transports/worker.js.map +1 -0
  80. package/dist/types.d.ts +34 -0
  81. package/dist/types.js +2 -0
  82. package/dist/types.js.map +1 -0
  83. package/package.json +42 -0
@@ -0,0 +1,91 @@
1
+ export const content = `schema_version: "1.0"
2
+ overall_status: not_started
3
+
4
+ platform:
5
+ name: TBD
6
+ version: TBD
7
+ environment: TBD
8
+
9
+ agents:
10
+ - name: Onboarding Orchestrator
11
+ type: manager
12
+ status: not_started
13
+ phase: 1
14
+ tools_implemented: []
15
+ integrations_connected: []
16
+ tests_passing: false
17
+ notes: ""
18
+
19
+ - name: Document Processor
20
+ type: worker
21
+ status: not_started
22
+ phase: 1
23
+ tools_implemented: []
24
+ integrations_connected: []
25
+ tests_passing: false
26
+ notes: ""
27
+
28
+ - name: IT Provisioning Coordinator
29
+ type: worker
30
+ status: not_started
31
+ phase: 2
32
+ tools_implemented: []
33
+ integrations_connected: []
34
+ tests_passing: false
35
+ notes: ""
36
+
37
+ - name: Training Curriculum Assembler
38
+ type: worker
39
+ status: not_started
40
+ phase: 2
41
+ tools_implemented: []
42
+ integrations_connected: []
43
+ tests_passing: false
44
+ notes: ""
45
+
46
+ - name: Progress Tracker
47
+ type: worker
48
+ status: not_started
49
+ phase: 2
50
+ tools_implemented: []
51
+ integrations_connected: []
52
+ tests_passing: false
53
+ notes: ""
54
+
55
+ pilot:
56
+ status: not_started
57
+ start_date: TBD
58
+ end_date: TBD
59
+ decision_gate:
60
+ document_accuracy: null
61
+ time_reduction: null
62
+ compliance_gaps: null
63
+ critical_errors: null
64
+ stakeholder_signoff: false
65
+
66
+ full_implementation:
67
+ status: not_started
68
+ start_date: TBD
69
+ end_date: TBD
70
+
71
+ integrations:
72
+ - name: HR System (new-hire event trigger)
73
+ status: not_started
74
+ notes: ""
75
+ - name: Document Management (e-signature, storage)
76
+ status: not_started
77
+ notes: ""
78
+ - name: Identity Management (directory, SSO)
79
+ status: not_started
80
+ notes: ""
81
+ - name: IT Service Management (tickets, assets)
82
+ status: not_started
83
+ notes: ""
84
+ - name: Learning Management System
85
+ status: not_started
86
+ notes: ""
87
+ - name: Communication Channels (email, chat)
88
+ status: not_started
89
+ notes: ""
90
+ `;
91
+ //# sourceMappingURL=implementation-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"implementation-state.js","sourceRoot":"","sources":["../../../../src/blueprints/employee-onboarding/files/implementation-state.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFtB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const content = "# Platform Connectivity\n\nIntegration points and patterns for connecting the Employee Onboarding Automation system to your technology stack. All guidance is vendor-agnostic. Adapt to whatever systems your organization uses.\n\n---\n\n## HR System Integration\n\n**Purpose:** Source of truth for new-hire data. Triggers the onboarding process.\n\n### Required Capabilities\n\n- **New-hire event notification.** The HR system must emit an event (webhook, message queue, or polling-compatible API) when a new hire record is created or a start date is confirmed. This is the trigger for the entire onboarding workflow.\n- **Employee data read access.** The Orchestrator needs: employee name, email, role title, department, start date, employment type (full-time, contractor, intern), reporting manager, office location, and remote/hybrid/onsite status.\n- **Employee status updates.** The system needs to detect offer rescissions, start date changes, and role changes that affect onboarding tasks already in progress.\n\n### Integration Pattern\n\nEvent-driven is preferred. Configure the HR system to emit a webhook on new-hire creation. The Orchestrator subscribes to this event. If webhooks are not available, poll the HR system API for new hires on a 15-minute interval and deduplicate using employee ID.\n\n---\n\n## Identity Management\n\n**Purpose:** User account lifecycle. SSO configuration. Directory group membership.\n\n### Required Capabilities\n\n- **User account creation.** Create accounts in the organization's directory service with appropriate attributes (name, email, department, manager, role).\n- **Group membership management.** Add new accounts to the correct security groups and distribution lists based on role and department.\n- **SSO provisioning.** Configure single sign-on access for downstream applications.\n- **Account status management.** Activate accounts on start date, deactivate if onboarding is cancelled.\n\n### Integration Pattern\n\nUse the directory service's administrative API (SCIM, REST, or platform-specific SDK). The IT Provisioning Coordinator calls this API to create accounts and manage group memberships. Idempotency is critical: the API call to create an account must be safe to retry without creating duplicates. Use the employee's HR system ID as the external identifier for deduplication.\n\n---\n\n## Document Management\n\n**Purpose:** Collect, store, and manage new-hire documents with e-signature support.\n\n### Required Capabilities\n\n- **E-signature workflows.** Send documents (NDAs, offer letters, policy acknowledgments) for electronic signature. Track signature status.\n- **Form generation.** Generate pre-filled tax forms and benefits enrollment forms from HR system data.\n- **Document upload and storage.** Accept uploaded documents (ID photos, certifications) from new hires via a secure portal or email.\n- **Document retrieval.** Retrieve stored documents for validation and processing.\n- **Retention management.** Tag documents with retention categories and support automated deletion at expiry.\n\n### Integration Pattern\n\nThe Document Processor connects to the e-signature service API for signature workflows and to the document storage API for uploads and retrieval. New hires interact with the e-signature service directly (signing documents) and with a portal or email for uploads. The Document Processor monitors completion events from the e-signature service to trigger validation.\n\n---\n\n## IT Service Management\n\n**Purpose:** Hardware procurement, ticket tracking, and asset management.\n\n### Required Capabilities\n\n- **Ticket creation.** Create provisioning requests (hardware orders, software installation, desk setup) as trackable tickets.\n- **Asset assignment.** Record which assets (laptop serial number, monitor, peripherals) are assigned to which employee.\n- **Ticket status tracking.** Monitor ticket progress to detect delays and blockers.\n- **Catalog item requests.** Submit requests from a service catalog (standard laptop configurations, software bundles) rather than free-form tickets.\n\n### Integration Pattern\n\nThe IT Provisioning Coordinator creates tickets or catalog requests via the ITSM API. It polls or subscribes to status updates. For hardware, the pattern is: create a catalog request with specifications and shipping details, then monitor the request through fulfillment stages (ordered, shipped, delivered, configured). For software, the pattern is: submit a license assignment request, then verify the assignment is active.\n\n---\n\n## Learning Management System\n\n**Purpose:** Training course catalog, enrollment, and completion tracking.\n\n### Required Capabilities\n\n- **Course catalog API.** Query available training modules with metadata (category, duration, prerequisites, compliance flag, format).\n- **Enrollment management.** Enroll employees in specific courses with deadlines. Modify or cancel enrollments.\n- **Completion tracking.** Receive notifications or query completion status for enrolled courses.\n- **Training path support.** If the LMS supports learning paths or curricula natively, use that. Otherwise, the Training Curriculum Assembler manages sequencing externally and enrolls modules individually as prerequisites are met.\n\n### Integration Pattern\n\nThe Training Curriculum Assembler queries the course catalog to build training paths, then uses the enrollment API to assign modules. Completion events (if the LMS emits them) trigger the Assembler to enroll the next module in the sequence. If the LMS does not emit completion events, poll the completion status API on a 1-hour interval for active enrollments.\n\n---\n\n## Communication Channels\n\n**Purpose:** Notifications, reminders, and status updates to new hires, managers, and HR.\n\n### Required Capabilities\n\n- **Email sending.** Programmatic email for document collection requests, welcome messages, and escalation notifications. Must support HTML templates.\n- **Chat messaging.** Programmatic chat messages for reminders, status updates, and quick notifications. Preferred for time-sensitive items.\n- **Channel selection logic.** Critical/urgent items use both email and chat. Routine items use the employee's preferred channel if known, defaulting to email.\n\n### Integration Pattern\n\nThe system sends notifications through two channels: email API for formal communications and chat API for informal/urgent ones. The Progress Tracker manages reminder frequency (maximum 2 per action per 48-hour period). Each agent sends its own notifications for immediate operational items (e.g., Document Processor sends collection requests). The Progress Tracker handles reminders for overdue items and status reports.\n\n---\n\n## Common Integration Considerations\n\n### Authentication\n\nAll integrations should use OAuth 2.0 or API key authentication. Service accounts are preferred over user-impersonation tokens. Store credentials in a secrets manager. Rotate API keys on a quarterly cadence at minimum.\n\n### Rate Limiting\n\nEnterprise APIs enforce rate limits. The system must respect them:\n\n- Implement backoff on 429 responses (rate limit exceeded)\n- Batch operations where the API supports it (e.g., creating 5 accounts in one call vs. 5 separate calls)\n- Distribute API calls across time rather than bursting (relevant when processing a large cohort of new hires)\n\n### Error Handling\n\nIntegration failures are expected. The system handles them through:\n\n- Retry with exponential backoff for transient errors (timeouts, 500s, rate limits)\n- Escalation to the Orchestrator for persistent errors (3 consecutive failures)\n- Graceful degradation: if a non-critical integration is down (e.g., chat notifications), fall back to email. If a critical integration is down (e.g., HR system), halt new case creation and alert operations.\n\n### Data Mapping\n\nEach integration requires mapping between the onboarding system's data model and the external system's data model. Document these mappings explicitly. Common mapping challenges:\n\n- Role titles in the HR system may not match role templates in the provisioning system\n- Department names may differ between HR and directory services\n- Employee IDs may be formatted differently across systems\n\nCreate a mapping configuration that translates between systems. Do not hard-code mappings in agent logic.\n";
@@ -0,0 +1,140 @@
1
+ export const content = `# Platform Connectivity
2
+
3
+ Integration points and patterns for connecting the Employee Onboarding Automation system to your technology stack. All guidance is vendor-agnostic. Adapt to whatever systems your organization uses.
4
+
5
+ ---
6
+
7
+ ## HR System Integration
8
+
9
+ **Purpose:** Source of truth for new-hire data. Triggers the onboarding process.
10
+
11
+ ### Required Capabilities
12
+
13
+ - **New-hire event notification.** The HR system must emit an event (webhook, message queue, or polling-compatible API) when a new hire record is created or a start date is confirmed. This is the trigger for the entire onboarding workflow.
14
+ - **Employee data read access.** The Orchestrator needs: employee name, email, role title, department, start date, employment type (full-time, contractor, intern), reporting manager, office location, and remote/hybrid/onsite status.
15
+ - **Employee status updates.** The system needs to detect offer rescissions, start date changes, and role changes that affect onboarding tasks already in progress.
16
+
17
+ ### Integration Pattern
18
+
19
+ Event-driven is preferred. Configure the HR system to emit a webhook on new-hire creation. The Orchestrator subscribes to this event. If webhooks are not available, poll the HR system API for new hires on a 15-minute interval and deduplicate using employee ID.
20
+
21
+ ---
22
+
23
+ ## Identity Management
24
+
25
+ **Purpose:** User account lifecycle. SSO configuration. Directory group membership.
26
+
27
+ ### Required Capabilities
28
+
29
+ - **User account creation.** Create accounts in the organization's directory service with appropriate attributes (name, email, department, manager, role).
30
+ - **Group membership management.** Add new accounts to the correct security groups and distribution lists based on role and department.
31
+ - **SSO provisioning.** Configure single sign-on access for downstream applications.
32
+ - **Account status management.** Activate accounts on start date, deactivate if onboarding is cancelled.
33
+
34
+ ### Integration Pattern
35
+
36
+ Use the directory service's administrative API (SCIM, REST, or platform-specific SDK). The IT Provisioning Coordinator calls this API to create accounts and manage group memberships. Idempotency is critical: the API call to create an account must be safe to retry without creating duplicates. Use the employee's HR system ID as the external identifier for deduplication.
37
+
38
+ ---
39
+
40
+ ## Document Management
41
+
42
+ **Purpose:** Collect, store, and manage new-hire documents with e-signature support.
43
+
44
+ ### Required Capabilities
45
+
46
+ - **E-signature workflows.** Send documents (NDAs, offer letters, policy acknowledgments) for electronic signature. Track signature status.
47
+ - **Form generation.** Generate pre-filled tax forms and benefits enrollment forms from HR system data.
48
+ - **Document upload and storage.** Accept uploaded documents (ID photos, certifications) from new hires via a secure portal or email.
49
+ - **Document retrieval.** Retrieve stored documents for validation and processing.
50
+ - **Retention management.** Tag documents with retention categories and support automated deletion at expiry.
51
+
52
+ ### Integration Pattern
53
+
54
+ The Document Processor connects to the e-signature service API for signature workflows and to the document storage API for uploads and retrieval. New hires interact with the e-signature service directly (signing documents) and with a portal or email for uploads. The Document Processor monitors completion events from the e-signature service to trigger validation.
55
+
56
+ ---
57
+
58
+ ## IT Service Management
59
+
60
+ **Purpose:** Hardware procurement, ticket tracking, and asset management.
61
+
62
+ ### Required Capabilities
63
+
64
+ - **Ticket creation.** Create provisioning requests (hardware orders, software installation, desk setup) as trackable tickets.
65
+ - **Asset assignment.** Record which assets (laptop serial number, monitor, peripherals) are assigned to which employee.
66
+ - **Ticket status tracking.** Monitor ticket progress to detect delays and blockers.
67
+ - **Catalog item requests.** Submit requests from a service catalog (standard laptop configurations, software bundles) rather than free-form tickets.
68
+
69
+ ### Integration Pattern
70
+
71
+ The IT Provisioning Coordinator creates tickets or catalog requests via the ITSM API. It polls or subscribes to status updates. For hardware, the pattern is: create a catalog request with specifications and shipping details, then monitor the request through fulfillment stages (ordered, shipped, delivered, configured). For software, the pattern is: submit a license assignment request, then verify the assignment is active.
72
+
73
+ ---
74
+
75
+ ## Learning Management System
76
+
77
+ **Purpose:** Training course catalog, enrollment, and completion tracking.
78
+
79
+ ### Required Capabilities
80
+
81
+ - **Course catalog API.** Query available training modules with metadata (category, duration, prerequisites, compliance flag, format).
82
+ - **Enrollment management.** Enroll employees in specific courses with deadlines. Modify or cancel enrollments.
83
+ - **Completion tracking.** Receive notifications or query completion status for enrolled courses.
84
+ - **Training path support.** If the LMS supports learning paths or curricula natively, use that. Otherwise, the Training Curriculum Assembler manages sequencing externally and enrolls modules individually as prerequisites are met.
85
+
86
+ ### Integration Pattern
87
+
88
+ The Training Curriculum Assembler queries the course catalog to build training paths, then uses the enrollment API to assign modules. Completion events (if the LMS emits them) trigger the Assembler to enroll the next module in the sequence. If the LMS does not emit completion events, poll the completion status API on a 1-hour interval for active enrollments.
89
+
90
+ ---
91
+
92
+ ## Communication Channels
93
+
94
+ **Purpose:** Notifications, reminders, and status updates to new hires, managers, and HR.
95
+
96
+ ### Required Capabilities
97
+
98
+ - **Email sending.** Programmatic email for document collection requests, welcome messages, and escalation notifications. Must support HTML templates.
99
+ - **Chat messaging.** Programmatic chat messages for reminders, status updates, and quick notifications. Preferred for time-sensitive items.
100
+ - **Channel selection logic.** Critical/urgent items use both email and chat. Routine items use the employee's preferred channel if known, defaulting to email.
101
+
102
+ ### Integration Pattern
103
+
104
+ The system sends notifications through two channels: email API for formal communications and chat API for informal/urgent ones. The Progress Tracker manages reminder frequency (maximum 2 per action per 48-hour period). Each agent sends its own notifications for immediate operational items (e.g., Document Processor sends collection requests). The Progress Tracker handles reminders for overdue items and status reports.
105
+
106
+ ---
107
+
108
+ ## Common Integration Considerations
109
+
110
+ ### Authentication
111
+
112
+ All integrations should use OAuth 2.0 or API key authentication. Service accounts are preferred over user-impersonation tokens. Store credentials in a secrets manager. Rotate API keys on a quarterly cadence at minimum.
113
+
114
+ ### Rate Limiting
115
+
116
+ Enterprise APIs enforce rate limits. The system must respect them:
117
+
118
+ - Implement backoff on 429 responses (rate limit exceeded)
119
+ - Batch operations where the API supports it (e.g., creating 5 accounts in one call vs. 5 separate calls)
120
+ - Distribute API calls across time rather than bursting (relevant when processing a large cohort of new hires)
121
+
122
+ ### Error Handling
123
+
124
+ Integration failures are expected. The system handles them through:
125
+
126
+ - Retry with exponential backoff for transient errors (timeouts, 500s, rate limits)
127
+ - Escalation to the Orchestrator for persistent errors (3 consecutive failures)
128
+ - Graceful degradation: if a non-critical integration is down (e.g., chat notifications), fall back to email. If a critical integration is down (e.g., HR system), halt new case creation and alert operations.
129
+
130
+ ### Data Mapping
131
+
132
+ Each integration requires mapping between the onboarding system's data model and the external system's data model. Document these mappings explicitly. Common mapping challenges:
133
+
134
+ - Role titles in the HR system may not match role templates in the provisioning system
135
+ - Department names may differ between HR and directory services
136
+ - Employee IDs may be formatted differently across systems
137
+
138
+ Create a mapping configuration that translates between systems. Do not hard-code mappings in agent logic.
139
+ `;
140
+ //# sourceMappingURL=platform-connectivity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-connectivity.js","sourceRoot":"","sources":["../../../../src/blueprints/employee-onboarding/files/platform-connectivity.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ItB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const content = "---\nname: employee-onboarding-automation\ndescription: >-\n Implementation specification for Employee Onboarding Automation. 5 AI agents,\n Manager-Workers pattern, vendor-agnostic.\ncompatibility: Any coding agent (Claude Code, Codex, Cursor).\nmetadata:\n generated-by: agent-blueprint\n generated-at: \"2026-04-08T00:00:00.000Z\"\n blueprint-id: \"free-employee-onboarding\"\n target-platform: \"vendor_agnostic\"\n agent-count: \"5\"\n pattern: \"Manager-Workers\"\n investment-tier: \"medium\"\n---\n\n# Implementation Specification\n\n> Automate the employee onboarding lifecycle with 5 AI agents in a Manager-Workers pattern. One orchestrator coordinates four specialized workers that handle document processing, IT provisioning, training assembly, and progress tracking. Vendor-agnostic. Phased rollout. Production-ready specification.\n\n## Business Problem\n\nEmployee onboarding is broken at most organizations. The symptoms are predictable:\n\n- **Slow ramp time.** New hires wait days or weeks for accounts, hardware, and access. Their first impression is sitting idle.\n- **Inconsistent experience.** Onboarding quality depends on which manager or HR generalist handles it. Some new hires get a structured first week. Others get a laptop and a \"good luck.\"\n- **Manual tracking.** HR teams juggle spreadsheets, email threads, and tribal knowledge to track who has completed what. Things fall through the cracks constantly.\n- **Compliance gaps.** Tax forms, NDAs, and mandatory training have hard deadlines. Manual processes miss them. The company eats the risk.\n- **IT provisioning delays.** Account creation, software licenses, and access permissions require multiple teams and multiple tickets. Coordination overhead is enormous.\n\nThese problems scale linearly with headcount. A company hiring 50 people per quarter has 50 opportunities per quarter for something to go wrong.\n\n## Solution Architecture\n\n- **Platform:** Vendor-agnostic (adaptable to any HR, IT, or workflow platform)\n- **Pattern:** Manager-Workers\n- **Agents:** 5\n\n| # | Agent | Role | Type |\n|---|-------|------|------|\n| 1 | Onboarding Orchestrator | Coordinates full onboarding lifecycle, manages task dependencies, tracks completion, escalates blockers | Manager |\n| 2 | Document Processor | Collects, validates, and processes new hire documentation (tax forms, ID verification, benefits enrollment, NDAs) | Worker |\n| 3 | IT Provisioning Coordinator | Provisions accounts, hardware, software licenses, access permissions, and environment setup | Worker |\n| 4 | Training Curriculum Assembler | Builds personalized training paths based on role, department, and experience level | Worker |\n| 5 | Progress Tracker | Monitors onboarding milestones, generates status reports, identifies at-risk onboards, triggers reminders | Worker |\n\n## Phase 1: Pilot\n\n**Goal:** Validate the core pattern with the two highest-impact agents before investing in the full system.\n\n**Duration:** 4 weeks\n\n**Why these two agents first:** Document processing is the highest-volume, most error-prone part of onboarding. The orchestrator is required regardless. Together they prove the architecture works and deliver measurable value.\n\n### Pilot Workstreams\n\n1. **Week 1-2: Scaffold and integrate.** Deploy the Onboarding Orchestrator and Document Processor. Connect to the HR system's new-hire event trigger. Wire up document collection and validation workflows.\n2. **Week 2-3: Run parallel.** Process real new hires through both the automated system and the existing manual process. Compare results side by side.\n3. **Week 3-4: Measure and decide.** Collect metrics against the decision gate criteria below. Present findings to stakeholders.\n\n### Decision Gate Criteria\n\nThe pilot passes if ALL of the following are met:\n\n- Document processing accuracy > 95% (first-pass completion without human correction)\n- Time from new-hire event to document completion reduced by > 50% vs. manual baseline\n- Zero compliance gaps (no missed deadlines for required documents)\n- No critical errors requiring manual intervention more than once per 20 onboards\n\n### Exit Criteria\n\n- Stakeholder sign-off on pilot metrics\n- Architecture validated for adding additional workers\n- Integration patterns documented for reuse in Phase 2\n\n## Phase 2: Full Implementation\n\n**Duration:** 6 weeks\n\n**Scope:** Add the remaining three workers to the validated architecture.\n\n1. **IT Provisioning Coordinator** (Weeks 1-3): Account creation, hardware assignment, software licensing, access permissions. Integrates with identity management and IT service management systems.\n2. **Training Curriculum Assembler** (Weeks 2-4): Personalized training path generation based on role, department, seniority, and compliance requirements. Integrates with learning management systems.\n3. **Progress Tracker** (Weeks 3-6): Real-time milestone monitoring, at-risk identification, automated reminders, and status reporting for HR and hiring managers.\n\nWorkers are deployed incrementally. Each new worker is validated independently before the next begins.\n\n## Agent Specifications Summary\n\n1. **Onboarding Orchestrator** - Manager agent that coordinates the full onboarding lifecycle from new-hire event to Day 90 completion.\n2. **Document Processor** - Collects, validates, and routes all required new-hire documentation with compliance deadline enforcement.\n3. **IT Provisioning Coordinator** - Provisions accounts, hardware, software, and access permissions with Day 1 readiness as the target.\n4. **Training Curriculum Assembler** - Builds role-specific, department-aware training paths and tracks module completion.\n5. **Progress Tracker** - Monitors all onboarding milestones, flags at-risk onboards, and generates status reports for stakeholders.\n\nFull specifications including tools, data contracts, and success metrics: `references/agent-specifications.md`\n\n## Risk & Governance Summary\n\n### Top 3 Technical Risks\n\n1. **Integration fragility.** HR, IT, and document systems have different APIs, data formats, and reliability characteristics. A single integration failure can stall an entire onboarding.\n2. **PII exposure.** Onboarding involves SSNs, government IDs, bank account details, and medical information. Every data flow is a potential leak.\n3. **State synchronization.** Five agents operating on overlapping data create race conditions and consistency risks. The orchestrator must be the single source of truth.\n\n### Top 3 Business Risks\n\n1. **Employee experience degradation.** Automation that feels robotic or impersonal can make onboarding worse, not better. Human touchpoints must be preserved for high-impact moments.\n2. **Compliance liability.** Automated document processing that misses a required form or accepts an invalid one creates legal exposure.\n3. **Change management resistance.** HR teams and hiring managers have established workflows. Forcing adoption without demonstrating value creates friction and workarounds.\n\nFull risk analysis, escalation rules, and governance framework: `references/guardrails-and-governance.md`\n\n## How to Use This Spec\n\n1. Read this file top to bottom to understand the architecture and phasing.\n2. Read `GETTING-STARTED.md` for implementation instructions.\n3. Read `references/agent-specifications.md` for detailed agent definitions, tools, and data contracts.\n4. Read `references/platform-connectivity.md` to plan your integrations.\n5. Use `implementation-state.yaml` to track your build progress as you go.\n\n---\n\nGenerated by [Agent Blueprint](https://agentblueprint.ai) - Free Community Blueprint\n";
@@ -0,0 +1,126 @@
1
+ export const content = `---
2
+ name: employee-onboarding-automation
3
+ description: >-
4
+ Implementation specification for Employee Onboarding Automation. 5 AI agents,
5
+ Manager-Workers pattern, vendor-agnostic.
6
+ compatibility: Any coding agent (Claude Code, Codex, Cursor).
7
+ metadata:
8
+ generated-by: agent-blueprint
9
+ generated-at: "2026-04-08T00:00:00.000Z"
10
+ blueprint-id: "free-employee-onboarding"
11
+ target-platform: "vendor_agnostic"
12
+ agent-count: "5"
13
+ pattern: "Manager-Workers"
14
+ investment-tier: "medium"
15
+ ---
16
+
17
+ # Implementation Specification
18
+
19
+ > Automate the employee onboarding lifecycle with 5 AI agents in a Manager-Workers pattern. One orchestrator coordinates four specialized workers that handle document processing, IT provisioning, training assembly, and progress tracking. Vendor-agnostic. Phased rollout. Production-ready specification.
20
+
21
+ ## Business Problem
22
+
23
+ Employee onboarding is broken at most organizations. The symptoms are predictable:
24
+
25
+ - **Slow ramp time.** New hires wait days or weeks for accounts, hardware, and access. Their first impression is sitting idle.
26
+ - **Inconsistent experience.** Onboarding quality depends on which manager or HR generalist handles it. Some new hires get a structured first week. Others get a laptop and a "good luck."
27
+ - **Manual tracking.** HR teams juggle spreadsheets, email threads, and tribal knowledge to track who has completed what. Things fall through the cracks constantly.
28
+ - **Compliance gaps.** Tax forms, NDAs, and mandatory training have hard deadlines. Manual processes miss them. The company eats the risk.
29
+ - **IT provisioning delays.** Account creation, software licenses, and access permissions require multiple teams and multiple tickets. Coordination overhead is enormous.
30
+
31
+ These problems scale linearly with headcount. A company hiring 50 people per quarter has 50 opportunities per quarter for something to go wrong.
32
+
33
+ ## Solution Architecture
34
+
35
+ - **Platform:** Vendor-agnostic (adaptable to any HR, IT, or workflow platform)
36
+ - **Pattern:** Manager-Workers
37
+ - **Agents:** 5
38
+
39
+ | # | Agent | Role | Type |
40
+ |---|-------|------|------|
41
+ | 1 | Onboarding Orchestrator | Coordinates full onboarding lifecycle, manages task dependencies, tracks completion, escalates blockers | Manager |
42
+ | 2 | Document Processor | Collects, validates, and processes new hire documentation (tax forms, ID verification, benefits enrollment, NDAs) | Worker |
43
+ | 3 | IT Provisioning Coordinator | Provisions accounts, hardware, software licenses, access permissions, and environment setup | Worker |
44
+ | 4 | Training Curriculum Assembler | Builds personalized training paths based on role, department, and experience level | Worker |
45
+ | 5 | Progress Tracker | Monitors onboarding milestones, generates status reports, identifies at-risk onboards, triggers reminders | Worker |
46
+
47
+ ## Phase 1: Pilot
48
+
49
+ **Goal:** Validate the core pattern with the two highest-impact agents before investing in the full system.
50
+
51
+ **Duration:** 4 weeks
52
+
53
+ **Why these two agents first:** Document processing is the highest-volume, most error-prone part of onboarding. The orchestrator is required regardless. Together they prove the architecture works and deliver measurable value.
54
+
55
+ ### Pilot Workstreams
56
+
57
+ 1. **Week 1-2: Scaffold and integrate.** Deploy the Onboarding Orchestrator and Document Processor. Connect to the HR system's new-hire event trigger. Wire up document collection and validation workflows.
58
+ 2. **Week 2-3: Run parallel.** Process real new hires through both the automated system and the existing manual process. Compare results side by side.
59
+ 3. **Week 3-4: Measure and decide.** Collect metrics against the decision gate criteria below. Present findings to stakeholders.
60
+
61
+ ### Decision Gate Criteria
62
+
63
+ The pilot passes if ALL of the following are met:
64
+
65
+ - Document processing accuracy > 95% (first-pass completion without human correction)
66
+ - Time from new-hire event to document completion reduced by > 50% vs. manual baseline
67
+ - Zero compliance gaps (no missed deadlines for required documents)
68
+ - No critical errors requiring manual intervention more than once per 20 onboards
69
+
70
+ ### Exit Criteria
71
+
72
+ - Stakeholder sign-off on pilot metrics
73
+ - Architecture validated for adding additional workers
74
+ - Integration patterns documented for reuse in Phase 2
75
+
76
+ ## Phase 2: Full Implementation
77
+
78
+ **Duration:** 6 weeks
79
+
80
+ **Scope:** Add the remaining three workers to the validated architecture.
81
+
82
+ 1. **IT Provisioning Coordinator** (Weeks 1-3): Account creation, hardware assignment, software licensing, access permissions. Integrates with identity management and IT service management systems.
83
+ 2. **Training Curriculum Assembler** (Weeks 2-4): Personalized training path generation based on role, department, seniority, and compliance requirements. Integrates with learning management systems.
84
+ 3. **Progress Tracker** (Weeks 3-6): Real-time milestone monitoring, at-risk identification, automated reminders, and status reporting for HR and hiring managers.
85
+
86
+ Workers are deployed incrementally. Each new worker is validated independently before the next begins.
87
+
88
+ ## Agent Specifications Summary
89
+
90
+ 1. **Onboarding Orchestrator** - Manager agent that coordinates the full onboarding lifecycle from new-hire event to Day 90 completion.
91
+ 2. **Document Processor** - Collects, validates, and routes all required new-hire documentation with compliance deadline enforcement.
92
+ 3. **IT Provisioning Coordinator** - Provisions accounts, hardware, software, and access permissions with Day 1 readiness as the target.
93
+ 4. **Training Curriculum Assembler** - Builds role-specific, department-aware training paths and tracks module completion.
94
+ 5. **Progress Tracker** - Monitors all onboarding milestones, flags at-risk onboards, and generates status reports for stakeholders.
95
+
96
+ Full specifications including tools, data contracts, and success metrics: \`references/agent-specifications.md\`
97
+
98
+ ## Risk & Governance Summary
99
+
100
+ ### Top 3 Technical Risks
101
+
102
+ 1. **Integration fragility.** HR, IT, and document systems have different APIs, data formats, and reliability characteristics. A single integration failure can stall an entire onboarding.
103
+ 2. **PII exposure.** Onboarding involves SSNs, government IDs, bank account details, and medical information. Every data flow is a potential leak.
104
+ 3. **State synchronization.** Five agents operating on overlapping data create race conditions and consistency risks. The orchestrator must be the single source of truth.
105
+
106
+ ### Top 3 Business Risks
107
+
108
+ 1. **Employee experience degradation.** Automation that feels robotic or impersonal can make onboarding worse, not better. Human touchpoints must be preserved for high-impact moments.
109
+ 2. **Compliance liability.** Automated document processing that misses a required form or accepts an invalid one creates legal exposure.
110
+ 3. **Change management resistance.** HR teams and hiring managers have established workflows. Forcing adoption without demonstrating value creates friction and workarounds.
111
+
112
+ Full risk analysis, escalation rules, and governance framework: \`references/guardrails-and-governance.md\`
113
+
114
+ ## How to Use This Spec
115
+
116
+ 1. Read this file top to bottom to understand the architecture and phasing.
117
+ 2. Read \`GETTING-STARTED.md\` for implementation instructions.
118
+ 3. Read \`references/agent-specifications.md\` for detailed agent definitions, tools, and data contracts.
119
+ 4. Read \`references/platform-connectivity.md\` to plan your integrations.
120
+ 5. Use \`implementation-state.yaml\` to track your build progress as you go.
121
+
122
+ ---
123
+
124
+ Generated by [Agent Blueprint](https://agentblueprint.ai) - Free Community Blueprint
125
+ `;
126
+ //# sourceMappingURL=skill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill.js","sourceRoot":"","sources":["../../../../src/blueprints/employee-onboarding/files/skill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4HtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Blueprint } from '../../types.js';
2
+ export declare const employeeOnboarding: Blueprint;
@@ -0,0 +1,37 @@
1
+ import { content as skill } from './files/skill.js';
2
+ import { content as gettingStarted } from './files/getting-started.js';
3
+ import { content as agents } from './files/agents.js';
4
+ import { content as implementationState } from './files/implementation-state.js';
5
+ import { content as agentSpecifications } from './files/agent-specifications.js';
6
+ import { content as architectureDecisions } from './files/architecture-decisions.js';
7
+ import { content as guardrailsAndGovernance } from './files/guardrails-and-governance.js';
8
+ import { content as evaluationCriteria } from './files/evaluation-criteria.js';
9
+ import { content as platformConnectivity } from './files/platform-connectivity.js';
10
+ import { content as businessContext } from './files/business-context.js';
11
+ export const employeeOnboarding = {
12
+ catalog: {
13
+ id: 'employee-onboarding',
14
+ title: 'Employee Onboarding Automation',
15
+ description: 'Automate document processing, IT provisioning, training assembly, and progress tracking with 5 AI agents in a Manager-Workers pattern.',
16
+ agentCount: 5,
17
+ pattern: 'Manager-Workers',
18
+ category: 'Human Resources',
19
+ },
20
+ manifest: {
21
+ directory: 'employee-onboarding-automation',
22
+ files: [
23
+ { path: 'SKILL.md', content: skill },
24
+ { path: 'GETTING-STARTED.md', content: gettingStarted },
25
+ { path: 'AGENTS.md', content: agents },
26
+ { path: 'implementation-state.yaml', content: implementationState },
27
+ { path: 'references/agent-specifications.md', content: agentSpecifications },
28
+ { path: 'references/architecture-decisions.md', content: architectureDecisions },
29
+ { path: 'references/guardrails-and-governance.md', content: guardrailsAndGovernance },
30
+ { path: 'references/evaluation-criteria.md', content: evaluationCriteria },
31
+ { path: 'references/platform-connectivity.md', content: platformConnectivity },
32
+ { path: 'references/business-context.md', content: businessContext },
33
+ ],
34
+ installHint: 'Write these files to .agent-blueprint/employee-onboarding-automation/',
35
+ },
36
+ };
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/blueprints/employee-onboarding/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEzE,MAAM,CAAC,MAAM,kBAAkB,GAAc;IAC3C,OAAO,EAAE;QACP,EAAE,EAAE,qBAAqB;QACzB,KAAK,EAAE,gCAAgC;QACvC,WAAW,EACT,wIAAwI;QAC1I,UAAU,EAAE,CAAC;QACb,OAAO,EAAE,iBAAiB;QAC1B,QAAQ,EAAE,iBAAiB;KAC5B;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,gCAAgC;QAC3C,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE;YACpC,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,cAAc,EAAE;YACvD,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE;YACtC,EAAE,IAAI,EAAE,2BAA2B,EAAE,OAAO,EAAE,mBAAmB,EAAE;YACnE,EAAE,IAAI,EAAE,oCAAoC,EAAE,OAAO,EAAE,mBAAmB,EAAE;YAC5E,EAAE,IAAI,EAAE,sCAAsC,EAAE,OAAO,EAAE,qBAAqB,EAAE;YAChF,EAAE,IAAI,EAAE,yCAAyC,EAAE,OAAO,EAAE,uBAAuB,EAAE;YACrF,EAAE,IAAI,EAAE,mCAAmC,EAAE,OAAO,EAAE,kBAAkB,EAAE;YAC1E,EAAE,IAAI,EAAE,qCAAqC,EAAE,OAAO,EAAE,oBAAoB,EAAE;YAC9E,EAAE,IAAI,EAAE,gCAAgC,EAAE,OAAO,EAAE,eAAe,EAAE;SACrE;QACD,WAAW,EAAE,uEAAuE;KACrF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Blueprint, BlueprintCatalogEntry } from '../types.js';
2
+ export declare function getCatalog(): BlueprintCatalogEntry[];
3
+ export declare function getBlueprint(id: string): Blueprint | undefined;
@@ -0,0 +1,14 @@
1
+ import { rfxProcurement } from './rfx-procurement/index.js';
2
+ import { employeeOnboarding } from './employee-onboarding/index.js';
3
+ const blueprints = [
4
+ rfxProcurement,
5
+ employeeOnboarding,
6
+ ];
7
+ const blueprintMap = new Map(blueprints.map((bp) => [bp.catalog.id, bp]));
8
+ export function getCatalog() {
9
+ return blueprints.map((bp) => bp.catalog);
10
+ }
11
+ export function getBlueprint(id) {
12
+ return blueprintMap.get(id);
13
+ }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/blueprints/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,UAAU,GAAgB;IAC9B,cAAc;IACd,kBAAkB;CACnB,CAAC;AAEF,MAAM,YAAY,GAAG,IAAI,GAAG,CAC1B,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAC5C,CAAC;AAEF,MAAM,UAAU,UAAU;IACxB,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,EAAU;IACrC,OAAO,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC9B,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const content = "# Agent Specifications\n\nDetailed specifications for all 5 agents in the RFx Procurement Automation system. Each entry defines the agent's role, tools, data contracts, escalation conditions, and success metrics.\n\n---\n\n## 1. RFx Orchestrator\n\n- **Role:** Manager\n- **Type:** Orchestrator\n- **Phase:** 1\n\n### Responsibilities\n\n- Accept incoming RFx documents and classify them by type (RFP, RFQ, RFI).\n- Create and maintain a tracking record for each RFx through its full lifecycle.\n- Route tasks to the appropriate worker agents based on the current stage of processing.\n- Enforce approval gates at configured checkpoints (e.g., before response submission).\n- Monitor task completion, enforce timeouts, and handle retries and escalations.\n\n### Tools\n\n#### assign_rfx_task\n\nAssigns a specific task to a worker agent. Creates a task record linked to the RFx tracking record.\n\n- **Inputs:** `rfx_id` (string), `target_agent` (string, one of: requirements_analyzer, content_library_matcher, response_composer, compliance_validator), `task_type` (string, e.g., \"extract_requirements\", \"match_content\", \"compose_response\", \"validate_compliance\"), `payload` (object, task-specific data including relevant document content or prior stage outputs).\n- **Outputs:** `task_id` (string), `status` (\"assigned\"), `assigned_at` (ISO-8601 timestamp).\n\n#### check_completion_status\n\nChecks the current status of all tasks for a given RFx.\n\n- **Inputs:** `rfx_id` (string).\n- **Outputs:** `rfx_id` (string), `overall_status` (string: \"intake\", \"requirements_extracted\", \"content_matched\", \"response_drafted\", \"compliance_validated\", \"pending_approval\", \"submitted\", \"failed\"), `tasks` (array of objects with `task_id`, `agent`, `status`, `completed_at`, `error` if applicable).\n\n#### enforce_approval_gate\n\nTriggers a human approval checkpoint. Pauses processing until approval is received or the request is rejected.\n\n- **Inputs:** `rfx_id` (string), `gate_type` (string: \"phase1_exit\", \"response_review\", \"final_submission\"), `artifacts` (array of objects describing what the approver should review, each with `type` and `content_reference`).\n- **Outputs:** `gate_id` (string), `status` (\"pending_approval\"), `approvers` (array of strings, stakeholder identifiers), `requested_at` (ISO-8601 timestamp).\n\n#### notify_stakeholders\n\nSends a notification to relevant stakeholders about RFx status changes, approaching deadlines, or required actions.\n\n- **Inputs:** `rfx_id` (string), `notification_type` (string: \"status_update\", \"deadline_warning\", \"approval_required\", \"escalation\"), `recipients` (array of strings), `message` (string).\n- **Outputs:** `notification_id` (string), `sent_at` (ISO-8601 timestamp), `delivery_status` (string).\n\n### Input Contract\n\nThe Orchestrator receives raw RFx documents (PDF, DOCX, or plain text) along with metadata: `source_channel` (where the document came from), `received_at` (timestamp), `submitting_organization` (if known), and `priority` (optional override).\n\n### Output Contract\n\nThe Orchestrator produces a complete RFx tracking record including: classification, extracted requirements (from Requirements Analyzer), matched content (from Content Library Matcher), draft responses (from Response Composer), compliance report (from Compliance Validator), approval status, and audit log of all actions taken.\n\n### Escalation Conditions\n\n- Any worker fails twice on the same task.\n- A deadline conflict is detected (submission deadline is within 48 hours and processing is incomplete).\n- An approval gate is rejected by a reviewer.\n- The RFx document cannot be classified (unknown format or type).\n\n### Success Metrics\n\n- **Routing accuracy:** > 95% of tasks assigned to the correct worker on the first attempt.\n- **End-to-end cycle time:** Total processing time from intake to draft-ready is measurable and decreasing over time.\n- **Zero dropped RFx documents:** Every document that enters the system has a tracking record and reaches a terminal state.\n\n---\n\n## 2. Requirements Analyzer\n\n- **Role:** Worker\n- **Type:** Specialist\n- **Phase:** 1\n\n### Responsibilities\n\n- Parse RFx documents in multiple formats (PDF, DOCX, plain text) into structured content.\n- Extract individual requirements from document text, including nested and conditional requirements.\n- Categorize each requirement as mandatory, scored, or informational.\n- Identify all deadlines, milestones, and time-bound constraints.\n- Flag ambiguous or contradictory requirements for human review.\n\n### Tools\n\n#### parse_rfx_document\n\nConverts a raw RFx document into structured sections and paragraphs for downstream processing.\n\n- **Inputs:** `document_content` (string or binary reference), `document_format` (string: \"pdf\", \"docx\", \"txt\", \"html\"), `document_type` (string: \"rfp\", \"rfq\", \"rfi\" if known, or \"unknown\").\n- **Outputs:** `parsed_document` (object with `sections` array, each containing `section_number`, `title`, `content`, `subsections`), `metadata` (object with `page_count`, `word_count`, `detected_type`, `issuing_organization`), `parse_confidence` (number 0-1).\n\n#### extract_requirements\n\nIdentifies and extracts individual requirements from parsed document sections.\n\n- **Inputs:** `parsed_sections` (array of section objects from parse_rfx_document output), `extraction_rules` (optional object with custom keyword patterns or section hints).\n- **Outputs:** `requirements` (array of objects, each with `requirement_id`, `text`, `source_section`, `source_page`, `keywords` array, `confidence` score 0-1).\n\n#### categorize_requirements\n\nClassifies extracted requirements by type and priority.\n\n- **Inputs:** `requirements` (array of requirement objects from extract_requirements output).\n- **Outputs:** `categorized_requirements` (array of objects extending each requirement with `category` (string: \"mandatory\", \"scored\", \"informational\"), `priority` (string: \"critical\", \"high\", \"medium\", \"low\"), `evaluation_weight` (number, if stated in the document), `categorization_confidence` (number 0-1)).\n\n#### identify_deadlines\n\nExtracts all time-bound constraints from the document.\n\n- **Inputs:** `parsed_document` (object from parse_rfx_document), `reference_date` (ISO-8601, typically the document receipt date for calculating relative deadlines).\n- **Outputs:** `deadlines` (array of objects, each with `deadline_type` (string: \"submission\", \"questions_due\", \"site_visit\", \"notification\", \"other\"), `date` (ISO-8601), `description` (string), `source_section` (string), `is_mandatory` (boolean)).\n\n### Input Contract\n\nReceives a raw RFx document (content or reference) and its format. May also receive optional extraction hints from the Orchestrator based on the document type classification.\n\n### Output Contract\n\nReturns structured data: parsed document sections, extracted and categorized requirements, and identified deadlines. All outputs include confidence scores. Requirements with confidence below 0.7 are flagged for human review.\n\n### Escalation Conditions\n\n- Document parse confidence falls below 0.6 (heavily formatted, scanned image, or corrupted file).\n- More than 20% of extracted requirements have categorization confidence below 0.7.\n- Contradictory requirements detected (e.g., two mutually exclusive mandatory conditions).\n- Document contains embedded files or references to external documents that cannot be resolved.\n\n### Success Metrics\n\n- **Extraction recall:** > 95% of requirements identified compared to human baseline.\n- **Categorization accuracy:** > 90% of requirements correctly categorized (mandatory/scored/informational).\n- **Deadline identification:** 100% of submission deadlines correctly extracted.\n\n---\n\n## 3. Content Library Matcher\n\n- **Role:** Worker\n- **Type:** Specialist\n- **Phase:** 2\n\n### Responsibilities\n\n- Search organizational knowledge bases for content relevant to each extracted requirement.\n- Score the relevance of matched content against specific requirement text.\n- Identify content gaps where no existing material adequately addresses a requirement.\n- Track content freshness and flag stale matches that may need SME review.\n\n### Tools\n\n#### search_knowledge_base\n\nPerforms semantic and keyword search across configured content repositories.\n\n- **Inputs:** `query` (string, the requirement text or a derived search query), `filters` (optional object with `content_type` array, `max_age_days` number, `source_repository` string), `max_results` (number, default 10).\n- **Outputs:** `results` (array of objects, each with `content_id`, `title`, `snippet` (relevant excerpt), `source` (repository name and path), `last_updated` (ISO-8601), `content_type` (string: \"previous_response\", \"policy_document\", \"technical_spec\", \"marketing_material\")).\n\n#### score_content_relevance\n\nEvaluates how well a piece of content addresses a specific requirement.\n\n- **Inputs:** `requirement` (object with `requirement_id`, `text`, `category`), `content_candidates` (array of content objects from search results).\n- **Outputs:** `scored_matches` (array of objects, each with `content_id`, `relevance_score` (number 0-100), `coverage_assessment` (string: \"full\", \"partial\", \"tangential\"), `reuse_recommendation` (string: \"use_as_is\", \"adapt\", \"reference_only\"), `staleness_flag` (boolean, true if content is older than 12 months)).\n\n#### identify_content_gaps\n\nAnalyzes the set of requirements against available content matches to find gaps.\n\n- **Inputs:** `requirements` (array of categorized requirement objects), `matches` (array of scored match results, keyed by requirement_id).\n- **Outputs:** `gaps` (array of objects, each with `requirement_id`, `gap_type` (string: \"no_match\", \"low_relevance\", \"stale_only\", \"partial_coverage\"), `recommended_action` (string: \"generate_new\", \"request_sme_input\", \"adapt_partial_match\"), `priority` (string based on requirement category and evaluation weight)).\n\n### Input Contract\n\nReceives categorized requirements from the Requirements Analyzer (via the Orchestrator). Needs access to configured knowledge base endpoints.\n\n### Output Contract\n\nReturns a mapping of requirements to content matches with relevance scores, plus a gap analysis identifying requirements that need original content or SME input.\n\n### Escalation Conditions\n\n- Knowledge base connection fails or returns errors.\n- More than 50% of mandatory requirements have no match above relevance score 60.\n- Content freshness check reveals the majority of top matches are older than 18 months.\n\n### Success Metrics\n\n- **Average relevance score:** > 80% for top match per requirement.\n- **Gap identification accuracy:** > 90% agreement with human assessment of content coverage.\n- **Search latency:** < 5 seconds per requirement query.\n\n---\n\n## 4. Response Composer\n\n- **Role:** Worker\n- **Type:** Specialist\n- **Phase:** 2\n\n### Responsibilities\n\n- Assemble draft responses from matched content, adapting tone and structure to match the RFx requirements.\n- Generate new content for requirements where no adequate existing content was found.\n- Maintain consistent formatting, voice, and structure across all response sections.\n- Flag all generated (non-reused) content for mandatory SME review.\n\n### Tools\n\n#### assemble_response_draft\n\nCombines matched content into a structured response for a set of requirements.\n\n- **Inputs:** `requirements` (array of requirement objects with their matched content), `response_structure` (object defining section order, numbering scheme, and formatting rules from the RFx), `tone_guidelines` (optional object with `formality_level`, `voice`, `prohibited_terms`).\n- **Outputs:** `draft_response` (object with `sections` array, each containing `section_id`, `requirement_ids` addressed, `content` (assembled text), `content_sources` (array of content_ids used), `is_generated` (boolean, false for reused content), `confidence` (number 0-1)).\n\n#### generate_gap_content\n\nCreates original content for requirements where no suitable existing content was found.\n\n- **Inputs:** `requirement` (object with full requirement details), `context` (object with `organization_profile` if available, `related_content` array of tangentially relevant matches, `gap_type` from Content Library Matcher).\n- **Outputs:** `generated_content` (object with `text`, `confidence` (number 0-1), `requires_sme_review` (always true for generated content), `review_notes` (string describing what the SME should verify), `sources_referenced` (array of content_ids used as context)).\n\n#### format_response_document\n\nApplies formatting rules from the RFx to the assembled draft.\n\n- **Inputs:** `draft_sections` (array of section objects from assemble_response_draft), `formatting_rules` (object with `page_limit`, `font_requirements`, `margin_requirements`, `section_numbering_scheme`, `required_appendices`).\n- **Outputs:** `formatted_document` (object with `sections` array with formatting applied, `total_pages` (estimated), `formatting_warnings` (array of strings describing any rule violations, e.g., \"Section 3 exceeds recommended length by 200 words\")).\n\n### Input Contract\n\nReceives requirement-to-content mappings and gap analysis from the Content Library Matcher (via Orchestrator). Also receives formatting rules extracted by the Requirements Analyzer.\n\n### Output Contract\n\nReturns a complete draft response document with clear tracking of which content is reused vs. generated. All generated content is flagged for SME review. Formatting warnings are included for any rule violations.\n\n### Escalation Conditions\n\n- More than 30% of the response consists of generated (non-reused) content. This indicates a significant knowledge base gap.\n- Formatting rules cannot be satisfied (e.g., response exceeds page limit even after condensing).\n- Contradictory formatting requirements are detected.\n\n### Success Metrics\n\n- **Response completeness:** 100% of mandatory requirements have a corresponding response section.\n- **Content reuse rate:** > 60% of response content sourced from existing library (higher is better, indicates library health).\n- **Formatting compliance:** Zero formatting rule violations in final output.\n\n---\n\n## 5. Compliance Validator\n\n- **Role:** Worker\n- **Type:** Specialist\n- **Phase:** 2\n\n### Responsibilities\n\n- Cross-check every response section against the full set of mandatory requirements.\n- Validate that formatting rules (page limits, font, margins, section structure) are met.\n- Flag incomplete, non-responsive, or ambiguous response sections.\n- Produce a compliance report summarizing pass/fail status for every requirement and formatting rule.\n\n### Tools\n\n#### validate_mandatory_requirements\n\nChecks that every mandatory requirement has a corresponding response that substantively addresses it.\n\n- **Inputs:** `mandatory_requirements` (array of requirement objects where category is \"mandatory\"), `response_sections` (array of draft response sections with their addressed requirement_ids).\n- **Outputs:** `validation_results` (array of objects, each with `requirement_id`, `status` (string: \"addressed\", \"partially_addressed\", \"not_addressed\", \"non_responsive\"), `matched_section_id` (string or null), `assessment_notes` (string describing any concerns), `confidence` (number 0-1)).\n\n#### check_formatting_rules\n\nValidates the formatted document against all formatting requirements specified in the RFx.\n\n- **Inputs:** `formatted_document` (object from Response Composer), `formatting_rules` (object with all extracted formatting requirements).\n- **Outputs:** `formatting_compliance` (object with `overall_status` (string: \"compliant\", \"non_compliant\", \"warnings\"), `checks` (array of objects, each with `rule` (string), `status` (string: \"pass\", \"fail\", \"warning\"), `details` (string))).\n\n#### flag_incomplete_sections\n\nIdentifies response sections that are incomplete, vague, or non-responsive to their target requirements.\n\n- **Inputs:** `response_sections` (array of draft response sections), `requirements` (array of all requirements with categories).\n- **Outputs:** `flags` (array of objects, each with `section_id`, `requirement_id`, `flag_type` (string: \"incomplete\", \"vague\", \"non_responsive\", \"placeholder_detected\", \"unsubstantiated_claim\"), `severity` (string: \"blocking\", \"warning\"), `description` (string), `recommended_action` (string)).\n\n### Input Contract\n\nReceives the formatted draft response from the Response Composer (via Orchestrator), the full set of categorized requirements from the Requirements Analyzer, and the formatting rules.\n\n### Output Contract\n\nReturns a comprehensive compliance report with: per-requirement validation status, formatting compliance results, and flagged sections with severity and recommended actions. Any \"blocking\" flags prevent the response from proceeding to human approval without remediation.\n\n### Escalation Conditions\n\n- Any mandatory requirement has status \"not_addressed.\"\n- Formatting compliance overall status is \"non_compliant\" and cannot be remediated automatically.\n- More than 3 sections flagged as \"non_responsive.\"\n\n### Success Metrics\n\n- **Compliance check accuracy:** > 98% agreement with human compliance review.\n- **False negative rate:** < 1% (missed compliance issues that a human reviewer catches).\n- **Validation throughput:** Complete validation of a full RFx response in under 10 minutes.\n";