@dna113p/machines 0.3.4 → 0.3.5
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/README.md +7 -2
- package/claude/statusline.mjs +2 -0
- package/dist/mcp/server.js +2 -2
- package/dist/src/cli.js +58 -4
- package/dist/src/codex.d.ts +2 -0
- package/dist/src/codex.js +2 -0
- package/dist/src/host.js +6 -2
- package/dist/src/launcher.d.ts +3 -0
- package/dist/src/launcher.js +3 -0
- package/dist/src/run-graph.d.ts +39 -0
- package/dist/src/run-graph.js +91 -0
- package/dist/src/run-status.d.ts +16 -2
- package/dist/src/run-status.js +56 -3
- package/dist/src/run-ui-page.d.ts +6 -0
- package/dist/src/run-ui-page.js +690 -0
- package/dist/src/run-ui.d.ts +62 -0
- package/dist/src/run-ui.js +258 -0
- package/dist/src/run-viewer.d.ts +2 -0
- package/dist/src/run-viewer.js +1 -0
- package/docs/authoring.md +13 -0
- package/docs/integrations.md +56 -4
- package/package.json +88 -21
- package/skills/machine-builder/SKILL.md +31 -0
- package/skills/machine-delegation/SKILL.md +23 -0
- package/skills/machine-project-setup/SKILL.md +23 -5
- package/skills/machine-project-setup/references/project-workflows.md +4 -0
|
@@ -62,6 +62,16 @@ Workers do not inherit this conversation. Supply the context needed to act:
|
|
|
62
62
|
- Applicable constraints, permitted effects, and what should produce a blocked outcome.
|
|
63
63
|
- A result location readable by the coordinator, and what evidence it must contain.
|
|
64
64
|
|
|
65
|
+
State these five fields for each assignment:
|
|
66
|
+
|
|
67
|
+
1. Its goal.
|
|
68
|
+
2. The paths it may change.
|
|
69
|
+
3. Its acceptance criteria.
|
|
70
|
+
4. How it will be verified.
|
|
71
|
+
5. What is forbidden.
|
|
72
|
+
|
|
73
|
+
A field that cannot be filled means the unit is not scoped yet.
|
|
74
|
+
|
|
65
75
|
Follow the selected Machine's input contract. MCP/Pi accept JSON-serializable
|
|
66
76
|
input; CLI positional input is text, while `--input-file <file|->` accepts JSON.
|
|
67
77
|
Keep task details in input rather than hardcoding each assignment into a new
|
|
@@ -103,6 +113,15 @@ polling continuously. Interpret the current snapshot:
|
|
|
103
113
|
Preserve existing user authorization when answering Human requests, and surface a
|
|
104
114
|
new decision when the request requires one. A desire to finish is not an answer.
|
|
105
115
|
|
|
116
|
+
A `blocked` or parked run is a completed run to read, not a failure to retry blindly.
|
|
117
|
+
Design stuck unattended runs to end with work kept and a written note of what a
|
|
118
|
+
person must decide, instead of waiting in a Human state; every stop keeps both.
|
|
119
|
+
Read the note, answer it or take it to the user, then start a fresh run from the
|
|
120
|
+
kept work and note when resolved, or let a person continue from them.
|
|
121
|
+
|
|
122
|
+
Tell an editing Agent that checks it cannot run in its environment are the
|
|
123
|
+
workflow's to run, so a sandboxed Agent returns its work instead of `blocked`.
|
|
124
|
+
|
|
106
125
|
To follow a run this session did not start, such as a ticket a daemon runs, use
|
|
107
126
|
`machine watch <ticket-or-run-id>` where run status is published (`machine runs`
|
|
108
127
|
lists what can be watched; `--all` adds runs that already ended). Watching only
|
|
@@ -126,3 +145,7 @@ verified. Read the report and inspect relevant changes or checks, then integrate
|
|
|
126
145
|
the result into the user's task. If evidence is missing, treat that as incomplete
|
|
127
146
|
work even if the run says `completed`. Report the useful result, any blocker, and
|
|
128
147
|
artifact paths; a run ID alone is not the delegated deliverable.
|
|
148
|
+
|
|
149
|
+
Read the reviewer's structured report: each acceptance criterion met or not,
|
|
150
|
+
findings tagged by severity. Let an Operation, not the reviewer's verdict word,
|
|
151
|
+
decide what happens next.
|
|
@@ -29,6 +29,19 @@ types, quality gates, recurring failure modes, and decisions needing a Human.
|
|
|
29
29
|
Include domain-specific work, not just generic coding stages. Use only relevant,
|
|
30
30
|
available project context; distinguish observed needs from speculative ones.
|
|
31
31
|
|
|
32
|
+
Inventory the project's deterministic checks before designing any workflow, by
|
|
33
|
+
class: lint, types, tests, build, and a live check that drives the real artifact
|
|
34
|
+
(a packaging smoke, an install test, a CLI or service run against a scratch
|
|
35
|
+
directory). Take them from the project's own scripts and CI, not from a fixed
|
|
36
|
+
list, and run each once to learn its duration and that it leaves the checkout
|
|
37
|
+
clean. Record the inventory in the map, naming the classes the project has no
|
|
38
|
+
command for; a missing class is a finding for the owner, not something to
|
|
39
|
+
invent. Put the resulting gate list in one project-owned place that every
|
|
40
|
+
route reads (a configuration file the launchers load, not a copy in each
|
|
41
|
+
launcher), so an Agent is held to the same gates a person runs. Where the
|
|
42
|
+
project's checks stop at the first failure, prefer running every gate and
|
|
43
|
+
reporting all failures at once: one repair round then sees them all.
|
|
44
|
+
|
|
32
45
|
Inspect the existing orchestrator instructions and any `.machines/README.md`.
|
|
33
46
|
Run `machine list` and `machine agents` in the actual work directories, or use
|
|
34
47
|
`machine_list` / `machine_agents` with the correct workspace. Read candidate
|
|
@@ -95,11 +108,16 @@ instead of presenting same-model review as independent.
|
|
|
95
108
|
|
|
96
109
|
## Build the smallest useful set
|
|
97
110
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
111
|
+
Machine Shop is an optional starter library of common software-task Machines:
|
|
112
|
+
implementation, bug fixing, review, investigation, and model-free verification
|
|
113
|
+
among them. Nothing here requires it, but it is a good set of defaults to try
|
|
114
|
+
before rebuilding a common software process. It is a separate repository,
|
|
115
|
+
`https://github.com/dna113p/machine-shop`, and is not installed with the runtime;
|
|
116
|
+
when no checkout is present, tell the user about it or clone it to try it out.
|
|
117
|
+
Read its `docs/catalog.md` and the candidate `defaults/` sources, then run one
|
|
118
|
+
from source or copy selected entries with its project-local installer; do not
|
|
119
|
+
install the entire catalog by default. Its check commands, Agent bindings, and
|
|
120
|
+
task inputs remain project-specific.
|
|
103
121
|
|
|
104
122
|
Map the major work to existing or missing workflows. Favor frequent delegation,
|
|
105
123
|
important quality gates, and costly recurring mistakes. Reuse good definitions;
|
|
@@ -19,6 +19,10 @@ For each major task type, record:
|
|
|
19
19
|
- Expected final state, checks, result retrieval, and verification command.
|
|
20
20
|
- Allowed effects, Human decisions, retry limits, and untested prerequisites.
|
|
21
21
|
|
|
22
|
+
Record the gate inventory once, by class (lint, types, tests, build, live
|
|
23
|
+
check): the command for each, where the one list that every route reads lives,
|
|
24
|
+
and the classes the project has no command for.
|
|
25
|
+
|
|
22
26
|
Mark deliberately direct, deferred, or blocked work with its reason. An existing
|
|
23
27
|
setup may need no new Machine. Do not generate placeholders to fill categories.
|
|
24
28
|
Include copyable invocations only for routes that exist. CLI positional input is
|