Skip to content

docs: fix drift in Admin Operations#166

Merged
jack-arturo merged 2 commits into
mainfrom
docs/audit-admin-operations-20260608
Jun 8, 2026
Merged

docs: fix drift in Admin Operations#166
jack-arturo merged 2 commits into
mainfrom
docs/audit-admin-operations-20260608

Conversation

@jack-arturo

Copy link
Copy Markdown
Member

Claim → current state → fix

# Claim in docs Current state in code Fix
1 count: "Number of memories successfully added to enrichment queue" automem/api/enrichment.py returns "count": len(ids) where ids is the raw request list; enqueue_enrichment() is called for every ID with no per-item error capture, so count always equals the number of IDs submitted, not a filtered success count Changed to: "Number of UUIDs submitted (equals len(ids) from the request; not a success/failure count)"
2 ids example implied insertion order Response is built as sorted(ids) — lexicographic sort Updated field description to "sorted lexicographically"

Not changed: The POST /admin/sync section has no response schema documented. This appears to be intentionally thin docs for a newer endpoint rather than drift — left as-is and flagged as a follow-up for the maintainer.

Verified against: automem@ed36b98e3e1569dde71aa430417b6549520f7068 (automem/api/enrichment.py)


Generated by Claude Code

POST /enrichment/reprocess response schema had two inaccuracies:
- `count` description said "successfully added" implying per-job
  tracking; the endpoint returns len(ids) from the request regardless
  (enqueue_enrichment is called for each ID with no per-item error
  capture)
- `ids` field docs implied input ordering; actual response uses
  sorted(ids) — lexicographic order

Verified against: automem@ed36b98e3e1569dde71aa430417b6549520f7068 (automem/api/enrichment.py)
Copilot AI review requested due to automatic review settings June 8, 2026 23:16
@jack-arturo jack-arturo enabled auto-merge June 8, 2026 23:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Admin API documentation to match the current behavior of POST /enrichment/reprocess, clarifying what the response fields actually represent.

Changes:

  • Clarifies that count reflects how many UUIDs were submitted in the request (not a success/failure metric).
  • Clarifies that ids are returned sorted lexicographically.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| `status` | string | Always `"queued"` |
| `count` | integer | Number of memories successfully added to enrichment queue |
| `ids` | array[string] | List of memory UUIDs that were queued |
| `count` | integer | Number of UUIDs submitted (equals `len(ids)` from the request; not a success/failure count) |
Per Copilot review: removed Python-specific len(ids) reference from
the count field description; rephrased to describe the request payload
instead.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploying automem-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 76322a2
Status: ✅  Deploy successful!
Preview URL: https://b193bc65.automem-website.pages.dev
Branch Preview URL: https://docs-audit-admin-operations.automem-website.pages.dev

View logs

@jack-arturo jack-arturo added this pull request to the merge queue Jun 8, 2026
Merged via the queue into main with commit 01a6f81 Jun 8, 2026
4 checks passed
@jack-arturo jack-arturo deleted the docs/audit-admin-operations-20260608 branch June 8, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants