File size: 12,395 Bytes
518343a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
import { DOMAIN_PROFILES } from '@szl-holdings/domain-profiles';

export const SEVEN_PRINCIPLES = [
  {
    step: '01',
    label: 'Ingest',
    glyph: '↓',
    desc: 'Ingest data from multiple systems — market feeds, IoT telemetry, document streams, API webhooks — and unify them into a business ontology.',
  },
  {
    step: '02',
    label: 'Understand',
    glyph: '◉',
    desc: 'Interpret signals and goals using domain intelligence and context memory. Build causal graphs that answer why, not just what.',
  },
  {
    step: '03',
    label: 'Plan',
    glyph: '⬡',
    desc: 'A planner agent decomposes objectives into steps and assigns them to specialized operators — research, execution, risk, and verification.',
  },
  {
    step: '04',
    label: 'Act',
    glyph: '→',
    desc: 'Execution agents call tools and services via the tool fabric. Every call requires proper permissions. Sensitive actions require human approval.',
  },
  {
    step: '05',
    label: 'Verify',
    glyph: '✓',
    desc: 'Verifier agents ensure tasks executed successfully and match expected business outcomes before the proof chain is closed.',
  },
  {
    step: '06',
    label: 'Audit',
    glyph: '◆',
    desc: 'The Proof Chain logs each step, tool call, approval, and result in an immutable, queryable record built for compliance.',
  },
  {
    step: '07',
    label: 'Learn',
    glyph: '↻',
    desc: 'Outcome memory captures what worked and what did not — feeding calibrated confidence back to the next cycle.',
  },
] as const;

export type PrincipleLabel = typeof SEVEN_PRINCIPLES[number]['label'];

export const PRINCIPLE_LABELS: PrincipleLabel[] = SEVEN_PRINCIPLES.map(p => p.label);

export const BLUEPRINT_COMPONENTS = [
  {
    id: 'agent-runtime',
    name: 'Agent Runtime',
    purpose: "Manages every agent's identity, state, memory, reasoning trace, task lifecycle, and audit logs — the central orchestration engine.",
    principles: ['Plan', 'Act', 'Audit'] as PrincipleLabel[],
    adjacent: ['Agent Roles', 'Orchestration', 'Agent Identity'],
    category: 'Core' as const,
  },
  {
    id: 'business-ontology',
    name: 'Business Ontology',
    purpose: 'A domain-specific model of objects, events, roles, policies, and outcomes that provides meaning to data and actions across verticals.',
    principles: ['Ingest', 'Understand'] as PrincipleLabel[],
    adjacent: ['Tool Fabric', 'Memory', 'Agent Runtime'],
    category: 'Intelligence' as const,
  },
  {
    id: 'tool-fabric',
    name: 'Tool Fabric',
    purpose: 'Standardized connectors to enterprise systems with input/output schemas, permission requirements, risk levels, approval requirements, and rollback options.',
    principles: ['Act', 'Audit'] as PrincipleLabel[],
    adjacent: ['Business Ontology', 'Human-in-the-Loop', 'Agent Runtime'],
    category: 'Execution' as const,
  },
  {
    id: 'human-in-the-loop',
    name: 'Human-in-the-Loop',
    purpose: 'Human approvals are first-class. Agents recommend; humans approve, edit, or reject. Approval gates pause execution and persist state for safe resumption.',
    principles: ['Act', 'Verify'] as PrincipleLabel[],
    adjacent: ['Tool Fabric', 'Durable Execution', 'Command Surface'],
    category: 'Governance' as const,
  },
  {
    id: 'durable-execution',
    name: 'Durable Execution',
    purpose: 'Workflows persist state, survive interruptions, and resume from the last checkpoint. Agents cannot lose progress across long-running tasks.',
    principles: ['Act', 'Verify'] as PrincipleLabel[],
    adjacent: ['Human-in-the-Loop', 'Agent Runtime', 'Evaluation'],
    category: 'Execution' as const,
  },
  {
    id: 'agent-roles',
    name: 'Agent Roles',
    purpose: 'Specialized agents — planner, research, execution, verifier, risk, narrative, audit — each with defined scope, tool access, and handoff contracts.',
    principles: ['Plan', 'Act', 'Verify'] as PrincipleLabel[],
    adjacent: ['Agent Runtime', 'Agent Identity', 'Orchestration'],
    category: 'Core' as const,
  },
  {
    id: 'evaluation',
    name: 'Evaluation',
    purpose: 'An evaluation harness that scores agents on accuracy, success rate, hallucination rate, approval compliance, cost, and outcome quality.',
    principles: ['Verify', 'Learn'] as PrincipleLabel[],
    adjacent: ['Durable Execution', 'Memory', 'Agent Runtime'],
    category: 'Intelligence' as const,
  },
  {
    id: 'memory',
    name: 'Memory',
    purpose: 'Layered memory: short-term task context, long-term preferences, business memory (accounts, vendors, policies), outcome memory, and institutional patterns.',
    principles: ['Understand', 'Learn'] as PrincipleLabel[],
    adjacent: ['Business Ontology', 'Evaluation', 'Agent Runtime'],
    category: 'Intelligence' as const,
  },
  {
    id: 'agent-identity',
    name: 'Agent Identity',
    purpose: 'Each agent has identity, role, permissions, allowed tools, risk level, approval threshold, and full audit trail — enforced at the platform layer.',
    principles: ['Audit', 'Plan'] as PrincipleLabel[],
    adjacent: ['Agent Roles', 'Agent Runtime', 'Tool Fabric'],
    category: 'Governance' as const,
  },
  {
    id: 'command-surface',
    name: 'Command Surface',
    purpose: 'The operator interface: signal timeline, agent queue, pending approvals, recommended actions, evidence panel, confidence scores, and execution logs.',
    principles: ['Understand', 'Act', 'Audit'] as PrincipleLabel[],
    adjacent: ['Human-in-the-Loop', 'Orchestration', 'Agent Runtime'],
    category: 'Core' as const,
  },
  {
    id: 'orchestration',
    name: 'Orchestration',
    purpose: 'Multi-agent coordination justified by cross-domain tasks or distinct security boundaries — specialization, scalability, maintainability, and optimization.',
    principles: ['Plan', 'Act'] as PrincipleLabel[],
    adjacent: ['Agent Runtime', 'Agent Roles', 'Command Surface'],
    category: 'Execution' as const,
  },
] as const;

