# 🧠 OpenClaw Memory - System Configuration & Rules

**Created:** 2026-04-18  
**Last Updated:** 2026-04-18  
**Version:** 1.0

---

## 🔒 **CRITICAL CONFIGURATION RULES (NEVER CHANGE)**

### 🌐 Public URL Domain Pattern

**BASE DOMAIN (MUST ALWAYS USE):**
```
https://report.zendaily.id/
```

**NEVER use these again in URLs:**
- ❌ `http://187.77.112.225:8000/` (Local development only)
- ❌ Any hardcoded IP addresses
- ❌ Absolute filesystem paths (`/root/.openclaw/workspace/...`)

---

### 📂 Folder-to-URL Mapping

| Local Path | Public URL | Status |
|------------|------------|--------|
| `/root/.openclaw/workspace/daily_brief/` | `https://report.zendaily.id/daily_brief/` | ✅ ACTIVE |
| `/root/.openclaw/workspace/osint_reports/` | `https://report.zendaily.id/osint_reports/` | ✅ ACTIVE |
| `/root/.openclaw/workspace/security_reports/` | `https://report.zendaily.id/security_reports/` | ✅ ACTIVE |
| `/root/.openclaw/workspace/html_examples/` | `https://report.zendaily.id/html_examples/` | ✅ ACTIVE |

---

### 📄 HTML Asset Path Convention

**ALWAYS USE RELATIVE PATHS:**

```html
<!-- ✅ CORRECT - Will work on any domain -->
<img src="../assets/logo.png" alt="Logo">
<link href="../styles/main.css" rel="stylesheet">
<script src="../js/chart.js"></script>
<a href="../osint_reports/report.html">Report</a>

<!-- ✅ GOOD for same-folder assets -->
<img src="assets/logo.png">

<!-- ❌ WRONG - Will break on production -->
<img src="http://187.77.112.225:8000/assets/logo.png">
<img src="/root/.openclaw/workspace/assets/logo.png">
<img src="https://187.77.112.225:8000/">
```

---

### 📝 Report Filename Template

```
{MINISTRY}_{TYPE}_{DATE}.html

Examples:
├── ATR_BPN_DAILY_BRIEF_2026-04-18.html
├── KEMENDAGRI_ANALYSIS_2026-04-18.html
├── BULOG_INVESTIGATION_2026-04-18.html
├── INDONESIA_EMERGENCY_ALERT_2026-04-18.html
└── DKJ_MERGER_ASSESSMENT_2026-04-18.html
```

**Public URL format:**
```
https://report.zendaily.id/daily_brief/{FILENAME}.html
```

---

## ⚙️ Agent Configuration

### Timeout Settings
```json
{
  "agents": {
    "defaults": {
      "timeoutSeconds": 600  // 10 minutes - NEVER reduce below this
    }
  }
}
```

**Location:** `/root/.openclaw/openclaw.json`

---

## 🗂️ Directory Structure Reference

```
/root/.openclaw/workspace/
├── daily_brief/           → https://report.zendaily.id/daily_brief/
│   ├── ATR_BPN_DAILY_BRIEF_2026-04-17.html (36KB)
│   ├── ATR_BPN_Special_Report_2026-04-14.html (27KB)
│   ├── BULOG_INDONESIA_DAILY_BRIEF_2026-04-16.html (35KB)
│   ├── BULOG_TI_ORGANOGRAM_COMPLETE.html (9.2KB)
│   ├── INDONESIA_DAILY_BRIEF_2026-04-16.html (27KB)
│   ├── INDONESIA_DAILY_BRIEF_2026-04-13.html (19KB)
│   ├── INDONESIA_DAILY_BRIEF_KEMENDAGRI_2026-04-16.html (32KB)
│   ├── INDONESIA_DAILY_BRIEF_DASHBOARD.html (22KB)
│   ├── Indonesia_Daily_Brief_2026-04-08.html (15KB)
│   ├── Indonesia_Daily_Brief_2026-04-07_LATEST.html (19KB)
│   ├── ANALISA_KETAHANAN_PANGAN_2026.html (35KB)
│   ├── ANALISA_KETAHANAN_PANGAN_2026_PRINTABLE.html (32KB)
│   └── DKJ_RETROBUTSI_POTENSI_2026_V*.html (7 versions)
├── osint_reports/         → https://report.zendaily.id/osint_reports/
│   ├── Denny_Basri_BOSEOS_INT_Report.txt
│   ├── muhamad_valiandra_kemendagri_report.md
│   └── yanuar_andriyana_putra_kemendagri_report.md
├── security_reports/      → https://report.zendaily.id/security_reports/
│   ├── BLIV_ID_SECURITY_SUMMARY.md
│   ├── KEMENDAGRI_GO_ID_EXEC_SUMMARY.md
│   ├── bliv_id_vulnerability_assessment.md
│   └── kemendagri_go_id_security_assessment.md
├── html_examples/         → https://report.zendaily.id/html_examples/
│   └── denny_basri_osint_report.html
├── PUBLIC_URL_GUIDE.md    ← Read before creating new reports!
└── memory/
    └── 2026-04-17.md      ← Latest session notes
```

