GFS Operating System Wiki · Round 584 · Plain-English Home

GFS Operating System Wiki

How the platform works, in plain English. Every workflow, every piece of substrate, every NS expansion area — written the way you’d hand it to a new team member walking in cold. This is the full home, hub, and operating system for the company.

View flow diagram gallery →
32
Wiki guides
New sections each (R586)
22
Workflow contracts
8
Substrate pieces
4
NS expansion areas

Start here — if you’re new

Five guides · pinned for first-day reading · integration view at top

If you’ve never touched the platform before, read these in order. They’re the floor — how the 3 transaction lifecycles fit together, how the system records what happens, how you approve things, the canonical worked example, and how the AI flags at-risk accounts.

Workflows

All 22 v2 contracts · AI proposes, admin approves

Each workflow is a contract. AI plans the steps, gathers evidence, drafts an action; you approve. Every card links to the plain-English wiki and the flow diagram.

Substrate detects something off (margin, AR, ops) → triage → propose action → HITL queue.

R586·4×Queued R585flow

AR aging buckets → propose dunning, calls, holds, statements per customer. Reads like a finance ops playbook.

R586·4×Mixedflow

5 mailboxes → classify intent → route to the right workflow or shelve as FYI.

R586·4×Queued R585flow

Audit item records for completeness (UOMs, costs, allergens, NS parity); push fixes back.

R586·4×Queued R585flow

Per-customer/brand margin walk. Flag slips, propose price moves or vendor renegotiation.

R586·4×Queued R585flow

Full lifecycle: spec sheet → BOM → ingredient mapping → NS item record → first PO.

R586·4×Queued R585flow

Inbound new account → credit check → NS customer record → tier assignment → kickoff comms.

R586·4×Queued R585flow

Trigger conditions (AR, credit, compliance) → propose hold → notify CSM + customer.

R586·4×Queued R585flow

FIFO drawdown for USDA barrel cheddar lots — commit to a customer order, update inventory.

R586·4×Queued R585flow

Vendor sends a cost change → diff items → propose downstream price/margin moves.

R586·4×Mixedflow

Substrate

The runtime under every workflow

Workflows don’t live by themselves. The substrate is what makes them work: a runner, a ledger that records every state change, the knowledge corpus that gives the AI context, and the HITL lifecycle that gates every write.

Append-only CDC. Every meaningful state change writes an event; subscribers drain; audits replay.

R586·4×REALflow

AR slip + order cadence + sentiment + margin → leading-indicator risk score per customer.

R586·4×REALflow

3,360 chunks of docs, ADRs, runbooks, and historical decisions. The AI’s long-term memory.

R586·4×REAL

executeWorkflowContract — the one entrypoint that runs every v2 contract end-to-end.

R586·4×Queued R585flow

proposed_actions state machine. Every AI write parks here before NS push.

R586·4×Queued R585flow

The end-to-end approval gate. Preview, confirm, push, log. The standing rule for every write.

R586·4×REALflow

Pricing

Cost-in, price-out · the pillar that touches everything

Pricing is the spine. Vendor costs come in, bid lines and customer quotes go out, margin gets reviewed monthly, and the school-year roll captures it all once a year.

Cost change inbound → diff against current → cascade to downstream prices.

R586·4×Mixedflow

Per-customer/brand walk. Flag slips, propose price moves or vendor renegotiation.

R586·4×Queued R585flow

SY rollover — every K-12 contract, every July 1, with new ingredient costs locked in.

R586·4×Queued R585flow

Bids

Consolidated into the Bid Center pillar (R597)

Bid amendments, awards, quarterly eligibility refresh, customer quotes, and draft quotes used to be separate workflows. R597 collapsed them into the unified Bid Center pillar — one place for the full bids + price quotes + straight-line process.

Pillar overview — bids, price quotes, July rollover, customer-facing quote pages, all in one place.

REALR597flow

Inbound bid email (amendment, award, RFP) → classify → log_external_bid → propose actions.

REALR597flow

Operator drives Bid Center via chat tools: update_customer_pricing, bulk_update_prices_for_item, render_customer_quote, send_customer_quote_email.

REALR597flow

SY2627 version bumps, diff layer, daily-digest cron, eligibility refresh — replaces the quarterly refresh workflow.

REALR597flow

Customer

Onboard · quote · dispute · health · hold

The customer lifecycle in five doors: bringing them on, quoting them, resolving disputes, watching for churn, and pulling the brake when AR or compliance demands it.

Inbound new account → credit check → NS record → tier assignment → kickoff comms.

R586·4×Queued R585flow

Dispute lands → gather evidence → propose credit memo or hold.

R586·4×Queued R585flow

Leading-indicator scoring: AR, cadence, sentiment, margin → risk score per customer.

R586·4×REALflow

NetSuite expansion

6 lifecycle areas (incl. SO master + 3 path subdocs) · system of record meets system of action

NetSuite is the system of record. D1 mirrors it for read; we push back via NS_PUSH_QUEUE. These guides cover the four NS object lifecycles we’re standing up next: work orders, assembly builds, inventory reconciliation, sales orders.

High-altitude master. 2 paths: from SO (preserves SO↔WO link, Finance handoff) or inventory build (standalone). WO PO# field TBD pending Mike.

