ReMe/docs/figure/chat-reminders.svg
jinliyl ae55e2e570
Some checks are pending
CI / Python packages / Build and verify distributions (push) Waiting to run
CI / Python quality / GitHub Actions (push) Waiting to run
CI / Python quality / Pre-commit (push) Waiting to run
CI / Python tests / Hermes embedded - ubuntu-latest (push) Waiting to run
CI / Python tests / Hermes embedded - windows-latest (push) Waiting to run
CI / Python tests / Unit Tests - py3.11 (push) Waiting to run
CI / Python tests / Unit Tests - py3.12 (push) Waiting to run
CI / Python tests / Unit Tests - py3.13 (push) Waiting to run
CI / Python tests / Unit Tests - py3.14 (push) Waiting to run
CI / ReMe Studio / Studio checks (push) Waiting to run
CI / Windows / CLI smoke - py3.11 (push) Waiting to run
Deploy / Documentation / Build documentation (push) Waiting to run
Deploy / Documentation / deploy (push) Blocked by required conditions
Security / CodeQL / Analyze javascript-typescript (push) Waiting to run
Security / CodeQL / Analyze python (push) Waiting to run
feat!: split proactive runtimes and add Studio backend management (#776)
* refactor(proactive)!: separate runtime ownership and unify delivery

* refactor(proactive): finish runtime and Studio migration

* test(proactive): make scheduled skip coverage deterministic

* refactor(studio): unify navigation and notebook resource loading

* feat(studio): edit workspace documents and update proactive task names

* refactor(studio): simplify task settings and navigation

* feat(studio): secure and supervise backend settings

* feat(studio): unify workbench timelines and refine desktop updates

Use shared timeline panes for notebook, memory, and resources. Add Todo creation ordering, persist companion visibility, and align desktop update handling and release artifacts.

Recheck editor file versions at read and publication boundaries. Retry reminder detail requests from the resource view.

* fix(studio): support unsigned GitHub preview releases

* fix: verify container state and isolate proactive view errors

Mount private supervisor state in Docker smoke tests and verify token and settings persistence. Exercise Studio startup with a loopback-only model fixture, and exclude packaged desktop output from Docker contexts.

Keep Remy subscriptions and healthy tasks available when an individual task has an invalid workspace path or session history.

* fix(home): align candidate Docker context exclusions

* chore(deps): update openai-codex dependency to v0.172.0

- Bump openai-codex from version 0.169.0 to 0.172.0 in pyproject.toml
- Keep other dependencies unchanged
- Ensure compatibility with latest openai-codex features and fixes

* fix(daemon): discover parent dotenv and isolate listeners

Restore parent-directory environment discovery in workers while retaining system precedence. Partition the default supervisor profile and lock by the configured bind address and port.
2026-11-25 21:33:16 +08:00

210 lines
16 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1780" height="1120" viewBox="0 0 1780 1120" role="img" aria-labelledby="title desc">
<title id="title">Proactive Runtime</title>
<desc id="desc">Remy manages named tasks through manage_proactive_agent. Each task owns its description, settings and session references. Remy's Inbox uses task outbox registrations and reads reminder text from daily records. A read-only fork reads the selected batch and its evidence, then submits a decision. A text decision appends an assistant message to Chat. An empty decision acknowledges the batch silently. The workspace cards show personal memory, session references, the derived Chat Inbox, task files and daily records.</desc>
<metadata>Source: reme/schema/proactive_agent.py; reme/config/proactive.yaml; reme/components/agent_inbox/; reme/components/proactive_manager/_internal/registry.py; reme/components/proactive_manager/_internal/sessions.py; reme/components/proactive_manager/_internal/outbox.py; reme/components/proactive_manager/_internal/notifications.py; reme/steps/proactive/agent/proactive.py; reme/steps/proactive/agent/inbox.py; reme/steps/proactive/agent/inbox.yaml; reme/steps/proactive/tools/manage_proactive_agent.py; reme/steps/proactive/tools/inbox.py. Drawn from the current working tree. Paths are relative to the configured workspace root; {date} is an application-local calendar date. Permanent task paths shown.</metadata>
<defs>
<style>
text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; fill: #22383F; }
.title { font-size: 38px; font-weight: 700; letter-spacing: -1px; }
.section { font-size: 14px; font-weight: 600; letter-spacing: 1.6px; }
.heading { font-size: 25px; font-weight: 650; letter-spacing: -.4px; }
.body { font-size: 16px; }
.small { font-size: 14px; }
.muted { fill: #697E85; }
.teal { fill: #147D80; }
.purple { fill: #775AA6; }
.file { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: 13.5px; fill: #62767E; }
.line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.white { fill: #FFFFFF; }
</style>
<marker id="teal" markerWidth="7" markerHeight="7" refX="6" refY="3.5" orient="auto-start-reverse">
<path d="M1 1L6 3.5L1 6" fill="none" stroke="#45999A" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" />
</marker>
<marker id="purple" markerWidth="7" markerHeight="7" refX="6" refY="3.5" orient="auto-start-reverse">
<path d="M1 1L6 3.5L1 6" fill="none" stroke="#9A83BA" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" />
</marker>
<marker id="gold" markerWidth="7" markerHeight="7" refX="6" refY="3.5" orient="auto-start-reverse">
<path d="M1 1L6 3.5L1 6" fill="none" stroke="#BE9859" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" />
</marker>
<marker id="light" markerWidth="7" markerHeight="7" refX="6" refY="3.5" orient="auto">
<path d="M1 1L6 3.5L1 6" fill="none" stroke="#91BCBF" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" />
</marker>
<filter id="shadow" x="-10%" y="-10%" width="120%" height="125%">
<feDropShadow dx="0" dy="6" stdDeviation="10" flood-color="#173A42" flood-opacity=".08" />
</filter>
</defs>
<rect x="0" y="0" width="1780" height="1120" rx="0" fill="#F8FAFA" />
<text x="64" y="43" class="section teal">REME / 02</text>
<text x="64" y="91" class="title">Proactive Runtime</text>
<path d="M64 118H1716" class="line" stroke="#DFE8E8" stroke-width="1" />
<g data-role="section-headings">
<text x="64" y="166" class="section teal">01</text>
<text x="100" y="166" class="section muted">CHAT &amp; MANAGE</text>
<text x="808" y="166" class="section purple">02</text>
<text x="844" y="166" class="section muted">ASSESS REMINDERS</text>
<text x="1304" y="166" class="section teal">03</text>
<text x="1340" y="166" class="section muted">RUN TASKS</text>
</g>
<g data-role="chat-agent" data-box="64,196,640,508">
<rect x="64" y="196" width="640" height="508" rx="16" fill="#FFFFFF" stroke="#DDE7E7" />
<text x="92" y="238" font-size="28" font-weight="650" letter-spacing="-.4">Chat Agent</text>
<g data-role="main-conversation" data-box="88,268,262,100">
<rect x="88" y="268" width="262" height="100" rx="12" fill="#183A43" stroke="#183A43" />
<text x="112" y="308" font-size="22" class="white" font-weight="600">Conversation</text>
<text x="112" y="338" font-size="15" style="fill:#B3CED1">Understand requests and act.</text>
</g>
<g data-role="forked-chat-context" data-box="508,268,172,100">
<rect x="508" y="268" width="172" height="100" rx="12" fill="#F6F2FA" stroke="#E2DBEC" />
<text x="594" y="309" font-size="19" class="purple" font-weight="600" text-anchor="middle" dominant-baseline="middle">Reminder fork</text>
<text x="594" y="340" font-size="12" class="muted" text-anchor="middle">Read-only · temporary</text>
</g>
<path d="M352 300H506" class="line" stroke="#45999A" stroke-width="1.5" marker-end="url(#teal)" />
<text x="429" y="287" font-size="13" text-anchor="middle" class="teal">fork</text>
<path d="M506 340H352" class="line" stroke="#BE9859" stroke-width="1.5" marker-end="url(#gold)" />
<text x="429" y="362" font-size="13" text-anchor="middle" style="fill:#A07A3D">Append message</text>
<text x="402" y="388" font-size="12" style="fill:#A07A3D" text-anchor="middle">submit_chat_reminder</text>
<text x="594" y="388" font-size="12" class="purple" text-anchor="middle">Read evidence in paths</text>
<path d="M88 404H680" class="line" stroke="#DFE8E8" />
<g data-role="chat-task-management">
<text x="92" y="435" font-size="20" font-weight="600">Skill · manage-proactive-agent</text>
<g data-role="skill-list" data-box="92,450,268,46">
<rect x="92" y="450" width="48" height="24" rx="6" fill="#E8F2F1" />
<text x="104" y="462" font-size="15" font-weight="650" style="fill:#147D80" dominant-baseline="middle">List</text>
<text x="104" y="492" font-size="15" class="muted">List names, schedules and state.</text>
</g>
<g data-role="skill-create" data-box="396,450,268,46">
<rect x="396" y="450" width="72" height="24" rx="6" fill="#E8F2F1" />
<text x="408" y="462" font-size="15" font-weight="650" style="fill:#147D80" dominant-baseline="middle">Create</text>
<text x="408" y="492" font-size="15" class="muted">Create a task and write TASK.md.</text>
</g>
<g data-role="skill-status" data-box="92,510,268,46">
<rect x="92" y="510" width="64" height="24" rx="6" fill="#E8F2F1" />
<text x="104" y="522" font-size="15" font-weight="650" style="fill:#147D80" dominant-baseline="middle">Status</text>
<text x="104" y="552" font-size="15" class="muted">Check progress, last run and errors.</text>
</g>
<g data-role="skill-edit-task" data-box="396,510,268,46">
<rect x="396" y="510" width="140" height="24" rx="6" fill="#EEE9F5" />
<text x="408" y="522" font-size="15" font-weight="650" style="fill:#775AA6" dominant-baseline="middle">Edit TASK.md</text>
<text x="408" y="552" font-size="15" class="muted">Open task_path with file tools.</text>
</g>
<g data-role="skill-pause-start" data-box="92,570,268,46">
<rect x="92" y="570" width="140" height="24" rx="6" fill="#F6EFE3" />
<text x="104" y="582" font-size="15" font-weight="650" style="fill:#A07A3D" dominant-baseline="middle">Pause / Resume</text>
<text x="104" y="612" font-size="15" class="muted">Update enabled to pause or resume.</text>
</g>
<g data-role="skill-query" data-box="396,570,268,46">
<rect x="396" y="570" width="68" height="24" rx="6" fill="#EEE9F5" />
<text x="408" y="582" font-size="15" font-weight="650" style="fill:#775AA6" dominant-baseline="middle">Query</text>
<text x="408" y="612" font-size="15" class="muted">Ask a read-only task-session fork.</text>
</g>
<g data-role="skill-update" data-box="92,630,268,46">
<rect x="92" y="630" width="80" height="24" rx="6" fill="#E8F2F1" />
<text x="104" y="642" font-size="15" font-weight="650" style="fill:#147D80" dominant-baseline="middle">Update</text>
<text x="104" y="672" font-size="15" class="muted">Change schedules and settings.</text>
</g>
<g data-role="skill-delete" data-box="396,630,268,46">
<rect x="396" y="630" width="72" height="24" rx="6" fill="#F6EFE3" />
<text x="408" y="642" font-size="15" font-weight="650" style="fill:#A07A3D" dominant-baseline="middle">Delete</text>
<text x="408" y="672" font-size="15" class="muted">Remove tasks, retain files.</text>
</g>
</g>
</g>
<g data-role="chat-inbox" data-box="808,196,408,356">
<rect x="808" y="196" width="408" height="356" rx="16" fill="#FFFFFF" stroke="#E2DBEC" />
<text x="832" y="238" class="heading purple">Chat Inbox</text>
<text x="832" y="266" class="small muted">References to committed daily records</text>
<g data-role="reminder-types">
<rect x="832" y="290" width="36" height="22" rx="6" fill="#EEE9F5" />
<text x="850.0" y="306" font-size="12" class="purple" font-weight="600" text-anchor="middle">P0</text>
<text x="878" y="306" class="small muted">Due or urgent</text>
<rect x="1012" y="290" width="36" height="22" rx="6" fill="#EEE9F5" />
<text x="1030.0" y="306" font-size="12" class="purple" font-weight="600" text-anchor="middle">P1</text>
<text x="1058" y="306" class="small muted">Meaningful change</text>
<rect x="832" y="330" width="36" height="22" rx="6" fill="#EEE9F5" />
<text x="850.0" y="346" font-size="12" class="purple" font-weight="600" text-anchor="middle">P2</text>
<text x="878" y="346" class="small muted">Relevant discovery</text>
</g>
<path d="M832 372H1192" class="line" stroke="#EEEAF3" stroke-width="1" />
<g data-role="inbox-reminder">
<rect x="832" y="392" width="52" height="24" rx="6" fill="#EEE9F5" />
<text x="858" y="409" font-size="12" class="purple" font-weight="600" text-anchor="middle">P0</text>
<text x="898" y="409" font-size="15">Scheduled reminder is due.</text>
</g>
<g data-role="inbox-reminder">
<rect x="832" y="430" width="52" height="24" rx="6" fill="#EEE9F5" />
<text x="858" y="447" font-size="12" class="purple" font-weight="600" text-anchor="middle">P1</text>
<text x="898" y="447" font-size="15">Project A has new results.</text>
</g>
<g data-role="inbox-reminder">
<rect x="832" y="468" width="52" height="24" rx="6" fill="#EEE9F5" />
<text x="858" y="485" font-size="12" class="purple" font-weight="600" text-anchor="middle">P2</text>
<text x="898" y="485" font-size="15">A relevant paper is available.</text>
</g>
<text x="832" y="523" class="small muted">An empty decision consumes the batch silently.</text>
</g>
<g data-role="background-tasks" data-box="1304,196,412,356">
<rect x="1304" y="196" width="412" height="356" rx="16" fill="#FFFFFF" stroke="#DDE7E7" />
<text x="1328" y="238" class="heading">Background tasks</text>
<g data-role="stacked-task-cards">
<rect x="1352" y="294" width="340" height="144" rx="12" fill="#E8EFEF" stroke="#DDE7E7" />
<rect x="1340" y="318" width="340" height="144" rx="12" fill="#F5F8F8" stroke="#DDE7E7" />
<g data-role="background-task" data-box="1328,342,340,144">
<rect x="1328" y="342" width="340" height="144" rx="12" fill="#E8F2F1" stroke="#CFE2E1" />
<text x="1498" y="414" font-size="15" font-weight="600" text-anchor="middle" dominant-baseline="middle"><tspan class="teal">Event Inbox</tspan><tspan dx="7" class="muted">→</tspan><tspan dx="7">Proactive run</tspan><tspan dx="7" class="muted">→</tspan><tspan dx="7" class="purple">Outbox</tspan></text>
</g>
</g>
</g>
<g data-role="read-inbox">
<path d="M806 300H682" class="line" stroke="#9A83BA" stroke-width="1.7" marker-end="url(#purple)" />
<text x="744" y="287" font-size="14" class="purple" font-weight="600" text-anchor="middle">Read reminders</text>
<text x="744" y="324" font-size="12" class="muted" text-anchor="middle">Selected batch</text>
</g>
<g data-role="task-to-inbox">
<path d="M1302 410H1218" class="line" stroke="#9A83BA" stroke-width="1.7" marker-end="url(#purple)" stroke-dasharray="4 5" />
<text x="1260" y="398" font-size="14" class="purple" font-weight="600" text-anchor="middle">deliver</text>
</g>
<g data-role="skill-to-tasks">
<path d="M706 650H1000" class="line" stroke="#9A83BA" stroke-width="1.7" stroke-dasharray="4 5" />
<path d="M1024 650H1368V554" class="line" stroke="#9A83BA" stroke-width="1.7" marker-end="url(#purple)" stroke-dasharray="4 5" />
<text x="1170" y="634" font-size="14" class="purple" font-weight="600" text-anchor="middle">Manage tasks</text>
</g>
<g data-role="file-connections">
<path d="M260 706V814" class="line" stroke="#8BB9BA" stroke-width="1.7" marker-end="url(#teal)" marker-start="url(#teal)" />
<text x="280" y="748" font-size="14" class="teal" font-weight="600">Recall context</text>
<path d="M600 706V814" class="line" stroke="#8BB9BA" stroke-width="1.7" marker-end="url(#teal)" marker-start="url(#teal)" />
<text x="620" y="748" font-size="14" class="teal" font-weight="600">Resume sessions</text>
<path d="M1012 554V814" class="line" stroke="#B6A6CA" stroke-width="1.7" marker-end="url(#purple)" marker-start="url(#purple)" />
<text x="1032" y="748" font-size="14" class="purple" font-weight="600">Track reminders</text>
<path d="M1528 554V814" class="line" stroke="#8BB9BA" stroke-width="1.7" marker-end="url(#teal)" marker-start="url(#teal)" />
<text x="1548" y="748" font-size="14" class="teal" font-weight="600">Save results</text>
</g>
<text x="64" y="776" font-size="21" font-weight="650">Workspace files</text>
<g data-role="workspace-files">
<g data-role="personal-memory" data-box="64,816,398,208" data-path="reme_agents/Remy/MEMORY.md">
<rect x="64" y="816" width="398" height="208" rx="14" fill="#FFFFFF" stroke="#DDE7E7" />
<text x="84" y="860" font-size="22" font-weight="650">Personal memory</text>
<text x="84" y="904" class="file"><tspan x="84">reme_agents/Remy/</tspan><tspan x="84" dy="22">MEMORY.md</tspan></text>
<text x="84" y="988" font-size="13" class="muted">Native file edits · user-confirmed facts</text>
</g>
<g data-role="session-references" data-box="482,816,398,208" data-path="reme_agents/Remy/sessions.jsonl" data-task-session-path="reme_agents/{agent_name}/sessions.jsonl">
<rect x="482" y="816" width="398" height="208" rx="14" fill="#FFFFFF" stroke="#DDE7E7" />
<text x="502" y="860" font-size="22" font-weight="650">Session references</text>
<text x="502" y="904" class="file"><tspan x="502">reme_agents/Remy/</tspan><tspan x="502" dy="22">sessions.jsonl</tspan></text>
<text x="502" y="966" class="file"><tspan x="502">reme_agents/{agent_name}/</tspan><tspan x="502" dy="22">sessions.jsonl</tspan></text>
</g>
<g data-role="inbox-files" data-box="900,816,398,208" data-path="daily/">
<rect x="900" y="816" width="398" height="208" rx="14" fill="#FFFFFF" stroke="#E2DBEC" />
<text x="920" y="860" font-size="22" font-weight="650">Chat Inbox</text>
<text x="920" y="904" class="file"><tspan x="920">Task outbox registrations</tspan><tspan x="920" dy="22">Derived receiver view</tspan><tspan x="920" dy="22">One in-memory batch</tspan></text>
<text x="920" y="988" font-size="13" class="muted">Reminder content stays in the daily record</text>
</g>
<g data-role="task-files" data-box="1318,816,398,208" data-path="reme_agents/{agent_name}/TASK.md" data-daily-path="daily/{date}/{agent_name}_HHMMSS.md">
<rect x="1318" y="816" width="398" height="208" rx="14" fill="#FFFFFF" stroke="#DDE7E7" />
<text x="1338" y="860" font-size="22" font-weight="650">Task files</text>
<text x="1338" y="896" class="file"><tspan x="1338">reme_agents/{agent_name}/</tspan><tspan x="1338" dy="20">config.json · TASK.md</tspan><tspan x="1338" dy="20">inbox/</tspan></text>
<text x="1338" y="996" class="file">daily/{date}/{agent_name}_HHMMSS.md</text>
</g>
</g>
<text x="64" y="1050" font-size="12" class="muted">Paths are relative to the workspace root (default: .reme/). Directory settings may be overridden.</text>
<text x="1716" y="1103" font-size="12" class="muted" text-anchor="end">REME / PROACTIVE RUNTIME</text>
</svg>