@elevasis/sdk 1.22.1 → 1.23.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.
- package/dist/cli.cjs +681 -29
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -3
- package/dist/test-utils/index.d.ts +1 -0
- package/dist/test-utils/index.js +4 -3
- package/dist/worker/index.js +4 -3
- package/package.json +2 -2
- package/reference/claude-config/rules/organization-model.md +77 -80
- package/reference/claude-config/rules/organization-os.md +104 -104
- package/reference/claude-config/rules/vibe.md +235 -235
- package/reference/claude-config/skills/om/SKILL.md +324 -0
- package/reference/claude-config/skills/{knowledge → om}/operations/customers.md +110 -109
- package/reference/claude-config/skills/{knowledge → om}/operations/features.md +77 -76
- package/reference/claude-config/skills/{knowledge → om}/operations/goals.md +119 -118
- package/reference/claude-config/skills/{knowledge → om}/operations/identity.md +94 -93
- package/reference/claude-config/skills/{knowledge → om}/operations/labels.md +94 -94
- package/reference/claude-config/skills/{knowledge → om}/operations/offerings.md +110 -109
- package/reference/claude-config/skills/{knowledge → om}/operations/roles.md +100 -99
- package/reference/claude-config/skills/{knowledge → om}/operations/techStack.md +30 -30
- package/reference/claude-config/skills/project/SKILL.md +1088 -1088
- package/reference/claude-config/skills/setup/SKILL.md +275 -275
- package/reference/claude-config/skills/tutorial/SKILL.md +259 -259
- package/reference/claude-config/skills/tutorial/progress-template.md +74 -74
- package/reference/claude-config/skills/tutorial/technical.md +1303 -1303
- package/reference/claude-config/skills/tutorial/vibe-coder.md +890 -890
- package/reference/claude-config/sync-notes/2026-05-15-om-skill-rename-and-write-family.md +52 -0
- package/reference/scaffold/recipes/query-the-knowledge-graph.md +189 -185
- package/reference/scaffold/reference/contracts.md +94 -94
- package/reference/scaffold/reference/glossary.md +71 -69
- package/reference/claude-config/skills/knowledge/SKILL.md +0 -345
- /package/reference/claude-config/skills/{knowledge → om}/operations/codify-level-a.md +0 -0
- /package/reference/claude-config/skills/{knowledge → om}/operations/codify-level-b.md +0 -0
|
@@ -1,235 +1,235 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Ambient intent classifier -- routes natural-language input to 7 intent buckets without a slash command; Codify and Toggle delegate to /
|
|
3
|
-
paths:
|
|
4
|
-
- "**/*"
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Vibe Layer
|
|
8
|
-
|
|
9
|
-
Vibe is an **ambient, always-on** intent classifier. It activates automatically whenever the user speaks in plain language -- no slash command, no activation phrase, no special syntax. Every natural-language message passes through vibe classification before the agent acts.
|
|
10
|
-
|
|
11
|
-
This rule applies to all sessions inside external projects. It does NOT apply in the monorepo (ambient routing is off there by default).
|
|
12
|
-
|
|
13
|
-
## What Vibe Is
|
|
14
|
-
|
|
15
|
-
Vibe is the translation layer between the user's natural language and the correct agent action. The user describes reality -- "we track deals by Shopify platform", "I'm stuck on this task", "what should I work on next" -- and vibe determines which of the seven intent types the message represents. The agent then routes to the right behavior without the user ever knowing the classification happened.
|
|
16
|
-
|
|
17
|
-
Vibe coders (non-technical builders) are the primary audience. They build by describing. They never memorize commands, IDs, or schema. The ambient layer closes the gap between what they say and what the system can act on.
|
|
18
|
-
|
|
19
|
-
## The Seven Intent Types
|
|
20
|
-
|
|
21
|
-
### 1. Capture
|
|
22
|
-
|
|
23
|
-
The user wants to record something new -- a task, a note, a piece of information that should persist.
|
|
24
|
-
|
|
25
|
-
**Recognize by:** action verbs like "add", "create", "remember", "track", "log", "note down", "write down", combined with a thing to record.
|
|
26
|
-
|
|
27
|
-
**Fixture examples:**
|
|
28
|
-
|
|
29
|
-
| Input | Why it's Capture |
|
|
30
|
-
| ------------------------------------------------- | ------------------------------------------- |
|
|
31
|
-
| "Add a task to follow up with the Shopify client" | Explicit "add a task" with a described item |
|
|
32
|
-
| "Remember to run the campaign report on Friday" | "Remember to" signals something to persist |
|
|
33
|
-
| "Run the campaign report every Friday at 9am" | Repeating schedule vocabulary to persist |
|
|
34
|
-
| "Track this conversation as a deal note" | Explicit "track" with a described artifact |
|
|
35
|
-
|
|
36
|
-
**Agent action:** draft the capture in plain language, confirm with the user, then execute via `elevasis-sdk project:*` commands for project records or `elevasis-sdk schedule:create` for recurring automation. Use repetition vocabulary ("every", "daily", "weekly", "monthly") for schedules; one-shot future reminders stay project tasks with due dates. Never write without confirmation.
|
|
37
|
-
|
|
38
|
-
### 2. Query
|
|
39
|
-
|
|
40
|
-
The user wants to know something about current state -- task priorities, what is pending, what is running, what failed.
|
|
41
|
-
|
|
42
|
-
**Recognize by:** questions about the current list, status, or queue of things. Includes both static-model queries ("what systems are on?") and runtime-entity queries ("what's pending in the queue?"). Route Query to static-model sources (org model, Systems/Actions config) or runtime sources (operations domain) based on the referenced entity.
|
|
43
|
-
|
|
44
|
-
**Fixture examples:**
|
|
45
|
-
|
|
46
|
-
| Input | Why it's Query |
|
|
47
|
-
| -------------------------------------------- | ------------------------------------------- |
|
|
48
|
-
| "What should I work on next?" | Asking for prioritized task list |
|
|
49
|
-
| "What's pending in the HITL queue?" | Runtime-entity query about operations state |
|
|
50
|
-
| "What runs this week?" | Runtime query about upcoming schedules |
|
|
51
|
-
| "What systems are enabled for this project?" | Static-model query about Systems config |
|
|
52
|
-
|
|
53
|
-
**Agent action:** read the relevant source and narrate the answer in plain language. Use org model or `project:*` for project state, `elevasis-sdk queue:list --status pending --pretty` and `queue:status --pretty` for HITL queue state, and `elevasis-sdk schedule:list --status active --pretty` for upcoming recurring automation. No writes.
|
|
54
|
-
|
|
55
|
-
### 3. Describe
|
|
56
|
-
|
|
57
|
-
The user wants the agent to explain something -- a scope, an entity, a concept within the project.
|
|
58
|
-
|
|
59
|
-
**Recognize by:** "what is", "what does", "tell me about", "explain", "where am I", "what's going on", "describe", "show me" without an action intent attached.
|
|
60
|
-
|
|
61
|
-
**Fixture examples:**
|
|
62
|
-
|
|
63
|
-
| Input | Why it's Describe |
|
|
64
|
-
| ------------------------------------------ | ----------------------------------------------------- |
|
|
65
|
-
| "What's going on with the ZentaraHQ deal?" | Asking for a plain-language description of an entity |
|
|
66
|
-
| "Tell me about the CRM system" | Asking the agent to narrate what a model element does |
|
|
67
|
-
| "Where am I in this project?" | Asking for current scope narration |
|
|
68
|
-
|
|
69
|
-
**Agent action:** read the relevant org-model label, entity, or scope. Narrate in plain language using label fields from the model -- never invent vocabulary not present in the model. Phase-1 scope covers Model, Systems/Actions, and Foundations layers only.
|
|
70
|
-
|
|
71
|
-
**Stage/state/catalog sub-routing:** when the noun being described is a stage, state, status
|
|
72
|
-
bucket, catalog entry, progress step, pipeline column, or similarly closed business vocabulary,
|
|
73
|
-
also show the cross-system impact before the normal description:
|
|
74
|
-
|
|
75
|
-
1. Read `node_modules/@elevasis/sdk/reference/spine/spine-primer.md` for the layering pattern.
|
|
76
|
-
2. Read the relevant domain in `core/config/organization-model.ts`.
|
|
77
|
-
3. Explain the impact in vibe-coder language only: the business profile entry, the saved progress
|
|
78
|
-
on each record, the automations that produce updates, and the dashboard or reports that read it.
|
|
79
|
-
4. Route follow-up changes through `/
|
|
80
|
-
unless the user explicitly asks for internals.
|
|
81
|
-
|
|
82
|
-
### 4. Transition
|
|
83
|
-
|
|
84
|
-
The user wants to change the status of a task or entity.
|
|
85
|
-
|
|
86
|
-
**Recognize by:** single-word or short-phrase state signals -- "done", "finished", "complete", "blocked", "stuck", "waiting", "in review", "cancelled" -- applied to a current task or named entity.
|
|
87
|
-
|
|
88
|
-
**Fixture examples:**
|
|
89
|
-
|
|
90
|
-
| Input | Why it's Transition |
|
|
91
|
-
| --------------------------------------------- | ------------------------------------------- |
|
|
92
|
-
| "Done with the proposal draft" | "Done" + named artifact = status transition |
|
|
93
|
-
| "Stuck -- blocked waiting on client feedback" | "Stuck" + reason = blocked transition |
|
|
94
|
-
| "Mark the onboarding task as complete" | Explicit status-change vocabulary |
|
|
95
|
-
| "Approve the pending checkpoint" | Selects an action from the HITL queue |
|
|
96
|
-
| "Pause the Friday report" | Changes schedule state |
|
|
97
|
-
|
|
98
|
-
**Agent action:** identify the task, queue item, schedule, or entity being transitioned, confirm the new status/action with the user, then apply it via `elevasis-sdk project:task:save`, `elevasis-sdk queue:select <id> --action-id <id>`, `elevasis-sdk queue:expire <id>`, `elevasis-sdk schedule:pause <id>`, `schedule:resume <id>`, or `schedule:cancel <id>` as appropriate. Never auto-transition without confirmation if the target entity is ambiguous.
|
|
99
|
-
|
|
100
|
-
### 5. Navigate
|
|
101
|
-
|
|
102
|
-
The user wants to shift focus -- to a different task, project, System, Action, or layer of the model.
|
|
103
|
-
|
|
104
|
-
**Recognize by:** focus-shift vocabulary -- "focus on", "let's look at", "switch to", "back to", "move to", "open", "go to" -- followed by a scope target.
|
|
105
|
-
|
|
106
|
-
**Fixture examples:**
|
|
107
|
-
|
|
108
|
-
| Input | Why it's Navigate |
|
|
109
|
-
| -------------------------------------------- | --------------------------------------------------- |
|
|
110
|
-
| "Let's focus on the onboarding flow for now" | "Focus on" + scope target |
|
|
111
|
-
| "Switch to the Shopify integration project" | "Switch to" = navigate to a different project scope |
|
|
112
|
-
| "Back to the CRM tasks" | "Back to" = return to a prior scope |
|
|
113
|
-
|
|
114
|
-
**Agent action:** update the active scope in `prj_tasks.resume_context` (current project + task pointer), then narrate the new scope in plain language so the user knows where they are.
|
|
115
|
-
|
|
116
|
-
### 6. Codify
|
|
117
|
-
|
|
118
|
-
The user describes organizational reality that is not yet expressed in the model -- industry type, entity kinds, custom attributes, renamed stages, domain vocabulary.
|
|
119
|
-
|
|
120
|
-
**Recognize by:** declarative "we are" / "we use" / "we track" statements, repeated attribute mentions (second time the same attribute appears), or explicit "add a type / add a field / model X as Y" requests.
|
|
121
|
-
|
|
122
|
-
**Fixture examples:**
|
|
123
|
-
|
|
124
|
-
| Input | Why it's Codify |
|
|
125
|
-
| -------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
126
|
-
| "We're an e-commerce company -- all our deals come from Shopify or Amazon" | Declares industry + platform attributes not yet in model |
|
|
127
|
-
| "We track deal stage as discovery, scoping, proposal, closed" | Describes custom CRM stages that should replace defaults |
|
|
128
|
-
| "Add a project type called 'retainer' with monthly billing and a contract field" | Explicit request to add a new entity extension |
|
|
129
|
-
|
|
130
|
-
**Agent action:** delegate immediately to `/
|
|
131
|
-
|
|
132
|
-
**Stage/state/catalog impact preview:** if the Codify intent adds, renames, removes, reorders, or
|
|
133
|
-
re-scopes a stage, state, status bucket, catalog member, pipeline step, or progress vocabulary,
|
|
134
|
-
preview the cross-system impact before delegating:
|
|
135
|
-
|
|
136
|
-
- Which business-profile entry changes.
|
|
137
|
-
- Which saved record progress keys may already exist.
|
|
138
|
-
- Which automations or templates reference the key.
|
|
139
|
-
- Which dashboard, report, queue, or API reads may display or filter by it.
|
|
140
|
-
|
|
141
|
-
Then delegate to `/
|
|
142
|
-
change and does not expose monorepo-only commands.
|
|
143
|
-
|
|
144
|
-
This routing applies to both codify levels (decision #21 -- Codify ceremony delegated to `/
|
|
145
|
-
|
|
146
|
-
- **Level A** (config-only edits to `organization-model.ts`, System availability/routing toggles, label renames): delegate to `/
|
|
147
|
-
- **Level B** (new Zod extension files in `core/config/extensions/`): also delegate to `/
|
|
148
|
-
|
|
149
|
-
Vibe detects the intent and delegates in both cases. It does not run either pipeline itself.
|
|
150
|
-
|
|
151
|
-
For "build/extend the CRM" asks, classify the structural org-model portion as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-crm.md` before editing. CRM work often spans org-model sales semantics, shared UI routes, hooks, workflow adapters, and deal actions; do not reduce it to only `sales` config or only UI.
|
|
152
|
-
|
|
153
|
-
For "build/extend lead gen" / "campaign creator" / "outbound list state" asks, classify the structural org-model portion as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md` before editing. Lead-gen work often spans org-model prospecting semantics, shared UI routes, hooks, list/member state, artifacts, and workflow adapters; do not reduce it to only `prospecting` config or only UI.
|
|
154
|
-
|
|
155
|
-
For "add a custom CRM action" / "Send Quote button" asks, classify as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/customize-crm-actions.md` before editing. Start with the shared `crmActions` provider path for action visibility, labels, ordering, and render-time configuration. In v1, platform-known/default action endpoint behavior is server-constrained; use project-owned UI that calls the workflow directly when a custom key sits outside that server-dispatched set.
|
|
156
|
-
|
|
157
|
-
Heuristics for when to propose codification (passed to `/
|
|
158
|
-
|
|
159
|
-
- First mention of a new attribute: note to `resume_context`, do not propose yet
|
|
160
|
-
- Second mention OR explicit declaration ("we're ecom"): propose extension
|
|
161
|
-
- Explicit ask ("track ecom deals separately"): propose immediately with fuller scope
|
|
162
|
-
- Attribute appearing across 3+ tasks: propose adding field to existing extension
|
|
163
|
-
|
|
164
|
-
### 7. Toggle
|
|
165
|
-
|
|
166
|
-
The user wants to enable or disable a System.
|
|
167
|
-
|
|
168
|
-
**Recognize by:** system-control vocabulary -- "turn on", "enable", "disable", "turn off", "activate", "deactivate" -- followed by a System name or description.
|
|
169
|
-
|
|
170
|
-
**Fixture examples:**
|
|
171
|
-
|
|
172
|
-
| Input | Why it's Toggle |
|
|
173
|
-
| ------------------------------- | -------------------------------------------- |
|
|
174
|
-
| "Turn on the lead-gen system" | Explicit "turn on" + System name |
|
|
175
|
-
| "Disable monitoring for now" | "Disable" + System reference |
|
|
176
|
-
| "We don't use SEO, turn it off" | Declarative + "turn it off" = System disable |
|
|
177
|
-
|
|
178
|
-
**Agent action:** delegate to `/
|
|
179
|
-
|
|
180
|
-
## Quick Reference Table
|
|
181
|
-
|
|
182
|
-
| Intent | Trigger signal | Routed to |
|
|
183
|
-
| ---------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
|
184
|
-
| Capture | "add", "remember", "track", "log" + a thing | Agent -- draft + confirm + `project:*` or `schedule:create` CLI |
|
|
185
|
-
| Query | "what's next", "what's pending", "what failed", "what systems" | Agent -- read with `project:*`, `queue:*`, or `schedule:*` + narrate |
|
|
186
|
-
| Describe | "what is", "tell me about", "explain", "where am I" | Agent -- narrate from org model labels |
|
|
187
|
-
| Transition | "done", "stuck", "blocked", "finished", "complete", "approve", "pause" | Agent -- confirm + `project:task:save`, `queue:select`, or `schedule:*` |
|
|
188
|
-
| Navigate | "focus on", "switch to", "back to", "look at" | Agent -- update scope + narrate |
|
|
189
|
-
| Codify | "we are X", "we track Y", repeated attribute, "add type/field" | Delegate to `/
|
|
190
|
-
| Toggle | "enable", "disable", "turn on/off" + system | Delegate to `/
|
|
191
|
-
|
|
192
|
-
## Source of Truth for Plain Language
|
|
193
|
-
|
|
194
|
-
All plain-language labels come from the OrganizationModel itself -- never from hardcoded strings in this rule file. Every status, entity kind, and layer name in the model carries an inline `label` field (e.g., `{ id: 'revision_requested', label: 'changes needed', semanticClass: 'blocked' }`). When narrating state or confirming an action, read the label from the model and use it verbatim. Do not invent synonyms or fallback vocabulary.
|
|
195
|
-
|
|
196
|
-
The unified manifest (delivered via `@elevasis/core/organization-model`) is the canonical vocabulary surface. Vibe classifies against it -- Systems, Actions, statuses, operations entities, and resource kinds are all discoverable from the manifest without hardcoding.
|
|
197
|
-
|
|
198
|
-
## Ambiguous Intent
|
|
199
|
-
|
|
200
|
-
When the user's input does not clearly map to one of the seven types, ask one clarifying question. Do not guess. Do not apply a precedence rule. Do not route to the "closest" intent.
|
|
201
|
-
|
|
202
|
-
Format: a single neutral question that presents the two (or three) plausible intents as options and asks which the user means.
|
|
203
|
-
|
|
204
|
-
Example: "That could be a note to capture or a status update on the current task -- which did you mean?"
|
|
205
|
-
|
|
206
|
-
Never ask more than one question per ambiguous input. If the user's reply is still ambiguous, ask once more, then surface the options explicitly.
|
|
207
|
-
|
|
208
|
-
## Classifier Threshold
|
|
209
|
-
|
|
210
|
-
Default threshold: `balanced`.
|
|
211
|
-
|
|
212
|
-
The threshold controls how aggressively the classifier proposes codification from ambiguous signals:
|
|
213
|
-
|
|
214
|
-
- `strict` -- only explicit declarations or repeat mentions trigger codify proposals
|
|
215
|
-
- `balanced` -- second mention OR explicit declaration triggers; default
|
|
216
|
-
- `loose` -- first strong signal triggers a proposal
|
|
217
|
-
|
|
218
|
-
Override per project in `core/config/organization-model.ts` under `vibe.classifierThreshold`. The override is merge-aware (Tier 2 sync) and will not be overwritten by template sync operations.
|
|
219
|
-
|
|
220
|
-
## Phase-1 Scope
|
|
221
|
-
|
|
222
|
-
This rule covers Phase 1 of the vibe layer rollout. The layers the ambient classifier can narrate and codify in Phase 1 are:
|
|
223
|
-
|
|
224
|
-
- Layer 1 (Model): narrate schema shape, propose codification edits via `/
|
|
225
|
-
- Layer 4 (Systems/Actions): describe which Systems are on/off, propose enabling one via `/
|
|
226
|
-
- Layer 7 (Foundations): explain and edit `organization-model.ts` and `extensions/` via `/
|
|
227
|
-
|
|
228
|
-
Layers 2 (Public API), 3 (UI Shell Runtime), 5 (Toolkit), and 6 (Graph) require runtime read APIs that are not yet available. Do not attempt to narrate or classify against those layers in Phase 1. If the user's input clearly references one of those layers, acknowledge the scope and explain that full support arrives in a later phase.
|
|
229
|
-
|
|
230
|
-
## What Vibe Is Not
|
|
231
|
-
|
|
232
|
-
- Vibe is not a slash command. There is no `/vibe` invocation (decision #19 -- ambient rule, not a skill or command).
|
|
233
|
-
- Vibe is not a skill. It lives in this rule file + CLAUDE.md + the PreToolUse hook -- not in `.claude/skills/`.
|
|
234
|
-
- Vibe does not own the codify ceremony. `/
|
|
235
|
-
- Vibe is not active in the monorepo. If working inside the monorepo (not an `external/` project), this ambient routing does not apply.
|
|
1
|
+
---
|
|
2
|
+
description: Ambient intent classifier -- routes natural-language input to 7 intent buckets without a slash command; Codify and Toggle delegate to /om
|
|
3
|
+
paths:
|
|
4
|
+
- "**/*"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Vibe Layer
|
|
8
|
+
|
|
9
|
+
Vibe is an **ambient, always-on** intent classifier. It activates automatically whenever the user speaks in plain language -- no slash command, no activation phrase, no special syntax. Every natural-language message passes through vibe classification before the agent acts.
|
|
10
|
+
|
|
11
|
+
This rule applies to all sessions inside external projects. It does NOT apply in the monorepo (ambient routing is off there by default).
|
|
12
|
+
|
|
13
|
+
## What Vibe Is
|
|
14
|
+
|
|
15
|
+
Vibe is the translation layer between the user's natural language and the correct agent action. The user describes reality -- "we track deals by Shopify platform", "I'm stuck on this task", "what should I work on next" -- and vibe determines which of the seven intent types the message represents. The agent then routes to the right behavior without the user ever knowing the classification happened.
|
|
16
|
+
|
|
17
|
+
Vibe coders (non-technical builders) are the primary audience. They build by describing. They never memorize commands, IDs, or schema. The ambient layer closes the gap between what they say and what the system can act on.
|
|
18
|
+
|
|
19
|
+
## The Seven Intent Types
|
|
20
|
+
|
|
21
|
+
### 1. Capture
|
|
22
|
+
|
|
23
|
+
The user wants to record something new -- a task, a note, a piece of information that should persist.
|
|
24
|
+
|
|
25
|
+
**Recognize by:** action verbs like "add", "create", "remember", "track", "log", "note down", "write down", combined with a thing to record.
|
|
26
|
+
|
|
27
|
+
**Fixture examples:**
|
|
28
|
+
|
|
29
|
+
| Input | Why it's Capture |
|
|
30
|
+
| ------------------------------------------------- | ------------------------------------------- |
|
|
31
|
+
| "Add a task to follow up with the Shopify client" | Explicit "add a task" with a described item |
|
|
32
|
+
| "Remember to run the campaign report on Friday" | "Remember to" signals something to persist |
|
|
33
|
+
| "Run the campaign report every Friday at 9am" | Repeating schedule vocabulary to persist |
|
|
34
|
+
| "Track this conversation as a deal note" | Explicit "track" with a described artifact |
|
|
35
|
+
|
|
36
|
+
**Agent action:** draft the capture in plain language, confirm with the user, then execute via `elevasis-sdk project:*` commands for project records or `elevasis-sdk schedule:create` for recurring automation. Use repetition vocabulary ("every", "daily", "weekly", "monthly") for schedules; one-shot future reminders stay project tasks with due dates. Never write without confirmation.
|
|
37
|
+
|
|
38
|
+
### 2. Query
|
|
39
|
+
|
|
40
|
+
The user wants to know something about current state -- task priorities, what is pending, what is running, what failed.
|
|
41
|
+
|
|
42
|
+
**Recognize by:** questions about the current list, status, or queue of things. Includes both static-model queries ("what systems are on?") and runtime-entity queries ("what's pending in the queue?"). Route Query to static-model sources (org model, Systems/Actions config) or runtime sources (operations domain) based on the referenced entity.
|
|
43
|
+
|
|
44
|
+
**Fixture examples:**
|
|
45
|
+
|
|
46
|
+
| Input | Why it's Query |
|
|
47
|
+
| -------------------------------------------- | ------------------------------------------- |
|
|
48
|
+
| "What should I work on next?" | Asking for prioritized task list |
|
|
49
|
+
| "What's pending in the HITL queue?" | Runtime-entity query about operations state |
|
|
50
|
+
| "What runs this week?" | Runtime query about upcoming schedules |
|
|
51
|
+
| "What systems are enabled for this project?" | Static-model query about Systems config |
|
|
52
|
+
|
|
53
|
+
**Agent action:** read the relevant source and narrate the answer in plain language. Use org model or `project:*` for project state, `elevasis-sdk queue:list --status pending --pretty` and `queue:status --pretty` for HITL queue state, and `elevasis-sdk schedule:list --status active --pretty` for upcoming recurring automation. No writes.
|
|
54
|
+
|
|
55
|
+
### 3. Describe
|
|
56
|
+
|
|
57
|
+
The user wants the agent to explain something -- a scope, an entity, a concept within the project.
|
|
58
|
+
|
|
59
|
+
**Recognize by:** "what is", "what does", "tell me about", "explain", "where am I", "what's going on", "describe", "show me" without an action intent attached.
|
|
60
|
+
|
|
61
|
+
**Fixture examples:**
|
|
62
|
+
|
|
63
|
+
| Input | Why it's Describe |
|
|
64
|
+
| ------------------------------------------ | ----------------------------------------------------- |
|
|
65
|
+
| "What's going on with the ZentaraHQ deal?" | Asking for a plain-language description of an entity |
|
|
66
|
+
| "Tell me about the CRM system" | Asking the agent to narrate what a model element does |
|
|
67
|
+
| "Where am I in this project?" | Asking for current scope narration |
|
|
68
|
+
|
|
69
|
+
**Agent action:** read the relevant org-model label, entity, or scope. Narrate in plain language using label fields from the model -- never invent vocabulary not present in the model. Phase-1 scope covers Model, Systems/Actions, and Foundations layers only.
|
|
70
|
+
|
|
71
|
+
**Stage/state/catalog sub-routing:** when the noun being described is a stage, state, status
|
|
72
|
+
bucket, catalog entry, progress step, pipeline column, or similarly closed business vocabulary,
|
|
73
|
+
also show the cross-system impact before the normal description:
|
|
74
|
+
|
|
75
|
+
1. Read `node_modules/@elevasis/sdk/reference/spine/spine-primer.md` for the layering pattern.
|
|
76
|
+
2. Read the relevant domain in `core/config/organization-model.ts`.
|
|
77
|
+
3. Explain the impact in vibe-coder language only: the business profile entry, the saved progress
|
|
78
|
+
on each record, the automations that produce updates, and the dashboard or reports that read it.
|
|
79
|
+
4. Route follow-up changes through `/om <domain>`. Do not mention the technical pattern name
|
|
80
|
+
unless the user explicitly asks for internals.
|
|
81
|
+
|
|
82
|
+
### 4. Transition
|
|
83
|
+
|
|
84
|
+
The user wants to change the status of a task or entity.
|
|
85
|
+
|
|
86
|
+
**Recognize by:** single-word or short-phrase state signals -- "done", "finished", "complete", "blocked", "stuck", "waiting", "in review", "cancelled" -- applied to a current task or named entity.
|
|
87
|
+
|
|
88
|
+
**Fixture examples:**
|
|
89
|
+
|
|
90
|
+
| Input | Why it's Transition |
|
|
91
|
+
| --------------------------------------------- | ------------------------------------------- |
|
|
92
|
+
| "Done with the proposal draft" | "Done" + named artifact = status transition |
|
|
93
|
+
| "Stuck -- blocked waiting on client feedback" | "Stuck" + reason = blocked transition |
|
|
94
|
+
| "Mark the onboarding task as complete" | Explicit status-change vocabulary |
|
|
95
|
+
| "Approve the pending checkpoint" | Selects an action from the HITL queue |
|
|
96
|
+
| "Pause the Friday report" | Changes schedule state |
|
|
97
|
+
|
|
98
|
+
**Agent action:** identify the task, queue item, schedule, or entity being transitioned, confirm the new status/action with the user, then apply it via `elevasis-sdk project:task:save`, `elevasis-sdk queue:select <id> --action-id <id>`, `elevasis-sdk queue:expire <id>`, `elevasis-sdk schedule:pause <id>`, `schedule:resume <id>`, or `schedule:cancel <id>` as appropriate. Never auto-transition without confirmation if the target entity is ambiguous.
|
|
99
|
+
|
|
100
|
+
### 5. Navigate
|
|
101
|
+
|
|
102
|
+
The user wants to shift focus -- to a different task, project, System, Action, or layer of the model.
|
|
103
|
+
|
|
104
|
+
**Recognize by:** focus-shift vocabulary -- "focus on", "let's look at", "switch to", "back to", "move to", "open", "go to" -- followed by a scope target.
|
|
105
|
+
|
|
106
|
+
**Fixture examples:**
|
|
107
|
+
|
|
108
|
+
| Input | Why it's Navigate |
|
|
109
|
+
| -------------------------------------------- | --------------------------------------------------- |
|
|
110
|
+
| "Let's focus on the onboarding flow for now" | "Focus on" + scope target |
|
|
111
|
+
| "Switch to the Shopify integration project" | "Switch to" = navigate to a different project scope |
|
|
112
|
+
| "Back to the CRM tasks" | "Back to" = return to a prior scope |
|
|
113
|
+
|
|
114
|
+
**Agent action:** update the active scope in `prj_tasks.resume_context` (current project + task pointer), then narrate the new scope in plain language so the user knows where they are.
|
|
115
|
+
|
|
116
|
+
### 6. Codify
|
|
117
|
+
|
|
118
|
+
The user describes organizational reality that is not yet expressed in the model -- industry type, entity kinds, custom attributes, renamed stages, domain vocabulary.
|
|
119
|
+
|
|
120
|
+
**Recognize by:** declarative "we are" / "we use" / "we track" statements, repeated attribute mentions (second time the same attribute appears), or explicit "add a type / add a field / model X as Y" requests.
|
|
121
|
+
|
|
122
|
+
**Fixture examples:**
|
|
123
|
+
|
|
124
|
+
| Input | Why it's Codify |
|
|
125
|
+
| -------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
126
|
+
| "We're an e-commerce company -- all our deals come from Shopify or Amazon" | Declares industry + platform attributes not yet in model |
|
|
127
|
+
| "We track deal stage as discovery, scoping, proposal, closed" | Describes custom CRM stages that should replace defaults |
|
|
128
|
+
| "Add a project type called 'retainer' with monthly billing and a contract field" | Explicit request to add a new entity extension |
|
|
129
|
+
|
|
130
|
+
**Agent action:** delegate immediately to `/om`. Do not attempt the ceremony yourself. Invoke with the relevant domain: `/om sales` for deal/contact changes, `/om projects` for project types, `/om systems` for availability/routing toggles, and `/om actions` for invokable operation changes. Plain-language summary of what was detected is acceptable before delegating, but the actual draft-confirm-write ceremony belongs to `/om`.
|
|
131
|
+
|
|
132
|
+
**Stage/state/catalog impact preview:** if the Codify intent adds, renames, removes, reorders, or
|
|
133
|
+
re-scopes a stage, state, status bucket, catalog member, pipeline step, or progress vocabulary,
|
|
134
|
+
preview the cross-system impact before delegating:
|
|
135
|
+
|
|
136
|
+
- Which business-profile entry changes.
|
|
137
|
+
- Which saved record progress keys may already exist.
|
|
138
|
+
- Which automations or templates reference the key.
|
|
139
|
+
- Which dashboard, report, queue, or API reads may display or filter by it.
|
|
140
|
+
|
|
141
|
+
Then delegate to `/om <domain>` with that preview as context. Vibe does not write the
|
|
142
|
+
change and does not expose monorepo-only commands.
|
|
143
|
+
|
|
144
|
+
This routing applies to both codify levels (decision #21 -- Codify ceremony delegated to `/om`):
|
|
145
|
+
|
|
146
|
+
- **Level A** (config-only edits to `organization-model.ts`, System availability/routing toggles, label renames): delegate to `/om <domain>` immediately.
|
|
147
|
+
- **Level B** (new Zod extension files in `core/config/extensions/`): also delegate to `/om <domain>`; `/om` gates Level B to explicit user asks before scaffolding a new TS file.
|
|
148
|
+
|
|
149
|
+
Vibe detects the intent and delegates in both cases. It does not run either pipeline itself.
|
|
150
|
+
|
|
151
|
+
For "build/extend the CRM" asks, classify the structural org-model portion as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-crm.md` before editing. CRM work often spans org-model sales semantics, shared UI routes, hooks, workflow adapters, and deal actions; do not reduce it to only `sales` config or only UI.
|
|
152
|
+
|
|
153
|
+
For "build/extend lead gen" / "campaign creator" / "outbound list state" asks, classify the structural org-model portion as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/extend-lead-gen.md` before editing. Lead-gen work often spans org-model prospecting semantics, shared UI routes, hooks, list/member state, artifacts, and workflow adapters; do not reduce it to only `prospecting` config or only UI.
|
|
154
|
+
|
|
155
|
+
For "add a custom CRM action" / "Send Quote button" asks, classify as Codify, then read `node_modules/@elevasis/sdk/reference/scaffold/recipes/customize-crm-actions.md` before editing. Start with the shared `crmActions` provider path for action visibility, labels, ordering, and render-time configuration. In v1, platform-known/default action endpoint behavior is server-constrained; use project-owned UI that calls the workflow directly when a custom key sits outside that server-dispatched set.
|
|
156
|
+
|
|
157
|
+
Heuristics for when to propose codification (passed to `/om` as context):
|
|
158
|
+
|
|
159
|
+
- First mention of a new attribute: note to `resume_context`, do not propose yet
|
|
160
|
+
- Second mention OR explicit declaration ("we're ecom"): propose extension
|
|
161
|
+
- Explicit ask ("track ecom deals separately"): propose immediately with fuller scope
|
|
162
|
+
- Attribute appearing across 3+ tasks: propose adding field to existing extension
|
|
163
|
+
|
|
164
|
+
### 7. Toggle
|
|
165
|
+
|
|
166
|
+
The user wants to enable or disable a System.
|
|
167
|
+
|
|
168
|
+
**Recognize by:** system-control vocabulary -- "turn on", "enable", "disable", "turn off", "activate", "deactivate" -- followed by a System name or description.
|
|
169
|
+
|
|
170
|
+
**Fixture examples:**
|
|
171
|
+
|
|
172
|
+
| Input | Why it's Toggle |
|
|
173
|
+
| ------------------------------- | -------------------------------------------- |
|
|
174
|
+
| "Turn on the lead-gen system" | Explicit "turn on" + System name |
|
|
175
|
+
| "Disable monitoring for now" | "Disable" + System reference |
|
|
176
|
+
| "We don't use SEO, turn it off" | Declarative + "turn it off" = System disable |
|
|
177
|
+
|
|
178
|
+
**Agent action:** delegate to `/om systems`. The ceremony (confirm + edit `core/config/organization-model.ts` + typecheck) belongs to `/om`, not to the ambient rule.
|
|
179
|
+
|
|
180
|
+
## Quick Reference Table
|
|
181
|
+
|
|
182
|
+
| Intent | Trigger signal | Routed to |
|
|
183
|
+
| ---------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
|
184
|
+
| Capture | "add", "remember", "track", "log" + a thing | Agent -- draft + confirm + `project:*` or `schedule:create` CLI |
|
|
185
|
+
| Query | "what's next", "what's pending", "what failed", "what systems" | Agent -- read with `project:*`, `queue:*`, or `schedule:*` + narrate |
|
|
186
|
+
| Describe | "what is", "tell me about", "explain", "where am I" | Agent -- narrate from org model labels |
|
|
187
|
+
| Transition | "done", "stuck", "blocked", "finished", "complete", "approve", "pause" | Agent -- confirm + `project:task:save`, `queue:select`, or `schedule:*` |
|
|
188
|
+
| Navigate | "focus on", "switch to", "back to", "look at" | Agent -- update scope + narrate |
|
|
189
|
+
| Codify | "we are X", "we track Y", repeated attribute, "add type/field" | Delegate to `/om \<domain>` |
|
|
190
|
+
| Toggle | "enable", "disable", "turn on/off" + system | Delegate to `/om systems` |
|
|
191
|
+
|
|
192
|
+
## Source of Truth for Plain Language
|
|
193
|
+
|
|
194
|
+
All plain-language labels come from the OrganizationModel itself -- never from hardcoded strings in this rule file. Every status, entity kind, and layer name in the model carries an inline `label` field (e.g., `{ id: 'revision_requested', label: 'changes needed', semanticClass: 'blocked' }`). When narrating state or confirming an action, read the label from the model and use it verbatim. Do not invent synonyms or fallback vocabulary.
|
|
195
|
+
|
|
196
|
+
The unified manifest (delivered via `@elevasis/core/organization-model`) is the canonical vocabulary surface. Vibe classifies against it -- Systems, Actions, statuses, operations entities, and resource kinds are all discoverable from the manifest without hardcoding.
|
|
197
|
+
|
|
198
|
+
## Ambiguous Intent
|
|
199
|
+
|
|
200
|
+
When the user's input does not clearly map to one of the seven types, ask one clarifying question. Do not guess. Do not apply a precedence rule. Do not route to the "closest" intent.
|
|
201
|
+
|
|
202
|
+
Format: a single neutral question that presents the two (or three) plausible intents as options and asks which the user means.
|
|
203
|
+
|
|
204
|
+
Example: "That could be a note to capture or a status update on the current task -- which did you mean?"
|
|
205
|
+
|
|
206
|
+
Never ask more than one question per ambiguous input. If the user's reply is still ambiguous, ask once more, then surface the options explicitly.
|
|
207
|
+
|
|
208
|
+
## Classifier Threshold
|
|
209
|
+
|
|
210
|
+
Default threshold: `balanced`.
|
|
211
|
+
|
|
212
|
+
The threshold controls how aggressively the classifier proposes codification from ambiguous signals:
|
|
213
|
+
|
|
214
|
+
- `strict` -- only explicit declarations or repeat mentions trigger codify proposals
|
|
215
|
+
- `balanced` -- second mention OR explicit declaration triggers; default
|
|
216
|
+
- `loose` -- first strong signal triggers a proposal
|
|
217
|
+
|
|
218
|
+
Override per project in `core/config/organization-model.ts` under `vibe.classifierThreshold`. The override is merge-aware (Tier 2 sync) and will not be overwritten by template sync operations.
|
|
219
|
+
|
|
220
|
+
## Phase-1 Scope
|
|
221
|
+
|
|
222
|
+
This rule covers Phase 1 of the vibe layer rollout. The layers the ambient classifier can narrate and codify in Phase 1 are:
|
|
223
|
+
|
|
224
|
+
- Layer 1 (Model): narrate schema shape, propose codification edits via `/om`
|
|
225
|
+
- Layer 4 (Systems/Actions): describe which Systems are on/off, propose enabling one via `/om`
|
|
226
|
+
- Layer 7 (Foundations): explain and edit `organization-model.ts` and `extensions/` via `/om`
|
|
227
|
+
|
|
228
|
+
Layers 2 (Public API), 3 (UI Shell Runtime), 5 (Toolkit), and 6 (Graph) require runtime read APIs that are not yet available. Do not attempt to narrate or classify against those layers in Phase 1. If the user's input clearly references one of those layers, acknowledge the scope and explain that full support arrives in a later phase.
|
|
229
|
+
|
|
230
|
+
## What Vibe Is Not
|
|
231
|
+
|
|
232
|
+
- Vibe is not a slash command. There is no `/vibe` invocation (decision #19 -- ambient rule, not a skill or command).
|
|
233
|
+
- Vibe is not a skill. It lives in this rule file + CLAUDE.md + the PreToolUse hook -- not in `.claude/skills/`.
|
|
234
|
+
- Vibe does not own the codify ceremony. `/om` owns draft, confirm, write, and typecheck for both Level A and Level B codify pipelines (decision #21 -- Codify ceremony delegated to `/om`). Vibe detects intent and hands off.
|
|
235
|
+
- Vibe is not active in the monorepo. If working inside the monorepo (not an `external/` project), this ambient routing does not apply.
|