Commit 91de3a8
ADR-0007 catalogued `source.event @topic @ROLE: publish`; ADR-0028 later ruled
that message topics are channels, not sources, "never in source.*". Both were
accepted and on the books, and nothing reconciled them. Read literally the later
decision foreclosed the earlier one's catalog entry. Nothing broke only because
`source.rdb` is the sole registered paradigm.
Resolved in favour of ADR-0028, and generalized. Amendment 1 removes `event` and
replaces the implicit admission rule with an explicit test: a source binds
ADDRESSABLE STATE AT REST — readable on demand by a declared key or address, not
merely observed as it flows past.
The second half of that test is the load-bearing part. #212 proposed a two-prong
AND (addressable AND drift-inspectable as a schema), and swept across all twelve
paradigms it fails in both directions: it would ADMIT a schema-registry-backed
Kafka topic and EXCLUDE source.memory, while wrongly maiming document ($jsonSchema
optional), keyValue (Redis has none), objectStore (CSV), timeSeries (Prometheus)
and graph. So drift-inspectability is demoted to a per-paradigm verify capability
and is explicitly NOT an admission criterion. Under the single prong only event's
flow kinds fall; get-by-id generalizes to get-by-declared-key/address, so
keyValue composite keys, objectStore paths and timeSeries series+time all
qualify, as do vector and search (both expose fetch-by-id — similarity is the
query path, not the only read). The escape clause is recorded as principled: a
stream becomes a source exactly when it is treated as addressable state, so a
compacted changelog read by key enters as an ordinary read-only-@kind source.
What stays out is only the flow itself.
Amendment 2 records that @ROLE is a designation mechanism, not a routing one.
The Consequences section promised codegen and runtime would "route by @ROLE
(primary = CRUD; index/cache/publish = derived)". No port ever built it: across
all five, every read of @ROLE is an equality test against primary — Java's OMDB
has zero role usage, and Kotlin's KotlinGenUtil and Python's write-through read
path are explicitly documented role-agnostic, finding the replica by @kind. So
the registered vocabulary shrinks to primary | replica, with index/cache/publish/
mirror reserved-not-registered (the ADR-0040 treatment) and a stated re-entry
bar: a role member enters the registry only when a shipping consumer dispatches
on it. Also recorded: replica is structurally required despite no consumer
reading the word, because @ROLE defaults to primary and the one-primary
invariant rejects two primaries — a second source must carry an explicit
non-primary role or the model fails to load.
Docs only. ADR-0035 §1 excludes reserved-but-unregistered vocabulary from the
compat surface, so this does not reset the quiet-period clock. The @ROLE registry
change itself rides the #210 consolidation batch; the eventing surface rides
FR-024 to 1.1.
Synced: ADR-0028's channel clause now cites the ratification; ADR-0018's
per-paradigm example no longer teaches a removed paradigm; the source-v2 design
doc strikes the event row, the CDC/outbox example and the four reserved roles;
FR-024 §7's channel row references a projection rather than a value, landing the
symmetry — queries return projections, commands take values, events emit
projections.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S3msoGxjRMwx94PhKSLDuE
1 parent 5721696 commit 91de3a8
5 files changed
Lines changed: 120 additions & 24 deletions
File tree
- docs/superpowers/specs
- spec/decisions
Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
16 | | - | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
34 | | - | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| |||
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
82 | | - | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| |||
101 | 108 | | |
102 | 109 | | |
103 | 110 | | |
104 | | - | |
| 111 | + | |
| 112 | + | |
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
| |||
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
118 | 131 | | |
119 | 132 | | |
120 | 133 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
Lines changed: 92 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | | - | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
47 | | - | |
| 53 | + | |
48 | 54 | | |
49 | | - | |
50 | | - | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
69 | 144 | | |
70 | 145 | | |
71 | 146 | | |
72 | 147 | | |
73 | 148 | | |
74 | 149 | | |
75 | 150 | | |
76 | | - | |
77 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
78 | 155 | | |
79 | 156 | | |
80 | 157 | | |
81 | | - | |
| 158 | + | |
| 159 | + | |
82 | 160 | | |
83 | 161 | | |
84 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
0 commit comments