{"binary":"mrsn","exit_codes":{"0":"ok","1":"fail","2":"usage (extensions documented)"},"error_lanes":[{"name":"fail","exit":1,"meaning":"plain failure — the message is the user-facing remedy"},{"name":"usage","exit":2,"meaning":"bad invocation — wrong args, unknown name, missing file (clap parse errors exit 2 too)"}],"verbs":[{"verb":"hello","about":"greet <name> — the worked example","args":[{"pos":"NAME","help":"who to greet"},{"flag":"--loud","short":"l","value":null,"help":"shout it (a bool flag — clap does the parsing)"}]},{"verb":"status","about":"status [--json] — the worked example: a read","args":[{"flag":"--json","short":null,"value":null,"help":"machine-readable output"}]},{"verb":"serve","about":"serve [--port N] — landing + docs + /health","args":[{"flag":"--port","short":"p","value":"PORT","help":"override the bind port (else MRSN_PORT, else the config default)"}]},{"verb":"schema","about":"schema — every verb + flag as JSON (the only tongue; --json kept for symmetry)","args":[{"flag":"--json","short":null,"value":null,"help":"accepted, never branches — JSON is the only tongue"}]},{"verb":"clean","about":"clean [--yes] — wipe the cache db trio","args":[{"flag":"--yes","short":null,"value":null,"help":"confirm the wipe"}]},{"verb":"backup","about":"backup — flush the wal, trio-copy the db","args":[]},{"verb":"doctor","about":"doctor — is this deployment ALIVE?","args":[]},{"verb":"span","about":"span — post ONE explicit telemetry span (the recipes' lane)","args":[{"pos":"NAME","help":"what ran — the span name (build, test, deploy…)"},{"flag":"--dur-ms","short":null,"value":"DUR_MS","help":"how long it took, milliseconds"},{"flag":"--attr","short":null,"value":"ATTRS","help":"attribute key=value (repeatable)"}]},{"verb":"ingest","about":"ingest — pull the sources (HN, Reddit, arXiv, GitHub releases) into the radar cache; idempotent by content hash","args":[{"flag":"--hours","short":null,"value":"HOURS","help":"only keep items newer than this many hours"}]},{"verb":"agent","about":"agent — the GLM pass: headlines, summaries, topics, chips, hub about-pages, weekly deep dives (needs MRSN_AGENT_URL + KEY)","args":[{"flag":"--limit","short":null,"value":"LIMIT","help":"max raw items to process this pass"}]},{"verb":"fleet","about":"fleet [--n N] — the daily post organ: the radar picks (60% fresh items · 30% the MRSN_COMPOSE_BANK topics · 10% wildcard angles), the fleet researches + writes, a second pass audits every number and link against the live web, and the survivors publish to /post/. n posts per call, capped per day (MRSN_COMPOSE_CAP, default 50); three consecutive reds stop the pass loud. The timer's verb — a systemd timer spreads the calls across the publishing window (timers, never daemons)","args":[{"flag":"--n","short":null,"value":"N","help":"posts to publish this invocation"}]},{"verb":"digest","about":"digest — build the day's edition (agent intro when the lane is on, stock otherwise); --compose bakes the COMPOSED broadcast instead (the landing's lead surface, the fleet writes it)","args":[{"flag":"--day","short":null,"value":"DAY","help":"the UTC day (YYYY-MM-DD); default = today"},{"flag":"--compose","short":null,"value":null,"help":"bake the composed broadcast (daily_editions) instead of the stock digest"}]},{"verb":"refresh","about":"refresh — pull GitHub metadata (stars, lang, README hint) for the watchlist hubs","args":[]},{"verb":"ask","about":"ask — answer one question via the agent lane and print it (the web ask bar's path; dedupe applies)","args":[{"pos":"QUESTION","help":"the question"}]},{"verb":"ping","about":"ping — push fresh URLs to IndexNow (needs MRSN_BASE_URL + key)","args":[]},{"verb":"images","about":"images — fetch og:image for items into /media (SSRF-guarded, magic-typed, ~20 per run)","args":[]},{"verb":"compose","about":"compose <slug> [--from FILE | --agent] — bake an item's page as a composed document (md prose · closedui components · html through the gate); --from bakes a hand-written file, --agent lets the fleet write it from the item's facts","args":[{"pos":"SLUG","help":"the item slug to bake"},{"flag":"--from","short":null,"value":"FROM","help":"the HTML-lane document file to bake from"},{"flag":"--agent","short":null,"value":null,"help":"compose via the agent lane (needs MRSN_AGENT_URL + KEY)"}]},{"verb":"post","about":"post <slug> — publish a STANDALONE composed post (the /post/ surface, the posting lane). Exactly one writer: --from FILE bakes the owner's hand-written document; --agent --about SUBJECT lets the fleet research + write it start to finish (about may be a free topic or an item slug — an item docks its facts and pins the research to the source's domain)","args":[{"pos":"SLUG","help":"the post slug (url-safe: [a-z0-9-_])"},{"flag":"--title","short":null,"value":"TITLE","help":"the post title — pinned; the fleet proposes one when unset"},{"flag":"--lede","short":null,"value":"LEDE","help":"the lede — pinned; the fleet proposes one when unset"},{"flag":"--url","short":null,"value":"URL","help":"the source url to cite (empty = the post IS the source)"},{"flag":"--from","short":null,"value":"FROM","help":"the HTML-lane document file to publish from"},{"flag":"--agent","short":null,"value":null,"help":"write via the agent lane (needs MRSN_AGENT_URL + KEY)"},{"flag":"--about","short":null,"value":"ABOUT","help":"the subject for --agent (free text or an item slug)"}]}]}