| name | mcp-java-dev-tools-regression-export |
| description | Export regression execution profiles to runnable replay artifacts (ps1, sh, postman). Use for export, share, replay, or handoff of regression execution flows. |
MCP JVM Regression Export
Use this Skill Workflow to export replay artifacts from the current regression execution profile plus regression plan Artifact state.
Scope Guard
- This Skill Workflow exports replay artifacts only; it does not execute regression suites.
- If the user asks to run or execute a regression suite, route to
mcp-java-dev-tools-regression-suite.
- Do not satisfy regression execution prompts by generating replay export scripts.
- This Skill Workflow is for
suiteType=regression only. If the selected execution profile is suiteType=performance, route to mcp-java-dev-tools-performance-export.
Execution Mode
This Skill Workflow runs in three phases:
Read
Assemble
Emit
Mode selection is single selected mode only.
Portable Source of Truth
Always align with:
references/spec-rules.md
references/authoring-checklist.md
references/templates/index.md
Input Contract
Required input:
project_name
mode (ps1 | sh | postman)
- If
mode is missing, fail closed (execution_export_mode_required); do not default to ps1.
Optional:
export_id (optional export label; auto-derived when omitted)
execution_profile (latest matching selector)
plan_name (latest matching selector)
when (date/time hint for nearest selector)
includeResolvedSecrets (false default)
includeRuntimeStartup (true default; may be overridden by projects.json session export defaults)
includeHealthcheckGate (true default; may be overridden by projects.json session export defaults)
includeResolvedSecrets must be supplied explicitly per request to enable secret export; projects.json.sessionExport must not auto-enable secret inclusion.
Profile Selection
Resolve in this selector order:
- explicit
export_id (label only)
execution_profile
plan_name (resolves containing execution profile)
when (optional label hint)
- default execution profile when no selector is provided
Source of Truth
Operational source for Artifact lifecycle:
artifact_management MCP Tool:
artifactType=project_context (read|validate|list)
artifactType=regression_plan (read|validate|list)
artifactType=execution_export (generate|read|list)
Artifact references:
.mcpjvm/<project_name>/projects.json (executionProfiles)
.mcpjvm/<project_name>/plans/regression/<plan>/contract.json
No runtime run Artifact is required for default export behavior.
Mode Router
mode=ps1 => emit PowerShell replay package
mode=sh => emit shell replay package
mode=postman => emit Postman collection package
- missing mode => fail closed (
execution_export_mode_required)
- unknown mode => fail closed
- never apply implicit mode fallback/default
Determinism Rules
- Preserve execution order from execution profile plan order and contract step order.
- Do not invent steps absent from execution profile or contract source.
- Do not infer hidden runtime behavior.
- Keep output stable for the same input.
- Each export invocation emits a fresh one-off folder under
.mcpjvm/<project>/exports/<yyyy-mm-dd-uuid>/.
- Generated files for
sh and ps1 modes must emit a one-off replay package directly in that folder:
run-execution-profile.sh or run-execution-profile.ps1
project.env
scripts/ when the selected execution profile references shared scripts
sh and ps1 exports must execute executionProfiles[].scriptRefs[] by phase (preRuntime, postRuntime, postHealthcheck, prePlan) and must pass the export-local project.env through script envFileArg when declared.
sh and ps1 exports must not scan runtimeContexts[].startups[] for token/auth helper scripts. Shared setup scripts belong in workspace-level scripts[] and are referenced by execution profile scriptRefs[].
Governance
- If
includeResolvedSecrets=false, redact or placeholder secret material.
- If
includeResolvedSecrets=false, create project.env with secret-like values blanked so the receiver can fill credentials locally.
- If
includeResolvedSecrets=true, add explicit sensitive warning in output artifacts and treat the package as non-shareable unless the receiver is trusted.
sessionExport.includeResolvedSecrets=true is not sufficient by itself; request-level explicit opt-in is required.
- Never auto-push or auto-commit exported artifacts.
Fail-Closed Conditions
- no resolvable execution profile or plan selector
- invalid export source shape
- selected execution profile is not
suiteType=regression
- unsupported mode
- non-writable export destination
- one-off export folder creation failed
Blocked response must include:
- deterministic reason code
- single actionable next action