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 →
30+
Wiki guides
22
Workflow contracts
8
Substrate pieces
4
NS expansion areas

Start here — if you’re new

Four guides · pinned for first-day reading

If you’ve never touched the platform before, read these four in order. They’re the floor — 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.

The canonical worked example. Vendor cost changes → recompute every bid line that uses that ingredient → propose new NS price levels.

Mixedflow

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

Queued R585flow

Inbound quote request → pull catalog → apply pricing cascade → draft HTML quote.

Mixedflow

Operator-initiated draft quote — pick items, pricing tier, terms; HITL approve before send.

Queued R585flow

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

Queued R585flow

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

Queued R585flow

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

Queued R585flow

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

Queued R585flow

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

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.

REALflow

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

REALflow

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

REAL

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

Queued R585flow

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

Queued R585flow

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

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.

Canonical example — ingredient cost moves, bid lines recompute, NS gets new price levels.

Mixedflow

Inbound quote → catalog → pricing cascade → HTML quote draft.

Mixedflow

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

Queued R585flow

Bids

Inbound RFPs · amendments · awards · eligibility

The K-12 + USDA + NYC schools bid pipeline is where revenue starts. Amendment arrives, we diff and respond; award lands, we propagate; quarterly we refresh eligibility.

Operator-initiated quote — pick items, terms, HITL approve before send.

Queued R585flow

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.

Queued R585flow

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

Queued R585flow

Inbound quote → pricing cascade → HTML quote draft → HITL approve to send.

Mixedflow

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

REALflow

NetSuite expansion

4 lifecycle areas · 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.

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.

REALflow

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

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.

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.

Queued R585flow

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

Queued R585flow

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

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.

Queued R585flow