@sockulags/agent-os 0.16.0 → 0.17.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/README.md +33 -41
- package/cli/doctor.mjs +45 -1
- package/cli/index.test.mjs +30 -0
- package/package.json +1 -1
- package/plugins/agent-os-core/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-os-core/.codex-plugin/plugin.json +1 -1
- package/plugins/agent-os-core/skills/capture-intent/SKILL.md +9 -6
- package/plugins/agent-os-core/skills/list-skills/SKILL.md +5 -3
- package/plugins/agent-os-core/skills/plan-work/SKILL.md +36 -18
- package/plugins/agent-os-core/skills/plan-work/references/spec-template.md +2 -1
- package/plugins/agent-os-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-os-dev/.codex-plugin/plugin.json +1 -1
- package/plugins/agent-os-dev/skills/batch-work/SKILL.md +1 -0
- package/plugins/agent-os-dev/skills/check-work/SKILL.md +2 -0
- package/plugins/agent-os-dev/skills/deliver-work/SKILL.md +67 -33
- package/plugins/agent-os-dev/skills/deliver-work/references/work-records.md +20 -0
- package/plugins/agent-os-dev/skills/design-work/SKILL.md +22 -7
- package/plugins/agent-os-dev/skills/dispatch-next/SKILL.md +6 -3
- package/plugins/agent-os-dev/skills/init-agent-os/SKILL.md +22 -12
- package/plugins/agent-os-dev/skills/init-agent-os/policy.md +37 -34
- package/plugins/agent-os-dev/skills/init-agent-os/references/guards.md +6 -5
- package/plugins/agent-os-dev/skills/init-agent-os/references/repository-init.md +15 -6
- package/plugins/agent-os-dev/skills/init-agent-os/references/workflow-template.md +80 -0
- package/plugins/agent-os-dev/skills/quality-ratchet/SKILL.md +4 -3
- package/plugins/agent-os-dev/skills/quality-ratchet/scripts/intent-files.mjs +1 -1
- package/plugins/agent-os-dev/skills/quality-ratchet/scripts/intent-files.test.mjs +6 -1
- package/plugins/agent-os-dev/skills/shape-work/SKILL.md +28 -17
- package/plugins/agent-os-dev/skills/shape-work/references/implementation-issues.md +34 -14
- package/policy.md +37 -34
|
@@ -6,18 +6,30 @@ can choose to run with `deliver-work` or `batch-work`.
|
|
|
6
6
|
|
|
7
7
|
## Where units live
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
Choose from the size of the work. Never create an intent, spec, or plan file only to give units a
|
|
10
|
+
place to live.
|
|
11
|
+
|
|
12
|
+
- **Issues only (the default).** Work without an intent: a feature, change, or fix that one or a few
|
|
13
|
+
pull requests deliver. Each unit is an issue in the project's tracker, and the issue is the whole
|
|
14
|
+
record. No `intent.md`, `spec.md`, or `plan.md` is written. Origin is the request or the issue the
|
|
15
|
+
work came from, dependencies are the tracker's issue links or a `Depends on` line, and an epic
|
|
16
|
+
contract goes in a parent issue.
|
|
17
|
+
- **Intent plan.** Work that already has an intent, which is an initiative. `intents/<id>/plan.md`
|
|
18
|
+
beside the spec lists every unit. With `source: files` it holds each unit's contract; with
|
|
19
|
+
`source: issues`, set when the project policy makes a tracker the source of truth for units, it
|
|
20
|
+
lists the tracker keys and the issues hold the contracts. The plan contains links, never copies.
|
|
21
|
+
|
|
22
|
+
The tracker is the one `.agent-os/workflow.md` or the project policy names, with the labels or board
|
|
23
|
+
the workflow file asks for, otherwise the repository host's issue tracker when
|
|
24
|
+
the session can write to it, such as GitHub Issues. Invoking `shape-work` authorizes creating new
|
|
25
|
+
issues there, and updating the issues it created for the same origin when shaping is retried. Any
|
|
26
|
+
other tracker write, such as editing, commenting on, relabeling, or closing other issues, still
|
|
27
|
+
needs the project policy's `## Tracker mandate`. When no tracker can be written, return each
|
|
28
|
+
issue's text in the reply for the person to create, and write no file.
|
|
17
29
|
|
|
18
30
|
When a plan-work run supplied a plain-language summary for an actual decision, it is the spec's
|
|
19
|
-
`## Summary
|
|
20
|
-
specification.
|
|
31
|
+
`## Summary`, or on the issues-only path the opening of the first issue. Do not turn summary
|
|
32
|
+
approval into a second gate or copy the plan into a competing specification.
|
|
21
33
|
|
|
22
34
|
## Completion invariant
|
|
23
35
|
|
|
@@ -79,14 +91,22 @@ Rules:
|
|
|
79
91
|
and it is delivered when that pull request merges.
|
|
80
92
|
- `built_on` names the spec revision. A plan built on an older spec revision is stale.
|
|
81
93
|
|
|
82
|
-
|
|
94
|
+
## Issues
|
|
95
|
+
|
|
96
|
+
A tracker issue carries the same fields as headings, on both paths. On the issues-only path it also
|
|
97
|
+
opens with the need in one or two sentences, because no intent holds it, and it is claimed by a
|
|
98
|
+
draft pull request that links it with the tracker's closing reference, such as `Closes #12` on
|
|
99
|
+
GitHub. It is delivered when that pull request merges. Its origin is not a stable file, so before
|
|
100
|
+
creating issues on this path, search the tracker's open issues for ones that already cover the same
|
|
101
|
+
outcome and reuse them instead of creating duplicates.
|
|
83
102
|
|
|
84
103
|
```text
|
|
85
104
|
## Implementation issue
|
|
86
|
-
Origin: <intent id and plan link>
|
|
105
|
+
Origin: <intent id and plan link, or the request or issue the work came from>
|
|
87
106
|
Unit key: <stable key>
|
|
88
107
|
Status: ready | blocked
|
|
89
108
|
|
|
109
|
+
## Why (issues-only path)
|
|
90
110
|
## Outcome
|
|
91
111
|
## Boundaries
|
|
92
112
|
## Change surface
|
|
@@ -106,8 +126,8 @@ vocabulary.
|
|
|
106
126
|
|
|
107
127
|
## Epic contract
|
|
108
128
|
|
|
109
|
-
When one shared end result needs an owner, add an epic contract to the plan
|
|
110
|
-
every technical layer into a child:
|
|
129
|
+
When one shared end result needs an owner, add an epic contract to the plan, or to a parent issue
|
|
130
|
+
on the issues-only path, instead of splitting every technical layer into a child:
|
|
111
131
|
|
|
112
132
|
```text
|
|
113
133
|
## Epic contract
|
package/policy.md
CHANGED
|
@@ -38,29 +38,31 @@ Rules:
|
|
|
38
38
|
- Never force the reader to cross-reference labels or numbering invented earlier in the text; say what you mean in place.
|
|
39
39
|
- Explanations belong in prose; tables only for short enumerable facts.
|
|
40
40
|
- Calibrate tone to the topic: playfulness is fine, neutral and factual the moment the subject is serious. When in doubt, it is serious.
|
|
41
|
-
- Orchestration is opt-in: manual agent-os skills
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
41
|
+
- Orchestration is opt-in: manual agent-os skills run only when the person invokes them by the name
|
|
42
|
+
the host exposes (`/plan-work`, `/agent-os-core:plan-work`, or `$plan-work`). Never self-invoke one.
|
|
43
|
+
When a request clearly matches a manual skill the person did not name, suggest it once in one
|
|
44
|
+
sentence with its invocation and why it fits, then do what was asked. Planning alone never starts
|
|
45
|
+
implementation.
|
|
46
|
+
- End every agent-os workflow with a route line: the kind of work, the steps done and left, and the
|
|
47
|
+
exact command that resumes it, such as `/deliver-work #42`. Take the route from the project's
|
|
48
|
+
`.agent-os/workflow.md` when the project policy points to one, else from a default path the policy
|
|
49
|
+
states, else from the default routes; with agent-os-core alone, name the next installed step. Then
|
|
50
|
+
follow the `Next step:` line in the person's `## My working preferences`: `ask`, the default, asks
|
|
51
|
+
once whether to start the next step; `continue` starts the next planning step, including the
|
|
52
|
+
issues `shape-work` creates, and asks before delivery; `recommend` only recommends. Never skip a
|
|
53
|
+
step, decide an open product question, merge, or deploy on that basis.
|
|
54
|
+
- Recommend one concrete next action with its reason and any blocker. Authority persists across unit
|
|
55
|
+
boundaries but never expands to unrelated backlog work; when nothing useful remains, say so.
|
|
56
|
+
- Sort discoveries with `scope-guard`: required work the mandate covers stays in scope, adjacent work
|
|
57
|
+
is a follow-up, unrelated work gets no proposal, and risk never grants permission by itself.
|
|
58
|
+
- Tracker writes need a tracker mandate in the request or the project policy's `## Tracker mandate`,
|
|
59
|
+
except the new issues an invoked `shape-work` creates. A mandate never covers acceptance, owners,
|
|
60
|
+
new deliveries, or closure. Without one, keep corrections local and report the unsynced delta.
|
|
61
|
+
- Only an initiative, work that several pull requests deliver and whose product decisions someone
|
|
62
|
+
other than the requester must agree to, or work the person or project policy asks files for, gets
|
|
63
|
+
`intents/<id>/intent.md` and `spec.md`. Other work lives in tracker issues and pull requests. Those
|
|
64
|
+
files change only through review, and one whose `built_on` revision is older than its source is
|
|
65
|
+
stale until it is reconsidered.
|
|
64
66
|
|
|
65
67
|
## Preferences (seed defaults; project policy overrides)
|
|
66
68
|
|
|
@@ -73,16 +75,17 @@ Rules:
|
|
|
73
75
|
## Development workflows
|
|
74
76
|
|
|
75
77
|
- Use the Git identity configured by the repository or current session. Never add AI attribution or `Co-Authored-By` trailers.
|
|
76
|
-
- The development skills
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
- The development skills are manual too. Authority may continue into the workflow a skill's exit
|
|
79
|
+
contract names. A request that covers a bounded set of shaped units, or finishing an intent, covers
|
|
80
|
+
delivering them one at a time; parallel batch execution needs explicit selection. `check-work` may
|
|
81
|
+
start from an implicit review request; its report mode is read-only and its fix mode needs explicit
|
|
82
|
+
authority.
|
|
83
|
+
- Default routes: a bug with a known fix, `shape-work` for one issue and then `deliver-work`; a small
|
|
84
|
+
change or a bug whose fix holds a choice, `plan-work`, `shape-work`, and `deliver-work`; a feature,
|
|
85
|
+
the same with `plan-work` only when something is unclear; an initiative, every step and the
|
|
86
|
+
project's finishing tasks. Each route gives the work an issue unless the request skips it, and
|
|
87
|
+
routes guide only agent-os workflows: a request made without one is done as asked.
|
|
88
|
+
- Delivery status is never written into `plan.md`: a draft pull request claims a unit, by its
|
|
89
|
+
`Intent-Unit: <intent-id>/<unit-key>` line or by linking its issue, and its merge delivers it.
|
|
87
90
|
- Agent OS hooks read `.agent-os/guards.json`. A hook block is a boundary, not an obstacle: change
|
|
88
91
|
course or ask, and never work around it by another tool or path.
|