export const IMPLEMENTATION_PRIORITIES = [
  { num: '01', name: 'Agent Registry', desc: 'Roles, permissions, and risk classification for every agent in the system.' },
  { num: '02', name: 'Tool Fabric', desc: 'Schemas, permissions, logging, and approval rules for every connector.' },
  { num: '03', name: 'Proof Chain', desc: 'Record every recommendation, source, tool call, approval, and result.' },
  { num: '04', name: 'Outcome Graph', desc: 'Link actions to real-world business outcomes for closed-loop learning.' },
  { num: '05', name: 'Human Approval Queue', desc: 'Approval, rejection, editing, escalation, and evidence requests.' },
  { num: '06', name: 'Verifier Agent', desc: 'Ensure tasks complete successfully before closing the proof chain.' },
  { num: '07', name: 'Evaluation Harness', desc: 'Regression testing and continuous monitoring for every agent.' },
  { num: '08', name: 'Command Surface UI', desc: 'Operator-facing interface for signal, approval, and execution management.' },
] as const;

export type ApplicationStatus = 'operational' | 'in-development' | 'planned';
export type ApplicationSector = 'Maritime' | 'Legal' | 'Real Estate' | 'Defense & Security' | 'Cyber' | 'Revenue' | 'Operations' | 'Consulting' | 'AI Infrastructure' | 'Infrastructure' | 'Crisis' | 'Intelligence';

export interface ApplicationEntry {
  id: string;
  name: string;
  vertical: string;
  sector: ApplicationSector;
  status: ApplicationStatus;
  tier: string;
  description: string;
  icon: string;
  color: string;
  principles: PrincipleLabel[];
  registryProfileId?: string;
}

