rdy agent guide v0.61.0

Agent guide

Troubleshooting

Load this ruleset when you hit an actor, run or daemon error.

Actors and runs

rdy checks the actor and the run of every new session. It also checks every actor that you name, such as a view owner or --relayed-by. A value outside the form fails with E_BAD_INPUT, and the fix gives the form.

  • An actor is human:<name>, agent:<name>, agent:<handle>/<name> or ci:<repo_id>/<name>. Your actor is always an agent: actor, such as agent:claude or agent:alex/claude-review.
  • A name has 1 to 64 lowercase letters, digits, -, _ or .. It starts and ends with a letter or digit.
  • A run has 1 to 64 letters, digits, -, _ or .. It starts and ends with a letter or digit.
  • The runs none, canon, inflight and work are reserved, as is every run that starts with reaffirm-.
  • rdy keeps the actor and the run apart. It prints them as <actor> (run <run>), never as actor/run.
  • An rdy_session refusal leaves your earlier session, view and subscription as they were.
  • role is reader, writer or reviewer, and the default is writer. A reader may pass view: "canon" to read canon by default.
  • A view belongs to the actor and the run that created it or first wrote to it. To act on it later, start the session with the same actor and run: run in rdy_session, or RDY_RUN for the CLI. Another run of the same actor gets E_VIEW_OWNER.

The daemon and the MCP server

  • E_DAEMON_START: tell the person, and follow the fix in the message.
  • E_DAEMON_GONE: the daemon closed the connection before it answered. A write may or may not have committed, and rdy does not retry it. When the call writes nothing, the fix says so: run the call again.
  • When the daemon goes away, rdy mcp answers each open call with E_DAEMON_GONE and exits. Your host must start the rdy MCP server again. Then read your view before you retry.
  • E_DAEMON_VERSION, or stale replies after an rdy update: ask the person, then run rdy serve --stop. It ends every session.
  • W_DAEMON_BUILD: the running daemon is another build of the same rdy version. When the other clients close, the daemon restarts on your build. Tell the person. To restart it at once, ask them first, then run rdy serve --stop.
  • A daemon that rdy started stops after 10 idle minutes, and the live site goes with it. For a long review, ask the person to start rdy serve in a terminal first.

Pack modules

  • E_CONFIG with invalid pack: rule <name> module ... names the rule and the first load check that failed. The fix is in the pack file. Tell the person, and change the module only when they ask.
  • The daemon notice pack_error: <error>; the previous pack stays loaded until the file is fixed says that a reload failed. The previous pack and its compiled rules still run. A fix of the file loads as a change.
  • A row rule <name> could not judge <id>: <cause> means that the module failed on that block: a trap, spent fuel, an input or output over its cap, or output that is not a check result. Its fix reads fix the module of rule <name> in the pack file, or make the rule advisory. Tell the person.
  • E_INTERNAL with check module host fault is a bug in rdy, not in the module. Tell the person to report it. A write stands. A propose is not ready, and the next propose runs the rules again.

A snapshot of rdy agent guide at v0.61.0.