Rebuttal

From brycewang-stanford/Auto-Empirical-Research-Skills · View interactive version

Rebuttal is an AI agent skill from the GitHub repository brycewang-stanford/Auto-Empirical-Research-Skills. Workflow 4: Submission rebuttal pipeline. Parses external reviews, enforces coverage and grounding, drafts a safe text-only rebuttal under venue limits, and manages follow-up rounds. Use when user says \"rebuttal\", \"reply to reviewers\", \"ICML rebuttal\", \"OpenReview response\", or wants to answ

How to use this skill

Skill file

Workflow 4: Rebuttal

Before each reviewer slot, follow Selectable Reviewers:

resolve invocation → .aris/reviewer.json → Claude Code default (Codex MCP)

with reviewer_route.py through the canonical helper resolver, preserving this

slot's tier, fresh contexts, source/image inputs and deterministic gates.

Codex examples/pins below apply only to backend=codex; other routes use their

own first-call/reply contract. Save the route and actual returned identity;

unavailable selections are REVIEW_UNAVAILABLE. Classify acceptance from actual

families/completion/scope. Forward invocation reviewer/model/effort overrides

to reviewer-bearing children. Generation workers are unchanged.

Prepare and maintain a grounded, venue-compliant rebuttal for: $ARGUMENTS

Scope

This skill is optimized for:

This skill does not:

If the user already has new results, derivations, or approved commitments, the skill can incorporate them as user-confirmed evidence.

Lifecycle Position

Workflow 1:   idea-discovery
Workflow 1.5: experiment-bridge
Workflow 2:   auto-review-loop (pre-submission)
Workflow 3:   paper-writing
Workflow 4:   rebuttal (post-submission external reviews)

Constants

Override: /rebuttal "paper/" — venue: NeurIPS, character limit: 5000

Reviewer Calling Convention

When calling the reviewer for stress-testing, branch on REVIEWER_BACKEND:

If REVIEWER_BACKEND = codex:

Use mcp__codex__codex for new review threads.

Use mcp__codex__codex-reply for follow-up rounds (reuse threadId).

If REVIEWER_BACKEND = manual:

Use mcp__manual_review__review for new review threads with:

prompt: [exact same prompt that would go to Codex]

config: {"model_reasoning_effort": "xhigh", "executor_model": "<actual executor model>", "require_reviewer_model": true}

Save the returned threadId.

Use mcp__manual_review__review_reply for follow-up rounds with:

threadId: [saved manual-review threadId]

prompt: [follow-up prompt]

config: {"model_reasoning_effort": "xhigh", "executor_model": "<actual executor model>", "require_reviewer_model": true}

Prompt fidelity: the manual prompt must be exactly the same text that Codex would receive.

Review tracing applies equally to both backends.

Required Inputs

  1. Paper source — PDF, LaTeX directory, or narrative summary
  2. Raw reviews — pasted text, markdown, or PDF with reviewer IDs
  3. Venue rules — venue name, character/word limit, text-only or revised PDF allowed, rendering mode (one shared response or independent reviewer threads)
  4. Current stage — initial rebuttal or follow-up round

If venue rules, limit, or rendering mode are missing, stop and ask before drafting.

Safety Model

Three hard gates — if any fails, do NOT finalize:

  1. Provenance gate — every factual statement maps to: paper, review, user_confirmed_result, user_confirmed_derivation, or future_work. No source = blocked.
  2. Commitment gate — every promise maps to: already_done, approved_for_rebuttal, or future_work_only. Not approved = blocked.
  3. Coverage gate — every reviewer concern ends in: answered, deferred_intentionally, or needs_user_input. No issue disappears.

Workflow

Phase 0: Resume or Initialize

  1. If rebuttal/REBUTTAL_STATE.md exists → resume from recorded phase
  2. Otherwise → create rebuttal/, initialize all output documents
  3. Load paper, reviews, venue rules, any user-confirmed evidence

Phase 1: Validate Inputs and Normalize Reviews

  1. Validate venue rules are explicit
  2. Normalize all reviewer text into rebuttal/REVIEWS_RAW.md (verbatim)
  3. Record metadata in rebuttal/REBUTTAL_STATE.md
  4. If ambiguous, pause and ask

Phase 2: Atomize and Classify Reviewer Concerns

Create rebuttal/ISSUE_BOARD.md.

For each atomic concern:

Phase 3: Build Strategy Plan

Create rebuttal/STRATEGY_PLAN.md.

  1. Identify 2-4 global themes resolving shared concerns
  2. Choose response mode per issue
  3. Build character budget (10-15% opener, 75-80% per-reviewer, 5-10% closing) — applies in single_document mode; in per_reviewer_thread mode, set per-thread word/char targets instead
  4. Identify pivotal reviewer(s) — reviewers whose vote or confidence shift would most affect the decision, especially when concerns are addressable rather than ideological. Mark them reviewer_priority: pivotal in ISSUE_BOARD.md. There may be more than one. Allocate disproportionate drafting + stress-test budget here.
  5. Identify blocked claims (ungrounded or unapproved)
  6. If unresolved blockers → pause and present to user

