arkgate 4.6.1 → 4.6.2
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/CHANGELOG.md +30 -1
- package/README.md +5 -3
- package/bin/ark-check-runtime.mjs +23 -127
- package/bin/ark-mcp-runtime.mjs +70 -48
- package/bin/ark.mjs +19 -78
- package/bin/lib/doctor-next-actions.mjs +92 -0
- package/bin/lib/doctor-plan.mjs +59 -69
- package/bin/lib/first-run-help.mjs +221 -0
- package/bin/lib/start-preview.mjs +17 -10
- package/bin/lib/status-command.mjs +5 -0
- package/bin/lib/status-manifest.mjs +6 -0
- package/dist/index.cjs +19 -19
- package/dist/index.d.ts +6 -1
- package/dist/index.js +22 -22
- package/docs/README.md +5 -5
- package/docs/agent-guide.md +1 -1
- package/docs/enthusiast/how-to-agent-gates.md +1 -1
- package/docs/package-surface.md +3 -3
- package/docs/use.md +4 -4
- package/package.json +2 -2
- package/server.json +3 -3
- package/templates/agent-skills/README.md +1 -1
- package/templates/agent-skills/ark-adopt/SKILL.md +14 -5
- package/templates/agent-skills/ark-architect/SKILL.md +2 -2
- package/templates/agent-skills/ark-autopilot/SKILL.md +12 -5
- package/templates/agent-skills/ark-contract/SKILL.md +1 -1
- package/templates/agent-skills/ark-coverage/SKILL.md +6 -5
- package/templates/agent-skills/ark-explain/SKILL.md +3 -2
- package/templates/agent-skills/ark-explore/SKILL.md +13 -4
- package/templates/agent-skills/ark-fix/SKILL.md +1 -1
- package/templates/agent-skills/ark-loop/SKILL.md +1 -1
- package/templates/agent-skills/ark-place/SKILL.md +10 -1
- package/templates/agent-skills/ark-think/SKILL.md +3 -2
- package/templates/agent-skills/ark-upgrade/SKILL.md +10 -3
- package/templates/skills/ark-adopt.md +14 -5
- package/templates/skills/ark-architect.md +2 -2
- package/templates/skills/ark-autopilot.md +12 -5
- package/templates/skills/ark-contract.md +1 -1
- package/templates/skills/ark-coverage.md +6 -5
- package/templates/skills/ark-explain.md +3 -2
- package/templates/skills/ark-explore.md +13 -4
- package/templates/skills/ark-fix.md +1 -1
- package/templates/skills/ark-loop.md +1 -1
- package/templates/skills/ark-place.md +10 -1
- package/templates/skills/ark-think.md +3 -2
- package/templates/skills/ark-upgrade.md +10 -3
|
@@ -5,6 +5,15 @@ description: Map skill — decision-grade recon of layers + ArkRules opportuniti
|
|
|
5
5
|
|
|
6
6
|
# /ark-explore — Recon the real project (map only)
|
|
7
7
|
|
|
8
|
+
**When:** you need a map, or leftover design work remains after imports look green.
|
|
9
|
+
**Not when:** the user wants edits applied (`/ark-autopilot`) or session 0 (`/ark-adopt`).
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. Read `arkgate-check --doctor`.
|
|
14
|
+
2. Open the real tree (≥12 files across ≥4 dirs). CLI JSON alone is incomplete.
|
|
15
|
+
3. Rank leftover work. Hand off to `/ark-autopilot` to apply one refactor. Do not write config or product code here.
|
|
16
|
+
|
|
8
17
|
## Autonomy contract
|
|
9
18
|
|
|
10
19
|
Invoking this skill **is** the approval to **map**. Open the real tree. CLI JSON alone is
|
|
@@ -308,7 +317,7 @@ Prefer bets the user can run next (`command` / skill), not vague “improve DX
|
|
|
308
317
|
| **Stabilize** | ENFORCE + honest baseline only for real debt | 0 new edges; doctor not lying about write path/CI |
|
|
309
318
|
| **Shape** | One **golden** pattern + pilot cluster | Pilot smells cleared; rest is migrate-on-touch; B bets have success signals |
|
|
310
319
|
|
|
311
|
-
ENFORCE without Shape progress is
|
|
320
|
+
ENFORCE without Shape progress is leftover design work — say that out loud. It is **not** “healthy finished.”
|
|
312
321
|
|
|
313
322
|
**Agent-detected design smells** (list any that apply; paths required — these may predate doctor IDs):
|
|
314
323
|
|
|
@@ -374,16 +383,16 @@ and the ranked **`pilotLoop.nextPilot`**.
|
|
|
374
383
|
|
|
375
384
|
State **Mode: recon | dual-plan seed | shape-focus** and **Phase: Align | Stabilize | Shape** in the first lines.
|
|
376
385
|
|
|
377
|
-
1. **Headline** — product one sentence + honesty (mode, governed%, false-green /
|
|
386
|
+
1. **Headline** — product one sentence + honesty (mode, governed%, false-green / leftover design work / false-promise risk). ENFORCE is context, not the story.
|
|
378
387
|
2. **Map** — entry points, major dirs, shape name (or “no honest shape yet”). One screen. **Patterns concurrent** table when §B/§G requires it.
|
|
379
388
|
3. **What I opened** — paths + sensors (include field/hook/origin when used).
|
|
380
389
|
4. **Ranked table** — **only rows that change a decision**. Prefer **3–6** hard rows.
|
|
381
390
|
|
|
382
|
-
| # | Kind | Finding | Evidence (path) |
|
|
391
|
+
| # | Kind | Finding | Evidence (path) | How to fix | Success signal | Next skill / command |
|
|
383
392
|
|
|
384
393
|
Kinds: `risk` | `false-green` | `debt` | `opportunity` | `shape` | `manifiesto` | `agent-dx` | `design-weak`
|
|
385
394
|
|
|
386
|
-
**
|
|
395
|
+
**How to fix** must be concrete: files to touch, command to run.
|
|
387
396
|
**Success signal** must be falsifiable (see §F).
|
|
388
397
|
|
|
389
398
|
5. **Field path summary**.
|
|
@@ -5,7 +5,7 @@ description: Shortcut to /ark-autopilot for a small violation cluster. Deprecate
|
|
|
5
5
|
|
|
6
6
|
# /ark-fix — Shortcut to /ark-autopilot
|
|
7
7
|
|
|
8
|
-
**
|
|
8
|
+
**Not a first-run door.** This leftover name is a shortcut. Gate violations are
|
|
9
9
|
**`/ark-autopilot`**. Do that job now. CLI only validates.
|
|
10
10
|
|
|
11
11
|
## Autonomy contract
|
|
@@ -5,7 +5,7 @@ description: Shortcut to /ark-autopilot for driving plan A to zero. Deprecated a
|
|
|
5
5
|
|
|
6
6
|
# /ark-loop — Shortcut to /ark-autopilot
|
|
7
7
|
|
|
8
|
-
**
|
|
8
|
+
**Not a first-run door.** This leftover name is a shortcut. Driving `--plan` to `goal.met` is **`/ark-autopilot`**.
|
|
9
9
|
Do that job now. Auto-apply only the four `mechanical-safe` kinds; judgment you write.
|
|
10
10
|
|
|
11
11
|
## Autonomy contract
|
|
@@ -5,6 +5,15 @@ description: "Where does new code go? Names the layer, directory, and naming for
|
|
|
5
5
|
|
|
6
6
|
# /ark-place — Where does this code go?
|
|
7
7
|
|
|
8
|
+
**When:** you are adding a new file or artifact and need the layer, folder, and name.
|
|
9
|
+
**Not when:** session 0 / config is missing or lying (`/ark-adopt`) or an existing violation cluster (`/ark-autopilot`).
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. Bind identity if using MCP (`ark_identity` with the exact project root).
|
|
14
|
+
2. Place the file (`ark_place` or read `ark.config.json`).
|
|
15
|
+
3. Write it there. Then `arkgate-check`.
|
|
16
|
+
|
|
8
17
|
## Autonomy contract
|
|
9
18
|
|
|
10
19
|
Invoking this skill **is** the approval. If the user described an artifact, **write the
|
|
@@ -155,7 +164,7 @@ the same files or weaken the gate.
|
|
|
155
164
|
|
|
156
165
|
- If the user needs bulk adoption / wrong config, not a single artifact: **STOP — do not continue this skill as complete.** Switch to **`/ark-adopt`** (write the path) instead of ad-hoc multi-file grinding without a plan.
|
|
157
166
|
- If the config lacks a home for the artifact: add the layer **in this turn**, then write the file.
|
|
158
|
-
- If doctor
|
|
167
|
+
- If doctor shows leftover design work and the user is asking to reshape existing structure
|
|
159
168
|
(not place one new artifact): place only the new file under the golden/contract home, then
|
|
160
169
|
hand off **one** pilot via `pilotLoop.nextPilot` / `/ark-explore` shape-focus — never multi-pilot
|
|
161
170
|
batch reshape from this skill.
|
|
@@ -5,8 +5,9 @@ description: Host-side architectural reasoning — 2–3 enforceable options on
|
|
|
5
5
|
|
|
6
6
|
# /ark-think — Architectural reasoning (host LLM only)
|
|
7
7
|
|
|
8
|
-
**
|
|
9
|
-
|
|
8
|
+
**Not a first-run door.** One decision only. Session 0 → **`/ark-adopt`**.
|
|
9
|
+
Full map → **`/ark-explore`**. Apply → **`/ark-autopilot`**.
|
|
10
|
+
Do not send the user to leftover `/ark-contract` or `/ark-fix`.
|
|
10
11
|
|
|
11
12
|
You are the user's architecture thinking partner **inside** the project's Ark contract.
|
|
12
13
|
This skill does **not** call any LLM API from the arkgate package. **You** (the host agent)
|
|
@@ -5,9 +5,16 @@ description: Upgrade ArkGate through a content-identity preview, preserve custom
|
|
|
5
5
|
|
|
6
6
|
# /ark-upgrade — managed ArkGate upgrade
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
**When:** bump the published `arkgate` package and refresh managed gates.
|
|
9
|
+
**Not when:** session 0 (`/ark-adopt`) or leftover design (`/ark-explore`).
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. Preview: `arkgate upgrade` (no writes).
|
|
14
|
+
2. Apply in this turn: `arkgate upgrade --apply` (needs `--plan-digest` when applying managed files).
|
|
15
|
+
3. Re-run `arkgate-check --doctor`. Customized files stay unless you pass `--accept-conflicts` / `--refresh-skills`.
|
|
16
|
+
|
|
17
|
+
The preview is the source of truth. Do not treat a filename or package version as proof of ownership.
|
|
11
18
|
|
|
12
19
|
## Autonomy contract
|
|
13
20
|
|