From b52b6daaf0ee2738e7f3875b7478da3058ebeaf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Mon, 9 Nov 2026 13:34:18 +0000 Subject: [PATCH] Contract and tokens pinned to server dev 3222c7c: the scheduling fixtures The server's /api/v2 scheduling routes landed on dev (ec847ed, 3222c7c): schedules, their runs, compile and preview, the scheduling models, and the person's /events. fetch-contract adds their eight fixtures; tokens and strings are unchanged at that commit. Co-Authored-By: Claude Opus 5.5 --- .../eu/llembas/android/ui/theme/Tokens.kt | 2 +- contract/event_schedules.json | 89 +++++++++++++++++++ contract/lock.json | 6 +- contract/schedule.json | 86 ++++++++++++++++++ contract/schedule_compile.json | 29 ++++++ contract/schedule_models.json | 60 +++++++++++++ contract/schedule_preview.json | 6 ++ contract/schedule_run.json | 33 +++++++ contract/schedule_runs.json | 68 ++++++++++++++ contract/schedules.json | 88 ++++++++++++++++++ tokens.lock.json | 6 +- 11 files changed, 466 insertions(+), 7 deletions(-) create mode 100644 contract/event_schedules.json create mode 100644 contract/schedule.json create mode 100644 contract/schedule_compile.json create mode 100644 contract/schedule_models.json create mode 100644 contract/schedule_preview.json create mode 100644 contract/schedule_run.json create mode 100644 contract/schedule_runs.json create mode 100644 contract/schedules.json diff --git a/app/src/main/java/eu/llembas/android/ui/theme/Tokens.kt b/app/src/main/java/eu/llembas/android/ui/theme/Tokens.kt index e55c0eb..7cec721 100644 --- a/app/src/main/java/eu/llembas/android/ui/theme/Tokens.kt +++ b/app/src/main/java/eu/llembas/android/ui/theme/Tokens.kt @@ -1,4 +1,4 @@ -// Generated by scripts/fetch-tokens.py from the LLeMbas server's tokens.css at v2.0.0-beta.5. Do not edit. +// Generated by scripts/fetch-tokens.py from the LLeMbas server's tokens.css at 3222c7c6c9633fc6941cfaa63ac074624e689410. Do not edit. package eu.llembas.android.ui.theme import androidx.compose.ui.graphics.Color diff --git a/contract/event_schedules.json b/contract/event_schedules.json new file mode 100644 index 0000000..43f754a --- /dev/null +++ b/contract/event_schedules.json @@ -0,0 +1,89 @@ +{ + "version": "597aab1ff7b62194", + "schedules": [ + { + "id": "sched1", + "title": "Waybread check", + "instruction": "Check the waybread is wrapped.", + "request": "every second Monday at 7:30", + "rule": { + "at": { + "nth": [ + { + "n": 2, + "weekday": 0 + } + ], + "times": [ + "07:30" + ] + } + }, + "description": "On the second Monday of each month at 07:30", + "timezone": "UTC", + "enabled": true, + "next_run": "2026-01-12T07:30:00+00:00", + "next_runs": [ + "2026-01-12T07:30:00+00:00", + "2026-02-09T07:30:00+00:00", + "2026-03-09T07:30:00+00:00", + "2026-04-13T07:30:00+00:00", + "2026-05-11T07:30:00+00:00" + ], + "target": "chat", + "mode": "fresh", + "notify": "matters", + "catch_up": "one", + "grace_minutes": null, + "model": "qwen", + "effort": "high", + "agents": null, + "tools": [ + "files", + "recall", + "search", + "fetch", + "memory", + "skills", + "plan" + ], + "origin": "user", + "chat_id": "chat1", + "fired_count": 3, + "failure_streak": 0, + "last_error": null, + "last_run": { + "id": "run1", + "schedule_id": "sched1", + "status": "ok", + "timing": "late", + "missed": 0, + "due_at": "2026-01-02T03:04:05+00:00", + "started_at": "2026-01-02T03:04:05+00:00", + "finished_at": "2026-01-02T03:04:05+00:00", + "waiting_for": null, + "retry_at": null, + "attempts": 1, + "model": { + "id": "gpt-oss", + "name": "GPT-OSS", + "reason": "switched", + "switched_from": "Qwen" + }, + "tokens": { + "prompt": 1200, + "completion": 340 + }, + "cost": null, + "chat_id": "chat1", + "message_id": "msg2", + "report_path": null, + "preview": "All the waybread is wrapped.", + "error": null, + "notified": true + }, + "running": false, + "created_at": "2026-01-02T03:04:05+00:00" + } + ] +} diff --git a/contract/lock.json b/contract/lock.json index 9445191..cfe5840 100644 --- a/contract/lock.json +++ b/contract/lock.json @@ -1,5 +1,5 @@ { - "ref": "v2.0.0-beta.5", - "commit": "02d0c874434e3b726193bf94fb9741b4f8d0a22c", - "sha256": "3dccc2ca7eb5789b71506edeaeffe93acc95e05c2cc4c31eabde164546c4dea3" + "ref": "3222c7c6c9633fc6941cfaa63ac074624e689410", + "commit": "3222c7c6c9633fc6941cfaa63ac074624e689410", + "sha256": "26e1454b56e2a4b1cff7c3e14ab4e497d086b5121d119d9aad89150e3aa1537c" } diff --git a/contract/schedule.json b/contract/schedule.json new file mode 100644 index 0000000..234dbeb --- /dev/null +++ b/contract/schedule.json @@ -0,0 +1,86 @@ +{ + "schedule": { + "id": "sched1", + "title": "Waybread check", + "instruction": "Check the waybread is wrapped.", + "request": "every second Monday at 7:30", + "rule": { + "at": { + "nth": [ + { + "n": 2, + "weekday": 0 + } + ], + "times": [ + "07:30" + ] + } + }, + "description": "On the second Monday of each month at 07:30", + "timezone": "UTC", + "enabled": true, + "next_run": "2026-01-12T07:30:00+00:00", + "next_runs": [ + "2026-01-12T07:30:00+00:00", + "2026-02-09T07:30:00+00:00", + "2026-03-09T07:30:00+00:00", + "2026-04-13T07:30:00+00:00", + "2026-05-11T07:30:00+00:00" + ], + "target": "chat", + "mode": "fresh", + "notify": "matters", + "catch_up": "one", + "grace_minutes": null, + "model": "qwen", + "effort": "high", + "agents": null, + "tools": [ + "files", + "recall", + "search", + "fetch", + "memory", + "skills", + "plan" + ], + "origin": "user", + "chat_id": "chat1", + "fired_count": 3, + "failure_streak": 0, + "last_error": null, + "last_run": { + "id": "run1", + "schedule_id": "sched1", + "status": "ok", + "timing": "late", + "missed": 0, + "due_at": "2026-01-02T03:04:05+00:00", + "started_at": "2026-01-02T03:04:05+00:00", + "finished_at": "2026-01-02T03:04:05+00:00", + "waiting_for": null, + "retry_at": null, + "attempts": 1, + "model": { + "id": "gpt-oss", + "name": "GPT-OSS", + "reason": "switched", + "switched_from": "Qwen" + }, + "tokens": { + "prompt": 1200, + "completion": 340 + }, + "cost": null, + "chat_id": "chat1", + "message_id": "msg2", + "report_path": null, + "preview": "All the waybread is wrapped.", + "error": null, + "notified": true + }, + "running": false, + "created_at": "2026-01-02T03:04:05+00:00" + } +} diff --git a/contract/schedule_compile.json b/contract/schedule_compile.json new file mode 100644 index 0000000..ae6b080 --- /dev/null +++ b/contract/schedule_compile.json @@ -0,0 +1,29 @@ +{ + "ok": true, + "reason": null, + "title": "Waybread check", + "instruction": "Check the waybread is wrapped.", + "target": "chat", + "rule": { + "at": { + "nth": [ + { + "n": 2, + "weekday": 0 + } + ], + "times": [ + "07:30" + ] + } + }, + "description": "On the second Monday of each month at 07:30", + "next_runs": [ + "2026-01-12T07:30:00+00:00", + "2026-02-09T07:30:00+00:00", + "2026-03-09T07:30:00+00:00", + "2026-04-13T07:30:00+00:00", + "2026-05-11T07:30:00+00:00" + ], + "timezone": "UTC" +} diff --git a/contract/schedule_models.json b/contract/schedule_models.json new file mode 100644 index 0000000..beeb8df --- /dev/null +++ b/contract/schedule_models.json @@ -0,0 +1,60 @@ +{ + "models": [ + { + "id": "gpt-oss", + "name": "gpt-oss", + "vision": false, + "tools": true, + "efforts": [ + "low", + "medium", + "high" + ], + "thinking_switch": false, + "levels": [ + "low", + "medium", + "high" + ], + "effort": "high", + "control": "slider", + "parallel": 1, + "context": 0, + "image": null, + "default": false, + "free": false, + "busy": "it is answering someone", + "chosen": true + }, + { + "id": "qwen", + "name": "Qwen", + "vision": false, + "tools": true, + "efforts": [ + "medium" + ], + "thinking_switch": true, + "levels": [ + "off", + "medium" + ], + "effort": "medium", + "control": "switch", + "parallel": 2, + "context": 131072, + "image": "/api/v2/models/images/0a1b2c3d4e5f.png", + "default": false, + "free": true, + "busy": null, + "chosen": false + } + ], + "instance": [ + "gpt-oss", + "qwen" + ], + "mine": [ + "gpt-oss" + ] +} diff --git a/contract/schedule_preview.json b/contract/schedule_preview.json new file mode 100644 index 0000000..29af8d7 --- /dev/null +++ b/contract/schedule_preview.json @@ -0,0 +1,6 @@ +{ + "rule": {}, + "description": null, + "next_runs": [], + "timezone": "UTC" +} diff --git a/contract/schedule_run.json b/contract/schedule_run.json new file mode 100644 index 0000000..1c9847c --- /dev/null +++ b/contract/schedule_run.json @@ -0,0 +1,33 @@ +{ + "run": { + "id": "run1", + "schedule_id": "sched1", + "status": "ok", + "timing": "late", + "missed": 0, + "due_at": "2026-01-02T03:04:05+00:00", + "started_at": "2026-01-02T03:04:05+00:00", + "finished_at": "2026-01-02T03:04:05+00:00", + "waiting_for": null, + "retry_at": null, + "attempts": 1, + "model": { + "id": "gpt-oss", + "name": "GPT-OSS", + "reason": "switched", + "switched_from": "Qwen" + }, + "tokens": { + "prompt": 1200, + "completion": 340 + }, + "cost": null, + "chat_id": "chat1", + "message_id": "msg2", + "report_path": null, + "preview": "All the waybread is wrapped.", + "error": null, + "notified": true + }, + "text": "All the waybread is *wrapped*." +} diff --git a/contract/schedule_runs.json b/contract/schedule_runs.json new file mode 100644 index 0000000..1409685 --- /dev/null +++ b/contract/schedule_runs.json @@ -0,0 +1,68 @@ +{ + "runs": [ + { + "id": "run2", + "schedule_id": "sched1", + "status": "waiting", + "timing": "on_time", + "missed": 2, + "due_at": "2026-01-02T03:04:05+00:00", + "started_at": null, + "finished_at": null, + "waiting_for": "model", + "retry_at": "2026-01-02T03:09:05+00:00", + "attempts": 2, + "model": { + "id": null, + "name": null, + "reason": null, + "switched_from": null + }, + "tokens": { + "prompt": 0, + "completion": 0 + }, + "cost": null, + "chat_id": null, + "message_id": null, + "report_path": null, + "preview": "", + "error": { + "class": "no_model", + "text": "Waiting for a free model: Qwen: it is answering someone." + }, + "notified": false + }, + { + "id": "run1", + "schedule_id": "sched1", + "status": "ok", + "timing": "late", + "missed": 0, + "due_at": "2026-01-02T03:04:05+00:00", + "started_at": "2026-01-02T03:04:05+00:00", + "finished_at": "2026-01-02T03:04:05+00:00", + "waiting_for": null, + "retry_at": null, + "attempts": 1, + "model": { + "id": "gpt-oss", + "name": "GPT-OSS", + "reason": "switched", + "switched_from": "Qwen" + }, + "tokens": { + "prompt": 1200, + "completion": 340 + }, + "cost": null, + "chat_id": "chat1", + "message_id": "msg2", + "report_path": null, + "preview": "All the waybread is wrapped.", + "error": null, + "notified": true + } + ], + "more": false +} diff --git a/contract/schedules.json b/contract/schedules.json new file mode 100644 index 0000000..7c94562 --- /dev/null +++ b/contract/schedules.json @@ -0,0 +1,88 @@ +{ + "schedules": [ + { + "id": "sched1", + "title": "Waybread check", + "instruction": "Check the waybread is wrapped.", + "request": "every second Monday at 7:30", + "rule": { + "at": { + "nth": [ + { + "n": 2, + "weekday": 0 + } + ], + "times": [ + "07:30" + ] + } + }, + "description": "On the second Monday of each month at 07:30", + "timezone": "UTC", + "enabled": true, + "next_run": "2026-01-12T07:30:00+00:00", + "next_runs": [ + "2026-01-12T07:30:00+00:00", + "2026-02-09T07:30:00+00:00", + "2026-03-09T07:30:00+00:00", + "2026-04-13T07:30:00+00:00", + "2026-05-11T07:30:00+00:00" + ], + "target": "chat", + "mode": "fresh", + "notify": "matters", + "catch_up": "one", + "grace_minutes": null, + "model": "qwen", + "effort": "high", + "agents": null, + "tools": [ + "files", + "recall", + "search", + "fetch", + "memory", + "skills", + "plan" + ], + "origin": "user", + "chat_id": "chat1", + "fired_count": 3, + "failure_streak": 0, + "last_error": null, + "last_run": { + "id": "run1", + "schedule_id": "sched1", + "status": "ok", + "timing": "late", + "missed": 0, + "due_at": "2026-01-02T03:04:05+00:00", + "started_at": "2026-01-02T03:04:05+00:00", + "finished_at": "2026-01-02T03:04:05+00:00", + "waiting_for": null, + "retry_at": null, + "attempts": 1, + "model": { + "id": "gpt-oss", + "name": "GPT-OSS", + "reason": "switched", + "switched_from": "Qwen" + }, + "tokens": { + "prompt": 1200, + "completion": 340 + }, + "cost": null, + "chat_id": "chat1", + "message_id": "msg2", + "report_path": null, + "preview": "All the waybread is wrapped.", + "error": null, + "notified": true + }, + "running": false, + "created_at": "2026-01-02T03:04:05+00:00" + } + ] +} diff --git a/tokens.lock.json b/tokens.lock.json index d66a779..51631a5 100644 --- a/tokens.lock.json +++ b/tokens.lock.json @@ -1,5 +1,5 @@ { - "tag": "v2.0.0-beta.5", - "commit": "02d0c874434e3b726193bf94fb9741b4f8d0a22c", - "sha256": "e2ee615f5eb84219c6875e9e38f379394708e798d45f481d76ec8c7260f0ffb4" + "tag": "3222c7c6c9633fc6941cfaa63ac074624e689410", + "commit": "3222c7c6c9633fc6941cfaa63ac074624e689410", + "sha256": "93e70f0ec26e6112ba7da8d4026cc9573dd443163a52aec9d93d182d9308e373" }