A verdict-bearing manual response MUST begin with

Reviewer-Model: <exact-model-id> — pass the model THIS session is actually

running as in executor_model. Missing, unknown, or same-family identity

cannot acquit; emit REVIEW_UNAVAILABLE rather than guessing. If the executor

model cannot be named, manual review's cross-family claim is unprovable — say

so in the report instead of asserting it.

QUICK_MODE exit: If QUICK_MODE = true, stop here. Present ISSUE_BOARD.md + STRATEGY_PLAN.md to the user and summarize: how many issues per reviewer, shared vs unique concerns, recommended priorities, and evidence gaps. The user can then decide to continue with full rebuttal (/rebuttal — quick mode: false) or write manually.

Phase 3.5: Evidence Sprint (when AUTO_EXPERIMENT = true)

Skip entirely if AUTO_EXPERIMENT is false — instead, pause and present the evidence gaps to the user.

If the strategy plan identifies issues that require new empirical evidence (tagged response_mode: grounded_evidence with evidence_source: needs_experiment):

  1. Generate a mini experiment plan from the reviewer concerns:
  1. Invoke /experiment-bridge with the mini plan:

```

/experiment-bridge "rebuttal/REBUTTAL_EXPERIMENT_PLAN.md"

```

  1. Wait for results, then update ISSUE_BOARD.md:
  1. If experiments fail or are inconclusive:
  1. Save experiment results to rebuttal/REBUTTAL_EXPERIMENTS.md for provenance tracking.

Time guard: If estimated GPU-hours exceed rebuttal deadline, skip and flag for manual handling.

Phase 4: Draft Initial Rebuttal

Create the draft artifact(s) per VENUE_MODE:

Structure depends on VENUE_MODE:

1. Short opener — thank reviewers + 2-4 global resolutions

2. Per-reviewer numbered responses — answer → evidence → implication

3. Short closing — resolved / remaining / acceptance case

1. Brief acknowledgment of that reviewer's main thrust

2. Numbered W#/Q# responses (answer → evidence → implication)

3. Optional shared experimental-setup paragraph (see "Reusable setup block" below)

Default reply pattern per issue:

Reusable setup block (per_reviewer_thread mode).

If multiple reviewer-thread responses need the same experimental setup or metric definitions, write a canonical SETUP_METRICS_BLOCK.md. Reuse it consistently in each reviewer file that needs it. Target ≤ 150 words; expand only with genuinely reviewer-specific additions inline. Change-once-update-everywhere prevents drift across threads.

Heuristics from successful rebuttals (content):

Reviewer-defensive moves:

Hard rules:

single_document mode only: also generate rebuttal/PASTE_READY.txt (plain text, exact character count for the OpenReview/CMT paste field). In per_reviewer_thread mode skip this artifact — each Reviewer_<ID>_response.md is itself the paste target for its thread.

Also generate rebuttal/REVISION_PLAN.md — the overall revision checklist.

This document is the single source of truth for every paper revision promised (explicitly or implicitly) in the rebuttal draft. It exists so the author can track follow-through after the rebuttal is submitted, and so the commitment gate in Phase 5 has a concrete artifact to validate against.

Structure:

  1. Header
  1. Overall checklist — a single flat GitHub-style checklist covering every revision item, so the author can tick items off as they land in the camera-ready / revised PDF:

```markdown

## Overall Checklist

```

Checklist items must be atomic (one paper edit per line) and each must reference its issue_id so it maps back to ISSUE_BOARD.md.

  1. Grouped view — the same items regrouped by (a) paper section/location and (b) severity, so the author can plan the revision pass efficiently.
  1. Commitment summary — counts of already_done / approved_for_rebuttal / future_work_only, plus any needs_user_input items that are blocking.
  1. Out-of-scope log — reviewer concerns that will not trigger a paper revision (e.g. deferred_intentionally, narrow_concession with no edit), with a one-line reason each. This keeps the checklist honest: nothing silently disappears.

Rules for REVISION_PLAN.md:

Phase 5: Safety Validation

Run all lints:

  1. Coverage — every issue maps to draft anchor
  2. Provenance — every factual sentence has source
  3. Commitment — promises are approved AND every paper-edit promise in the draft appears as a checklist item in REVISION_PLAN.md (and vice versa — no orphan items in the plan)
  4. Tone — flag aggressive/submissive/evasive phrases
  5. Consistency — no contradictions across reviewer replies
  6. Limit — exact character count, compress if over (redundancy → friendly → opener → wording, never drop critical answers)
  7. Thread-local context (per_reviewer_thread mode only) — each reviewer file must be intelligible without reading any other reviewer file. Flag any "see Reviewer X" references or undefined terms that rely on cross-thread context.
  8. Adversarial design-choice scan — for each experimental claim, ask: "Could a hostile reviewer find a non-obvious design choice (compute-match, frozen subset, sampling protocol) that I haven't disclosed?" If yes, add a one-line caveat in the Setup paragraph. Narrower than provenance; focused on design choices not factual sources.

