oneie 3.6.26 → 3.6.27
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.
- package/.claude/agents/TROUBLESHOOTING.md +530 -0
- package/.claude/agents/agent-claude.md +645 -0
- package/.claude/agents/agent-frontend.md +162 -21
- package/.claude/commands/chat.md +504 -0
- package/.claude/commands/create.md +134 -18
- package/.claude/commands/fast.md +531 -0
- package/.claude/commands/one.md +12 -85
- package/.claude/commands/optimize.md +74 -0
- package/.claude/commands/plan.md +420 -373
- package/.claude/commands/review.md +99 -0
- package/.claude/commands/test.md +197 -0
- package/.claude/commands/validate.md +140 -0
- package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
- package/.claude/hooks/auto-format.sh +106 -0
- package/.claude/hooks/formatting.py +187 -0
- package/.claude/hooks/ontology-validation.py +255 -0
- package/.claude/hooks/validate-imports.py +182 -0
- package/.claude/hooks/validate-ontology.py +140 -0
- package/one/knowledge/cascading-context-specification.md +1617 -0
- package/one/knowledge/claude-code-integration.md +1293 -0
- package/one/knowledge/development-commands.md +251 -0
- package/one/knowledge/guidelines.md +314 -0
- package/one/knowledge/parallel-agents.md +932 -0
- package/one/knowledge/performance.md +459 -0
- package/one/knowledge/troubleshooting.md +434 -0
- package/one/things/plans/dsl-claude-code.md +1011 -0
- package/package.json +1 -1
- package/.claude/agents/AUDIT-agent-ops-alignment.md +0 -379
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneie",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Build apps, websites, and AI agents in English. Zero-interaction setup for AI agents (Claude Code, Cursor, Windsurf). Download to your computer, run in the cloud, deploy to the edge. Open source and free forever.",
|
|
6
6
|
"bin": {
|
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
# Agent-Ops Ontology Alignment Audit
|
|
2
|
-
|
|
3
|
-
**Date:** 2025-11-03
|
|
4
|
-
**Auditor:** Ontology Guardian Agent
|
|
5
|
-
**Status:** ALIGNED - All critical issues resolved
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Executive Summary
|
|
10
|
-
|
|
11
|
-
The `agent-ops.md` file has been successfully aligned with the 6-dimension ontology as defined in `/one/knowledge/ontology.md` and `/one/knowledge/architecture.md`. All critical field name inconsistencies have been corrected, and the agent's role now clearly maps across all 6 dimensions of the ONE Platform.
|
|
12
|
-
|
|
13
|
-
### Issues Fixed: 5 Critical, 2 Major
|
|
14
|
-
- **Field Name Alignment:** Replaced all `organizationId` with `groupId` (canonical term)
|
|
15
|
-
- **Dimension Mapping:** Added explicit mapping across all 6 dimensions (GROUPS, PEOPLE, THINGS, CONNECTIONS, EVENTS, KNOWLEDGE)
|
|
16
|
-
- **Event Type Alignment:** Updated event definitions to use canonical 67 event types with metadata-based consolidation
|
|
17
|
-
- **Thing Type Alignment:** Classified Ops Agent as `external_agent` (canonical type)
|
|
18
|
-
- **Connection Type Usage:** Added proper connection types from the 25 canonical types
|
|
19
|
-
- **Protocol-Agnostic Design:** Added `metadata.protocol` field to events for platform/protocol identification
|
|
20
|
-
- **Code Examples:** Updated all Convex operations to use correct field names and scoping
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Audit Findings
|
|
25
|
-
|
|
26
|
-
### 1. Field Name Consistency FIXED
|
|
27
|
-
|
|
28
|
-
**Before:**
|
|
29
|
-
```typescript
|
|
30
|
-
organizationId: orgId // Non-canonical term
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**After:**
|
|
34
|
-
```typescript
|
|
35
|
-
groupId: rootGroupId // Canonical ontology term
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
**Files Updated:**
|
|
39
|
-
- Lines 79, 88, 113, 636-683 (all instances replaced)
|
|
40
|
-
- All code examples now use canonical field names
|
|
41
|
-
|
|
42
|
-
**Impact:** Ensures alignment with canonical ontology where `groupId` is the universal scoping field (not `organizationId`).
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
### 2. 6-Dimension Mapping ENHANCED
|
|
47
|
-
|
|
48
|
-
**Status:** COMPLETE - Agent now explicitly maps to all 6 dimensions
|
|
49
|
-
|
|
50
|
-
#### Dimension 1: GROUPS (Containers)
|
|
51
|
-
- Operations belong to root group (platform-wide)
|
|
52
|
-
- Supports multi-tenant deployments scoped to `groupId`
|
|
53
|
-
- All deployment artifacts scoped to `groupId` (lines 163-166)
|
|
54
|
-
|
|
55
|
-
#### Dimension 2: PEOPLE (Authorization)
|
|
56
|
-
- Ops Agent classified as `external_agent` thing
|
|
57
|
-
- Role: `platform_owner` (full deployment access)
|
|
58
|
-
- Every deployment logs `actorId` (who triggered)
|
|
59
|
-
- All events include actorId for audit trail (lines 168-172)
|
|
60
|
-
|
|
61
|
-
#### Dimension 3: THINGS (Deployment Artifacts)
|
|
62
|
-
- `deployment` - Release artifact deployed to production
|
|
63
|
-
- `release` - Version tag in GitHub
|
|
64
|
-
- `infrastructure_config` - Cloudflare Pages, Workers setup
|
|
65
|
-
- `external_connection` - npm registry, GitHub Actions integration
|
|
66
|
-
(lines 174-179)
|
|
67
|
-
|
|
68
|
-
#### Dimension 4: CONNECTIONS (Relationships)
|
|
69
|
-
- `deployed_to` - deployment → cloudflare_pages
|
|
70
|
-
- `published_to` - release → npm_registry
|
|
71
|
-
- `managed_by` - infrastructure_config → operations_agent
|
|
72
|
-
- `references` - deployment → github_release
|
|
73
|
-
- `integrates_with` - with cloudflare, npm, github via metadata.protocol
|
|
74
|
-
(lines 181-187)
|
|
75
|
-
|
|
76
|
-
#### Dimension 5: EVENTS (Audit Trail)
|
|
77
|
-
Ops Agent generates from canonical 67 event types:
|
|
78
|
-
- `deployment_initiated` - Starting deployment (CANONICAL)
|
|
79
|
-
- `deployment_completed` - Successful deployment (CANONICAL)
|
|
80
|
-
- `deployment_failed` - Failed deployment (CANONICAL)
|
|
81
|
-
- `entity_created` - Release creation with metadata.entityType
|
|
82
|
-
- `entity_updated` - Infrastructure changes with metadata.changeType
|
|
83
|
-
- `infrastructure_updated` - Infrastructure changes with metadata.platform
|
|
84
|
-
(lines 189-197)
|
|
85
|
-
|
|
86
|
-
**Key Insight:** Uses consolidated event types with rich metadata (not creating new event types for each platform).
|
|
87
|
-
|
|
88
|
-
#### Dimension 6: KNOWLEDGE (Understanding)
|
|
89
|
-
- Labels: `deployment_pattern`, `release_process`, `infrastructure_config`, `ci_cd_workflow`, `troubleshooting_guide`
|
|
90
|
-
- Chunks: Deployment strategies, rollback procedures, incident resolutions
|
|
91
|
-
- RAG support for retrieving past deployment patterns
|
|
92
|
-
(lines 199-203)
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
### 3. Event Type Alignment CORRECTED
|
|
97
|
-
|
|
98
|
-
**Before (Non-canonical):**
|
|
99
|
-
```typescript
|
|
100
|
-
type: 'staging_ready' // Custom event type
|
|
101
|
-
type: 'deployment_pipeline_ready' // Custom event type
|
|
102
|
-
type: 'monitoring_configured' // Custom event type
|
|
103
|
-
type: 'production_ready' // Custom event type
|
|
104
|
-
type: 'release_published' // Non-standard naming
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**After (Canonical 67 Event Types):**
|
|
108
|
-
```typescript
|
|
109
|
-
type: 'deployment_initiated' // When staging deployment starts
|
|
110
|
-
type: 'deployment_completed' // When staging is ready (CANONICAL)
|
|
111
|
-
type: 'entity_created' // Release published (with metadata.entityType: 'release')
|
|
112
|
-
type: 'infrastructure_updated' // When monitoring configured
|
|
113
|
-
type: 'deployment_completed' // When production deployment succeeds
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
**Impact:** All events now map to canonical 67 event types, consolidating patterns and enabling pattern recognition by AI agents.
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
### 4. Thing Type Classification CORRECTED
|
|
121
|
-
|
|
122
|
-
**Before:**
|
|
123
|
-
```typescript
|
|
124
|
-
{
|
|
125
|
-
type: 'operations_agent', // Non-canonical type
|
|
126
|
-
...
|
|
127
|
-
}
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
**After:**
|
|
131
|
-
```typescript
|
|
132
|
-
{
|
|
133
|
-
type: 'external_agent', // Canonical type from 66 defined thing types
|
|
134
|
-
name: 'Ops Agent',
|
|
135
|
-
groupId: rootGroupId, // Platform-level scope
|
|
136
|
-
...
|
|
137
|
-
}
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
**Validation:** `external_agent` is in canonical taxonomy (lines 204-205 of agent-ontology.md). Part of "External (3)" category: external_agent, external_workflow, external_connection.
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
### 5. Connection Type Alignment ENHANCED
|
|
145
|
-
|
|
146
|
-
**Added Canonical Connection Types:**
|
|
147
|
-
- `deployed_to` - (created → specific instance or consolidated)
|
|
148
|
-
- `published_to` - (semantic type from canonical 25)
|
|
149
|
-
- `managed_by` - (consolidated relationship type)
|
|
150
|
-
- `references` - (canonical type, part of "Content Relationships")
|
|
151
|
-
- `integrates_with` - (uses metadata.protocol for variation)
|
|
152
|
-
|
|
153
|
-
**Pattern:** Uses mix of specific semantic types and consolidated types with metadata.protocol for variation (X402, Cloudflare, npm, GitHub).
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
### 6. Protocol-Agnostic Design VERIFIED
|
|
158
|
-
|
|
159
|
-
**Code Example (Release Event):**
|
|
160
|
-
```typescript
|
|
161
|
-
await ctx.db.insert("events", {
|
|
162
|
-
type: "entity_created",
|
|
163
|
-
metadata: {
|
|
164
|
-
protocol: "github" // Protocol identifier in metadata
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
**Code Example (Infrastructure Event):**
|
|
170
|
-
```typescript
|
|
171
|
-
await ctx.db.insert("events", {
|
|
172
|
-
type: "infrastructure_updated",
|
|
173
|
-
metadata: {
|
|
174
|
-
protocol: "cloudflare", // Protocol identifier in metadata
|
|
175
|
-
platform: "cloudflare_pages"
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
**Pattern:** Follows canonical principle: `protocol` in metadata, not in event type names. Enables universal event types across all platforms.
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
### 7. Consistency with Aligned Agents
|
|
185
|
-
|
|
186
|
-
**Comparison with agent-backend.md:**
|
|
187
|
-
- ✅ Uses `groupId` (not `organizationId`)
|
|
188
|
-
- ✅ Uses canonical 66 thing types
|
|
189
|
-
- ✅ Uses canonical 67 event types
|
|
190
|
-
- ✅ Logs all operations with actorId + groupId
|
|
191
|
-
- ✅ Scopes all data to groups
|
|
192
|
-
|
|
193
|
-
**Comparison with agent-ontology.md:**
|
|
194
|
-
- ✅ Maintains exactly 6 dimensions
|
|
195
|
-
- ✅ Uses consolidated types with metadata
|
|
196
|
-
- ✅ Protocol-agnostic (metadata.protocol)
|
|
197
|
-
- ✅ Hierarchical group support via groupId/parentGroupId
|
|
198
|
-
- ✅ Multi-tenancy via groupId scoping
|
|
199
|
-
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
## Code Changes Summary
|
|
203
|
-
|
|
204
|
-
### Files Modified
|
|
205
|
-
1. `/Users/toc/Server/ONE/.claude/agents/agent-ops.md`
|
|
206
|
-
|
|
207
|
-
### Changes Made
|
|
208
|
-
|
|
209
|
-
#### Section 1: Ontology Mapping (Lines 159-247)
|
|
210
|
-
**Before:** Basic operations_agent definition (8 lines)
|
|
211
|
-
**After:** Complete 6-dimension mapping (89 lines)
|
|
212
|
-
|
|
213
|
-
- Added explicit mapping to all 6 dimensions
|
|
214
|
-
- Classified Ops Agent as `external_agent` (canonical type)
|
|
215
|
-
- Listed canonical thing types created/managed
|
|
216
|
-
- Listed canonical connection types used
|
|
217
|
-
- Listed canonical event types (with metadata patterns)
|
|
218
|
-
- Added knowledge integration patterns
|
|
219
|
-
|
|
220
|
-
#### Section 2: Ontology Operations (Lines 674-783)
|
|
221
|
-
**Before:** Uses `organizationId` in code examples
|
|
222
|
-
**After:** Uses `groupId` in code examples
|
|
223
|
-
|
|
224
|
-
**Changes:**
|
|
225
|
-
1. Deployment Report Thing (lines 679-715)
|
|
226
|
-
- `organizationId: orgId` → `groupId: rootGroupId`
|
|
227
|
-
- Added comment: "Platform-level scope"
|
|
228
|
-
|
|
229
|
-
2. Release Event (lines 735-756)
|
|
230
|
-
- `type: "release_published"` → `type: "entity_created"`
|
|
231
|
-
- `organizationId: orgId` → `groupId: rootGroupId`
|
|
232
|
-
- Added `metadata.entityType: "release"` for consolidation
|
|
233
|
-
- Added `metadata.protocol: "github"` for protocol identification
|
|
234
|
-
|
|
235
|
-
3. Infrastructure Change Event (lines 762-782)
|
|
236
|
-
- `organizationId: orgId` → `groupId: rootGroupId`
|
|
237
|
-
- Already used canonical `infrastructure_updated`
|
|
238
|
-
- Added `metadata.protocol: "cloudflare"` for platform identification
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
|
-
## Validation Against Canonical Ontology
|
|
243
|
-
|
|
244
|
-
### Dimension Name Consistency
|
|
245
|
-
- ✅ Uses `groups` (not `organizations`)
|
|
246
|
-
- ✅ Uses `people` (not `users`)
|
|
247
|
-
- ✅ Uses `things` (universal entity table)
|
|
248
|
-
- ✅ Uses `connections` (universal relationship table)
|
|
249
|
-
- ✅ Uses `events` (universal event table)
|
|
250
|
-
- ✅ Uses `knowledge` (embeddings + labels)
|
|
251
|
-
|
|
252
|
-
### Field Name Consistency
|
|
253
|
-
- ✅ Uses `groupId` (not `organizationId`) - **ALL INSTANCES**
|
|
254
|
-
- ✅ Uses `actorId` (person who did action)
|
|
255
|
-
- ✅ Uses `targetId` (what was affected)
|
|
256
|
-
- ✅ Uses `timestamp` (when it happened)
|
|
257
|
-
- ✅ Uses `metadata.protocol` (for protocol-specific variation)
|
|
258
|
-
|
|
259
|
-
### Type Taxonomy Alignment
|
|
260
|
-
- ✅ Thing type: `external_agent` (from 66 canonical types)
|
|
261
|
-
- ✅ Connection types: from 25 canonical types (owns, deployed_to, etc.)
|
|
262
|
-
- ✅ Event types: from 67 canonical types (deployment_initiated, etc.)
|
|
263
|
-
- ✅ No new dimensions introduced (stays at 6)
|
|
264
|
-
- ✅ No type explosion (uses consolidation with metadata)
|
|
265
|
-
|
|
266
|
-
### Multi-Tenancy Pattern
|
|
267
|
-
- ✅ All things scoped to `groupId`
|
|
268
|
-
- ✅ Root group scope for platform-level operations
|
|
269
|
-
- ✅ Supports hierarchical groups (future)
|
|
270
|
-
- ✅ No cross-group data leakage
|
|
271
|
-
|
|
272
|
-
### Audit Trail Pattern
|
|
273
|
-
- ✅ All events have `actorId` (who triggered)
|
|
274
|
-
- ✅ All events have `groupId` (which scope)
|
|
275
|
-
- ✅ All events have `timestamp` (when happened)
|
|
276
|
-
- ✅ All events have `metadata` (rich context)
|
|
277
|
-
- ✅ Complete audit trail enabled
|
|
278
|
-
|
|
279
|
-
---
|
|
280
|
-
|
|
281
|
-
## Pattern Alignment Verification
|
|
282
|
-
|
|
283
|
-
### Pattern 1: Always Scope to Groups
|
|
284
|
-
- ✅ All deployment operations scoped to `groupId`
|
|
285
|
-
- ✅ Platform-level scope: `rootGroupId`
|
|
286
|
-
- ✅ All code examples use groupId
|
|
287
|
-
|
|
288
|
-
### Pattern 2: Hierarchical Groups
|
|
289
|
-
- ✅ Supports infinite nesting via `parentGroupId`
|
|
290
|
-
- ✅ Deployments can be org-specific (future)
|
|
291
|
-
- ✅ Ready for group hierarchy
|
|
292
|
-
|
|
293
|
-
### Pattern 3: Complete Event Logging
|
|
294
|
-
- ✅ Every deployment logs an event
|
|
295
|
-
- ✅ Events include actorId + groupId + timestamp
|
|
296
|
-
- ✅ Rich metadata for context
|
|
297
|
-
|
|
298
|
-
### Pattern 4: Protocol Agnostic Design
|
|
299
|
-
- ✅ Platform operations use `metadata.protocol`
|
|
300
|
-
- ✅ No protocol-specific event types
|
|
301
|
-
- ✅ Cloudflare, npm, GitHub in metadata
|
|
302
|
-
|
|
303
|
-
---
|
|
304
|
-
|
|
305
|
-
## Critical Rules Compliance
|
|
306
|
-
|
|
307
|
-
### The 10 Commandments of Ontology
|
|
308
|
-
|
|
309
|
-
1. ✅ **Maintain exactly 6 dimensions** - Agent clearly maps to all 6
|
|
310
|
-
2. ✅ **Scope all data to groups** - Uses `groupId` exclusively
|
|
311
|
-
3. ✅ **Support hierarchical groups** - Ready for `parentGroupId`
|
|
312
|
-
4. ✅ **Log all actions as events** - Complete audit trail
|
|
313
|
-
5. ✅ **Use metadata for protocols** - `metadata.protocol` pattern
|
|
314
|
-
6. ✅ **Consolidate types** - Uses consolidated event types with metadata
|
|
315
|
-
7. ✅ **Validate before merging** - This audit validates alignment
|
|
316
|
-
8. ✅ **Document all changes** - This audit document captures all changes
|
|
317
|
-
9. ✅ **Provide migration paths** - No breaking changes, backward compatible
|
|
318
|
-
10. ✅ **Keep it clean, strong, succinct, sophisticated** - Agent definition is concise yet complete
|
|
319
|
-
|
|
320
|
-
---
|
|
321
|
-
|
|
322
|
-
## Integration Points
|
|
323
|
-
|
|
324
|
-
### With agent-backend.md
|
|
325
|
-
- Both use canonical 6 dimensions
|
|
326
|
-
- Both use `groupId` for scoping
|
|
327
|
-
- Both log events with actorId + groupId
|
|
328
|
-
- Compatible for backend deployment automation
|
|
329
|
-
|
|
330
|
-
### With agent-ontology.md
|
|
331
|
-
- Both maintain 6-dimension structure
|
|
332
|
-
- Both use consolidated types with metadata
|
|
333
|
-
- Both validate protocol-agnostic patterns
|
|
334
|
-
- Compatible for ontology validation
|
|
335
|
-
|
|
336
|
-
### With CLAUDE.md (Root Context)
|
|
337
|
-
- Both map features to 6 dimensions
|
|
338
|
-
- Both use same field naming conventions
|
|
339
|
-
- Both support multi-tenancy via groupId
|
|
340
|
-
- Consistent across platform
|
|
341
|
-
|
|
342
|
-
---
|
|
343
|
-
|
|
344
|
-
## Lessons Learned
|
|
345
|
-
|
|
346
|
-
### Key Insights
|
|
347
|
-
1. **Field naming matters:** `organizationId` vs `groupId` - seems small but affects pattern recognition across codebase
|
|
348
|
-
2. **Consolidation over creation:** Better to create consolidated event types with rich metadata than create new event types for each platform
|
|
349
|
-
3. **Explicit 6D mapping helps:** Clearly stating which dimension an agent operates in makes alignment verification easier
|
|
350
|
-
4. **Platform-level scope:** Some operations (deployments, releases) naturally live at platform level (rootGroupId) rather than org level
|
|
351
|
-
|
|
352
|
-
### Recommendations
|
|
353
|
-
1. Consider creating a checklist for future agent alignment audits
|
|
354
|
-
2. Document agent positioning (which dimensions, which thing types) upfront
|
|
355
|
-
3. Use this agent-ops audit as template for aligning other agents
|
|
356
|
-
4. Add `metadata.protocol` to all cross-platform operations for consistency
|
|
357
|
-
|
|
358
|
-
---
|
|
359
|
-
|
|
360
|
-
## Sign-Off
|
|
361
|
-
|
|
362
|
-
**Audit Result:** PASSED - All critical issues resolved
|
|
363
|
-
|
|
364
|
-
**Agent Status:** ALIGNED
|
|
365
|
-
- ✅ Maps cleanly to 6 dimensions
|
|
366
|
-
- ✅ Uses canonical field names (groupId)
|
|
367
|
-
- ✅ Uses canonical type taxonomy (66 things, 25 connections, 67 events)
|
|
368
|
-
- ✅ Implements complete audit trail pattern
|
|
369
|
-
- ✅ Protocol-agnostic design verified
|
|
370
|
-
- ✅ Multi-tenant scoping enforced
|
|
371
|
-
- ✅ Consistent with aligned agents
|
|
372
|
-
|
|
373
|
-
**Recommendation:** agent-ops.md is ready for production use and serves as a reference for other operational agents.
|
|
374
|
-
|
|
375
|
-
---
|
|
376
|
-
|
|
377
|
-
**Ontology Guardian Agent**
|
|
378
|
-
Maintaining the sacred 6-dimension reality model
|
|
379
|
-
ONE Platform - Where Reality is Code
|