Skip to content

darfaz/spec-os-shared-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spec-OS Shared Suite

A shared operating system connecting Insurance General Counsels and Defense Law Firms through standardized workflows and intelligent automation.

Spec-Kit Python 3.11+ License: Proprietary

🎯 Overview

Spec-OS Shared Suite bridges the gap between insurance carriers and defense law firms by providing:

  • Billing QA Automation - Pre-validate invoices against carrier rules before submission
  • Intake & Triage - Standardized matter assignment workflows
  • Shared Matter Records - Synchronized case status across organizations
  • Guidelines as Code - Carrier billing rules as executable specifications
  • Reporting Automation - Automated compliance and status reporting
  • Tenant Pairing - Secure carrier-firm relationships

🏗️ Architecture

┌─────────────────────────────────────────────────────────────┐
│                    Spec-OS Shared Suite                     │
├─────────────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐         │
│  │ Firm Portal │  │  Event Bus  │  │   Carrier   │         │
│  │             │◄─┤  (Realtime) ├─►│   Portal    │         │
│  └──────┬──────┘  └─────────────┘  └──────┬──────┘         │
│         │                                  │                │
│  ┌──────▼──────────────────────────────────▼──────┐        │
│  │              HITL AI Agents                     │        │
│  │  • Billing QA Agent                             │        │
│  │  • Intake Triage Agent                          │        │
│  │  • Reporting Agent                              │        │
│  └─────────────────────┬──────────────────────────┘        │
│                        │                                    │
│  ┌─────────────────────▼──────────────────────────┐        │
│  │           Supabase (PostgreSQL + Auth)          │        │
│  │  • Row Level Security (Multi-tenant)            │        │
│  │  • Realtime Subscriptions                       │        │
│  │  • Edge Functions                               │        │
│  └─────────────────────────────────────────────────┘        │
└─────────────────────────────────────────────────────────────┘

🚀 Quick Start

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • Git
  • Supabase CLI (optional)

Installation

# Clone the repository
git clone https://github.com/your-org/spec-os-shared-suite.git
cd spec-os-shared-suite

# Check prerequisites
./.specify/scripts/check-prerequisites.sh

# Install Python dependencies
pip install -e .

# Install frontend dependencies
cd frontend && npm install && cd ..

# Set up environment variables
cp .env.example .env
# Edit .env with your Supabase credentials

# Run database migrations
supabase db push

# Start development servers
uvicorn src.api.main:app --reload  # Backend
npm run dev                         # Frontend (in separate terminal)

📁 Project Structure

spec-os-shared-suite/
├── .specify/                    # Spec-Kit specifications
│   ├── memory/
│   │   └── constitution.md      # Project principles
│   ├── scripts/                 # Utility scripts
│   ├── specs/                   # Feature specifications
│   │   ├── 001-billing-qa/
│   │   │   ├── spec.md          # Requirements
│   │   │   ├── plan.md          # Implementation plan
│   │   │   ├── tasks.md         # Task breakdown
│   │   │   ├── data-model.md    # Database schema
│   │   │   ├── research.md      # Technical research
│   │   │   └── contracts/       # API specifications
│   │   ├── 002-intake-triage/
│   │   └── ...
│   └── templates/               # Spec templates
├── src/                         # Python source code
│   ├── agents/                  # AI agents
│   ├── api/                     # FastAPI routes
│   ├── core/                    # Business logic
│   ├── events/                  # Event handlers
│   ├── models/                  # Pydantic models
│   ├── repositories/            # Data access
│   ├── services/                # Business services
│   └── workflows/               # Workflow definitions
├── tests/                       # Test suites
│   ├── unit/
│   ├── integration/
│   └── e2e/
├── frontend/                    # React frontend
├── supabase/                    # Supabase config & migrations
├── docs/                        # Documentation
├── carriers/                    # Carrier-specific configs
│   ├── general/                 # Generic carrier
│   └── liberty-mutual/          # Liberty Mutual specific
├── CLAUDE.md                    # AI agent instructions
├── pyproject.toml               # Python project config
└── README.md

🔧 Development

Using Spec-Kit Commands

This project uses GitHub Spec-Kit for spec-driven development:

# Define project principles
/speckit.constitution

# Create a new feature specification
/speckit.specify Build a new reporting dashboard...

# Create implementation plan
/speckit.plan Use React with Recharts for visualization...

# Generate task breakdown
/speckit.tasks

# Implement the feature
/speckit.implement

Running Tests

# All tests
pytest

# Unit tests only
pytest tests/unit/

# With coverage
pytest --cov=src tests/

# Integration tests (requires database)
pytest tests/integration/

Code Style

# Lint Python
ruff check src/

# Format Python
ruff format src/

# Type check
mypy src/

📋 Features

001 - Billing QA Automation (Current)

Pre-validates legal invoices against carrier billing rules:

  • LEDES 1998B and 2.x parsing
  • Carrier-specific rule evaluation
  • AI-powered suggestion generation
  • HITL approval workflows
  • Real-time compliance scoring

Status: Implementation Ready

002 - Intake & Triage (Planned)

Standardized matter intake and assignment workflows.

003 - Shared Matter Record (Planned)

Synchronized case status tracking across organizations.

004 - Guidelines as Code (Planned)

Carrier billing guidelines as executable specifications.

005 - Reporting Automation (Planned)

Automated compliance and status reporting.

006 - Tenant Pairing (Planned)

Secure carrier-firm relationship management.

🔐 Security

  • Multi-tenant Isolation: Row Level Security (RLS) on all tables
  • Authentication: OAuth 2.0 / OIDC via Supabase Auth
  • Encryption: TLS 1.3 in transit, AES-256 at rest
  • Audit Logging: Complete audit trail of all actions

📚 Documentation

🤝 Contributing

  1. Check the constitution for project principles
  2. Review the current spec for the feature you're working on
  3. Follow the task breakdown in tasks.md
  4. Ensure tests pass and coverage is maintained
  5. Submit a PR with clear description

📄 License

Proprietary License. Copyright © 2025 Execture Inc. All rights reserved. See LICENSE for details.

🙏 Acknowledgements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors