Add federation integration example
This commit is contained in:
parent
ba78946a73
commit
5cc56b2ce8
|
|
@ -208,6 +208,36 @@ Core federation primitives are exposed via:
|
||||||
- include/amduat/fed/replay.h
|
- include/amduat/fed/replay.h
|
||||||
- include/amduat/fed/view.h
|
- include/amduat/fed/view.h
|
||||||
|
|
||||||
|
## Integration example (core flow)
|
||||||
|
|
||||||
|
```c
|
||||||
|
amduat_fed_registry_store_t reg_store;
|
||||||
|
amduat_fed_registry_value_t reg_value;
|
||||||
|
amduat_fed_domain_state_t reg_states[8];
|
||||||
|
|
||||||
|
amduat_fed_registry_value_init(®_value, reg_states, 8);
|
||||||
|
amduat_fed_registry_store_init(®_store, local_store);
|
||||||
|
amduat_fed_registry_store_put(®_store, ®_value, ®_ref, NULL);
|
||||||
|
|
||||||
|
if (amduat_fed_ingest_validate(records, record_count, NULL, NULL) !=
|
||||||
|
AMDUAT_FED_INGEST_OK) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!amduat_fed_view_build(records,
|
||||||
|
record_count,
|
||||||
|
local_domain_id,
|
||||||
|
bounds,
|
||||||
|
bounds_len,
|
||||||
|
denies,
|
||||||
|
denies_len,
|
||||||
|
&view)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
resolve_err = amduat_fed_resolve(&view, local_store, ref, &artifact);
|
||||||
|
```
|
||||||
|
|
||||||
## Policy gating
|
## Policy gating
|
||||||
|
|
||||||
- Admission gating is per-domain.
|
- Admission gating is per-domain.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue