# Q-NEXUS

> Vendor procurement inside the tender stage for the EPCC Division of Wijaya Karya: BOQ revisions, requests for quotation, vendor offers, evaluation, negotiation, the selected vendor and a shared document explorer, in one flow for ten roles.

In a tender, Wijaya Karya must know what pipes, concrete, pumps and subcontract work will cost before it can price its own bid. That work used to run on Excel files, email and WhatsApp, and afterwards it was hard to tell which item list a vendor had priced, who sent which letter, or why one vendor was preferred. Q-NEXUS turns it into one traceable flow.

- A number read from a PDF or Word offer is accepted only if it can be found in the document text.
- Engineers judge the specification without seeing prices; a quotation is FINAL only when both the technical and the commercial gate are met.
- Every workflow action goes to an append-only audit trail with its reason, and a practice mode trains staff on a fictional tender.

- 10 roles, each with its own dashboard
- 7 workflow stages, RFQ List to archive
- 60/40 price and technical weighting

- Role: Lead AI Engineer, Digital Transformation
- Company: PT Wijaya Karya (Persero) Tbk
- Period: Since 2026
- Stack: React 19, Vite, TypeScript, Zustand, Fastify 5, PostgreSQL 18, SheetJS, MCP, Microsoft 365 Graph, Playwright, GitHub Actions
- Showcase repo: GitHub: wika-q-nexus-showcase (https://github.com/nugrahalabib/wika-q-nexus-showcase)

## What it is and who uses it

Q-NEXUS is the web application the EPCC Division of PT Wijaya Karya (Persero) Tbk uses to gather prices from vendors while it prepares a tender. It covers the full vendor procurement inside the tender stage: RFQ List, bill of quantities, requests for quotation, vendor quotations, technical and commercial evaluation, clarification, negotiation, the selected vendor and the archive. I design, build and lead it as Lead AI Engineer for digital transformation in the division.

Accounts are created by an admin; there is no self-registration. After signing in, every role lands on its own dashboard, built around a **Needs Your Action** list that names the next step and links straight to the place where it is done. The sidebar shows only the pages a role may use, in the order of that role's daily work, every dashboard panel folds away to a one-line summary, and the whole interface switches between Indonesian and English.

*Who does what in Q-NEXUS*

| Role | What they do |
| --- | --- |
| Tender team leader (KTT) | Registers the tender, appoints the managers, sets the stage schedule and the budget ceiling, and closes each procurement |
| Design team leader (KTD) | Builds and releases the RFQ List, and is the only person who approves an RFQ or returns it for revision |
| Engineering | Fills in the BOQ and attachments, and judges each quotation against the specification without seeing prices |
| Supply chain (SCM) | The single door to vendors: requests for quotation, BOQ revisions, reminders, clarifications and negotiation rounds |
| Quantity surveyor (QS) | Sets the Initial Price, reviews quotations commercially, validates negotiation rounds and marks the selected vendor with a reason |
| QS Manager (MQS) | Sees all tenders and prices, but only writes the QS and SCM side of a team, including the persons in charge of each procurement |
| GM Engineering | Assembles the KTD and Engineering team and sets the Engineering person in charge; backs up the RFQ List but does not approve RFQs |
| Admin | Manages accounts and roles and reads the global audit trail; a logged emergency mode, which requires a reason, can take over Engineering and QS tasks |
| Management (SVP, Manager) | Reads progress across all tenders on an observer dashboard with no write actions; only the SVP sees the Price Database |
| QS Coordinator | Monitors all tenders, overdue work and the Price Database, without any write rights |

## The problem and the old way

Before Q-NEXUS, the EPCC team asked many vendors for prices, compared them, negotiated and chose a vendor through Excel files, email and WhatsApp. The work was scattered and hard to trace afterwards: which version of the item list a vendor had priced, who sent which letter, and why one vendor was preferred over another.

The stakes are high. One procurement can involve several disciplines, several vendors and several rounds of revision and negotiation, and **the vendor prices gathered here become the cost basis of the price Wijaya Karya offers its client**. Price data in a state-owned company is confidential and must not leak.

*What changed for the team*

| Before | With Q-NEXUS |
| --- | --- |
| Item lists kept in separate Excel files | A BOQ inside each procurement with numbered revisions and a change history |
| Vendor letters and replies in personal email and WhatsApp | Letters sent by SCM from the app and logged per vendor |
| Offers retyped into spreadsheets | Offers read from the vendor's own file, checked, and saved only after a person confirms |
| Decisions hard to trace afterwards | Every workflow action written to an append-only audit trail, with the reason |
| Status known only by asking around | Dashboards per role that list what is waiting for whom and what is late |

The scope is deliberate. Q-NEXUS handles the relationship between Wijaya Karya and its vendors inside one tender stage. Writing the budget, management approval and submitting the bid to the client stay outside the system; the final budget documents are only uploaded as closing files.

## One procurement, role by role

**One procurement in Q-NEXUS** (Every step is tied to the BOQ revision it uses and written to the audit trail.)
1. Tender and team: KTT registers the tender and dates the stages
2. RFQ List and BOQ: Engineering prepares the BOQ, KTD approves
3. Request for quotation: SCM sends it to vendors matched by category
4. Two gates: Technical by Engineering, commercial by QS
5. Negotiation: Rounds recorded by SCM, validated by QS
6. Selected vendor: Recommendation, choice with reason, archive

**Who does what, step by step**
1. Register the tender (KTT): Records the client tender, appoints the MQS and GM Engineering, and dates the seven stages up to the submission deadline.
2. Build the team (MQS, GM Engineering): The MQS adds QS and SCM staff, the GM Engineering adds the KTD and engineers, and each procurement gets its persons in charge.
3. Release the RFQ List and prepare the BOQ (KTD, Engineering): One row is one RFQ and one procurement; Engineering fills in the bill of quantities and the attachments vendors will receive.
4. Approve the RFQ (KTD): Approves the RFQ, which moves the procurement to stage 2, or returns it with a required note.
5. Set the Initial Price (QS): Optionally prepares a reference price per item, helped by past tender and project prices in the Price Database.
6. Send and record quotations (SCM): Picks vendors matched by category and records each reply against the BOQ revision it answers.
7. Evaluate (Engineering, QS): Engineering scores the specification item by item; QS rates the price. A quotation becomes FINAL only when both gates are met.
8. Clarify (Engineering or QS, then SCM): The evaluator drafts the question, SCM sends it and records the answer, and the evaluation reopens.
9. Negotiate and select (SCM, QS): SCM records each negotiation round and QS validates it; the system recommends a vendor and QS marks the selected one with a reason.
10. Close and archive (KTT): Closes the procurement as Completed, Failed, Canceled or Merged and uploads the final documents; the procurement stops accepting changes.

The system ranks FINAL quotations by **60% relative price and 40% technical score**. QS may select a different vendor than the recommendation, but has to write the reason, and that reason goes to the audit trail. Reverse paths exist too: repeat the RFQ, withdraw the selected vendor or reopen an archive.

## Inside the product

A tender is the client's tender; inside it, each procurement is one RFQ. The tender page shows readiness checks, a stage schedule against the submission deadline, every procurement, the tender documents and the team. Each of its six panels opens and closes from its title and remembers the choice per account, and the **Tender Team** panel says for every person how many tenders they are in, how many procurements they hold and how many are late. Each procurement then has one workspace with a seven-stage tracker and a What You Need to Do list for the person signed in.

**RFQ List**
The design team leader builds the RFQ List, now a compact table: one row per RFQ, grouped by state (awaiting KTD, needs revision, in progress by Engineering, approved, sent), with a header that stays in view and the KTD's revision note under the BOQ state. Nothing reaches a vendor until the RFQ is approved, and the review window shows the BOQ items, the attachment for vendors and exactly who is notified after approval.

*The RFQ List as a compact table, grouped by state, with the KTD's note on the RFQ that needs revision.*

**BOQ versions**
The bill of quantities often changes after vendors already received it. Rev 0 is the BOQ the KTD approved, and later revisions need a reason. Q-NEXUS records which revision each quotation answers, tells SCM which vendors still hold an old version, and lists the changes in the letter when the new revision goes out. Vendors who declined to quote are skipped.

*BOQ revision history: reason, summary and an item-by-item comparison.*

**Quotations**
SCM picks vendors in one window. The match follows the category SCM searches for, a second box searches the items each vendor supplies, blacklisted vendors and vendors without a valid email cannot be chosen, and the system writes the BOQ file for vendors. The letter goes out with the tender team copied: the sending SCM, the RFQ creator, the KTD, the QS in charge and the KTT, at most ten addresses. Replies are recorded against their deadline, and late, missing and declined replies are marked per vendor.

*Category Mekanikal & Pompa plus the item search "pompa" leave 13 of 37 vendors; two are ticked.*

**Evaluation**
Engineering judges specification compliance on a page with no price columns. The technical evaluation matrix scores each item per vendor: Comply is 100, Comply with Note is 1 to 99 with a required note, Not Comply is 0. QS judges the price. A quotation becomes FINAL only when it meets the specification and the price is judged reasonable, and the database enforces that rule.

*Technical evaluation matrix for three vendors, with the average TBE score per vendor.*

**Negotiation and closing**
All letters to vendors go through SCM. Engineering or QS drafts a clarification, SCM reviews and sends it, and the answer reopens the evaluation. Sessions sit in one calendar, always in WIB. Negotiation needs at least one FINAL quotation and a target or reason, and every round shows the price before and after and the reduction. The tender team leader closes the procurement with an explicit result.

*Negotiation rounds with the price reduction per vendor.*

## Reading vendor offers safely

Retyping offers is where mistakes creep in, so Q-NEXUS reads the vendor's own file. It never lets a model invent a number: a figure computed by a model would flow straight into the procurement decision, so the model may only point at numbers, never compute them.

*A synthetic Excel offer: columns recognised without AI, one arithmetic mismatch flagged.*

- **Excel**: known column headings are mapped in code, with no AI. Only unknown headings go to the agent, which may only say which column means what.
- **Check**: code moves the values and compares source and result cell by cell; if anything differs, the result is discarded.
- **PDF and Word**: an AI agent reads the text, and every number it returns must appear in the document or it is rejected.
- **A person decides**: source and result side by side, and nothing is saved until someone presses Save.

**How a PDF or Word offer is read**
1. Same guard as recording a quotation: The server applies the recording guard, caps the file at 20 MB and reads the BOQ item names itself.
2. Text first: Empty or scanned files are rejected before the agent is called, and the text is cut at 24,000 characters.
3. Collect every number: Every number written in the document goes into a set; the agent runs once with a 180-second limit and is told never to compute or round.
4. Prove or drop: Each returned price must be found in that set or the row is dropped with a reason; totals and specifications are checked the same way.
5. A person saves: The preview shows arithmetic and deviation warnings, and nothing is saved until a person presses Save.

## Prices, vendors and documents

The **Price Database** keeps unit prices from vendor quotations and from past project contracts, kept apart and filterable, so QS can check a price before trusting it: the latest price, the tender versus project difference, a rough six-month estimate and a trend of the monthly median. The vendor database is the source of RFQ recipients, with **16 categories**, umbrella contracts and a blacklist, and it flags blacklisted vendors still in ongoing procurements and contracts about to end.

## Documents that work like a shared drive

Every tender gets one folder tree: Tender Documents, then per procurement BOQ and Attachments, Technical Documents, Vendor Quotations, Technical Evaluation, Final Documents and Other. Each folder states who fills it, who may open it and whether it is shared outside, and vendor quotation folders stay closed to Engineering. Inside, the explorer works like a shared drive: download, rename, move, see details, copy a link, make folders, download a folder or a selection as one .zip file, and delete to a Trash.

Every action asks the same rule on screen and on the server. Whoever may delete a file may also rename or move it: the uploader, the procurement's person in charge for the folders of their task, or someone given extra delete access. Moving offers only folders of the same procurement, dims the rest with a reason and says what will change. Deleted files wait **30 days** in Trash and can be restored. Folders freeze once the tender stops running or the procurement is completed, and outside sharing goes to named people for a limited time.

## Letters, settings and roles

Vendor letters are composed by the system and kept in one outbox, even when sending is switched off. Email Settings says plainly where a person's letters leave from: their own mailbox, or the procurement service mailbox with vendor replies still going to them. Admin sets each person's primary role and any additional roles, and every role except System Admin can be combined. The person switches the role in use from the name card, while inside one tender they hold exactly one role, so access to price folders never depends on which role is switched on.

## An assistant that sees only what you see

*Data assistant in Practice Mode (simulated answers from system data), listing who has not replied, with sources.*

Each user has a data assistant that reads the same data their screens show, through a read-only MCP endpoint, and every answer lists its sources. Prices are removed for roles that may not see them.

*Practice Mode as SCM, with the guide listing the steps of the role.*

Since November 2026 a Practice Mode lets any employee start a fictional tender in their own browser, switch roles, follow a guide that ticks itself off and see the result reach the next role, without touching real data or sending email.

## How it is built

Q-NEXUS has three layers. The app is a React 19 single-page application built with Vite, TypeScript and Zustand. The API is Fastify 5 on Node.js with PostgreSQL. Between them sits a shared core that holds the business rules, types, access guards and formulas, compiled without browser or Node types so both sides import the same code. The app also has a prototype mode that keeps all data in the browser, which the end-to-end suite targets; one setting switches it to server mode while the pages stay the same.

**Decisions that shaped it**
- One set of rules: Business rules live in a shared core with no browser or Node dependency, so the app and the API apply the same logic.
- Guards that explain: Access guards return a decision with a sentence; the screen shows it and the API returns it, so they never disagree. A new role is denied by default.
- Sessions that end: Passwords are hashed with scrypt and sessions are opaque 12-hour tokens stored as hashes, so signing out or deactivating revokes access on the next request.
- Rules in the database: Plain SQL migrations with a golden schema keep the CHECK constraints, partial indexes and triggers that enforce one selected vendor, FINAL only with both gates, and an append-only audit.
- Live without leaks: Live updates carry no data, only a signal after each commit; each client reloads its own scoped workspace, so the scope rules are never written twice.
- One read-only agent per user: Identity comes from the token and scope equals the user's screens; no tool accepts a user id and none can write, because decisions belong to people.
- Files where they belong: Documents live in the database or in SharePoint, chosen by one setting; vendor letters go to an outbox in the transaction and out through Outlook after commit, with retries.
- Practice prices disguised: Practice data reaches every role's browser, including Engineering, so prices derived from real ones are scaled by a salted factor that cannot be undone from the code.

### Checked before every release

- CI runs against a real PostgreSQL 18: type checks for server and core, core unit tests, all migrations from an empty database twice (the second run must find nothing new), a schema check against the golden schema, lint, translation checks and the app build.
- The shared core has 512 unit tests; all 512 passed when they were re-run locally for this page.
- A dedicated checker verifies the read-only MCP tools and their scoping, and two translation checks keep every screen string present in both languages.
- Inbound vendor mail that fails DMARC or SPF is queued for a person instead of being mapped automatically, and the web server sets HSTS and a self-only content security policy.

## Results and status

Q-NEXUS is live behind a sign-in, with a real database, and connected to Microsoft 365 for document storage in SharePoint and vendor letters through Outlook. Releases come from a GitHub Actions workflow started by hand on main after CI is green; the deploy script builds, migrates and restarts, then proves the result with a health check, a test login and the build hash. The production database is backed up daily at 02:30 WIB and backups are kept for 14 days.

Adoption is supported inside the product rather than in a separate training deck: Practice Mode, a guide per role and dashboards that always name the next step. Q-NEXUS is an internal Wijaya Karya system, not a commercial product, so it has no pricing, and this page publishes no production counts.

**At a glance**
- Client: EPCC Division, PT Wijaya Karya (Persero) Tbk
- Roles: 10
- Workflow stages: 7
- Vendor categories: 16
- Recommendation: 60% relative price, 40% technical score
- Languages: Indonesian and English
- Scope: Vendor procurement inside the tender stage
- Status: Live, with Practice Mode since November 2026

[Q-NEXUS showcase on GitHub](https://github.com/nugrahalabib/wika-q-nexus-showcase): The business case, a product tour and the developer notes, with 34 screenshots on a fictional practice tender. The source code stays private.

**Need a procurement or tender system like this?** I build internal systems that keep every decision traceable and every number checked.

Source: https://nugrahalabib.com/work/q-nexus
Author: Nugraha Labib Mujaddid (https://nugrahalabib.com)
Published: 2026-11-27. Updated: 2026-11-27.
