Finish KG-WP-0003: stream completeness and live qonto observation
Classify evidence as load-bearing or attributive, draft the emission-cadence declaration for Taxonomy, treat silence as a stream finding, keep completeness separate from record richness, forbid immune memory as a state plane, and make containment proposals reconstructable to their origin. Observe real qonto-assistant audit events; deny-class completeness stays unknown until the source publishes a heartbeat. Assistant: grok Assistant-Session: 01a05ef1-9e5a-70f2-b0ff-0b05d6b38ae9
This commit is contained in:
parent
c85646dc3c
commit
9daea96c43
35 changed files with 2023 additions and 138 deletions
26
tests/helpers.py
Normal file
26
tests/helpers.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Mapping
|
||||
|
||||
from kings_guard.adapters import observation_from_audit_event
|
||||
from kings_guard.contracts import ImmuneObservation
|
||||
from kings_guard.fixtures import QontoAssistantPilotFixture, load_qonto_assistant_pilot
|
||||
|
||||
|
||||
def load_pilot() -> QontoAssistantPilotFixture:
|
||||
return load_qonto_assistant_pilot()
|
||||
|
||||
|
||||
def observation_from_fixture(
|
||||
fixture: QontoAssistantPilotFixture | None = None,
|
||||
event: Mapping[str, object] | None = None,
|
||||
) -> ImmuneObservation:
|
||||
fixture = fixture or load_qonto_assistant_pilot()
|
||||
return observation_from_audit_event(
|
||||
event or fixture.audit_event,
|
||||
subject_id=fixture.normalization_hints["subject_id"],
|
||||
capability_scope=fixture.normalization_hints["capability_scope"],
|
||||
identity_binding=fixture.normalization_hints["identity_binding"],
|
||||
egress_destination=fixture.normalization_hints["egress_destination"],
|
||||
genome=fixture.genome,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue