mechanic-blueprint-core
Mechanic Blueprint stage core posture for narrow Blueprint loop repair.
- License 许可
- Apache-2.0
- 最近更新
- 2026-05-31
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- version
- 1
- asset_id
- mechanic-blueprint-core
- asset_type
- skill
- description
- Mechanic Blueprint stage core posture for narrow Blueprint loop repair.
- advisory_only
- true
- capability_type
- stage_core
- forbidden_claims
- [ "queue_selection", "routing", "retry_thresholds", "escalation_policy", "status_persistence", "terminal_results", "required_artifacts" ]
- recommended_for_stages
- [ "mechanic_blueprint" ]
03 SKILL.md 正文
Mechanic Blueprint Core
Purpose
Diagnose and repair narrow Blueprint loop failures without becoming a second Manager, Contractor, or Evaluator. This skill keeps mechanic_blueprint focused on evidence-preserving repair of malformed artifacts, stale draft state, contract drift, and runtime context mismatches.
Quick Start
- Identify the failed Blueprint artifact and the exact symptom.
- Classify the failure before changing anything.
- Emit a structured
blueprint_repair_decision.jsononly when the correction is deterministic and runtime-consumed. - Write
mechanic_report.mdwith evidence and verification. - Block when repair would require synthesis or guesswork.
Operating Constraints
- Stay advisory-only; do not imply ownership of queue movement, status persistence, stage ordering, or terminal policy.
- Preserve original evidence before describing any repaired blueprint artifact or repair decision.
- Repair only narrow malformed JSON, stale metadata, or contract drift when the intended value is unambiguous.
- Do not generate new draft plans, new blueprint packets, or new evaluations as a substitute for the responsible stage.
- For Manager Blueprint runtime-effect failures, do not write corrected
blueprint_manifest.jsonorblueprint_drafts.json. - Do not treat unstructured markdown such as
repaired_blueprint_artifact.mdas operational state. - Do not implement product work.
- Treat external service failures as evidence to preserve, not as local artifact defects.
Inputs This Skill Expects
- The runtime-assigned Blueprint failure evidence.
- The implicated manifest, draft, packet, critique, evaluation, promotion, or runtime context artifact.
- Runtime error code and error report paths when present.
- The request-provided output path for
mechanic_report.md. - The request-provided output path for
blueprint_repair_decision.jsonwhen completing runtime-effect recovery. - The request-provided output path for
repaired_generated_task.jsonwhen usingrepair_action=apply_repaired_generated_task. - Any future structured repaired packet/evaluation output path supplied by the runtime for Contractor/Evaluator failure modes.
- For explicit Manager Blueprint recovery requests, the request-provided
run_diris the failed Manager run directory reused for Mechanic recovery. Current shipped runtime failure policy blocks Manager pre-mutation artifact failures conservatively instead of automatically routing them here.
Output Contract
- A
mechanic_report.mdthat states symptom, evidence inspected, classification, repair decision, verification, and recommended next action. - A
blueprint_repair_decision.jsonBlueprintRepairDecisionDocumentfor### MECHANIC_BLUEPRINT_COMPLETE;mechanic_report.mdalone is evidence, not runtime-owned state. - A
repaired_generated_task.jsontask document only withrepair_action=apply_repaired_generated_task. - A repaired blueprint packet or repaired evaluation artifact only when the fix is narrow, deterministic, and the failure mode is a Contractor/Evaluator failure mode where that structured artifact is declared. Repaired packet/evaluation artifacts are only for Contractor/Evaluator failure modes.
- For explicit Manager Blueprint recovery requests, Mechanic must not write corrected
blueprint_manifest.jsonorblueprint_drafts.json; those files are inert unless a declared runtime effect consumes them. - Emit
### MECHANIC_BLUEPRINT_COMPLETEwith metadataresume_stage: manager_blueprintonly when a Manager recovery request is explicitly assigned and the report proves Mechanic should request a clean Manager Blueprint rerun and that rerun is safe. - Emit
### BLOCKEDwhen a clean Manager Blueprint rerun is unsafe. - A blocked result when the failure needs unavailable credentials, external recovery, or real synthesis by another stage.
Procedure
- Read the runtime failure evidence and identify the primary artifact.
- Classify the failure as malformed JSON, contract drift, stale draft state, missing output, runtime context mismatch, external dependency, or unknown.
- Decide whether a local structured repair decision is safe.
- Preserve original evidence in the report before describing any correction.
- Apply only the smallest deterministic repair.
- Verify the exact invariant that failed.
- Stop and block when the evidence cannot support a trustworthy repair.
Legal repair actions in blueprint_repair_decision.json:
apply_repaired_generated_task: requiresrepaired_artifact_id=repaired_generated_task,repaired_artifact_path,target_evaluation_id,generated_task_id, andrepaired_generated_task.json; do not setnext_resume_stagererun_evaluator_existing_candidate: requiresnext_resume_stage: evaluator_blueprintsupersede_candidate_for_revision: requiresnext_resume_stage: contractor_blueprintrequest_manager_rerun: requiresnext_resume_stage: manager_blueprintand must only apply when a graph/custom policy explicitly routes a safe Manager rerun request to Mechanic Blueprintblock_for_operator: normally emit### BLOCKEDinstead
For explicit Manager Blueprint recovery requests, the primary repair decision is whether a clean Manager Blueprint rerun can safely reproduce and consume Manager outputs through the declared runtime effect. Mechanic must not write corrected blueprint_manifest.json or blueprint_drafts.json; diagnose and request a clean Manager Blueprint rerun with result metadata resume_stage: manager_blueprint, or block. Current shipped runtime failure policy blocks Manager pre-mutation artifact failures conservatively instead of automatically routing them here.
Pitfalls And Gotchas
- Rewriting a packet because it is weak rather than malformed.
- Treating a rejected blueprint as a repair problem instead of normal Evaluator feedback.
- Losing the original failure evidence.
- Applying a broad cleanup when one contract field is the issue.
- Kicking external provider failures back into local artifact repair.
Progressive Disclosure
Start with the failed artifact and runtime error report. Read surrounding Blueprint lineage only when it is needed to classify the defect or verify a repaired blueprint artifact. Stop expanding once the narrow repair decision is clear.
Verification Pattern
Check that the failure classification is explicit, the repair is smaller than a new stage pass, original evidence remains visible, and mechanic_report.md explains the exact invariant verified. If a human would wonder whether synthesis was smuggled into repair, block instead.
04 同仓库更多 Skills
browser-local-qa
Browser QA guardrail.
recon-core
Recon stage core posture for grounded probe classification and downstream handoff context.
planner-core
Planner stage core synthesis posture, assumption marking, and spec focus.
mechanic-core
Mechanic stage core repair posture for planning-side inconsistencies.
manager-core
Manager stage core decomposition posture and task-verifiability habits.
manager-blueprint-core
Manager Blueprint stage core posture for strict-sequence manifest and draft generation.