Review selfevo proposal

From nssmd/RoboRSI · View interactive version

Review selfevo proposal is an AI agent skill from the GitHub repository nssmd/RoboRSI. Decision protocol for reviewing self-evolution proposals written by a sim-agent. Used by a human (or surrogate AI reviewer) to APPLY / REJECT / ESCALATE proposals queued in ~/.roborsi/skill_review/. Codifies the rules I (Claude) developed while reviewing the handover_block_bicoord auto-iteration run

How to use this skill

Skill file

Overview

When a sim-agent (bot_agent.py) self-diagnoses a failed long-horizon run, it can submit proposals via propose_skill_update / propose_new_skill. Proposals land as ~/.roborsi/skill_review/<id>.json. Auto-applying is dangerous: agents have produced partial-patches that broke skills, empty stubs, and duplicates of already-merged fixes. This skill is the playbook for a human-equivalent reviewer to triage each pending proposal cleanly.

Prerequisites

Phases

1. Enumerate truly-pending proposals

ls ~/.roborsi/skill_review/*.json 2>/dev/null

Only files directly under the queue root are pending — applied/ and rejected/ are archived.

2. For each proposal: extract structural signals

import json
d = json.load(open(path))
kind       = d["kind"]                      # "new" or "update"
name       = d["name"]                       # skill name (e.g. pick_bowl_bicoord.zeroshot)
rationale  = (d.get("rationale") or "").strip()
code       = d.get("new_code") or d.get("code") or ""
code_head  = code[:200]

3. Apply the decision tree (in order — first match wins)

| # | Condition | Decision |

|---|-----------|----------|

| 1 | code == "" or len(code) < 200 | REJECT (stub) |

| 2 | rationale == "" | REJECT (no evidence) |

| 3 | "PARTIAL PATCH" in code_head or "PATCH" in code[:120] | REJECT — apply_script treats new_code as full file replacement; partial patches would destroy the skill. Splice manually if the patch idea is valid. |

| 4 | kind == "new" AND category starts with base/robotwin/ | HARNESS GATE FIRST (rule 4a). Then ESCALATE to user with harness result. |

| 4a | kind == "update" AND target file is base/robotwin/*/policy.py (a BASE SKILL update) | HARNESS GATE — run review_base_skill_harness on the candidate. APPROVE proceeds; REJECT or SKIP halts apply. |

| 5 | Rationale lacks ALL of: ("SYSTEMATIC" / "verdict"), ("view_frame" or "frame"), ("inner_trace" or "vlm_trace" or "tool_calls") | REJECT — proposal isn't grounded in the diagnostic chain (see bot_agent system prompt CONTRADICTION SIGNAL protocol) |

| 6 | git log --grep="<skill_name>" shows a recent commit that already changed this skill in the same direction | REJECT as duplicate |

| 7 | otherwise | APPLY via python -m roborsi.agents.evolution.apply_proposal <pid> |

4. Execute the decision

# APPLY
python -m roborsi.agents.evolution.apply_proposal <pid>
# REJECT
python -m roborsi.agents.evolution.apply_proposal --reject <pid>
# ESCALATE: do NOT touch the queue; report verbatim to the human:
#   "PROPOSAL <pid>  kind=<kind>  name=<name>
#    rationale: <first 300 chars>
#    code_len: <N>
#    Needs human decision because <rule-4 reason>."

5. After all decisions, snapshot the round

Log to /tmp/agent_loop/<task>/review_decisions.log:

<timestamp>  <pid>  <decision>  <one-line reason>

Success criteria

Failure modes

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.