# Spead AI Pro for Wijaya Karya

> The Spead AI workspace for the tender and contract team of Wijaya Karya's EPCC Division: it reads a tender package, fills the tender document review form with quotes checked against the contract files, and answers questions with citations.

Before a bid decision, the tender team reviews the contract package and fills a standard review form, and every answer must point to the clause it comes from. By hand, that means reading long PDFs clause by clause for every tender. In a review that feeds a commercial decision, a quote that is not really in the contract is worse than no answer, so Spead AI Pro checks every quote against the files before a person sees it.

- Every quote is checked against the contract files and gets one of six statuses before a reviewer sees it.
- One access filter decides what each employee's assistant may read, so the AI sees only what that person may open.
- Any connector action that would change data in another system becomes an approval request for a person.

- 6 quote statuses, checked before a person reads
- 0.933 Recall@5, hybrid search on a synthetic set
- SSO + 2FA company sign-in and two-step verification

- Role: Founder & Lead AI Engineer, Spead AI
- Company: Spead AI for PT Wijaya Karya (Persero) Tbk
- Period: Pilot since Oct 2026
- Stack: Node 22, TypeScript, Fastify 5, PostgreSQL, PGlite, zod, React 19, Vite, three.js, ONLYOFFICE, OCR, Playwright, nginx
- Showcase repo: GitHub: spead-pro-wika-showcase (https://github.com/nugrahalabib/spead-pro-wika-showcase)
- Product site: spead.ai (https://ldpage.spead.ai)

## What it is and who uses it

Spead AI Pro is the deployment of [Spead AI](/work/spead-ai) for the tender and contract team of the EPCC Division at PT Wijaya Karya (Persero) Tbk,. Its core job is narrow and demanding: read a tender package, fill the **tender document review form** (Lampiran 2.3) with quotes that are checked against the contract files, and answer questions about the same package with citations.

Around that core sits a full workspace: a knowledge library with access labels and confidentiality, Document Studio for letters and minutes in the company's format, connectors where any data change waits for a person, an organisation model and usage quotas. The workspace, the assistants and the data belong to the division; Spead AI builds and operates the product, and I lead it as founder and lead AI engineer. The tender review module is switched on per company as a package, so the same product can serve organisations that do not need it.

*A tender package lives in Knowledge as a project with its agreement and appendices. Every name, project and document on this page is synthetic.*

*Who uses Spead AI Pro*

| Role | What they do |
| --- | --- |
| Tender staff | Creates the tender project, uploads the agreement and appendices, starts the review, checks flagged items and edits answers. |
| Tender and contract manager | Approves items and the whole review, or returns it with notes. |
| Legal staff | Asks questions about clauses across the package and drafts letters and minutes in Document Studio. |
| Division head and directors | Read project reviews, ask the assistant for summaries, and approve or sign documents routed to them. |
| Company admin | Maintains units, positions, labels, connectors, templates and quotas for the division. |

## The problem and the old way

Before a bid decision, the tender team reviews the contract package and fills a standard review form: contract type, scope, time for completion, securities, payment terms, penalties, liability, insurance, force majeure, disputes and more. Each answer has to point to the clause it comes from. Done by hand, that means reading long PDFs clause by clause for every tender.

Tender packages are hard to read reliably. General conditions are amended by particular conditions, sometimes in parts A, B and C. Some contracts are printed in two language columns, headers and footers repeat on every page, and some pages are scanned. A reviewer has to keep track of which version of a clause actually applies.

A general AI tool is risky here. A quote that is not really in the contract, or a number that differs by one digit, is worse than no answer, because the review feeds a commercial decision. Contract documents are also confidential: each employee's assistant must read only what that employee is allowed to read, and anything that sends or changes data outside the workspace has to be approved by a person.

*What changed for the team*

| Before | With Spead AI Pro |
| --- | --- |
| Read the whole package to fill each review item | Spead drafts every item with a quote and a clause reference |
| Trust or re-check every quote by hand | Each quote gets a status; only verified quotes are shown as verified |
| Track general versus particular conditions in your head | The reader splits files into clauses and labels the agreement and appendix letters |
| Ask a colleague where a clause is | Ask the package and open the cited page |
| Shared folders with unclear access | Labels and confidentiality decide what each person's assistant can read |
| Letters retyped on old letterheads | Company templates with locked letterhead, numbering and signing route |

## From package to approved review

**One tender review in Spead AI Pro** (The AI drafts; deterministic code checks; people decide.)
1. Upload the package: Agreement and appendices as PDF
2. Read and index: Clauses, tables, OCR, search
3. See the plan: Files, pages and estimated time
4. Fill the form: Each item with quote and clause
5. Check every quote: One of six statuses
6. Approve and export: Word, PDF or Excel

**Who does what, step by step**
1. Create the tender project (tender staff): Adds the project with employer, tender number and location under Knowledge, Tender packages.
2. Upload the package (tender staff): Uploads the agreement and appendices as PDF and marks each file as agreement or appendix with its letter.
3. Let Spead read (system): Extracts text, splits clauses and sub-items, runs OCR on scanned pages and indexes the files for search.
4. Start the review (tender staff): Chooses Review a tender package in Doc Assistant and sees the plan before anything runs.
5. Fill and check (system): A background job reads files and tables, drafts each item, then checks every quote against the files. It can be left and resumed.
6. Review flagged items (tender staff): Opens items marked for checking, compares them with the source page and edits or approves them.
7. Approve or return (manager): Approves the submitted review or returns it with notes; files are locked while a review is submitted or approved.
8. Export and ask (tender team): Exports the review to Word, PDF or Excel and asks follow-up questions about the package, with citations.

## Every quote is checked

Two pieces of deterministic code sit around the AI, and both have their own tests. The **reader** turns each PDF into a clause map, so every answer can cite a clause such as 3.2.1 or 2.2(A). The **checker** tests every quote against the files and gives it one of six statuses before a reviewer sees it. The AI only drafts; whether a quote counts as verified is decided by code.

*Clause map produced by the product's reader from a synthetic package, run locally.*

- Clause segmentation such as 6., 6.7.1 and (A), including layered A, B and C conditions.
- Two-column English and Indonesian pages are split, and repeated headers and footers are removed.
- OCR for scanned pages; Word, Excel and PowerPoint files are read too.
- Word-bounded matching, so 14 days never matches inside 114 days.

*The six quote statuses*

| Status | What it means | What the reviewer sees |
| --- | --- | --- |
| Whole | The exact sentence is in the file | Quote verified |
| Proven | Sentences from one clause, in order | Quote verified |
| Scattered | Real sentences, but from different clauses | Check this |
| Too short | Too short to prove where it comes from | Check this |
| Partial | Part of the sentence is not in the file | Does not match |
| Not found | Nothing like it in the files | Not found in the file |

*The product's quote checker on six hand-typed test quotes against the synthetic package. One invented sentence is enough to stop a quote from counting as verified.*

> Reject rather than pass: the checker would rather flag a correct quote for a person than show a quote with a different number as verified.

## Inside the workspace

Every employee gets a personal assistant that knows their unit and position and reads only the documents they may open. The rest of the workspace exists to make that rule hold, and to turn answers into documents the company can send.

**Knowledge**
The library holds reference documents and tender packages. Every document has a confidentiality level (normal, restricted, confidential or highly confidential) and labels that link it to all employees, a unit and its sub-units, a position or a level. A per-document switch decides whether Spead uses it when answering, and deleted documents stay in a 30-day trash.

**Document Studio**
Document Studio produces letters, minutes, reports and presentations in the company's format. Built-in templates cover common Indonesian official documents, from official letters, memos and decrees to assignment letters, minutes and agreements, and companies add their own with locked parts. Documents open in an ONLYOFFICE editor and move through initials, approval and signature, with sharing, comments and versions.

**Letterhead and numbering**
The company identity is set once and reused: letterhead, logo, colours and fonts, signatures, and letter number formats per document type with sequence, unit code, Roman month and year. Numbers are assigned when a document is signed, in sequence per type and unit, and a personal signature is used only when that person signs.

**Connectors**
Connectors let assistants reach office systems such as Microsoft 365 and Google, ERP systems, databases, REST services and MCP servers. Admins choose which positions may use each connector and whether data may change; a change always becomes an approval request for its owner. Credentials sit in an encrypted vault, and outbound calls pass a network guard.

**Organisation**
The organisation model drives everything else. Units, positions and people decide what each assistant may read and how it behaves. Admins start from structure templates for private companies, state-owned enterprises, government agencies and more, then refine each position's way of working, main tasks, things never to do and document access.

*My assistant: how it addresses the user and its personality, with a sample answer.*

Each employee can set the assistant's name, form of address and personality, within limits the company sets. Company and position rules show as locked parts.

*Usage on a fresh demo workspace: quota forecast, requests and adoption.*

AI work is counted as questions against a monthly company quota and a daily personal limit. The usage page forecasts whether the quota will last and shows adoption by unit, position, person and feature.

**About these screenshots**
The screens come from a local run of the real product with the AI switched off and a fictional tender package written for this page. They show the real interface and the real reader and checker, not AI answers.

## How it is built

Spead AI Pro is a TypeScript monorepo. The API runs on Node 22 with Fastify 5 and PostgreSQL, with PGlite for tests and local runs. The web app is the approved Spead AI interface, assembled into one bundle that runs under a strict content security policy. Shared packages keep the core logic testable: the reader, the review form schema with an automatic grader, the contracts shared by API and web, export to DOCX and PDF, and bilingual email. Long work runs as jobs: PDF parsing in worker threads, the review job in a queue with visible stages, and email through an outbox.

**Decisions that shaped it**
- Deterministic code around the AI: Reading clauses and checking quotes are plain code with tests, so the AI only drafts and every claim traces back to a clause.
- One access filter: A single function decides what an assistant may read, so search, Q&A and tools cannot drift apart on permissions.
- Search runs on the server: Embeddings, reranking and OCR run locally on the server, which keeps document text inside the deployment and made search measurable.
- Signed calls, owner's rights: Assistant tool calls are signed with HMAC-SHA256 and a one-time nonce and run with the rights of the employee who owns the assistant.
- Approval for every data change: Connectors default to read only; a change becomes a pending action with an approval card, then runs and is written to the audit history.
- Encrypted at rest: Files, search indexes and vectors are encrypted with separate keys, and connector credentials sit in an AES-GCM vault.
- Multi-tenant from the start: Every business table carries the company id, and tests run with two companies in one in-memory database so a tenant leak fails the build.
- What the client saw is what ships: The interface is assembled from the approved Spead AI prototype and a parity test compares the two, including screenshots.

### Search, measured

Knowledge search combines keyword search with vector search and a multilingual reranker. It was measured on a synthetic set of 16 documents, 104 passages and 45 queries. On cross-language queries, where the question is in Indonesian and the clause in English or the reverse, Recall@5 rose from 0.2 with keyword search to 0.6 with hybrid search and reranking.

**Recall@5 by search method**
- Keyword search: 0.867
- Hybrid search: 0.911
- Hybrid with reranking: 0.933
Source: Synthetic test set: 16 documents, 104 passages, 45 queries. MRR@10 rose the same way, from 0.824 to 0.859 to 0.909.

### Security by default

- Passwords hashed with argon2id; sessions in HttpOnly cookies with the __Host- prefix and a CSRF header on every change.
- Two-step verification with an authenticator app and backup codes; Google sign-in and per-company single sign-on.
- Sign-in attempts rate limited per address, with a lockout after repeated failures.
- Audit and usage tables are append-only at the database level, and outbound requests pass a guard against server-side request forgery.
- Error messages come from error codes in two languages; raw server messages are never shown to users.

## Results and status

Spead AI Pro has been in **pilot since October 2026**. The workspace was demonstrated to the tender and contract team with fictional demo cases, and the review form, quote checking and package Q&A are the core of the pilot. The pilot has no published usage or time-saving figures yet, so this page does not claim any.

Quality is guarded in code. 99 API test files run on an in-memory database that holds two companies, so a tenant leak shows up as a failure. Playwright suites drive the real web app against a real local API without mocks, and the grader scores filled review forms against answer keys. In production the product runs on a Linux server behind a CDN, the document editor runs in its own rootless container, the assistant runtime listens on the loopback interface only, backups are encrypted daily and every migration is tested on a copy before release.

**At a glance**
- Client: Tender and contract team, EPCC Division, PT Wijaya Karya (Persero) Tbk
- Product: Spead AI, deployed as Spead AI Pro
- Core job: Tender document review form with checked quotes, and cited Q&A
- Quote statuses: 6
- Languages: Indonesian and English
- Status: Pilot since October 2026

[Spead AI Pro showcase on GitHub](https://github.com/nugrahalabib/spead-pro-wika-showcase): The business case, a product tour, the reader and quote checker, and the developer notes, on synthetic data. The source code stays private.

**Reviewing contracts or policies by hand?** Spead AI reads your documents inside your own workspace, cites every answer and lets people approve every action.

Source: https://nugrahalabib.com/work/spead-ai-pro-wika
Author: Nugraha Labib Mujaddid (https://nugrahalabib.com)
Published: 2026-11-27. Updated: 2026-11-29.
