> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memloom.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Undo one reconcile run

> Put back exactly what one run did, and only that run. A retired memory is reactivated
only while it is still stale and its `stale_since` is the one this run wrote, so a
newer decision is never overridden. A fold goes back through the same revert entity
resolution uses. A conflict the run raised and nobody answered is removed from the
queue; one that was answered is left alone and counted in `skipped`. Reverting twice
is a no-op.




## OpenAPI

````yaml /openapi.yaml post /memory/reconcile/{id}/revert
openapi: 3.1.0
info:
  title: memloom local API
  version: 0.1.0
  description: >
    The HTTP API served by the `memloom serve` daemon on your machine. The CLI,
    the MCP server,

    and the viewer all route through this API. The daemon is the single owner of
    the store, so

    every client shares one consistent view of your memories.


    No authentication: the daemon binds to `127.0.0.1` only and is reachable
    solely from your

    own machine. Browser clients on other localhost ports are allowed via CORS.
servers:
  - url: http://127.0.0.1:4319
    description: Local memloom daemon
security: []
paths:
  /memory/reconcile/{id}/revert:
    post:
      summary: Undo one reconcile run
      description: >
        Put back exactly what one run did, and only that run. A retired memory
        is reactivated

        only while it is still stale and its `stale_since` is the one this run
        wrote, so a

        newer decision is never overridden. A fold goes back through the same
        revert entity

        resolution uses. A conflict the run raised and nobody answered is
        removed from the

        queue; one that was answered is left alone and counted in `skipped`.
        Reverting twice

        is a no-op.
      operationId: revertReconcile
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: What the undo restored.
          content:
            application/json:
              schema:
                type: object
                properties:
                  runId:
                    type: string
                    format: uuid
                  restored:
                    type: integer
                    description: Memories reactivated.
                  unfolded:
                    type: integer
                    description: Entity folds and model-decided pairs reversed.
                  skipped:
                    type: integer
                    description: Findings the store has moved on from, left alone.
        '404':
          description: No such run.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: 'memloom: no reconcile run 0f2c7b18'
        '409':
          description: >-
            The run exists but the undo could not complete, for example because
            the store has moved on from what it did.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string

````