Documentation
¶
Overview ¶
Package repoenvelope frames repository-derived JSON as untrusted data for agent context (AHI-004). It is the single Go builder for the envelope; the JavaScript adapters under integrations/ implement the same contract.
Index ¶
Constants ¶
View Source
const ( // Terminator is the envelope's closing line. Terminator = "END CORVINT REPOSITORY DATA" // Prefix opens the envelope, ending with the newline before the payload. Prefix = "" /* 268-byte string literal not displayed */ // Suffix closes the envelope after the payload. Suffix = "\n" + Terminator // CollisionCode is the refusal reason when a payload contains Terminator. CollisionCode = "corvint-envelope-terminator-collision" )
Variables ¶
View Source
var ErrTerminatorCollision = errors.New(CollisionCode)
ErrTerminatorCollision reports a payload that could close the envelope early.
Functions ¶
func EscapeHidden ¶
EscapeHidden rewrites every hidden character as literal lowercase \uXXXX text and copies every other byte, including invalid UTF-8, unchanged. Inside a JSON string that spelling decodes to the same value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.