一键导入
executing-specs
// Execute a Research Spec step by step, respecting context protocol, deviation limits, and backtrack rules. Supports multi-session recovery.
// Execute a Research Spec step by step, respecting context protocol, deviation limits, and backtrack rules. Supports multi-session recovery.
| name | executing-specs |
| description | Execute a Research Spec step by step, respecting context protocol, deviation limits, and backtrack rules. Supports multi-session recovery. |
| execution | sequential |
| used-by | de-anthropocentric-research-engine |
You are executing a Research Spec produced by writing-specs. Your job is to follow the spec stage by stage, invoking the named campaigns and strategies, while strictly respecting the context protocol and execution rules.
The user provides a path to a spec file (e.g., docs/de-anthropocentric/specs/2026-05-20-topic-spec.md). Read it in full before starting.
Before executing, scan the spec for:
If concerns exist, present them to the user before proceeding. Do NOT silently start execution with known issues.
For each Stage in the spec (in order):
Read the context files referenced in "Expected Input". If they don't exist or are incomplete, STOP and ask the user.
Invoke context-init. CC names the file: YYYY-MM-DD-HH-MM-<topic-slug>
For each strategy listed in "Execution Steps":
context-checkpoint (≥500 lines)After all strategies in the Stage complete, invoke one final context-checkpoint as a safety net.
Check whether the Stage's completion criteria are met:
[x] in the spec file, proceed to next StageCheck the Stage's backtrack condition:
When entering a new session to continue execution:
[ ] stepcontext/INDEX.md — identify the latest context fileNo special "resume" command needed. The spec's checkbox state IS the progress tracker.
You have limited autonomy to adjust within bounds:
Allowed:
NOT Allowed:
Documentation requirement: Every deviation must be recorded in the next context-checkpoint:
## Deviation from Spec
**Stage**: N
**Prescribed**: [what spec said]
**Actual**: [what you did]
**Rationale**: [why]
When a backtrack condition evaluates to true:
When all Stages are complete, compile the research results into a summary:
Inform the user: "Research spec execution complete. All context files are in context/."
Complete strategy book for the research engine. Contains all campaign descriptions, routing tables, pre-conditions, and orchestration rules. CC reads this before generating any Research Spec.
Structured questioning SOP to determine which campaigns to include, emphasize, or skip. Used during spec generation.
Structured questioning SOP to identify practical constraints that shape the research spec. Used during spec generation.
Structured questioning SOP to determine research boundaries, depth, and breadth. Used during spec generation.
Quality gate for Research Specs. Checks for placeholders, consistency, scope, ambiguity, context protocol, and quantification. Mandatory before user review.
Top-level orchestrator for the yogsoth-ai research ecosystem. Drives the full research lifecycle from direction crystallization through experiment design.