@sockulags/agent-os 0.9.1 → 0.12.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 +112 -67
- package/cli/index.mjs +299 -12
- package/cli/index.test.mjs +277 -3
- package/hooks/hooks.json +17 -0
- package/package.json +6 -3
- package/policy.md +42 -40
- package/skills/batch-work/SKILL.md +43 -43
- package/skills/batch-work/agents/openai.yaml +2 -2
- package/skills/batch-work/references/manifest.md +100 -100
- package/skills/batch-work/scripts/manifest-hash.mjs +263 -263
- package/skills/batch-work/scripts/test-manifest-hash.mjs +132 -132
- package/skills/chart-work/SKILL.md +37 -37
- package/skills/chart-work/references/elicitation.md +25 -25
- package/skills/chart-work/references/map.md +84 -84
- package/skills/chart-work/references/prototypes.md +21 -21
- package/skills/check-work/SKILL.md +61 -0
- package/skills/deliver-work/SKILL.md +12 -12
- package/skills/deliver-work/workflow.md +119 -109
- package/skills/diagnose-before-fix/SKILL.md +24 -24
- package/skills/dispatch-next/SKILL.md +28 -28
- package/skills/init-agent-os/SKILL.md +52 -37
- package/skills/init-agent-os/references/repository-init.md +74 -0
- package/skills/list-skills/SKILL.md +43 -0
- package/skills/list-skills/agents/openai.yaml +2 -0
- package/skills/plain-voice/SKILL.md +39 -0
- package/skills/plain-voice/references/tells.md +82 -0
- package/skills/proportional-testing/SKILL.md +30 -0
- package/skills/proportional-testing/references/strategy.md +75 -0
- package/skills/quality-ratchet/SKILL.md +50 -0
- package/skills/quality-ratchet/scripts/quality-delta.mjs +752 -0
- package/skills/quality-ratchet/scripts/quality-delta.test.mjs +514 -0
- package/skills/scope-guard/SKILL.md +21 -21
- package/skills/shape-work/SKILL.md +39 -39
- package/skills/shape-work/references/implementation-issues.md +69 -69
- package/skills/shape-work/references/mockups.md +23 -23
- package/skills/simplifier/SKILL.md +34 -0
- package/skills/simplifier/agents/openai.yaml +2 -0
- package/skills/simplifier-audit/SKILL.md +28 -0
- package/skills/simplifier-audit/agents/openai.yaml +2 -0
- package/skills/simplifier-review/SKILL.md +36 -0
- package/skills/verify-before-done/SKILL.md +29 -29
- package/skills/writing-skills/SKILL.md +68 -68
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
# Batch manifest
|
|
2
|
-
|
|
3
|
-
The coordinator-owned manifest lives at `.agent-os/batches/<batch-slug>.md`. It is resumable working
|
|
4
|
-
state, not an approval ledger.
|
|
5
|
-
|
|
6
|
-
## Cursor
|
|
7
|
-
|
|
8
|
-
```yaml
|
|
9
|
-
---
|
|
10
|
-
agent_os_batch: 2
|
|
11
|
-
batch_id: <stable slug>
|
|
12
|
-
status: planned
|
|
13
|
-
next_action: dispatch-frontier
|
|
14
|
-
manifest_hash: ""
|
|
15
|
-
---
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Statuses are `planned`, `running`, `reconciling`, `verifying`, `ready`, `delivered`, and `blocked`.
|
|
19
|
-
Keep `next_action` concrete except after delivery.
|
|
20
|
-
|
|
21
|
-
## Definitions
|
|
22
|
-
|
|
23
|
-
```json batch-plan
|
|
24
|
-
{
|
|
25
|
-
"baseline_sha": "<integration baseline>",
|
|
26
|
-
"integration_branch": "<project convention>",
|
|
27
|
-
"max_workers": 2,
|
|
28
|
-
"retry_limit": 1,
|
|
29
|
-
"integration_strategy": "serial cherry-pick",
|
|
30
|
-
"aggregate_checks": []
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
```json batch-task
|
|
35
|
-
{
|
|
36
|
-
"task_key": "<stable within batch_id>",
|
|
37
|
-
"source": "<spec or issue link>",
|
|
38
|
-
"dependencies": [],
|
|
39
|
-
"scope": [],
|
|
40
|
-
"outcome": "",
|
|
41
|
-
"non_goals": [],
|
|
42
|
-
"checks": [],
|
|
43
|
-
"task_hash": ""
|
|
44
|
-
}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Identity is `(batch_id, task_key)`. Run:
|
|
48
|
-
|
|
49
|
-
```text
|
|
50
|
-
node skills/batch-work/scripts/manifest-hash.mjs <manifest.md>
|
|
51
|
-
node skills/batch-work/scripts/manifest-hash.mjs --check <manifest.md>
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
The script validates fields, dependencies, cycles, runtime identity, and stable task and manifest
|
|
55
|
-
hashes. Hashes detect definition drift; they do not represent human approval.
|
|
56
|
-
|
|
57
|
-
## Runtime
|
|
58
|
-
|
|
59
|
-
```json batch-runtime
|
|
60
|
-
{
|
|
61
|
-
"tasks": [
|
|
62
|
-
{
|
|
63
|
-
"task_key": "<definition task_key>",
|
|
64
|
-
"state": "pending",
|
|
65
|
-
"attempt": 0,
|
|
66
|
-
"branch": "",
|
|
67
|
-
"worktree": "",
|
|
68
|
-
"worker_id": "",
|
|
69
|
-
"head_sha": "",
|
|
70
|
-
"result": ""
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Task states are `pending`, `ready`, `running`, `succeeded`, `integrated`, `failed`, `blocked`, and
|
|
77
|
-
`conflict`. Persist repository-relative or portable worktree keys, not absolute machine paths.
|
|
78
|
-
|
|
79
|
-
Before launch, create the isolated branch and worktree and record a new attempt. A returned worker
|
|
80
|
-
identity moves it to `running`. The worker result is concise: head SHA, changed files, checks, and
|
|
81
|
-
remaining uncertainty. The coordinator verifies the live task hash and attempt before integration.
|
|
82
|
-
|
|
83
|
-
## Frontier and reconciliation
|
|
84
|
-
|
|
85
|
-
The frontier contains pending tasks whose dependencies are integrated and whose scopes do not
|
|
86
|
-
overlap active work. Dispatch within host and project concurrency.
|
|
87
|
-
|
|
88
|
-
Only the coordinator edits the manifest and integration branch:
|
|
89
|
-
|
|
90
|
-
1. Re-read live branches, worktrees, and manifest.
|
|
91
|
-
2. Confirm the worker head belongs to the current task attempt.
|
|
92
|
-
3. Integrate once in dependency order.
|
|
93
|
-
4. Run the task checks on the integrated head.
|
|
94
|
-
5. Recompute the frontier.
|
|
95
|
-
|
|
96
|
-
After all tasks integrate, run the aggregate checks against the complete candidate.
|
|
97
|
-
Worker-local checks are useful context but are not proof of the integrated system.
|
|
98
|
-
|
|
99
|
-
The original request and project policy define whether delivery stops at local changes, a commit, a
|
|
100
|
-
pull request, merge, or deployment. Destructive cleanup requires the request or policy to include it.
|
|
1
|
+
# Batch manifest
|
|
2
|
+
|
|
3
|
+
The coordinator-owned manifest lives at `.agent-os/batches/<batch-slug>.md`. It is resumable working
|
|
4
|
+
state, not an approval ledger.
|
|
5
|
+
|
|
6
|
+
## Cursor
|
|
7
|
+
|
|
8
|
+
```yaml
|
|
9
|
+
---
|
|
10
|
+
agent_os_batch: 2
|
|
11
|
+
batch_id: <stable slug>
|
|
12
|
+
status: planned
|
|
13
|
+
next_action: dispatch-frontier
|
|
14
|
+
manifest_hash: ""
|
|
15
|
+
---
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Statuses are `planned`, `running`, `reconciling`, `verifying`, `ready`, `delivered`, and `blocked`.
|
|
19
|
+
Keep `next_action` concrete except after delivery.
|
|
20
|
+
|
|
21
|
+
## Definitions
|
|
22
|
+
|
|
23
|
+
```json batch-plan
|
|
24
|
+
{
|
|
25
|
+
"baseline_sha": "<integration baseline>",
|
|
26
|
+
"integration_branch": "<project convention>",
|
|
27
|
+
"max_workers": 2,
|
|
28
|
+
"retry_limit": 1,
|
|
29
|
+
"integration_strategy": "serial cherry-pick",
|
|
30
|
+
"aggregate_checks": []
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```json batch-task
|
|
35
|
+
{
|
|
36
|
+
"task_key": "<stable within batch_id>",
|
|
37
|
+
"source": "<spec or issue link>",
|
|
38
|
+
"dependencies": [],
|
|
39
|
+
"scope": [],
|
|
40
|
+
"outcome": "",
|
|
41
|
+
"non_goals": [],
|
|
42
|
+
"checks": [],
|
|
43
|
+
"task_hash": ""
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Identity is `(batch_id, task_key)`. Run:
|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
node skills/batch-work/scripts/manifest-hash.mjs <manifest.md>
|
|
51
|
+
node skills/batch-work/scripts/manifest-hash.mjs --check <manifest.md>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The script validates fields, dependencies, cycles, runtime identity, and stable task and manifest
|
|
55
|
+
hashes. Hashes detect definition drift; they do not represent human approval.
|
|
56
|
+
|
|
57
|
+
## Runtime
|
|
58
|
+
|
|
59
|
+
```json batch-runtime
|
|
60
|
+
{
|
|
61
|
+
"tasks": [
|
|
62
|
+
{
|
|
63
|
+
"task_key": "<definition task_key>",
|
|
64
|
+
"state": "pending",
|
|
65
|
+
"attempt": 0,
|
|
66
|
+
"branch": "",
|
|
67
|
+
"worktree": "",
|
|
68
|
+
"worker_id": "",
|
|
69
|
+
"head_sha": "",
|
|
70
|
+
"result": ""
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Task states are `pending`, `ready`, `running`, `succeeded`, `integrated`, `failed`, `blocked`, and
|
|
77
|
+
`conflict`. Persist repository-relative or portable worktree keys, not absolute machine paths.
|
|
78
|
+
|
|
79
|
+
Before launch, create the isolated branch and worktree and record a new attempt. A returned worker
|
|
80
|
+
identity moves it to `running`. The worker result is concise: head SHA, changed files, checks, and
|
|
81
|
+
remaining uncertainty. The coordinator verifies the live task hash and attempt before integration.
|
|
82
|
+
|
|
83
|
+
## Frontier and reconciliation
|
|
84
|
+
|
|
85
|
+
The frontier contains pending tasks whose dependencies are integrated and whose scopes do not
|
|
86
|
+
overlap active work. Dispatch within host and project concurrency.
|
|
87
|
+
|
|
88
|
+
Only the coordinator edits the manifest and integration branch:
|
|
89
|
+
|
|
90
|
+
1. Re-read live branches, worktrees, and manifest.
|
|
91
|
+
2. Confirm the worker head belongs to the current task attempt.
|
|
92
|
+
3. Integrate once in dependency order.
|
|
93
|
+
4. Run the task checks on the integrated head.
|
|
94
|
+
5. Recompute the frontier.
|
|
95
|
+
|
|
96
|
+
After all tasks integrate, run the aggregate checks against the complete candidate.
|
|
97
|
+
Worker-local checks are useful context but are not proof of the integrated system.
|
|
98
|
+
|
|
99
|
+
The original request and project policy define whether delivery stops at local changes, a commit, a
|
|
100
|
+
pull request, merge, or deployment. Destructive cleanup requires the request or policy to include it.
|