Skip to content

You are currently viewing documentation for0.1.0-alpha.3

Saved documentation for 0.1.0-alpha.3 (npm) / 0.1.0a2 (PyPI). Interactive tools use the current release. View latest documentation.

The guard loop

  1. 01Wrap
  2. 02Inspect
  3. 03Frozen-mode decision: ok / repaired / degraded / bypassed / blocked
  4. 04Audit artifact
  5. 05Optional feedback
Mode is fixed for both request and response phases before inspection starts; the decision names only what this call produced.

Wrap → inspect → decision → audit → feedback

Wrap the callable. Inspect a complete request and response up to the configured size limit before dispatch and after a response. Supplied OpenAPI, schema or contract evidence and runtime failures are inputs; they are not themselves detection. Fix the mode for both phases. Produce ok / repaired / degraded / bypassed / blocked. Send the audit record only to a destination you configured. Optional feedback informs later investigation; it cannot authorize replay or change a completed decision. Response inspection cannot undo a completed upstream write; availability faults bypass inspection even for writes.

Evidence classes

A finding describes drift evidence. A patch describes a proposed or verified selective change. An incident is a separately admitted accounting unit. A candidate is not an applied repair; an audit artifact is not automatically write-integrity proof. Incomplete captures are unavailable evidence, not malformed vendor bodies.

Trusted rename source versus inferred meaning

A fictional mechanical rename (for example order_ref → order_id) may be considered only when a trusted migration source confirms the rename, an independent check verifies the constraint, confidence is sufficient and untouched caller fields are preserved. Schema acceptance and confidence alone are insufficient to establish intent or persisted write correctness. An ambiguous source ↔ payment_method mapping cannot establish intended meaning from matching names or types; it is not a verified real payment-provider migration. Observe records without changing the call; repair mode blocks unresolved semantic write drift. Human review must be connected by the host application, and a review receipt does not execute or replay the write.

Byte identity

No-repair paths preserve original payload identity. Selective repair changes only verified drifted fields and records byte_identical: false. Numeric coercion is not a repair. Selective repair is off by default; explicit reviewed rename rules and independent verification enable it.

Apply these concepts to your own call boundary.