公司规范只约束代码内容,门禁仍按插件执行;MCP token 不入库。 Co-authored-by: Cursor <cursoragent@cursor.com>
5.9 KiB
name, description
| name | description |
|---|---|
| marionettist-continue | Continue the active Marionettist task by reading task state and respecting gates |
Read .task/active.json first, then .task/<task-id>/state.json. Here <task-id> is selected by .task/active.json.
When available, also read marionettist.config.yaml to determine the local gatePolicy.defaultMode. Treat gate policy as Marionettist workflow behavior, not as host tool-permission settings or other tool-permission settings.
When marionettist.config.yaml exists, also read marionettist.language early and use it for Marionettist user-facing communication only. Support en and zh-CN; fall back to en when the value is absent or unknown unless a higher-priority local safety instruction for that Marionettist interaction explicitly requires another language. Preserve identifiers, file paths, YAML keys, command names, and quoted user text.
Do not blindly write code. Respect the current phase, all gates, criticPassed, and allowedToCode.
Treat work as critic-gated when it is Tier L, or when the requirement, implementation plan, state, or context pack marks it as high-risk, boundary-sensitive, or workflow-sensitive.
Use this effective gate policy order for continuation decisions:
gatePolicy.selectedfrom task state when present- otherwise
gatePolicy.defaultModefrommarionettist.config.yamlwhen present - otherwise current safe Marionettist behavior
recommendedvalues remain advisory only
When reporting or deciding continuation, show the visible gate-policy state when available: config default, recommended policy, selected policy, effective policy, whether task-local override is allowed, and finalApprovalRequired.
If gatePolicy.selected is missing at a decision point and task-local override is allowed, do not silently coerce to defaultMode when an explicit task choice should still be surfaced; present strict, balanced, and autonomous, explain the default and recommendation, and ask the user to choose before continuing when appropriate.
Policy semantics for continuation:
strict: stop at each required Marionettist gate.balanced: preserve analysis and final approval gates; allow continuation into the next already-approvedgateClass: simpleslice/group or low/moderate-riskgateClass: standardslice/group withrisk_score <= 3when no critic gate, explicit stop condition, or missing approval evidence blocks it.autonomous: preserve analysis and final approval gates; allow continuation only into the next already-approvedgateClass: simpleorgateClass: standardslice or approved parallel group withrisk_score <= 3, and only when no mandatory stop applies.
Supplemental risk_score is stricter metadata. Use it together with gateClass and gateReasons when deciding whether to continue, pause, or escalate. It may only preserve or strengthen required pauses and routing; it must never weaken gateClass, critic requirements, explicit gates, final approval, or other mandatory stops.
Continuation rules:
- If there is no active task, prompt the user to create one with
/marionettistor a focused entrypoint such as/marionettist-dev,/marionettist-incident,/marionettist-docs, or/marionettist-config. - If
requirementFrozenis false and the task needs frozen requirements, route torequirement-freezer. - If
implementationPlanis missing or plan approval is required, route toimplementation-slicerormarionettist-planner. - If
contextPackReadyis false, route tocontext-pack-builderand write.task/<task-id>/context-pack.md. - If the task is critic-gated and
criticPassedis false, route tomarionettist-criticinplan-reviewmode before any coding handoff. - A critic
PASSdoes not authorize coding by itself. IfallowedToCodeis false, explain the blocked gate and ask the user for confirmation before coding. - If
allowedToCodeis true, pass only the current approved slice or group tomarionettist-coder. - If coding is complete but review has not passed, route to
marionettist-reviewerfor the current slice or group. - Use the reviewer’s bounded high-risk two-stage mode when the task or current slice/group is Tier L, high-risk, boundary-sensitive, workflow-sensitive, or critic-required.
- Otherwise use the reviewer’s standard bounded diff-review mode by default.
- If coding, review, and required validation are complete for critic-gated work, route to
marionettist-criticinpre-donemode before declaring the approved work done. Provide reviewer verdict, validation evidence, changed-file inventory, and state/gate summary; do not ask the critic to redo code review. - If review passed but validation has not passed, route to
marionettist-validator. - If the current slice or group is done and the next step is another already-approved slice or group, use the effective gate policy plus that next item's
gateClass,risk_score, andgateReasonsto decide whether to pause or continue. - In
balancedmode, continue only forgateClass: simpleor low/moderate-riskgateClass: standardslices or groups withrisk_score <= 3, and only when no critic-required, explicit gate, or other stop condition applies. - In
autonomousmode, continue only for already-approved nextsimpleorstandardslices or approved parallel groups withrisk_score <= 3, and only when no mandatory stop applies. - In
autonomousmode, stop forrisk_score >= 4,boundary-sensitive,high-risk, critic-required work, explicit gates or stop conditions, protected-area or dangerous-command decisions, analysis-to-coding, and final approval. - When pausing or escalating because of risk, explain the controlling
gateClassand include the relevantrisk_scoreandgateReasonsin the gate explanation. - Keep final approval required by default.
Do not use the critic gate to bypass coding, review, validation, or human-confirmation gates.
Before any important phase transition, tell the user what will happen next and request confirmation.