Catalog
What Harborline already has in SK8, and what each system offers.
Existing datasets that match reuse, nothing synced twice
| Dataset | Source | Used by | Owner | Fresh |
|---|---|---|---|---|
| korber_orders | Körber WMS | Dock Scheduler | Warehouse systems | seconds |
| mg_loads | MercuryGate TMS | Dock Scheduler | Transportation systems | 2 min |
| sf_accounts | Salesforce | Claims Recovery | Salesforce admin | seconds |
| sf_cases | Salesforce | Claims Recovery | Salesforce admin | seconds |
Accounts
shipment-desk · data plan
Three ways to lay out the same app data. Chosen by Leah.
1 · Read in place
- Nothing new copied
- 4 reads and a join per screen
- No place for app-owned columns
- Carrier-cost rule on three datasets
2 · One wide table
- One read per screen
- Event history lost or row churn on every ping
- Customers' history screen needs it
3 · Shipments + events
- One row per PO, latest ETA on it
- Events kept 30 days, append only
- Fed from existing datasets: no new load on Körber, MercuryGate or Salesforce
- Home for app-owned and write-back columns
Decisions
- Where
- Cluster
ops_pg· databaseshipment_desk· Harborline's own Postgres - Key
po_number(unique in Körber across all DCs)- Freshness
- As fresh as each source: Körber and Salesforce seconds, MercuryGate 2 min, project44 live
- Authority
- MercuryGate owns the appointment. The app's request shows as pending until MercuryGate confirms.
Datasets
Every dataset in tenant harborline.
| Dataset | Substrate | Readiness | Schema | Access | Feeds |
|---|---|---|---|---|---|
| shipments | pg-default · ops_pg | Active | 20 fields | 3 roles | Shipment Desk |
| tracking_events | pg-default · ops_pg | Active | 7 fields | 3 roles | Shipment Desk |
| korber_orders | pg-default · wh_pg | Active | 24 fields | 2 roles | Dock Scheduler, shipments |
| mg_loads | pg-default · wh_pg | Active | 31 fields | 2 roles | Dock Scheduler, shipments |
| sf_accounts | pg-default · cs_pg | Active | 18 fields | 4 roles | Claims Recovery, shipments |
| sf_cases | pg-default · cs_pg | Active | 22 fields | 2 roles | Claims Recovery |
shipments
ops_pg › shipment_desk.public.shipments · key po_number · owner Leah K.
| Field | Type | Origin | From / to | Labels |
|---|---|---|---|---|
| po_number | STRING · key | source | korber_orders.po_num | |
| account_id | STRING | source | korber_orders.customer_id | |
| customer_name | STRING | source | sf_accounts.name, on account_id | |
| origin · destination | STRING | source | korber_orders.ship_from / ship_to | |
| pallets | INTEGER | source | korber_orders.pallet_count | |
| pick_status | STRING | source | korber_orders.status | |
| load_id · carrier | STRING | source | mg_loads.load_id / carrier_name | |
| carrier_cost | DECIMAL(10,2) | source | mg_loads.linehaul_cost | FINANCIAL |
| out_for_delivery | BOOLEAN | source | mg_loads.stop_status | |
| eta · last_carrier_update_at | TIMESTAMP | source | project44 tracking (latest) | |
| appointment_start · _end | TIMESTAMP | write-back | ⇄ MercuryGate appointment | |
| appointment_verified | ENUM | verified | MercuryGate: PENDING · CONFIRMED · REJECTED | |
| at_risk · risk_reason | BOOLEAN · STRING | app-owned | written by Shipment Desk | |
| coordinator_notified_at | TIMESTAMP | app-owned | written by Shipment Desk | |
| contact_email | STRING | source | sf_accounts.coordinator_email | PII_EMAIL |
Source fields refresh from their datasets. App-owned fields are kept when a source row changes or the dataset is reloaded. Write-back fields go to MercuryGate, and MercuryGate's answer lands in appointment_verified.
tracking_events append only · 30 days
shipments
Live rows, read through the SK8 gateway as a role.
Provisioned in ops_pg Done 14:26 · SK8 provisioner
| ✓ | CREATE DATABASE shipment_desk | 14:26:02 |
| ✓ | CREATE TABLE shipments (20 columns, key po_number) | 14:26:03 |
| ✓ | CREATE TABLE tracking_events (7 columns) · 30-day retention | 14:26:03 |
| ✓ | CREATE ROLE sk8_shipment_desk LOGIN · password kept by SK8 | 14:26:04 |
| ✓ | GRANT SELECT, INSERT, UPDATE ON both tables TO sk8_shipment_desk | 14:26:04 |
SK8 used the provisioning login Harborline's DBA set up once for ops_pg. Every statement is recorded.
As role customer-coordinator · Brightway Home Goods own account only · carrier_cost hidden
| po_number | to | carrier | eta | appointment | verified | at_risk |
|---|---|---|---|---|---|---|
| 4471 | Sacramento #12 | Sierra Freight | Tue 16:40 | Wed 08:00–10:00 | Confirmed 11:59 | Yes · ETA past window |
| 4476 | Fresno #3 | Sierra Freight | Tue 13:05 | Tue 13:00–15:00 | Confirmed | No |
| 4490 | Stockton DC | Coastline Haul | Wed 09:20 | Thu 07:00–09:00 | Pending | No |
| 4502 | Reno #4 | Coastline Haul | Wed 15:10 | Wed 14:00–16:00 | Confirmed | No |
Same read for the app's screens (POST /datasets/shipments/query) and for customers' AI assistants (query_dataset). The role decides rows and columns; the app adds no filter of its own.
Pipelines
What feeds shipments and tracking_events.
| Name | Template | Sync | Execution | Health |
|---|---|---|---|---|
| shipments · build | datasets → pg | CDC from 3 datasets | ⚡ Active | Healthy |
| tracking · project44 | p44-stream → pg | Stream | ⚡ Active | Healthy |
| appointments · write-back | pg → mercurygate | On change | ⚡ Active | Healthy |
shipments · build
Source datasets
Pipeline nodes
Sink
tracking · project44
Access
Checked by SK8 on every read and write, from the app, an agent or an AI assistant.
Grants on shipments and tracking_events
| Role | Rows | Read | Write |
|---|---|---|---|
| customer-coordinator customers + their AI assistants | account_id = caller.account_id | All but carrier_cost | appointment_start · _end |
| service-agent Harborline service team | All rows | All fields | appointment_start · _end |
| shipment-desk-app the app's own background jobs | All rows | All but contact_email masked to domain | at_risk · risk_reason · coordinator_notified_at |
Each field is written by one kind of role only: app-owned fields by the app, write-back fields by people, source fields by nobody.
Approvals for this app
| What | Owner | Status |
|---|---|---|
| Read korber_orders | Warehouse systems lead | Approved 14:05 |
| Read mg_loads, write appointments to MercuryGate | Transportation systems lead | Approved 14:22 |
| Read sf_accounts | Salesforce admin | Approved 14:09 |
| Connect project44, read tracking | Operations | Approved 13:40 |
Credentials
- App
- One SK8 API key per role. No database or MercuryGate password in the app.
- Database
- Login
sk8_shipment_deskonops_pg, created by SK8. Its password is generated and kept by SK8; nobody sees it.
Write-back · appointments
shipments.appointment_* → MercuryGate. MercuryGate decides; its answer comes back to the row.
Writer
Dataset
Sink
Answer
Recent write-backs
| Time | PO | Requested | By | MercuryGate |
|---|---|---|---|---|
| 11:58 | 4471 | Wed 08:00–10:00 | Brightway's AI assistant | Confirmed 11:59 |
| 11:20 | 4490 | Thu 07:00–09:00 | Service agent | Pending |
| 10:47 | 4415 | Tue 15:00–17:00 | Customer user, Northpeak | Rejected · load out for delivery |
On a rejection SK8 puts MercuryGate's appointment back in the row, and the app shows the reason. The rule "not once it's out for delivery" lives in MercuryGate and in the app, not in SK8.
Lineage · PO 4471
Where each value on the row came from, and who wrote it.
Systems
Datasets
shipments · 4471
Written by the app
shipments.at_risk on PO 4471
- Value
- true · "ETA 2h40m past window"
- Written by
- shipment-desk-app at 11:51, using eta and appointment it read at 11:50
- Logic
- In the Shipment Desk app (its own code). SK8 records which fields it read and what it wrote.
Audit log
Every read and write on shipments and tracking_events, allowed or not.
| Time | Caller | Role | Call | Result |
|---|---|---|---|---|
| 11:59 | MercuryGate | write-back | appointment 4471 confirmed | Applied |
| 11:58 | Brightway's AI assistant | customer-coordinator | update 4471 appointment → Wed 08:00 | Allowed · sent to MG |
| 11:52 | Shipment Desk | shipment-desk-app | update 4471 coordinator_notified_at | Allowed |
| 11:51 | Shipment Desk | shipment-desk-app | update 4471 at_risk = true | Allowed |
| 11:41 | Customer user, Northpeak Foods | customer-coordinator | query po_number = 4471 | 0 rows · other account |
| 11:33 | Customer user, Northpeak Foods | customer-coordinator | update 4390 at_risk | Denied · app-owned field |
| 10:02 | Carrier Scorecard (in build) | — | read carrier_cost | Waiting for owner |
Overview
Shipment Desk data, a week after launch.
Freshness
| Into shipments from | Behind source | Changes · 24 h | Health |
|---|---|---|---|
| korber_orders | 4 s | 3,912 | Healthy |
| mg_loads | 1 m 50 s | 1,377 | Healthy |
| sf_accounts | 6 s | 41 | Healthy |
| project44 | live | 1,284 | Healthy |
Reset reloads shipments from its sources and keeps every app-owned field.