PGŽ Sport Platform — Round 1+2 baseline (sport2.html + API)
This commit is contained in:
@@ -0,0 +1,160 @@
|
||||
# HANDOFF — 2026-05-03 00:30 CEST — Project Restructure + CI/CD/Agentic/MCP/Testing/Observability/Security expansion
|
||||
|
||||
## Što je urađeno u ovoj sesiji
|
||||
|
||||
### Phase 1 (00:00-00:15): Fix produkcijskih bugova v5
|
||||
1. Pičuksa total wipe v3 — 79 redaka u 6 tablica
|
||||
2. Greeting handler `[NOVO PITANJE]:` extract (fix wrapped context)
|
||||
3. `_lang_fix` +80 Serbian→Croatian patterns
|
||||
4. Priority QA semantic disambiguation prvenstvo/kup
|
||||
5. Persona greeting `master`/`DAMIR` keys
|
||||
|
||||
### Phase 2 (00:15-00:30): Project Restructure
|
||||
**6 novih sektorskih dokumenata** kreirana za upload u Claude Project:
|
||||
- `RINET_CICD.md` (248 linija) — CI/CD pipeline, deploy script, smoke test, GitHub Actions, rollback
|
||||
- `RINET_AGENTIC.md` (275 linija) — Agentic layer, Goal Planner, CC Swarm, Tool calling, Self-healing
|
||||
- `RINET_MCP.md` (243 linija) — MCP server tools/resources, security 3-tier, audit log
|
||||
- `RINET_TESTING.md` (396 linija) — Smoke + unit + integration + E2E + load + adversarial + regression
|
||||
- `RINET_OBSERVABILITY.md` (336 linija) — Loki+Grafana+Prometheus, alerting, dashboards
|
||||
- `RINET_SECURITY.md` (292 linija) — Threat model, GDPR, Vault, audit chain, backup
|
||||
- `CLAUDE_v6.md` (319 linija) — Master instrukcije ažurirane sa svim novim slojevima
|
||||
- `00_README_FIRST.md` (99 linija) — Nova navigacija s TIER 1-4 hijerarhijom
|
||||
|
||||
## Što treba sad (od Damira)
|
||||
|
||||
### KORAK 1: Upload novih fajlova u Claude Project
|
||||
Damir treba:
|
||||
1. Otvoriti https://claude.ai/project/019d04ce-753a-7356-a9c4-a747cdd90305
|
||||
2. Project Knowledge → "Add files" (drag and drop)
|
||||
3. Upload svih 8 fajlova iz `/mnt/user-data/outputs/` (ili koji ti odgovara)
|
||||
|
||||
Postojeći project files koji ostaju isti (NE TREBAJU update):
|
||||
- RINET_API_ENDPOINTS.md
|
||||
- RINET_ARCHITECTURE.md
|
||||
- RINET_CULTURAL_CORPUS.md
|
||||
- RINET_DATA_INTEGRITY.md
|
||||
- RINET_DB_SCHEMA.md
|
||||
- RINET_OPERATIONS.md
|
||||
- RINET_RECENT_HANDOFFS.md
|
||||
- RINET_SCRAPERS.md
|
||||
|
||||
Stari koji treba zamijeniti:
|
||||
- 00_README_FIRST.md (novom verzijom)
|
||||
- CLAUDE_v5.md (zamijeni s CLAUDE_v6.md, ili oba držati)
|
||||
- HANDOFF_20260503_0015_FORENSIC_v5.md (ostaje, novi handoff dolazi povrh)
|
||||
|
||||
### KORAK 2: Implementacija na serveru (sprint by sprint)
|
||||
|
||||
**Sprint 1 — CI/CD foundations** (1-2 dana)
|
||||
```
|
||||
/opt/rinet-cicd/
|
||||
├── deploy.sh ← create from RINET_CICD.md template
|
||||
├── smoke_test.py ← create from RINET_CICD.md template
|
||||
├── rollback.sh ← create
|
||||
└── .env.deploy
|
||||
```
|
||||
|
||||
GitHub Actions workflow per repo:
|
||||
- /opt/rinet-gpu (.github/workflows/deploy.yml)
|
||||
- /opt/ai-rinet (.github/workflows/deploy.yml)
|
||||
- /opt/dabi-persona (.github/workflows/deploy.yml)
|
||||
- /opt/pgz-sport (.github/workflows/deploy.yml)
|
||||
|
||||
**Sprint 2 — Test suite** (2-3 dana)
|
||||
```
|
||||
/opt/rinet-test/
|
||||
├── unit/
|
||||
│ ├── test_lang_fix.py
|
||||
│ ├── test_greeting.py
|
||||
│ ├── test_priority_qa.py
|
||||
│ └── test_intent.py
|
||||
├── integration/
|
||||
├── e2e/
|
||||
├── conftest.py
|
||||
└── pytest.ini
|
||||
```
|
||||
|
||||
Cilj: 70%+ coverage na orchestrator, 90% na critical paths (lang_fix, greeting, priority_qa).
|
||||
|
||||
**Sprint 3 — Observability** (1-2 dana)
|
||||
```
|
||||
/opt/observability/
|
||||
├── docker-compose.yml ← Loki + Grafana + Prometheus + Promtail
|
||||
├── loki-config.yml
|
||||
├── promtail-config.yml
|
||||
├── prometheus.yml
|
||||
└── grafana/dashboards/
|
||||
├── system_health.json
|
||||
├── application.json
|
||||
└── business.json
|
||||
|
||||
/opt/rinet-monitor/
|
||||
├── exporter.py ← Prometheus exporter
|
||||
├── alerter.py ← Telegram forwarder
|
||||
└── alerting-rules.yml
|
||||
```
|
||||
|
||||
systemd services:
|
||||
- rinet-monitor-exporter.service (port 9100)
|
||||
- rinet-monitor-alerter.service
|
||||
|
||||
**Sprint 4 — Agentic upgrade** (3-4 dana)
|
||||
```
|
||||
DB schema:
|
||||
- agentic.goals
|
||||
- agentic.steps
|
||||
- agentic.tool_calls
|
||||
|
||||
Code:
|
||||
/opt/rinet-agentic/
|
||||
├── tools/base.py ← Tool base class
|
||||
├── tools/sql_query.py
|
||||
├── tools/... ← migrate existing
|
||||
├── goal_planner.py
|
||||
├── healing/main.py
|
||||
└── lib/lock.py ← file locking utility
|
||||
```
|
||||
|
||||
**Sprint 5 — Security** (2-3 dana)
|
||||
- Vault container (port 8200)
|
||||
- Migrate secrets iz raspršenih .env-ova
|
||||
- HTTPS internal mTLS (self-signed CA + per-service certs)
|
||||
- GDPR endpoints
|
||||
- Privacy policy stranica
|
||||
- Cookie banner
|
||||
|
||||
**Sprint 6 — MCP v2** (1-2 dana)
|
||||
- 3-tier API key sustav
|
||||
- Audit log za svaki MCP call
|
||||
- Pending tools (vidi RINET_MCP.md)
|
||||
|
||||
## Pending iz prethodnih sesija (još uvijek not done)
|
||||
|
||||
- [ ] brain_builder × 4 → reduce na 1-2
|
||||
- [ ] Failed services istraga: rinet-backfill-knowledge, rinet-embed-autoheal
|
||||
- [ ] Vector dedup u Qdrant (~20% duplicates)
|
||||
- [ ] PostgreSQL VACUUM ANALYZE na dabi.knowledge
|
||||
- [ ] LoRA training validacija (sutra 03:13)
|
||||
|
||||
## Stanje sustava
|
||||
|
||||
- 62 active services
|
||||
- GPU: 18.6/20.5 GB VRAM
|
||||
- DB: 5.28M facts (dabi.knowledge), 1.17M (portal.knowledge)
|
||||
- 9 denylist patterns + 6 BEFORE triggers
|
||||
- Master supervisor active
|
||||
- LoRA timer NEXT 03:13
|
||||
|
||||
## Smoke test 4/4 PASS (last run)
|
||||
- Q1 prvenstvo (clean) → DVA PUTA
|
||||
- Q2 Bok (after Q1) → puni greeting
|
||||
- Q3 Kup HR → 7 puta
|
||||
- Q4 Bok (after Q3) → puni greeting
|
||||
|
||||
---
|
||||
|
||||
**Ovaj handoff zatvara sesiju 02.05.2026 — restrukturiranje projekta + roadmap dokumentacija.**
|
||||
|
||||
**Sljedeća sesija**: implementacija Sprint 1 (CI/CD foundations).
|
||||
|
||||
**Verzija**: v6 (project structure)
|
||||
Reference in New Issue
Block a user