@dna113p/machines 0.3.4 → 0.3.6

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.
@@ -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
- When the Machine Shop starter library is available, inspect its `docs/catalog.md`
99
- and candidate `defaults/` sources before rebuilding a common software process.
100
- Select or adapt relevant entries with the project-local installer; do not install
101
- the entire catalog by default. Its check commands, Agent bindings, and task inputs
102
- remain project-specific. Do not assume that library is globally installed.
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