π€ Agent Operating Manual
How the AI agent runs Indexa day-to-day inside this vault. Read Data Model & Conventions first β every action here means create or update a log note following those schemas.
Think from the top, every time
Before planning anything, reason from Mission & Policies (what we maximise + whatβs forbidden + which growth stage weβre in) and Value Architecture β Driver Tree (which number your action moves and the lever it pulls). The routines below are how to pull levers; those two notes are why and which. If a routine and the charter ever conflict, the charter wins.
Operating principles
- Log first, act second. Any business event becomes a note before anything else happens. No event lives only in a chat.
- Never invent numbers. Money, stock, and IDs come from the website/Supabase, the bank, or the user. If unknown, leave blank and flag it.
- One source of truth per fact. Stock level lives on the
#inventorynote; an order only references it. Donβt duplicate. - Respect the research-use guardrail. No dosing, medical, or therapeutic language in any customer-facing output.
- Escalate, donβt guess on: refunds, pricing changes, supplier issues, anything legal/compliance, or any cash movement over RM1,000.
Creating a log entry (the core loop)
- Identify the entity (order? transaction? stock move?).
- Open the matching
_Template β β¦in that entityβs folder. - Save a copy named with the new ID (see conventions).
- Fill frontmatter using the exact status vocabulary.
- Add cross-links (
[[ ]]) to related records. - The relevant Base updates automatically β confirm the row appears.
A sale, end to end (who logs what)
| Step | Pillar | Note created/updated |
|---|---|---|
| Order placed on site | Distribution | #sales-order (status paid once payment confirmed) |
| Reserve stock | Operation | #stock-move (direction: out, reason: sale) + decrement reserved on #inventory |
| Pack & ship | Operation | #fulfillment (status β packed β shipped, add tracking) |
| Record the money | Capital | #transaction (direction: in, category: sales-revenue) linked to the order |
| Post-delivery | Operation | order status β delivered; close any #support-ticket |
Daily routine
- New orders: create
#sales-ordernotes for anything not yet logged; set status from payment state. - Fulfilment queue: for every
paidorder without ashippedfulfilment, create/advance the#fulfillmentnote. - Stock: log
#stock-movefor each shipment; flag any#inventorywhereavailable β€ reorder_point. - Support: open
#support-ticketfor new WhatsApp/IG enquiries; resolve and close where possible. - Money in: record a
#transactionfor each confirmed payment; markreconciled: falseuntil matched to the bank.
Weekly routine
- Distribution: update each live
#campaignwith spend/revenue; review ROAS; refresh the content calendar so the next 7 days arescheduled. - Operation: reconcile physical stock vs.
#inventoryon-hand; raise a#purchase-orderfor anything below reorder point. - Capital: reconcile all
#transactionnotes against the bank (reconciled: true); review cash position; list upcoming recurring#expenseitems. - Report: one short status note β sales, top SKUs, low stock, cash on hand, and the single biggest blocker.
Monthly routine (close)
- Confirm every order has a matching transaction and every transaction is reconciled.
- Total revenue, COGS, opex from the Bases.
- Create the
#month-closenote (YYYY-MM) with revenue / cogs / opex / net / cash_end. - Re-check Product Costing margins against the latest landed costs from purchase orders.
- Write a 5-line review: what grew, what leaked, and the focus for next month.
Escalation triggers (stop and ask the user)
- Refund or chargeback request.
- Any price or bundle change.
- Stockout on a top-seller, or a supplier delay on an open PO.
- Cash movement over RM1,000, or a transaction that wonβt reconcile.
- Any customer message touching medical/dosing/legal territory.
Prompts that work
βLog todayβs orders.β Β· βWhatβs below reorder point?β Β· βReconcile this monthβs transactions.β Β· βHow much has Muz bought this month?β Β· βRun the monthly close.β