@yottagraph-app/aether-instructions 1.1.8 → 1.1.9

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 (34) hide show
  1. package/commands/update_instructions.md +30 -23
  2. package/package.json +1 -1
  3. package/skills/data-model/SKILL.md +58 -0
  4. package/skills/data-model/edgar/DATA_DICTIONARY.md +306 -0
  5. package/skills/data-model/edgar/schema.yaml +1893 -0
  6. package/skills/data-model/fdic/DATA_DICTIONARY.md +243 -0
  7. package/skills/data-model/fdic/schema.yaml +356 -0
  8. package/skills/data-model/fred/DATA_DICTIONARY.md +313 -0
  9. package/skills/data-model/fred/schema.yaml +155 -0
  10. package/skills/data-model/gleif/DATA_DICTIONARY.md +211 -0
  11. package/skills/data-model/gleif/schema.yaml +254 -0
  12. package/skills/data-model/newsdata/schema.yaml +650 -0
  13. package/skills/data-model/overview.md +77 -0
  14. package/skills/data-model/polymarket/DATA_DICTIONARY.md +384 -0
  15. package/skills/data-model/polymarket/schema.yaml +601 -0
  16. package/skills/data-model/sanctions/DATA_DICTIONARY.md +140 -0
  17. package/skills/data-model/sanctions/schema.yaml +153 -0
  18. package/skills/data-model/stocks/DATA_DICTIONARY.md +122 -0
  19. package/skills/data-model/stocks/schema.yaml +131 -0
  20. package/skills/data-model/system_schema.yaml +71 -0
  21. package/skills/data-model/wikipedia/DATA_DICTIONARY.md +185 -0
  22. package/skills/data-model/wikipedia/schema.yaml +255 -0
  23. package/skills/elemental-api/SKILL.md +37 -0
  24. package/skills/elemental-api/articles.md +386 -0
  25. package/skills/elemental-api/entities.md +393 -0
  26. package/skills/elemental-api/events.md +145 -0
  27. package/skills/elemental-api/find.md +279 -0
  28. package/skills/elemental-api/graph.md +239 -0
  29. package/skills/elemental-api/llm.md +18 -0
  30. package/skills/elemental-api/overview.md +51 -0
  31. package/skills/elemental-api/relationships.md +310 -0
  32. package/skills/elemental-api/schema.md +379 -0
  33. package/skills/elemental-api/sentiment.md +93 -0
  34. package/skills/elemental-api/server.md +186 -0