Phase 6: External Reviewer Stress Test

Use the selected backend. For codex:

Resolve this reviewer slot first; the following is the backend=codex example.

mcp__codex__codex:
  model: gpt-6-astra
  config: {"model_reasoning_effort": "xhigh"}
  prompt: |
    Stress-test this rebuttal draft:
    [raw reviews + issue board + draft + venue rules]

    1. Unanswered or weakly answered concerns?
    2. Unsupported factual statements?
    3. Risky or unapproved promises?
    4. Tone problems?
    5. Paragraph most likely to backfire with meta-reviewer?
    6. Minimal grounded fixes only. Do NOT invent evidence.

    Verdict: safe to submit / needs revision

For manual: use mcp__manual_review__review with the same prompt and the identity-bearing config from the Reviewer Calling Convention above (executor_model + require_reviewer_model: true).

Iterations. Run the base round on the full draft. Then run focused follow-up rounds on each reviewer_priority: pivotal response, terminating when the reviewer returns no new substantive issues. Hard cap at 5 rounds total. Save each round to rebuttal/MCP_STRESS_TEST_round<N>.md; the highest round number represents the final state. If any hard safety blocker remains → revise before finalizing.

Phase 7: Finalize

Outputs depend on VENUE_MODE:

single_document mode — produce two versions:

  1. rebuttal/PASTE_READY.txt — strict version
  1. rebuttal/REBUTTAL_DRAFT_rich.md — extended version

per_reviewer_thread mode — produce one file per reviewer:

  1. rebuttal/Reviewer_<ID>_response.md — one self-contained file per reviewer, ready to paste into the corresponding reviewer thread
  2. rebuttal/SETUP_METRICS_BLOCK.md — optional canonical setup/metrics text when reused across reviewer files
  3. rebuttal/SUPPLEMENTARY_FIG_PDF/ (optional) — when the venue does not allow PDF revision but allows anonymous figure links, generate a venue-compliant supplementary PDF. Do not hard-code an anonymous-hosting platform or typesetting style; choose what the target venue accepts.

Both modes:

  1. Update rebuttal/REBUTTAL_STATE.md
  2. Refresh rebuttal/REVISION_PLAN.md so the overall checklist matches the final draft (add items, mark already_done as checked, carry forward any pending items)
  3. Present to user:

Phase 8: Follow-Up Rounds

When new reviewer comments arrive:

  1. Append verbatim to rebuttal/FOLLOWUP_LOG.md
  2. Link to existing issues or create new ones
  3. Draft delta reply only (not full rewrite)
  4. Update rebuttal/REVISION_PLAN.md in place — add any new checklist items introduced by the follow-up, tick off items the author has already completed, and keep existing items' status current
  5. Re-run safety lints
  6. Use the appropriate reply tool for continuity if useful (per Reviewer Calling Convention)
  7. Rules: escalate technically not rhetorically; concede if reviewer is correct; stop arguing if reviewer is immovable and no new evidence exists

Phase 9: Render HTML view (auto, when `RENDER_HTML = true`, default)

After Phase 6 (initial rebuttal) or Phase 8 (follow-up rounds) finalize rebuttal/REBUTTAL_DRAFT_rich.md, invoke /render-html on the detailed draft:

/render-html "rebuttal/REBUTTAL_DRAFT_rich.md"

Uses full Codex review gate (reviewer-facing pre-submission deliverable — render fidelity matters; the rich draft contains author-controlled formatting that the reviewer should see exactly as intended). Output: rebuttal/REBUTTAL_DRAFT_rich.html with embedded source SHA256 and .review.json sidecar.

Do NOT render rebuttal/PASTE_READY.txt — it's exact-character-count plain text by design, not a structural artifact.

Non-blocking: if /render-html fails (helper missing, Codex MCP unavailable, file write error), log the failure and treat the rebuttal phase as complete — the PASTE_READY.txt and REBUTTAL_DRAFT_rich.md are the canonical outputs.

Skip if RENDER_HTML = false.

Key Rules

Review Tracing

After each reviewer call (mcp__codex__codex, mcp__codex__codex-reply, mcp__manual_review__review, or mcp__manual_review__review_reply), save the trace following shared-references/review-tracing.md (Policy C — forensic; never silently skip). Use save_trace.sh (resolved per the chain in shared-references/integration-contract.md §2) or write files directly to .aris/traces/<skill>/<date>_run<NN>/. Respect the --- trace: parameter (default: full).

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.