@polymorphism-tech/morph-spec 10.12.1 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +27 -57
- package/README.md +51 -340
- package/bin/morph-spec.js +22 -373
- package/docs/CHEATSHEET.md +37 -166
- package/docs/QUICKSTART.md +14 -74
- package/framework/CLAUDE.md +15 -26
- package/framework/MORPH.md +34 -101
- package/framework/agents.json +8 -8
- package/framework/commands/morph-apply.md +5 -5
- package/framework/commands/morph-infra.md +1 -1
- package/framework/docs/CLI.md +74 -886
- package/framework/evals/review-checklist.md +14 -14
- package/framework/hooks/README.md +21 -189
- package/framework/hooks/claude-code/core/README.md +2 -5
- package/framework/hooks/claude-code/core/conventional-commit.js +2 -2
- package/framework/hooks/claude-code/core/denylist.json +3 -3
- package/framework/hooks/claude-code/core/graph-refresh-kick.js +2 -2
- package/framework/hooks/claude-code/core/masked-exit.js +6 -6
- package/framework/hooks/claude-code/core/pre-bash-denylist.js +2 -2
- package/framework/hooks/claude-code/core/protect-spec-files.js +17 -61
- package/framework/hooks/claude-code/core/stack-changed.js +35 -0
- package/framework/hooks/claude-code/core/validate-completion.js +32 -87
- package/framework/hooks/shared/{heavy-command.js → command-kind.js} +6 -79
- package/framework/hooks/shared/command-tokens.js +0 -139
- package/framework/hooks/shared/contract.js +14 -0
- package/framework/hooks/shared/feature-slug.js +21 -0
- package/framework/hooks/shared/frontend-locations.js +0 -1
- package/framework/hooks/shared/git-paths.js +0 -15
- package/framework/hooks/shared/graph-freshness.js +0 -19
- package/framework/hooks/shared/hook-response.js +0 -7
- package/framework/hooks/shared/morph-cli.js +2 -81
- package/framework/hooks/shared/owner-words.js +2 -120
- package/framework/hooks/shared/payload-utils.js +0 -39
- package/framework/hooks/shared/report-progress.js +7 -101
- package/framework/hooks/statusline.js +16 -60
- package/framework/mcp/registry.json +2 -2
- package/framework/rules/ai-agents-standards.md +1 -1
- package/framework/rules/asaas-standards.md +1 -1
- package/framework/rules/ef-standards.md +1 -1
- package/framework/rules/gsap-standards.md +1 -1
- package/framework/rules/hangfire-standards.md +1 -1
- package/framework/rules/implement-report.md +3 -3
- package/framework/rules/neon-auth-standards.md +1 -1
- package/framework/rules/nextjs-standards.md +1 -1
- package/framework/rules/plan-grammar.md +13 -11
- package/framework/rules/resend-standards.md +1 -1
- package/framework/rules/ui-design.md +4 -0
- package/framework/schemas/config.schema.json +95 -310
- package/framework/skills/README.md +12 -32
- package/framework/skills/core/create-umbraco-lp/SKILL.md +1 -1
- package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +1 -1
- package/framework/skills/core/morph-apply/SKILL.md +21 -46
- package/framework/skills/core/morph-plan/SKILL.md +28 -63
- package/framework/skills/core/morph-uiux/SKILL.md +23 -25
- package/framework/{templates/docs/ui-mockups.md → skills/core/morph-uiux/references/mockups.md} +4 -4
- package/framework/standards/STANDARDS.json +10 -11
- package/framework/standards/STANDARDS.meta.json +1 -1
- package/framework/standards/ai-agents/evals-with-cache.md +18 -32
- package/framework/standards/ai-agents/observability-patterns.md +2 -2
- package/framework/standards/architecture/code-comments.md +2 -5
- package/framework/standards/architecture/engineering-lens.md +1 -1
- package/framework/standards/backend/dotnet/testing.md +4 -4
- package/framework/standards/frontend/nextjs/lint.md +24 -10
- package/framework/standards/frontend/nextjs/testing.md +2 -2
- package/framework/standards/infrastructure/docker/local-compose-isolation.md +14 -30
- package/framework/templates/CLAUDE.md.core.guide.md +2 -2
- package/framework/templates/README.md +1 -1
- package/framework/templates/REGISTRY.json +3 -33
- package/framework/templates/docs/plan.md +3 -2
- package/framework/templates/dotnet/ai-kit/README.md +2 -4
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalCacheMissException.cs +1 -1
- package/framework/templates/dotnet/ai-kit/src/Morph.AiKit/Evals/EvalFixture.cs +1 -1
- package/package.json +1 -2
- package/src/commands/graph/explain.js +2 -1
- package/src/commands/graph/status.js +2 -1
- package/src/commands/mcp/mcp-setup.js +1 -2
- package/src/commands/project/doctor.js +5 -341
- package/src/commands/project/env.js +21 -52
- package/src/commands/project/init-contract.js +47 -0
- package/src/commands/project/init.js +36 -66
- package/src/commands/project/stack-scan.js +1 -1
- package/src/commands/project/update.js +15 -50
- package/src/commands/validation/check.js +128 -0
- package/src/commands/validation/plan-check.js +41 -64
- package/src/commands/validation/prove-red.js +1 -1
- package/src/core/paths/output-schema.js +0 -22
- package/src/core/templates/template-renderer.js +0 -14
- package/src/lib/ai/ai-project-scan.js +1 -6
- package/src/lib/check/attempts.js +38 -0
- package/src/lib/check/signals.js +145 -0
- package/src/lib/config/project-config.js +13 -0
- package/src/lib/contract/apply.js +62 -0
- package/src/lib/contract/defaults.js +96 -0
- package/src/lib/contract/merge.js +79 -0
- package/src/lib/contract/ports.js +43 -0
- package/src/lib/contract/scan.js +102 -0
- package/src/lib/detectors/claude-config-detector.js +7 -0
- package/src/lib/{procs → detectors}/mcp-config.js +1 -37
- package/src/lib/diff/diff-lines.js +64 -0
- package/src/lib/generators/architecture-scanner.js +1 -1
- package/src/lib/generators/scaffold-generator.js +0 -7
- package/src/lib/git/default-branch.js +0 -122
- package/src/lib/graph/diff-tree.js +2 -1
- package/src/lib/graph/god-nodes.js +2 -1
- package/src/lib/graph/graphify-runtime.js +0 -1
- package/src/lib/graph/graphifyignore.js +1 -1
- package/src/lib/graph/sanitize.js +2 -8
- package/src/lib/installers/memory-installer.js +15 -30
- package/src/lib/installers/stack-sync.js +16 -9
- package/src/lib/plan/checks.js +20 -64
- package/src/lib/plan/media.js +1 -1
- package/src/lib/plan/plan-parser.js +5 -5
- package/src/lib/review-reports.js +3 -77
- package/src/lib/scan/worktree-dirs.js +3 -0
- package/src/lib/specs/adr-index.js +2 -2
- package/src/lib/stack/dotnet-build-ignores.js +10 -2
- package/src/lib/stack/stack-scan.js +2 -2
- package/src/lib/stack-filter.js +3 -2
- package/src/lib/tests-audit/audit.js +1 -1
- package/src/scripts/setup-infra.js +6 -59
- package/src/utils/agents-installer.js +1 -34
- package/src/utils/atomic-json.js +27 -0
- package/src/utils/file-copier.js +4 -12
- package/src/utils/hooks-installer.js +9 -107
- package/claude-plugin.json +0 -14
- package/framework/commands/morph-archive.md +0 -46
- package/framework/commands/morph-hotfix.md +0 -17
- package/framework/commands/morph-preflight.md +0 -180
- package/framework/commands/morph-review.md +0 -15
- package/framework/commands/morph-status.md +0 -37
- package/framework/hooks/claude-code/core/block-destructive-worktree-removal.js +0 -80
- package/framework/hooks/claude-code/core/block-raw-worktree-add.js +0 -72
- package/framework/hooks/claude-code/core/enforce-phase-writes.js +0 -100
- package/framework/hooks/claude-code/core/gate-guard.js +0 -148
- package/framework/hooks/claude-code/core/heavy-gate.js +0 -78
- package/framework/hooks/claude-code/core/heavy-release.js +0 -23
- package/framework/hooks/claude-code/core/loop-detect.js +0 -79
- package/framework/hooks/claude-code/core/state-sync.js +0 -214
- package/framework/hooks/claude-code/core/telemetry-log.js +0 -259
- package/framework/hooks/claude-code/core/test-budget.js +0 -29
- package/framework/hooks/claude-code/core/worktree-context.js +0 -249
- package/framework/hooks/claude-code/core/worktree-create.js +0 -119
- package/framework/hooks/claude-code/core/worktree-env-inject.js +0 -68
- package/framework/hooks/claude-code/core/worktree-remove.js +0 -55
- package/framework/hooks/shared/build-check.js +0 -120
- package/framework/hooks/shared/claim-registry.js +0 -125
- package/framework/hooks/shared/e2e-check.js +0 -1022
- package/framework/hooks/shared/feature-locator.js +0 -82
- package/framework/hooks/shared/gate-event.js +0 -18
- package/framework/hooks/shared/gate-question.js +0 -20
- package/framework/hooks/shared/heavy-config.js +0 -113
- package/framework/hooks/shared/heavy-holders.js +0 -85
- package/framework/hooks/shared/heavy-slots.js +0 -280
- package/framework/hooks/shared/host-services.js +0 -440
- package/framework/hooks/shared/next-step.js +0 -181
- package/framework/hooks/shared/redact-secrets.js +0 -44
- package/framework/hooks/shared/reparse-scan.js +0 -40
- package/framework/hooks/shared/state-reader.js +0 -220
- package/framework/hooks/shared/state-writer.js +0 -112
- package/framework/hooks/shared/telemetry-logger.js +0 -101
- package/framework/hooks/shared/transcript-usage.js +0 -58
- package/framework/hooks/shared/worktree-root.js +0 -71
- package/framework/phases.json +0 -92
- package/framework/schemas/feature.schema.json +0 -242
- package/framework/skills/core/morph-apply/references/hotfix.md +0 -46
- package/framework/skills/core/morph-apply/references/machine.md +0 -30
- package/framework/skills/core/morph-apply/references/review.md +0 -77
- package/framework/skills/core/morph-plan/references/critique.md +0 -51
- package/framework/skills/core/morph-plan/references/interview.md +0 -37
- package/framework/templates/state.template.json +0 -17
- package/src/commands/dashboard/dashboard.js +0 -74
- package/src/commands/e2e/e2e.js +0 -400
- package/src/commands/observability/cost.js +0 -283
- package/src/commands/project/branch.js +0 -129
- package/src/commands/project/claim.js +0 -132
- package/src/commands/project/doctor-procs.js +0 -162
- package/src/commands/project/fleet.js +0 -66
- package/src/commands/project/heavy.js +0 -81
- package/src/commands/project/install-plugin-cmd.js +0 -27
- package/src/commands/project/status.js +0 -61
- package/src/commands/project/worktree.js +0 -1234
- package/src/commands/state/advance.js +0 -248
- package/src/commands/state/approve.js +0 -303
- package/src/commands/state/archive.js +0 -231
- package/src/commands/state/auto-approval.js +0 -67
- package/src/commands/state/create.js +0 -274
- package/src/commands/state/delete.js +0 -192
- package/src/commands/state/finish.js +0 -1247
- package/src/commands/state/gate-check.js +0 -244
- package/src/commands/state/gate-decision.js +0 -122
- package/src/commands/state/list.js +0 -244
- package/src/commands/state/next.js +0 -24
- package/src/commands/state/recap.js +0 -80
- package/src/commands/state/report-check.js +0 -244
- package/src/commands/state/retype.js +0 -110
- package/src/commands/validation/verify.js +0 -421
- package/src/core/state/feature-identity.js +0 -10
- package/src/core/state/gate-order.js +0 -23
- package/src/core/state/lifecycle-audit.js +0 -171
- package/src/core/state/state-manager.js +0 -523
- package/src/core/templates/template-seed.js +0 -21
- package/src/core/work-types.js +0 -44
- package/src/dashboard/app/App.jsx +0 -84
- package/src/dashboard/app/components/ActivityFeed.jsx +0 -166
- package/src/dashboard/app/components/CommandPalette.jsx +0 -144
- package/src/dashboard/app/components/DetailPanel.jsx +0 -43
- package/src/dashboard/app/components/EntityLink.jsx +0 -42
- package/src/dashboard/app/components/ErrorBoundary.jsx +0 -47
- package/src/dashboard/app/components/FlowGraph.jsx +0 -19
- package/src/dashboard/app/components/GatePauses.jsx +0 -116
- package/src/dashboard/app/components/KnowledgeMarkdown.jsx +0 -42
- package/src/dashboard/app/components/Markdown.jsx +0 -38
- package/src/dashboard/app/components/PhaseRail.jsx +0 -100
- package/src/dashboard/app/components/SearchFilter.jsx +0 -36
- package/src/dashboard/app/components/SessionMap.jsx +0 -77
- package/src/dashboard/app/components/Sidebar.jsx +0 -147
- package/src/dashboard/app/hooks/useMorphQuery.js +0 -44
- package/src/dashboard/app/hooks/usePref.js +0 -34
- package/src/dashboard/app/lib/format.js +0 -69
- package/src/dashboard/app/lib/phases.js +0 -75
- package/src/dashboard/app/lib/project.js +0 -38
- package/src/dashboard/app/main.jsx +0 -13
- package/src/dashboard/app/pages/Activity.jsx +0 -28
- package/src/dashboard/app/pages/AgentMap.jsx +0 -363
- package/src/dashboard/app/pages/FeatureDetail.jsx +0 -579
- package/src/dashboard/app/pages/Features.jsx +0 -393
- package/src/dashboard/app/pages/Guide.jsx +0 -145
- package/src/dashboard/app/pages/HookInspector.jsx +0 -444
- package/src/dashboard/app/pages/PhasePipeline.jsx +0 -273
- package/src/dashboard/app/pages/Portfolio.jsx +0 -190
- package/src/dashboard/app/pages/RulesMap.jsx +0 -285
- package/src/dashboard/app/pages/SkillsLibrary.jsx +0 -468
- package/src/dashboard/app/pages/Standards.jsx +0 -392
- package/src/dashboard/app/styles/index.css +0 -187
- package/src/dashboard/index.html +0 -14
- package/src/dashboard/package.json +0 -32
- package/src/dashboard/scanner/activity-scanner.js +0 -321
- package/src/dashboard/scanner/agents-scanner.js +0 -67
- package/src/dashboard/scanner/docs-scanner.js +0 -34
- package/src/dashboard/scanner/feature-status.js +0 -7
- package/src/dashboard/scanner/features-scanner.js +0 -397
- package/src/dashboard/scanner/hooks-scanner.js +0 -96
- package/src/dashboard/scanner/index.js +0 -21
- package/src/dashboard/scanner/phases-scanner.js +0 -14
- package/src/dashboard/scanner/portfolio.js +0 -129
- package/src/dashboard/scanner/project-api.js +0 -160
- package/src/dashboard/scanner/rules-scanner.js +0 -46
- package/src/dashboard/scanner/skills-scanner.js +0 -104
- package/src/dashboard/scanner/standards-scanner.js +0 -38
- package/src/dashboard/vite-plugin-morph-data.js +0 -120
- package/src/dashboard/vite.config.js +0 -26
- package/src/lib/ci/ci-verify.js +0 -30
- package/src/lib/ci/github-ci.js +0 -52
- package/src/lib/ci/pr-checks.js +0 -76
- package/src/lib/e2e/applicability.js +0 -39
- package/src/lib/e2e/compose-env.js +0 -80
- package/src/lib/e2e/stack-teardown.js +0 -96
- package/src/lib/git/branch-classifier.js +0 -104
- package/src/lib/git/evidence-staleness.js +0 -40
- package/src/lib/git/gh.js +0 -15
- package/src/lib/git/pending-prs.js +0 -58
- package/src/lib/git/pr-files.js +0 -31
- package/src/lib/git/pr-index.js +0 -39
- package/src/lib/git/tree-fingerprint.js +0 -58
- package/src/lib/git/tree-state.js +0 -125
- package/src/lib/heavy/cleanup.js +0 -72
- package/src/lib/heavy/gate.js +0 -168
- package/src/lib/heavy/live-stacks.js +0 -64
- package/src/lib/heavy/reclaim.js +0 -107
- package/src/lib/heavy/watchdog.js +0 -46
- package/src/lib/next-step.js +0 -12
- package/src/lib/plan/critique.js +0 -67
- package/src/lib/plan/plan-template.js +0 -18
- package/src/lib/procs/classify.js +0 -91
- package/src/lib/procs/list.js +0 -124
- package/src/lib/procs/prune.js +0 -47
- package/src/lib/procs/wslconfig.js +0 -70
- package/src/lib/projects/registry.js +0 -121
- package/src/lib/recap/piper.js +0 -36
- package/src/lib/recap/recap.js +0 -259
- package/src/lib/review-confirmation.js +0 -66
- package/src/lib/risk/diff-risk.js +0 -137
- package/src/lib/risk-detector.js +0 -638
- package/src/lib/specs/design-seed.js +0 -18
- package/src/lib/specs/screen-checklist.js +0 -315
- package/src/lib/stack/stack-profile.js +0 -69
- package/src/lib/tasks/eval-node.js +0 -293
- package/src/lib/tasks/linux-runner.js +0 -200
- package/src/lib/tasks/test-nodes.js +0 -414
- package/src/lib/tasks/test-runner.js +0 -569
- package/src/lib/telemetry/metrics.js +0 -384
- package/src/lib/telemetry/telemetry-reader.js +0 -276
- package/src/lib/telemetry/verify-event.js +0 -57
- package/src/lib/validators/code-budget/code-budget-validator.js +0 -170
- package/src/lib/validators/contracts/contract-compliance-validator.js +0 -219
- package/src/lib/validators/nextjs/next-component-validator.js +0 -142
- package/src/lib/validators/packages/package-validator.js +0 -310
- package/src/lib/validators/reuse/reuse-validator.js +0 -202
- package/src/lib/validators/reuse/symbol-scanner.js +0 -64
- package/src/lib/validators/validation-runner.js +0 -188
- package/src/lib/validators/verify-cache.js +0 -63
- package/src/lib/validators/verify-runner.js +0 -971
- package/src/lib/verify/affected.js +0 -143
- package/src/lib/verify/detached.js +0 -159
- package/src/lib/view/feature-html.js +0 -480
- package/src/lib/view/feature-page.client.js +0 -109
- package/src/lib/view/feature-page.css +0 -278
- package/src/lib/view/feature-view.js +0 -113
- package/src/lib/view/flow-layers.js +0 -79
- package/src/lib/view/flow-svg.js +0 -63
- package/src/lib/view/tokens.css +0 -18
- package/src/lib/work-type-detector.js +0 -81
- package/src/lib/worktree/dirs.js +0 -3
- package/src/lib/worktree/docker-audit.js +0 -175
- package/src/lib/worktree/env-allocator.js +0 -177
- package/src/lib/worktree/feature-truth.js +0 -145
- package/src/lib/worktree/finish-backup.js +0 -529
- package/src/lib/worktree/fleet-scanner.js +0 -223
- package/src/lib/worktree/ignored-triage.js +0 -136
- package/src/lib/worktree/vscode-settings.js +0 -112
- package/src/lib/worktree/worktree-audit.js +0 -323
- package/src/lib/worktree/worktree-include.js +0 -44
- package/src/scripts/install-plugin.js +0 -114
|
@@ -1,370 +1,155 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "MORPH-SPEC .morph/config/config.json",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "The repo contract that `morph-spec init` writes from a scan and keeps idempotent: which tests prove a change, which paths are risky, the limits of one run. Open on purpose (additionalProperties: true): a key this schema has not heard of never breaks a config. `_generated` holds the fingerprints of what init wrote, so a manual edit is never overwritten.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": true,
|
|
7
7
|
"properties": {
|
|
8
|
+
"contractVersion": {
|
|
9
|
+
"type": "integer",
|
|
10
|
+
"minimum": 1,
|
|
11
|
+
"description": "Version of the repo contract that `morph-spec init` wrote."
|
|
12
|
+
},
|
|
8
13
|
"project": {
|
|
9
14
|
"type": "object",
|
|
10
15
|
"additionalProperties": true,
|
|
11
16
|
"properties": {
|
|
17
|
+
"name": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Project name."
|
|
20
|
+
},
|
|
12
21
|
"stack": {
|
|
13
22
|
"type": "string",
|
|
14
|
-
"description": "Stack tags joined by `+` (e.g. `dotnet+nextjs`). Decides
|
|
23
|
+
"description": "Stack tags joined by `+` (e.g. `dotnet+nextjs`). Decides which rules and skills install and that bin/ and obj/ go into .gitignore."
|
|
24
|
+
},
|
|
25
|
+
"tags": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"description": "Dependency tags the init scan read from the manifests (ef, hangfire, maf, neon, gsap, umbraco, docker...). Joined with stack and integrations to choose the rules and skills installed."
|
|
15
31
|
},
|
|
16
32
|
"frontendPath": {
|
|
17
33
|
"type": "string",
|
|
18
|
-
"description": "Folder of the frontend, relative to the project root
|
|
34
|
+
"description": "Folder of the frontend, relative to the project root, where the UI catalog (shadcn) lives. Absent: the root."
|
|
19
35
|
},
|
|
20
|
-
"
|
|
21
|
-
"type": "
|
|
22
|
-
"
|
|
36
|
+
"deps": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": true,
|
|
39
|
+
"properties": {
|
|
40
|
+
"compose": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"description": "How to bring the dependencies up. compose: the compose file, run with -p <branch>."
|
|
45
|
+
},
|
|
46
|
+
"risk": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"description": "Globs by risk category (dados, pessoas, acesso, infra). A diff that touches one ends the autonomous run as precisa-humano."
|
|
23
55
|
},
|
|
24
|
-
"
|
|
25
|
-
"type": "
|
|
26
|
-
"
|
|
56
|
+
"testSecrets": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"pattern": "^[A-Z][A-Z0-9_]*$"
|
|
61
|
+
},
|
|
62
|
+
"description": "Names of the env vars the tests need. Names only, never values, never production."
|
|
27
63
|
},
|
|
28
|
-
"
|
|
64
|
+
"limits": {
|
|
29
65
|
"type": "object",
|
|
30
|
-
"description": "The project's own PR workflows as the proof of suites they already run. With it, `verify {f} --ci` leaves the `covers` nodes out of the local run, and `finish --pr` waits for the `workflows` checks of the PR commit; red or unjudged, it undoes the archive and reopens Gate 3. Ignored with project.ci: false or finish.mode: merge, and by a change the affected run would escalate to the complete one.",
|
|
31
|
-
"required": ["workflows", "covers"],
|
|
32
66
|
"additionalProperties": false,
|
|
33
67
|
"properties": {
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
68
|
+
"maxScenarios": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"minimum": 1
|
|
71
|
+
},
|
|
72
|
+
"maxFiles": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"minimum": 1
|
|
75
|
+
},
|
|
76
|
+
"maxIterations": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"minimum": 1
|
|
79
|
+
},
|
|
80
|
+
"sameErrorStop": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 1
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"description": "Size and persistence limits of one run."
|
|
37
86
|
},
|
|
38
87
|
"tests": {
|
|
39
88
|
"type": "array",
|
|
40
|
-
"description": "
|
|
89
|
+
"description": "The commands `morph-spec check` runs. `--tier fast` runs the fast ones; `full` runs all.",
|
|
41
90
|
"items": {
|
|
42
91
|
"type": "object",
|
|
43
|
-
"
|
|
44
|
-
|
|
92
|
+
"required": [
|
|
93
|
+
"id",
|
|
94
|
+
"command"
|
|
95
|
+
],
|
|
96
|
+
"additionalProperties": true,
|
|
45
97
|
"properties": {
|
|
46
98
|
"id": {
|
|
47
99
|
"type": "string",
|
|
48
|
-
"
|
|
49
|
-
"description": "Unique within the array
|
|
100
|
+
"minLength": 1,
|
|
101
|
+
"description": "Unique within the array; names the command in the check output."
|
|
50
102
|
},
|
|
51
103
|
"command": {
|
|
52
104
|
"type": "string",
|
|
53
105
|
"minLength": 1,
|
|
54
|
-
"description": "
|
|
106
|
+
"description": "Shell command, run with the worktree env (`morph-spec env`)."
|
|
55
107
|
},
|
|
56
|
-
"
|
|
108
|
+
"tier": {
|
|
57
109
|
"type": "string",
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
110
|
+
"enum": [
|
|
111
|
+
"fast",
|
|
112
|
+
"full"
|
|
113
|
+
],
|
|
114
|
+
"description": "`fast` runs on every check; `full` only with --tier full."
|
|
61
115
|
},
|
|
62
|
-
"
|
|
116
|
+
"cwd": {
|
|
63
117
|
"type": "string",
|
|
64
|
-
"
|
|
65
|
-
"description": "Chooses the test-count extractor and whether a prebuild applies. Inferred from `command` when omitted; `none` means the count is UNKNOWN, never zero. `evals` is the ONLY value that is never inferred - it is a declaration that this suite reads a committed response cache, and it REQUIRES the `evals` block below."
|
|
66
|
-
},
|
|
67
|
-
"affected": {
|
|
68
|
-
"type": "object",
|
|
69
|
-
"required": ["flag"],
|
|
70
|
-
"additionalProperties": false,
|
|
71
|
-
"description": "Rarely needed: `verify --affected` reads an inline filter, a `$Filter` parameter of the script or a script that forwards its arguments by itself. Declare this only for a command none of those reach, which otherwise runs whole. Wins over the detection.",
|
|
72
|
-
"properties": {
|
|
73
|
-
"flag": { "type": "string", "minLength": 1, "description": "The argument of the command that takes a test filter, e.g. -Filter for a wrapper script." },
|
|
74
|
-
"baseFilter": { "type": "string", "description": "Filter the command applies by default, kept alongside the selection, e.g. Category!=Eval." }
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"expectedCount": {
|
|
78
|
-
"type": "integer",
|
|
79
|
-
"minimum": 0,
|
|
80
|
-
"description": "Recorded baseline, kept only for `node-test` and `evals` (ignored, and removed by --record-baseline, on the other runners). Written ONLY by `morph-spec verify --record-baseline`, from a green run — never typed by hand."
|
|
81
|
-
},
|
|
82
|
-
"parallel": {
|
|
83
|
-
"type": "boolean",
|
|
84
|
-
"default": false,
|
|
85
|
-
"description": "Run this node at the same time as the other nodes with parallel: true. Declare it only on suites that share no database, port or build output: nothing in the harness can check that. Ignored on an e2e: true node and in a round chasing a red suite."
|
|
118
|
+
"description": "Folder to run in, relative to the root. Absent: the root."
|
|
86
119
|
},
|
|
87
120
|
"timeoutMs": {
|
|
88
121
|
"type": "integer",
|
|
89
122
|
"minimum": 1,
|
|
90
|
-
"description": "
|
|
91
|
-
},
|
|
92
|
-
"build": {
|
|
93
|
-
"type": "array",
|
|
94
|
-
"items": { "type": "string", "minLength": 1 },
|
|
95
|
-
"description": "Test projects to compile before running (runner 'dotnet' only). Without it, `--no-build` in the command has no fresh binary behind it."
|
|
96
|
-
},
|
|
97
|
-
"e2e": {
|
|
98
|
-
"type": "boolean",
|
|
99
|
-
"default": false,
|
|
100
|
-
"description": "Requires the application stack to be up."
|
|
101
|
-
},
|
|
102
|
-
"linuxImage": {
|
|
103
|
-
"type": "string",
|
|
104
|
-
"minLength": 1,
|
|
105
|
-
"description": "Overrides the container image used by `verify --linux` for this node."
|
|
123
|
+
"description": "Kill after this many ms (default 30 min)."
|
|
106
124
|
},
|
|
107
|
-
"
|
|
125
|
+
"env": {
|
|
108
126
|
"type": "object",
|
|
109
|
-
"additionalProperties":
|
|
110
|
-
"
|
|
111
|
-
"description": "Required by, and only valid for, runner evals. Declared on any other runner it would be a key the verifier silently ignores - the same fail-open shape as a typo in tests[].",
|
|
112
|
-
"properties": {
|
|
113
|
-
"cachePath": {
|
|
114
|
-
"type": "string",
|
|
115
|
-
"minLength": 1,
|
|
116
|
-
"description": "Root of the response-cache tree, relative to the project root, and COMMITTED. A path that resolves outside the root is refused, same rule as `cwd`. No default: a silent one would create a cache tree somewhere nobody declared."
|
|
117
|
-
},
|
|
118
|
-
"datasetPath": {
|
|
119
|
-
"type": "string",
|
|
120
|
-
"minLength": 1,
|
|
121
|
-
"description": "Root of the versioned dataset, laid out as {agent}/{tenant}/{scenario}.json. Defaults to `eval-datasets` beside cachePath."
|
|
122
|
-
},
|
|
123
|
-
"envFile": {
|
|
124
|
-
"type": "string",
|
|
125
|
-
"minLength": 1,
|
|
126
|
-
"description": "GITIGNORED file holding the provider credential, read ONLY by --refresh-cache. Same pattern as e2e.auth.envFile; a credential never travels in the committed config. Defaults to `.env.evals`."
|
|
127
|
-
}
|
|
128
|
-
}
|
|
127
|
+
"additionalProperties": { "type": "string" },
|
|
128
|
+
"description": "Extra env for this command, over the worktree env (e.g. MORPH_EVAL_CACHE for the ai-kit evals). Names and paths only, never secret values."
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
},
|
|
133
|
-
"evals": {
|
|
134
|
-
"type": "object",
|
|
135
|
-
"additionalProperties": true,
|
|
136
|
-
"description": "Project-level eval settings, distinct from the per-node block above: this one describes the PROJECT (which paths count as prompt or model), not one suite.",
|
|
137
|
-
"properties": {
|
|
138
|
-
"watch": {
|
|
139
|
-
"type": "array",
|
|
140
|
-
"items": { "type": "string", "minLength": 1 },
|
|
141
|
-
"description": "Globs that mean 'this is a prompt or a model'. Matched against what the feature changed (git diff plus untracked) to decide whether Gate 3 should pause for a missing eval. Absent means the project declares no such paths - reported as a reason of its own, distinct from 'declared and nothing was touched'."
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
132
|
}
|
|
145
133
|
}
|
|
146
134
|
},
|
|
147
135
|
"e2e": {
|
|
148
136
|
"type": "object",
|
|
149
137
|
"additionalProperties": true,
|
|
150
|
-
"description": "The verification stack of `e2e up` and of the verify e2e node. Only specTimeoutMs, hostServices and resetCommand are described here; the other keys (auth, command, portEnvNames, ...) stay open.",
|
|
151
138
|
"properties": {
|
|
152
|
-
"
|
|
153
|
-
"type": "array",
|
|
154
|
-
"items": { "type": "string", "minLength": 1 },
|
|
155
|
-
"description": "Specs out of the feature's scope that are known red (a race with another feature's spec, a shared fixture): a substring of the Playwright failure line. Red after the one rerun, a quarantined spec does not fail the e2e node; it is named in the verify feedback and in the stamp's `flaky`. A red spec it does not name still fails."
|
|
156
|
-
},
|
|
157
|
-
"specTimeoutMs": {
|
|
158
|
-
"type": "number",
|
|
159
|
-
"exclusiveMinimum": 0,
|
|
160
|
-
"default": 300000,
|
|
161
|
-
"description": "Limit of each Playwright spec run of the verify e2e node, in ms."
|
|
162
|
-
},
|
|
163
|
-
"resetCommand": {
|
|
139
|
+
"command": {
|
|
164
140
|
"type": "string",
|
|
165
|
-
"
|
|
166
|
-
"description": "Run by `e2e reset` to put the running stack's data back in a known state between verification flows, with the stack env (port block + e2e.auth.envFile), before the auth seed. Unset: `e2e reset` recreates, empty, the compose services without a build section that mount a named, non-external volume (rm -sfv, volume rm, up -d --wait). App services and hostServices are never restarted."
|
|
167
|
-
},
|
|
168
|
-
"hostServices": {
|
|
169
|
-
"type": "array",
|
|
170
|
-
"description": "Apps that run as host processes, in the feature's port block: next to the compose stack when building them inside the Docker VM is expensive (compose keeps only the dependencies), or alone when the app has no dependency to containerize (no database, no queue). Without a compose file and without a configured e2e.composeFile, a non-empty hostServices IS the stack (host-only): no compose lint, no Docker check, `e2e reset` runs resetCommand or only the seed. Order on `e2e up` and on the verify e2e node: compose up --wait (skipped host-only), then each service in array order (build, start detached, health), then the auth seed. They stay up until `e2e down`, `finish`, `delete` or `worktree remove`. Reused while the code stamp (HEAD + status + diff) matches and health is green; a divergent stamp or --fresh/--fresh-e2e kills, rebuilds and restarts them. A failure (build exit != 0, timeout, health never green) fails `e2e up` (exit 1) and the e2e node with the service name and its log tail, kills what this run started and skips the seed. The authority at runtime is validateServices() in framework/hooks/shared/host-services.js.",
|
|
171
|
-
"items": {
|
|
172
|
-
"type": "object",
|
|
173
|
-
"additionalProperties": false,
|
|
174
|
-
"required": ["name", "start"],
|
|
175
|
-
"properties": {
|
|
176
|
-
"name": {
|
|
177
|
-
"type": "string",
|
|
178
|
-
"pattern": "^[A-Za-z0-9._-]+$",
|
|
179
|
-
"description": "Unique in the array. Names the log file (<git-common-dir>/morph-spec/e2e-host-<project>-<name>.log) and every message about the service."
|
|
180
|
-
},
|
|
181
|
-
"cwd": {
|
|
182
|
-
"type": "string",
|
|
183
|
-
"default": ".",
|
|
184
|
-
"description": "Working directory of build and start, relative to the project root. One that does not exist refuses."
|
|
185
|
-
},
|
|
186
|
-
"build": {
|
|
187
|
-
"type": "string",
|
|
188
|
-
"description": "Runs before start; a non-zero exit fails the bring-up."
|
|
189
|
-
},
|
|
190
|
-
"start": {
|
|
191
|
-
"type": "string",
|
|
192
|
-
"minLength": 1,
|
|
193
|
-
"description": "The process, started detached; its output goes to the service log."
|
|
194
|
-
},
|
|
195
|
-
"env": {
|
|
196
|
-
"type": "object",
|
|
197
|
-
"additionalProperties": { "type": ["string", "number"] },
|
|
198
|
-
"description": "Added on top of process.env and the stack env (port block + e2e.auth.envFile). ${VAR} is resolved from the stack env, then process.env; a VAR with no value (or an empty one) refuses before any build, naming the variable and the service."
|
|
199
|
-
},
|
|
200
|
-
"health": {
|
|
201
|
-
"type": "string",
|
|
202
|
-
"description": "URL polled until it answers with an HTTP status below 500. ${VAR} interpolates like env. Without it, a process still alive 2 s after start counts as ready."
|
|
203
|
-
},
|
|
204
|
-
"timeoutMs": {
|
|
205
|
-
"type": "number",
|
|
206
|
-
"exclusiveMinimum": 0,
|
|
207
|
-
"default": 180000,
|
|
208
|
-
"description": "Ceiling for build + start + health together."
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
"finishBackup": {
|
|
216
|
-
"type": "object",
|
|
217
|
-
"additionalProperties": true,
|
|
218
|
-
"description": "The backups `finish` and `worktree remove` write to .git/morph-spec/finish-backup/ before deleting a file that exists nowhere else.",
|
|
219
|
-
"properties": {
|
|
220
|
-
"retention": {
|
|
221
|
-
"description": "How long a backup lives. ON by default: a config without this key gets the defaults below - the maxCount newest backups of each namespace always stay, at any age (no age cut unless maxAgeDays is set), and .env* files inside a backup go after secretMaxAgeDays. One finish is one backup, even when it writes two folders (same stamp). Applied after every finish and every `worktree remove` that wrote a backup, and on demand by `morph-spec doctor --worktrees --prune`. A backup without its {folder}.manifest.json was written before this retention: the automatic prune never deletes it, never strips it and gives it no place in the count (it reports legacyPending); only the explicit `doctor --worktrees --prune` prunes it, counting it with the rest, and writes a manifest into every one it keeps. Only `false` turns retention off. Anything else it cannot read - an unknown key, a value that is not an integer >= 1, a retention that is neither `false` nor this object, a finishBackup that is not an object, a config.json that does not parse - SKIPS the prune for that run, with the reason in the output: never the defaults, because the operation deletes. The backup the running command just wrote is never pruned by it, and a backup stamped in the future is kept without taking a place in the count.",
|
|
222
|
-
"oneOf": [
|
|
223
|
-
{
|
|
224
|
-
"const": false,
|
|
225
|
-
"description": "Retention off: no backup and no .env* inside one is ever deleted."
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"type": "object",
|
|
229
|
-
"additionalProperties": false,
|
|
230
|
-
"properties": {
|
|
231
|
-
"maxCount": {
|
|
232
|
-
"type": "integer",
|
|
233
|
-
"minimum": 1,
|
|
234
|
-
"default": 20,
|
|
235
|
-
"description": "Backups kept per namespace (the top level, and task/ for task isolation trees), newest first."
|
|
236
|
-
},
|
|
237
|
-
"maxAgeDays": {
|
|
238
|
-
"type": ["integer", "null"],
|
|
239
|
-
"minimum": 1,
|
|
240
|
-
"default": null,
|
|
241
|
-
"description": "Optional age cut: when set, no backup older than this survives, whatever the count. Absent or null (the default) means no age cut - a quiet period never empties the backups of the last features closed."
|
|
242
|
-
},
|
|
243
|
-
"secretMaxAgeDays": {
|
|
244
|
-
"type": "integer",
|
|
245
|
-
"minimum": 1,
|
|
246
|
-
"default": 7,
|
|
247
|
-
"description": "Files named .env* are deleted from a backup older than this; the rest of it stays, and its manifest keeps the names."
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
]
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
"finish": {
|
|
256
|
-
"type": "object",
|
|
257
|
-
"description": "How a finished feature reaches the default branch.",
|
|
258
|
-
"properties": {
|
|
259
|
-
"mode": { "type": "string", "enum": ["pr", "merge"], "default": "pr" }
|
|
260
|
-
},
|
|
261
|
-
"additionalProperties": false
|
|
262
|
-
},
|
|
263
|
-
"heavy": {
|
|
264
|
-
"type": "object",
|
|
265
|
-
"additionalProperties": false,
|
|
266
|
-
"description": "Slots per USER (shared by every session on the machine, kept in %LOCALAPPDATA%/morph-spec/heavy on Windows and ~/.local/state/morph-spec/heavy elsewhere) for the heavy nodes: build, tests and e2e of `verify`, `e2e up`, and `morph-spec heavy run`. A value it cannot read falls back to the default with a warning - this block never blocks work by being wrong. `MORPH_HEAVY=off` switches the whole semaphore off (the test suite does), `MORPH_HEAVY_SLOTS` overrides `slots`, `MORPH_HEAVY_DIR` moves the directory.",
|
|
267
|
-
"properties": {
|
|
268
|
-
"enabled": {
|
|
269
|
-
"type": "boolean",
|
|
270
|
-
"default": true,
|
|
271
|
-
"description": "false turns the semaphore off: no slot is taken, no RAM is checked, and `dotnet build-server shutdown` is never run (without the semaphore nothing proves another session is not compiling)."
|
|
272
|
-
},
|
|
273
|
-
"slots": {
|
|
274
|
-
"type": "integer",
|
|
275
|
-
"minimum": 1,
|
|
276
|
-
"default": 2,
|
|
277
|
-
"description": "How many heavy nodes run at once on this machine."
|
|
278
|
-
},
|
|
279
|
-
"minFreeMemGb": {
|
|
280
|
-
"type": "number",
|
|
281
|
-
"minimum": 0,
|
|
282
|
-
"default": 4,
|
|
283
|
-
"description": "Free RAM (os.freemem) below which a heavy node WAITS instead of starting and dying 'killed' for memory. It waits with or without a slot holder - the pressure often comes from outside (WSL vmmem, the IDE). 0 disables the check. Since the per-kind floors exist it is the fallback: set explicitly, it applies to every kind not listed in minFreeMemGbByKind (so 0 still turns the check off everywhere)."
|
|
284
|
-
},
|
|
285
|
-
"minFreeMemGbByKind": {
|
|
286
|
-
"type": "object",
|
|
287
|
-
"additionalProperties": false,
|
|
288
|
-
"default": { "unit": 1.5, "build": 4, "e2e": 4 },
|
|
289
|
-
"description": "Free-RAM floor per kind of heavy command. unit = vitest/jest, npm|pnpm|yarn test, the verify tests node; e2e = playwright, docker compose up, the verify e2e node, e2e up; build = everything else (dotnet build|test|publish, next build, docker build, unknown commands). A verify admitted at a lighter node waits again, holding its slot, before a heavier one. A kind left out takes an explicit heavy.minFreeMemGb, else its default.",
|
|
290
|
-
"properties": {
|
|
291
|
-
"unit": { "type": "number", "minimum": 0 },
|
|
292
|
-
"build": { "type": "number", "minimum": 0 },
|
|
293
|
-
"e2e": { "type": "number", "minimum": 0 }
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
"reclaimIdleMinutes": {
|
|
297
|
-
"type": "number",
|
|
298
|
-
"minimum": 0,
|
|
299
|
-
"default": 20,
|
|
300
|
-
"description": "Below the RAM floor, before waiting, `verify`, `e2e up` and `heavy run` bring down the e2e stacks of this repo nobody is using: an archived feature's (with volumes) and an active feature's idle for this many minutes, with no heavy slot (volumes kept). 0 turns it off."
|
|
301
|
-
},
|
|
302
|
-
"reclaimContainers": {
|
|
303
|
-
"type": "array",
|
|
304
|
-
"items": { "type": "string", "pattern": "^[\\w.-]+$" },
|
|
305
|
-
"default": ["morph-pgtest"],
|
|
306
|
-
"description": "Name prefixes of disposable test containers that reclaim removes when no heavy slot may be testing. A killed test run leaves these behind."
|
|
307
|
-
},
|
|
308
|
-
"detachedWaitMinutes": {
|
|
309
|
-
"type": "number",
|
|
310
|
-
"minimum": 0,
|
|
311
|
-
"default": 60,
|
|
312
|
-
"description": "How long a `verify --detach` waits in the queue. It runs out of any shell's timeout, so with several sessions open it waits for its turn instead of exiting 3."
|
|
141
|
+
"description": "What `morph-spec check --tier e2e` runs."
|
|
313
142
|
},
|
|
314
|
-
"
|
|
315
|
-
"type": "boolean",
|
|
316
|
-
"default": true,
|
|
317
|
-
"description": "Heavy runs leave room for what the person is using: a quarter of the cores stays out, a run alone takes the rest and a run with company takes rest / slots, through DOTNET_PROCESSOR_COUNT, VITEST_MAX_FORKS, VITEST_MAX_THREADS and --maxWorkers. `init` and `update` write the shared value to `env` in .claude/settings.local.json for what runs outside the queue. Priority is left alone on purpose: below normal, a process starves on a busy machine and fails by its own timeouts."
|
|
318
|
-
},
|
|
319
|
-
"criticalFreeMemGb": {
|
|
320
|
-
"type": "number",
|
|
321
|
-
"minimum": 0,
|
|
322
|
-
"default": 1,
|
|
323
|
-
"description": "While a `verify --detach` runs, free RAM below this for a minute reclaims idle stacks and then stops that run with exit 3, no stamp. The floors judge the start of a node; this judges the middle. 0 turns it off."
|
|
324
|
-
},
|
|
325
|
-
"waitTimeoutSec": {
|
|
326
|
-
"type": "number",
|
|
327
|
-
"minimum": 0,
|
|
328
|
-
"default": 600,
|
|
329
|
-
"description": "How long to wait for a slot or for RAM. On timeout `verify` exits 3 (busy) and persists NOTHING - a queue is neither a green nor a red gate. 0 means do not wait."
|
|
330
|
-
},
|
|
331
|
-
"maxHoldMinutes": {
|
|
332
|
-
"type": "number",
|
|
333
|
-
"exclusiveMinimum": 0,
|
|
334
|
-
"default": 90,
|
|
335
|
-
"description": "A slot held longer than this is treated as stale even if its pid is alive (pid reuse)."
|
|
336
|
-
},
|
|
337
|
-
"shutdownBuildServer": {
|
|
338
|
-
"type": "boolean",
|
|
339
|
-
"default": true,
|
|
340
|
-
"description": "Run `dotnet build-server shutdown` at the end of a `verify` and of `e2e down`, only when no slot is held and no dotnet build/test is alive."
|
|
341
|
-
},
|
|
342
|
-
"disableNodeReuse": {
|
|
343
|
-
"type": "boolean",
|
|
344
|
-
"default": false,
|
|
345
|
-
"description": "Set MSBUILDDISABLENODEREUSE=1 while a heavy node runs, so MSBuild worker nodes do not stay resident."
|
|
346
|
-
},
|
|
347
|
-
"gateBash": {
|
|
348
|
-
"type": "boolean",
|
|
349
|
-
"default": true,
|
|
350
|
-
"description": "On by default: the session runs builds and tests itself, so a raw heavy command queues like the verify does. A PreToolUse hook takes a slot before a raw heavy Bash command (dotnet build|test|publish|pack, npm|pnpm|yarn test|build, vitest, jest, docker compose up|build, ...) runs and the matching Post hook gives it back. Waits up to heavy.waitTimeoutSec (capped below the hook timeout), then refuses the call with a busy message instead of running it. Foreground Bash only: a run_in_background call is not gated, and a call denied or interrupted after the hook keeps its slot until its timeout lapses, and that timeout starts before the permission prompt."
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
"worktree": {
|
|
355
|
-
"type": "object",
|
|
356
|
-
"additionalProperties": true,
|
|
357
|
-
"description": "Worktree behaviour of this project. Other keys are left open; the reader is src/lib/worktree/vscode-settings.js.",
|
|
358
|
-
"properties": {
|
|
359
|
-
"root": {
|
|
143
|
+
"composeFile": {
|
|
360
144
|
"type": "string",
|
|
361
|
-
"
|
|
362
|
-
"description": "Where NEW worktrees are created, outside the project tree: they land in <root>/<repo>-<hash>/<name> (the hash keeps two repos with the same folder name apart). Absolute, `~/...`, or relative to the primary root. A path that resolves INSIDE the project root is ignored with a warning, because every exclusion list (.gitignore, graph ignore, test discovery, the --linux tar, editor globs) is keyed on worktrees/. Existing worktrees under worktrees/ keep being recognised. `MORPH_WORKTREE_ROOT` overrides it for one run."
|
|
145
|
+
"description": "Compose file of the stack, when not one of the default names."
|
|
363
146
|
},
|
|
364
|
-
"
|
|
365
|
-
"type": "
|
|
366
|
-
"
|
|
367
|
-
|
|
147
|
+
"portEnvNames": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"additionalProperties": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"description": "Extra env names that receive a port of the worktree block (`morph-spec env`)."
|
|
368
153
|
}
|
|
369
154
|
}
|
|
370
155
|
}
|
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
# MORPH-SPEC Skills
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Instaladas em `.claude/skills/` pelo `morph-spec init` (e `update`), filtradas pela stack do contrato.
|
|
4
|
+
Cada skill é uma pasta: `{nome}/SKILL.md` + `references/` opcional.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
## core/
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
| Skill | Para quê | Invocável |
|
|
9
|
+
|---|---|---|
|
|
10
|
+
| `morph-plan` | issue → `plan.md` com cenários `Cn`, varredura, `plan-check` | sim |
|
|
11
|
+
| `morph-uiux` | telas com uma pessoa escolhendo: opções, protótipo, checklist de tela | sim |
|
|
12
|
+
| `morph-apply` | o plano inteiro nesta sessão, prova vermelha, `check`, revisão em contexto novo, `## Resultado` | sim |
|
|
13
|
+
| `create-umbraco-lp`, `migrate-lp-to-umbraco` | landing page em Umbraco (só com a tag `umbraco`) | sim |
|
|
8
14
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
| Skill | Purpose | User-invocable |
|
|
14
|
-
|----------------------|----------------------------------------------------------------------|----------------|
|
|
15
|
-
| `morph-plan` | Route, scan, interview, write plan.md, plan-check and the plan gate | yes |
|
|
16
|
-
| `morph-uiux` | Optional design branch after the plan gate (mockups + screen checklist) | yes |
|
|
17
|
-
| `morph-apply` | Run the plan slices (dispatch, report-check, verify) into the review | yes |
|
|
18
|
-
| `morph-review` | Final review report with SHIP/FIX verdict (Gate 3) | yes |
|
|
19
|
-
| `morph-standards` | Locate and load a specific standard on demand | no |
|
|
20
|
-
|
|
21
|
-
The legacy `level-0-meta/` and `level-1-workflows/` skill trees were removed
|
|
22
|
-
in v5 — their useful content was consolidated into `core/`. MORPH.md is the
|
|
23
|
-
single charter that ties everything together.
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Domain Agents
|
|
28
|
-
|
|
29
|
-
Domain specialist agents (`framework/agents/`) are installed separately as
|
|
30
|
-
`.claude/agents/morph-{name}.md` — they are subagents dispatched via the
|
|
31
|
-
`Agent` tool, not skills.
|
|
32
|
-
|
|
33
|
-
See `framework/agents.json` for the full list and persona definitions.
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
*MORPH-SPEC by Polymorphism Tech*
|
|
15
|
+
`framework/MORPH.md` (`## 6. Skills disponíveis`) liga as skills ao fluxo. Os agentes de revisão
|
|
16
|
+
(`verifier`, `reviewer`, `security`) não são skills: o installer gera `.claude/agents/morph-{id}.md` a
|
|
17
|
+
partir de `framework/agents.json`.
|
|
@@ -4,7 +4,7 @@ description: Guia a criação de uma landing page nova ponta-a-ponta a partir do
|
|
|
4
4
|
version: core
|
|
5
5
|
when_to_use: Use quando for iniciar um novo projeto de LP com o template Umbraco genérico
|
|
6
6
|
user-invocable: true
|
|
7
|
-
cliVersion: "
|
|
7
|
+
cliVersion: "11.0.0"
|
|
8
8
|
stacks:
|
|
9
9
|
- umbraco
|
|
10
10
|
---
|
|
@@ -4,7 +4,7 @@ description: Migra uma landing page existente (React/Vite, Next.js estático ou
|
|
|
4
4
|
version: core
|
|
5
5
|
when_to_use: Use quando o usuário pedir "use /migrate-lp-to-umbraco {projeto}" ou descrever a necessidade de migrar uma LP para Umbraco
|
|
6
6
|
user-invocable: true
|
|
7
|
-
cliVersion: "
|
|
7
|
+
cliVersion: "11.0.0"
|
|
8
8
|
stacks:
|
|
9
9
|
- umbraco
|
|
10
10
|
---
|