mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 03:57:13 -05:00
feat: Add domain architecture and extract core services from Prism Console
## Domain Architecture - Complete domain-to-service mapping for 16 verified domains - Subdomain architecture for blackroad.systems and blackroad.io - GitHub organization mapping (BlackRoad-OS repos) - Railway service-to-domain configuration - DNS configuration templates for Cloudflare ## Extracted Services ### AIops Service (services/aiops/) - Canary analysis for deployment validation - Config drift detection - Event correlation engine - Auto-remediation with runbook mapping - SLO budget management ### Analytics Service (services/analytics/) - Rule-based anomaly detection with safe expression evaluation - Cohort analysis with multi-metric aggregation - Decision engine with credit budget constraints - Narrative report generation ### Codex Governance (services/codex/) - 82+ governance principles (entries) - Codex Pantheon with 48+ agent archetypes - Manifesto defining ethical framework ## Integration Points - AIops → infra.blackroad.systems (blackroad-os-infra) - Analytics → core.blackroad.systems (blackroad-os-core) - Codex → operator.blackroad.systems (blackroad-os-operator) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
with s as (
|
||||
select * from {{ ref('stg_github__issues') }}
|
||||
)
|
||||
select
|
||||
date_trunc('day', created_at) as day,
|
||||
repo_full,
|
||||
count(*) as issues_opened,
|
||||
count_if(state = 'closed') as issues_closed_same_day
|
||||
from s
|
||||
group by 1, 2
|
||||
order by 1 desc;
|
||||
@@ -0,0 +1,16 @@
|
||||
with s as (
|
||||
select * from {{ ref('stg_github__issues') }}
|
||||
)
|
||||
select
|
||||
repo_full,
|
||||
count(*) as open_bugs
|
||||
from s
|
||||
where state = 'open'
|
||||
and array_contains(
|
||||
array_construct('bug'),
|
||||
(
|
||||
select array_agg(value:name::string)
|
||||
from lateral flatten(input => s.labels)
|
||||
)
|
||||
)
|
||||
group by 1;
|
||||
17
services/analytics/dbt/models/staging/stg_github__issues.sql
Normal file
17
services/analytics/dbt/models/staging/stg_github__issues.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
with src as (
|
||||
select
|
||||
id::number as issue_id,
|
||||
repo_full::string as repo_full,
|
||||
number::number as issue_number,
|
||||
title::string as title,
|
||||
state::string as state,
|
||||
is_pull::boolean as is_pull,
|
||||
try_parse_json(labels) as labels,
|
||||
author::string as author,
|
||||
to_timestamp_ntz(created_at) as created_at,
|
||||
to_timestamp_ntz(closed_at) as closed_at,
|
||||
to_timestamp_ntz(updated_at) as updated_at
|
||||
from BR_RAW.APP.RAW_GITHUB_ISSUES
|
||||
where is_pull = false
|
||||
)
|
||||
select * from src;
|
||||
Reference in New Issue
Block a user