Changelog
Live

Read a draft fact version back over the API before it is approved

get_fact and the version history now return pending versions, so an agent can read back the draft it just wrote, for builders shaping their fact layer.

Until now, once create_fact returned a draft waiting for approval, there was no way to read that draft back over the API. GET /v1/facts/{factId} and get_fact only returned approved versions, so an agent could not confirm what it had actually written.

What's new

  • Pending versions by id. GET /v1/facts/{factId} and MCP get_fact now return a version still waiting for approval, so an agent can read back the draft create_fact returned.
  • Drafts in the version history. GET /v1/facts/{factId}/versions takes include_drafts=true to list pending versions too, first in the list. Without the flag the list is unchanged.
  • Status on every version. Each version now carries status (approved or pending) and outdated, which turns true once a newer version is approved after it, or after the version a draft was written from.

Why it matters

An agent that proposes a change can now check its own work, see whether a draft has since been overtaken by a newer approved version, and tell you plainly when a proposal has gone stale. Nothing becomes truth until a person verifies it, and now the API shows the full state along the way.

Where to find it

The fact endpoints and the include_drafts parameter are documented at api.getnoan.com.

Good to know: a rejected draft still returns 404.