flayer.integrations¶
flayer.integrations ¶
Consumer-neutral observation contracts without transport, dispatch, or authorization.
CheckEvidence
dataclass
¶
CheckEvidence(status: DiagnosticStatus, metrics: tuple[Metric, ...] = ())
A diagnostic outcome and measurements without private names, prose, or details.
DiagnosticEvidence
dataclass
¶
DiagnosticEvidence(checks: tuple[CheckEvidence, ...])
Ordered diagnostic checks retain truthful aggregation without external text.
Status
property
¶
Status: DiagnosticStatus
Use the established severity contract, including unsupported empty evidence.
IntegrationError ¶
Bases: ContractError
An envelope violates the bounded evidence contract without exposing its input.
IntegrationOperation ¶
Bases: StrEnum
Supported observations convey no infrastructure execution authorization.
IntegrationRequest
dataclass
¶
IntegrationRequest(identity: StackIdentity, request_id: str, operation: IntegrationOperation, schema_version: int = 1)
Non-authorizing observation intent bound to exact scope, owner, and correlation.
IntegrationResult
dataclass
¶
IntegrationResult(request: IntegrationRequest, evidence: Evidence)
Allowlisted evidence bound to the exact original validated observation request.
LifecycleEvidence
dataclass
¶
LifecycleEvidence(action: str, status: str, recovery_required: bool, resources: tuple[ResourceCount, ...])
Historical lifecycle outcome and recovery requirement convey no mutation permission.
Metric
dataclass
¶
Metric(name: str, value: int | float | None)
ResourceCount
dataclass
¶
ResourceCount(status: str, count: int)
StateEvidence
dataclass
¶
StateEvidence(resource_count: int)
A local owned-state count makes no remote existence or health assertion.
AdaptDiagnostics ¶
AdaptDiagnostics(request: IntegrationRequest, report: DiagnosticReport, observed_identity: StackIdentity) -> IntegrationResult
Bind selected status, health, or benchmark observations and omit arbitrary source text.
Source code in installed/flayer/integrations/adapters.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
AdaptLifecycle ¶
AdaptLifecycle(request: IntegrationRequest, report: LifecycleReport, observed_identity: StackIdentity) -> IntegrationResult
Summarize supplied lifecycle evidence with caller-bound scope, never remote attestation.
Source code in installed/flayer/integrations/adapters.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
AdaptState ¶
AdaptState(request: IntegrationRequest, state: StackState) -> IntegrationResult
Summarize recorded ownership without exporting locators or claiming remote readiness.
Source code in installed/flayer/integrations/adapters.py
57 58 59 60 61 62 63 64 65 | |
ParseRequest ¶
ParseRequest(payload: str, expected_identity: StackIdentity) -> IntegrationRequest
Validate untrusted read-only intent without invoking any operation or permission check.
Source code in installed/flayer/integrations/wire.py
117 118 119 120 121 122 123 124 | |
ParseResult ¶
ParseResult(payload: str, expected_request: IntegrationRequest) -> IntegrationResult
Bind an untrusted representation to its request without asserting authenticity.
Source code in installed/flayer/integrations/wire.py
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 | |
SerializeRequest ¶
SerializeRequest(request: IntegrationRequest) -> str
Serialize validated observation intent without resolving targets or credentials.
Source code in installed/flayer/integrations/wire.py
236 237 238 239 240 241 242 | |
SerializeResult ¶
SerializeResult(result: IntegrationResult) -> str
Serialize only explicitly allowed evidence, never source objects or raw adapter data.
Source code in installed/flayer/integrations/wire.py
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |