HEYVANKA · COCKPIT v0.1 · mockup
prodok
queuebacklog 487
ch cpu126%
tok/gün$3.41
session9bde1f11…
2026-04-14 · 04:32

Overview

Sunucu, geliştirme ve odak durumu tek ekranda. 30sn'de full-state.

Kırık Parçalar
1
penalty match pipeline · 5g
Queue Lag
487
orders.sync · stable
Bugünkü Commit
7
+3 daily ortalamadan
Token Harcaması
$3.41
ay: $47.23 · bütçe $400
ŞİMDİ ODAK
DEC-0006 Faz 4.2 · Settlement parser yaz
Penalty match pipeline 5 gündür kırık. Faz 4.1 (FK migration) 3 gün önce tamamlandı ama Faz 4.2 parser'a hâlâ dokunulmamış. Bugün 90dk'lık dikey slice'la orders/services/penalty/parser.py iskeletini çıkar, tek SettlementTransaction ile smoke test.
tahmini
90 dk
değer
-₺21K fark görünür
advisor · confidence 0.87

Aktif Cepheler

6 cephe · 1 kritik

Son Aktivite

canlı

Decision Drift

2 ADR takılı
5g
DEC-0006 · Penalty match pipeline
Faz 4.1 ✅ bitti, 4.2'ye 3 gündür ilerleme yok. 729 FT actual=0%.
8g
DEC-0004 · Toplu fatura allocation
Status: needs_revision. Revize edilmedi, hybrid strategy kararsız.

Prod Health — Son 24s

canlı
apigw p99 142ms
celery-main idle 0 fail
competition scraper 2 ban · 26 IP
ANKA match rate 73% BexoShop
clickhouse cpu 126% sustained
rabbitmq depth 487 msgs
disk (/var/lib/pg) 6.7GB · 41% full

Focus Advisor

Şu an neye odaklanmalısın, neden, alternatifleriyle. Claude Opus advisor.

PRIMARY confidence 0.87 · 3 sinyalden
DEC-0006 Faz 4.2 · Settlement parser smoke test

Neden: 5 gün önce Faz 4.1 FK migration bitti, parser'a dokunulmadı. 729 FT'de actual=0%, -₺21K delta görünmüyor. Bu prod'daki tek kritik kırık.

Küçük adım önerisi: orders/services/penalty/parser.py iskelet + 1 real settlement JSON üzerinden dry-run. DB'ye yazma, sadece parse et.

Başarı kriteri: tek transaction'dan {order_no, penalty_type, amount} triple çıkarılabiliyor.

Alternatif Odaklar

4 seçenek
Kör gider frontend build 30 dk · değer düşük
Backend 3g önce hazır, pm2 restart eksik. Quick win ama ana kırık değil.
ClickHouse CPU profiling 60 dk · değer orta
%126 sustained. Cockpit event stream gelmeden çözülmeli. Ama bugün yanmıyor.
LOWELL HOME finans teşhis 45 dk · değer düşük
Abonelik expired → gate kapalı → chord çalışmıyor. Teşhis var, müşteri sessiz.
Cockpit node substrate başla 2-3 sa · değer stratejik
Long-term leverage, ama prod kırıkken başlaması yanlış sinyal. Önce Faz 4.2.

Sinyaller

Fatigue düşük
Son 3 session gündüz · 6s uyku önce
Scope Drift orta
Cockpit düşüncesi 2sa sürdü, prod kırık bekliyor
Momentum güçlü
7 commit/gün, hafta %+40
Avoidance Score yüksek
DEC-0006 5g · başka işlere saptın

Bu Hafta Başlıkları

penalty · orders%34
cockpit planning%21
ANKA matching%18
devlog bakım%12
leads funnel%9
ads retargeting%6

Node Explorer

Sunucudaki her artefakt addressable. 4237 node · 12 kategori · graf + detay.

Blast Radius · 1-hop 12 node
OFS FinSvc Recon chord reports Order FT

Session Timeline

