# AGENTS.md — System Rules & Invariants for christianastrology.org
# Canonical Author: Adam (AIS)
# Theme: Wedding-Style Sacred Cosmology & Biblical Mazzaroth
# Platform: Cloudflare Edge (Pages + Worker + D1 SQLite)
# Release Date: 2026-08-16 | Protocol: Athena-Web v3.0

## 1. Global Invariants & Operational Directives
- **Author Identity:** Content curated and architected by Adam (AIS).
- **Target Performance:** Sub-50ms TTFB across Cloudflare Anycast edge locations; CLS Armor < 0.05.
- **Bot Defense & Carding Protection:** High-velocity checkout endpoints (`/api/checkout`, `/api/subscribe`) gated via Cloudflare Managed Challenge and Turnstile.
- **Monetization & Ads:** AdSense Publisher `ca-pub-3415300754694996`, PayPal Hosted Button `83T2VYEH7ZFPJ`, BuyMeACoffee `AISTRAT`, Amazon Associate Tag `ais3000-20`.
- **Double-Entry Charity Ledger:** Exactly 10.00% of all gross transactions are committed to the audited Christian Martyr Relief fund (`/api/charity/ledger`).

## 2. Active WebMCP & API Tool Routes
- `GET /api/health` — Worker health and platform capabilities.
- `GET /api/mazzaroth` — 12-Tribe Hebrew Zodiac directory & scriptural references.
- `GET /api/mazzaroth/:sign` — Deep patristic theological analysis for specific signs.
- `GET /api/forum/threads` — Multi-denominational discussion threads (Catholic, Orthodox, Evangelical, Mainline, Ecumenical).
- `GET /api/charity/ledger` — Public transparent charity ledger and martyr relief statistics.
- `POST /api/checkout` — Stripe checkout session creator for Tiers 1-3 ($3/mo, $7/mo, $15/mo), Single Chart ($1.00), and Martyr Relief Offerings.
- `GET /api/readings/unblur` — Edge-Swap subscriber decryption gateway.
- `GET /api/som` — W3C Semantic Object Model discovery manifest.

## 3. Preparation Gates & Code Quality
- All responses must maintain strict theological reverence and biblical accuracy (Genesis 1:14, Job 38:31-33, Psalm 19:1-4, Matthew 2:1-2).
- Zero broken images; all layout frames must utilize reserved aspect ratios.
- Strict multi-denominational neutrality; respect patristic, reformed, and contemporary Christian traditions equally.
