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.

4.1 KB
Raw Blame
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "agent-core/job.schema.json",
  "title": "JobMeta",
  "description": "C-7 `meta.json` of a job handle. Written by the adapter's JobHost before the spawn; recovery invariants J1–J6 are in recovery.md. Read by the tool, Watch target kind `job`, recovery, and `vibe stop`. Persisted shape.",
  "type": "object",
  "required": [
    "version",
    "job_id",
    "session_id",
    "response_id",
    "response_seq",
    "tool_call_id",
    "backend",
    "command",
    "cwd",
    "created_at",
    "state_dir",
    "deadline_at"
  ],
  "additionalProperties": false,
  "properties": {
    "version": {
      "const": 1
    },
    "job_id": {
      "type": "string",
      "pattern": "^job_[a-z0-9]+$"
    },
    "session_id": {
      "type": "string"
    },
    "response_id": {
      "type": "string",
      "description": "`messages.id` of the committed response that made the call. With `session_id`, `response_seq`, and `tool_call_id`, the call instance that started the job (`CallInstance`, `ToolContext.call`): providers reuse call ids, so T2's job lookup, J5's settled check, and the hand-over's owning Turn match a job to its call by the whole instance, never by time."
    },
    "response_seq": {
      "type": "integer",
      "description": "That response's `context_seq` in `session_id`. The call's result is the first `tool_result` with its id after it, in context order."
    },
    "tool_call_id": {
      "type": "string"
    },
    "backend": {
      "enum": [
        "pipe",
        "pty"
      ],
      "description": "v1 writes `pipe` only."
    },
    "command": {
      "type": "string"
    },
    "cwd": {
      "type": "string"
    },
    "timeout_s": {
      "type": [
        "number",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "UTC creation time, from which a job Watch reports the elapsed time. Never compared with a row's time: the wall clock can step back."
    },
    "state_dir": {
      "type": "string",
      "description": "Absolute job directory holding output.log and exit."
    },
    "process": {
      "type": [
        "object",
        "null"
      ],
      "description": "The identity fields of PersistedProcessIdentity (core/process_isolation.py) plus the process group, recorded before the command can run (J2).",
      "required": [
        "pid",
        "pgid",
        "create_time",
        "worker_fingerprint"
      ],
      "additionalProperties": false,
      "properties": {
        "pid": {
          "type": "integer"
        },
        "pgid": {
          "type": "integer"
        },
        "create_time": {
          "type": "number"
        },
        "worker_fingerprint": {
          "type": "string"
        }
      }
    },
    "terminal": {
      "type": [
        "object",
        "null"
      ],
      "description": "Reserved for the `pty` backend; null for `pipe`.",
      "properties": {
        "socket": {
          "type": "string"
        },
        "target": {
          "type": "string"
        }
      }
    },
    "watch_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set at handover."
    },
    "deadline_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Absolute time at which the job's process tree is killed (from `timeout`); enforced by whichever component owns the job (J3)."
    }
  },
  "examples": [
    {
      "version": 1,
      "job_id": "job_31c",
      "session_id": "ses7k2m9p4q1x",
      "response_id": "msg_0640b3c1f2a9e8d47c1e9a2b",
      "response_seq": 42,
      "tool_call_id": "toolu_01AbC",
      "backend": "pipe",
      "command": "pytest -q",
      "cwd": "/work/repo",
      "timeout_s": null,
      "created_at": "2026-10-02T04:12:09.512Z",
      "state_dir": "/home/u/.avibe/state/agent_core/jobs/job_31c",
      "process": {
        "pid": 48211,
        "pgid": 48211,
        "create_time": 1790914329.51,
        "worker_fingerprint": "sha256:5f1c…"
      },
      "terminal": null,
      "watch_id": "wch_8f2k",
      "deadline_at": null
    }
  ]
}