agentleFS
whenpoemwhenpoem/aiscientist/skills/replay/SKILL.md

replay

Skill10 starsChanged 5 months agoMITView on GitHub

Audit a past pruning or approval decision by creating a counterfactual branch from a saved snapshot without mutating the live graph. Use when the user asks what would have happened under another decision, disputes a paused branch, or wants to inspect an earlier checkpoint.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the user did not provide a snapshot id, call mcp__memory__list_snapshots(limit=20).

    line 13
  2. Very specific:

    If the analysis suggests a live action, report it as a recommendation.

    line 22

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Replay

Replay is an inspection over frozen state. It does not execute new experiments and must not modify live graph nodes, ratings, judgments, or preregistrations.

Workflow

  1. If the user did not provide a snapshot id, call mcp__memory__list_snapshots(limit=20). Show label, timestamp, and counts; do not create a new snapshot merely to replay the past.
  2. Phrase exactly one counterfactual in a falsifiable sentence, such as Approve hyp_07 instead of pausing it.
  3. Call mcp__memory__replay_counterfactual(snapshot_id, counterfactual) and retain the returned branch_id.
  4. Inspect only the recorded snapshot and branch metadata. Do not call model scripts, seed_perturb, or the sequestered-data query tool.
  5. If the analysis suggests a live action, report it as a recommendation. The user may later call resume_branch; replay itself never flips status.

Output shape

Return:

snapshot_id: <snap_...>
branch_id: <replay_...>
counterfactual: <one sentence>
live_graph_mutated: false
evidence: <recorded facts used>
finding: <what changes under the counterfactual>
recommendation: <none or explicit user action>
limitations: <what replay cannot establish without a new experiment>

For several what-ifs, create one replay branch per counterfactual and keep each output independent. Use mcp__memory__list_replay_branches(limit=20) to audit existing branches before adding duplicates.

Completion criteria

Replay is complete when the source snapshot and new branch are identifiable, the live graph is unchanged, every finding cites recorded snapshot evidence, and any proposed live change is clearly left for separate user approval.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.