# Graph Report - /home/jmax/hermes-dify-bridge  (2026-05-13)

## Corpus Check
- Corpus is ~2,994 words - fits in a single context window. You may not need a graph.

## Summary
- 41 nodes · 52 edges · 8 communities (6 shown, 2 thin omitted)
- Extraction: 92% EXTRACTED · 8% INFERRED · 0% AMBIGUOUS · INFERRED: 4 edges (avg confidence: 0.88)
- Token cost: 4,800 input · 1,850 output

## Community Hubs (Navigation)
- [[_COMMUNITY_Bamboo Properties & Revenue|Bamboo Properties & Revenue]]
- [[_COMMUNITY_FastAPI Core Models|FastAPI Core Models]]
- [[_COMMUNITY_Hermes-Dify Infrastructure|Hermes-Dify Infrastructure]]
- [[_COMMUNITY_Session & Request Flow|Session & Request Flow]]
- [[_COMMUNITY_CICO Daily Reports|CI/CO Daily Reports]]
- [[_COMMUNITY_Request Schema|Request Schema]]
- [[_COMMUNITY_Health Endpoint|Health Endpoint]]

## God Nodes (most connected - your core abstractions)
1. `STAFF_CONTEXT System Prompt` - 7 edges
2. `Check-in / Check-out Daily Report 4 May 2026` - 6 edges
3. `chat()` - 5 edges
4. `Bamboo Revenue Report April 2026` - 5 edges
5. `Societe Suites Hartamas` - 5 edges
6. `The Ooak Suites Mont Kiara` - 5 edges
7. `Laila — Bamboo Hospitality Internal Staff AI Assistant` - 5 edges
8. `POST /chat Endpoint` - 4 edges
9. `Bamboo Hospitality Group Sdn. Bhd.` - 4 edges
10. `run_hermes Async Function` - 3 edges

## Surprising Connections (you probably didn't know these)
- `Check-in / Check-out Daily Report 4 May 2026` --semantically_similar_to--> `Check-in / Check-out Daily Report PDF 4 May 2026`  [INFERRED] [semantically similar]
  hermes-dify-bridge/files/checkin_checkout_04may2026.html → hermes-dify-bridge/files/checkin_checkout_04may2026.pdf
- `CI/CO Report PDF 2026-05-04` --semantically_similar_to--> `Check-in / Check-out Daily Report 4 May 2026`  [INFERRED] [semantically similar]
  hermes-dify-bridge/files/CI_CO_Report_2026-05-04.pdf → hermes-dify-bridge/files/checkin_checkout_04may2026.html
- `Little Hotelier PMS Skill (lh_fetch / lh_revenue / lh_hk)` --references--> `Bamboo Revenue Report April 2026`  [INFERRED]
  hermes-dify-bridge/bridge.py → hermes-dify-bridge/graphify-out/converted/Bamboo_Revenue_April-2026_682b5f52.md
- `Little Hotelier PMS Skill (lh_fetch / lh_revenue / lh_hk)` --references--> `Check-in / Check-out Daily Report 4 May 2026`  [INFERRED]
  hermes-dify-bridge/bridge.py → hermes-dify-bridge/files/checkin_checkout_04may2026.html
- `The Ooak Suites C/I & C/O Section (4 May 2026)` --references--> `The Ooak Suites Mont Kiara`  [EXTRACTED]
  hermes-dify-bridge/files/checkin_checkout_04may2026.html → hermes-dify-bridge/bridge.py

## Hyperedges (group relationships)
- **Laila Hotel Data Pipeline: PMS Skill → Hermes → Bridge → Dify** — lh_pms_skill, bridge_run_hermes, bridge_chat, laila_persona [INFERRED 0.85]
- **Bamboo Property Reports: Societe & Ooak Revenue + CI/CO** — societe_suites_hartamas, ooak_suites_mont_kiara, bamboo_revenue_april2026, checkin_checkout_04may2026_html [EXTRACTED 0.95]
- **Session Continuity: load_map → run_hermes (resume) → get_latest_session_id → save_map** — bridge_load_map, bridge_run_hermes, bridge_get_latest_session_id, bridge_save_map [EXTRACTED 0.95]

