# HC Platform

> One workspace for Human Capital in the EPCC Division of Wijaya Karya: certificates, letters, training, employee data, manning, SKPK points and a payroll check behind one sign-in, with an AI assistant for every account.

Expert certificates decide whether the EPCC Division of Wijaya Karya may enter a tender. They used to live in an Excel workbook whose expiry dates came from a fixed formula and whose document links pointed at one laptop, so a stale list could cost a bid. HC Platform replaced that workbook, and the ones around it, with one database for certificates, letters, training, employee records, manning, SKPK points and the monthly payroll check, where every change is written to an audit trail.

- Certificate status is computed from the expiry date each time a page is read, so the list cannot quietly go stale.
- Access is checked three times: at the edge, on every page, and inside every server action that changes data.
- Buffy, the HC assistant, reads data only through read-only tools and cites the page of the policy it used.

- 190/190 broken certificate links recovered from Excel
- 10 modules behind one sign-in
- 99% right page and phrase, 70 test questions

- Role: Lead AI Engineer, Digital Transformation
- Company: PT Wijaya Karya (Persero) Tbk
- Period: Since 2026
- Stack: Next.js 15, React 19, TypeScript, Tailwind 4, PostgreSQL, Prisma 7, NextAuth v5, Row level security, MCP, Nginx, PM2, GitHub Actions
- Showcase repo: GitHub: wika-hc-platform-showcase (https://github.com/nugrahalabib/wika-hc-platform-showcase)

## What it is and who uses it

HC Platform is the internal workspace of the Human Capital sub-division in the EPCC Division of PT Wijaya Karya (Persero) Tbk. HC operators, reviewers, project PICs and admins work in it every day. Behind **one sign-in** sit ten modules: Expert Certification (CertTrack), SKPK Points, Training and Development (DevTrack), Assignment Letters (TaskTrack), Employee Master Data, Employee and Unit Profiles, Workforce Availability, Development Analytics, Payroll Review, and Buff Productivity, a personal space with the HC assistant Buffy.

All of them share one database, so a person is recorded once and every module reads the same record. I design, build and lead the platform as Lead AI Engineer for digital transformation in the division: the product decisions, the code, the release path and the server it runs on.

*The workspace portal shows the ten modules a role may open, with Development Analytics still marked Beta. All screenshots on this page use invented demo data.*

*Needs Attention gathers what is due across modules, next to a Recent Activity feed with before and after values.*

*Who works in HC Platform*

| Role | What they do |
| --- | --- |
| HC Operator | Changes the data in the modules: certificates, letters, training and employee records. Every change is tied to the operator in the audit trail. |
| Reviewer | Reads the modules without any action that changes data. This is the default role of a new account. |
| Admin | Manages accounts and module access only, and cannot change certificate data, so account control and data changes stay in separate hands. |
| Certificate Observer | An account from another sub-division that sees the dashboard, register and tender matrix only. The audit trail, renewal flow and export controls are not rendered for it. |
| Project Observer | Sees training only for employees of the units the admin chose. The limit is applied on the server for every query. |
| Project PIC | Reads certificates, training and master data for one project and updates its manning and positions. |
| Project PIC | Sees certificates, training and master data only for the projects the admin assigned, column by column, and keeps the project manning plan from a Project Summary page. |

## The problem: workbooks that no longer coped

SKK and SERKOM certificates are a hard requirement for entering a tender and a legal compliance item. Before HC Platform, the list of expert certificates lived in one Excel workbook with separate sheets for the data, a pivot, a dashboard, updates and SERKOM entries. The pivot was refreshed by hand, and the dashboard figures were text boxes pointing at old pivot cells, so a management report could miss certificates without anyone noticing.

The workbook computed expiry dates with a fixed formula: issue date plus 365 times five. That ignores leap years and the three year term of SERKOM certificates, so many expiry dates were off by a day and a few by much more. Most document links had been saved as file paths on one person's laptop, and **190 links were broken for everyone else**.

Tender work runs on short deadlines. The bid team asks HC for the certificate files of **10 to 20 experts about 30 minutes before the upload deadline**. If two experts are merged by mistake, or a certificate has quietly expired, the tender dossier is wrong, and there was no history of who changed which row.

Other HC work had the same shape. One tender team letter touched six tools (Word, a local Excel file, a Google Sheet, a Google Doc, Drive and an AI chat) and 18 manual copy steps. Training plans and realisations sat in a separate recap workbook, and employee master data in yet another.

*The old way and the new way*

| Before | With HC Platform |
| --- | --- |
| Certificate status came from a workbook formula | Status is computed from the expiry date every time a page is read |
| Scans linked to files on one laptop | Files uploaded to the platform and served only after a session check |
| Tender dossier collected by hand before the deadline | Tender Matrix exports a recap workbook and a ZIP with one folder per person |
| No record of who changed a row | Every change is stored with its before and after values in the audit trail |
| Six tools and 18 copy steps for one tender letter | Memo in, team checked against the HCMS pull, Word letter generated (target: three hand-offs and one tool, not yet measured) |
| Training recap in a separate workbook | One course dictionary feeding plan, calendar, realisation and a CV export |
| Employee master data in spreadsheets | Employee Master Data with a position map, dashboards and a change history that can be reverted |
| Manning schedule in a standalone HTML file | Ranked candidates per position, monthly manning per project and plan revisions |
| SKPK points refreshed by a laptop program and a shared Excel | A web routine drives the laptop check, writes the Excel from the server and checks it daily |
| Monthly salary differences hunted in a comparison workbook | A review desk with 34 rules that compares the SAP pull and never writes to SAP |

## The work, role by role

The certificate is the heart of the platform, and its life follows one path: it is loaded, watched, renewed before it lapses and, when a tender comes, packed into a dossier. Letters, training and employee records hang off the same person record.

**A certificate in HC Platform** (Every step is written to the audit trail with its before and after values.)
1. Load: Excel import or the edit form
2. Watch: Expiring in 30, 60 and 90 days
3. Renew: Stages, owner and target date
4. Tender dossier: Matrix, recap and ZIP package
5. Team letter: Memo checked, Word letter issued
6. Audit: Who did what, and when

**A week in HC Platform**
1. Load or record certificates (HC Operator): Uploads the certificate workbook; the browser parses it, the server recomputes the difference and only new or changed rows are written.
2. Watch expiry (system): Computes every status from the expiry date and shows what expires within 30, 60 and 90 days.
3. Run the renewal (HC Operator): Moves each expiring certificate through collecting documents, submitted, assessment and completed.
4. Build a tender dossier (HC Operator): Filters by field and qualification in the Tender Matrix, ticks the experts and exports the recap and the files.
5. Form a tender team (HC Operator): Drops the team memo on the tender desk; each name and NIP is checked and only doubtful rows wait for a decision.
6. Issue the assignment letter (HC Operator): Generates the Word letter from the official template, waits for the number, then uploads the signed PDF.
7. Plan and realise training (Training PIC): Plans courses from the dictionary, checks the calendar, then marks an activity as done with its attendees.
8. Keep employee records (master data PIC): Edits positions on the position map, imports updates through a wizard and can undo a change from its history.
9. Ask Buffy (HC Operator): Asks in chat; Buffy answers from read-only data tools and cites the page of the policy document it used.
10. Review (Reviewer or Observer): Opens the same dashboards and lists in read-only mode, limited to the modules and units the admin allowed.

## Inside the product

### Expert Certification: the certificates that decide tenders

Expert Certification (formerly CertTrack) replaced the certificate workbook. Its dashboard tells the HC team what expires within 30, 60 and 90 days and what has already expired, and its register holds every SKK, SERKOM and PII certificate with issuer, qualification, dates and document links. **Status is never typed.**

**Dashboard**
Cards for total, active, expiring within 90 days and expired certificates, split by SKK, SERKOM and PII. Needs Attention cards jump straight to renewals or to the expired list.

*CertTrack overview with Needs Attention cards, status totals and the split by type.*

**Register**
The register sorts and filters by field, type, qualification and status, exports to Excel and opens the import. The edit form validates the same way in the browser and on the server; its expiry buttons add three years for SERKOM and five for SKK and PII, with leap days handled.

*Certificate Register: search, filters, Excel import and export, an expired row highlighted.*

**Tender Matrix**
When the bid team needs experts, HC sets the criteria, ticks the people and downloads a package. Eligibility is computed at the moment of the query, and expired certificates are left out on their own. The ZIP holds one folder per person plus a manifest that lists every file that failed, with its link, so the archive never looks complete when it is not.

*Tender Matrix filtered to the HSE field, with a package name and three experts selected.*

**Renewals**
The renewal board watches a window of 90, 180 or 365 days built from end dates, so certificates nobody has touched still appear. Stages run from not started through collecting documents, submitted to LPJK and in assessment to completed; stage, owner and target date save on change and go to the audit trail.

*Renewal board with stage totals and an editable stage and person in charge on every row.*

**Excel import**
HC still receives updates as Excel files, so the import is a guided wizard: choose the target, download the current data or a blank template, upload, validate, done. Rows are matched on NIP, certificate name and registration number, rows missing from the file are reported and never deleted, and uploading an unchanged download produces no changes.

*Import review: new and changed rows next to current values; missing certificates are reported, not deleted.*

### Assignment Letters: letters and the tender desk

Assignment Letters (formerly TaskTrack) produces the official assignment letters of the division: tender teams, preparation teams, personnel secondment, clinic and auditor duty, and 5R PICs. Each letter type has its own workbench, history and recap, and Word files are filled from tagged templates. Assignees are stored as a **snapshot** of NIP, name, position and unit, so an issued letter does not change when master data does.

*A demo team memo read in the browser and checked against the HCMS pull.*

### From memo to letter

- **Memo in**: a Word file, an Excel file or a text PDF, read in the browser. Scanned PDFs are refused.
- **Every row labelled**: matched, name adjusted, NIP of someone else, NIP not found or duplicate.
- **A person decides**: only doubtful rows wait, and the system never picks a person on its own.
- **Signed PDF back**: its number, date and NIPs are matched to the waiting letter, and mismatches must be decided.

### Training and Development: from catalogue to CV

One catalogue is the only source of course names, with old names kept as aliases, a mandatory flag and target job levels from BOD-1 to BOD-5. An activity is planned, appears in the calendar, and once held is marked as done with the people who attended. Dates are stored as a list of ranges, because classes are often split over separate days. Each employee gets a training history, a mandatory checklist that follows their job level, and a CV to download as PDF, Word or Excel.

### Employee Master Data: one record per person

Employee Master Data (formerly Database EPCC) holds the master record of every employee in the division: identity, positions, units, contracts, performance and assessments. One dataset feeds certification, training and assignment letters. The overview lists what needs attention, such as fixed-term contracts ending within 30 days, expired decrees and assessments, and retirements, and HC dashboards cover demographics, performance, the 9-box talent pool and assessments, with a presentation mode.

The employee list and the position map are editable grids: click a cell, type, press Enter. Every change goes through **one write path** that keeps a before and after record and can be undone. After a rework, the Position Map page shrank from 5.6 MB to 1 MB and its server time from 1.9 s to 0.6 s.

### Employee and Unit Profiles: readiness at a glance

One page per person and one per project, built from the master data plus certificates, training, assignments and availability. The **Talent Card** prints with the sections HC chooses and a live A4 preview, **Comparison** sets up to four candidates side by side and records which one was chosen and why, and the **Unit Profile** shows key positions with their successors, milestones and HR risks.

### Workforce Availability and the project summary

The pool of experts for staffing projects, measured against a cut-off date: who is available now, who frees up within three months, who is not available. HC fills the 16 standard positions of a planned project from **ranked candidates**, keeps **planned and actual manning** per project month by month, and works through a cleanup queue before anything is written. A **Project PIC** signs in to a portal that opens with their own projects and follows each one on a Project Summary page with its follow-ups and plan revisions.

### SKPK Points: the two-weekly update

Certified experts need SKPK points to keep their SKK valid, and the division keeps them in a shared holding Excel that must be updated every two weeks. The check runs on a **paired office laptop**, because the government SIKI site does not accept the server; the operator reviews the results on the web, approves the write, and the server writes the Excel and reads every cell back. Remaining findings go to a follow-up table, and a daily check catches edits typed straight into the Excel.

### Development Analytics, in Beta

The division's development formula as a working tool. HC staff score 19 inputs on a 0 to 4 scale, once for the division and then only where a unit or a person differs, and eight formulas give people productivity and development levels, a unit map, follow-up actions and a printable report. Every number on the **formula board** explains where it came from and which input would raise it most. It runs as a Beta in its own tables and is not a basis for staffing decisions.

### Payroll Review: a monthly check desk

SAP stays the payroll engine, and this module **never writes to it**. Each month HC loads the SAP pull; the module compares it with last month, the master data and **34 rules**, and lists findings per person. The team decides each one, fixes things in SAP, uploads again as a new round where solved findings close on their own, records posting and budget status, and then closes the period. ID card, tax and bank numbers leave the browser only as fingerprints. All figures on these screens are invented.

### Buffy: the HC assistant

Each account the admin allows gets its own assistant called Buffy inside Buff Productivity, a personal space with tasks, agenda, notes and a knowledge base. Buffy answers questions about HC data through tools that run inside the app with the same access checks as the pages, so it can see only what the account can already open, and it cannot change module data. For policy questions it searches the uploaded documents and cites the page. Reminders and a morning briefing can reach the web, Telegram, WhatsApp and browser push.

*Buff Productivity home: the request box and the desk for today.*

Tasks come from personal work and from the modules, and move across planned, in progress, waiting and done.

*Buffy answering from the CertTrack tool. Local run without an AI model: the reply text comes from the test gateway in the code, while the tool call and the data are the app's own.*

Chat streams the answer and shows its source module and the time of the data.

*Personal task board with cards tagged by source module, subtasks, stakeholders and due dates.*

Every morning Buffy posts a **briefing** with yesterday's progress, today's priorities, overdue work and the module follow-ups the person is responsible for. Every afternoon it asks how far the day got, and that answer opens the next briefing. Managers get a **team view** with each staff member's follow-ups and work log.

### Access, organisation and the developer space

Admins set Edit, View or Hidden per account and module. That map can only narrow what a role allows, and it is read from the database on every request. The organisation tree holds Wijaya Karya, its divisions and units; EPCC is active and other divisions are created inactive until isolation is in place. HC Platform itself is built from DevTask, an issue board inside a separate developer space, where keys like HC-12 tie each issue to its branch, pull request and release.

### Problem reports and DevTask

Any account can report a problem or suggest an improvement from any page, with the page and device recorded on their own. Reports land in the inbox of **DevTask**, the issue board the platform is built with, where the developer answers in a polite service desk conversation kept apart from the team's notes. Once the change is live, the reporter reads what changed and rates the handling.

## How it is built

HC Platform is a modular monolith: one Next.js 15 application with React 19, TypeScript and Tailwind 4 serves every module, with server components for reads, server actions for writes and route handlers for uploads, downloads, chat streaming and the MCP endpoint. Prisma 7 talks to PostgreSQL, and the schema holds 152 data models. Each module has its own folder of pages, components and business rules, and is switched on by a flag, so a module can ship dark and open after HC has tested it.

**Decisions that shaped it**
- Status computed, never stored: A status computed from the expiry date on every read cannot go stale, which was the core failure of the old dashboard.
- Never merge people by name: A wrong merge of two experts corrupts a tender dossier, which is worse than a duplicate HC can see and fix.
- Imports never delete: A row missing from a file may be an editing slip, so the platform reports it instead of silently removing a certificate.
- Snapshots in letters: A letter keeps the position and unit a person held on the day it was issued, even after the master data changes.
- Three access checks: Edge middleware protects every route by default, every page checks the session and module map, and every write goes through a guard that also writes the audit entry.
- Assistant behind read-only tools: One agent per account calls MCP tools that run inside the app on loopback, each registered only if the account may open the matching page.
- Row level security underneath: Application filters can be forgotten in new code; policies in PostgreSQL keep divisions apart even when a query misses the filter.
- Files kept out of reach: Uploads live outside the public folder under system names and are served with nosniff, a sandbox content security policy and no-store.

### Search that cites its page

For policy questions, a separate search service combines keyword search and embedding search with reranking, and returns evidence passages with page numbers before the model answers. The citations in the answer are checked against that evidence afterwards, and an answer that cannot be verified carries a warning. On a test of 70 questions plus 10 negative ones it found the right page and phrase 99 to 100 percent of the time, where the previous engine scored 67 and 64 percent.

**Shipping a change**
1. Start from an issue: Work starts from a DevTask issue such as HC-12, on a branch and a pull request whose title carries the key.
2. Continuous integration: CI runs typecheck, lint and the tests, migrates an empty database and compares it with the schema, and runs cross-division leak checks, including a negative test with deliberate leaks the scanner must catch.
3. Staging: After a green CI on main, staging with a masked copy of the data deploys automatically and the issue moves to Deploy Staging.
4. Human QA: A person tests on staging and moves the issue to QA passed; the server refuses that move from tools.
5. Release: A release button deploys to production only when CI is green and the QA gate passes, then checks the health endpoint.

## Results and status

HC Platform is live behind a sign-in, in Indonesian and English. SKPK Points, Employee Master Data with the profiles, Workforce Availability, Buffy and DevTask joined the certificate, letter and training modules in October and November 2026; Development Analytics runs as a Beta, and the Payroll Review desk was added in November. The first move out of Excel recovered **190 of 190 broken certificate links**, and the first restore drill brought the data back into a new database in about four minutes.

- **5.6 to 1 MB** Position Map page after the rework
- **about 4 min** to restore the data into a new database (first backup drill, 20 Nov 2026)
- **6 h** recovery point for the database (24 h for uploaded files)

Daily database and file backups stay on the server, and encrypted copies go to a separate server every six hours for the database and daily for files. The next step is a multi-division model: one application and one database for several Wijaya Karya divisions, each isolated from the others. The organisation tree, memberships, division scoped roles and row level security policies are already in the schema behind switches that are off.

**Measured versus planned**
The 190 links, the search test, the page size and the restore time are measured. The Assignment Letters goal of three hand-offs and one tool per tender letter is a target that has not been measured yet, and as of 23 November 2026 the pilot division of the multi-division model had not run on staging or production.

**At a glance**
- Client: Human Capital, EPCC Division, PT Wijaya Karya (Persero) Tbk
- Users: HC operators, reviewers, admins and observers
- Modules: 10 behind one sign-in
- Languages: Indonesian and English
- Data: One PostgreSQL database, row level security ready per division
- Status: Live; multi-division model in preparation

[HC Platform showcase on GitHub](https://github.com/nugrahalabib/wika-hc-platform-showcase): The business case, a product tour and the developer notes, with screenshots on demo data. The source code itself stays private.

**Running HR or compliance on spreadsheets?** I build internal systems where every number is computed, every change is traceable and the assistant sees only what you may see.

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