1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Kitchen-sink: this file contains MULTIPLE errors of different kinds.
# Each phase collects every error it finds before returning, so one run
# surfaces all five at once — see CLAUDE.md HOLO-DIAGNOSTICS.
#
# Errors in this file (all reported together):
# 1. line 23 — duplicate enum type `status` (L2: catalog/enums)
# 2. line 30 — unknown column type `not_a_type` (L2: catalog/tables)
# 3. line 33 — duplicate relation `tasks` (L2: catalog/tables)
# 4. line 40 — view sources an unknown table (`ghost`) (L3: resolve)
# 5. line 47 — view selects an unknown alias (`x`) (L3: resolve)
#
# Run: cargo run -- samples/error_multiple.holocron.yaml
types:
- name: status
enum:
- name: status # 1. duplicate enum
enum:
tables:
- name: tasks
columns:
task_id:
priority: # 2. unknown type
primary_key:
- name: tasks # 3. duplicate relation
columns:
id:
primary_key:
views:
- name: ghost_view
from: # 4. unknown source table
select:
-
- name: bad_alias_view
from:
select:
- # 5. unknown alias