Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
864257f
memory.proposals counts every pending proposal with count_only
VanshajPoonia Nov 28, 2026
0f725c6
The Review queue entry stays listed and counts pending proposals
VanshajPoonia Nov 28, 2026
59b782d
The Review queue opens on Proposals when only proposals wait
VanshajPoonia Nov 28, 2026
bf4b317
Merge remote-tracking branch 'upstream/main' into issues/1141-review-…
VanshajPoonia Nov 29, 2026
cd66ec8
The analyzer corpus drives the memory.proposals count and its filtere…
VanshajPoonia Nov 29, 2026
88f59e4
conflicts.list with count_only also counts the pending proposals, fro…
VanshajPoonia Nov 29, 2026
ca67706
The Review queue badge takes both counts from one read and reads them…
VanshajPoonia Nov 29, 2026
56bd310
A count that a resolve overtook does not choose the Review queue's tab
VanshajPoonia Nov 29, 2026
bf9ca9c
memory.proposals refuses count_only with only=ready after the namespa…
VanshajPoonia Nov 29, 2026
7dfe233
A memory.proposals count answers the namespace's own proposal policy
VanshajPoonia Nov 29, 2026
5d79e34
The sidebar counts fresh after a Review queue decision, and its minut…
VanshajPoonia Nov 29, 2026
cbb1cbb
A fresh Review queue count reads with sequential consistency
VanshajPoonia Nov 29, 2026
6a0dabc
A count that a decision or a newer count overtook does not refill the…
VanshajPoonia Nov 29, 2026
8916047
A decision refuses caching only to counts of its own namespace
VanshajPoonia Nov 29, 2026
d358af1
Merge remote-tracking branch 'upstream/main' into issues/1141-review-…
VanshajPoonia Nov 29, 2026
d77f693
The sidebar counts a decision done only once its fresh count is shown
VanshajPoonia Nov 29, 2026
40c5689
A refused sidebar count leaves the decision for the next fresh read
VanshajPoonia Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions docs/features/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ entry that would answer 403.

