con un clic
experiment-lifecycle
Use this skill when preparing, running, or validating experiments.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Use this skill when preparing, running, or validating experiments.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Use when agent-side working philosophy, interaction lessons, task retrospectives, repeated routing misses, missed skill invocation, or recurrence-prevention feedback should be logged without mixing them into user preferences.
Use when exploring, refactoring, or choosing an algorithm under proof obligations; builds JIT-canonical IR, lemma dependency graphs, algorithmic blocker frontiers, and algorithm-change guidance before handing terminal proof work to formal-proof-workflow.
Use when designing, implementing, reviewing, or diagnosing numerical optimization, solvers, preconditioners, convergence, gradients, Jacobians, Hessians, KKT conditions, tolerances, or optimization benchmarks; fixes the mathematical and validation contract before code or experiment changes.
Use when a change needs oracle/spec-risk classification or resilient, adversarial static test design, including behavior contracts, oracle choice, property/metamorphic candidates, mutation adequacy, or brittle-test diagnosis.
Use when updating AgentCanon itself, refreshing a vendored vendor/agent-canon submodule pin, repairing AgentCanon root runtime views, applying AgentCanon update TODOs, or routing local AgentCanon source commits through a proper AgentCanon branch and PR before parent pin updates.
Use when accumulated AgentCanon eval evidence is missing, stale, or failing; runs registered eval producers, validates eval family accumulation, and stores evidence through the log archive instead of hand-writing reports.
| name | experiment-lifecycle |
| description | Use this skill when preparing, running, or validating experiments. |
Use the command packet before applying this skill's workflow:
python3 tools/agent_tools/skill_tool_commands.py show --skill experiment-lifecycle --format text
Execute the required and task-matching conditional commands that the packet prints.
agents/skills/experiment-lifecycle.md.python3 tools/experiments/create_experiment_topic.py <topic> to copy vendor/agent-canon/experiments/_template/ into project-root experiments/<topic>/ and append the project registry entry, then edit run.py main::main, cases.py, config.yaml, visualize.ipynb, and README.md in that order.experiments/registry.toml as the project-owned topic registry for entrypoints and registered smoke/formal commands. AgentCanon source owns the registry contract in documents/experiment-registry.md; from a template or derived repo root, read that contract as vendor/agent-canon/documents/experiment-registry.md.python3 tools/ci/check_experiment_registry.py before formal execution./usr/bin/python experiments/<topic>/run.py with no CLI options as the canonical experiment entrypoint. The topic run.py owns run directory creation, config snapshotting, artifact writing, and notebook execution.main, use
$save-experiment-results before publishing generated result/report
artifacts. The dedicated save skill owns retention plan, dirty-source
formal-status, overwrite policy, and result-branch evidence before
python3 tools/experiments/publish_result_branch.py --result-dir experiments/<topic>/result/<run_name> --branch experiment-results/<topic> runs, adding --push only when remote result-branch retention is part of the run plan.max_workers: 1, GPU visibility filters, single-device JAX platform settings, or equivalent throttles unless the user explicitly requests serial debugging or the run plan records a concrete environment limit. gpu_max_slots: 1 means one worker slot per GPU; it must not be used as a substitute for reducing the visible GPU set.run.py, child worker, process group, and elapsed time before calling it residual. Treat active parent/worker processes as a still-running experiment and stop them only when the user asks for abort or cleanup.experiments/<topic>/config.yaml; run artifacts must include a topic config snapshot, commonly config_snapshot.json, written by run.py.experiments/<topic>/README.md to describe the experiment content, question, comparison target, standard commands, config source, visualization notebook, output schema, and run_name convention before formal execution.python/ files, classes, and functions by name, plus a separate object-flow section that shows which objects each step creates, mutates, passes downstream, and writes as artifacts. If an experiment compares variants, identify the single shared execution path and the exact factory/function boundary where variants differ.experiments/<topic>/visualize.ipynb; notebooks read run artifacts and render figures/tables, but they must not be the formal run launcher, fine-grained test surface, or config source of truth.$experiment-review and check direct run.py execution, GPU/JAX environment ownership, artifact schema, and notebook readiness.result/<run_name>/; put additional stdout, stderr, startup, tool, or diagnostic logs under result/<run_name>/logs/ when the topic emits them.summary.json, cases.jsonl, the topic config snapshot, case artifacts, and visualize_executed.ipynb as standard topic run artifacts. If a run lacks them, rerun /usr/bin/python experiments/<topic>/run.py or record that the run is not fully reproducible.python3 tools/agent_tools/tool_rejection_preflight.py --root . <planned-edit-paths> and resolve the experiment_execution_surface_guard handoff before patching. This surface includes tools/ci/check_experiment_registry.py, documents/experiment-registry.md, agents/workflows/experiment-workflow.md, experiments/registry.toml, and topic run.py entrypoints. Pair this skill with $test-design; run python3 tools/ci/check_experiment_registry.py when project experiments/registry.toml exists, use python3 -m pytest tests/tools/test_run_managed_experiment.py -q for runner or registry checker behavior changes, and reserve long experiment runs for an explicit run plan.$structure-planning before experiment planning, rerun planning, result report generation, or HTML view generation when the structure is nontrivial; fix first artifact, source-to-structure map, OOP structure contract, metric contract, invalid interpretations, and validation gate before running or writing.$structure-planning to use agent-canon semantic-index discourse-relations --profile experiment-report or --profile methods-protocol as advisory edge evidence.$save-experiment-results with $result-artifact-writeout for
experiment result/report generation so raw run output, Markdown summary,
manifest, run name, overwrite policy, branch reason, and formal-status are
recorded separately.experiment-change-loop.