-
Notifications
You must be signed in to change notification settings - Fork 0
Formats
This document declares the stable on-disk formats for mq-hal v1.0+. Breaking changes to these formats require a major version bump.
Located at <mq-hal-root>/config/repos.json.
Override path with MQ_HAL_CONFIG_PATH.
{
"default_repo": "macos-scripts",
"repos": {
"macos-scripts": "~/macos-scripts",
"repo-signal": "~/repo-signal"
}
}| Field | Type | Required | Description |
|---|---|---|---|
default_repo |
string | No | Repo used when none is specified in a prompt |
repos |
object | Yes | Map of name → path (tilde-expanded) |
Rules:
-
reposmust be a non-empty object. - Paths support
~expansion. -
default_repomust be a key inreposwhen provided. -
config-checkvalidates this file:mq-hal config-check.
One JSON object per line (JSONL). Appended by HAL commands that write memory.
Override directory with MQ_HAL_STATE_DIR.
| Field | Type | Notes |
|---|---|---|
timestamp |
string | ISO 8601 with timezone offset |
type |
string | Event type (see below) |
repo |
string | null | Active repo at the time |
source |
string | null | Command that wrote the event |
payload |
object | Event-specific data |
type |
Written by | Payload keys |
|---|---|---|
brief |
mq-hal brief |
repo, summary
|
audit |
mq-hal audit |
repo, summary, score
|
doctor_summary |
mq-hal doctor-summary |
summary (object with status) |
fix_plan |
mq-hal fix-doctor |
plan (object with status) |
release_brief |
mq-hal release-brief |
repo, summary
|
note |
mq-hal remember |
note, optional tag
|
{"timestamp": "2026-05-31T02:49:00+02:00", "type": "note", "repo": "mq-hal", "source": "manual", "payload": {"note": "v0.15.2 released"}}Malformed lines are skipped silently on read.
mq-hal timeline reads session.jsonl and renders one line per event.
<timestamp> <type:16> repo=<repo:14> <status or excerpt>
--compact omits payload details.
--details adds a JSON payload excerpt.
Returns a JSON array of event objects. Each element is the raw envelope
(same fields as session memory above) plus a text key containing the
rendered one-line summary.
[
{
"timestamp": "2026-05-31T02:49:00+02:00",
"type": "note",
"repo": "mq-hal",
"source": "manual",
"payload": {"note": "v0.15.2 released"},
"text": "2026-05-31T02:49:00+02:00 note repo=mq-hal v0.15.2 released"
}
]Filters: --type <type>, --repo <name>, --since <ISO date>, --limit <n>.