| Group | Page | URL | What it is for |
| ------- | ---------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Review | **Review queue** | `/admin/review_queue` | Conflicts (pairs of memories that disagree, each with a suggested decision on request, except a sensitive one), learnings proposed for promotion, memories Loom retired on its own (Auto-resolved, each with an Undo), exceptions (the allowlist of pairs that may coexist), proposals (facts on trial, accepted or rejected), and duplicate memories and documents with the namespace-wide repairs. Shown in the drawer only while a conflict waits or Loom retired a memory in the last 30 days; the URL always resolves. See [conflicts and refusal](memory/conflicts-and-refusal.md). |
| Review | **Review queue** | `/admin/review_queue` | Conflicts (pairs of memories that disagree, each with a suggested decision on request, except a sensitive one), learnings proposed for promotion, memories Loom retired on its own (Auto-resolved, each with an Undo), exceptions (the allowlist of pairs that may coexist), proposals (facts on trial, accepted or rejected), and duplicate memories and documents with the namespace-wide repairs. In the drawer for every admin of a memory namespace, even when empty; it counts open conflicts plus pending proposals. See [conflicts and refusal](memory/conflicts-and-refusal.md). |
| Review | **Guardrails** | `/admin/guardrails` | Blacklist patterns: content Loom should never store, each with a sweep that deletes the stored memories it already matches; for an org admin, the org's and the namespace's extraction rules and the org's model-call switch. |
| Review | **Policies** | `/admin/policies` | History policy rules, a dry run of a hypothetical call, and the decision ledger. |
| Observe | **Health** | `/admin/health` | Worker status and how agents in the namespace spend their calls; the namespace's memory report, search gates and recent extractions; an admin's repairs (apply expiry, re-embed, remove an extractor's facts, roll back, snapshot and restore); an org admin's projection failures, retried or dismissed. |
Expand All @@ -457,12 +457,17 @@ entry that would answer 403.
| Observe | **Agents** | `/admin/agents` | Which clients connected in a window (`agents.connected`); confirms a new MCP connection works. A namespace admin can forget every memory one agent holds there. |
| Access | **Users** | `/admin/users` | Org and platform admins only: every subject, their grants (namespaces, collections and repositories) and roles, last activity, and releasing a namespace whose owner lost their password. |

The Admin button shows the number of open conflicts while its drawer is closed. The
Review queue appears with its conflict count, or with no count when Loom retired a memory on its
own in the last 30 days (the Auto-resolved tab), Usage warns when the namespace is over
its 24-hour cap, Agents counts clients new in the last 24 hours. The header carries a task
bell (triage and blocked-on-person items) and a pending-approvals bell (grant requests the
person can decide). The phone's More sheet lists the same admin entries with the same badges; a
The Admin button shows the Review queue's count while its drawer is closed. That count is the
review items waiting: open conflicts plus pending proposals, both from the one
`conflicts.list` count the badge reads (`count_only` answers `total` and `proposals`). A
decision in the Proposals tab reads the count again at once, counted fresh rather than from a
replica's minute-long cache, which only the replica that took the decision drops. The fresh
count reads with sequential consistency, and a count of the decided namespace read before the
decision that returns after it is not cached. The minute's polls read the cache. When the queue's own count finds
proposals waiting and no open conflict, the queue opens on Proposals. Usage warns when the
namespace is over its 24-hour cap, Agents counts clients new in the last 24 hours. The header
carries a task bell (triage and blocked-on-person items) and a pending-approvals bell (grant
requests the person can decide). The phone's More sheet lists the same admin entries with the same badges; a
badge whose read fails is hidden.

## Operations the dashboard uses
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/operations/conflicts.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ List unresolved conflicts where two memories contradict each other.
| `namespace` | `str` | required | The namespace the op reads or writes. |
| `limit` | `int` | `50` | At most this many rows, 1-500, newest version first. |
| `before_version` | `int \| None` | `None` | Keyset cursor — pass previous response's earliest version to paginate. |
| `count_only` | `bool` | `False` | A badge needs the number, not the rows. |
| `count_only` | `bool` | `False` | A badge needs the numbers, not the rows. |
| `fresh` | `bool` | `False` | With count_only, count now instead of reading the minute-long cache; default off. |
| `keys_only` | `bool` | `False` | The Memories view marks cards that have a conflict and needs only the keys. |
| `fields` | `list[str] \| None` | `None` | The output fields the caller reads (a whitelist resolved against the row model; an unknown name is a 422); unset, every field. |
Expand All @@ -65,6 +65,7 @@ List unresolved conflicts where two memories contradict each other.
| `rows` | `list[_ConflictRow]` | Conflicted memories, newest version first; empty on a `count_only` or `keys_only` call. |
| `next_before_version` | `int \| None` | Pass as `before_version` for the next page; null on the last page. |
| `total` | `int \| None` | The live conflicted count for the namespace; set on a count_only call. |
| `proposals` | `int \| None` | The pending proposals in the same scope, from the same read; set on a count_only call. |
| `keys` | `list[str] \| None` | The conflicted memory keys of the namespace; set on a keys_only call. |

## `conflicts.propose_revision`
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/operations/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -1566,11 +1566,12 @@ List facts on trial (written with memory.set proposed=true) with the graded runs
| `tags` | `list[str]` | *(computed)* | Only proposals carrying any of these tags; empty = no tag filter. |
| `only` | `Literal['', 'ready']` | `''` | `ready` keeps only proposals the policy thresholds would decide now (accept or reject); "" lists every proposal. |
| `limit` | `int` | `50` | At most this many proposals returned, newest first. |
| `count_only` | `bool` | `False` | Answer `total`, the exact number of pending proposals that match prefix and tags, and the namespace's `policy`, with no proposal or graded count read; default off. |

| Output field | Type | Meaning |
| --- | --- | --- |
| `proposals` | `list[MemoryProposal]` | The proposals in scope, newest first, with graded counts and `ready`. |
| `total` | `int` | Proposals in scope before `only` and `limit`. |
| `total` | `int` | Proposals in scope before `only` and `limit`, up to the scan cap; exact with `count_only`. |
| `policy` | `ProposalPolicy` | The namespace's proposal policy: `mode` (manual / auto) and thresholds. |

## `memory.provenance`
Expand Down
20 changes: 13 additions & 7 deletions frontend/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1037,18 +1037,24 @@ export async function listConflicts(
return post("/v1/conflicts.list", body, opts.signal);
}

/** The namespace's conflicted count. `fresh` counts now instead of answering from the
* replica's minute-long cache (the review queue; the sidebar badge takes the cache). */
export async function countConflicts(
/** The namespace's Review queue counts from one read: `total` conflicted and `proposals`
* pending (absent from a server that does not count them). `fresh` counts now instead of
* answering from the replica's minute-long cache (the review queue, and the sidebar's read
* after a decision; its minute polls take the cache). */
export function countReview(
id: Pick<Identity, "org" | "namespace">,
opts: RequestOpts & { fresh?: boolean } = {},
): Promise<number> {
const r = await post<{ total?: number | null }>(
): Promise<ReviewCounts> {
return post(
"/v1/conflicts.list",
{ org: id.org, namespace: id.namespace, count_only: true, ...(opts.fresh ? { fresh: true } : {}) },
{ org: id.org, namespace: id.namespace, count_only: true, fresh: opts.fresh },
opts.signal,
);
return r.total ?? 0;
}

export interface ReviewCounts {
total?: number | null;
proposals?: number | null;
}

/** The conflicted memory keys of a namespace, for the cards' chips
Expand Down
Loading
Loading