ln-813-optimization-plan-validator
Use when validating optimization plans through the evaluation platform with mandatory research, parallel agent evidence, sequential merge, and bounded refinement.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 13
- Forks
- 3
01 前言 Front Matter
- name
- ln-813-optimization-plan-validator
- license
- MIT
- description
- Use when validating optimization plans through the evaluation platform with mandatory research, parallel agent evidence, sequential merge, and bounded refinement.
02 资源文件 1
- 参考文档references/optimization_review_focus.md1.4 KB
03 SKILL.md 正文
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root.
Type: L2 Coordinator Category: 8XX Optimization
Optimization Plan Validator
Coordinator for validating optimization plans before execution.
Mandatory Read
MANDATORY READ: Load shared/references/evaluation_coordinator_runtime_contract.md, shared/references/evaluation_summary_contract.md, shared/references/evaluation_research_contract.md
MANDATORY READ: Load shared/references/agent_review_workflow.md, shared/references/agent_delegation_pattern.md
MANDATORY READ: Load references/optimization_review_focus.md
Purpose
- verify feasibility of optimization hypotheses
- require source-backed research before plan approval
- use parallel external agents plus local feasibility analysis
- keep merge and refinement sequential
Inputs
Primary input:
.hex-skills/optimization/{slug}/context.md
Required context sections:
- performance map
- hypotheses
- suspicion stack
- test command
Runtime Contract
Runtime family:
evaluation-runtime
Identifier:
optimization-{slug}
Phase order:
PHASE_0_CONFIGPHASE_1_LOAD_CONTEXTPHASE_2_AGENT_LAUNCHPHASE_3_RESEARCH_AND_FEASIBILITYPHASE_4_MERGEPHASE_5_REFINEMENTPHASE_6_VERDICTPHASE_7_SELF_CHECK
TodoWrite Format
Mandatory todo items:
ConfigLoad contextAgent launchResearch and feasibilityMergeRefinementVerdictSelf-check
The coordinator runs research inline (per shared/references/evaluation_research_contract.md) and refinement inline (per shared/agents/prompt_templates/iterative_refinement.md and shared/agents/prompt_templates/refinement_perspectives.md). Refinement advisor sessions are launched directly via shared/agents/agent_runner.mjs.
Workflow
Phase 0: Config
- Resolve optimization slug.
- Build evaluation runtime manifest with
required_research=true. - Start
evaluation-runtime.
Phase 1: Load Context
- Load
.hex-skills/optimization/{slug}/context.md. - Fail if required sections are missing.
- Materialize agent-readable context when needed.
Phase 2: Agent Launch
- Run health check.
- Launch available agents.
- Register every launched agent in
evaluation-runtime. - If no agents are available, record
agents_skipped_reasonand continue.
Phase 3: Research And Feasibility
Required work:
- coordinator performs research inline (official docs, MCP Ref, Context7, current web best-practice)
- perform local feasibility validation in parallel while agents work
Minimum research lanes:
- official documentation or standards
- MCP Ref
- Context7 for involved libraries
- current web best-practice research
Feasibility checks:
- files exist
- no invalid overlap across hypotheses
- every hypothesis traces to profiler or research evidence
- unsupported removal hypotheses are flagged
- high-level fixes are preferred over low-level churn when evidence supports them
Phase 4: Merge
- Sync agents at the merge barrier.
- Merge:
- local feasibility findings
- research findings
- agent findings
- Reject unsupported suggestions.
- Apply accepted corrections directly to
context.md.
Phase 5: Refinement
Refinement uses a 2-stage state machine per shared/agents/prompt_templates/iterative_refinement.md and shared/agents/prompt_templates/refinement_perspectives.md:
- Stage 1 (parallel):
dry_run_executor,new_dev_tester,adversarial_reviewer - Stage 2 (after merge):
final_sweep
Rules:
- Stage 1 runs in parallel, Stage 2 after merge
- no skip when an advisor is available except runtime-backed failure or disablement
- cleanup evidence is mandatory
Phase 6: Verdict
Possible verdicts:
GOGO_WITH_CONCERNSNO_GO
NO_GO when:
- critical feasibility gaps remain
- research does not support the plan
- both local validation and agent review reject the plan
Phase 7: Self-Check
Required checks:
- [ ] context loaded and validated
- [ ] mandatory research completed
- [ ] local feasibility check completed
- [ ] all required agents resolved before merge
- [ ] merge summary exists
- [ ] refinement trace exists when an advisor was available
- [ ] cleanup verified
- [ ] coordinator summary recorded
Summary Contract
Write summary_kind=evaluation-coordinator.
Recommended payload:
statusfinal_resultreport_pathworker_countagent_countissues_totalseverity_countswarningscleanup_verifiedresearch_completed
Definition of Done
- [ ] Evaluation runtime started
- [ ] Optimization context validated
- [ ] Mandatory research completed
- [ ] Agents launched or explicitly skipped
- [ ] Feasibility analysis completed
- [ ] Merge completed after agent barrier
- [ ] Refinement executed or explicitly justified
- [ ] Verdict issued
- [ ]
evaluation-coordinatorsummary written - [ ] Runtime completed
Meta-Analysis
MANDATORY READ: Load shared/references/meta_analysis_protocol.md
After the coordinator run, analyze the session per protocol section 7 and include the protocol-formatted output with the final optimization-plan verdict.
References
- Runtime:
shared/references/evaluation_coordinator_runtime_contract.md,shared/references/evaluation_summary_contract.md - Research:
shared/references/evaluation_research_contract.md - Review workflow:
shared/references/agent_review_workflow.md,shared/references/agent_delegation_pattern.md - Focus:
references/optimization_review_focus.md
Version: 1.0.0 Last Updated: 2026-03-15
04 同仓库更多 Skills
scrapely-scrape
Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.
lumify-odds
Lumify's hosted sports MCP/REST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.
sync-lipsync
Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.
music-for-robots
Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.
imagera-media
Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.
deja-history
Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.