Repository navigation
feat(studio): unify the workbench and proactive runtime - #764
Conversation
…-file decision - Add ProactiveAgentStepV2 class to support single daily note decision and reminder - Introduce RoundOutputs for v2 round file tracking, and keep RoundArtifacts for v1 summary backup - Refactor AgentOutbox to support both v1 standalone reminder files and v2 daily reminder records - Add proactive_record utilities to parse and validate v2 daily record frontmatter and metadata - Enhance proactive_agent to prepare, read, and manage artifacts for both v1 and v2 flows - Add configuration profile proactive_v2 to enable new workflow with backward compatibility - Update proactive.yaml and reactive proactive_agent_step configuration comment for easy switching - Provide extensive schema validation for v2 reminders ensuring priority and message consistency - Document v2 workflow and usage in English and Chinese runtime docs - Add unit tests for v2 step verifying single file output and proper decision handling
7ae72cc to
8017029
Compare
…plify reminder handling - Remove ReminderRef model and switch to using workspace-relative string keys for reminders - Simplify AgentOutbox to read, write, and manage reminders keyed by strings - Change file locking and version checking to protect concurrent edits on daily record files - Replace legacy and v2 reminder file handling with unified ReminderFiles storage - Adjust ChatNotifications to operate with the new key scheme and update pending/read sets - Refactor RoundOutputs to RoundRecord for safer round record tracking and rollback - Remove unused ProactiveRunResult and related references from imports and exports - Update InboxWakeRequest, AgentReminder, and related models for consistent ID and path validation - Adjust proactive agent runtime and local runtime to check reminder versions before commit - Correct language and docs to describe reminders as daily records instead of separate files - Clean up roles of inbox and outbox for reminder ownership, delivery, and acknowledgments
ployts
left a comment
There was a problem hiding this comment.
Please address the two P1 findings before merging. I reproduced the draft rollback, legacy receipt recovery, and cross-tab read receipt issues with isolated fixtures.
ployts
left a comment
There was a problem hiding this comment.
I verified the three fixes from the previous review. Failed acknowledgement and cancellation preserve the written record, the release guard accepts a matching tag and rejects a branch or SHA mismatch, and stale browser tabs preserve each other's settings and read receipts.
The legacy pending-reminder behavior remains an intentional cutover for workspaces from the earlier main-branch preview. Please document that pending reminders in that format will be skipped and advise preview users to process them before switching. Previous thread
Please fix the new P1 before merging. Preserving failed Markdown is the right behavior, and the retained record needs to stay out of reminder delivery until its input is committed.
Local validation passed 290 focused Python tests, 48 Studio tests, and 21 documentation tests, plus Studio formatting, type checking, the client contract check, and the Web and documentation builds. I exercised the release guard locally with no registry publishing.
ployts
left a comment
There was a problem hiding this comment.
I verified that the original copied-delivered_at reproduction stays out of Remy's inbox during the failed round and after restart. A durable receipt still recovers registration without rewriting the Markdown, and both guides now describe the failure behavior. The earlier preview format still has the direct cutover described in the previous thread.
Two new findings affect the outbox and Android connection changes below. Local validation passed 356 focused Python tests, 49 Studio tests, and 21 documentation tests, plus formatting, type checking, the client contract check, and the Web, mobile frontend, and documentation builds. I checked the Android permission requirement against platform documentation. Native device validation was outside this review.
ployts
left a comment
There was a problem hiding this comment.
The original path collision is fixed when a JSON registration exists. I also verified the Android permission declaration and request flow and exercised denial and regrant through a mocked WebView bridge. The author reported an API 37 emulator pass.
One path collision still reproduces during recovery before registration. Please cover that part of the durable handoff as well.
Local checks passed 250 focused Python tests, 49 Studio tests, 21 documentation tests, the client contract check, type checking, formatting, and the Web, mobile frontend, and documentation builds. Native Android execution was outside my local validation.
ployts
left a comment
There was a problem hiding this comment.
The outstanding reminder-path finding is resolved. The allocator now reserves paths referenced by durable receipts even before registration. The daylight-saving fallback regression passed. I also checked a restart with an older unregistered reminder receipt followed by a newer receipt with no reminder. The new round used a distinct path, and restoring the first Markdown recovered its original reminder.
All 266 focused Python tests passed locally. The Python 3.11–3.14 and Studio checks also passed on this commit. Python CI · Studio CI
Summary
This PR brings scheduled and observation-driven work into the same proactive runtime and shares the ReMe Studio workbench across Web, Desktop, Android, and iOS. ReMe owns task execution, session state, and workspace records. Studio consumes the same client contracts on each platform.
Proactive runtime and daily records
NO_KEY_INFORMATIONwhen there is no material update. Resolve local source links relative to the record.Remy, reminders, and Notebook
delivered_at,read_at, and linkedchat_message_ids. Reminder and inbox views use the same record fields and processing state.reme todo action=list_projectsfor one project list across Todo and Idea records, with per-project counts and active, archived, and all scopes. New records use the default project when one is absent. Creating a Todo from an Idea can inherit its project and text.Studio across platforms
proactivepreset. Desktop retains the Remy companion, tray, and native notifications, with a user-initiated update flow for supported release packages.http://127.0.0.1:2333. Settings → General accepts a complete HTTP or HTTPS service URL, including a routable IP and port. Connect saves the address and restarts the connection. The app reconnects to that address on launch.URLSessionfor transport. Web Studio uses its configured service address.Packaging and documentation
scripts/bump_version.py. Published releases build the PyPI and npm packages, Desktop installers for macOS, Windows, and Linux, and multi-architecture Docker images.reme_studio/web/python. Docker checks cover the default memory service, persistent files across container replacement, and the Studio entry point and health endpoint underproactive.Related issue
Follow-up to #743.
Contract and data impact
Configure tasks under
components.proactive_runtime.default. Send a nonempty observation batch to an existing task withappend_task_events. Usetask_documentforTASK.mdand pass the returnedmtimeasexpected_mtimewhen saving.The runtime writes daily records and updates their frontmatter under the workspace lock. Daily records use
daily/YYYY-MM-DD/{agent_name}_HHMMSS.mdwith a numeric suffix when needed. Frontmatter usesreminder_priorityandreminder_message. Uselist_task_remindersandlist_agent_inboxfor reminder views.read_agent_reminderaccepts a record path or a chat message ID.Start Studio with
reme start config=proactiveor setREME_CONFIG=proactivein Docker. The default preset continues to serve the memory API. The GitHub Pages site links to the repository's Studio guides for setup.Validation
pre-commit run --all-filespasses, or omitted checks are explained belowreme_studio/changedAt
36fbf9f0:Earlier branch validation covered 4,207 Python tests with 46 skips, the Python 3.11–3.14 CI matrix, Hermes, Windows CLI, CodeQL, release configuration checks, production Studio builds, macOS Desktop connectivity, and Docker persistence on both architectures. GitHub checks
Checklist
Screenshots or additional notes
See the Proactive Runtime guide and the Studio guide for runtime setup and platform development.