@elevasis/sdk 1.5.5 → 1.7.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 (36) hide show
  1. package/dist/cli.cjs +296 -98
  2. package/dist/index.d.ts +7 -4
  3. package/package.json +2 -2
  4. package/reference/_navigation.md +2 -1
  5. package/reference/_reference-manifest.json +16 -2
  6. package/reference/claude-config/commands/submit-request.md +11 -0
  7. package/reference/claude-config/hooks/__tests__/pre-edit-vibe-gate.test.mjs +169 -0
  8. package/reference/claude-config/hooks/pre-edit-vibe-gate.mjs +128 -0
  9. package/reference/claude-config/logs/pre-edit-vibe-gate.log +23 -0
  10. package/reference/claude-config/rules/organization-os.md +55 -8
  11. package/reference/claude-config/rules/vibe.md +210 -0
  12. package/reference/claude-config/settings.json +11 -0
  13. package/reference/claude-config/skills/configure/SKILL.md +100 -0
  14. package/reference/claude-config/skills/configure/operations/codify-level-a.md +100 -0
  15. package/reference/claude-config/skills/configure/operations/codify-level-b.md +158 -0
  16. package/reference/claude-config/skills/configure/operations/customers.md +150 -0
  17. package/reference/claude-config/skills/configure/operations/features.md +163 -0
  18. package/reference/claude-config/skills/configure/operations/goals.md +147 -0
  19. package/reference/claude-config/skills/configure/operations/identity.md +133 -0
  20. package/reference/claude-config/skills/configure/operations/labels.md +128 -0
  21. package/reference/claude-config/skills/configure/operations/offerings.md +159 -0
  22. package/reference/claude-config/skills/configure/operations/roles.md +153 -0
  23. package/reference/claude-config/skills/configure/operations/techStack.md +139 -0
  24. package/reference/claude-config/skills/project/SKILL.md +96 -39
  25. package/reference/claude-config/skills/setup/SKILL.md +81 -32
  26. package/reference/claude-config/skills/{submit-issue → submit-request}/SKILL.md +41 -26
  27. package/reference/packages/core/src/organization-model/README.md +16 -12
  28. package/reference/scaffold/core/organization-graph.mdx +1 -0
  29. package/reference/scaffold/core/organization-model.mdx +84 -19
  30. package/reference/scaffold/recipes/add-a-feature.md +1 -1
  31. package/reference/scaffold/recipes/customize-organization-model.md +5 -5
  32. package/reference/scaffold/recipes/gate-by-feature-or-admin.md +3 -3
  33. package/reference/scaffold/reference/contracts.md +115 -7
  34. package/reference/scaffold/reference/feature-registry.md +1 -1
  35. package/reference/scaffold/reference/glossary.md +25 -4
  36. package/reference/claude-config/commands/submit-issue.md +0 -11
