Skip to content

feat(server): _meta.vouch_trust block on every response #233

@plind-junior

Description

@plind-junior

What you're trying to do

Once #6 lands, every response should surface the trust state the call was treated as — so clients can detect when they're being confined and surface that in their own UI. gbrain's _meta.brain_hot_memory shows the same shape: server-attached, opt-in to render, never authoritative.

Suggested shape

  • Every kb.* response carries _meta.vouch_trust: {remote: bool, caller_kind: str, auth_subject: str | null}.
  • The block is read-only metadata; client mutations are ignored.
  • Documented under the JSONL request/response shape section of README.

Acceptance

  • An HTTP-MCP call surfaces remote: true, caller_kind: "mcp_http"; a CLI call surfaces remote: false, caller_kind: "cli".
  • Test asserts the field appears on every read response.

Out of scope

  • Cryptographic signing of the trust block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions