|
3 | 3 | This file is the persistent operator manual for future agents. |
4 | 4 | For product scope and status, read `README.md` first, then use this file for execution rules and MCP usage patterns. |
5 | 5 |
|
| 6 | +### Current Direction (2026-04-18) |
| 7 | + |
| 8 | +Near-term product direction is shifting from pure MCP/server work toward a local desktop operator host around `l3dg3rr`. |
| 9 | + |
| 10 | +Current planning assumptions: |
| 11 | +- `l3dg3rr` should become the Rust host/control plane for agent execution, policy, approvals, audit, notifications, and credential access. |
| 12 | +- Agent orchestration may run in a sidecar runtime (for example LangChain/LangGraph or another agent SDK), but secrets and process supervision should remain owned by `l3dg3rr`. |
| 13 | +- Xero is already part of the visible `ledgerr_*` capability direction; future work should treat it as an in-flight supervised capability, not a greenfield speculative add-on. |
| 14 | +- Xero access should be mediated through supervised MCP worker processes/tools, not by giving raw credentials directly to the model or relying on `.env` as the long-term secret model. |
| 15 | +- Windows 11 desktop support matters: toast/app notifications, tray/menubar control surface, and persistent settings are first-class operator features. |
| 16 | +- Slint is the preferred UI shell for the desktop window, but tray/docked menubar icon integration may use a separate Rust crate such as `tray-icon` while Slint remains the main UI/event-loop host. |
| 17 | + |
| 18 | +Desktop control-plane milestones currently in scope: |
| 19 | +- persistent notification settings (`enabled/disabled`, backend health, last test result), |
| 20 | +- tray icon with quick actions (`toast enabled`, `test toast`, `status`, `show window`, `quit`), |
| 21 | +- notifier abstraction with a practical Windows fallback path first and native Windows notifications next, |
| 22 | +- credential abstraction with Windows Credential Manager for long-lived secrets, |
| 23 | +- audit-friendly event flow from agent/tool execution to UI and notifications. |
| 24 | + |
6 | 25 | ### Purpose (non-duplicate) |
7 | 26 |
|
8 | 27 | `AGENTS.md` is intentionally operational. It should not restate the full product brief from the `## Project` section below. |
@@ -82,6 +101,24 @@ assert_eq!(updated.category, "OfficeSupplies"); |
82 | 101 | - Before adding new custom infrastructure, confirm an existing crate/tool already solves it acceptably. |
83 | 102 | - Distill durable session lessons back into this file when they affect future agent quality. |
84 | 103 |
|
| 104 | +### Execution Loop (Successive Generations) |
| 105 | + |
| 106 | +Future agents should follow this working loop unless the user directs otherwise: |
| 107 | +- branch first before substantial edits; |
| 108 | +- break work into explicit tasks and keep them small enough to verify; |
| 109 | +- use sub-agents for bounded parallel discovery or independent validation when that reduces context load; |
| 110 | +- add or update tests with the change whenever behavior, contracts, or workflows move; |
| 111 | +- independently validate tests rather than assuming correctness from inspection; |
| 112 | +- loop on fixes until tests pass; |
| 113 | +- check in with the user after each meaningful milestone or architecture decision; |
| 114 | +- memoize stable next steps, constraints, and unresolved risks back into this file when they matter for later sessions; |
| 115 | +- repeat until the user is satisfied. |
| 116 | + |
| 117 | +Practical interpretation: |
| 118 | +- prefer one agent/sub-agent for implementation and another for targeted verification when the user explicitly wants delegation or parallel work; |
| 119 | +- do not treat green tests as the only completion signal if the UX, notification path, tray behavior, or host integration still lacks a real validation path; |
| 120 | +- when desktop/host features are being designed, verify the smallest executable slice first (for example, a real toast test before larger UI work). |
| 121 | + |
85 | 122 | <!-- GSD:project-start source:PROJECT.md --> |
86 | 123 | ## Project |
87 | 124 |
|
|
0 commit comments