export const APPLICATIONS: ApplicationEntry[] = [
  {
    id: 'vessels', name: 'Vessels', vertical: 'Maritime', sector: 'Maritime',
    status: 'operational', tier: 'Enterprise',
    description: DOMAIN_PROFILES.vessels.description + ' AIS ingestion, voyage economics, port scheduling, demurrage risk, and sanctions screening.',
    icon: '⚓', color: '#8a8a8a',
    principles: ['Ingest', 'Understand', 'Audit'],
    registryProfileId: 'vessels',
  },
  {
    id: 'counsel', name: 'Counsel', vertical: 'Legal', sector: 'Legal',
    status: 'operational', tier: 'Enterprise',
    description: 'Legal matter lifecycle — filings, obligations, risk scoring, document intelligence, and privilege review automation with chain-of-custody proof.',
    icon: '⚖', color: '#c9b787',
    principles: ['Ingest', 'Plan', 'Audit'],
    registryProfileId: 'prism',
  },
  {
    id: 'terra', name: 'Terra', vertical: 'Real Estate', sector: 'Real Estate',
    status: 'operational', tier: 'Enterprise',
    description: DOMAIN_PROFILES.terra.description + ' Climate-adjusted valuations, deal pipeline analytics, tenant churn prediction, and ESG compliance reporting.',
    icon: '▣', color: '#8a8a8a',
    principles: ['Understand', 'Act', 'Verify'],
    registryProfileId: 'terra',
  },
  {
    id: 'aegis', name: 'Aegis', vertical: 'Defense & Security', sector: 'Defense & Security',
    status: 'operational', tier: 'Sovereign',
    description: DOMAIN_PROFILES.aegis.description + ' MITRE ATT&CK mapping, threat detection, incident response, and resilience verification.',
    icon: '⬡', color: '#f5f5f5',
    principles: ['Ingest', 'Verify', 'Audit'],
    registryProfileId: 'aegis',
  },
  {
    id: 'sentra', name: 'Sentra', vertical: 'Cyber Resilience', sector: 'Cyber',
    status: 'operational', tier: 'Enterprise',
    description: 'Cyber resilience command — posture monitoring, threat surface analysis, CISO intelligence, and incident escalation with governed approval flow.',
    icon: '⬡', color: '#c9b787',
    principles: ['Ingest', 'Understand', 'Verify'],
  },
  {
    id: 'lyte', name: 'Lyte', vertical: 'Revenue Intelligence', sector: 'Revenue',
    status: 'operational', tier: 'Enterprise',
    description: DOMAIN_PROFILES.lyte.description + ' Pipeline health, forecast modeling, decision debt ledger, and governed deal actions with full attribution.',
    icon: '◆', color: '#c9b787',
    principles: ['Understand', 'Plan', 'Learn'],
    registryProfileId: 'lyte',
  },
  {
    id: 'pulse', name: 'Pulse', vertical: 'Founder Operations', sector: 'Operations',
    status: 'operational', tier: 'Platform',
    description: 'Founder operating channel — daily briefings, signal synthesis across all domains, and decision orchestration for executive operators.',
    icon: '◉', color: '#8a8a8a',
    principles: ['Understand', 'Act', 'Audit'],
  },
  {
    id: 'carlota-jo', name: 'Carlota Jo', vertical: 'Consulting', sector: 'Consulting',
    status: 'operational', tier: 'Professional',
    description: DOMAIN_PROFILES.carlota.description + ' Advisory brief generation, engagement signal tracking, and proof-chained deliverables.',
    icon: '◎', color: '#c9b787',
    principles: ['Plan', 'Act', 'Learn'],
    registryProfileId: 'carlota',
  },
  {
    id: 'nuro-forge', name: 'NuroForge', vertical: 'AI Infrastructure', sector: 'AI Infrastructure',
    status: 'in-development', tier: 'Platform',
    description: 'Agent forge — custom agent training, fine-tuning orchestration, and evaluation harness for domain-specific model optimization.',
    icon: '⬟', color: '#5e5e5e',
    principles: ['Plan', 'Learn'],
  },
  {
    id: 'meridian', name: 'Meridian', vertical: 'Infrastructure', sector: 'Infrastructure',
    status: 'in-development', tier: 'Enterprise',
    description: 'Infrastructure intelligence — cloud cost optimization, capacity planning, incident correlation, and governed change management.',
    icon: '⬡', color: '#5e5e5e',
    principles: ['Ingest', 'Plan', 'Verify'],
  },
  {
    id: 'firestorm', name: 'Firestorm', vertical: 'Crisis Operations', sector: 'Crisis',
    status: 'planned', tier: 'Sovereign',
    description: 'Crisis operations — incident command, rapid response orchestration, impact simulation, and post-incident learning with full proof coverage.',
    icon: '⬢', color: '#5e5e5e',
    principles: ['Act', 'Verify', 'Learn'],
  },
  {
    id: 'constellation', name: 'Constellation', vertical: 'Graph Intelligence', sector: 'Intelligence',
    status: 'planned', tier: 'Platform',
    description: 'Cross-domain intelligence graph — entity relationships, causal chains, emergent patterns, and cross-vertical signal correlation.',
    icon: '✦', color: '#5e5e5e',
    principles: ['Understand', 'Learn'],
  },
];