mandrel 2.57.0 → 2.59.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/.agents/README.md +6 -3
- package/.agents/agents/story-worker.md +12 -11
- package/.agents/docs/SDLC.md +6 -7
- package/.agents/docs/quality-gates.md +1 -1
- package/.agents/instructions.md +2 -3
- package/.agents/runtime-deps.json +7 -2
- package/.agents/schemas/crap-baseline.schema.json +1 -1
- package/.agents/schemas/crap-report.schema.json +1 -1
- package/.agents/scripts/evidence-gate.js +17 -1
- package/.agents/scripts/install-matrix-assert.js +48 -3
- package/.agents/scripts/lib/audit-to-stories/seed-from-findings.js +51 -33
- package/.agents/scripts/lib/baselines/kinds/_crap-read.js +0 -8
- package/.agents/scripts/lib/baselines/kinds/crap.js +35 -18
- package/.agents/scripts/lib/crap-engine.js +2 -2
- package/.agents/scripts/lib/crap-utils.js +21 -5
- package/.agents/scripts/lib/escomplex-ast-compat.js +39 -17
- package/.agents/scripts/lib/escomplex-kernel.js +298 -0
- package/.agents/scripts/lib/maintainability-engine.js +3 -3
- package/.agents/scripts/lib/orchestration/code-review.js +7 -3
- package/.agents/scripts/lib/orchestration/pinned-identifier-lint.js +137 -0
- package/.agents/scripts/lib/orchestration/plan-context.js +41 -27
- package/.agents/scripts/lib/orchestration/plan-persist/acceptance-handle-repair.js +107 -0
- package/.agents/scripts/lib/orchestration/plan-persist/changes-repair.js +6 -1
- package/.agents/scripts/lib/orchestration/plan-persist/persist-helpers.js +14 -9
- package/.agents/scripts/lib/orchestration/plan-persist/run-plan-persist.js +45 -31
- package/.agents/scripts/lib/orchestration/plan-persist/story-ops.js +8 -9
- package/.agents/scripts/lib/orchestration/plan-persist/supersede-ops.js +1 -1
- package/.agents/scripts/lib/orchestration/plan-persist/wave-collision-gate.js +107 -0
- package/.agents/scripts/lib/orchestration/plan-text-hygiene.js +15 -5
- package/.agents/scripts/lib/orchestration/review-base-ref.js +138 -0
- package/.agents/scripts/lib/orchestration/single-story-close/phases/code-review.js +37 -5
- package/.agents/scripts/lib/orchestration/single-story-close/runner.js +6 -1
- package/.agents/scripts/lib/orchestration/ticket-validator-conflicts.js +25 -209
- package/.agents/scripts/lib/orchestration/ticket-validator-sizing.js +8 -5
- package/.agents/scripts/lib/runtime-deps/dep-resolution.js +155 -0
- package/.agents/scripts/lib/runtime-deps/ensure-installed.js +44 -9
- package/.agents/scripts/lib/runtime-deps/parser-major.js +110 -0
- package/.agents/scripts/lib/runtime-deps/preflight.js +6 -25
- package/.agents/scripts/lib/runtime-deps/scan-imports.js +46 -1
- package/.agents/scripts/lib/skills/walk-skill-files.js +1 -1
- package/.agents/scripts/lib/story-body/story-body.js +36 -2
- package/.agents/scripts/lib/templates/decomposer-prompts.js +73 -21
- package/.agents/scripts/lib/test-run-credit.js +23 -12
- package/.agents/scripts/plan-persist.js +0 -11
- package/.agents/skills/skills.index.json +1 -11
- package/.agents/workflows/audit-to-stories.md +14 -11
- package/.agents/workflows/helpers/deliver-digest.md +22 -15
- package/.agents/workflows/helpers/deliver-story-reference.md +31 -11
- package/.agents/workflows/helpers/deliver-story.md +6 -5
- package/.agents/workflows/helpers/plan-reference.md +53 -13
- package/.agents/workflows/mandrel-plan.md +19 -14
- package/README.md +3 -3
- package/docs/CHANGELOG.md +21 -0
- package/lib/cli/registry.js +143 -27
- package/package.json +7 -2
- package/.agents/scripts/lib/orchestration/split-policy-validator.js +0 -188
- package/.agents/scripts/lib/templates/spec-author-prompts.js +0 -76
- package/.agents/skills/core/scope-triage/SKILL.md +0 -48
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: scope-triage
|
|
3
|
-
description:
|
|
4
|
-
Optional split-advisory for `/mandrel-plan`. Under v2 there is no epic|story routing
|
|
5
|
-
verdict — `/mandrel-plan` always authors Stories. Use this skill only when judging
|
|
6
|
-
whether a draft should stay one Story or legitimately split (near-zero
|
|
7
|
-
overlap or an architectural seam).
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# scope-triage (split advisory)
|
|
11
|
-
|
|
12
|
-
## Policy Capsule
|
|
13
|
-
|
|
14
|
-
- There is **no** `epic | story | borderline` routing verdict in v2. `/mandrel-plan`
|
|
15
|
-
is a single path that emits **one Story by default**.
|
|
16
|
-
- This skill is an optional **split advisory**: should the author keep one
|
|
17
|
-
Story, or does the seed clear the default-single split policy?
|
|
18
|
-
- Anchor sizing judgment to `DELIVERABLE_GRANULARITY_GUIDANCE` in
|
|
19
|
-
[`ticket-validator-sizing.js`](../../../scripts/lib/orchestration/ticket-validator-sizing.js).
|
|
20
|
-
There is no numeric threshold to restate — Story #5312 deleted the
|
|
21
|
-
plan-time capacity ceilings.
|
|
22
|
-
- Lead with **cohesion**: one Story is one coherent change with one reason
|
|
23
|
-
to exist. Coupled work stays one Story and uses `## Slicing` for
|
|
24
|
-
intra-session checkpoints.
|
|
25
|
-
- Emit an **advisory only** — `keep-single` (the default) or `split` with its
|
|
26
|
-
seam/overlap rationale. **Never auto-route**: the operator decides, and
|
|
27
|
-
`--yes` defaults to `keep-single`.
|
|
28
|
-
|
|
29
|
-
## Split policy (when N>1 is allowed)
|
|
30
|
-
|
|
31
|
-
Split into sibling Stories **only** when:
|
|
32
|
-
|
|
33
|
-
1. **Near-zero overlap** — genuinely independent capabilities that happen to
|
|
34
|
-
share a seed idea, or
|
|
35
|
-
2. **Architectural seam** — different deployables, or a migration vs the
|
|
36
|
-
feature that consumes it.
|
|
37
|
-
|
|
38
|
-
Otherwise keep one Story. Persist refuses coupled splits via
|
|
39
|
-
`assertAcceptancePartition` (identical AC text across Stories).
|
|
40
|
-
|
|
41
|
-
## Advisory output
|
|
42
|
-
|
|
43
|
-
Emit one of:
|
|
44
|
-
|
|
45
|
-
- `keep-single` — default; fold complexity into `## Spec` / `## Slicing`
|
|
46
|
-
- `split` — list the proposed Stories and the seam/overlap rationale
|
|
47
|
-
|
|
48
|
-
Never auto-route. The operator (or `--yes` default = `keep-single`) decides.
|