Slate AR
Handle $ARGUMENTS.
Use this as the Slate v2 wrapper around codex-autoresearch:codex-autoresearch.
It is not the perf lane. slate-ar owns Slate-specific defaults for any measured
Autoresearch loop: target cwd, session files, dashboard/status/finalization
entrypoints, correctness routing, and handoff boundaries.
Performance optimization lives in slate-ar-perf.
Use When
- The user invokes
slate-ar.
- The user invokes a mini-skill shortcut:
slate-ar-next,
slate-ar-perfect, slate-ar-fast, slate-ar-stabilize, or
slate-ar-ship.
- The user invokes an expert wrapper shortcut:
slate-ar-status or
slate-ar-finalize.
- The user invokes a focused wrapper:
slate-ar-quality, slate-ar-gate, or
slate-ar-recipe.
- A Slate v2 task needs durable Autoresearch loop state, ASI logging,
keep/discard decisions, dashboard visibility, quality-gap research, or
packet/resume discipline.
- A correctness repair or architecture plan is looping and needs measured
hypothesis tracking after the direct owner has provided proof surfaces.
- The user asks for Slate v2 Autoresearch status, continuation, dashboard,
finalization preview, deep research, or quality-gap handling.
Do Not Use When
- The bug is a direct correctness failure with no oracle. Use
slate-patch.
- The output is an architecture/API proposal for user review. Use
slate-plan.
- The request is specifically performance/max-speed/pagination/virtualization
optimization. Use
slate-ar-perf.
- The target is Plate product code instead of raw Slate v2.
Relationship To Other Lanes
codex-autoresearch:codex-autoresearch: owns generic setup, packets, logging,
dashboard, deep research, quality-gap, drift, finalization, and CLI mechanics.
slate-ar: wraps that engine for Slate v2 cwd, state, correctness routing,
and operator modes.
slate-ar-next: daily driver that reads status, picks one next owner, and
runs one safe step.
slate-ar-perfect: primary broad surface-improvement loop backed by
autogoal; it owns architecture/API/DX gaps, behavior stability, perf, and
final no-regression proof for a named surface.
slate-ar-fast: expert fastest-safe perf loop backed by slate-ar-perf and
no-regression checks; normal users should reach it through
slate-ar-perfect unless they already know the perf target.
slate-ar-stabilize: expert behavior-stability loop backed by
slate-ar-gate, slate-patch, and tdd when needed; normal users should
reach it through slate-ar-perfect unless they already know the failing
behavior surface.
slate-ar-ship: finalization, review, and commit/PR readiness path backed by
slate-ar-finalize and autoreview.
slate-ar-quality: runs deep-research / quality-gap loops for Slate v2
API/DX/architecture/test coverage gaps.
slate-ar-gate: repeats and logs existing test/typecheck/browser/editor
behavior gates.
slate-ar-recipe: chooses or previews Codex Autoresearch recipes.
slate-ar-perf: adds Slate v2 performance target policy, benchmark registry,
exactness gates, and fastest-safe stop rules.
slate-patch: fixes correctness bugs and creates missing oracles.
slate-plan: decides public architecture/API shape.
Do not duplicate Codex Autoresearch mechanics here. Load
codex-autoresearch:codex-autoresearch for command details, packet lifecycle,
dashboard operation, ASI syntax, quality-gap internals, stale-packet recovery,
or finalization rules.
Slate Defaults
- Target cwd is
.tmp/slate-v2.
plate-2 is the control plane for package shortcuts and target registry
commands. It does not prove Slate v2 runtime behavior.
- Active loop truth lives in
.tmp/slate-v2/autoresearch.* and
.tmp/slate-v2/autoresearch.research/**.
benchmarks/targets/slate-v2.json is supporting context for target-backed
loops; perf-specific registry policy lives in slate-ar-perf.
- Slate correctness beats local metric movement. A packet that breaks editor
behavior is
checks_failed or discard, not keep.
- Do not run
slate-plan pass schedules inside Autoresearch.
Natural Modes
Interpret short user text before picking commands:
continue, resume: continue the current Slate AR session only. Do not
initialize a new target unless the session is missing or stale and the target
is unambiguous.
status, dashboard, where are we: read-only status mode. Use
slate-ar-status behavior. Do not run packets or edit files.
finalize, finalize preview: finalization mode. Use slate-ar-finalize
preview behavior only.
review branches, create review branches, run finalizer branches: explicit
review-branch mode. Use slate-ar-finalize and require the user to clearly
approve branch creation in the same turn.
research, quality gap, improve quality, find gaps: use generic Codex
Autoresearch deep-research / quality-gap flow through slate-ar-quality.
gate, proof, repeat, full editor behavior, navigation, typing:
route to slate-ar-gate.
recipe, recipes, what loop, setup recipe: route to
slate-ar-recipe.
fast, fastest, max perf, pagination, virtualization, benchmark:
route to slate-ar-perf.
next, do next, pick best: route to slate-ar-next.
perfect <surface>: route to slate-ar-perfect.
absolute best, best architecture, best DX, no regressions, or mixed
API/testing/perf quality requests: route to slate-ar-perfect.
ship, reviewable, ready to commit: route to slate-ar-ship.
stabilize, regressions, native behavior: route to
slate-ar-stabilize.
If a mutating Slate AR loop is already running in another thread, default to
read-only status unless the user explicitly says this thread owns writes.
Command Surface
Use the slate-ar* skills as the operator entrypoints. Do not invent package
scripts for Slate AR; Plate only exposes benchmark target scripts.
For exact shell execution, load codex-autoresearch:codex-autoresearch and use
its CLI fallback with --cwd .tmp/slate-v2. For target-backed setup from the
Plate control repo, use:
pnpm bench:targets:dry-run -- <target-id>
node tooling/scripts/bench-targets.mjs autoresearch-init <target-id>
Start Or Resume
- Identify the exact Slate v2 surface and whether this is generic AR,
performance, correctness, or architecture work.
- Route before editing:
- correctness failure or missing oracle:
slate-patch;
- existing proof/gate repeatability:
slate-ar-gate;
- broad quality-gap research:
slate-ar-quality;
- recipe selection/setup-plan:
slate-ar-recipe;
- performance optimization:
slate-ar-perf;
- public API/runtime redesign:
slate-plan;
- measured loop, quality gap, status, or finalization: continue here.
- Read existing
.tmp/slate-v2/autoresearch.* session files when present.
- Use generic Codex Autoresearch for onboarding, recommendation, doctor,
dashboard, packet, log, stale-packet, segment, and finalization mechanics.
- Keep Slate-specific routing in force after every packet:
keep only when the measured target improves and Slate correctness checks
pass;
checks_failed or discard when native selection, input ordering, IME,
copy, paste, undo, follow-up typing, focus, or browser behavior regresses;
slate-patch when correctness fails without an existing oracle;
slate-plan when the remaining win needs API/runtime redesign.
Quality-Gap Research
Use generic Codex Autoresearch deep-research and quality-gap workflow. Slate
additions:
- keep sources under
.tmp/slate-v2/autoresearch.research/**;
- turn accepted implementation gaps into Slate proof rows or target rows;
- route test/behavior suite gaps with an existing oracle to
slate-ar-gate;
- route perf-specific gaps to
slate-ar-perf;
- route correctness gaps without an oracle to
slate-patch;
- route public API/DX architecture gaps to
slate-plan.
quality_gap=0 closes the current accepted checklist only. It does not prove
that no more Slate gaps exist.
Finalization Mode
Use generic Codex Autoresearch finalization flow. Slate defaults:
- run Codex Autoresearch
finalize-preview --cwd .tmp/slate-v2 first;
- default finalization is preview-only. It may generate/read finalization plan
JSON, but must not execute
finalize-autoresearch.mjs <plan> or create
autoresearch-review/* branches unless the user explicitly asks to create
review branches;
- exclude
autoresearch.*, autoresearch.research/**, dashboard exports, and
finalization scratch files unless the user asks to review session artifacts;
- use Codex Autoresearch
finalize-current-tree --cwd .tmp/slate-v2 only as a
readiness preview when the current tree is the review unit because kept
commits were later corrected, bundled, or reverted;
- branch creation, cleanup, commit, push, and PR work require explicit user
approval. Short confirmations like
go, next, ok, or continue after a
normal ship/perfect flow do not approve review-branch creation.
Handoff
Report:
- active cwd and session;
- measured target or quality-gap slug;
- baseline/latest/best when available;
- kept/discarded/crashed/checks-failed packet counts;
- correctness checks used;
- dashboard URL, if served;
- next recommended packet, route, or blocker.
1---2name: slate-ar3description: Wrap Codex Autoresearch for Slate v2 measured loops. Delegates generic packet/dashboard/finalization mechanics to codex-autoresearch while enforcing `.tmp/slate-v2`, Slate correctness routing, target registry context, and short operator modes.4---56# Slate AR78Handle $ARGUMENTS.910Use this as the Slate v2 wrapper around `codex-autoresearch:codex-autoresearch`.11It is not the perf lane. `slate-ar` owns Slate-specific defaults for any measured12Autoresearch loop: target cwd, session files, dashboard/status/finalization13entrypoints, correctness routing, and handoff boundaries.1415Performance optimization lives in `slate-ar-perf`.1617## Use When1819- The user invokes `slate-ar`.20- The user invokes a mini-skill shortcut: `slate-ar-next`,21 `slate-ar-perfect`, `slate-ar-fast`, `slate-ar-stabilize`, or22 `slate-ar-ship`.23- The user invokes an expert wrapper shortcut: `slate-ar-status` or24 `slate-ar-finalize`.25- The user invokes a focused wrapper: `slate-ar-quality`, `slate-ar-gate`, or26 `slate-ar-recipe`.27- A Slate v2 task needs durable Autoresearch loop state, ASI logging,28 keep/discard decisions, dashboard visibility, quality-gap research, or29 packet/resume discipline.30- A correctness repair or architecture plan is looping and needs measured31 hypothesis tracking after the direct owner has provided proof surfaces.32- The user asks for Slate v2 Autoresearch status, continuation, dashboard,33 finalization preview, deep research, or quality-gap handling.3435## Do Not Use When3637- The bug is a direct correctness failure with no oracle. Use `slate-patch`.38- The output is an architecture/API proposal for user review. Use `slate-plan`.39- The request is specifically performance/max-speed/pagination/virtualization40 optimization. Use `slate-ar-perf`.41- The target is Plate product code instead of raw Slate v2.4243## Relationship To Other Lanes4445- `codex-autoresearch:codex-autoresearch`: owns generic setup, packets, logging,46 dashboard, deep research, quality-gap, drift, finalization, and CLI mechanics.47- `slate-ar`: wraps that engine for Slate v2 cwd, state, correctness routing,48 and operator modes.49- `slate-ar-next`: daily driver that reads status, picks one next owner, and50 runs one safe step.51- `slate-ar-perfect`: primary broad surface-improvement loop backed by52 `autogoal`; it owns architecture/API/DX gaps, behavior stability, perf, and53 final no-regression proof for a named surface.54- `slate-ar-fast`: expert fastest-safe perf loop backed by `slate-ar-perf` and55 no-regression checks; normal users should reach it through56 `slate-ar-perfect` unless they already know the perf target.57- `slate-ar-stabilize`: expert behavior-stability loop backed by58 `slate-ar-gate`, `slate-patch`, and `tdd` when needed; normal users should59 reach it through `slate-ar-perfect` unless they already know the failing60 behavior surface.61- `slate-ar-ship`: finalization, review, and commit/PR readiness path backed by62 `slate-ar-finalize` and `autoreview`.63- `slate-ar-quality`: runs deep-research / quality-gap loops for Slate v264 API/DX/architecture/test coverage gaps.65- `slate-ar-gate`: repeats and logs existing test/typecheck/browser/editor66 behavior gates.67- `slate-ar-recipe`: chooses or previews Codex Autoresearch recipes.68- `slate-ar-perf`: adds Slate v2 performance target policy, benchmark registry,69 exactness gates, and fastest-safe stop rules.70- `slate-patch`: fixes correctness bugs and creates missing oracles.71- `slate-plan`: decides public architecture/API shape.7273Do not duplicate Codex Autoresearch mechanics here. Load74`codex-autoresearch:codex-autoresearch` for command details, packet lifecycle,75dashboard operation, ASI syntax, quality-gap internals, stale-packet recovery,76or finalization rules.7778## Slate Defaults7980- Target cwd is `.tmp/slate-v2`.81- `plate-2` is the control plane for package shortcuts and target registry82 commands. It does not prove Slate v2 runtime behavior.83- Active loop truth lives in `.tmp/slate-v2/autoresearch.*` and84 `.tmp/slate-v2/autoresearch.research/**`.85- `benchmarks/targets/slate-v2.json` is supporting context for target-backed86 loops; perf-specific registry policy lives in `slate-ar-perf`.87- Slate correctness beats local metric movement. A packet that breaks editor88 behavior is `checks_failed` or `discard`, not `keep`.89- Do not run `slate-plan` pass schedules inside Autoresearch.9091## Natural Modes9293Interpret short user text before picking commands:9495- `continue`, `resume`: continue the current Slate AR session only. Do not96 initialize a new target unless the session is missing or stale and the target97 is unambiguous.98- `status`, `dashboard`, `where are we`: read-only status mode. Use99 `slate-ar-status` behavior. Do not run packets or edit files.100- `finalize`, `finalize preview`: finalization mode. Use `slate-ar-finalize`101 preview behavior only.102- `review branches`, `create review branches`, `run finalizer branches`: explicit103 review-branch mode. Use `slate-ar-finalize` and require the user to clearly104 approve branch creation in the same turn.105- `research`, `quality gap`, `improve quality`, `find gaps`: use generic Codex106 Autoresearch deep-research / quality-gap flow through `slate-ar-quality`.107- `gate`, `proof`, `repeat`, `full editor behavior`, `navigation`, `typing`:108 route to `slate-ar-gate`.109- `recipe`, `recipes`, `what loop`, `setup recipe`: route to110 `slate-ar-recipe`.111- `fast`, `fastest`, `max perf`, `pagination`, `virtualization`, `benchmark`:112 route to `slate-ar-perf`.113- `next`, `do next`, `pick best`: route to `slate-ar-next`.114- `perfect <surface>`: route to `slate-ar-perfect`.115- `absolute best`, `best architecture`, `best DX`, `no regressions`, or mixed116 API/testing/perf quality requests: route to `slate-ar-perfect`.117- `ship`, `reviewable`, `ready to commit`: route to `slate-ar-ship`.118- `stabilize`, `regressions`, `native behavior`: route to119 `slate-ar-stabilize`.120121If a mutating Slate AR loop is already running in another thread, default to122read-only status unless the user explicitly says this thread owns writes.123124## Command Surface125126Use the `slate-ar*` skills as the operator entrypoints. Do not invent package127scripts for Slate AR; Plate only exposes benchmark target scripts.128129For exact shell execution, load `codex-autoresearch:codex-autoresearch` and use130its CLI fallback with `--cwd .tmp/slate-v2`. For target-backed setup from the131Plate control repo, use:132133```bash134pnpm bench:targets:dry-run -- <target-id>135node tooling/scripts/bench-targets.mjs autoresearch-init <target-id>136```137138## Start Or Resume1391401. Identify the exact Slate v2 surface and whether this is generic AR,141 performance, correctness, or architecture work.1422. Route before editing:143 - correctness failure or missing oracle: `slate-patch`;144 - existing proof/gate repeatability: `slate-ar-gate`;145 - broad quality-gap research: `slate-ar-quality`;146 - recipe selection/setup-plan: `slate-ar-recipe`;147 - performance optimization: `slate-ar-perf`;148 - public API/runtime redesign: `slate-plan`;149 - measured loop, quality gap, status, or finalization: continue here.1503. Read existing `.tmp/slate-v2/autoresearch.*` session files when present.1514. Use generic Codex Autoresearch for onboarding, recommendation, doctor,152 dashboard, packet, log, stale-packet, segment, and finalization mechanics.1535. Keep Slate-specific routing in force after every packet:154 - `keep` only when the measured target improves and Slate correctness checks155 pass;156 - `checks_failed` or `discard` when native selection, input ordering, IME,157 copy, paste, undo, follow-up typing, focus, or browser behavior regresses;158 - `slate-patch` when correctness fails without an existing oracle;159 - `slate-plan` when the remaining win needs API/runtime redesign.160161## Quality-Gap Research162163Use generic Codex Autoresearch deep-research and quality-gap workflow. Slate164additions:165166- keep sources under `.tmp/slate-v2/autoresearch.research/**`;167- turn accepted implementation gaps into Slate proof rows or target rows;168- route test/behavior suite gaps with an existing oracle to `slate-ar-gate`;169- route perf-specific gaps to `slate-ar-perf`;170- route correctness gaps without an oracle to `slate-patch`;171- route public API/DX architecture gaps to `slate-plan`.172173`quality_gap=0` closes the current accepted checklist only. It does not prove174that no more Slate gaps exist.175176## Finalization Mode177178Use generic Codex Autoresearch finalization flow. Slate defaults:179180- run Codex Autoresearch `finalize-preview --cwd .tmp/slate-v2` first;181- default finalization is preview-only. It may generate/read finalization plan182 JSON, but must not execute `finalize-autoresearch.mjs <plan>` or create183 `autoresearch-review/*` branches unless the user explicitly asks to create184 review branches;185- exclude `autoresearch.*`, `autoresearch.research/**`, dashboard exports, and186 finalization scratch files unless the user asks to review session artifacts;187- use Codex Autoresearch `finalize-current-tree --cwd .tmp/slate-v2` only as a188 readiness preview when the current tree is the review unit because kept189 commits were later corrected, bundled, or reverted;190- branch creation, cleanup, commit, push, and PR work require explicit user191 approval. Short confirmations like `go`, `next`, `ok`, or `continue` after a192 normal ship/perfect flow do not approve review-branch creation.193194## Handoff195196Report:197198- active cwd and session;199- measured target or quality-gap slug;200- baseline/latest/best when available;201- kept/discarded/crashed/checks-failed packet counts;202- correctness checks used;203- dashboard URL, if served;204- next recommended packet, route, or blocker.