How ssrlaptop/improved-fortnight works
Regulatory Circular → Live Rule Engine turns circular text into clause-traceable obligations, policy mappings and draft rules, then backtests and validates them before mandatory human approval. Approved rules can be simulated in shadow, staged rollout, monitored, rolled back or killed; “live” decisions use seeded transactions, not bank traffic. Staff use the web console or CLI, with shared engine actions and role-based write access. The graph reflects documented workflow and indexed dependencies; unsampled implementation details and unverified links are omitted.
Main entry points: pipeline.py Pipeline orchestration · console.py HTTP console · agents.py Extraction, mapping, authoring · deployment.py Shadow and rollout
Components 21
Intake and analysis
- Pipeline orchestration
regengine/pipeline.py - Extraction, mapping, authoring
regengine/agents.py - Policy retrieval
regengine/retrieval.py - Bank profile
regengine/bank_profile.py - LLM adapters
regengine/llm.py - Domain records
regengine/models.py - Transaction sample
regengine/transaction_data.py
Rule lifecycle
- Rule DSL
regengine/dsl.py - Backtest and impact
regengine/backtest.py - Rule versions and integrity
regengine/rule_repository.py - Human approval
regengine/approval_workflow.py
Operations and state
- Shadow and rollout
regengine/deployment.py - Drift monitoring
regengine/monitoring.py - Authentication and roles
regengine/auth.py - State and audit store
regengine/store.py
Staff interfaces
- CLI
regengine/cli.py - Console UI
web/src/views.tsx - UI API client
web/src/api.ts - HTTP console
regengine/console.py
Other components
- Bank staff
- LLM provider
Connections 29
- Bank staff → CLI: runs commands
README.md - Bank staff → Console UI: uses console
README.md - Console UI → UI API client: requests actions
web/src/views.tsx - UI API client → HTTP console: calls HTTP API
- CLI → Pipeline orchestration: runs pipeline
regengine/cli.py - HTTP console → Pipeline orchestration: runs intake
regengine/console.py - Pipeline orchestration → Extraction, mapping, authoring: runs agents
regengine/pipeline.py - Pipeline orchestration → Bank profile: filters applicability
regengine/pipeline.py - Pipeline orchestration → Transaction sample: loads sample
regengine/pipeline.py - Pipeline orchestration → Backtest and impact: compares drafts
regengine/pipeline.py - Pipeline orchestration → Rule versions and integrity: records versions
regengine/pipeline.py - Pipeline orchestration → State and audit store: persists run
regengine/pipeline.py - Extraction, mapping, authoring → LLM adapters: requests completion
regengine/agents.py - Extraction, mapping, authoring → Policy retrieval: retrieves policies
regengine/agents.py - Extraction, mapping, authoring → Rule DSL: validates rules
regengine/agents.py - Extraction, mapping, authoring → Domain records: creates records
regengine/agents.py - LLM adapters → LLM provider: calls provider
README.md - Backtest and impact → Rule DSL: evaluates rules
regengine/backtest.py - Backtest and impact → Transaction sample: replays sample
- Human approval → Rule versions and integrity: approves version
regengine/approval_workflow.py - Human approval → State and audit store: records decision
regengine/approval_workflow.py - Shadow and rollout → Rule versions and integrity: checks candidate
regengine/deployment.py - Shadow and rollout → Rule DSL: evaluates traffic
regengine/deployment.py - Shadow and rollout → State and audit store: records stage
regengine/deployment.py - Drift monitoring → Shadow and rollout: reads deployment state
regengine/monitoring.py - HTTP console → Authentication and roles: verifies sessions
regengine/console.py - HTTP console → Human approval: decides drafts
README.md - HTTP console → Shadow and rollout: operates rules
README.md - HTTP console → State and audit store: reads and writes
regengine/console.py