Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(harness): refuse numeric cron weekdays that fire a day off intent (#2201)

Call White60a01dfc75ce
diff --git a/core/cron_weekday.py b/core/cron_weekday.py
new file mode 100644
index 000000000..84ba4eceb
--- /dev/null
+++ b/core/cron_weekday.py
@@ -0,0 +1,55 @@
+"""Detect cron weekday fields whose meaning differs between APScheduler and crontab(5).
+
+Avibe parses cron with ``CronTrigger.from_crontab``, which numbers weekdays
+0=Mon through 6=Sun. crontab(5) numbers them 0=Sun through 6=Sat, so the same
+digit names a different day. Weekday names (``mon`` ... ``sun``) mean the same
+day under both conventions, and a step after a named range (``mon-fri/2``) is a
+count rather than a day, so only digits in a day position are ambiguous.
+"""
+
+from __future__ import annotations
+
+import re
+from typing import Optional
+
+_APSCHEDULER_NAMES = ("mon", "tue", "wed", "thu", "fri", "sat", "sun")
+_CRONTAB_NAMES = ("sun", "mon", "tue", "wed", "thu", "fri", "sat", "sun")
+_DIGITS = re.compile(r"\d+")
+
+
+def ambiguous_weekday_field(cron: str) -> Optional[str]:
+ """Return the day-of-week field when it names days by number, else ``None``."""
+
+ fields = cron.split()
+ if len(fields) != 5:
+ return None
+ weekday = fields[4]
+ for item in weekday.split(","):
+ base, _, step = item.partition("/")
+ if any(char.isdigit() for char in base):
+ return weekday
+ # ``*/2`` counts from day 0, which is Monday here and Sunday in crontab(5).
+ if base == "*" and step:
+ return weekday
+ return None
+
+
+def _rename(field: str, names: tuple[str, ...]) -> Optional[str]:
+ if "*" in field:
+ return None
+ items = []
+ for item in field.split(","):
+ base, slash, step = item.partition("/")
+ try:
+ base = _DIGITS.sub(lambda match: names[int(match.group())], base)
+ except IndexError:
+ return None
+ # The step after ``/`` is a count of days, not a day, so it keeps its digits.
+ items.append(f"{base}{slash}{step}")
+ return ",".join(items)
+
+
+def weekday_readings(field: str) -> tuple[Optional[str], Optional[str]]:
+ """``(apscheduler_reading, crontab_reading)`` of a numeric field, in weekday names."""
+
+ return _rename(field, _APSCHEDULER_NAMES), _rename(field, _CRONTAB_NAMES)
diff --git a/skills/use-avibe-harness/SKILL.md b/skills/use-avibe-harness/SKILL.md
index 5fc9ae7d2..ece957dc3 100644
--- a/skills/use-avibe-harness/SKILL.md
+++ b/skills/use-avibe-harness/SKILL.md
@@ -53,7 +53,7 @@ Useful Harness queries include schema discovery, current session lookup, existin
| State/history inspection | `vibe data query`, `vibe runs list --current-session`, `vibe runs show` |
| Recurring specialist workflow | `vibe agent create/update` plus tasks, watches, or runs |
-`vibe task add` creates a time-triggered saved Agent message. Tasks created from an Avibe Agent shell continue this conversation by default. Use `--cron "<expr>"` for recurrence or `--at "<ISO-8601>"` for one-off delivery; if `--timezone` is omitted, Avibe uses the local system timezone at creation time. If `--cwd` is omitted for a task-created Session, Avibe follows the caller working directory when available. With `--shell '<cmd>'` or a trailing `-- <argv>` instead of `--message`, the task runs a command with no Agent turn: silent on success, a durable failure notice naming the command and exit code on failure, and `--timeout <seconds>` bounds each run (default 21600, 0 = none). Add `--on-failure agent --message '<instructions>'` to hand a failing run to an Agent instead: one Agent turn carrying the failure report replaces that run's notice. A pure command task takes no session, scope, or agent flags.
+`vibe task add` creates a time-triggered saved Agent message. Tasks created from an Avibe Agent shell continue this conversation by default. Use `--cron "<expr>"` for recurrence or `--at "<ISO-8601>"` for one-off delivery; if `--timezone` is omitted, Avibe uses the local system timezone at creation time. Write cron weekdays as names (`mon` ... `sun`, e.g. `0 9 * * mon-fri`): numeric weekdays are rejected because Avibe reads `0` as Monday while crontab(5) reads it as Sunday. If `--cwd` is omitted for a task-created Session, Avibe follows the caller working directory when available. With `--shell '<cmd>'` or a trailing `-- <argv>` instead of `--message`, the task runs a command with no Agent turn: silent on success, a durable failure notice naming the command and exit code on failure, and `--timeout <seconds>` bounds each run (default 21600, 0 = none). Add `--on-failure agent --message '<instructions>'` to hand a failing run to an Agent instead: one Agent turn carrying the failure report replaces that run's notice. A pure command task takes no session, scope, or agent flags.
`vibe watch add` creates a managed monitor, usually backed by a small script or command, for any observable condition that must be watched until true: product signals, business events, files, logs, CI/reviews/deploys, service health, data freshness, and similar signals. Watches created from an Avibe Agent shell follow up in this conversation by default. If `--cwd` is omitted, Avibe runs the waiter from the caller working directory when available.
diff --git a/skills/use-avibe/references/harness.md b/skills/use-avibe/references/harness.md
index 2e8f8a5d8..9bdd74343 100644
--- a/skills/use-avibe/references/harness.md
+++ b/skills/use-avibe/references/harness.md
@@ -21,7 +21,7 @@ Preferred CLI shape:
- remove one exact queued message after inspecting its stable ID: `vibe session queue remove '<session-id>' '<message-id>'`
- fork this Session for an alternate path: `vibe agent run --fork-self --message '...'`
- fork another explicit Session for an alternate path: `vibe agent run --fork-session '<source-session-id>' --message '...'`
-- recurring task for this conversation: `vibe task add --cron '<expr>' --message '...'`
+- recurring task for this conversation: `vibe task add --cron '<expr>' --message '...'`; write cron weekdays as names (`mon` ... `sun`), since numeric weekdays are rejected
- one-off task for this conversation: `vibe task add --at '<ISO-8601>' --message '...'`
- task that creates a visible sibling Session: `vibe task add --create-session --same-scope --cron '<expr>' --message '...'`
- scheduled command with no Agent turn: `vibe task add --cron '<expr>' --shell '<command>'`
diff --git a/tests/test_cli_task_command.py b/tests/test_cli_task_command.py
index 487d3da3c..346152321 100644
--- a/tests/test_cli_task_command.py
+++ b/tests/test_cli_task_command.py
@@ -410,8 +410,7 @@ def test_task_add_help_includes_examples_and_threadless_guidance(capsys) -> None
assert "--same-scope" in captured.out
assert "--scope-id" in captured.out
assert "--deliver-key" not in captured.out
- assert "Cron weekday digits use APScheduler semantics: 0=Mon through 6=Sun; 7 is invalid." in captured.out
- assert "Prefer weekday names such as mon, tue, or sun when scheduling by day of week." in captured.out
+ assert "Write cron weekdays as names (mon, tue, ... sun)." in captured.out
def test_hook_send_help_describes_runtime_effects(capsys) -> None:
@@ -457,8 +456,7 @@ def test_task_update_help_includes_partial_update_guidance(capsys) -> None:
assert "keeping its task ID" in captured.out
assert "--reset-delivery" in captured.out
assert "Unspecified fields keep their existing values." in captured.out
- assert "Cron weekday digits use APScheduler semantics: 0=Mon through 6=Sun; 7 is invalid." in captured.out
- assert "Prefer weekday names such as mon, tue, or sun when scheduling by day of week." in captured.out
+ assert "Write cron weekdays as names (mon, tue, ... sun)." in captured.out
def test_hook_send_help_includes_examples_and_threadless_guidance(capsys) -> None:
@@ -736,6 +734,92 @@ def test_task_add_rejects_invalid_cron_with_example() -> None:
assert payload["example"] == "0 * * * *"
+ ("cron", "readings"),
+ [
+ # Meant Saturday under crontab(5); the scheduler would fire on Sunday.
+ ("0 7 * * 6", "Avibe (APScheduler) reads it as sun; crontab(5) reads it as sat"),
+ # Meant weekdays; the scheduler would fire Tuesday through Saturday.
+ ("0 9 * * 1-5", "Avibe (APScheduler) reads it as tue-sat; crontab(5) reads it as mon-fri"),
+ ("30 20 * * 0,mon", "Avibe (APScheduler) reads it as mon,mon; crontab(5) reads it as sun,mon"),
+ # A step is a count of days, not a day, so it keeps its digits.
+ ("0 9 * * 1-5/2", "Avibe (APScheduler) reads it as tue-sat/2; crontab(5) reads it as mon-fri/2"),
+ # A step from ``*`` counts from day 0, which differs between the two.
+ ("0 9 * * */2", None),
+ ],
+)
+def test_task_add_rejects_numeric_weekday_naming_both_readings(cron: str, readings: str | None) -> None:
+ args = _parse_task_add(["--session-key", "slack::channel::C123", "--cron", cron, "--message", "hello"])
+
+ with patch("vibe.cli._ensure_config", return_value=_configured_v2({"slack"})):
+ result, payload = _capture_stderr_json(cli.cmd_task_add, args)
+
+ assert result == 1
+ assert payload["code"] == "ambiguous_cron_weekday"
+ assert payload["details"]["day_of_week"] == cron.split()[4]
+ assert "mon, tue, wed, thu, fri, sat, sun" in payload["hint"]
+ if readings is not None:
+ assert readings in payload["hint"]
+
+
[email protected]("cron", ["0 9 * * 5-1", "0 9 * * 0-7", "0 9 * * 7"])
+def test_task_add_reports_unparseable_numeric_weekday_as_invalid_cron(cron: str) -> None:
+ args = _parse_task_add(["--session-key", "slack::channel::C123", "--cron", cron, "--message", "hello"])
+
+ with patch("vibe.cli._ensure_config", return_value=_configured_v2({"slack"})):
+ result, payload = _capture_stderr_json(cli.cmd_task_add, args)
+
+ assert result == 1
+ assert payload["code"] == "invalid_cron"
+
+
+def test_task_add_numeric_weekday_rejection_follows_cli_language() -> None:
+ args = _parse_task_add(["--session-key", "slack::channel::C123", "--cron", "0 7 * * 6", "--message", "hello"])
+
+ with (
+ patch("vibe.cli._ensure_config", return_value=_configured_v2({"slack"})),
+ patch("vibe.cli._configured_cli_language", return_value="zh"),
+ ):
+ result, payload = _capture_stderr_json(cli.cmd_task_add, args)
+
+ assert result == 1
+ assert payload["code"] == "ambiguous_cron_weekday"
+ assert "星期" in payload["error"]
+ assert "Avibe(APScheduler)解析为 sun;标准 crontab(5) 解析为 sat" in payload["hint"]
+
+
[email protected]("cron", ["0 7 * * sat", "0 9 * * mon-fri", "0 9 * * mon-sun/2", "0 9 1-7 * *", "*/5 * * * *"])
+def test_task_add_accepts_named_or_unrestricted_weekday(cron: str, capsys) -> None:
+ args = _parse_task_add(["--session-key", "slack::channel::C123", "--cron", cron, "--message", "hello"])
+
+ with patch("vibe.cli._ensure_config", return_value=_configured_v2({"slack"})):
+ assert cli.cmd_task_add(args) == 0
+
+ assert json.loads(capsys.readouterr().out)["definition"]["cron"] == cron
+
+
+def test_task_update_rejects_numeric_weekday_and_keeps_stored_schedule(tmp_path: Path) -> None:
+ store = cli.ScheduledTaskStore(tmp_path / "scheduled_tasks.json")
+ task = store.add_task(
+ session_key="slack::channel::C123",
+ prompt="hello",
+ schedule_type="cron",
+ cron="0 9 * * mon",
+ timezone_name="UTC",
+ )
+ args = cli.build_parser().parse_args(["task", "update", task.id, "--cron", "0 9 * * 6"])
+
+ with (
+ patch("vibe.cli._ensure_config", return_value=_configured_v2({"slack"})),
+ patch("vibe.cli._task_store", return_value=store),
+ ):
+ result, payload = _capture_stderr_json(cli.cmd_task_update, args)
+
+ assert result == 1
+ assert payload["code"] == "ambiguous_cron_weekday"
+ assert store.get_task(task.id).cron == "0 9 * * mon"
+
+
def test_task_add_rejects_invalid_timezone() -> None:
args = _parse_task_add(
[
diff --git a/tests/test_vibe_cli.py b/tests/test_vibe_cli.py
index 2e9747881..e8af51435 100644
--- a/tests/test_vibe_cli.py
+++ b/tests/test_vibe_cli.py
@@ -448,6 +448,29 @@ def test_doctor_reports_degraded_show_checkpoints_without_git(monkeypatch):
]
+def test_doctor_lists_stored_cron_tasks_with_numeric_weekdays(monkeypatch):
+ """Tasks written before numeric weekdays were refused still fire a day off intent."""
+ monkeypatch.setattr(cli, "_configured_cli_language", lambda: "en")
+ assert cli._scheduled_task_weekday_items() == []
+
+ store = cli.ScheduledTaskStore()
+ for cron in ("0 7 * * 6", "0 9 * * mon-fri", "0 * * * *"):
+ store.add_task(
+ session_key="slack::channel::C123",
+ prompt="hello",
+ schedule_type="cron",
+ cron=cron,
+ timezone_name="UTC",
+ )
+
+ [item] = cli._scheduled_task_weekday_items()
+
+ assert item["status"] == "warn"
+ assert item["code"] == "runtime.cron_numeric_weekday"
+ assert [task["cron"] for task in item["tasks"]] == ["0 7 * * 6"]
+ assert "0 7 * * 6" in item["message"]
+
+
def test_doctor_surfaces_configuration_recovery_warnings(monkeypatch, tmp_path):
config_path = tmp_path / "config.json"
config_path.write_text("{}", encoding="utf-8")
diff --git a/vibe/cli.py b/vibe/cli.py
index 126bb007d..6376ecafc 100644
--- a/vibe/cli.py
+++ b/vibe/cli.py
@@ -54,6 +54,7 @@ from core.caller_context import (
caller_resource_user_context_from_env,
)
from core.command_runner import command_line_preview
+from core.cron_weekday import ambiguous_weekday_field, weekday_readings
from core.install_integrity import verify_python_environment, verify_site_packages
from core.vibe_agents import AgentArchivedEditError, AgentArchiveError, AgentNameValidationError, AgentReferenceRewriteError, VibeAgent, VibeAgentAccessError, VibeAgentStore, iter_global_agent_files, parse_agent_file, validate_agent_backend
from core.watches import (
@@ -828,7 +829,7 @@ def _task_add_examples_text() -> str:
Use --cwd only for Sessions created by this task; existing target Sessions keep their own cwd.
`--message` and `--message-file` provide the stored user message that will be sent each time the task runs.
Use --cron for recurring jobs and --at for one-shot jobs.
- Cron weekday digits use APScheduler semantics: 0=Mon through 6=Sun; 7 is invalid. Prefer weekday names such as mon, tue, or sun when scheduling by day of week.
+ Write cron weekdays as names (mon, tue, ... sun). Numeric weekdays are rejected because Avibe's scheduler reads 0 as Monday while crontab(5) reads 0 as Sunday.
--timezone controls how --cron and naive --at timestamps are interpreted.
Command tasks:
@@ -871,7 +872,7 @@ def _task_update_examples_text() -> str:
Use --reset-delivery to return to following the session target directly.
Use --same-scope or --scope-id when this task should create new Sessions in a specific scope.
When changing schedule fields, pass either --cron or --at.
- Cron weekday digits use APScheduler semantics: 0=Mon through 6=Sun; 7 is invalid. Prefer weekday names such as mon, tue, or sun when scheduling by day of week.
+ Write cron weekdays as names (mon, tue, ... sun). Numeric weekdays are rejected because Avibe's scheduler reads 0 as Monday while crontab(5) reads 0 as Sunday.
Use --clear-name if you want the task to stop storing a custom name.
"""
)
@@ -1509,6 +1510,44 @@ def _show_git_checkpoint_items() -> list[dict]:
]
+def _scheduled_task_weekday_items() -> list[dict]:
+ """Warn about stored cron tasks whose numeric weekday may fire a day off intent."""
+
+ if not paths.get_sqlite_state_path().exists():
+ return []
+ try:
+ with _definition_read_store() as store:
+ rows = store.list_scheduled_tasks()
+ except Exception:
+ logger.debug("Skipping cron weekday doctor check", exc_info=True)
+ return []
+ affected = [
+ {"id": row["id"], "name": row.get("name"), "cron": row["cron"]}
+ for row in rows
+ if row.get("schedule_type") == "cron"
+ and row.get("cron")
+ and not row.get("retired_at")
+ and ambiguous_weekday_field(row["cron"]) is not None
+ ]
+ if not affected:
+ return []
+ language = _configured_cli_language()
+ return [
+ {
+ "status": "warn",
+ "message": i18n_t(
+ "doctor.item.cronNumericWeekday",
+ language,
+ count=len(affected),
+ tasks=", ".join(f"{item['id']} ({item['cron']})" for item in affected),
+ ),
+ "action": i18n_t("doctor.action.cronNumericWeekday", language),
+ "code": "runtime.cron_numeric_weekday",
+ "tasks": affected,
+ }
+ ]
+
+
def _remote_examples_text() -> str:
return dedent(
"""\
@@ -4213,17 +4252,7 @@ def cmd_task_add(args):
store = _task_store()
if args.cron:
- try:
- CronTrigger.from_crontab(args.cron, timezone=timezone)
- except ValueError as exc:
- raise TaskCliError(
- f"invalid cron expression: {args.cron}",
- code="invalid_cron",
- hint="Use standard 5-field crontab format: minute hour day-of-month month day-of-week.",
- example="0 * * * *",
- help_command="vibe task add --help",
- details={"cron": args.cron},
- ) from exc
+ _validate_task_cron(args.cron, timezone, help_command="vibe task add --help")
task = store.add_task(
name=_normalize_task_name(getattr(args, "name", None)),
session_key=session_key,
@@ -4449,6 +4478,44 @@ def _resolve_definition_name_update(args, task, *, help_command: str) -> Optiona
return task.name
+def _validate_task_cron(cron: str, timezone: ZoneInfo, *, help_command: str) -> None:
+ """Refuse a cron the scheduler cannot parse or whose weekday digits are ambiguous."""
+
+ try:
+ CronTrigger.from_crontab(cron, timezone=timezone)
+ except ValueError as exc:
+ raise TaskCliError(
+ f"invalid cron expression: {cron}",
+ code="invalid_cron",
+ hint="Use standard 5-field crontab format: minute hour day-of-month month day-of-week.",
+ example="0 * * * *",
+ help_command=help_command,
+ details={"cron": cron},
+ ) from exc
+ weekday = ambiguous_weekday_field(cron)
+ if weekday is None:
+ return
+ lang = _configured_cli_language()
+ hint = i18n_t("error.cronNumericWeekday.hint", lang)
+ avibe_reading, crontab_reading = weekday_readings(weekday)
+ if avibe_reading is not None and crontab_reading is not None:
+ readings = i18n_t(
+ "error.cronNumericWeekday.readings",
+ lang,
+ avibe=avibe_reading,
+ crontab=crontab_reading,
+ )
+ hint = f"{readings} {hint}"
+ raise TaskCliError(
+ i18n_t("error.cronNumericWeekday.message", lang, field=weekday),
+ code="ambiguous_cron_weekday",
+ hint=hint,
+ example="0 9 * * mon-fri",
+ help_command=help_command,
+ details={"cron": cron, "day_of_week": weekday},
+ )
+
+
def _resolve_definition_schedule_update(
args,
task,
@@ -4478,17 +4545,7 @@ def _resolve_definition_schedule_update(
help_command=help_command,
)
if args.cron:
- try:
- CronTrigger.from_crontab(args.cron, timezone=timezone)
- except ValueError as exc:
- raise TaskCliError(
- f"invalid cron expression: {args.cron}",
- code="invalid_cron",
- hint="Use standard 5-field crontab format: minute hour day-of-month month day-of-week.",
- example="0 * * * *",
- help_command=help_command,
- details={"cron": args.cron},
- ) from exc
+ _validate_task_cron(args.cron, timezone, help_command=help_command)
return "cron", args.cron, None, timezone_name
if args.at:
try:
@@ -12358,6 +12415,7 @@ def _doctor(*, deep: bool = False):
*_restart_state_items(),
*_runtime_architecture_items(),
*_show_git_checkpoint_items(),
+ *_scheduled_task_weekday_items(),
]:
runtime_items.append(item)
status = item.get("status")
@@ -17437,7 +17495,9 @@ def build_parser():
help=argparse.SUPPRESS,
)
schedule_group = task_add_parser.add_mutually_exclusive_group(required=True)
- schedule_group.add_argument("--cron", help="Recurring schedule in 5-field crontab format")
+ schedule_group.add_argument(
+ "--cron", help="Recurring schedule in 5-field crontab format; write weekdays as names (mon ... sun)"
+ )
schedule_group.add_argument("--at", help="One-shot timestamp in ISO 8601 format")
# Not ``required=True`` any more: a command task carries no message at all, so the
# "message or command" choice is enforced in ``cmd_task_add`` where both inputs are
@@ -17513,7 +17573,9 @@ def build_parser():
action="store_true",
help="Clear any stored delivery override so delivery follows the session target directly",
)
- task_update_parser.add_argument("--cron", help="Replace the schedule with a recurring 5-field crontab")
+ task_update_parser.add_argument(
+ "--cron", help="Replace the schedule with a recurring 5-field crontab; write weekdays as names (mon ... sun)"
+ )
task_update_parser.add_argument("--at", help="Replace the schedule with a one-shot ISO 8601 timestamp")
task_update_parser.add_argument("--message", help="Replace the stored user message text")
task_update_parser.add_argument("--message-file", help="Replace the stored user message from a UTF-8 text file")
diff --git a/vibe/i18n/en.json b/vibe/i18n/en.json
index 8b95a72d3..7ab570cc2 100644
--- a/vibe/i18n/en.json
+++ b/vibe/i18n/en.json
@@ -322,6 +322,11 @@
"message": "This one-shot Task's schedule has already ended.",
"hint": "Set a new future time with `vibe task update {id} --at <time>`, then resume it."
},
+ "cronNumericWeekday": {
+ "message": "Cron weekday field uses numbers: {field}",
+ "readings": "Avibe (APScheduler) reads it as {avibe}; crontab(5) reads it as {crontab}.",
+ "hint": "Write weekday names (mon, tue, wed, thu, fri, sat, sun); they mean the same day everywhere."
+ },
"sessionFork": {
"agentUnavailable": {
"message": "The source session's Agent is no longer available for a new fork.",
@@ -1149,6 +1154,7 @@
"noExtraServiceProcess": "No extra Avibe service process detected",
"deepScanSkipped": "Deep service process scan skipped in fast diagnostics",
"showGitUnavailable": "Show Page checkpointing is degraded because Git is unavailable",
+ "cronNumericWeekday": "{count} cron task(s) name weekdays by number, which Avibe reads as 0=Mon through 6=Sun (crontab(5) reads 0 as Sun), so they may run a day later than intended: {tasks}",
"dependencyHttp404": "{label} release asset is missing (HTTP 404): {url}",
"dependencyHttpError": "{label} request returned HTTP {status}: {url}",
"dependencyHttpErrorRetried": "{label} request returned HTTP {status} after {attempts} attempts: {url}",
@@ -1305,6 +1311,7 @@
"slackValidationFailed": "Check your Slack tokens in the setup wizard",
"agentCliMissing": "Install {agent} or update CLI path",
"workingDirectoryMissing": "Update default_cwd in settings",
+ "cronNumericWeekday": "Confirm each intended day, then rewrite the weekday with names, for example vibe task update <id> --cron '0 9 * * mon-fri'",
"cliMissing": "Install Avibe with uv tool or add the intended vibe executable to PATH.",
"cliPathPrecedence": "Put ~/.local/bin before system Python bin directories when using the uv tool installation.",
"cliNotUvTool": "uv tool package-integrity checks are skipped for this executable.",
diff --git a/vibe/i18n/zh.json b/vibe/i18n/zh.json
index 85585503d..1afc4f972 100644
--- a/vibe/i18n/zh.json
+++ b/vibe/i18n/zh.json
@@ -322,6 +322,11 @@
"message": "这个一次性 Task 的计划已经结束。",
"hint": "请先用 `vibe task update {id} --at <time>` 设置新的未来时间,再恢复它。"
},
+ "cronNumericWeekday": {
+ "message": "cron 的星期字段使用了数字:{field}",
+ "readings": "Avibe(APScheduler)解析为 {avibe};标准 crontab(5) 解析为 {crontab}。",
+ "hint": "请改用星期英文名(mon、tue、wed、thu、fri、sat、sun),它们在两种规则下含义一致。"
+ },
"sessionFork": {
"agentUnavailable": {
"message": "源会话的 Agent 已无法用于创建新的复刻会话。",
@@ -1149,6 +1154,7 @@
"noExtraServiceProcess": "未发现额外 Avibe 服务进程",
"deepScanSkipped": "快速诊断已跳过深度服务进程扫描",
"showGitUnavailable": "Git 不可用,Show Page 检查点功能已降级",
+ "cronNumericWeekday": "{count} 个 cron 任务用数字表示星期;Avibe 按 0=周一 到 6=周日 解析(标准 crontab 的 0 是周日),这些任务可能比预期晚一天运行:{tasks}",
"dependencyHttp404": "{label} 发布资源不存在(HTTP 404):{url}",
"dependencyHttpError": "{label} 请求返回 HTTP {status}:{url}",
"dependencyHttpErrorRetried": "{label} 请求经过 {attempts} 次尝试后返回 HTTP {status}:{url}",
@@ -1305,6 +1311,7 @@
"slackValidationFailed": "在设置向导中检查 Slack token",
"agentCliMissing": "安装 {agent} 或更新 CLI 路径",
"workingDirectoryMissing": "在设置中更新 default_cwd",
+ "cronNumericWeekday": "确认每个任务原本想要的日期后,改用星期英文名,例如 vibe task update <id> --cron '0 9 * * mon-fri'",
"cliMissing": "使用 uv tool 安装 Avibe,或将预期的 vibe 可执行文件加入 PATH。",
"cliPathPrecedence": "使用 uv tool 安装时,将 ~/.local/bin 放在系统 Python bin 目录之前。",
"cliNotUvTool": "此可执行文件将跳过 uv tool 包完整性检查。",