🧠 Cognitive Modes (Research, Plan, Agent)
To keep the assistant disciplined—no invented numbers, no premature file changes, no silent deliverable claims—AMBA enforces the Lean Triad cognitive model (Research, Plan, Agent). Switch modes instantly from the segmented control in the chat composer, or let Agent handle end-to-end execution.
The Lean Triad Cognitive Model /
├── 💬 1. Research (Conversational Q&A) ➔ Pure read-only inspection, exploration & calculation (Zero disk writes)
├── 📋 2. Plan (Hard-Locked Blueprint) ➔ Rigorous strategic roadmap saved to workings/plans/YYYYMMDD_<slug>.md
└── ⚡ 3. Agent (Autonomous Execution) ➔ Compiles native Office (Excel, Word, PowerPoint) and vector PDF deliverables💬 Research Mode
Pure Read-Only InspectionExploration, formula verification & analytical calculation. Zero disk writes.
📋 Plan Mode
Hard-Locked Strategic BlueprintRigorous strategic blueprint saved to workings/plans/YYYYMMDD_<slug>.md.
⚡ Agent Mode
Autonomous Delivery to reports/Autonomous multi-step runtime compiling verified board-ready deliverables.
⚡ TypeSafe AI (Jev — System 1 Decision Engine) Auto-Routing
Rather than manually toggling modes for every prompt, AMBA supports TypeSafe AI (Jev — System 1 Decision Engine) as an experimental auto-routing engine:
- Sub-Second Intent Classification: Evaluates incoming prompts in milliseconds to classify the optimal operational mode (
Research,Plan, orAgent). - Real-Time Latency Badge: When active, AMBA displays a real-time badge in the chat composer (e.g.,
Jev · 68ms) confirming sub-second classification. - Configured in Step 3 of Model Settings: Easily enabled with your TypeSafe API key in Model Settings > Step 3 (Advanced & Experimental Routing).
1. 💬 Research Mode — Conversational Q&A & Exploration
When to use: Exploring documents, asking complex domain questions, or checking formulas with zero disk modifications.
- Behavior: Pure conversation, document inspection, and analytical calculation.
- Allowed Capabilities: Reading workspace files (
filesystem_read,excel_read,pdf_read), deterministic analytical SQL queries (accounting_sql_query,accounting_load_file), and web search (when enabled). - Persistent Knowledge Ingest: When the agent discovers critical business rules, tax codes, or definitions, you can ingest them into persistent local SQLite memory with 1 click using the message action button.
- Hard Restriction: Strictly Read-Only. The assistant is physically prevented by the Rust Policy Engine from writing anywhere in the project (workspace or Sources). Every tool declares whether it writes: editing workbooks, decks or Word documents, Office scripts, shell commands and connected MCP tools are refused too, before any permission prompt. Previewing a deck or Word edit without saving it is allowed.
2. 📋 Plan Mode — Hard-Locked Strategic Blueprint
When to use: Formulating a multi-step execution roadmap, reviewing analytical assumptions, and agreeing deliverables before touching output files.
- The Sovereign Executive Contract: In top-tier agent architectures, Plan Mode provides an uncompromising contract: hard-locked read-only inspection. The agent analyzes raw source documents in Sources, establishes calculation formulas, specifies expected file layouts, and outlines execution steps—stopping completely without modifying production files.
- Chronological Dated Plan Convention (
workings/plans/YYYYMMDD_<slug>.md):- Every plan is saved directly to disk as a dated Markdown artifact:
workings/plans/YYYYMMDD_<short_slug>.md(e.g.workings/plans/20260917_q3_financial_reconciliation.md). - Traceable Business Audit History: Business users and finance controllers maintain a clean, chronological record of strategic roadmaps over time. Plans never overwrite each other blindly; same-day variants gracefully increment (
_v2.md). - Interactive Plan Inspector Card: The chat UI renders a dedicated interactive card with the plan title, timestamp, planned deliverables checklist chips, and a one-click action trigger:
[ 🚀 Approve & Execute Plan ].
- Every plan is saved directly to disk as a dated Markdown artifact:
- Hard Restriction: Hard-locked against direct deliverables. The agent can only draft plans under
workings/plans/. Writing deliverables in the workspace is strictly blocked by the runtime until the plan is approved.
3. ⚡ Agent Mode — Autonomous Execution & Delivery
When to use: Turning an approved plan or a direct executive request into verified, board-ready deliverables.
- Behavior: Executes multi-step workflows, loads data tables into embedded SQLite, evaluates exact formulas, and writes verified deliverables directly into the workspace (by default the report folder
reports/). - Approved Plan Execution: When triggered via
[ 🚀 Execute Plan ], Agent mode loads the dated blueprint ([EXECUTE PLAN: workings/plans/YYYYMMDD_<slug>.md]), verifies prerequisites, executes each milestone step, and marks the plan status asExecuted. - In-Tree Artifact Factory (No Python, LibreOffice, Node, or cloud sidecars):
- Native Excel workbooks (
.xlsx) viaexcel_write/accounting_export_table_to_xlsxwith dynamic XML formulas. - Native Word executive briefings (
.docx) viadocx_write. - Native 16:9 widescreen PowerPoint decks (
.pptx) viapptx_write. - Vector-rendered PDFs (
.pdf) viapdf_generate. - Markdown briefs (
.md) viafilesystem_writewith automatic synchronized PDF compilation.
- Native Excel workbooks (
- 1+1 Deliverable Pack Standard: Business playbooks require one structured analytical model (
.xlsx) plus one narrative strategy document (.docx,.pptx,.md, or.pdf).
🌐 Cross-Lingual Reasoning Boundary (ADR-020)
Across all three cognitive modes, AMBA enforces the Strict Cross-Lingual Reasoning Boundary:
- Internal Reasoning in Technical English: The model conducts all internal chain-of-thought, arithmetic formulas, and tool parameter calls inside
<thought>blocks strictly in Technical English. This prevents parameter distortion, token bloat, and translation hallucinations. - Native Localized Output: All conversational replies, interactive UI cards, and finalized Office/PDF files are compiled directly in the active project locale (
en,vi,ja,ko).
Cognitive Modes Comparison
| Mode | Primary Intent | Sandbox Disk Policy | Output Deliverables |
|---|---|---|---|
| 💬 Research | Read-only Q&A, source inspection & calculation assistance | Read-only (filesystem_read, excel_read, pdf_read, sql) | None (Chat answers + 1-Click Knowledge Ingest) |
| 📋 Plan | Strategic roadmap, requirements breakdown & formula design | Read-only + Plan drafting under workings/plans/ | workings/plans/YYYYMMDD_<slug>.md |
| ⚡ Agent | Autonomous end-to-end execution & deliverable production | Full tool access (excel_write, docx_write, pptx_write, pdf_generate) | Verified files in reports/ (or where you ask) & working papers |
Choosing the Right Mode
| Business Goal | Recommended Mode |
|---|---|
| "Explain the revenue variance between these two CSV files" | Research |
| "Read this rate card and understand our pricing tiers" | Research (+ Ingest to Knowledge) |
| "Break down the steps and assumptions before building the 3-year model" | Plan |
| "I reviewed the blueprint, go build the financial model" | Agent (via [ 🚀 Execute Plan ]) |
| "Produce the complete Q3 Board Briefing and Excel workbook" | Agent |
