pending_queue
pending_queue
¶
Pending review queue for edits awaiting user approval.
Edits in the review tier (when autonomy mode is tiered) are
written here as JSON files. The user reviews them via jarvis learning
review and approves or rejects.
See spec §7.5.
Classes¶
PendingQueue
¶
File-based queue for pending review edits.
Each edit is stored as <queue_dir>/<session_id>__<edit_id>.json.
Source code in src/openjarvis/learning/distillation/pending_queue.py
Functions¶
enqueue
¶
enqueue(session_id: str, edit: Edit) -> Path
Write an edit to the pending queue. Returns the file path.
Source code in src/openjarvis/learning/distillation/pending_queue.py
list_pending
¶
Return all pending edits as dicts.
Source code in src/openjarvis/learning/distillation/pending_queue.py
get
¶
Return a specific pending edit, or None.
Source code in src/openjarvis/learning/distillation/pending_queue.py
resolve
¶
Remove a pending edit (approved or rejected). Returns True if found.