@@ -0,0 +1,211 @@
1
+ # Data Dictionary: GLEIF
2
+
3
+ ## Source Overview
4
+
5
+ GLEIF (Global Legal Entity Identifier Foundation) publishes the Legal Entity
6
+ Identifier (LEI) system — a global reference data standard for legal entities
7
+ participating in financial transactions. The data is updated three times daily
8
+ via the Golden Copy and is freely accessible through a public REST API.
9
+
10
+ The GLEIF dataset provides two levels of data:
11
+ - **Level 1**: Entity reference data ("who is who") — ~3.25M legal entities
12
+ - **Level 2**: Relationship data ("who owns whom") — direct and ultimate
13
+ parent relationships
14
+
15
+ | Pipeline | `Record.Source` |
16
+ |----------|----------------|
17
+ | LEI entity reference + relationships | `gleif-source` |
18
+
19
+ ---
20
+
21
+ ## Entity Types
22
+
23
+ ### `organization`
24
+
25
+ A legal entity registered in the global LEI system. Includes corporations,
26
+ funds, branches, sole proprietorships, and other legal entity types
27
+ worldwide.
28
+
29
+ - Primary key: `lei` (20-character alphanumeric Legal Entity Identifier)
30
+ - Entity resolver: named entity, mergeable. Strong ID = `lei`.
31
+ Disambiguation via legal name, jurisdiction, headquarters address.
32
+ Other names and transliterated names as aliases.
33
+
34
+ ---
35
+
36
+ ## Properties
37
+
38
+ ### Organization Properties
39
+
40
+ #### Identity and Registration
41
+
42
+ Data source: GLEIF API `GET /api/v1/lei-records` — `attributes.entity.*`
43
+ and `attributes.registration.*` fields.
44
+
45
+ * `lei`
46
+ * Definition: Legal Entity Identifier — a 20-character alphanumeric code
47
+ uniquely identifying a legal entity in the global financial system.
48
+ * Examples: `"5493001KJTIIGC8Y1R12"`, `"549300RMUDWPHCUQNE66"`
49
+ * Derivation: `attributes.lei` field, verbatim.
50
+
51
+ * `jurisdiction`
52
+ * Definition: ISO 3166-1 or ISO 3166-2 jurisdiction code where the
53
+ entity is legally registered.
54
+ * Examples: `"US-DE"`, `"LU"`, `"GB"`, `"JP"`
55
+ * Derivation: `entity.jurisdiction` field, verbatim.
56
+
57
+ * `legal_entity_category`
58
+ * Definition: Classification of the legal entity type.
59
+ * Examples: `"GENERAL"`, `"FUND"`, `"BRANCH"`, `"SOLE_PROPRIETOR"`
60
+ * Derivation: `entity.category` field, verbatim.
61
+
62
+ * `legal_entity_status`
63
+ * Definition: Current status of the legal entity itself.
64
+ * Examples: `"ACTIVE"`, `"INACTIVE"`, `"MERGED"`, `"RETIRED"`,
65
+ `"ANNULLED"`, `"CANCELLED"`, `"TRANSFERRED"`, `"DUPLICATE"`
66
+ * Derivation: `entity.status` field, verbatim.
67
+
68
+ * `legal_form_code`
69
+ * Definition: Entity Legal Form (ELF) code from the ISO 20275 standard.
70
+ * Examples: `"6IIM"`, `"U8KA"`, `"T91T"`
71
+ * Derivation: `entity.legalForm.id` field. Falls back to
72
+ `entity.legalForm.other` when the standard code is absent.
73
+
74
+ * `registered_as`
75
+ * Definition: Registration number of the entity at its registration
76
+ authority.
77
+ * Examples: `"26036723"`, `"B262009"`, `"4348344"`
78
+ * Derivation: `entity.registeredAs` field, verbatim.
79
+
80
+ * `registration_authority_id`
81
+ * Definition: Identifier of the business registry where the entity is
82
+ registered.
83
+ * Examples: `"RA000604"`, `"RA000432"`
84
+ * Derivation: `entity.registeredAt.id` field.
85
+
86
+ * `entity_creation_date`
87
+ * Definition: Date when the legal entity was created (incorporated).
88
+ * Examples: `"2007-06-05"`, `"2021-12-08"`
89
+ * Derivation: `entity.creationDate` field, truncated to date.
90
+
91
+ #### Addresses
92
+
93
+ * `legal_address`
94
+ * Definition: Full legal (registered) address as a formatted string.
95
+ * Examples: `"349 Decatur Street, Atlanta, US-GA, US 30312"`,
96
+ `"21, Rue d'Epernay, Luxembourg, LU-LU, LU L-1490"`
97
+ * Derivation: Concatenation of `entity.legalAddress` fields: address
98
+ lines, city, region, country, postal code.
99
+
100
+ * `headquarters_address`
101
+ * Definition: Full headquarters address as a formatted string.
102
+ * Examples: `"731 Lexington Avenue, New York, US-NY, US 10022"`
103
+ * Derivation: Concatenation of `entity.headquartersAddress` fields.
104
+
105
+ * `legal_address_country`
106
+ * Definition: ISO 3166-1 alpha-2 country code from the legal address.
107
+ * Examples: `"US"`, `"LU"`, `"GB"`, `"DE"`
108
+ * Derivation: `entity.legalAddress.country` field, verbatim.
109
+
110
+ * `headquarters_country`
111
+ * Definition: ISO 3166-1 alpha-2 country code from the headquarters
112
+ address.
113
+ * Examples: `"US"`, `"LU"`, `"GB"`, `"DE"`
114
+ * Derivation: `entity.headquartersAddress.country` field, verbatim.
115
+
116
+ #### LEI Registration
117
+
118
+ * `registration_status`
119
+ * Definition: Current status of the LEI registration itself (distinct
120
+ from entity status).
121
+ * Examples: `"ISSUED"`, `"LAPSED"`, `"RETIRED"`, `"PENDING_ARCHIVAL"`,
122
+ `"ANNULLED"`, `"CANCELLED"`, `"TRANSFERRED"`, `"DUPLICATE"`
123
+ * Derivation: `registration.status` field, verbatim.
124
+
125
+ * `initial_registration_date`
126
+ * Definition: Date when the LEI was first issued.
127
+ * Examples: `"2012-12-06"`, `"2026-03-16"`
128
+ * Derivation: `registration.initialRegistrationDate` field, truncated
129
+ to date.
130
+
131
+ * `next_renewal_date`
132
+ * Definition: Date by which the LEI registration must be renewed.
133
+ * Examples: `"2027-01-25"`, `"2027-03-16"`
134
+ * Derivation: `registration.nextRenewalDate` field, truncated to date.
135
+
136
+ * `corroboration_level`
137
+ * Definition: Level of corroboration of the entity's reference data.
138
+ * Examples: `"FULLY_CORROBORATED"`, `"PARTIALLY_CORROBORATED"`,
139
+ `"ENTITY_SUPPLIED_ONLY"`
140
+ * Derivation: `registration.corroborationLevel` field, verbatim.
141
+
142
+ #### Mapped Identifiers
143
+
144
+ * `bic_code`
145
+ * Definition: SWIFT/BIC code mapped to this LEI. Sparse — only
146
+ available for financial institutions.
147
+ * Examples: `"DEUTDEFF"`, `"BNPAFRPP"`
148
+ * Derivation: `attributes.bic` field when non-null.
149
+ * Note: Not available for most entities.
150
+
151
+ * `ocid`
152
+ * Definition: OpenCorporates company identifier mapped to this LEI.
153
+ * Examples: `"us_de/4348344"`, `"gb/12345678"`
154
+ * Derivation: `attributes.ocid` field when non-null.
155
+ * Note: Available for a subset of entities.
156
+
157
+ * `isin`
158
+ * Definition: International Securities Identification Number (ISO 6166) for
159
+ a financial instrument issued by this entity. Multi-valued — an entity may
160
+ have many ISINs.
161
+ * Examples: `"US0378331005"`, `"GB0002634946"`, `"DE0007236101"`
162
+ * Derivation: GLEIF-ANNA daily ISIN-to-LEI mapping CSV at
163
+ `https://mapping.gleif.org/api/v2/isin-lei`. One atom per ISIN.
164
+ * Note: Coverage depends on which NNAs participate in the GLEIF-ANNA mapping
165
+ initiative (currently ~8.4M mappings across ~116 NNAs).
166
+
167
+ #### Successor
168
+
169
+ * `successor_lei`
170
+ * Definition: LEI of the successor entity, set when this entity has
171
+ been merged into or transferred to another entity.
172
+ * Examples: `"549300RMUDWPHCUQNE66"`
173
+ * Derivation: `entity.successorEntity.lei` when non-null. For entities
174
+ with multiple successors, uses `entity.successorEntities[0].lei`.
175
+ * Note: Only populated for entities with status MERGED or TRANSFERRED.
176
+
177
+ ---
178
+
179
+ ## Entity Relationships
180
+
181
+ ### Ownership (Level 2 data)
182
+
183
+ Derived from the GLEIF API `include=direct-parent,ultimate-parent`
184
+ relationship data on LEI records.
185
+
186
+ * `direct_parent`
187
+ * Definition: The entity is directly consolidated by (directly owned
188
+ or controlled by) the target parent entity.
189
+ * Examples: "Bloomberg L.P. has direct parent Bloomberg Inc."
190
+ * Derivation: `relationships.direct-parent.data.id` when the
191
+ relationship type is `"lei-records"` (not `"reporting-exceptions"`).
192
+ * Note: Not all entities report parent relationships. Reporting
193
+ exceptions are logged but do not produce relationship atoms.
194
+
195
+ * `ultimate_parent`
196
+ * Definition: The entity is ultimately consolidated by (ultimately
197
+ owned or controlled by) the target parent entity at the top of
198
+ the corporate hierarchy.
199
+ * Examples: "Bloomberg Finance L.P. has ultimate parent Bloomberg Inc."
200
+ * Derivation: `relationships.ultimate-parent.data.id` when the
201
+ relationship type is `"lei-records"`.
202
+ * Note: When direct parent equals ultimate parent, both relationships
203
+ are still emitted.
204
+
205
+ Inverse lookups (parent → subsidiaries) are handled by the DB/agent layer
206
+ via inverse queries on `direct_parent` and `ultimate_parent`.
207
+
208
+ ```
209
+ organization ──[direct_parent]──────→ organization (Level 2, child → parent)
210
+ organization ──[ultimate_parent]────→ organization (Level 2, child → ultimate parent)
211
+ ```
@@ -0,0 +1,254 @@
1
+ # Dataset schema for GLEIF (Global Legal Entity Identifier Foundation).
2
+ #
3
+ # Architecture:
4
+ # Each GLEIF LEI record produces ONE organization record carrying all
5
+ # identity/registration/address properties and up to two relationship
6
+ # atoms (direct_parent, ultimate_parent) pointing to parent
7
+ # organization entities identified by their LEI strong IDs.
8
+ #
9
+ # All elements are passive — created by the atomizer from GLEIF API JSON,
10
+ # not by LLM extraction.
11
+ #
12
+ # Source identifier: "gleif-source"
13
+ name: "gleif"
14
+ description: "Legal entity reference data from the Global Legal Entity Identifier Foundation — LEI records, entity metadata, addresses, registration status, and corporate ownership relationships for ~3.25M entities worldwide"
15
+
16
+ extraction:
17
+ flavors: closed
18
+ properties: closed
19
+ relationships: closed
20
+ attributes: closed
21
+ events: closed
22
+
23
+ flavors:
24
+ - name: "organization"
25
+ description: "A particular business, institution, or organization such as a corporation, university, government agency, or non-profit"
26
+ display_name: "Organization"
27
+ mergeability: not_mergeable
28
+ strong_id_properties: ["lei"]
29
+ passive: true
30
+
31
+ - name: "financial_instrument"
32
+ description: "A specific asset that can be traded, such as a stock, ETF, bond, CD, or fund. Companies are organizations, NOT financial instruments. Specific currency amounts are NOT financial instruments."
33
+ display_name: "Financial Instrument"
34
+ mergeability: not_mergeable
35
+ strong_id_properties: ["isin"]
36
+ passive: true
37
+
38
+ # --- Identity properties ---
39
+
40
+ properties:
41
+ - name: "lei"
42
+ type: string
43
+ description: "Legal Entity Identifier — a 20-character alphanumeric code uniquely identifying a legal entity in the global financial system (ISO 17442)"
44
+ display_name: "LEI"
45
+ mergeability: not_mergeable
46
+ domain_flavors: ["organization"]
47
+ examples: ["5493001KJTIIGC8Y1R12", "549300RMUDWPHCUQNE66"]
48
+ passive: true
49
+
50
+ - name: "jurisdiction"
51
+ type: string
52
+ description: "ISO 3166-1 or ISO 3166-2 jurisdiction code where the entity is legally registered"
53
+ display_name: "Jurisdiction"
54
+ mergeability: not_mergeable
55
+ domain_flavors: ["organization"]
56
+ examples: ["US-DE", "LU", "GB", "JP"]
57
+ passive: true
58
+
59
+ - name: "legal_entity_category"
60
+ type: string
61
+ description: "Classification of the legal entity type within the LEI system"
62
+ display_name: "Entity Category"
63
+ mergeability: not_mergeable
64
+ domain_flavors: ["organization"]
65
+ examples: ["GENERAL", "FUND", "BRANCH", "SOLE_PROPRIETOR"]
66
+ passive: true
67
+
68
+ - name: "legal_entity_status"
69
+ type: string
70
+ description: "Current status of the legal entity itself"
71
+ display_name: "Entity Status"
72
+ mergeability: not_mergeable
73
+ domain_flavors: ["organization"]
74
+ examples: ["ACTIVE", "INACTIVE", "MERGED", "RETIRED"]
75
+ passive: true
76
+
77
+ - name: "legal_form_code"
78
+ type: string
79
+ description: "Entity Legal Form (ELF) code from the ISO 20275 standard identifying the legal form of the entity"
80
+ display_name: "Legal Form Code"
81
+ mergeability: not_mergeable
82
+ domain_flavors: ["organization"]
83
+ examples: ["6IIM", "U8KA", "T91T"]
84
+ passive: true
85
+
86
+ - name: "registered_as"
87
+ type: string
88
+ description: "Registration number of the entity at its business registration authority"
89
+ display_name: "Registration Number"
90
+ mergeability: not_mergeable
91
+ domain_flavors: ["organization"]
92
+ examples: ["26036723", "B262009", "4348344"]
93
+ passive: true
94
+
95
+ - name: "registration_authority_id"
96
+ type: string
97
+ description: "Identifier of the business registry where the entity is registered"
98
+ display_name: "Registration Authority"
99
+ mergeability: not_mergeable
100
+ domain_flavors: ["organization"]
101
+ examples: ["RA000604", "RA000432"]
102
+ passive: true
103
+
104
+ - name: "entity_creation_date"
105
+ type: string
106
+ description: "Date when the legal entity was created (incorporated), as YYYY-MM-DD"
107
+ display_name: "Entity Creation Date"
108
+ mergeability: not_mergeable
109
+ domain_flavors: ["organization"]
110
+ examples: ["2007-06-05", "2021-12-08"]
111
+ passive: true
112
+
113
+ # --- Address properties ---
114
+
115
+ - name: "legal_address"
116
+ type: string
117
+ description: "Full legal (registered) address of the entity as a formatted string"
118
+ display_name: "Legal Address"
119
+ mergeability: not_mergeable
120
+ domain_flavors: ["organization"]
121
+ examples: ["349 Decatur Street, Atlanta, US-GA, US 30312"]
122
+ passive: true
123
+
124
+ - name: "headquarters_address"
125
+ type: string
126
+ description: "Full headquarters address of the entity as a formatted string"
127
+ display_name: "Headquarters Address"
128
+ mergeability: not_mergeable
129
+ domain_flavors: ["organization"]
130
+ examples: ["731 Lexington Avenue, New York, US-NY, US 10022"]
131
+ passive: true
132
+
133
+ - name: "legal_address_country"
134
+ type: string
135
+ description: "ISO 3166-1 alpha-2 country code from the entity's legal address"
136
+ display_name: "Legal Address Country"
137
+ mergeability: not_mergeable
138
+ domain_flavors: ["organization"]
139
+ examples: ["US", "LU", "GB", "DE"]
140
+ passive: true
141
+
142
+ - name: "headquarters_country"
143
+ type: string
144
+ description: "ISO 3166-1 alpha-2 country code from the entity's headquarters address"
145
+ display_name: "Headquarters Country"
146
+ mergeability: not_mergeable
147
+ domain_flavors: ["organization"]
148
+ examples: ["US", "LU", "GB", "DE"]
149
+ passive: true
150
+
151
+ # --- Registration properties ---
152
+
153
+ - name: "registration_status"
154
+ type: string
155
+ description: "Current status of the LEI registration itself, distinct from entity status"
156
+ display_name: "Registration Status"
157
+ mergeability: not_mergeable
158
+ domain_flavors: ["organization"]
159
+ examples: ["ISSUED", "LAPSED", "RETIRED", "PENDING_ARCHIVAL"]
160
+ passive: true
161
+
162
+ - name: "initial_registration_date"
163
+ type: string
164
+ description: "Date when the LEI was first issued, as YYYY-MM-DD"
165
+ display_name: "Initial Registration Date"
166
+ mergeability: not_mergeable
167
+ domain_flavors: ["organization"]
168
+ examples: ["2012-12-06", "2026-03-16"]
169
+ passive: true
170
+
171
+ - name: "next_renewal_date"
172
+ type: string
173
+ description: "Date by which the LEI registration must be renewed, as YYYY-MM-DD"
174
+ display_name: "Next Renewal Date"
175
+ mergeability: not_mergeable
176
+ domain_flavors: ["organization"]
177
+ examples: ["2027-01-25", "2027-03-16"]
178
+ passive: true
179
+
180
+ - name: "corroboration_level"
181
+ type: string
182
+ description: "Level of corroboration of the entity's reference data by the registration authority"
183
+ display_name: "Corroboration Level"
184
+ mergeability: not_mergeable
185
+ domain_flavors: ["organization"]
186
+ examples: ["FULLY_CORROBORATED", "PARTIALLY_CORROBORATED", "ENTITY_SUPPLIED_ONLY"]
187
+ passive: true
188
+
189
+ # --- Mapped identifiers ---
190
+
191
+ - name: "bic_code"
192
+ type: string
193
+ description: "SWIFT/BIC code mapped to this LEI, available for financial institutions"
194
+ display_name: "BIC Code"
195
+ mergeability: not_mergeable
196
+ domain_flavors: ["organization"]
197
+ examples: ["DEUTDEFF", "BNPAFRPP"]
198
+ passive: true
199
+
200
+ - name: "ocid"
201
+ type: string
202
+ description: "OpenCorporates company identifier mapped to this LEI"
203
+ display_name: "OpenCorporates ID"
204
+ mergeability: not_mergeable
205
+ domain_flavors: ["organization"]
206
+ examples: ["us_de/4348344", "gb/12345678"]
207
+ passive: true
208
+
209
+ - name: "isin"
210
+ type: string
211
+ description: "International Securities Identification Number (ISO 6166) uniquely identifying this financial instrument"
212
+ display_name: "ISIN"
213
+ mergeability: not_mergeable
214
+ domain_flavors: ["financial_instrument"]
215
+ examples: ["US0378331005", "GB0002634946", "DE0007236101"]
216
+ passive: true
217
+
218
+ - name: "successor_lei"
219
+ type: string
220
+ description: "LEI of the successor entity when this entity has been merged into or transferred to another"
221
+ display_name: "Successor LEI"
222
+ mergeability: not_mergeable
223
+ domain_flavors: ["organization"]
224
+ examples: ["549300RMUDWPHCUQNE66"]
225
+ passive: true
226
+
227
+ # --- Relationships ---
228
+
229
+ relationships:
230
+ - name: "issued_security"
231
+ description: "The organization has issued this financial instrument, linked via GLEIF-ANNA ISIN-LEI daily mapping. To find the issuer of a security, query inversely: find the entity whose issued_security points to the instrument."
232
+ display_name: "Issued Security"
233
+ mergeability: not_mergeable
234
+ domain_flavors: ["organization"]
235
+ target_flavors: ["financial_instrument"]
236
+ passive: true
237
+
238
+ - name: "direct_parent"
239
+ description: "The entity is directly owned or controlled by the target parent entity (GLEIF Level 2). To find subsidiaries of a company, query inversely: find all entities whose direct_parent is that company."
240
+ display_name: "Direct Parent"
241
+ mergeability: not_mergeable
242
+ domain_flavors: ["organization"]
243
+ target_flavors: ["organization"]
244
+ passive: true
245
+
246
+ - name: "ultimate_parent"
247
+ description: "The entity is ultimately owned or controlled by the target parent entity at the top of the corporate hierarchy (GLEIF Level 2). To find all subsidiaries under a parent, query inversely: find all entities whose ultimate_parent is that company."
248
+ display_name: "Ultimate Parent"
249
+ mergeability: not_mergeable
250
+ domain_flavors: ["organization"]
251
+ target_flavors: ["organization"]
252
+ passive: true
253
+
254
+ attributes: []