@sockulags/agent-os 0.16.0 → 0.17.1
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.mjs +13 -2
- package/cli/index.test.mjs +40 -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
package/README.md
CHANGED
|
@@ -12,9 +12,11 @@ ceremony proportional to the work. It ships as two packages from one source:
|
|
|
12
12
|
|
|
13
13
|
## Skills
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
Most work lives in tracker issues: `shape-work` writes each delivery unit as an issue that holds its
|
|
16
|
+
whole contract, even for a bug with a known fix, so every change can be traced. Only an initiative, work that several pull
|
|
17
|
+
requests deliver and whose product decisions someone else must agree to, keeps versioned files:
|
|
18
|
+
`intents/<id>/intent.md` for what is needed and why, `spec.md` for behavior, boundaries, and ground
|
|
19
|
+
truth, and `plan.md` for delivery units. See the
|
|
18
20
|
[intent file reference](https://sockulags.github.io/agent-os/reference/intents).
|
|
19
21
|
|
|
20
22
|
### agent-os-core
|
|
@@ -34,9 +36,9 @@ small fix needs none of them. See the
|
|
|
34
36
|
|
|
35
37
|
| Skill | Bucket | Invocation | Purpose |
|
|
36
38
|
|---|---|---|---|
|
|
37
|
-
| `design-work` | workflow | manual | Sketch new and changed screens in the project's chosen medium
|
|
38
|
-
| `shape-work` | workflow | manual | Shape
|
|
39
|
-
| `deliver-work` | workflow | manual | Deliver one unit
|
|
39
|
+
| `design-work` | workflow | manual | Sketch new and changed screens in the project's chosen medium, when the developer wants them |
|
|
40
|
+
| `shape-work` | workflow | manual | Shape work into delivery units as tracker issues, or plan.md for an initiative |
|
|
41
|
+
| `deliver-work` | workflow | manual | Deliver one unit, or a whole intent unit by unit, against its contract |
|
|
40
42
|
| `batch-work` | workflow | manual | Run isolated ready units and verify the integrated result |
|
|
41
43
|
| `dispatch-next` | workflow | manual | Pick or dispatch one action according to the request |
|
|
42
44
|
| `simplify` | workflow | manual | Review, audit, or remove unnecessary code and solution layers |
|
|
@@ -91,48 +93,38 @@ Direct Claude skills appear as `/<skill>` and direct Codex skills as `$<skill>`.
|
|
|
91
93
|
|
|
92
94
|
### Hooks
|
|
93
95
|
|
|
94
|
-
With agent-os-dev,
|
|
95
|
-
|
|
96
|
-
`SessionStart` and `PreToolUse` guard hooks. The user and project paths are
|
|
97
|
-
`~/.claude/settings.json` or `<project>/.claude/settings.json` for Claude Code, and
|
|
96
|
+
With agent-os-dev, the installer adds three hooks to the host configuration and leaves your other
|
|
97
|
+
hooks alone: `~/.claude/settings.json` or `<project>/.claude/settings.json` for Claude Code, and
|
|
98
98
|
`~/.codex/hooks.json` or `<project>/.codex/hooks.json` for Codex. Plugin installs load the same hooks
|
|
99
|
-
from `plugins/agent-os-dev/hooks/hooks.json
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
closes the baseline only after a passing check. Every block except corrupt state is bounded: after
|
|
120
|
-
three re-entries on the unchanged candidate the hook releases the stop to the user and keeps delivery
|
|
121
|
-
blocked. Without a
|
|
122
|
-
baseline for the current host session it is a no-op. Resolve
|
|
123
|
-
`scripts/quality-delta.mjs` relative to the installed `quality-ratchet/SKILL.md` and run its `clear`
|
|
124
|
-
command from that same host session to abandon an active attempt. Standalone/manual use without a
|
|
125
|
-
host session ID uses a deterministic fallback state. `begin`, `check`, `finish`, and `clear` read the host ID
|
|
126
|
-
from `CODEX_THREAD_ID` or `CLAUDE_CODE_SESSION_ID`, with Codex taking precedence when both exist;
|
|
127
|
-
native Stop resolves the same identity from its `session_id` payload, using non-empty `turn_id` to
|
|
128
|
-
identify Codex. There is no uninstall command yet.
|
|
99
|
+
from `plugins/agent-os-dev/hooks/hooks.json` and need Node on PATH.
|
|
100
|
+
|
|
101
|
+
The guard hooks read `.agent-os/guards.json` and do nothing where it is absent. At session start
|
|
102
|
+
they name the intent behind the current branch and any stale spec or plan. Before an edit they
|
|
103
|
+
block changes to protected paths, to accepted intents and specs during delivery, and to a test
|
|
104
|
+
locked with `guards.mjs lock-test`, and they block a `git commit` that adds a likely secret. They
|
|
105
|
+
never run a command the repository declares. See the
|
|
106
|
+
[guard hook reference](https://sockulags.github.io/agent-os/reference/guards).
|
|
107
|
+
|
|
108
|
+
The quality-ratchet `Stop` hook keeps a delivery from ending with a missing, stale, or failed check.
|
|
109
|
+
`deliver-work` records the state of the worktree before its first change, and the ratchet compares
|
|
110
|
+
the finished change with it: files, lines, dependencies, and complexity when an analyzer is
|
|
111
|
+
installed. The numbers are evidence for the review, not a score. Declare the delivery ground truth
|
|
112
|
+
as a `required` check in `.agent-os/quality.json`; it runs only after the developer trusts the
|
|
113
|
+
repository's controls. After three blocks on an unchanged candidate the hook lets the turn end and
|
|
114
|
+
keeps delivery blocked. How to inspect or clear a blocked check is in
|
|
115
|
+
[Troubleshooting](https://sockulags.github.io/agent-os/guide/troubleshooting#the-quality-ratchet-stop-hook-blocks),
|
|
116
|
+
and the full lifecycle is in the
|
|
117
|
+
[quality-ratchet page](https://sockulags.github.io/agent-os/skills/quality-ratchet). There is no
|
|
118
|
+
uninstall command yet.
|
|
129
119
|
|
|
130
120
|
### Doctor and lint-intents
|
|
131
121
|
|
|
132
122
|
`npx @sockulags/agent-os@latest doctor` is a read-only report of every installed version and package,
|
|
133
123
|
retired or missing skills, duplicate direct and plugin installs, an old single `agent-os` plugin that
|
|
134
124
|
must be replaced by `agent-os-core` and `agent-os-dev`, the global policy blocks (each carries an
|
|
135
|
-
`<!-- agent-os version X -->` line), and the hooks, with the command that fixes each difference.
|
|
125
|
+
`<!-- agent-os version X -->` line), and the hooks, with the command that fixes each difference. Run
|
|
126
|
+
inside a repository that `init-agent-os` set up, it also warns when `.agent-os/workflow.md` is
|
|
127
|
+
missing, has no routes, or is not pointed to by the project policy.
|
|
136
128
|
Team update, migration, governance, and removal steps are in the
|
|
137
129
|
[team setup guide](https://sockulags.github.io/agent-os/guide/team-setup).
|
|
138
130
|
|
package/cli/doctor.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Read-only installation report: which Agent OS versions this machine and project run, whether
|
|
2
|
-
// they match this CLI,
|
|
2
|
+
// they match this CLI, whether the managed policy blocks and hooks are current, and whether the
|
|
3
|
+
// current repository's workflow file is in place. It never
|
|
3
4
|
// writes, and a broken or unexpected file becomes a finding instead of a crash.
|
|
4
5
|
|
|
5
6
|
import { spawnSync } from 'node:child_process'
|
|
@@ -225,6 +226,48 @@ function checkPolicy(homeDir, { version, packageName, policy, installed, fsImpl,
|
|
|
225
226
|
}
|
|
226
227
|
}
|
|
227
228
|
|
|
229
|
+
const INIT_COMMAND = 'run init-agent-os in this repository (/init-agent-os, /agent-os-dev:init-agent-os, or $init-agent-os)'
|
|
230
|
+
|
|
231
|
+
function repositoryRoot(cwd, fsImpl) {
|
|
232
|
+
let dir = path.resolve(cwd)
|
|
233
|
+
for (;;) {
|
|
234
|
+
if (fsImpl.existsSync(path.join(dir, '.git'))) return dir
|
|
235
|
+
const parent = path.dirname(dir)
|
|
236
|
+
if (parent === dir) return null
|
|
237
|
+
dir = parent
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// The repository's own setup: a project that init-agent-os set up has .agent-os/, and its work routes,
|
|
242
|
+
// tracker, and finishing tasks live in .agent-os/workflow.md, which the project policy points to.
|
|
243
|
+
// Missing repository setup is a warning, never drift, so an onboarding script's exit code stays about installs.
|
|
244
|
+
function checkRepository(cwd, { fsImpl, report }) {
|
|
245
|
+
const root = repositoryRoot(cwd, fsImpl)
|
|
246
|
+
if (!root || !fsImpl.existsSync(path.join(root, '.agent-os'))) return
|
|
247
|
+
const label = `repository ${root}`
|
|
248
|
+
const workflow = readText(path.join(root, '.agent-os', 'workflow.md'), fsImpl)
|
|
249
|
+
if (workflow.state === 'absent') {
|
|
250
|
+
report('warn', label, 'no .agent-os/workflow.md, so the default work routes apply and deliver-work only recommends an issue ' +
|
|
251
|
+
`instead of requiring one. To add the routes, tracker, and finishing tasks: ${INIT_COMMAND} and choose routes and finishing tasks.`)
|
|
252
|
+
return
|
|
253
|
+
}
|
|
254
|
+
if (workflow.state === 'invalid') {
|
|
255
|
+
report('warn', label, `cannot read .agent-os/workflow.md: ${workflow.error}`)
|
|
256
|
+
return
|
|
257
|
+
}
|
|
258
|
+
if (!/^## Routes\b/m.test(workflow.text)) {
|
|
259
|
+
report('warn', label, `.agent-os/workflow.md has no "## Routes" section, so the default routes apply. To fix it: ${INIT_COMMAND}.`)
|
|
260
|
+
}
|
|
261
|
+
const pointed = ['CLAUDE.md', 'AGENTS.md', 'policy.md'].some((name) =>
|
|
262
|
+
readText(path.join(root, name), fsImpl).text.includes('.agent-os/workflow.md'))
|
|
263
|
+
if (!pointed) {
|
|
264
|
+
report('warn', label, 'the project policy does not point to .agent-os/workflow.md, so agents may not read it. ' +
|
|
265
|
+
`Add the line "Work routes, tracker, and finishing tasks: .agent-os/workflow.md." to the policy, or ${INIT_COMMAND}.`)
|
|
266
|
+
} else if (/^## Routes\b/m.test(workflow.text)) {
|
|
267
|
+
report('ok', label, '.agent-os/workflow.md is present and the project policy points to it')
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
228
271
|
export function latestPublishedVersion(packageName, { spawn = spawnSync } = {}) {
|
|
229
272
|
if (!/^@?[a-z0-9][a-z0-9._/-]*$/.test(packageName)) return null
|
|
230
273
|
// npm is a .cmd shim on Windows, which needs a shell; one fixed command string avoids argument joining.
|
|
@@ -295,6 +338,7 @@ export function collectDoctorReport({
|
|
|
295
338
|
}
|
|
296
339
|
|
|
297
340
|
checkPolicy(homeDir, { version, packageName, policy, installed, fsImpl, report })
|
|
341
|
+
checkRepository(cwd, { fsImpl, report })
|
|
298
342
|
return { entries, drift: entries.some((entry) => entry.level === 'drift') }
|
|
299
343
|
}
|
|
300
344
|
|
package/cli/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import fs from 'node:fs'
|
|
|
6
6
|
import os from 'node:os'
|
|
7
7
|
import path from 'node:path'
|
|
8
8
|
import { createInterface } from 'node:readline'
|
|
9
|
-
import { fileURLToPath
|
|
9
|
+
import { fileURLToPath } from 'node:url'
|
|
10
10
|
import {
|
|
11
11
|
HOOK_TIMEOUT_SECONDS,
|
|
12
12
|
QUALITY_HOOK_MARKER
|
|
@@ -1189,7 +1189,18 @@ export async function run(argv = process.argv.slice(2), dependencies = {}) {
|
|
|
1189
1189
|
return 0
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
|
-
|
|
1192
|
+
// npm and npx start the CLI through a bin symlink. Node resolves symlinks for import.meta.url but
|
|
1193
|
+
// leaves process.argv[1] as the symlink path, so compare real paths.
|
|
1194
|
+
function isMainModule() {
|
|
1195
|
+
if (!process.argv[1]) return false
|
|
1196
|
+
try {
|
|
1197
|
+
return fs.realpathSync(process.argv[1]) === fs.realpathSync(fileURLToPath(import.meta.url))
|
|
1198
|
+
} catch {
|
|
1199
|
+
return false
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
if (isMainModule()) {
|
|
1193
1204
|
run().then((code) => {
|
|
1194
1205
|
process.exitCode = code
|
|
1195
1206
|
}).catch((error) => {
|
package/cli/index.test.mjs
CHANGED
|
@@ -111,6 +111,16 @@ test('prints scoped npm commands and explains the direct default', async () => {
|
|
|
111
111
|
assert.match(help, /--method <name>\s+direct \(default\) or plugin/)
|
|
112
112
|
})
|
|
113
113
|
|
|
114
|
+
test('runs when invoked through a bin symlink as npm and npx do', { skip: process.platform === 'win32' }, () => {
|
|
115
|
+
const binDir = path.join(temporaryRoot(), 'node_modules', '.bin')
|
|
116
|
+
fs.mkdirSync(binDir, { recursive: true })
|
|
117
|
+
const bin = path.join(binDir, 'agent-os')
|
|
118
|
+
fs.symlinkSync(path.join(packageRootForTest(), 'cli', 'index.mjs'), bin)
|
|
119
|
+
const result = spawnSync(process.execPath, [bin, '--version'], { encoding: 'utf8' })
|
|
120
|
+
assert.equal(result.status, 0, result.stderr)
|
|
121
|
+
assert.equal(result.stdout.trim(), VERSION)
|
|
122
|
+
})
|
|
123
|
+
|
|
114
124
|
test('rejects conflicting policy flags and direct local scope', async () => {
|
|
115
125
|
assert.throws(() => parseArgs(['install', '--policy', '--no-policy']), /one of --policy and --no-policy/)
|
|
116
126
|
await assert.rejects(
|
|
@@ -767,6 +777,36 @@ test('doctor finds no installation and suggests install', async () => {
|
|
|
767
777
|
assert.match(text, /no Agent OS installation found/)
|
|
768
778
|
})
|
|
769
779
|
|
|
780
|
+
test('doctor reports the repository workflow file without counting it as drift', async () => {
|
|
781
|
+
const root = temporaryRoot()
|
|
782
|
+
const homeDir = path.join(root, 'home')
|
|
783
|
+
const repo = path.join(root, 'repo')
|
|
784
|
+
const cwd = path.join(repo, 'src')
|
|
785
|
+
fs.mkdirSync(cwd, { recursive: true })
|
|
786
|
+
fs.mkdirSync(path.join(repo, '.git'))
|
|
787
|
+
|
|
788
|
+
const outside = await runDoctor(homeDir, cwd)
|
|
789
|
+
assert.doesNotMatch(outside.text, /repository /)
|
|
790
|
+
|
|
791
|
+
fs.mkdirSync(path.join(repo, '.agent-os'))
|
|
792
|
+
const missing = await runDoctor(homeDir, cwd)
|
|
793
|
+
assert.equal(missing.code, 0)
|
|
794
|
+
assert.match(missing.text, /WARN {2}repository .*no \.agent-os\/workflow\.md.*init-agent-os/)
|
|
795
|
+
|
|
796
|
+
fs.writeFileSync(path.join(repo, '.agent-os', 'workflow.md'), '# How we work\n\n## Routes\n')
|
|
797
|
+
const unpointed = await runDoctor(homeDir, cwd)
|
|
798
|
+
assert.match(unpointed.text, /WARN {2}repository .*does not point to \.agent-os\/workflow\.md/)
|
|
799
|
+
|
|
800
|
+
fs.writeFileSync(path.join(repo, 'CLAUDE.md'), 'Work routes, tracker, and finishing tasks: .agent-os/workflow.md.\n')
|
|
801
|
+
const ready = await runDoctor(homeDir, cwd)
|
|
802
|
+
assert.match(ready.text, /OK {4}repository .*workflow\.md is present and the project policy points to it/)
|
|
803
|
+
|
|
804
|
+
fs.writeFileSync(path.join(repo, '.agent-os', 'workflow.md'), '# How we work\n')
|
|
805
|
+
const noRoutes = await runDoctor(homeDir, cwd)
|
|
806
|
+
assert.match(noRoutes.text, /WARN {2}repository .*no "## Routes" section/)
|
|
807
|
+
assert.doesNotMatch(noRoutes.text, /OK {4}repository/)
|
|
808
|
+
})
|
|
809
|
+
|
|
770
810
|
function snapshotTree(root) {
|
|
771
811
|
const entries = []
|
|
772
812
|
const visit = (dir) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sockulags/agent-os",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "A lightweight agent operating system for Claude Code and Codex: agent-os-core for intent, planning, and evidence, and agent-os-dev for delivery, review, and guard hooks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-os-core",
|
|
3
3
|
"description": "Agent OS core: capture intent, plan decisions, explain plainly, keep scope, and prove claims. Useful for any agent work, not only code.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.17.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Lucas Skog"
|
|
7
7
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-os-core",
|
|
3
3
|
"description": "Agent OS core: capture intent, plan decisions, explain plainly, keep scope, and prove claims. Useful for any agent work, not only code.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.17.1",
|
|
5
5
|
"homepage": "https://sockulags.github.io/agent-os/",
|
|
6
6
|
"repository": "https://github.com/sockulags/agent-os",
|
|
7
7
|
"keywords": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: capture-intent
|
|
3
|
-
description: Captures what is needed and why
|
|
3
|
+
description: Captures what is needed and why, questioning out the need behind a stated wish one load-bearing question at a time, and writes a versioned intent file when the work is an initiative. User-invoked when a new need, feature request, or tracker item needs its goal settled, or as the questioning stage of plan-work. Not for requests whose goal is already articulated, small fixes, or facts the repository answers.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -29,9 +29,11 @@ Questioning ends when the person says it is done or when further answers stop ch
|
|
|
29
29
|
|
|
30
30
|
## Write the intent
|
|
31
31
|
|
|
32
|
-
Write a file
|
|
33
|
-
|
|
34
|
-
file: report the settled
|
|
32
|
+
Write a file only for an initiative: work that several pull requests will deliver and whose product
|
|
33
|
+
decisions someone other than the requester, such as a product owner, must agree to. Also write one
|
|
34
|
+
when the person or the project policy asks for it. Everything else needs no file: report the settled
|
|
35
|
+
understanding directly, written so it can open a tracker issue, and recommend `shape-work` when the
|
|
36
|
+
work should become issues. A feature that one or a few pull requests deliver is not an initiative.
|
|
35
37
|
|
|
36
38
|
1. Choose the location. Use `intents/` at the repository root unless the project policy names
|
|
37
39
|
another intent location, such as a separate product repository.
|
|
@@ -60,6 +62,7 @@ to `status: superseded` in the same review.
|
|
|
60
62
|
## Exit
|
|
61
63
|
|
|
62
64
|
Report the intent path and id, the choices made with their reasons, the ruled-out directions, and
|
|
63
|
-
the questions that remain open.
|
|
64
|
-
|
|
65
|
+
the questions that remain open. Name the kind of work, which decides its route, and end with the
|
|
66
|
+
route line. Recommend one next action: usually `plan-work` when behavior, decisions, or ground truth
|
|
67
|
+
still need settling, otherwise the next step of the route. Under plan-work, this stage informs the spec and
|
|
65
68
|
adds no separate approval gate.
|
|
@@ -38,9 +38,11 @@ differently per host.
|
|
|
38
38
|
|
|
39
39
|
Close with the entry points for a person who has not named a skill: a new need starts at
|
|
40
40
|
`capture-intent`, behavior and decisions at `plan-work`, screens and their sketches at
|
|
41
|
-
`design-work`, delivery structure at `shape-work`,
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
`design-work`, delivery structure at `shape-work`, a decision-complete unit at `deliver-work`, a bug with
|
|
42
|
+
a known fix at `shape-work` for one issue, and a diff to review only a request in the person's own
|
|
43
|
+
words; name the last five only when agent-os-dev is installed. Say plainly that automatic skills need no entry point
|
|
44
|
+
for an implicit trigger; mention an automatic workflow's explicit modes only when useful. End with
|
|
45
|
+
the page that matches situations to skills, https://sockulags.github.io/agent-os/guide/where-to-start.
|
|
44
46
|
|
|
45
47
|
## Boundaries
|
|
46
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: plan-work
|
|
3
|
-
description: Plans a coherent mission from outcome through coverage, decisions, feasibility, and verification with adaptive depth, and writes the result as a versioned spec beside
|
|
3
|
+
description: Plans a coherent mission from outcome through coverage, decisions, feasibility, and verification with adaptive depth, and writes the result as a versioned spec beside an initiative's intent, or as a contract a tracker issue can carry. User-invoked when the developer wants a plan or a spec, or the work needs one. Not required for an already clear implementation request or a substitute for shape-work delivery structure.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -16,6 +16,9 @@ request. Shape-work may also start from an existing specification.
|
|
|
16
16
|
Do not ask the developer to select a mode. Match the depth to scope and uncertainty separately:
|
|
17
17
|
|
|
18
18
|
- A small, clear fix needs its outcome, boundaries, and verification, and no spec file.
|
|
19
|
+
- Work that is not an initiative needs no spec file, whatever its size. Its settled contract
|
|
20
|
+
goes into the tracker issues that `shape-work` writes, or straight into delivery when one pull
|
|
21
|
+
request is enough.
|
|
19
22
|
- A large but known change needs repository inspection and a coverage check across the relevant
|
|
20
23
|
flows, states, errors, integrations, and the screens each role sees.
|
|
21
24
|
- A bounded open choice needs discoverable facts first, then only focused questions for choices
|
|
@@ -24,7 +27,8 @@ Do not ask the developer to select a mode. Match the depth to scope and uncertai
|
|
|
24
27
|
separate evidence work, or parallel treatment.
|
|
25
28
|
|
|
26
29
|
Use [capture-intent](../capture-intent/SKILL.md) when the outcome is still moving or cannot be
|
|
27
|
-
stated, or when no intent
|
|
30
|
+
stated, or when an initiative has no intent yet. An initiative is work that several pull requests
|
|
31
|
+
deliver and whose product decisions someone other than the requester must agree to. Use [explain-work](../explain-work/SKILL.md)
|
|
28
32
|
for the plain-language summary at the top of the spec and whenever an actual decision needs one. A
|
|
29
33
|
summary is not a general approval gate: existing authority continues across workflow boundaries,
|
|
30
34
|
and planning alone never starts implementation.
|
|
@@ -53,22 +57,32 @@ does not authorize product implementation, and an issue becoming ready does not
|
|
|
53
57
|
|
|
54
58
|
## Settle the interface
|
|
55
59
|
|
|
56
|
-
Design is part of the plan, not something delivery invents. When the plan writes a
|
|
57
|
-
new or changed screen or state in its `## Interface` section, per role that sees
|
|
58
|
-
`None` when nothing a person sees or does changes. A small, clear fix needs no spec;
|
|
59
|
-
its interface decision. A plan whose interface changes is ready
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
Design is part of the plan, not something delivery invents by accident. When the plan writes a
|
|
61
|
+
spec, list every new or changed screen or state in its `## Interface` section, per role that sees
|
|
62
|
+
it, or write `None` when nothing a person sees or does changes. A small, clear fix needs no spec;
|
|
63
|
+
its request is its interface decision. A plan whose interface changes is ready when each listed
|
|
64
|
+
surface is decided, left to delivery by the developer's choice, or explicitly deferred with an
|
|
65
|
+
owner. An undecided surface is an open question, not a detail for delivery to fill in.
|
|
66
|
+
|
|
67
|
+
Sketching is the developer's choice and never a required step. They may sketch before any spec
|
|
68
|
+
exists to find out what they are trying to solve, before delivery to settle a screen, after delivery
|
|
69
|
+
to reconsider one that was left to it, or not at all. When agent-os-dev is installed and a surface
|
|
70
|
+
is still open, recommend `design-work` in one line with the reason and ask once whether to sketch
|
|
71
|
+
now, after the screen is built, or not at all; a `When` entry in the policy's `## Design` section
|
|
72
|
+
answers this without asking. On "now", continue into `design-work` and return here when it is done.
|
|
73
|
+
Otherwise ask the developer for each open decision and record the answer they state, or record the
|
|
74
|
+
surface as `Left to delivery:` with what delivery may decide when they say so; never guess a
|
|
75
|
+
layout. Start from sketches the developer already made. A developer who explicitly hands those
|
|
76
|
+
decisions to you for this run is the exception: decide, record each as `Decided: (delegated)` with
|
|
77
|
+
its reason, and list them in the review for the developer to overturn.
|
|
68
78
|
|
|
69
79
|
## Write the spec
|
|
70
80
|
|
|
71
|
-
|
|
81
|
+
Write a spec file only when the work has an intent, or when the person or the project policy asks
|
|
82
|
+
for one. Otherwise report the settled contract, with its behavior, interface decisions, boundaries,
|
|
83
|
+
and ground truth, in the form a tracker issue can carry, and recommend `shape-work` or
|
|
84
|
+
`deliver-work` as the next action. When the work has an intent, write `spec.md` in the same
|
|
85
|
+
`intents/<id>/` folder from
|
|
72
86
|
[references/spec-template.md](references/spec-template.md). Its `built_on` names the intent revision
|
|
73
87
|
it answers, such as `intent@2`. Acceptance examples originate in the spec. A delivery unit written
|
|
74
88
|
by `shape-work` states the ones it is accountable for and cites the spec section; the spec stays the
|
|
@@ -128,6 +142,10 @@ and report the unsynced updates. If the information must survive the session, ad
|
|
|
128
142
|
`Pending tracker updates` section to the spec only when needed; store a delta, not a copy of this
|
|
129
143
|
plan.
|
|
130
144
|
|
|
131
|
-
Recommend one concrete next action at exit, with the reason it wins and any blocker
|
|
132
|
-
|
|
133
|
-
|
|
145
|
+
Recommend one concrete next action at exit, with the reason it wins and any blocker, and end with
|
|
146
|
+
the route line. When the route's next step is `shape-work` and agent-os-dev is installed, follow the
|
|
147
|
+
person's `Next step:` preference, which by default asks once whether to create the issues now; on
|
|
148
|
+
yes, or with `continue`, go on into `shape-work` with the settled contract, so the decisions reach
|
|
149
|
+
the tracker before the session ends. Continue into an authorized next workflow
|
|
150
|
+
without adding an approval ceremony; stop when the plan is ready and the request does not include
|
|
151
|
+
implementation.
|
|
@@ -37,7 +37,8 @@ status: accepted
|
|
|
37
37
|
## Interface
|
|
38
38
|
|
|
39
39
|
<One bullet for every new or changed screen or state, per role that sees it, in one of these forms:
|
|
40
|
-
- <role>, <screen or state>. Decided: <the decision and its reason>. Rejected: <alternatives>. Sketch: <location>.
|
|
40
|
+
- <role>, <screen or state>. Decided: <the decision and its reason>. Rejected: <alternatives>. Sketch: <location, when one was made>.
|
|
41
|
+
- <role>, <screen or state>. Left to delivery: <what delivery may decide, and any constraint it must keep>.
|
|
41
42
|
- <role>, <screen or state>. Deferred to <who> by <when>: <what is undecided>.
|
|
42
43
|
- <role>, <screen or state>. Open: <the question>.
|
|
43
44
|
Write `None` when nothing a person sees or does changes. Never delete.>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-os-dev",
|
|
3
3
|
"description": "Agent OS development: shape plans, deliver against ground truth, review independently, and guard delivery with hooks. Requires agent-os-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.17.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Lucas Skog"
|
|
7
7
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-os-dev",
|
|
3
3
|
"description": "Agent OS development: shape plans, deliver against ground truth, review independently, and guard delivery with hooks. Requires agent-os-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.17.1",
|
|
5
5
|
"homepage": "https://sockulags.github.io/agent-os/",
|
|
6
6
|
"repository": "https://github.com/sockulags/agent-os",
|
|
7
7
|
"keywords": [
|
|
@@ -33,6 +33,7 @@ invoke it. Use this workflow only when the developer explicitly requests an inte
|
|
|
33
33
|
3. Reconcile the manifest with live Git and worktree state before every dispatch wave.
|
|
34
34
|
4. Dispatch the open frontier into isolated workspaces within project concurrency. Each worker gets
|
|
35
35
|
one current task definition and returns a commit SHA, changed files, checks, and uncertainty.
|
|
36
|
+
A unit that is a tracker issue without an intent keeps the tracker's closing reference to it.
|
|
36
37
|
A unit taken from a plan keeps its `Intent-Unit: <intent-id>/<unit-key>` line in the commit or
|
|
37
38
|
pull request that delivers it, so the plan's status can be read from history.
|
|
38
39
|
5. Integrate completed tasks in dependency order. Detect already-contained commits, rerun relevant
|
|
@@ -32,6 +32,8 @@ Read `REVIEW.md` at the repository root when it exists. It is the repository's r
|
|
|
32
32
|
areas, severity tiers, what counts as a blocking finding, and limits such as a cap on minor
|
|
33
33
|
findings. It narrows and ranks findings; it never turns a speculative concern into a supported one.
|
|
34
34
|
|
|
35
|
+
When the candidate links a tracker issue with no intent behind it, that issue is the contract:
|
|
36
|
+
review against its outcome, boundaries, acceptance, and ground truth.
|
|
35
37
|
When the candidate carries `Intent-Unit: <intent-id>/<unit-key>`, read that unit in
|
|
36
38
|
`intents/<intent-id>/plan.md` and the spec beside it. The spec's behavior, boundaries, and ground
|
|
37
39
|
truth are the review contract: report a candidate that misses an acceptance example, crosses a
|