Compliance tracker: rules-engine statutory calendar for the PH entities

↗ view on GitHub · emileriksenkeev · 2026-07-16 · 2174d2a6

Deadline RULES live as data (compliance_rules), filings as FACTS
(compliance_filings); the calendar is generated at read time from
rules x entities joined against the ledger, so future due dates are
never stored and cannot go stale. Seeded from the RX Ventures
Compliance Tracker via tools/parse_compliance_tracker.py +
scripts/importComplianceTracker.ts (idempotent re-import).

- lib/complianceCalendar.ts: rule engine (BIR monthly/quarterly/annual,
  PhilHealth PEN windows, Pag-IBIG name-letter windows, SSS, SEC GIS
  by incorporation anniversary)
- GET /projects/entities/compliance, GET/POST per-entity calendar +
  filing endpoints
- GET /api/agent/compliance: structured read for Bry (x-agent-key)
- chat tools get_compliance_calendar / record_compliance_filing
- StatutoryCalendar UI on Entity Overview + Entities page

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Repository emileriksenkeev/sydOS
Author emileriksenkeev <emil@keev.co>
Authored
Committed
Parents e4a79600
Stats 15 files changed , +1544 , -3
Part of Compliance tracker - statutory calendar rules engine

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-2174d2a6.md from inside the repo you want the change in.

⬇ Download capture-commit-2174d2a6.md