Her Claude session'ı kayıt altında — tag, token maliyeti, commit çıktısı. Son 30 gün.

bu ay 42 session · $47.23 · 38 commit
Verimli Oranı
%74
commit'e dönüşen / toplam
Odaksız Oranı
%18
hafta %-5
Ort. Session Süresi
47dk
median 28dk
Token/Session
112k
cache hit %81
zaman
süre
konu
tag'ler
commit
token
cost

Incident Feed

Otomatik tespit edilen anomaliler. Event stream'den real-time.

KRİTİK
1
UYARI
4
BİLGİ
12
ÇÖZÜLDÜ (24s)
7

Advisor Recommendations

Claude tabanlı öneri motoru. Fatigue, scope drift, decision drift, health correlator.

AVOIDANCE
Penalty pipeline'dan kaçış sinyali
DEC-0006 Faz 4.2 tam 5 gündür bekliyor. Bu 5 günde 3 yeni front açtın (ads retargeting, cockpit, devlog bakım), 12 commit attın — ama hiçbiri parser'a değmedi. Bloke değilsin (git log'da hata yok), avoidance pattern. Öneri: 90dk'lık minimal dikey slice, parser skeleton + tek dry-run. Devamı sonra.
SCOPE
Cockpit scope creep riski
Bugünkü session'da cockpit vizyonu 3 kez genişledi: "devlog baştan" → "node substrate" → "tam mission control + session tagger + dashboard + öneri motoru". Bu 3-4 haftalık iş. Öneri: dikey slice'a sadık kal. 1 hafta MVP: node substrate (5 app) + session capture + 1 sayfa. Sonrası feedback üstüne.
HEALTH
ClickHouse CPU %126 — cockpit blocker
Cockpit event stream'i ClickHouse'a yazılacak. Mevcut CPU sustained %126. Event stream eklenince sistem erime riski. Öneri: Faz A'dan önce 1 saatlik query profiling. system.query_log'dan top 10 maliyetli sorguyu çıkar.
MOMENTUM
Bu hafta pozitif trend
Hafta %40 daha fazla commit, %62 verimli session oranı, ort. session 32dk (geçen hafta 58dk) — kısa&odaklı paternine dönüyorsun. Gece çalışma %14 (geçen hafta %41).
DECISION
ADR-0007 yazılmamış
Cockpit mimari kararı bugün sözle verildi ama ADR draft yok. İki session sonra bağlam kaybolabilir. Öneri: bugün 15dk, 0007-cockpit-architecture.md iskeletini yaz — sadece "4 katman + omurga kararlar" yeter.

Self-Awareness

Kendi çalışma paternlerin. Son 30 gün · heatmap, odak süresi, konu dağılımı, outcome oranları.

Commit Heatmap · Son 30 Gün

Pzt
Sal
Çar
Per
Cum
Cmt
Pzr
az
çok

Session Saat Dağılımı

0006121823
Peak: 22:00-02:00. Gece çalışma hafta %14 (-%27).

Session Outcome · 30g

verimli (commit çıktı)31
keşif / planlama8
odaksız / drift7
yorgun / öfkeli2

En Sık Dokunulan

orders/services/finance42
devlog_md/daily28
ANKA/matchers19
competition/runner14
orders/services/penalty11
anka_panel/views9

Kişisel Notlar

Son 7 gün ortalama: 4.2 saat kod, 1.1 saat planlama.

Claude session başına 112k token, cache hit oranı güçlü.

En verimli slot: çarşamba sabah 10-13.

Kaçındığın dal: settlement parser (5g).

Güçlenen alışkanlık: küçük commit, erken push.

Sistem Mimarisi

Cockpit 4 katmanı, mevcut HeyvAnka stack ile entegrasyon, veri akışı.

