@astrosheep/keiyaku 2.9.0 → 2.9.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/build/.tsbuildinfo +1 -1
- package/build/cli/commands/akuma/list/handler.js +1 -1
- package/build/cli/commands/akuma/view/handler.js +1 -1
- package/build/cli/commands/contract/amend/handler.js +1 -1
- package/build/cli/commands/contract/arc/handler.js +1 -1
- package/build/cli/commands/contract/bind/handler.js +1 -1
- package/build/cli/commands/contract/forfeit/handler.js +1 -1
- package/build/cli/commands/contract/log/handler.js +1 -1
- package/build/cli/commands/contract/petition/handler.js +1 -1
- package/build/cli/commands/contract/renew/handler.js +1 -1
- package/build/cli/commands/projection/call/handler.js +5 -2
- package/build/cli/commands/projection/kill/handler.js +3 -1
- package/build/cli/commands/projection/revive/handler.js +6 -3
- package/build/cli/commands/projection/status/handler.js +4 -2
- package/build/cli/commands/projection/tell/handler.js +3 -1
- package/build/cli/commands/projection/wait/handler.js +3 -1
- package/build/cli/commands/shared.js +5 -5
- package/build/cli/commands/system/completion/handler.js +1 -1
- package/build/cli/parse-flags.js +197 -0
- package/build/cli/parse-metadata.js +129 -0
- package/build/cli/parse-selectors.js +65 -0
- package/build/cli/parse.js +19 -373
- package/build/cli/skills-install.js +1 -1
- package/build/config/akuma-loader.js +5 -2
- package/build/core/amend.js +2 -5
- package/build/core/arc.js +2 -4
- package/build/core/call/call.js +7 -2
- package/build/core/call/context.js +27 -14
- package/build/core/call-persist.js +9 -2
- package/build/core/path-coordinate.js +27 -0
- package/build/core/petition-run.js +2 -5
- package/build/core/projection-coordinate.js +14 -2
- package/build/core/renew.js +2 -4
- package/build/core/status/board.js +6 -3
- package/build/core/task-contract.js +13 -0
- package/build/core/task-git-runtime.js +5 -2
- package/build/core/task-git-store.js +31 -21
- package/build/core/worktree-path.js +9 -2
- package/build/flow-error.js +2 -0
- package/build/generated/version.js +1 -1
- package/build/git/branches.js +33 -9
- package/build/git/core.js +9 -0
- package/package.json +1 -1
- package/skills/keiyaku/SKILL.md +30 -13
- package/skills/keiyaku-akuma/SKILL.md +30 -62
- package/skills/keiyaku-task/SKILL.md +51 -0
- package/skills/keiyaku-workflow/SKILL.md +71 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: keiyaku-workflow
|
|
3
|
+
description: Use when driving a Keiyaku contract — bind to start isolated work, arc/renew mid-flight, petition for review, claim or forfeit to finish.
|
|
4
|
+
allowed-tools: Bash(keiyaku *)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Keiyaku Workflow
|
|
8
|
+
|
|
9
|
+
How a contract lives. Running akuma is the `keiyaku-akuma` skill; task planning is `keiyaku-task`.
|
|
10
|
+
|
|
11
|
+
## Mind model
|
|
12
|
+
|
|
13
|
+
A contract = one branch + one worktree + a ledger (its record file in the repo). You work inside the worktree however you like; keiyaku only judges the result at petition. States:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
bound → active → petitioned → claimed | forfeited
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## The default flow
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
keiyaku bind --place fix-pump --objective "make the pump test pass" \
|
|
23
|
+
--scope "src/pump/**" --checks "pump tests green"
|
|
24
|
+
# or the same four fields as Markdown: keiyaku bind < contract.md
|
|
25
|
+
# (# <name> / ## Objective / ## Scope / ## Checks)
|
|
26
|
+
# or promote a ready task: keiyaku bind --task k-xxxx
|
|
27
|
+
|
|
28
|
+
cd .keiyaku/wt/fix-pump # worktree lives at .keiyaku/wt/<place>; commit normally
|
|
29
|
+
|
|
30
|
+
keiyaku petition <<'EOF'
|
|
31
|
+
## Oath
|
|
32
|
+
I made the pump test pass; ran the suite, all green.
|
|
33
|
+
EOF
|
|
34
|
+
# petition seals your work and runs the settlement pipeline itself —
|
|
35
|
+
# passes → claimed (merged to main); a gate fails → fix, petition again.
|
|
36
|
+
# The oath is required (OATH_MISSING otherwise) and checked for presence, not content.
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
That's the whole small case: bind → commit → petition.
|
|
40
|
+
|
|
41
|
+
## Mid-flight commands (use when needed, skip otherwise)
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
keiyaku arc < arc.md # optional iteration boundary: seals the current intent, opens
|
|
45
|
+
# the next. Markdown: # <title> / ## Objective / ## Brief.
|
|
46
|
+
# Only needed when one contract has multiple distinct pushes.
|
|
47
|
+
keiyaku renew # main moved under you → rebase onto it. Refuses on conflict
|
|
48
|
+
# instead of guessing; resolve, then renew again.
|
|
49
|
+
keiyaku amend < amendment.md # scope/checks changed → update the paper before the code
|
|
50
|
+
keiyaku log # this contract's history
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Gotchas:
|
|
54
|
+
- Base drift blocks petition — if main moved, `renew` first; petition tells you.
|
|
55
|
+
- After an explicit `arc` seals, new loose commits need another `arc` before `renew`/`petition` accept them.
|
|
56
|
+
- Not in the worktree? Address a contract with `--contract ADDR` (place, slug, or full id) or the `keiyaku @addr <verb>` prefix.
|
|
57
|
+
|
|
58
|
+
## Ending it
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
keiyaku forfeit --reason "superseded by fix-pump-v2"
|
|
62
|
+
# abandon: worktree destroyed, history kept. Manual only — nothing auto-forfeits.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
There is no `claim` command: claiming is the tail of a passing petition.
|
|
66
|
+
|
|
67
|
+
## Reading status
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
keiyaku status # every contract row: state, place, what to do next
|
|
71
|
+
```
|