# Codeina / OpenClaw Agent Build Specification  
## CommUNITY Land Foundation — Publishing System

**Role of the agent:** Assembly, templates, PDF export, structure, validation.  
**Role of humans:** Writing, design standards, final editorial review.  
**Never invent:** properties, acreage, partners, completed projects, impact metrics, or financial figures.

---

## 1. Implementation prompt (paste into Codeina)

```
Build and maintain the CommUNITY Land Foundation publishing system at:

C:\Users\vanis\Desktop\Founding_Prospectus\

EXISTING ASSETS (do not discard):
- build_pdfs.py — ReportLab generators for PDF_00, narrative IV–IX, 013–020+
- publishing/ — HTML/CSS → Playwright PDF pipeline (museum path)
- publishing/styles/book.css — brand print CSS
- publishing/OPENCLAW_TASK.md, LIBRARY.md
- All PDF_0xx_*.pdf outputs

GOALS:
1) Keep reportlab manuals building via: python build_pdfs.py
2) Expand HTML publishing pipeline for Volume I Founding Prospectus (180–220 pages target)
3) Support separate volume exports + one combined master PDF
4) Enforce no-invented-data rules in templates and copy checks

BRAND:
- Forest #1f3829, Bronze #8c6b38, Ivory #f7f2e6, Charcoal #2e2e2e, Water #38667f (maps only)
- Tagline: The Future Is Cultivated.
- Org: CommUNITY Land Foundation
- Voice: calm, clear, hopeful, accurate — museum catalog / conservation journal

PRINT TARGET (flagship):
- Trim 9×12 in (working Letter OK for drafts)
- Bleed 0.125 in (document in CSS/layout; full PDF/X may need InDesign later)
- 300 dpi images when assets exist
- Page numbers (folios), chapter dividers, principle pages, pull quotes

OUTPUTS:
- dist/ or Desktop\Founding_Prospectus\ PDFs per volume
- Founding_Prospectus_COMPLETE_PACKAGE.pdf merged master
- Optional: HTML chapter set for Volume I

Do NOT control editorial wording. Port manuscript only from existing source files and user-supplied installments.
```

---

## 2. Volume map

| ID | Title | Generator / status |
|----|--------|-------------------|
| 00 | Publication Map | build_toc_volume |
| Narrative | Books IV–IX | build_prospectus_narrative |
| 013 | Appendices | build_appendices |
| 014 | Brand & Editorial Standards | build_brand_manual · **complete** |
| 015 | Governance & Stewardship | build_governance_manual · **complete** |
| 016 | Land Stewardship Framework | build_land_framework · **complete** |
| 017 | Operations Manual | build_operations_manual · **complete** |
| 018 | Volunteer Handbook | build_volunteer_handbook · **complete** |
| 019 | Education & Interpretation | build_education_manual · **complete** |
| 020 | Communications & Publications | build_communications_manual · **complete** |
| 021 | Finance, Development & Donor Stewardship | build_finance_manual · **complete** |
| HTML | Museum sample | publishing/build.py |

Future: Property Plans (V), Annual Reports (VI), Stewardship Journal (VII) — placeholders only.

---

## 3. Folder structure (target)

```
Founding_Prospectus/
  build_pdfs.py
  REBUILD.bat
  CODEINA_AGENT_BUILD_SPEC.md
  HANDOFF_CODEINA_OPENCLAW.md
  manuscript/                 # optional: plain .md per chapter
  assets/                     # licensed images only
  publishing/
    book.html
    chapters/
    styles/book.css
    build.py
    dist/
  PDF_0xx_*.pdf
  Founding_Prospectus_COMPLETE_PACKAGE.pdf
```

---

## 4. Acceptance checklist

- [ ] `python build_pdfs.py` exits 0  
- [ ] `python publishing/build.py` exits 0  
- [ ] Master package merges without missing files  
- [ ] No fabricated acreage/stats in generated text  
- [ ] Property/case-study pages labeled PLACEHOLDER / Reserved  
- [ ] Principle pages centered bronze on ivory  
- [ ] Covers forest green + bronze frame  
- [ ] Page numbers present  
- [ ] Communications status language distinguishes founding vs completed work  

---

## 5. Validation rules (implement as tests or linters)

Reject or flag strings like:
- "X acres conserved" without `verified:` prefix  
- "Our property at" without property registry entry  
- Partner names not in `config/confirmed_partners.json` (create empty file)  
- "Completed restoration of" without project ID  

---

## 6. What Codeina should NOT do

- Rewrite philosophy into marketing  
- Pull copyrighted stock as if owned  
- Claim PDF/X press certification without proper preflight tool  
- Auto-fill case studies from the web  

---

## 7. Rebuild commands

```powershell
cd C:\Users\vanis\Desktop\Founding_Prospectus
python build_pdfs.py
cd publishing
python build.py
```

---

*Editorial authority remains with the Foundation. Agents assemble and export.*