R586·4×R593 masterflow

WO created FROM SO. Preserves SO↔WO link. Assembly Build → FG → SO fulfilled → ★ Finance handoff. WO PO# field TBD.

R586·4×R593 pathflow

Standalone WO for stock builds (reorder / forecast / bid pre-build / USDA / R&D). No customer side. FG remains available for future SOs.

R586·4×R593 pathflow

BOM → build transaction → component consumption → finished-good inventory.

R586·4×Queued R585flow

High-altitude master. Dispatches into 3 path sub-contracts. Customer PO# threading across the whole chain.

R586·4×R592 masterflow

Fulfill from stock. Reserve → pick → pack → ship → Finance. Field-level depth.

R586·4×R592 pathflow

Work Order FROM SO → BOM → build → FG → ship. WO PO# field TBD.

R586·4×R592 pathflow

PO FROM SO + vendor side. Richest PO# threading: memo, tranid, initialtranid.

R586·4×R592 pathflow

Vendor side of the transaction. 2-path dispatcher: SO-connected drop ship OR inventory / assembly build need. Universal ★ Finance handoff after Item Receipt.

R586·4×R593 masterflow

PO created FROM SO. Drop ship + customer-specific. Customer PO# threads on PO.memo + VendBill memo/tranid/initialtranid.

R586·4×R593 pathflow

Replenishment / assembly components / packaging / general purchasing. No SO link, no PO# thread. Dock receives, inventory credited at location.

R586·4×R593 pathflow

Side-step on SO + dropship PO. Classifies LTL / FTL / parcel / dropship / freight-collect, estimates cost, flags for logistics. PO# threads to BOL.

R586·4×R594 checkflow

7-stage workflow for the logistics team: review → carrier → pickup → BOL → tracking → verify +24h → verify +7d (POD). Issue escalation paths.

R586·4×R594 workflowflow

3-section team dashboard: open SOs / open POs / open WOs. NS Suitelet (customscript_gfs_open_orders) + Pages mirror /open-orders.html. HITL approve / hold / escalate inline. Customer PO# threads.

R586·4×R595 Suiteletflow

4th pillar dispatcher. 3 paths converge on the customer pricing build · quote · NS push lifecycle. Bridges annual NS pricing windows.

R586·4×Wave Z masterflow

Inbound RFP / amendment / Q&A → classify → extract → HITL triage → pipeline. bids@ai-globalfoodsolutions.co.

R586·4×Wave Z pathflow

Operator drives BC live via chat tools. 11 skill workflows. HITL on every write.

R586·4×Wave Z pathflow

Annual school-year roll · rebuild regional sheets · version bump · NS push · reset readiness. Target 2026-07-01.

R586·4×Wave Z pathflow

5th pillar. Per-customer learned templates. 9 extraction strategies (4 full / 2 partial / 3 stub). Dispatches into 3 lane paths.

R586·4×Wave BB masterflow

First use case. Customer PO → tag fields against learned template → SO draft → HITL → NS push. Driscoll seed live.

R586·4×Wave BB pathflow

Vendor Certificate of Analysis → tag spec fields → match item spec sheet → flag deviations → compliance record.

R586·4×Wave BB pathflow

Inbound RFP / amendment → tag line items, terms, deadlines → merge into Bid Center pipeline. Bridges DT ↔ BC.

R586·4×Wave BB pathflow

Memory + AI

How the system learns · how the AI gets context

The AI isn’t one model — it’s the council, the knowledge corpus, the event ledger, and the patterns we’ve trained over time. These three explain how memory and AI fit together.

The short-term memory. Every state change is recorded so future me knows what past me did.

R586·4×REALflow

3,360 chunks of docs, ADRs, runbooks, decisions. The long-term memory the council retrieves from.

R586·4×REAL

Security & HITL

The standing rules · every write goes through Mike

Three documents define the safety floor: the lifecycle of a proposed action, the standing approval rule, and the security invariant that no AI write reaches NS unattended.

Preview → confirm → push → log. The standing rule for every AI-proposed write.

R586·4×REALflow

The diagram of the standing rule: no AI write reaches NS without admin approval. Cross-link to flow gallery.

invariantopen

Items, specs & assemblies

Master data · BOMs · spec sheets · USDA

The product side of the business: every item, every spec sheet, every assembly BOM. These guides cover audit, new-item onboarding, spec deviations during bidding, and the USDA barrel-cheddar lot drawdown.

Audit every item record for completeness (UOMs, costs, allergens, NS parity); push fixes back.

R586·4×Queued R585flow

Spec sheet → BOM → ingredient mapping → NS item record → first PO.

R586·4×Queued R585flow

FIFO drawdown for USDA barrel cheddar — commit to a customer order, update inventory.

R586·4×Queued R585flow

Anomaly + triage

Detection · classification · routing

When the system spots something off — an anomaly in the substrate, an email that lands in an inbox, a batch of customers that need a heads-up — these are the workflows that triage and act.

Substrate-detected anomaly (margin, AR, ops) → triage → propose action → HITL queue.

R586·4×Queued R585flow

5 mailboxes → classify intent → route to the right workflow or shelve as FYI.

R586·4×Queued R585flow