---

## 🎯 Daily Brief Generation Checklist

Before generating/sharing any report:

- [ ] Save file to correct folder (`/root/.openclaw/workspace/daily_brief/`)
- [ ] Use relative paths for all internal HTML assets
- [ ] Generate public URL as: `https://report.zendaily.id/daily_brief/{filename}.html`
- [ ] Test link format mentally (NO IP, NO port numbers)
- [ ] Verify filename follows `{MINISTRY}_{TYPE}_{DATE}.html` pattern

---

## 🔄 Previous Sessions History

### Session Start Date: 2026-04-06

### Major Milestones:
- **2026-04-06:** Initial workspace setup, installed 14 OpenClaw skills, 40+ Kali Linux tools
- **2026-04-13:** First daily brief reports created (Indonesia, Kemendagri)
- **2026-04-14:** ATR/BPN special report generated
- **2026-04-15:** Food security analysis reports, BULOG org structure
- **2026-04-16:** Comprehensive daily briefs, MINYAKITA alerts, DKJ merger analysis
- **2026-04-17:** 
  - ATR/BPN daily brief with internal action recommendations (4 priority levels)
  - OSINT investigations completed (Denny Basri, Valiandra, Yanuar Andriyana)
  - Security scanning tools integrated (nmap, nuclei, sqlmap, etc.)
- **2026-04-18:** 
  - **Public URL migration to `report.zendaily.id`**
  - HTML asset path standardization implemented
  - Timeout increased to 10 minutes (600 seconds)
  - Documentation created in PUBLIC_URL_GUIDE.md

---

## 🤖 Multi-Agent Capability (Future Planning)

OpenClaw supports multiple agents with dedicated Telegram bots:

### Potential Agent Roles:
1. **Reporter Bot** (@Indonesia_Daily_Bot) - Daily brief generation
2. **Investigator Bot** (@OSINT_Tracker_Bot) - OSINT research
3. **Security Bot** (@PenTest_Scanner_Bot) - Vulnerability assessment

### Setup Requirements:
- Separate bot tokens from @BotFather for each agent
- Configure channel permissions per agent
- Assign specific tools and focus areas
- Manage session isolation for parallel operations

---

## 💡 Key Reminders

### For Every Report Creation:
1. **NEVER** hardcode `http://187.77.112.225:8000/` in URLs
2. **ALWAYS** use relative paths (`../`, `./`) for assets
3. **ALWAYS** generate URLs as `https://report.zendaily.id/...`
4. **SAVE documentation updates** to daily memory files
5. **TEST links** before sharing externally

### When Unsure:
- Check `PUBLIC_URL_GUIDE.md` for complete reference
- Review this MEMORY.md file for context
- Ask before making breaking changes

---

## 📞 Support Resources

- **Documentation:** `/root/.openclaw/workspace/PUBLIC_URL_GUIDE.md`
- **Daily logs:** `/root/.openclaw/workspace/memory/2026-XX-XX.md`
- **Config file:** `/root/.openclaw/openclaw.json`
- **Skills directory:** `/usr/local/lib/node_modules/openclaw/skills/`

---

**Remember:** This is a living document. Update regularly as projects evolve. Never make unilateral changes to critical configurations without documenting them here.
