Commit a1bc96a
committed
action handler: B2-lift — REST registration instance lift (capabilities)
Parse a deployed handler's REST registration into the concrete OGAR signatures
the *schema* half cannot supply. The OGIT ontology declares only that a
capability has mandatoryParameters/optionalParameters slots; the concrete
(name, mandatory, default) tuples live in a deployed handler's config. B2-lift
reads them from the live REST view, so the two halves compose: schema lift gives
the contract shape, instance lift gives the deployed values.
Producer stays parser-free (the crate-family split):
- ogar-from-schema/src/registration.rs — typed REST DTOs (RegisteredCapability /
RegisteredParam / ModelFilter, Deserialize behind the existing `serde` feature)
+ the pure lift: lift_registration -> ConcreteCapability (concrete ActionParam[]),
and model_filter_to_guard (arago ModelFilter{Var,Mode,Value} -> StateGuard,
field-for-field). No serde_json, no I/O. 5 tests incl. the lifted signature
driving action_ws::bind_parameters.
- ogar-action-handler — the runtime owns I/O: parse_capabilities does the
serde_json read of a GET /capabilities body. Proven end-to-end by
rest_registration_lifts_binds_and_runs (real JSON -> lift -> bind -> the
NativeCommandExecutor runs the command).
Same producer-defines-types / runtime-does-I/O split the whole crate family
keeps: ogar-from-schema gains a REST front-end without gaining a parser dep.
Remaining for full B2-lift: the GET /applicabilities MapOfApplicabilities JSON
envelope read (the ModelFilter->StateGuard lift is already shipped).
Docs: ARAGO-ACTIONHANDLER-PARITY (B2-lift §3 bullet + two scorecard rows +
verdict + cross-refs), D-ACTIONHANDLER-B2LIFT discovery row, E-ACTIONHANDLER-B2LIFT
epiphany (the parser-free producer / runtime-does-the-read split).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYvNjD8M8LMNYbRy3gq2FP1 parent 13b4f1b commit a1bc96a
7 files changed
Lines changed: 437 additions & 8 deletions
File tree
- .claude/board
- crates
- ogar-action-handler
- src
- ogar-from-schema/src
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 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 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
10 | 46 | | |
11 | 47 | | |
12 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
44 | 65 | | |
45 | 66 | | |
46 | 67 | | |
| |||
140 | 161 | | |
141 | 162 | | |
142 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
143 | 212 | | |
144 | 213 | | |
145 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments