API v1: write endpoints, expanded token permissions, docs #123
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/rm-analyzer#123
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the Ink Lantern rename & API project. Follows the design in the API design issue.
docs/api.mdfinal, with curl examples; README pointer.mix precommitpasses.Attack checklist for this issue, from Nye (posted by Haystack; Nye's token can't comment).
#123 attack checklist: writes, grants, /events (Nye, from #125 @
e42d1bd+ docs/api.md + D7)Key shapes to test each endpoint with: full+can_write; full, can_write off; folder-limited (item_ids) +can_write; tools-trimmed; grants [] vs grant set; revoked; no key.
Grants / migration
grants{:array,:string}, default [], null: false. Existing key after migrate -> grants == [] (test with a key made before the migration). Can't be nil.suggestions/quick_notes/todos/sync(today allowed? = permission in tools(key); if grants are just appended to tools/1, check nil-tools doesn't widen).syncdoesn't need can_write.Library writes (existing MCP write tools)
urlform -> SSRF check same as the MCP tool (no localhost/private IPs); base64 junk -> 400.App features (new grants)
suggestionscould file a page into ANY of the user's notebooks. The API must check Notes.get(scope, target_id) (or reaches_target?) before calling approve. Test: limited key, override target outside reach -> 404/422, page not moved.syncgrant (not can_write); second call while running -> 202 no-op./events (SSE)
changeshint for unreached docs, nosuggestionshint without the grant, notodoshint without it, nochangeswithout list_changes (match F1 fix).transcribed change kind + docs
transcribedchanges respect reach (pages of unreached docs never appear in /changes, MCP list_changes, webhooks). mcp.md + api.md say "ignore kinds you don't know".