MemPalace/mempalace · error · NotImplementedError

MEMPALACE_TRANSPORT=meshguard is reserved for the MeshGuard

Error message

MEMPALACE_TRANSPORT=meshguard is reserved for the MeshGuard binding (RFC 004 transport seam); it has not shipped yet

What it means

Error "MEMPALACE_TRANSPORT=meshguard is reserved for the MeshGuard binding (RFC 004 transport seam); it has not shipped yet" thrown in MemPalace/mempalace.

Source

Thrown at mempalace/transport.py:165

        return load_peers(self._palace_path)

    def request(self, peer: dict, path: str, params: Optional[dict] = None) -> dict:
        return http_request(peer["url"], peer.get("token", ""), path, params)


def get_transport(palace_path: str) -> Transport:
    """The single swap point (MEMPALACE_TRANSPORT; default https).

    ``meshguard`` is reserved: selecting it before the binding lands
    fails loudly rather than silently degrading to bearer tokens —
    a user who asked for mesh-identity auth must never unknowingly
    run on the token model.
    """
    selected = (os.environ.get("MEMPALACE_TRANSPORT") or "https").strip().lower()
    if selected == "https":
        return HttpsBearerTransport(palace_path)
    if selected == "meshguard":
        raise NotImplementedError(
            "MEMPALACE_TRANSPORT=meshguard is reserved for the MeshGuard binding "
            "(RFC 004 transport seam); it has not shipped yet"
        )
    raise ValueError(f"unknown MEMPALACE_TRANSPORT {selected!r} (expected: https, meshguard)")

View on GitHub (pinned to 06cb6987f0)

Solutions

  1. Use MEMPALACE_TRANSPORT=https until the MeshGuard binding ships

When it happens

Trigger: Thrown at mempalace/transport.py:165 when the library encounters an invalid state.

Common situations: Reserved meshguard transport was selected but is not implemented yet.


AI-assisted analysis of MemPalace/mempalace@06cb6987f0 (2026-08-15). Data as JSON: /api/errors/5e89e24d7e0ced9c. Report an issue: GitHub.