LAYER 1 · SUBSTRATE (node katmanı) code.* ~1200 node model/service/task/view /mgmt/migration/test data.* ~180 node pg table/ch table/ redis pattern/queue infra.* ~60 node systemd/caddy/cron env/IP/log file runtime.* ~40 node beat schedule/ queue throughput external.* ~80 node trendyol/tosla/wa openai prompt/SOAP business.* ~90 node customer(25)/contract/ policy/30+ pdf operational.* + devlog.* ~2600 node incident/fix/decision/ front/daily/memory LAYER 2 · INGESTION (event stream) Vector agent log tailer · systemd shell history · pg queue depth · celery Claude session tailer ~/.claude/projects/* jsonl → parsed events watchdog + ACL Git hook producer post-commit (mevcut) + commit→node touch incremental regen Redaction pipeline detect-secrets + regex JWT/api key/.env mask pre-store, pre-LLM ClickHouse sink cockpit.events cockpit.sessions cockpit.tags PG curated state Piece (runtime only) node shadow index ~500 satır toplam LAYER 3 · INTELLIGENCE (Claude-powered) Session tagger Haiku · cheap pass 9 tag taxonomy ~$0.002/session Focus advisor Opus · on-demand prod + drift + momentum primary + 4 alt. Fatigue detector stat heuristic · local hour/cadence/length LLM free Decision drift ADR touch analyzer age × activity heuristic only Health correlator prod signals × activity realign öneri Haiku summarize Cost tracker token/session/front budget alerts pure arithmetic LAYER 4 · UI (heyvaql-cockpit · port 3005 · localhost only) Overview global health focus card Focus primary + alt signal panel Node Explorer tree + detail react-flow graph Sessions timeline + tags cost breakdown Incidents real-time feed severity tiers Recommendations advisor outputs dismiss/act/feedback Self-Awareness heatmap · outcome topic distrib. ERİŞİM · Tailscale mesh → localhost:3005 · dış yüzey SIFIR · bedran only · VERİ · disk(markdown) + PG(runtime) + ClickHouse(events) + git(history)

Dosya Yapısı (disk)

/var/www/HeyvAnka/
├── devlog_md/
│   ├── INDEX.md              · global state
│   ├── fronts/               · 6 cephe
│   ├── decisions/            · ADR-0001..0007
│   ├── daily/YYYY/MM-DD.md   · rolling window
│   ├── memory/               · shared
│   ├── mockups/              · bu dosya burada
│   └── generated/
│       ├── cards/.md
│       ├── service_dna/
│       └── nodes/
│           ├── code/         · ~1200 node
│           ├── data/         · ~180
│           ├── infra/        · ~60
│           ├── runtime/      · ~40
│           ├── external/     · ~80
│           ├── business/     · ~90
│           ├── operational/
│           └── _graph.json
├── apps/cockpit/             · Django (yeni)
└── heyvaql-cockpit/          · Next.js (yeni, port 3005)

ClickHouse Schema (tahmini)

cockpit.events (
  ts           DateTime64,
  source       Enum('shell','log','git','pg','mq','celery'),
  level        Enum('info','warn','error'),
  actor        LowCardinality(String),
  payload      JSON,
  redacted     UInt8
) ORDER BY (ts, source)
  TTL ts + INTERVAL 90 DAY

cockpit.sessions (
  session_id   UUID,
  started_at   DateTime,
  ended_at     DateTime,
  cwd          String,
  git_branch   String,
  user         String,
  msg_count    UInt32,
  tool_calls   UInt32,
  tokens_in    UInt64,
  tokens_out   UInt64,
  tokens_cache UInt64,
  cost_usd     Decimal(10,4),
  commits      Array(String),
  files_touched Array(String),
  tags         Array(LowCardinality(String)),
  topic        String,
  outcome      Enum('productive','exploring','drift','fatigue','error')
) ORDER BY started_at
  TTL started_at + INTERVAL 2 YEAR

cockpit.node_touches (
  ts           DateTime,
  node_id      String,
  commit_sha   FixedString(40),
  change_type  Enum('create','modify','delete','rename'),
  lines_added  UInt32,
  lines_removed UInt32
) ORDER BY (node_id, ts)
  PARTITION BY toYYYYMM(ts)