@@ -0,0 +1,150 @@
1
+ # Configure: customers
2
+
3
+ Guides the user through reviewing and updating the `customers` domain of the organization model.
4
+
5
+ The `customers` domain describes who the organization serves — distinct buyer archetypes modeled
6
+ after the Value Proposition Canvas (BMC / VPC). Each segment captures jobs-to-be-done, pains,
7
+ gains, firmographics, and a value proposition. Agents use these segments for targeting, outreach
8
+ context, and personalization.
9
+
10
+ ## Schema reference
11
+
12
+ Source: `packages/core/src/organization-model/domains/customers.ts`
13
+
14
+ ```typescript
15
+ CustomersDomainSchema = z.object({
16
+ segments: z.array(CustomerSegmentSchema).default([])
17
+ })
18
+
19
+ CustomerSegmentSchema = z.object({
20
+ id: z.string().trim().min(1).max(100), // stable ID, e.g. "segment-smb-agencies"
21
+ name: z.string().trim().max(200).default(''), // display name
22
+ description: z.string().trim().max(2000).default(''), // who this segment is
23
+ jobsToBeDone: z.string().trim().max(2000).default(''), // the goal they hire you to accomplish
24
+ pains: z.array(z.string().trim().max(500)).default([]),
25
+ gains: z.array(z.string().trim().max(500)).default([]),
26
+ firmographics: FirmographicsSchema.default({}), // industry, companySize, region
27
+ valueProp: z.string().trim().max(2000).default('') // why your offering fits this segment
28
+ })
29
+
30
+ FirmographicsSchema = z.object({
31
+ industry: z.string().trim().max(200).optional(), // e.g. "Marketing Agency"
32
+ companySize: z.string().trim().max(100).optional(), // e.g. "11–50"
33
+ region: z.string().trim().max(200).optional() // e.g. "North America"
34
+ })
35
+ ```
36
+
37
+ Where this lands in the adapter: `foundations/config/organization-model.ts` under the `customers`
38
+ key of `defineOrganizationModel({...})`.
39
+
40
+ ---
41
+
42
+ ## Process
43
+
44
+ ### Step 1: Read current state
45
+
46
+ Read `foundations/config/organization-model.ts` and extract the current `customers.segments` array.
47
+ Present it as a summary table:
48
+
49
+ ```
50
+ Current customer segments (N):
51
+ 1. {name} ({id}) — {description truncated to 80 chars}
52
+ 2. ...
53
+ (none defined yet)
54
+ ```
55
+
56
+ ### Step 2: Establish intent
57
+
58
+ Ask whether the user wants to:
59
+
60
+ - **Add** a new segment
61
+ - **Edit** an existing segment (by name or number)
62
+ - **Remove** a segment
63
+ - **Review all** segments in detail
64
+
65
+ Handle one segment at a time unless the user explicitly asks to work on multiple at once.
66
+
67
+ ### Step 3: Gather segment details
68
+
69
+ For each segment being added or edited, work through the fields conversationally:
70
+
71
+ **Core identity:**
72
+
73
+ - "What's a good name for this segment? (e.g. 'SMB Marketing Agencies', 'Enterprise SaaS Companies')"
74
+ - "Give it a stable ID I'll use as a key — lowercase with hyphens, like `segment-smb-agencies`."
75
+ - "How would you describe who this segment is in one or two sentences?"
76
+
77
+ **Jobs-to-be-done:**
78
+
79
+ - "What is the main job this segment is trying to get done? The goal they hire you to accomplish —
80
+ describe it in their terms, not yours."
81
+
82
+ **Pains and gains:**
83
+
84
+ - "What are two or three frustrations or obstacles this segment runs into when trying to get that
85
+ job done?"
86
+ - "What outcomes or benefits are they hoping for — beyond just fixing the pain?"
87
+
88
+ **Firmographics (optional):**
89
+
90
+ - "Do you want to capture firmographic filters for targeting? Things like industry vertical,
91
+ typical company size, and geographic region."
92
+
93
+ **Value proposition:**
94
+
95
+ - "How does your organization's offering uniquely address this segment's needs? One or two sentences."
96
+
97
+ If a field already has a value, show it and ask "Keep this or update it?"
98
+
99
+ ### Step 4: Confirm before writing
100
+
101
+ Present a diff for the affected segment(s):
102
+
103
+ ```
104
+ Proposed customers change:
105
+
106
+ ADD segment "SMB Marketing Agencies" (segment-smb-agencies):
107
+ name: "SMB Marketing Agencies"
108
+ description: "Owner-operated agencies with 1–15 employees running campaign delivery for SMB clients."
109
+ jobsToBeDone: "Deliver consistent client results without adding headcount."
110
+ pains: ["Manual campaign QA", "Client reporting takes hours", "Hard to scale without hiring"]
111
+ gains: ["More client capacity without more staff", "Predictable delivery timelines"]
112
+ firmographics: { industry: "Marketing Agency", companySize: "1–15", region: "North America" }
113
+ valueProp: "Automates the repetitive delivery and reporting work so agencies can take on more clients."
114
+
115
+ Apply? (yes/no)
116
+ ```
117
+
118
+ For edits to existing segments, show only the fields that changed.
119
+
120
+ ### Step 5: Codify
121
+
122
+ Execute `.claude/skills/configure/operations/codify-level-a.md` with the proposed `customers`
123
+ block. Only the `segments` array is written — no other keys in the adapter are touched.
124
+
125
+ When adding a segment, append to the array. When editing, replace the matching entry by `id`.
126
+ When removing, filter it out.
127
+
128
+ Cross-reference note: if `offerings.products[].targetSegmentIds` references a segment being
129
+ removed, surface a warning and ask the user whether to clean up those references before writing.
130
+
131
+ ### Step 6: Report
132
+
133
+ After successful validation:
134
+
135
+ ```
136
+ Customers updated.
137
+ Segments: {total count} ({N added / N edited / N removed})
138
+ foundations/config/organization-model.ts — customers.segments updated
139
+ Type-check: PASS
140
+ Schema validation: PASS
141
+ ```
142
+
143
+ If validation failed and rollback occurred:
144
+
145
+ ```
146
+ Customers update rolled back.
147
+ Reason: {error message}
148
+ foundations/config/organization-model.ts — restored to previous state
149
+ No changes persisted.
150
+ ```
@@ -0,0 +1,163 @@
1
+ # Configure: features
2
+
3
+ Guides the user through enabling, disabling, or adding features in the organization model.
4
+
5
+ Features are the top-level capability switches in the platform. Enabling a feature makes its nav
6
+ items and routes visible; disabling hides them without removing the feature from the model. Adding
7
+ a new feature may require only a config edit (Level A) or a new extension TypeScript file
8
+ (Level B), depending on whether the feature already exists in the platform defaults.
9
+
10
+ This operation handles both toggling existing features and introducing custom features. For
11
+ surface-level toggles (hiding one sub-section within an already-enabled feature), use
12
+ `/org-os manage` instead.
13
+
14
+ ## Background: Level A vs Level B
15
+
16
+ - **Level A (config-only edit):** The feature exists in the platform defaults
17
+ (`packages/core/src/organization-model/defaults.ts`). The adapter in
18
+ `foundations/config/organization-model.ts` overrides its `enabled` flag or adjusts metadata.
19
+ No new TypeScript files needed.
20
+
21
+ - **Level B (new extension file):** The feature does not exist in platform defaults. A new
22
+ feature ID and manifest need to be declared. This requires a new TypeScript file under
23
+ `foundations/config/extensions/` plus wiring it into the adapter. Level B is only offered when
24
+ the user explicitly asks to create a custom feature.
25
+
26
+ ## Schema reference
27
+
28
+ Source: `packages/core/src/organization-model/domains/features.ts`
29
+
30
+ ```typescript
31
+ FeatureSchema = z.object({
32
+ id: ModelIdSchema, // lowercase, e.g. "crm", "lead-gen", "seo"
33
+ label: LabelSchema, // display label
34
+ description: DescriptionSchema.optional(),
35
+ enabled: z.boolean().default(true),
36
+ color: ColorTokenSchema.optional(),
37
+ icon: IconNameSchema.optional(),
38
+ entityIds: ReferenceIdsSchema,
39
+ surfaceIds: ReferenceIdsSchema,
40
+ resourceIds: ReferenceIdsSchema,
41
+ capabilityIds: ReferenceIdsSchema
42
+ })
43
+ ```
44
+
45
+ Platform default feature IDs (from `packages/core/src/organization-model/contracts.ts`):
46
+ `crm`, `lead-gen`, `projects`, `operations`, `monitoring`, `settings`, `seo`
47
+
48
+ Where this lands in the adapter: `foundations/config/organization-model.ts` under the `features`
49
+ array of `defineOrganizationModel({...})`. The `features` array replaces entirely (no element
50
+ merge), so the adapter must redeclare all features it wants to override.
51
+
52
+ ---
53
+
54
+ ## Process
55
+
56
+ ### Step 1: Read current state
57
+
58
+ Read `foundations/config/organization-model.ts` and extract the current `features` array from the
59
+ adapter. Also read `packages/core/src/organization-model/defaults.ts` to see what the platform
60
+ defaults look like.
61
+
62
+ Present a combined view:
63
+
64
+ ```
65
+ Platform features (current state):
66
+ crm [enabled] -- CRM (adapter override or platform default)
67
+ lead-gen [enabled] -- Lead Generation
68
+ projects [enabled] -- Projects
69
+ operations [enabled] -- Operations
70
+ monitoring [enabled] -- Monitoring
71
+ settings [enabled] -- Settings
72
+ seo [disabled] -- SEO (disabled in platform default)
73
+
74
+ Custom features (adapter-only):
75
+ (none)
76
+ ```
77
+
78
+ ### Step 2: Establish intent
79
+
80
+ Ask what the user wants to do:
81
+
82
+ - **Enable** a disabled feature
83
+ - **Disable** an enabled feature
84
+ - **Add a custom feature** (Level B -- will ask for explicit confirmation)
85
+ - **Edit metadata** on an existing feature (label, color, icon)
86
+
87
+ For enable/disable: this is Level A. For custom add: escalate to Level B branch.
88
+
89
+ ### Step 3a: Level A -- Enable or disable
90
+
91
+ For an enable or disable request:
92
+
93
+ - Identify the target feature by name or ID.
94
+ - Read the current `enabled` value.
95
+ - Confirm the proposed change:
96
+
97
+ ```
98
+ Proposed feature change:
99
+
100
+ DISABLE feature "SEO" (seo):
101
+ enabled: true -> false
102
+
103
+ This will hide the SEO nav item and gate its routes.
104
+ Apply? (yes/no)
105
+ ```
106
+
107
+ After confirmation, execute `.claude/skills/configure/operations/codify-level-a.md`.
108
+
109
+ The write either adds or updates the matching entry in the `features` array of the adapter.
110
+ Because the array replaces entirely, verify that the adapter redeclares all features that should
111
+ remain in their current state.
112
+
113
+ ### Step 3b: Level B -- Add a custom feature
114
+
115
+ Only proceed here when the user explicitly asks to add a new custom feature that does not exist in
116
+ the platform defaults.
117
+
118
+ State clearly: "Adding a custom feature creates a new TypeScript extension file in
119
+ `foundations/config/extensions/`. This is a bigger change than a config toggle. Want to proceed?"
120
+
121
+ If yes, gather:
122
+
123
+ - "What should the feature ID be? Lowercase, hyphens only (e.g. `client-portal`)."
124
+ - "What's the display label? (e.g. 'Client Portal')"
125
+ - "Optional: a short description of what this feature represents."
126
+ - "Which surfaces, entities, or resources does this feature relate to? (IDs -- leave blank to add
127
+ later)"
128
+
129
+ Then execute `.claude/skills/configure/operations/codify-level-b.md` to scaffold the extension
130
+ file and wire it into the adapter.
131
+
132
+ ### Step 4: Validation
133
+
134
+ All changes -- Level A and Level B -- must pass:
135
+
136
+ 1. `pnpm -C operations check-types`
137
+ 2. `resolveOrganizationModel()` and `OrganizationModelSchema.parse()` succeed on the merged result
138
+
139
+ On failure, roll back and report. See `codify-level-a.md` and `codify-level-b.md` for the
140
+ rollback procedure.
141
+
142
+ ### Step 5: Report
143
+
144
+ After successful validation:
145
+
146
+ ```
147
+ Features updated.
148
+ {feature label} ({id}): {old enabled} -> {new enabled} (Level A)
149
+ Custom feature "{label}" ({id}): added (Level B, if applicable)
150
+ foundations/config/organization-model.ts -- features array updated
151
+ foundations/config/extensions/{id}.ts -- created (Level B only)
152
+ Type-check: PASS
153
+ Schema validation: PASS
154
+ ```
155
+
156
+ If validation failed and rollback occurred:
157
+
158
+ ```
159
+ Features update rolled back.
160
+ Reason: {error message}
161
+ All files restored to previous state.
162
+ No changes persisted.
163
+ ```
@@ -0,0 +1,147 @@
1
+ # Configure: goals
2
+
3
+ Guides the user through reviewing and updating the `goals` domain of the organization model.
4
+
5
+ The `goals` domain captures what the organization is working toward — time-bounded goals with
6
+ measurable outcomes. The schema shape is OKR-inspired (objectives + key results) but all
7
+ user-facing language must say "goals" and "measurable outcomes". Never say "OKR", "objective",
8
+ or "key result" to the user.
9
+
10
+ Agents use this domain for quarterly planning, priority routing, and understanding which outcomes
11
+ matter most right now.
12
+
13
+ ## Schema reference
14
+
15
+ Source: `packages/core/src/organization-model/domains/goals.ts`
16
+
17
+ ```typescript
18
+ GoalsDomainSchema = z.object({
19
+ objectives: z.array(ObjectiveSchema).default([])
20
+ })
21
+
22
+ ObjectiveSchema = z.object({
23
+ id: z.string().trim().min(1).max(100), // stable ID, e.g. "goal-grow-arr-q1-2026"
24
+ description: z.string().trim().min(1).max(1000), // plain-language goal statement
25
+ periodStart: z.string().regex(ISO_DATE), // YYYY-MM-DD — must be before periodEnd
26
+ periodEnd: z.string().regex(ISO_DATE), // YYYY-MM-DD — enforced in superRefine
27
+ keyResults: z.array(KeyResultSchema).default([]) // measurable outcomes under this goal
28
+ })
29
+
30
+ KeyResultSchema = z.object({
31
+ id: z.string().trim().min(1).max(100), // e.g. "kr-revenue-q1"
32
+ description: z.string().trim().min(1).max(500), // e.g. "Increase trial-to-paid conversion"
33
+ targetMetric: z.string().trim().min(1).max(200), // what is being measured, e.g. "monthly revenue"
34
+ currentValue: z.number().default(0), // current tracked value
35
+ targetValue: z.number().optional() // target to hit (omit if directional)
36
+ })
37
+ ```
38
+
39
+ Cross-reference constraint: `periodEnd` must be strictly after `periodStart`. Enforced at parse
40
+ time by `OrganizationModelSchema.superRefine()`.
41
+
42
+ The field name in the schema is `objectives` (not `goals`) and the measurable-outcome array is
43
+ `keyResults` (not `outcomes`) — these are internal field names, not user-facing vocabulary.
44
+
45
+ Where this lands in the adapter: `foundations/config/organization-model.ts` under the `goals`
46
+ key of `defineOrganizationModel({...})`.
47
+
48
+ ---
49
+
50
+ ## Process
51
+
52
+ ### Step 1: Read current state
53
+
54
+ Read `foundations/config/organization-model.ts` and extract the current `goals.objectives` array.
55
+ Present as a plain-language summary:
56
+
57
+ ```
58
+ Current goals (N):
59
+ 1. "{description truncated to 80 chars}" ({id})
60
+ Period: {periodStart} → {periodEnd}
61
+ Measurable outcomes: {count}
62
+ (no goals defined yet)
63
+ ```
64
+
65
+ ### Step 2: Establish intent
66
+
67
+ Ask whether the user wants to:
68
+
69
+ - **Add** a new goal
70
+ - **Edit** an existing goal (by description or number)
71
+ - **Remove** a goal
72
+ - **Update progress** on a measurable outcome (update `currentValue`)
73
+
74
+ ### Step 3: Gather goal details
75
+
76
+ For each goal being added or edited:
77
+
78
+ **Core goal:**
79
+
80
+ - "What is the organization working toward? Describe the goal in plain language — one or two sentences."
81
+ - "Give it a stable ID — lowercase with hyphens, e.g. `goal-grow-arr-q1-2026`."
82
+ - "What period does this goal cover? (Start date and end date — e.g. 2026-01-01 to 2026-03-31)"
83
+
84
+ Validate that the end date is strictly after the start date before proceeding.
85
+
86
+ **Measurable outcomes (optional but recommended):**
87
+
88
+ - "Do you want to add any measurable outcomes under this goal? These help track whether you're
89
+ on track."
90
+ - For each outcome: "What are you measuring? (e.g. monthly revenue, NPS score, trial-to-paid
91
+ conversion rate)"
92
+ - "What's the target value? (Optional — leave blank if the outcome is directional.)"
93
+ - "What's the current value?"
94
+ - "Give this outcome an ID — e.g. `kr-revenue-q1`."
95
+
96
+ Capture as many outcomes as the user wants. One at a time is fine.
97
+
98
+ ### Step 4: Confirm before writing
99
+
100
+ Present a diff:
101
+
102
+ ```
103
+ Proposed goals change:
104
+
105
+ ADD goal "Reach $50K MRR by end of Q1 2026" (goal-arr-q1-2026):
106
+ period: 2026-01-01 → 2026-03-31
107
+ outcomes:
108
+ kr-mrr-q1: "Grow monthly recurring revenue"
109
+ metric: "monthly recurring revenue (MRR)"
110
+ current: 32000
111
+ target: 50000
112
+ kr-churn-q1: "Reduce churn rate"
113
+ metric: "monthly churn rate (%)"
114
+ current: 4.2
115
+ target: 2.5
116
+
117
+ Apply? (yes/no)
118
+ ```
119
+
120
+ ### Step 5: Codify
121
+
122
+ Execute `.claude/skills/configure/operations/codify-level-a.md` with the proposed `goals` block.
123
+ Only the `objectives` array is written — no other keys in the adapter are touched.
124
+
125
+ When updating progress only (updating `currentValue` on an existing outcome), make a targeted
126
+ edit rather than rewriting the entire goals block.
127
+
128
+ ### Step 6: Report
129
+
130
+ After successful validation:
131
+
132
+ ```
133
+ Goals updated.
134
+ Goals: {total count} ({N added / N edited / N removed})
135
+ foundations/config/organization-model.ts — goals.objectives updated
136
+ Type-check: PASS
137
+ Schema validation: PASS
138
+ ```
139
+
140
+ If validation failed and rollback occurred:
141
+
142
+ ```
143
+ Goals update rolled back.
144
+ Reason: {error message}
145
+ foundations/config/organization-model.ts — restored to previous state
146
+ No changes persisted.
147
+ ```
@@ -0,0 +1,133 @@
1
+ # Configure: identity
2
+
3
+ Guides the user through reviewing and updating the `identity` domain of the organization model.
4
+
5
+ The `identity` domain captures legal identity, purpose, and operational anchors — distinct from
6
+ `branding` (display identity: logos, product names). Editing identity fields here does not touch
7
+ any visual or branding configuration.
8
+
9
+ ## Schema reference
10
+
11
+ Source: `packages/core/src/organization-model/domains/identity.ts`
12
+
13
+ ```typescript
14
+ IdentityDomainSchema = z.object({
15
+ mission: z.string().trim().max(1000).default(''),
16
+ vision: z.string().trim().max(1000).default(''),
17
+ legalName: z.string().trim().max(200).default(''),
18
+ entityType: z.string().trim().max(100).default(''), // e.g. "LLC", "Corporation"
19
+ jurisdiction: z.string().trim().max(200).default(''), // e.g. "United States – Delaware"
20
+ industryCategory: z.string().trim().max(200).default(''), // e.g. "Marketing Agency"
21
+ geographicFocus: z.string().trim().max(200).default(''), // e.g. "North America"
22
+ timeZone: z.string().trim().max(100).default('UTC'), // IANA identifier
23
+ businessHours: BusinessHoursSchema // per-day { open, close } in HH:MM
24
+ })
25
+ ```
26
+
27
+ `BusinessHoursSchema` is an object with optional keys `monday` through `sunday`, each holding
28
+ `{ open: "HH:MM", close: "HH:MM" }`. An empty object `{}` means not configured.
29
+
30
+ Where this lands in the adapter: `foundations/config/organization-model.ts` under the `identity`
31
+ key of `defineOrganizationModel({...})`.
32
+
33
+ ---
34
+
35
+ ## Process
36
+
37
+ ### Step 1: Read current state
38
+
39
+ Read `foundations/config/organization-model.ts` and extract the current `identity` block. Present
40
+ it to the user as a plain-language summary, not a raw code dump:
41
+
42
+ ```
43
+ Current identity:
44
+ Mission: {value or "(not set)"}
45
+ Vision: {value or "(not set)"}
46
+ Legal name: {value or "(not set)"}
47
+ Entity type: {value or "(not set)"}
48
+ Jurisdiction: {value or "(not set)"}
49
+ Industry: {value or "(not set)"}
50
+ Geographic focus: {value or "(not set)"}
51
+ Time zone: {value}
52
+ Business hours: {configured days or "not configured"}
53
+ ```
54
+
55
+ ### Step 2: Ask conversationally
56
+
57
+ Work through the fields in natural conversation. You do not need to ask every field in a single
58
+ message — group related ones together and react to what the user shares.
59
+
60
+ **Group A — Purpose:**
61
+
62
+ - "What's the organization's mission? (Why does it exist — one or two sentences.)"
63
+ - "What's the vision? (Where is the organization headed long-term?)"
64
+
65
+ **Group B — Legal identity:**
66
+
67
+ - "What's the legal registered name of the organization?"
68
+ - "What type of legal entity is it? (e.g. LLC, Corporation, Sole Proprietor, Non-profit)"
69
+ - "What jurisdiction is it registered in? (e.g. United States – Delaware, Canada – Ontario)"
70
+
71
+ **Group C — Industry and geography:**
72
+
73
+ - "What industry or category best describes the organization? (e.g. Marketing Agency, SaaS, Professional Services)"
74
+ - "Where does it primarily operate or serve? (e.g. North America, Global, Southeast Asia)"
75
+
76
+ **Group D — Temporal anchors:**
77
+
78
+ - "What time zone does the team primarily operate in? I'll use an IANA identifier like
79
+ America/Los_Angeles or Europe/London."
80
+ - "Do you want to capture standard business hours? (e.g. Mon–Fri 09:00–17:00)"
81
+
82
+ If a field already has a non-empty value, show the current value and ask whether to keep or change it.
83
+ Never silently overwrite existing values without confirmation.
84
+
85
+ ### Step 3: Confirm before writing
86
+
87
+ Present a diff-style summary of all proposed changes:
88
+
89
+ ```
90
+ Proposed identity changes:
91
+ mission: "" → "We help SMBs automate complex operations using AI."
92
+ vision: (unchanged) "(not set)"
93
+ legalName: "" → "Acme Operations LLC"
94
+ entityType: "" → "LLC"
95
+ jurisdiction: "" → "United States – Delaware"
96
+ industryCategory: "" → "AI Automation / Professional Services"
97
+ geographicFocus: "" → "North America"
98
+ timeZone: "UTC" → "America/Chicago"
99
+ businessHours: {} → { monday–friday: 09:00–17:00 }
100
+
101
+ Apply these changes? (yes/no)
102
+ ```
103
+
104
+ If the user says no, abort without writing anything.
105
+
106
+ ### Step 4: Codify
107
+
108
+ Execute `.claude/skills/configure/operations/codify-level-a.md` with these changes targeting the
109
+ `identity` key inside the `defineOrganizationModel({...})` call in
110
+ `foundations/config/organization-model.ts`.
111
+
112
+ Only write the fields the user confirmed. Do not add or remove other top-level keys in the adapter.
113
+
114
+ ### Step 5: Report
115
+
116
+ After successful validation:
117
+
118
+ ```
119
+ Identity updated.
120
+ Fields changed: {list}
121
+ foundations/config/organization-model.ts — identity block updated
122
+ Type-check: PASS
123
+ Schema validation: PASS
124
+ ```
125
+
126
+ If validation failed and rollback occurred, report:
127
+
128
+ ```
129
+ Identity update rolled back.
130
+ Reason: {error message}
131
+ foundations/config/organization-model.ts — restored to previous state
132
+ No changes persisted.
133
+ ```