maris-ai-master / data /code /sample.jsonl
MarisUK's picture
Maris AI model sync
f440f03 verified
{"timestamp": "2026-04-06T01:00:00Z", "type": "code", "prompt": "Write a Python validator that checks a saved training output directory for README.md, training-provenance.json, training-config.json, training-metrics.json, and maris-metadata.json, then reports missing artifacts as structured JSON.", "metadata": {"language": "python", "task": "artifact-validation", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "core-python", "audience": "ml-ops"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:02:00Z", "type": "code", "prompt": "Generate a Rust helper for the backend that returns a consistent JSON 401 response when the access token is missing, expired, or fails signature validation.", "metadata": {"language": "rust", "task": "auth-hardening", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "backend-rust", "audience": "api"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:04:00Z", "type": "code", "prompt": "Create a TypeScript React hook that polls an operations endpoint, merges the newest eval summary into local state, and exposes loading, stale, and error flags for the dashboard.", "metadata": {"language": "typescript", "task": "dashboard-state", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:06:00Z", "type": "code", "prompt": "Write a SQL query that groups evaluation runs by date, counts passed and failed runs, and highlights regressions where the pass rate drops below the previous seven-day average.", "metadata": {"language": "sql", "task": "eval-analytics", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "operations", "audience": "analytics"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:08:00Z", "type": "code", "prompt": "Produce a Bash script that safely uploads the Maris dataset only when the local data directory passes JSONL validation and the required Hugging Face environment variables are present.", "metadata": {"language": "bash", "task": "dataset-sync", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "huggingface", "audience": "devops"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:10:00Z", "type": "code", "prompt": "Implement a Python dataset auditor that scans all Maris bootstrap JSONL files, enforces required top-level keys by category, and prints a concise summary of record counts and schema violations.", "metadata": {"language": "python", "task": "dataset-audit", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "data", "audience": "ml-ops"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:12:00Z", "type": "code", "prompt": "Generate a Rust SSE parser that normalizes autonomous status events into a typed enum with variants for checkpoints, approvals, replay cursors, and failover mode changes.", "metadata": {"language": "rust", "task": "stream-normalization", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "backend-rust", "audience": "runtime"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:14:00Z", "type": "code", "prompt": "Write a TypeScript utility that converts the /api/system response into UI-friendly sections for capability registry, governance, memory, tooling, and autonomous runtime panels.", "metadata": {"language": "typescript", "task": "manifest-formatting", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:16:00Z", "type": "code", "prompt": "Create a Python helper that resolves persona identifiers, validates the persona exists, and returns a prompt prefix plus response metadata for text generation.", "metadata": {"language": "python", "task": "persona-resolution", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "core-python", "audience": "inference"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:18:00Z", "type": "code", "prompt": "Draft a GitHub Actions workflow that runs Python tests, Rust tests, frontend linting, and dataset JSONL validation before allowing a production branch merge.", "metadata": {"language": "yaml", "task": "ci-orchestration", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "github-actions", "audience": "platform"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:20:00Z", "type": "code", "prompt": "Implement a Python routine that builds a deterministic inventory of model artifacts, computes SHA256 checksums, and saves the result alongside training provenance for release review.", "metadata": {"language": "python", "task": "release-audit", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "core-python", "audience": "release-engineering"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:22:00Z", "type": "code", "prompt": "Generate a Rust abstraction that wraps backend calls to core-python, records latency, categorizes failures, and emits operator-friendly diagnostics for chat routing issues.", "metadata": {"language": "rust", "task": "bridge-observability", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "backend-rust", "audience": "platform"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:24:00Z", "type": "code", "prompt": "Write a TypeScript reducer for autonomous session playback that merges stream events, polling snapshots, and resume tokens without duplicating checkpoints in the UI timeline.", "metadata": {"language": "typescript", "task": "autonomous-playback", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "frontend", "audience": "runtime"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-06T01:26:00Z", "type": "code", "prompt": "Create a Python deduplication pipeline that hashes prompt-level bootstrap records, preserves category balance, and removes near-duplicate examples before training export.", "metadata": {"language": "python", "task": "dataset-curation", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "data", "audience": "ml-ops"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T21:30:00Z", "type": "code", "prompt": "Salabo Python helperi normalize_email(email: str), lai tas noņem atstarpes, normalizē lower-case un met ValueError tukšai ievadei.", "target_file": "core-python/maris_core/utils/validators.py", "buggy_code": "def normalize_email(email: str) -> str:\n return email.lower()", "tests": ["assert normalize_email(' A@Example.COM ') == 'a@example.com'", "with pytest.raises(ValueError): normalize_email(' ')"], "edge_cases": ["tukša ievade", "jau normalizēts email"], "completion": "```python\ndef normalize_email(email: str) -> str:\n normalized = email.strip().lower()\n if not normalized:\n raise ValueError('email is required')\n return normalized\n```", "metadata": {"language": "python", "task": "bugfix", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "core-python", "audience": "inference"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T21:31:00Z", "type": "code", "prompt": "Refaktorē TypeScript retry helperi, lai tas atbalsta exponential backoff un attempts=0 gadījumu bez duplikāta koda.", "target_file": "frontend/lib/retry.ts", "context": "Esošais helperis dubulto delay aprēķinu divās funkcijās.", "acceptance_criteria": ["nav duplikāta delay aprēķinam", "attempts=0 atgriež 0", "ir skaidra funkcijas signatūra"], "edge_cases": ["attempts=0", "liels attempts skaits"], "completion": "```ts\nexport function nextDelay(attempt: number, baseMs = 250): number {\n if (attempt <= 0) return 0;\n return baseMs * 2 ** (attempt - 1);\n}\n```", "metadata": {"language": "typescript", "task": "refactor", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T21:32:00Z", "type": "code", "prompt": "Izveido repo-level uzdevuma draftu SSE event nosaukumu saskaņošanai starp Rust backend un Next.js frontend.", "repo_context": ["backend-rust/src/api/chat.rs", "frontend/app/chat/page.tsx"], "diff": "Backend šobrīd sūta 'complete', frontend sagaida stabilu delta/complete plūsmu ar vienādiem event nosaukumiem.", "acceptance_criteria": ["nosaukti abi faili", "skaidri migrācijas soļi", "ir testu plāns"], "completion": "1. Pārlabo backend event kontraktu uz vienotu event nosaukumu karti.\n2. Atjauno frontend parseri un testus.\n3. Pievieno regresijas testu delta/complete secībai.", "metadata": {"language": "markdown", "task": "repo-level", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "full-stack", "audience": "platform"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T21:33:00Z", "type": "code", "prompt": "Uzraksti Pytest testus parse_port(raw: str) helperim, kas pārbauda success path un nederīgu ievadi.", "target_file": "core-python/tests/test_port_parser.py", "context": "Helperim jāmet ValueError pie tukšas, ne-skaitliskas vai ārpus diapazona ievades.", "tests": ["assert parse_port('8080') == 8080", "with pytest.raises(ValueError): parse_port('abc')"], "completion": "```python\nimport pytest\n\nfrom app.net import parse_port\n\n\ndef test_parse_port_accepts_valid_port() -> None:\n assert parse_port('8080') == 8080\n\n\ndef test_parse_port_rejects_invalid_values() -> None:\n for raw in ('', 'abc', '0', '70000'):\n with pytest.raises(ValueError):\n parse_port(raw)\n```", "metadata": {"language": "python", "task": "test-writing", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "core-python", "audience": "qa"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T21:34:00Z", "type": "code", "prompt": "Uzraksti Python funkciju parse_port(raw: str) -> int ar edge-case validāciju 1..65535 diapazonam.", "target_file": "core-python/maris_core/net.py", "edge_cases": ["tukša virkne", "ne-skaitliska ievade", "0", "70000"], "tests": ["assert parse_port('8080') == 8080", "with pytest.raises(ValueError): parse_port('70000')"], "completion": "```python\ndef parse_port(raw: str) -> int:\n normalized = raw.strip()\n if not normalized or not normalized.isdigit():\n raise ValueError('invalid port')\n port = int(normalized)\n if port < 1 or port > 65535:\n raise ValueError('invalid port')\n return port\n```", "metadata": {"language": "python", "task": "edge-cases", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "core-python", "audience": "backend"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T21:35:00Z", "type": "code", "prompt": "Izveido Rust bugfix piemēru konfigurācijas loaderim, kas tukšā env porta gadījumā nelietderīgi panic un vietā jāatgriež strukturēta kļūda.", "target_file": "backend-rust/src/config.rs", "buggy_code": "let port: u16 = std::env::var(\"PORT\").unwrap().parse().unwrap();", "acceptance_criteria": ["nav panic uz tukšu env", "atgriež Result", "kļūda ir operatoram saprotama"], "completion": "```rust\npub fn load_port() -> Result<u16, String> {\n let raw = std::env::var(\"PORT\").map_err(|_| \"PORT is missing\".to_string())?;\n raw.parse::<u16>().map_err(|_| \"PORT is invalid\".to_string())\n}\n```", "metadata": {"language": "rust", "task": "bugfix", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "backend-rust", "audience": "platform"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T23:22:00Z", "type": "code", "prompt": "Salāgo Rust backend un TypeScript frontend SSE kontraktu, lai delta/complete event nosaukumi un payload lauki būtu konsekventi abās pusēs.", "repo_context": ["backend-rust/src/api/chat.rs", "frontend/app/chat/page.tsx"], "diff": "Backend sūta delta/complete eventus ar atšķirīgiem lauku nosaukumiem, bet frontend parseris sagaida stabilu `delta`/`complete` payload shape.", "acceptance_criteria": ["nosaukti abi faili", "ir migrācijas secība bez breaking deploy", "pieminēti testi backend un frontend pusē"], "completion": "1. Backendā nostiprini vienotu SSE event enum/payload kontraktu priekš `delta` un `complete`.\n2. Frontend parserī atjauno event field mapping un pievieno regresijas testus stream secībai.\n3. Rolloutā ievies feature flag vai backward-compatible payload pāreju, līdz abi klienti ir sinhroni.", "metadata": {"language": "markdown", "task": "repo-level", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "full-stack", "audience": "platform"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T23:23:00Z", "type": "code", "prompt": "Salabo Rust konfigurācijas loaderi backend-rust/src/config.rs, lai PORT, CORE_PYTHON_URL un HF token parsing kļūdas neatstāj panic/unwrap trace, bet atgriež operatoram skaidru Result kļūdu.", "target_file": "backend-rust/src/config.rs", "buggy_code": "let port: u16 = std::env::var(\"PORT\").unwrap().parse().unwrap();", "acceptance_criteria": ["nav unwrap uz obligātajiem env", "Result kļūdas ir lietojamas operatoram", "norādīts kā testēt tukšu un nederīgu PORT"], "completion": "```rust\npub fn load_port() -> Result<u16, String> {\n let raw = std::env::var(\"PORT\").map_err(|_| \"PORT is missing\".to_string())?;\n raw.parse::<u16>().map_err(|_| \"PORT is invalid\".to_string())\n}\n```", "metadata": {"language": "rust", "task": "bugfix", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "backend-rust", "audience": "platform"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T23:24:00Z", "type": "code", "prompt": "Uzraksti TypeScript patch frontend/app/chat/page.tsx stream parserim, lai tas nepieļauj dubultotu final assistant ziņu, kad complete event atnāk pēc pēdējā delta chunk.", "target_file": "frontend/app/chat/page.tsx", "context": "Esošais parseris pie complete event reizēm appendo final content vēlreiz.", "acceptance_criteria": ["nav dubultota assistant atbilde", "delta chunki joprojām renderējas inkrementāli", "tests sedz delta->complete secību"], "completion": "```ts\nif (event.type === 'complete') {\n setMessages((items) => items.map((item) =>\n item.id === assistantId ? { ...item, content: finalText ?? item.content } : item,\n ));\n return;\n}\n```", "metadata": {"language": "typescript", "task": "bugfix", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T23:25:00Z", "type": "code", "prompt": "Uzraksti SQL vaicājumu, kas apkopo benchmark execution pass rate pa branch un language, izmantojot benchmark_results un execution_results tabulas, un iezīmē branchus zem 0.8 execution sliekšņa.", "target_file": "analytics/sql/execution_regressions.sql", "tests": ["branch zem 0.8 ir izcelts", "aggregācija notiek pa branch un language"], "completion": "```sql\nSELECT\n b.branch,\n e.language,\n AVG(CASE WHEN e.passed THEN 1.0 ELSE 0.0 END) AS execution_pass_rate,\n CASE WHEN AVG(CASE WHEN e.passed THEN 1.0 ELSE 0.0 END) < 0.8 THEN 1 ELSE 0 END AS is_regression\nFROM benchmark_results b\nJOIN execution_results e ON e.benchmark_run_id = b.id\nGROUP BY b.branch, e.language;\n```", "metadata": {"language": "sql", "task": "repo-level", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "operations", "audience": "analytics"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T23:26:00Z", "type": "code", "prompt": "Refaktorē Rust helperi backend-rust/src/inference/python_bridge.rs tā, lai timeout, stderr un invalid JSON kļūdas tiek serializētas vienotā typed error struktūrā bez copy-paste match blokiem.", "target_file": "backend-rust/src/inference/python_bridge.rs", "context": "Esošais error mapping atkārtojas vairākās vietās un grūti auditēt incidentos.", "acceptance_criteria": ["vienota typed error struktūra", "timeout un invalid JSON ir atšķirami", "nav copy-paste match bloku"], "completion": "```rust\n#[derive(Debug)]\npub enum BridgeError {\n Timeout,\n InvalidJson(String),\n Stderr(String),\n}\n```", "metadata": {"language": "rust", "task": "refactor", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "backend-rust", "audience": "runtime"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T23:27:00Z", "type": "code", "prompt": "Uzraksti TypeScript compile-safe helperi, kas validē chat stream event payload shape ar discriminated union un neļauj UI kodā piekļūt neeksistējošiem laukiem.", "target_file": "frontend/lib/chat-events.ts", "edge_cases": ["delta event bez text", "complete event bez done flag", "nezināms event type"], "completion": "```ts\nexport type ChatStreamEvent =\n | { type: 'delta'; text: string }\n | { type: 'complete'; done: true; text?: string }\n | { type: 'route'; route: string };\n```", "metadata": {"language": "typescript", "task": "auth-hardening", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T23:28:00Z", "type": "code", "prompt": "Uzraksti SQL migrācijas pārbaudes helperi, kas atrod nedrošas string concatenation WHERE klauzulas un iesaka parametrizētus placeholderus benchmark/event query slānī.", "target_file": "analytics/sql/query_audit.sql", "acceptance_criteria": ["identificē string concatenation pattern", "iesaka parametrizētu alternatīvu", "sedz benchmark un event query lietojumus"], "completion": "```sql\nSELECT query_name, query_text\nFROM stored_queries\nWHERE query_text LIKE '%||%'\n AND query_text LIKE '%WHERE%';\n```", "metadata": {"language": "sql", "task": "unsafe", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "operations", "audience": "security"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-15T23:29:00Z", "type": "code", "prompt": "Uzraksti repo-level patch plānu, kas pievieno coder execution benchmarkus core-python training pipeline un GitHub Actions bez tā, ka TypeScript harness kļūst optional vai neauditēts.", "repo_context": ["core-python/maris_core/code/execution_eval.py", ".github/workflows/core-train.yml", ".github/workflows/lint-and-test.yml"], "diff": "Pašlaik execution eval ir vairāk framework līmenī, bet CI/HF workflow soļos nav skaidri izdalīts execution benchmark smoke pārklājums.", "acceptance_criteria": ["norādīti workflow faili", "pieminēts TypeScript support install solis", "ir benchmark smoke un training pipeline piesaiste"], "completion": "1. Paplašini execution eval ar TypeScript/SQL harness un stingriem resource limitiem.\n2. Lint-and-test un core-train workflowos pievieno explicit benchmark smoke/test soļus.\n3. Coder branch defaultiem piesaisti execution-rich benchmark datasetu un preference datasetu artefaktos.", "metadata": {"language": "markdown", "task": "repo-level", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "github-actions", "audience": "platform"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T00:00:00Z", "type": "code", "prompt": "Izveido repo-wide patch plānu benchmark vēstures un regression tracking slānim, kas glabā execution benchmark history, salīdzina pret iepriekšējo runu un izceļ regressions pa language/category.", "repo_context": ["core-python/maris_core/text/benchmark.py", "core-python/maris_core/training/train.py", "core-python/scripts/eval_model.py"], "diff": "Pašlaik benchmark manifesti ir vienreizēji artefakti bez vēstures, baseline salīdzinājuma vai language/category regresiju pārskata.", "acceptance_criteria": ["glabā benchmark-history artefaktu", "ir benchmark-regression-report ar language/category delta", "evaluate/training plūsmas saglabā artefaktus"], "completion": "1. Benchmark manifestā pievieno generated_at un language/category kopsavilkumus.\n2. Treniņa/eval plūsmā saglabā benchmark-history.json un benchmark-regression-report.json.\n3. Salīdzini current run pret baseline un izcel negatīvas deltas pa category un execution language.", "metadata": {"language": "markdown", "task": "repo-level", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "core-python", "audience": "ml-ops"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T00:01:00Z", "type": "code", "prompt": "Balstoties uz frontend/app/chat/page.tsx un frontend/tests/chat.test.tsx, uzraksti multi-file bugfix patch, kas novērš dubultotu assistant final ziņu complete event laikā un saglabā delta inkrementālo renderēšanu.", "repo_context": ["frontend/app/chat/page.tsx", "frontend/tests/chat.test.tsx"], "target_file": "frontend/app/chat/page.tsx", "context": "UI reizēm appendo final content vēlreiz pēc pēdējā delta chunk, tāpēc jāmaina parseris un tests vienlaikus.", "acceptance_criteria": ["nav dubultota assistant atbilde", "delta chunki paliek inkrementāli", "tests sedz delta->complete secību"], "completion": "```ts\nif (event.type === 'complete') {\n setMessages((items) => items.map((item) =>\n item.id === assistantId ? { ...item, content: finalText ?? item.content } : item,\n ));\n return;\n}\n```\nPapildini testu ar delta un complete secību vienā scenārijā.", "metadata": {"language": "typescript", "task": "bugfix", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T00:02:00Z", "type": "code", "prompt": "Apraksti refactor patch backend-rust/src/inference/python_bridge.rs un backend-rust/src/api/chat.rs, kas ievieš vienotu typed error modeli timeout/stderr/invalid JSON kļūdām, bet nesalauž incident recovery un esošos response mapping testus.", "repo_context": ["backend-rust/src/inference/python_bridge.rs", "backend-rust/src/api/chat.rs"], "diff": "Esošais error mapping atkārtojas vairākos match blokos; refactors ar regresiju riskiem var salauzt chat API kļūdu semantiku incidentu laikā.", "acceptance_criteria": ["vienots typed error modelis", "ir backward-compatible mapping uz API kļūdām", "pieminēti regresijas testi timeout/stderr/invalid JSON scenārijiem"], "completion": "1. Iznes bridge kļūdu klasifikāciju atsevišķā typed enum/struct.\n2. Saglabā API robežā backward-compatible status un ziņojumu mappingu.\n3. Pievieno testus timeout, stderr un invalid JSON degradācijas scenārijiem.", "metadata": {"language": "rust", "task": "refactor", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "backend-rust", "audience": "runtime"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T00:03:00Z", "type": "code", "prompt": "Uzraksti CI debugging un incident recovery patch plānu gadījumam, kad .github/workflows/core-train.yml un core-python/scripts/eval_model.py pārstāj publicēt coder benchmark history/regression artefaktus pēc workflow runa.", "repo_context": [".github/workflows/core-train.yml", ".github/workflows/lint-and-test.yml", "core-python/scripts/eval_model.py"], "diff": "Execution benchmark steps joprojām skrien, bet history/regression artefakti neparādās upload bundle vai output/model direktorijā.", "acceptance_criteria": ["nosaukts workflow un eval entrypoint", "ir diagnostikas secība", "ir rollback/repair soļi incident recovery vajadzībām"], "completion": "1. Pārbaudi, vai eval_model tiešām palaiž benchmark manifest un raksta artefaktus output_dir.\n2. Workflow līmenī saglabā output/model benchmark-history un benchmark-regression artefaktus upload bundle.\n3. Incident recovery laikā atjauno baseline no pēdējā veiksmīgā artefakta un piesedz ar smoke testu.", "metadata": {"language": "yaml", "task": "ci-orchestration", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "github-actions", "audience": "platform"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T00:04:00Z", "type": "code", "prompt": "Izveido incident-response uzdevuma draftu, kas salīdzina backend-rust/src/api/chat.rs un core-python/maris_core/text/generate.py degradācijas ķēdi, kad core-python atgriež 503/fallback un vajag ātru rollback plus papildu diagnostiku.", "repo_context": ["backend-rust/src/api/chat.rs", "core-python/maris_core/text/generate.py"], "diff": "Operators redz intermitējošus 503 un fallback_used, bet incidentu laikā trūkst vienotas rollback/diagnostikas secības starp backend un core-python.", "acceptance_criteria": ["ir rollback secība", "nosaukti abi faili", "pieminēti signāli/logi un regresijas tests"], "completion": "1. Nosaki, kur backend kartē 503/fallback scenārijus un kā tie tiek atgriezti klientam.\n2. Pievieno diagnostikas logu un structured metadata pārbaudi par fallback_used.\n3. Sagatavo rollback secību un regresijas testu degradācijas ceļam.", "metadata": {"language": "markdown", "task": "repo-level", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "full-stack", "audience": "operations"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T18:48:00Z", "type": "code", "prompt": "Uzraksti latvisku patch aprakstu frontend/lib/retry.ts refactoram tā, lai teksts saglabā profesionālu toni un dabiski miksē `retry`, `backoff`, `timeout` un `edge cases` terminus.", "target_file": "frontend/lib/retry.ts", "context": "Lietotājam vajag īsu, tehnisku aprakstu PR vai review komentāram, nevis mehāniski pārtulkotu tekstu.", "acceptance_criteria": ["piemin retry/backoff/timeout", "ir dabiska latviešu valoda", "norādīti edge cases un testi"], "completion": "Šajā patch mēs izceļam vienu `nextDelay` aprēķina ceļu, lai `retry` uzvedība būtu deterministiska un viegli testējama. `attempt <= 0` tagad atgriež `0`, `backoff` formula ir vienā vietā, un review piezīmēs ir skaidri nosaukti edge cases: nulle, lieli attempt skaiti un timeout konfigurācijas ietekme uz caller loģiku.", "metadata": {"language": "typescript", "task": "refactor", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T18:50:00Z", "type": "code", "prompt": "Apraksti Rust code review komentāru backend-rust/src/api/chat.rs izmaiņām tā, lai saglabājas `feature flag`, `rollback` un `backward-compatible` termini, bet teksts paliek dabiskā latviešu valodā.", "repo_context": ["backend-rust/src/api/chat.rs"], "target_file": "backend-rust/src/api/chat.rs", "acceptance_criteria": ["ir skaidrs risks un rollout secība", "termini nav burtiski pārtulkoti", "pieminēta backward-compatible pāreja"], "completion": "Review komentārā nosauc tieši to, ko patch dara: jaunais SSE ceļš ir ielikts aiz `feature flag`, klientiem sākumā tiek saglabāta `backward-compatible` payload forma, un rollback scenārijs ir saprotams bez papildu minējumiem. Tas ir profesionālāks par burtisku terminu tulkošanu, jo operators uzreiz redz risku, rollout secību un to, kurā brīdī var droši izslēgt flag.", "metadata": {"language": "rust", "task": "repo-level", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "backend-rust", "audience": "platform", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T18:52:00Z", "type": "code", "prompt": "Uzraksti TypeScript helperi chat stream event payloadiem un paskaidro latviski, kāpēc `delta`, `complete` un `payload` terminus nav jātulko burtiski.", "target_file": "frontend/lib/chat-events.ts", "edge_cases": ["delta event bez text", "complete event bez done flag", "nezināms event type"], "completion": "```ts\nexport type ChatStreamEvent =\n | { type: 'delta'; text: string }\n | { type: 'complete'; done: true; text?: string }\n | { type: 'route'; route: string };\n```\nŠeit termini `delta`, `complete` un `payload` tiek atstāti oriģinālajā formā, jo tie ir daļa no stabila event kontrakta. Latviski paskaidrojam invariantu un apstrādes loģiku, bet pašu kontrakta terminoloģiju netulkojam uz mākslīgiem aizvietojumiem, kas review un debugging laikā tikai mulsinātu.", "metadata": {"language": "typescript", "task": "refactor", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T18:54:00Z", "type": "code", "prompt": "Uzraksti latvisku incidenta status update par Python bridge timeout degradāciju tā, lai korekti tiek lietoti `timeout`, `stderr`, `invalid JSON`, `rollback` un `hotfix` termini.", "repo_context": ["backend-rust/src/inference/python_bridge.rs", "backend-rust/src/api/chat.rs"], "diff": "Operators redz timeout pieaugumu un neregulārus invalid JSON kļūdu pīķus pēc nesena deploy.", "acceptance_criteria": ["ir impact apraksts", "ir current mitigation", "termini ir profesionāli un dabiski iemiksēti"], "completion": "Pašlaik redzam palielinātu `timeout` skaitu Python bridge ceļā un atsevišķus `invalid JSON` / `stderr` gadījumus pēc pēdējā deploy. Ietekme skar daļu chat pieprasījumu, tāpēc current mitigation ir piesardzīgs `rollback` uz pēdējo stabilo build un paralēls `hotfix` sagatavošanas darbs ar papildu diagnostiku bridge slānī. Nākamais checkpoint ir pēc logu un reproducējamā scenārija verifikācijas.", "metadata": {"language": "markdown", "task": "ci-orchestration", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "operations", "audience": "platform", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T19:16:00Z", "type": "code", "prompt": "Uzraksti multi-turn debugging atbildi latviešu valodā situācijai, kur lietotājs jau iepriekš minējis, ka flaky tests parādās tikai CI, un tagad vajag nākamo soli ap `.github/workflows/lint-and-test.yml` un `frontend/tests/chat.test.tsx`.", "repo_context": [".github/workflows/lint-and-test.yml", "frontend/tests/chat.test.tsx"], "context": "Atbildei jāturpina iepriekšējais konteksts, nevis jāsāk no nulles.", "acceptance_criteria": ["atsaucas uz iepriekš minēto flaky CI kontekstu", "nosauc workflow un test failu", "dod konkrētu nākamo soli"], "completion": "Balstoties uz to, ko jau minēji par flaky uzvedību tikai CI, es vispirms salīdzinātu workflow vidi ar lokālo testu izpildi un pārbaudītu, vai `frontend/tests/chat.test.tsx` nav atkarīgs no timing vai event secības, kas CI skrien citā tempā. Praktiski nākamais solis ir apskatīt `.github/workflows/lint-and-test.yml` job konfigurāciju un pievienot vienu stabilu regresijas scenāriju tieši delta->complete secībai.", "metadata": {"language": "typescript", "task": "debugging", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui", "response_language": "lv", "style": "technical-latvian", "conversation_mode": "multi-turn"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T19:18:00Z", "type": "code", "prompt": "Iedod pairwise-quality labāku atbildi par SQL migration review, kur jāsaglabā precīzi termini `migration`, `schema drift`, `rollback window` un `data backfill`.", "target_file": "infra/migrations/release_notes.md", "acceptance_criteria": ["piemin migration riskus", "saglabā profesionālus EN terminus", "ir dabiska latviešu valoda"], "completion": "Šajā review komentārā svarīgi nosaukt, vai `migration` rada `schema drift` risku starp veco un jauno aplikācijas versiju, cik plata ir `rollback window` un vai `data backfill` notiek sinhroni vai asinhroni. Tas palīdz operatoram saprast ne tikai izmaiņu saturu, bet arī secību, verifikācijas punktus un to, vai deploy laikā var rasties īslaicīgs performance kritums.", "metadata": {"language": "markdown", "task": "repo-level", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "infra", "audience": "operations", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T19:20:00Z", "type": "code", "prompt": "Uzraksti Python helpera review atbildi latviski, kur lietotājs prasa, lai `normalize_header_name` būtu case-insensitive, neizmetu `None`, un korekti apstrādātu edge cases.", "target_file": "core-python/maris_core/utils/http.py", "edge_cases": ["None ievade", "tukša virkne", "headeri ar liekām atstarpēm"], "completion": "```python\ndef normalize_header_name(value: str | None) -> str:\n normalized = (value or '').strip().lower()\n if not normalized:\n return ''\n return '-'.join(part for part in normalized.split('-') if part)\n```\nŠis variants ir case-insensitive, nemet izņēmumu pie `None`, un review skaidrojumā ir skaidri izcelti edge cases: tukša ievade, liekas atstarpes un header segmenti ar dubultām defisēm. Tā ir daudz profesionālāka atbilde nekā vispārīgs ieteikums \"sakārto stringu\".", "metadata": {"language": "python", "task": "bugfix", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "core-python", "audience": "runtime", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T19:22:00Z", "type": "code", "prompt": "Apraksti dabisku latviešu code review komentāru par observability patch, kur tiek pievienoti `structured logs`, `request_id`, `trace_id` un `sampling` noteikumi.", "repo_context": ["backend-rust/src/api/chat.rs", "core-python/maris_core/utils/logging.py"], "acceptance_criteria": ["nosauc structured logs un tracing terminus", "ir dabiska latviešu valoda", "piemin operatoru ieguvumu"], "completion": "Komentārā pasaki, ka patch nav tikai par papildu logiem: tas ievieš `structured logs`, piesaista `request_id` un `trace_id` katram request ceļam un definē `sampling` robežas, lai diagnostika būtu pilnvērtīga arī zem lielākas slodzes. Tas operatoriem palīdz ātrāk korelēt incidentus starp servisiem un izvairās no miglaina, pārtulkota teksta.", "metadata": {"language": "markdown", "task": "repo-level", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "observability", "audience": "platform", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T19:24:00Z", "type": "code", "prompt": "Uzraksti TypeScript pairwise-style labu atbildi par `AbortController` izmantošanu fetch retry helperī, saglabājot terminus `request lifecycle`, `timeout budget`, `cancellation` un `retry policy`.", "target_file": "frontend/lib/fetch-with-retry.ts", "acceptance_criteria": ["piemin AbortController un request lifecycle", "ir tehniska latviešu valoda", "nav burtisku terminu tulkojumu"], "completion": "Labs variants paskaidro, ka `AbortController` jāvada kā daļa no visa `request lifecycle`, nevis tikai timeout workaround. `timeout budget` un `retry policy` jābūt saskaņotiem, lai `cancellation` notiktu paredzami un calleris nesaņemtu dubultu vai pretrunīgu state. Šāds skaidrojums saglabā profesionālu LV+EN terminoloģiju un ir noderīgs review laikā.", "metadata": {"language": "typescript", "task": "refactor", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "frontend", "audience": "ui", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T19:26:00Z", "type": "code", "prompt": "Uzraksti Rust incidenta status update par `circuit breaker` atvēršanos inference servisā, saglabājot terminus `trip threshold`, `fallback path` un `error budget`.", "repo_context": ["backend-rust/src/inference/python_bridge.rs"], "acceptance_criteria": ["ir impact", "ir mitigation", "termini ir profesionāli iemiksēti"], "completion": "Inference servisā `circuit breaker` ir sasniedzis `trip threshold`, tāpēc daļa requestu tiek novirzīta caur `fallback path`. Pašlaik ietekme ir kontrolēta, bet tā patērē mūsu `error budget`, tāpēc mitigation pusē samazinām slodzi, pārbaudām upstream timeoutus un sagatavojam rollback, ja degradācija turpināsies. Šāds update ir īss, faktoloģisks un tehniski korekts.", "metadata": {"language": "rust", "task": "ci-orchestration", "difficulty": "senior", "generated_by": "Maris AI", "project_area": "backend-rust", "audience": "operations", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T19:28:00Z", "type": "code", "prompt": "Apraksti multi-turn support atbildi latviski, ja iepriekšējā ziņā lietotājs prasīja augsta līmeņa plānu, bet tagad prasa konkretizēt test strategy `core-python/tests/test_text_benchmark.py` un `core-python/evals/chat_eval_dataset.json`.", "repo_context": ["core-python/tests/test_text_benchmark.py", "core-python/evals/chat_eval_dataset.json"], "context": "Atbildei jāturpina iepriekšējā saruna un jāparāda, ka asistents atceras iepriekš pieņemto plāna struktūru.", "acceptance_criteria": ["turpina iepriekšējo sarunu", "nosauc abus failus", "iedod konkrētu test strategy"], "completion": "Turpinot iepriekšējo plānu, nākamais konkrētais bloks ir benchmark pārklājums: `core-python/evals/chat_eval_dataset.json` jāpapildina ar multi-turn gadījumiem, bet `core-python/tests/test_text_benchmark.py` jāpiesedz history ielāde un long-context scoring. Tas ir loģisks turpinājums jau iepriekš saskaņotajai struktūrai, nevis jauns plāns no nulles.", "metadata": {"language": "markdown", "task": "test-writing", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "core-python", "audience": "ml-ops", "response_language": "lv", "style": "technical-latvian", "conversation_mode": "multi-turn"}, "source": "maris-production-bootstrap", "branch": "coder"}
{"timestamp": "2026-04-16T19:30:00Z", "type": "code", "prompt": "Uzraksti latvisku paskaidrojumu par YAML deploy konfigurācijas review, kur jālieto termini `environment override`, `secret injection`, `concurrency group` un `manual approval`.", "repo_context": [".github/workflows/deploy-platform.yml"], "acceptance_criteria": ["piemin workflow terminus oriģinālajā formā", "ir profesionāls tonis", "nav neveiklu tulkojumu"], "completion": "Deploy review piezīmē skaidri pasaki, kā `environment override` ietekmē konkrēto job, kur notiek `secret injection`, kāpēc izvēlēts konkrētais `concurrency group` un kurā punktā ir vajadzīgs `manual approval`. Šādi komentāri ir daudz vērtīgāki par burtisku YAML terminu tulkošanu, jo tie palīdz reviewerim ātri saprast risku un execution secību.", "metadata": {"language": "yaml", "task": "repo-level", "difficulty": "mid", "generated_by": "Maris AI", "project_area": "github-actions", "audience": "platform", "response_language": "lv", "style": "technical-latvian"}, "source": "maris-production-bootstrap", "branch": "coder"}