My third month at Dago Engineering, running from late October through the end of November 2026, felt like stepping up two levels at once. Month one centered on an ERP and month two stayed inside an internal AI assistant. This month I worked in parallel across three company repositories.
Most of my time went into dagoeng-management, the operational platform for Dago Creative Hub spanning F&B point-of-sale across four partner kitchens, co-working spaces, events, and executive BI. I landed 23 merged merge requests there, covering QA hardening, a full UI redesign, and operational sprints V-01 through V-34. At the same time, I pushed ai-assistant-prototype from INT-021 through INT-030 (12 merged merge requests plus stacked MR !39 for v3 hybrid retrieval), and returned briefly to OrgOS (Stabilytics) in PR #22 to tighten task and project permissions.
As before, this is not a commit log. These are the six technical moments that taught me the most this month.
The Kitchen Only Cooks What Is Paid
In a POS system used daily by cashiers and kitchens, a bug is never cosmetic. A bug means the cash drawer does not balance or real kitchen inventory disappears.
When I stepped into dagoeng-management, QA handover notes exposed real operational leaks. Customers on the table QR self-order flow previously had a self-confirm payment button. Unpaid orders could slip onto the Kitchen Display System (KDS), and cancelling an order risked either leaving recipe stock (Bill of Materials / BOM) unreturned or restoring it twice.
Hiding buttons in the browser is not enough when money and stock move. Across sprints V-31 through V-34, we enforced the full contract on the server:
- QRIS-only table self-order: removed customer self-confirmation on the customer portal so QRIS settlement only clears through cashier verification, supervisor approval, or a DOKU webhook.
- Paid-only KDS gate:
/api/ordersrejects unpaid transitions into kitchen preparation with HTTP 403, and the KDS screen filters strictly to confirmed paid tickets. - Idempotent BOM stock lifecycle: pre-cook ingredient deduction and cancellation restoration use deterministic operation keys (
bom-deduct-<id>andbom-restore-<id>) inside an atomic file lock. Cancelling beforeCOOKINGstarts returns ingredients once, never zero times and never twice. - Supervisor PIN-gated refunds: refunds and voids require a written reason and
SUPERVISOR_OVERRIDE_PIN. Refunds for QRIS orders dispense cash from the drawer, deduct the closing shift cash total, restore pre-cook stock, and reverse loyalty points atomically.
function restoreBomBeforeCooking(order, inventory) {
if (!order.bomDeducted || order.bomRestored || order.cookingStartedAt) {
return { skipped: true };
}
const opId = `bom-restore-${order.id}`;
if (inventory.hasApplied(opId)) return { skipped: true };
inventory.applyRestoration(opId, order.recipeIngredients);
order.bomRestored = true;
return { skipped: false, opId };
}Operational rules only earn trust when double-clicking cancel on a flaky connection still leaves the register and the pantry with the exact right numbers.
The Unit Color That Got Stuck on the HTML Tag
Much of mid-November in dagoeng-management went into redesigning the interface onto Tailwind CSS v4 and shadcn/ui. That work included splitting two massive legacy files, settings at 9,386 lines and events-admin at 4,700 lines, into focused modules, and moving 11 audit and receipt print modals onto an isolated A4 iframe engine (210mm x 297mm) to eliminate blank first pages.
To make business modules recognizable at a glance, each unit received a dedicated accent via a data-unit attribute on <html>: orange for F&B, blue for co-working, green for events, and yellow for loyalty. Putting the attribute on <html> let portaled dialogs and sheets inherit the unit accent without editing base UI primitives.
That produced my favorite bug of the month. Leaving an F&B screen for the neutral dashboard or landing page often left the orange accent stuck on buttons and filters.
The culprit was React's unmount order. UnitScope components could nest, such as a page scope wrapping a POS mode scope. The first version saved the previous data-unit value on mount and wrote it back on unmount. When the outer scope cleared the attribute before the inner scope ran its cleanup, the inner cleanup wrote fnb right back onto <html>.
The fix was replacing save-and-restore with a pure claim registry called createUnitScopeRegistry:
function createUnitScopeRegistry(apply) {
const claims = [];
const sync = () => apply(claims.at(-1)?.unit ?? null);
return {
claim(id, unit) {
claims.push({ id, unit });
sync();
return () => {
const idx = claims.findIndex((c) => c.id === id);
if (idx !== -1) claims.splice(idx, 1);
sync();
};
},
};
}With a claim stack, the newest active claim wins, and releasing any claim recomputes the attribute from whatever remains. Unmount order stopped mattering.
At the end of the month, I also overhauled /dashboard into two executive tabs (Ringkasan and Prediksi & saran) powered by a pure BI engine with 97 dedicated tests. We gave charts a separate high-contrast non-unit palette so revenue series never visually collided with business unit accents.
Measure First, Then Tune Retrieval and Cache
In ai-assistant-prototype, month two ended at INT-020. Month three shifted from adding capabilities to proving accuracy and resilience with hard measurements.
Instead of guessing whether prompt edits or embeddings helped, we built three offline measurement layers:
- Output validators (INT-021):
GroundingValidatorverifies every[n]citation against retrieved chunks and strips hallucinated citation numbers, whileVisualSchemaValidatorchecks chart and flowchart payloads with Pydantic v2 and up to two targeted retries. - Automated red-team suite (INT-022): 80 local scenarios running in under 60 seconds without an API key, split into 40 labeled attacks and 40 normal employee prompts, verifying zero shell command execution.
- Retrieval evaluation (INT-026 and MR `!39`): started with a 20-question offline grounding suite (
in_doc,out_of_doc,visual), then expanded into a 50-document Dago Engineering evaluation corpus with V1 through V3 benchmark reports.
Measured results exposed two real weaknesses right away. First, English-centric embeddings struggled with Indonesian internal policies. We switched to paraphrase-multilingual-MiniLM-L12-v2 and implemented v3 hybrid retrieval combining vector similarity with full-text keyword scoring and multi-turn query rewriting.
Second, adding a PostgreSQL semantic cache (INT-027, cosine threshold >= 0.92, 24-hour TTL, automatic invalidation when source documents change) cut repeated token spend sharply, saving roughly 3,645 tokens on verified hits. Real testing exposed a subtle trap: two nearly identical questions about different years, entities, or document codes could still clear cosine 0.92 and serve the wrong cached answer.
Adding an entity guard inside SemanticCacheService to verify years, named entities, and document codes closed that false-hit leak. A fast cache is only useful if it never answers the wrong question.
When an LLM Provider Fails, the App Cannot Go Down With It
An AI assistant that works smoothly on a laptop usually breaks in production for unglamorous reasons: upstream HTTP 429 rate limits, streams that stall before emitting a first token, traffic bursts from one user, or unmonitored API costs.
Across INT-023 through INT-030, we built the operational shell around the agent loop:
- Provider failover chain (INT-029):
ProviderChainwalks an ordered list (such asopenai,vllm, andmockas last resort) with 1-second and 2-second exponential backoff retries, a 10-second Time to First Token limit, and a 30-second total timeout. Per-provider health (up,degraded,down) reports on/health, and the chat UI displays a fallback badge whenever a secondary provider answers. - Quotas and rate limits (INT-028): non-admin users are capped at 50 messages or 100,000 tokens per day resetting at 00:00 WIB, 10 messages per minute burst, and 2 concurrent streams. Hitting a limit returns HTTP 429 with
Retry-Afterand renders a live countdownQuotaBanner. - End-to-end observability (INT-023, INT-024, INT-025): every chat request records waterfall spans in PostgreSQL,
CostCalculatortracks Rupiah spend on/admin/usage, and users can submit structured negative feedback across five explicit reasons linked totrace_id. - Original document preview (MR `!38`): clicking any
[n]citation opens a side drawer rendering the original PDF, DOCX, or Markdown file with live quote highlighting. - Persistent deployment (INT-030): Docker Compose and Coolify guides wire three persistent volumes (
pgdata,uploads,hf_cache), automatic Alembic schema upgrades on startup, and idempotentpg_dumpandpg_restorescripts verified on a Linux VPS.
By the end of the month, most of the engineering work in ai-assistant-prototype was no longer prompt text. It was everything around networks, databases, quotas, and graceful degradation.
Returning to OrgOS: Clickable Cards and Stricter RBAC
Mid-November, I returned briefly to OrgOS (Stabilytics) in PR #22 to close three workflow issues from daily use.
First, opening a task from the Kanban board at /app/tasks/board previously required clicking a small text title. Using a stretched-link pattern made the entire card clickable while lifting the Move dropdown and avatar hover tooltips onto higher z-index layers so card controls never triggered accidental navigation.
Second, /app/projects/[code] previously capped project tasks at a flat 80 items with no sorting. I replaced that with URL-backed sorting and 10-item pagination powered by pure helpers in project-task-list.ts, paired with separate aggregate queries so project totals stay accurate across pages.
Third, the broad ops.write permission still allowed cross-project managers to mutate tasks they did not own. I extracted pure authorization rules (canActOnTask, canManageProject, canReassignTask) and enforced them across every task server action. Mutations are now locked to assignees, active member creators, and project leads, while cross-project ops holders view tasks in read-only mode. The branch passed 161 Vitest unit tests and 100 Playwright E2E tests.
Learning to Stack Changes and Sit in the Reviewer's Chair
The biggest process lesson of month three came from team pace. Working across multiple repositories quickly proves that dumping a 4,000-line branch onto a reviewer stalls everyone.
In ai-assistant-prototype, I adopted stacked merge requests sliced by architectural layer: !35 for quotas, stacked with !36 for provider failover, !37 for persistent deployment, !38 for multilingual RAG and the document viewer, and !39 for v3 hybrid retrieval. Each MR stayed around 15 to 25 files, named its review entry points up front, and ran its own checks cleanly before retargeting to develop.
In dagoeng-management, I also rotated into reviewing a teammate's MRs and writing structured one-pass fix guides (for !29, !31, !33, and !34). Sitting in the reviewer's chair trained my eye for failure modes that are easy to miss while building a feature: IDOR gaps on event ticket check-ins, missing BOM deductions on corporate invoice confirmations, and report date filters drifting across WITA midnight boundaries.
What I'm Taking Into Month Four
- Make money and inventory mutations idempotent on the server. Double clicks and flaky networks always happen in real operations.
- Avoid save-and-restore patterns on shared DOM state. Use an explicit registry so component unmount order cannot corrupt the UI.
- Never tune retrieval or caching by intuition. Build an offline eval corpus and measure before and after.
- High vector similarity still misses entity, year, and document-code mismatches. Back semantic caches with deterministic guards.
- Production AI reliability lives outside the model: quotas, TTFT timeouts, provider failover, tracing, and verified backups.
- Small stacked MRs and careful peer reviews increase shipping speed far more than coding faster in isolation.
Three months at Dago Engineering reinforced what full stack engineering actually means to me: keeping cash drawers balanced, kitchen stock honest, AI answers verifiable against source pages, and every diff clean enough for the next engineer to read.
Thanks to my mentors, tech lead, and teammates at Dago Engineering for the trust, sharp reviews, and steady collaboration across these three months.