## Communities (8 total, 2 thin omitted)

### Community 0 - "Bamboo Properties & Revenue"
Cohesion: 0.33
Nodes (10): Bamboo Hospitality Group Sdn. Bhd., Bamboo Revenue Report April 2026, The Ooak Suites Revenue Sheet — April 2026, Director Remarks Sheet — SST Rules & References, Societe Suites Hartamas Revenue Sheet — April 2026, SST Summary Sheet — April 2026, Societe Suites Hartamas C/I & C/O Section (4 May 2026), Laila — Bamboo Hospitality Internal Staff AI Assistant (+2 more)

### Community 1 - "FastAPI Core Models"
Cohesion: 0.33
Nodes (7): BaseModel, chat(), ChatRequest, get_latest_session_id(), load_map(), run_hermes(), save_map()

### Community 2 - "Hermes-Dify Infrastructure"
Cohesion: 0.25
Nodes (8): bamboo-email-api (Port 3001), Hermes-Dify Bridge FastAPI App, Static Files Directory (/files), STAFF_CONTEXT System Prompt, Bamboo Duty Roster Google Sheet, PM2 App: hermes-dify-bridge, Little Hotelier PMS Skill (lh_fetch / lh_revenue / lh_hk), Ruflo Memory Integration (Staff Context Recall)

### Community 3 - "Session & Request Flow"
Cohesion: 0.38
Nodes (7): POST /chat Endpoint, get_latest_session_id Async Function, Hermes CLI Binary, load_map Session Persistence Function, run_hermes Async Function, save_map Session Persistence Function, Session Map (conversation_id → hermes session_id)

### Community 4 - "CI/CO Daily Reports"
Cohesion: 0.5
Nodes (4): Check-in / Check-out Daily Report 4 May 2026, Check-in / Check-out Daily Report PDF 4 May 2026, The Ooak Suites C/I & C/O Section (4 May 2026), CI/CO Report PDF 2026-05-04

## Knowledge Gaps
- **8 isolated node(s):** `ChatRequest Pydantic Model`, `GET /health Endpoint`, `PM2 App: hermes-dify-bridge`, `bamboo-email-api (Port 3001)`, `Ruflo Memory Integration (Staff Context Recall)` (+3 more)
  These have ≤1 connection - possible missing edges or undocumented components.
- **2 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.

## Suggested Questions
_Questions this graph is uniquely positioned to answer:_

- **Why does `STAFF_CONTEXT System Prompt` connect `Hermes-Dify Infrastructure` to `Bamboo Properties & Revenue`, `Session & Request Flow`?**
  _High betweenness centrality (0.321) - this node is a cross-community bridge._
- **Why does `run_hermes Async Function` connect `Session & Request Flow` to `Hermes-Dify Infrastructure`?**
  _High betweenness centrality (0.172) - this node is a cross-community bridge._
- **Why does `Laila — Bamboo Hospitality Internal Staff AI Assistant` connect `Bamboo Properties & Revenue` to `Hermes-Dify Infrastructure`, `CI/CO Daily Reports`?**
  _High betweenness centrality (0.162) - this node is a cross-community bridge._
- **Are the 3 inferred relationships involving `Check-in / Check-out Daily Report 4 May 2026` (e.g. with `Little Hotelier PMS Skill (lh_fetch / lh_revenue / lh_hk)` and `Check-in / Check-out Daily Report PDF 4 May 2026`) actually correct?**
  _`Check-in / Check-out Daily Report 4 May 2026` has 3 INFERRED edges - model-reasoned connections that need verification._
- **What connects `ChatRequest Pydantic Model`, `GET /health Endpoint`, `PM2 App: hermes-dify-bridge` to the rest of the system?**
  _8 weakly-connected nodes found - possible documentation gaps or missing edges._