{
  "_comment": "R596 micro-manifest for admin-dashboard prose counters. Single source of truth for inline numbers. The large system-manifest.json (~1MB) is the legacy schema dump; this file is the rolled-up dashboard SOT. R597: added bid_center block (Agent O).",
  "_canonical_path": "/data/system-manifest.json (renamed from .r596 in R597; .r596 kept as alias for backward compat)",
  "generated_at": "2026-05-26",
  "round": "R597",
  "counts": {
    "workflow_contracts_v2": 33,
    "wikis": 44,
    "diagrams_total": 138,
    "diagrams_workflow": 26,
    "diagrams_archify": 27,
    "diagrams_substrate": 4,
    "diagrams_system": 11,
    "diagrams_pipelines": 8,
    "diagrams_canvases": 3,
    "diagrams_ns_paths": 11,
    "crons": 7,
    "chat_tools": 50,
    "chat_roles": 10,
    "d1_tables": 162,
    "d1_rows_approx": 311000,
    "adrs": 36,
    "migrations": 129,
    "knowledge_chunks": 3371,
    "worker_endpoints": 229,
    "v10_audit_score": 87.1,
    "v10_audit_grade": "B",
    "bid_customers": 69,
    "bid_external_pipeline_count": 44,
    "bid_external_submitted": 30,
    "bid_external_pending_review": 3,
    "bid_reviews": 23,
    "bid_skill_workflows": 11,
    "bid_commercial_items": 127,
    "bid_commercial_brands": 8,
    "bid_commodity_items": 14,
    "bid_commodity_sections": 3,
    "bid_price_history_snapshots": 27,
    "data_tagger_templates_count": 1,
    "ns_field_taxonomy_count": 77,
    "data_tagger_strategies_total": 9,
    "data_tagger_strategies_full": 4,
    "data_tagger_strategies_partial": 2,
    "data_tagger_strategies_stub": 3
  },
  "bid_center": {
    "url": "https://gfs-pricing.pages.dev",
    "email_intake": "bids@ai-globalfoodsolutions.co",
    "architecture_doc": "docs/BID_CENTER_ARCHITECTURE.md",
    "source_root": "GFS-NetSuite-Cloudflare/source-documents/Customer-Pricing",
    "context": "4th pillar alongside SO / PO / WO. Bridges annual NS pricing windows.",
    "pages_routes": [
      {"slug": "", "label": "Dashboard", "url": "https://gfs-pricing.pages.dev/"},
      {"slug": "customers", "label": "Customers", "url": "https://gfs-pricing.pages.dev/customers"},
      {"slug": "bids", "label": "Bids & Pipeline", "url": "https://gfs-pricing.pages.dev/bids"},
      {"slug": "items", "label": "Item Catalog", "url": "https://gfs-pricing.pages.dev/items"},
      {"slug": "price-matrix", "label": "Price Matrix", "url": "https://gfs-pricing.pages.dev/price-matrix"},
      {"slug": "regional", "label": "Regional Pricing", "url": "https://gfs-pricing.pages.dev/regional"},
      {"slug": "coverage", "label": "Coverage Map", "url": "https://gfs-pricing.pages.dev/coverage"},
      {"slug": "compare", "label": "Quote Compare", "url": "https://gfs-pricing.pages.dev/compare"}
    ],
    "skill_workflows": [
      {"id": "add-update-customer-pricing", "label": "Add / update customer pricing", "source": "Prompts/ADD_UPDATE_CUSTOMER_PRICING.md"},
      {"id": "add-update-item", "label": "Add / update item", "source": "Prompts/ADD_UPDATE_ITEM.md"},
      {"id": "archive-customer", "label": "Archive customer", "source": "Prompts/ARCHIVE_CUSTOMER.md"},
      {"id": "bid-pipeline", "label": "Bid pipeline", "source": "Prompts/BID_PIPELINE.md"},
      {"id": "compare-customer-quotes", "label": "Compare customer quotes", "source": "Prompts/COMPARE_CUSTOMER_QUOTES.md"},
      {"id": "create-new-customer", "label": "Create new customer", "source": "Prompts/CREATE_NEW_CUSTOMER.md"},
      {"id": "fill-regional-prices", "label": "Fill regional prices", "source": "Prompts/FILL_REGIONAL_PRICES.md"},
      {"id": "log-external-bid", "label": "Log external bid", "source": "Prompts/LOG_EXTERNAL_BID.md"},
      {"id": "prepare-next-school-year", "label": "Prepare next school year", "source": "Prompts/PREPARE_NEXT_SCHOOL_YEAR.md"},
      {"id": "rebuild-regional-sheets", "label": "Rebuild regional sheets", "source": "Prompts/REBUILD_REGIONAL_SHEETS.md"},
      {"id": "system-health-check", "label": "System health check", "source": "Prompts/SYSTEM_HEALTH_CHECK.md"}
    ],
    "reviews": [
      "Anderson_County_ACS_SY2627", "Bledsoe_County_BOE_SY2627", "BT-26SZ_School_Nutrition_SY2627",
      "Canteen_NM_SY2627", "CES_NM_K12_SY2627", "Chesterfield_County_CCPS_SY2627",
      "DCAS_ACS_NYC_SY2627", "DeKalb_County_DCSD_SY2627", "JerseyCity_Food_Service_SY2627",
      "Lamar_County_SNP_SY2627", "MeatGrocery_Driscoll_Ace_JAMAC_SY2627", "MRPC_2026-02_Commercial_SY2627",
      "N_Tx_Sysco_MRPC_SY2627", "Nanuet_Master_Groceries_SY2627", "NMSNC_NM_SY2627",
      "Oneida_SSD_SY2627", "Region5_COOP_Labatt_SY2627", "RFB-COOP-29-2026_Food_Grocery_SY2627",
      "SanAngelo_RFP27-16_SY2627", "ScottCounty_TN_SY2627", "TX_SPA_COOP_Supplemental_SY2627",
      "Wappingers_CSD_Driscoll_SY2627"
    ]
  },
  "data_tagger": {
    "_round": "R598 · BC-2 cross-linking",
    "context": "5th pillar · per-customer learned templates for inbound docs. First use case: Customer PO → SO draft (Driscoll seed).",
    "ui": "/data-tagger.html",
    "architecture_doc": "docs/DATA_TAGGER_ARCHITECTURE.md",
    "adr": "ADR-038",
    "templates_count": 1,
    "templates_seed": ["Driscoll"],
    "ns_field_taxonomy_count": 77,
    "strategies": {
      "total": 9,
      "full": 4,
      "partial": 2,
      "stub": 3
    },
    "paths": [
      {"slug": "ns-data-tagger-master", "label": "Master (dispatcher)"},
      {"slug": "ns-data-tagger-path-1-customer-po-to-so", "label": "Path 1 · Customer PO → SO"},
      {"slug": "ns-data-tagger-path-2-vendor-coa-to-compliance", "label": "Path 2 · Vendor COA → compliance"},
      {"slug": "ns-data-tagger-path-3-bid-rfp-to-pipeline", "label": "Path 3 · RFP → Bid Center pipeline"}
    ],
    "chat_tools": [
      "data_tagger_learn_template",
      "data_tagger_extract",
      "data_tagger_review_pending",
      "data_tagger_promote_to_so",
      "data_tagger_field_taxonomy_lookup"
    ],
    "sli_endpoint": "/api/bid-center/data-tagger-pending",
    "sli_endpoint_status_tbd": "TBD — endpoint may not be deployed yet; SLI poller degrades gracefully to '—' / unknown dot."
  },
  "pages_projects": [
    {"id": "gfs-flows", "url": "https://gfs-flows.pages.dev", "desc": "Flow diagrams + 44 wikis · 138 surfaces"},
    {"id": "gfs-netsuite", "url": "https://gfs-netsuite.pages.dev", "desc": "Entity pages (customer/vendor/item/bid/workflow)"},
    {"id": "gfs-system-guide", "url": "https://gfs-system-guide.pages.dev", "desc": "1,897-line system guide · ACTIVE reference"},
    {"id": "gfs-netsuite-tools", "url": "https://gfs-netsuite-tools.pages.dev", "desc": "60+ NS tools catalog"},
    {"id": "gfs-hub", "url": "https://gfs-hub.pages.dev", "desc": "Corporate hub v10.0"},
    {"id": "gfs-nycdoe-hub", "url": "https://gfs-nycdoe-hub.pages.dev", "desc": "NYC DOE B5875 bid hub · due 2026-06-03"},
    {"id": "gfs-design-v9", "url": "https://gfs-design-v9.pages.dev", "desc": "Design v9 reference · live preview"},
    {"id": "gfs-pricing", "url": "https://gfs-pricing.pages.dev", "desc": "Bid Center · customer pricing + bid pipeline · 4th pillar"}
  ],
  "netsuite": {
    "account": "4656898",
    "_realm_base_tbd": "TBD — confirm with Mike. Default uses https://4656898.app.netsuite.com",
    "realm_base": "https://4656898.app.netsuite.com",
    "deep_links": [
      {"label": "NS login / dashboard", "path": "/app/center/card.nl"},
      {"label": "Records browser", "path": "/app/help/helpcenter.nl?fid=section_N3170154.html"},
      {"label": "Setup / Customization", "path": "/app/setup/account.nl"},
      {"label": "Saved Searches list", "path": "/app/common/search/searchlist.nl?cu=T"},
      {"label": "Workflow studio", "path": "/app/common/workflow/workflows.nl"},
      {"label": "Scripts management", "path": "/app/common/scripting/scriptlist.nl"},
      {"label": "File cabinet", "path": "/app/common/media/mediaitemfolders.nl"},
      {"label": "Customer list", "path": "/app/common/entity/custjoblist.nl"},
      {"label": "Vendor list", "path": "/app/common/entity/vendors.nl"},
      {"label": "Item list", "path": "/app/common/item/itemlist.nl"}
    ]
  },
  "cloudflare": {
    "_account_hash_tbd": "TBD — confirm with Mike. Placeholder uses generic /:account/ path",
    "account_path": "/",
    "deep_links": [
      {"label": "CF dashboard root", "path": "https://dash.cloudflare.com/"},
      {"label": "Workers list", "path": "https://dash.cloudflare.com/?to=/:account/workers"},
      {"label": "Pages projects", "path": "https://dash.cloudflare.com/?to=/:account/pages"},
      {"label": "D1 databases", "path": "https://dash.cloudflare.com/?to=/:account/workers/d1"},
      {"label": "R2 buckets", "path": "https://dash.cloudflare.com/?to=/:account/r2"},
      {"label": "KV namespaces", "path": "https://dash.cloudflare.com/?to=/:account/workers/kv/namespaces"},
      {"label": "Vectorize indexes", "path": "https://dash.cloudflare.com/?to=/:account/workers/vectorize"},
      {"label": "Queues", "path": "https://dash.cloudflare.com/?to=/:account/workers/queues"},
      {"label": "Workflows", "path": "https://dash.cloudflare.com/?to=/:account/workers/workflows"},
      {"label": "Email Routing", "path": "https://dash.cloudflare.com/?to=/:account/email"},
      {"label": "Browser Rendering", "path": "https://dash.cloudflare.com/?to=/:account/workers/browser-rendering"},
      {"label": "Logs / Tail / Analytics", "path": "https://dash.cloudflare.com/?to=/:account/workers/analytics"}
    ]
  },
  "ns_diagrams_r592_r595": [
    {"slug": "ns-freight-routing-check", "label": "NS freight routing check"},
    {"slug": "ns-logistics-review-flow", "label": "NS logistics review flow"},
    {"slug": "ns-open-orders-suitelet", "label": "NS open orders suitelet"},
    {"slug": "ns-sales-order-path-1-inventory", "label": "NS SO path 1 · inventory"},
    {"slug": "ns-sales-order-path-2-assembly", "label": "NS SO path 2 · assembly"},
    {"slug": "ns-sales-order-path-3-dropship", "label": "NS SO path 3 · dropship"},
    {"slug": "ns-purchase-order-path-1-sales-order-connected", "label": "NS PO path 1 · SO-connected"},
    {"slug": "ns-purchase-order-path-2-inventory-or-build", "label": "NS PO path 2 · inventory/build"},
    {"slug": "ns-work-order-path-1-from-sales-order", "label": "NS WO path 1 · from SO"},
    {"slug": "ns-work-order-path-2-inventory-build", "label": "NS WO path 2 · inventory build"},
    {"slug": "sales-purchase-work-order-integration", "label": "SO/PO/WO integration"}
  ],
  "sli_thresholds": {
    "hitl_depth":              {"green_max": 5,   "amber_max": 20,  "unit": "pending items"},
    "sync_staleness_min":      {"green_max": 2,   "amber_max": 10,  "unit": "minutes"},
    "error_rate_pct":          {"green_max": 0.5, "amber_max": 2.0, "unit": "% of requests"},
    "workflow_runs_min":       {"green_max_idle_min": 5, "amber_max_idle_min": 30, "unit": "minutes since last completion"},
    "ns_push_queue_depth":     {"green_max": 10,  "amber_max": 50,  "unit": "queued items"},
    "bid_inbound_pending":     {"green_max": 3,   "amber_max": 10,  "unit": "bids awaiting review"},
    "bid_overdue":             {"green_max": 0,   "amber_max": 3,   "unit": "external bids past decision_date"},
    "customers_stale":         {"green_max": 5,   "amber_max": 15,  "unit": "customers last_built > 30d OR v < SY current"},
    "july_rollover_readiness": {"target_date": "2026-07-01", "unit": "days until + % customers ready (v >= 1.0)"},
    "data_tagger_pending":     {"green_max": 3,   "amber_max": 10,  "unit": "data_tagger_extractions pending in last 24h", "endpoint": "/api/bid-center/data-tagger-pending", "endpoint_tbd": true}
  }
}
