Sigil: Refine
SkillMediaUse when: turning a vague refinement target, design concern, folder, idea, repository area, or existing work-pack into a refined seed, design, or non-executed plan through the Arcanum refinement loop.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Sigil: Refine skill
What this skill tells your AI
The instructions your AI receives, as published by cyberalchemyai/arcanum in arcana/refine/SKILL.md and read by ahel’s review.
Every user-facing Refine strategy proposal and final result must follow
framework/OUTCOME-BRIEF-CONTRACT.md: lead with a short plain-language
Outcome Brief, then state Boundary and Next Decision, and only then present
the existing strategy or result details.
The opening explains the objective, result, and why it matters without requiring the operator to decode stage names, receipt handles, paths, or internal status identifiers. The boundary explicitly states what changed, what did not, remaining uncertainty, the exact user decision if one exists, and the next bounded action. This human projection does not alter stage receipts, dispatch validation, authority, promotion, or runtime state.
Refine owns the seed, research decision, dispatch request, run manifest, evidence index, and final synthesis. Dispatch Spec owns route-shape validation. Stage capabilities own their native artifacts.
| Capability | Required For | Evidence Required |
|---|---|---|
context-builder | Build the evidence baseline and runtime handoff context. | Context pack path or blocked coverage reason. |
invoke | Produce Define, Redefine/Design, and Plan artifacts. | Invoke artifact path, mode, capability handle, terminal stage receipt, exact output refs, execution designation, and the same exact Implementation Readiness receipt for execution-candidate plans. |
interrogation | Critique Define, Design, and final synthesis. | Interrogation artifact path, mode, capability handle, and pass/flag/block verdict. |
distill | Select the coherent unit and run repair/validation before planning. | Distill artifact path, mode, selected unit or repair verdict, and rejected alternatives. |
dispatch-spec | Validate the canonical stage route, technique references, gates, handoffs, subagent strategy, and observability grouping before execution. | REFINE-DISPATCH.json, validation status, blocked fields, cited techniques, subagent strategy, and permission state. |
runtime-handoff | Prepare or validate the durable runtime handoff when available. | Runtime handoff path, adapter, run folder, or blocked reason. |
Every refine run uses this stage list. Presets tune budget, depth, and configuration; they do not remove stages.
- Context Builder evidence baseline.
- Invoke Define.
- Interrogation using
refine-review. - Research decision, with bounded research only when selected or triggered by a named gap.
- Distill.
- Invoke Redefine / Design.
- Interrogation using
refine-design-review. - Distill Repair.
- Invoke Plan.
- Final Interrogation and Refine-owned synthesis using
refine-final.
Every materialized refine run must write REFINE-DISPATCH.json before native runtime-backed stage execution. The dispatch must conform to formulae/dispatch-spec/dispatch.schema.yml and should cite applicable techniques from formulae/dispatch-spec/TECHNIQUE-CATALOG.md.
The dispatch document replaces Refine as a freeform orchestrator. Refine defines the fixed canonical loop, research policy, and final synthesis, but the route artifact must carry:
dispatch_idtied to the run id,- raw operator intent and refinement objective,
- the ten canonical stages as ordered dispatch steps,
- stage owner, mode/configuration, inputs, outputs, runtime surface, and native receipt handles for each runtime-backed stage,
- gates for native capability handles, stage receipts, research confirmation, required artifact existence, owner-boundary preservation, and final synthesis readiness,
- observability trace events grouped by
dispatch_id, - a route menu or recorded route decision when more than one technique profile could apply,
subagent_strategydescribing whether role-bound sibling agents are none, recommended, required, or blocked,- role, join-policy, receipt, context, and authorization details when subagents are recommended or required,
- selected technique overlays and why they were selected,
- baseline technique references such as
sequence,frame_handoff,validation_loop,owner_boundary_check,observability_grouping,minimum_component_catalog,conditional_component, anddata_quality_completeness, - optional applied techniques such as
dialectic,zig_zag,tournament,pareto_gate,x_ray,toy_game,memory_loop,residue_ledger,protected_context_flag, andspell_candidatewhen the target actually needs them.
If dispatch-spec cannot validate the route shape, the run is block before stage execution.
Refine is the orchestrating front door. It asks Dispatch Spec for the route and native runtime/subagent strategy, then shows the operator the strategy before any runtime-backed stage or delegated subagent execution.
The preview must include:
- selected technique overlays,
- why each selected overlay applies to the target context,
subagent_strategy.status,- role list and ownership when subagents are recommended or required,
- join policy and receipt requirements,
- what will run next if permission is granted,
- what remains blocked or deferred if permission is denied.
If subagent_strategy.status is recommended or required, Refine must ask for
operator permission before spawning subagents or running runtime-backed stages.
If the operator declines or permission is unavailable, record
authorization=blocked or the blocked reason in RUNTIME-HANDOFF.md and stop
before execution. Dispatch Spec can recommend the strategy; it does not execute it.
Refine preserves the canonical ten-stage loop, but it may adapt the dispatch route with technique overlays. Overlays change stage configuration, validation expectations, gates, evidence requirements, or recommended next routes; they do not remove required stages.
Default overlay:
baseline_sequence: usesequence,frame_handoff,handle_handoff,validation_loop, owner-boundary, observability, and POLE-inspired minimum-component/data-quality techniques for ordinary refinement.
Optional overlays:
route_menu_for_ambiguity: useroute_menu,one_or_more_option_set, andapproval_checkpointwhen route, owner, output, or research choice is ambiguous.dialectic_for_tension: usedialectic,zig_zag, andresidue_ledgerwhen the target has competing principles or likely disagreement.tournament_for_alternatives: usetournament,pareto_gate, andrecomposition_proofwhen several plausible designs, abstractions, or SWU boundaries must be compared.xray_for_hidden_structure: usex_ray,component_descriptor, andentity_component_referencewhen hidden architecture, workflow, or relationship structure is the main uncertainty.toy_game_for_low_cost_falsification: usetoy_game,validation_loop, andassessment_failure_referencewhen a selected abstraction needs a controlled failure test before planning.memory_residue_for_context_recovery: usememory_loop,residue_ledger, anddata_quality_deduplicationwhen prior sessions, rejected candidates, or repository memory are material to the result.protected_context_for_external_or_sensitive_evidence: useprotected_context_flag,system_agnostic_standard, andlocal_nuance_coordinationwhen external, sensitive, or non-canonical evidence is used.
Validation requirements:
dialecticandtournamentrequire roles and convergence criteria.toy_gameand validation-shaped steps require an evidence artifact.x_rayrequires an artifact or handle output.- technique citations must be reflected in steps, gates, observability, route menu, or validation expectations.
Every executable stage in the validated dispatch must use parent-owned native runtime dispatch. A selected stage is complete only when it records a native receipt or an explicit blocked reason. The receipt may come from the parent coordinator, the owning native skill, an approved subagent, or a deterministic adapter handoff that is clearly outside the execution success gate.
Deprecated command files, slash commands, and command-resolution checks are not active Refine success gates. tools/arcanum may remain as explicit legacy compatibility or deterministic handoff preparation, but a missing command interface must not block a stage when the native capability is available through the current host runtime. Explicit legacy adapters such as codex-exec and codex-bypass remain opt-in only.
Before a stage runs, Refine must identify the owning capability handle and the expected receipt shape. If the capability is unavailable through the current native runtime, the stage is block and the blocked reason is recorded. Do not replace a required stage with freeform prose when its owner capability is available through the current native runtime.
For each stage, preserve:
- stage name,
- owning capability,
- capability handle,
- receipt kind,
- runtime surface,
- requested mode/configuration,
- output path,
- status and verdict,
- receipt artifact or structured receipt fields,
- observer status when available,
- blocked reason when no artifact exists.
Default configuration:
- Context Builder: capability
context-builder; modestandard; request includes--strict --emit both --handoff runtime --persist <run-folder>/context-builder. - Invoke Define: capability
invoke; modedefine; input isREFINE-SEED-PROPOSAL.mdplus Context Builder outputs. - Interrogation 1: capability
interrogation; moderefine-review. - Research Decision: owner
refine; modeno-research,bounded-research, orresearch-if-gap-appears. - Distill: capability
distill; modestandard. - Invoke Redefine / Design: capability
invoke; modedesign; request explicitly frames the run as redefining/designing from prior artifacts. - Interrogation 2: capability
interrogation; moderefine-design-review. - Distill Repair: capability
distill; modevalidateor an explicitly repair-focused request. - Invoke Plan: capability
invoke; modeplan; output is an Invoke-owned plan artifact set plusrefine.invoke-plan-stage-receipt/v1. Implementation outcomes requestexecution-candidateand require terminal/resultpass, matching Work Pack identity/designation, exact Invoke output refs, and the same proof-onlyIMPLEMENTATION-READINESS-PREFLIGHT.jsonbound byrefine.invoke-plan-readiness-binding/v2; conceptual or research-only outcomes declarenon-executingwith a reason. Historical v1 bindings cannot establish new execution-candidates. - Final Interrogation and Synthesis: capability
interrogation; moderefine-final, followed by Refine-owned synthesis.
Every materialized refinement run must write a target-local evidence folder:
<target>/development/refinement-runs/<run-id>/
Required contents:
RUN-MANIFEST.mdevidence-index.jsonREFINE-SEED-PROPOSAL.mdREFINE-DISPATCH.jsonRUNTIME-HANDOFF.mdRESULT.mdINVOKE-PLAN-READINESS-BINDING.jsonstages/
Refine owns this folder, the seed proposal, the dispatch request, the runtime handoff, the research decision reference, the final result, and the evidence index. Dispatch Spec owns route-shape validation. Stage capabilities own their own artifacts. The manifest and index reference those artifacts; they do not copy or redefine them.
A selected stage is invalid when it has neither an artifact path nor a blocked reason. A stage marked pass is invalid when its artifact path is missing or does not exist.
- the user asks to refine a target, idea, folder, design, plan, repository area, or work-pack,
- the target needs discovery, critique, repair, or design before execution,
- the user needs a budget, research mode, loop evidence, or final refined synthesis,
- a future Task Session, Sigil Development, or other route should be recommended only after refinement.
- the user wants immediate execution of one already-approved task/SWU,
- the request is a trivial direct edit,
- the user wants only Invoke artifacts without the refine loop,
- the user wants lifecycle promotion rather than discovery/design refinement.
- target folder, artifact, idea, design concern, plan, work-pack, or repository area,
- simple operator sentence such as "refine everything until we have an MVP-ready plan",
- desired preset: compact, standard, full, or deep,
- desired research mode: no, bounded, or if-gap,
- existing source context or constraints,
- preferred output location for seed artifacts.
Refine must support a simple operator sentence as the primary user experience. When the user says something like:
$refine refine everything until we have an MVP-ready plan
Refine should infer:
- target: the current repository, folder, feature, or supplied scope called "everything";
- desired outcome: an MVP-ready non-executed plan;
- preset:
standardunless the sentence implies compact/deep; - research mode:
research-if-gap-appearsunless the user says otherwise; - first action: propose the run strategy, not execute it.
The initial response must be a Refine Run Strategy Proposal. It must offer the
strategy that Dispatch Spec selected, explain why it fits the target context, and
ask for confirmation. It must not spawn subagents, execute stages, or start the
canonical loop before confirmation.
After the user confirms, Refine runs the approved refinement session. If the
approved subagent_strategy.status is recommended or required, the confirmed
run should spawn the proposed subagents through the current native runtime when
available and collect their receipts before parent synthesis. If subagents are
not available, record subagent_execution=blocked with the exact reason and
continue only if the approved strategy allows a non-subagent fallback.
- Refine owns seed design, research decision, dispatch request, runtime handoff, manifest/index, final synthesis, and recommended next routes.
- Dispatch Spec owns route-shape validation for the canonical loop, technique references, gates, handoffs, and observability grouping.
- Context Builder owns the evidence baseline and handoff pack outputs.
- Invoke owns Define, Design, and Plan artifacts.
- Interrogation owns critique and readiness verdict artifacts.
- Distill owns coherent-unit selection, optimization, and repair artifacts.
- Runtime adapters own adapter-specific execution status when a runtime run is actually dispatched.
- Task Session and Sigil Development are optional recommended next routes, not refine loop stages.
Options:
no-research: use only local repository and supplied context.bounded-research: one external comparison pass within Refine Loop bounds.research-if-gap-appears: default; start local-first and ask again only if Interrogation or Distill identifies a named external-context gap.
External research requires explicit confirmation unless the user already selected bounded research for the run. External research cannot override local repository evidence.
compact: shortest stage outputs, lean Context Builder if appropriate, local-first research decision, repair pass may block quickly.standard: default stage depth with standard Context Builder and Distill.full: deeper interrogation and distill requests, stronger design/plan output expectations.deep: full behavior plus checkpointing before expensive or mutation-heavy next-route recommendations.
If no preset is supplied, use standard.
- produce a clear seed proposal before stage execution,
- produce and validate
REFINE-DISPATCH.jsonbefore runtime-backed stage execution, - preserve the canonical ten-stage loop,
- select technique overlays based on target evidence rather than decorating the route with unused technique names,
- show the Dispatch Spec strategy and ask permission before runtime execution,
- stop after the strategy proposal until the operator confirms the run,
- use native capability handles and native runtime receipts for runtime-backed stages,
- collect subagent receipts when approved subagents are used,
- materialize a target-local run manifest and evidence index,
- record research mode and confirmation status,
- preserve each stage capability's native artifact ownership,
- cite dispatch techniques only when they are expressed by steps, gates, handoffs, or validation notes,
- block unavailable native capabilities or unsafe runtime handoff with exact missing fields,
- produce a final refined synthesis,
- consume Invoke Plan's readiness receipt without recreating its contracts; block an implementation-ready claim when an execution-candidate receipt is missing, stale, reusable, mutation-ready, or invalid,
- lead both strategy and final user-facing results with a plain-language Outcome Brief and explicit boundary/decision layer,
- keep Task Session and Sigil Development out of the loop except as optional next-route recommendations.
Recommended signal fields:
- target,
- selected preset,
- selected research mode,
- research confirmation status,
- runtime handoff status,
- dispatch strategy status,
- subagent strategy status and authorization,
- native capability receipt status,
- run manifest path,
- evidence index path,
- runtime handoff path,
- final result path,
- blocked fields,
- recommended next routes.
- vague targets produce useful seed proposals,
- the ten-stage loop is represented in manifest/index evidence,
- runtime-backed stages produce native capability receipts or blocked reasons,
- blocked native capability or runtime execution records exact missing fields,
- bounded research choices are offered and recorded,
- the dispatch route validates before stage execution,
- the strategy preview and permission gate occur before runtime-backed or subagent execution,
- the simple operator sentence path produces a strategy proposal before execution,
- final synthesis is produced from stage artifacts rather than a route proposal,
- Task Session and Sigil Development are only next-route recommendations.
- treating Task Session or Sigil Development as refine loop stages,
- using a Task Session route artifact as refine's route artifact,
- replacing runtime-backed stages with hand-written prose,
- running external research without the selected mode and confirmation,
- marking refinement complete before final interrogation and synthesis,
- silently falling back from failed dispatch validation, failed runtime handoff, or failed native stage receipt.
- running runtime-backed stages or subagents before showing the Dispatch Spec strategy and receiving permission.
- treating a simple "refine everything" request as permission to run before the strategy proposal is confirmed.
- treating Refine strategy confirmation, a proof-only readiness receipt, or a final synthesis as exact execution acceptance or mutation admission.
- leading with stage receipts, paths, or dispatch mechanics before explaining the practical outcome and boundary.
## Outcome Brief
Shortened here. Read the whole file on GitHub.
Signals
- GitHub stars
- 25
- Forks
- 3
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
refine-2- Source
- github.com/cyberalchemyai/arcanum