@sockulags/agent-os 0.13.1 → 0.15.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 +5 -6
- package/package.json +2 -2
- package/policy.md +18 -9
- package/skills/batch-work/SKILL.md +4 -2
- package/skills/batch-work/references/manifest.md +8 -0
- package/skills/deliver-work/workflow.md +36 -3
- package/skills/dispatch-next/SKILL.md +4 -3
- package/skills/explain-work/SKILL.md +6 -5
- package/skills/init-agent-os/SKILL.md +3 -2
- package/skills/init-agent-os/references/repository-init.md +3 -2
- package/skills/list-skills/SKILL.md +3 -3
- package/skills/plan-work/SKILL.md +100 -0
- package/skills/plan-work/references/elicitation.md +28 -0
- package/skills/plan-work/references/map.md +108 -0
- package/skills/{chart-work → plan-work}/references/prototypes.md +6 -7
- package/skills/quality-ratchet/SKILL.md +11 -5
- package/skills/quality-ratchet/references/project-controls.md +135 -0
- package/skills/quality-ratchet/scripts/project-controls.mjs +186 -0
- package/skills/quality-ratchet/scripts/project-controls.test.mjs +175 -0
- package/skills/quality-ratchet/scripts/quality-delta.mjs +60 -7
- package/skills/scope-guard/SKILL.md +35 -19
- package/skills/shape-work/SKILL.md +34 -11
- package/skills/shape-work/references/implementation-issues.md +29 -8
- package/skills/understand-work/SKILL.md +4 -3
- package/skills/chart-work/SKILL.md +0 -42
- package/skills/chart-work/references/elicitation.md +0 -25
- package/skills/chart-work/references/map.md +0 -84
- package/skills/guide-me/SKILL.md +0 -36
- package/skills/guide-me/agents/openai.yaml +0 -2
- /package/skills/{chart-work → plan-work}/agents/openai.yaml +0 -0
package/README.md
CHANGED
|
@@ -7,15 +7,14 @@ Claude Code and Codex. One skill source, two platforms, ceremony proportional to
|
|
|
7
7
|
|
|
8
8
|
## Skills
|
|
9
9
|
|
|
10
|
-
Reading order: the planning foundation (`
|
|
11
|
-
the
|
|
12
|
-
|
|
10
|
+
Reading order: the planning foundation (`plan-work`, then `shape-work`), the remaining workflows,
|
|
11
|
+
then the component skills the workflows compose (`understand-work`, `explain-work`), the disciplines,
|
|
12
|
+
and the meta skills.
|
|
13
13
|
|
|
14
14
|
| Skill | Bucket | Invocation | Purpose |
|
|
15
15
|
|---|---|---|---|
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
18
|
-
| `guide-me` | workflow | manual | Guide a vague desire to an approved goal and into planning |
|
|
16
|
+
| `plan-work` | workflow | manual | Plan a coherent mission with adaptive depth and canonical decisions |
|
|
17
|
+
| `shape-work` | workflow | manual | Shape coherent delivery units and implementation-ready issues |
|
|
19
18
|
| `deliver-work` | workflow | manual | Implement one change against boundaries and ground truth |
|
|
20
19
|
| `batch-work` | workflow | manual | Run isolated ready units and verify the integrated result |
|
|
21
20
|
| `dispatch-next` | workflow | manual | Pick or dispatch one action according to the request |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sockulags/agent-os",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "A lightweight personal agent operating system with an npx installer for Claude Code and Codex.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">=18.18"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"test": "node --test cli/index.test.mjs skills/quality-ratchet/scripts/quality-delta.test.mjs",
|
|
19
|
+
"test": "node --test cli/index.test.mjs skills/quality-ratchet/scripts/quality-delta.test.mjs skills/quality-ratchet/scripts/project-controls.test.mjs",
|
|
20
20
|
"test:evals": "node scripts/test-eval-agent-behavior.mjs",
|
|
21
21
|
"validate": "node scripts/validate-agent-os.mjs",
|
|
22
22
|
"verify:release": "node scripts/verify-release.mjs"
|
package/policy.md
CHANGED
|
@@ -29,15 +29,15 @@ Rules:
|
|
|
29
29
|
- Never force the reader to cross-reference labels or numbering invented earlier in the text — say what you mean in place.
|
|
30
30
|
- Explanations belong in prose; tables only for short enumerable facts.
|
|
31
31
|
- Calibrate tone to the topic: playfulness is fine, neutral and factual the moment the subject is serious. When in doubt, it is serious.
|
|
32
|
-
- Orchestration is opt-in: `
|
|
33
|
-
`
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
`
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
- Orchestration is opt-in: `plan-work`, `shape-work`, `batch-work`, `deliver-work`, `dispatch-next`,
|
|
33
|
+
`init-agent-os`, `understand-work`, `explain-work`, and `record-lesson` exist for planned work;
|
|
34
|
+
invoke them through the name exposed by the host (`/plan-work` for direct Claude skills,
|
|
35
|
+
`/agent-os:plan-work` for the Claude plugin, or `$plan-work` for Codex). Never self-invoke them.
|
|
36
|
+
Planning depth is chosen internally by plan-work, and its use does not add a general summary
|
|
37
|
+
approval gate. Existing authority may continue into the workflow its exit contract names; planning
|
|
38
|
+
alone never starts implementation. The automatic `check-work` review workflow is also available
|
|
39
|
+
from supported implicit review requests; its report mode is read-only and its fix mode requires
|
|
40
|
+
explicit authority.
|
|
41
41
|
|
|
42
42
|
- Always recommend one concrete next action when planning or a delivery unit ends, with the reason
|
|
43
43
|
it wins and any blocker. Continuing sequentially through already shaped issues is allowed when
|
|
@@ -45,6 +45,15 @@ Rules:
|
|
|
45
45
|
parallel batch execution still requires explicit selection. Existing authority persists across
|
|
46
46
|
unit boundaries, but never expands to unrelated backlog work. If the goal is complete and no
|
|
47
47
|
useful next action remains, say so instead of manufacturing work.
|
|
48
|
+
- Scope has two independent axes: classify discoveries as required, adjacent, or unrelated to the
|
|
49
|
+
mission, then classify the work as covered by the existing mandate or requiring a new decision or
|
|
50
|
+
external action. Risk guides implementation and verification and can reveal a missing decision;
|
|
51
|
+
risk-area membership does not grant permission. Required covered work normally stays in scope,
|
|
52
|
+
while adjacent work is a follow-up and unrelated work gets no invented proposal.
|
|
53
|
+
- No skill grants external tracker write access automatically. An explicit tracker mandate may
|
|
54
|
+
include implementation detail and technical ordering/readiness inside the authorized set, but not
|
|
55
|
+
acceptance changes, new owners or deliveries, or closure. Without that mandate, keep corrections
|
|
56
|
+
local and preserve an unsynced delta in working memory only when it must survive the session.
|
|
48
57
|
|
|
49
58
|
## Preferences (seed defaults — project policy overrides)
|
|
50
59
|
|
|
@@ -25,7 +25,8 @@ invoke it. Use this workflow only when the developer explicitly requests an inte
|
|
|
25
25
|
## Loop
|
|
26
26
|
|
|
27
27
|
1. Confirm every source issue has a stable identity, outcome, scope, dependencies, and checks. Route
|
|
28
|
-
unresolved product decisions or missing
|
|
28
|
+
unresolved product decisions or missing coherent delivery structure to `plan-work` or
|
|
29
|
+
`shape-work`.
|
|
29
30
|
2. Create or update `.agent-os/batches/<batch-slug>.md`. Validate its graph and definition hashes.
|
|
30
31
|
A planning-only request stops here; an execution request continues.
|
|
31
32
|
3. Reconcile the manifest with live Git and worktree state before every dispatch wave.
|
|
@@ -33,7 +34,8 @@ invoke it. Use this workflow only when the developer explicitly requests an inte
|
|
|
33
34
|
one current task definition and returns a commit SHA, changed files, checks, and uncertainty.
|
|
34
35
|
5. Integrate completed tasks in dependency order. Detect already-contained commits, rerun relevant
|
|
35
36
|
checks on the integrated head, and stop on conflicts rather than guessing.
|
|
36
|
-
6. After all tasks integrate, run
|
|
37
|
+
6. After all tasks integrate, run the epic or feature's aggregate verification contract when one
|
|
38
|
+
exists, then run fresh aggregate checks. Child checks never prove the shared result.
|
|
37
39
|
7. Treat the integrated batch as material. Apply the
|
|
38
40
|
[deliver-work review gate](../deliver-work/workflow.md#review-gate) to the complete candidate,
|
|
39
41
|
resolve supported findings, and rerun affected aggregate checks.
|
|
@@ -98,3 +98,11 @@ Worker-local checks are useful context but are not proof of the integrated syste
|
|
|
98
98
|
|
|
99
99
|
The original request and project policy define whether delivery stops at local changes, a commit, a
|
|
100
100
|
pull request, merge, or deployment. Destructive cleanup requires the request or policy to include it.
|
|
101
|
+
|
|
102
|
+
## Shared verification contract
|
|
103
|
+
|
|
104
|
+
When the source issue graph belongs to an epic or planned feature, keep the canonical epic contract
|
|
105
|
+
linked from the manifest rather than copying it into a competing specification. The manifest's
|
|
106
|
+
`aggregate_checks` must cover the shared outcome and acceptance, and its final verification step
|
|
107
|
+
must name the owner from that contract. Worker-local green checks never close the parent; the
|
|
108
|
+
coordinator follows the same aggregate verification direction as `deliver-work`.
|
|
@@ -31,11 +31,16 @@ needs shaping; a one-issue request does not authorize the rest of its epic. Keep
|
|
|
31
31
|
baseline for the authorized sequence and refresh its check per candidate; do not call `begin` again
|
|
32
32
|
for each unit while that baseline is active.
|
|
33
33
|
|
|
34
|
+
The same rule applies when the request names a planned feature or epic: delivery owns the complete
|
|
35
|
+
authorized result, not merely whichever child happens to be green. When the request covers an epic,
|
|
36
|
+
run its aggregate verification and report the final verification owner. Child success never closes
|
|
37
|
+
the parent or grants authority over its siblings.
|
|
38
|
+
|
|
34
39
|
## Work loop
|
|
35
40
|
|
|
36
41
|
1. Inspect enough of the affected system to choose a coherent change. Apply quality-ratchet's
|
|
37
42
|
reuse and responsibility guidance before writing. If a solution-changing uncertainty remains,
|
|
38
|
-
use the [experiment decision](../
|
|
43
|
+
use the [experiment decision](../plan-work/references/prototypes.md); clear tasks need no prototype.
|
|
39
44
|
2. If available, run [`quality-ratchet`](../quality-ratchet/SKILL.md)'s `begin` before the first
|
|
40
45
|
mutation. It captures the exact worktree entry state without stashing or editing user files; an
|
|
41
46
|
unavailable capability is reported rather than turned into a substitute gate.
|
|
@@ -58,6 +63,33 @@ for each unit while that baseline is active.
|
|
|
58
63
|
|
|
59
64
|
Ground truth governs the loop; no prescribed implementation sequence substitutes for it.
|
|
60
65
|
|
|
66
|
+
## Handle discoveries without fragmenting the mission
|
|
67
|
+
|
|
68
|
+
During delivery, update the current work when the discovery is necessary and within the existing
|
|
69
|
+
contract:
|
|
70
|
+
|
|
71
|
+
- a necessary technical detail is solved and delivery continues;
|
|
72
|
+
- a missed technical prerequisite is added to the work plan and delivery continues within mandate;
|
|
73
|
+
- an incorrect order is corrected when acceptance, ownership, and delivery boundaries remain the
|
|
74
|
+
same;
|
|
75
|
+
- a unit is split, combined, or has responsibility moved only through targeted `shape-work`;
|
|
76
|
+
- a product contract or explicit boundary is changed only by reopening that decision through
|
|
77
|
+
`plan-work`;
|
|
78
|
+
- an adjacent improvement stays out without separate authority.
|
|
79
|
+
|
|
80
|
+
Diagnose technical blockers before forwarding them. Do not create a blocking side issue merely
|
|
81
|
+
because a necessary detail was discovered late. Continue independent authorized work during a
|
|
82
|
+
partial block. A context or session limit calls for a compact continuation record, not a new
|
|
83
|
+
product issue. Changing workflow names is not itself a new approval step.
|
|
84
|
+
|
|
85
|
+
No workflow grants tracker write access automatically. Tracker maintenance is allowed only when the
|
|
86
|
+
request or project policy grants it, and then only for implementation detail and technical
|
|
87
|
+
ordering/readiness inside the authorized set. It does not include changing acceptance, owners,
|
|
88
|
+
delivery scope, adding unrequested work, or closing an issue. A ready issue is not authorization.
|
|
89
|
+
Without tracker mandate, keep corrections local and report the delta. If it must survive a session,
|
|
90
|
+
use the work record's existing sections and add `Pending tracker updates` only when needed; record
|
|
91
|
+
the unsynced delta, never a copied plan.
|
|
92
|
+
|
|
61
93
|
## Review gate
|
|
62
94
|
|
|
63
95
|
Independent review is required unless the final candidate is a small fix and all of these are true:
|
|
@@ -118,8 +150,9 @@ next_action: <concrete continuation>
|
|
|
118
150
|
```
|
|
119
151
|
|
|
120
152
|
Record only Outcome, Boundaries, Ground truth, Decisions, and Evidence. Use `blocked`, `verified`, or
|
|
121
|
-
`delivered` when those words help the next session resume accurately.
|
|
122
|
-
|
|
153
|
+
`delivered` when those words help the next session resume accurately. Add `Pending tracker updates`
|
|
154
|
+
only when an authorized or reported tracker delta needs to survive the session. The record is working memory,
|
|
155
|
+
not an approval ledger, plan copy, or audit receipt.
|
|
123
156
|
|
|
124
157
|
## Batch workers
|
|
125
158
|
|
|
@@ -17,10 +17,11 @@ priority rules and explain why it wins.
|
|
|
17
17
|
|
|
18
18
|
Within those priorities, prefer the action that removes a consequential uncertainty or unlocks
|
|
19
19
|
dependent work at reasonable effort. When observation would settle an open decision, recommend a
|
|
20
|
-
bounded experiment through
|
|
20
|
+
bounded experiment through plan-work or shape-work; a ready coding task need not always win.
|
|
21
21
|
|
|
22
|
-
Route broad
|
|
23
|
-
implementation-ready issue to `deliver-work`. Route to `batch-work`
|
|
22
|
+
Route broad or mission-level planning to `plan-work`, a bounded open delivery choice to
|
|
23
|
+
`shape-work`, and one selected implementation-ready issue to `deliver-work`. Route to `batch-work`
|
|
24
|
+
only when the developer
|
|
24
25
|
explicitly asks to execute an existing ready issue graph as an integrated batch; issue count alone
|
|
25
26
|
does not choose the workflow.
|
|
26
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: explain-work
|
|
3
|
-
description: Explains the current task or plan in plain language with no technical vocabulary, so the developer can judge it beyond the jargon. User-invoked directly
|
|
3
|
+
description: Explains the current task or plan in plain language with no technical vocabulary, so the developer can judge it beyond the jargon. User-invoked directly when a real decision needs a plain-language summary or as a plan-work aid. Not a substitute for technical review or verification.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -18,10 +18,11 @@ understand before explaining. Keep it short enough to read in under a minute: a
|
|
|
18
18
|
|
|
19
19
|
## The gate
|
|
20
20
|
|
|
21
|
-
Present the summary
|
|
22
|
-
understanding was wrong somewhere: name what was misunderstood
|
|
23
|
-
plan at that point rather than defending the summary. Under
|
|
24
|
-
the summary
|
|
21
|
+
Present the summary when it is needed for an actual decision and let the developer approve or
|
|
22
|
+
challenge it. A challenge means the understanding was wrong somewhere: name what was misunderstood
|
|
23
|
+
and reopen the questioning or the plan at that point rather than defending the summary. Under
|
|
24
|
+
plan-work, the summary may be linked from the canonical planning artifact; it is not a general
|
|
25
|
+
workflow gate.
|
|
25
26
|
|
|
26
27
|
Standalone, explain-work can run against any plan, diff, or pull request; the deliverable is the
|
|
27
28
|
plain-language summary itself and the developer's verdict on it.
|
|
@@ -34,8 +34,9 @@ for the detailed contract.
|
|
|
34
34
|
3. Before writing, each mandatory core field must reach one allowed terminal state: repository-
|
|
35
35
|
evidenced or confirmed, `N/A`, explicitly deferred/open, or conflicting. The core covers policy
|
|
36
36
|
ownership and canonical instruction surface; delivery boundary, stopping point, and external
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
effects; verification and ground truth, including when commands are insufficient; coherent
|
|
38
|
+
planning identities, claims, handoffs, readiness, epic ownership, and dependencies; and
|
|
39
|
+
maintenance of durable lessons and gotchas. Only
|
|
39
40
|
an unresolved policy ownership/write-target conflict blocks writing; other explicit deferrals
|
|
40
41
|
may be written concisely under **Open setup questions**.
|
|
41
42
|
4. Activate only conditional modules supported by repository evidence: frontend/design/rendered QA;
|
|
@@ -43,8 +43,9 @@ is insufficient:
|
|
|
43
43
|
whether external writes, publication, or other effects require a separate explicit request.
|
|
44
44
|
3. **Verification:** exact useful commands and the ground truth they establish; record what must be
|
|
45
45
|
inspected manually or otherwise checked when commands are insufficient.
|
|
46
|
-
4. **Planning:** the planning surface, stable
|
|
47
|
-
conventions
|
|
46
|
+
4. **Planning:** the coherent planning surface, stable plan and decision-ticket identities, claims
|
|
47
|
+
and handoff conventions, readiness states or labels, epic ownership, and dependency conventions
|
|
48
|
+
for implementation work.
|
|
48
49
|
5. **Maintenance:** where durable lessons, recurring gotchas, and policy changes are recorded.
|
|
49
50
|
|
|
50
51
|
## Evidence-gated modules
|
|
@@ -30,9 +30,9 @@ this skill was itself reached — `/agent-os:<name>` through the Claude plugin,
|
|
|
30
30
|
Claude install, `$<name>` on Codex — and name which form is shown, since the same skill set is typed
|
|
31
31
|
differently per host.
|
|
32
32
|
|
|
33
|
-
Close with the entry points for a developer who has not named a skill:
|
|
34
|
-
`
|
|
35
|
-
|
|
33
|
+
Close with the entry points for a developer who has not named a skill: coherent planning starts at
|
|
34
|
+
`plan-work`, delivery structure with material choices at `shape-work`, and a decision-complete unit
|
|
35
|
+
at `deliver-work`. Say plainly that automatic skills need no entry point
|
|
36
36
|
for an implicit trigger; mention an automatic workflow's explicit modes only when useful.
|
|
37
37
|
|
|
38
38
|
## Boundaries
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-work
|
|
3
|
+
description: Plans a coherent mission from outcome through coverage, decisions, feasibility, and verification with adaptive depth and an optional decision map. User-invoked when the developer wants a plan or the work needs one. Not required for an already clear implementation request or a substitute for shape-work delivery structure.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Plan work
|
|
8
|
+
|
|
9
|
+
Own the coherent mission before delivery: the desired result and behavior, boundaries, affected
|
|
10
|
+
parts, material decisions, technical feasibility, and one verification story for the whole result.
|
|
11
|
+
Planning is an entry point, not a mandatory ceremony before an already clear implementation
|
|
12
|
+
request. Shape-work may also start from an existing specification.
|
|
13
|
+
|
|
14
|
+
## Choose planning depth internally
|
|
15
|
+
|
|
16
|
+
Do not ask the developer to select a mode. Match the depth to scope and uncertainty separately:
|
|
17
|
+
|
|
18
|
+
- A small, clear fix needs its outcome, boundaries, and verification.
|
|
19
|
+
- A large but known change needs repository inspection and a coverage check across the relevant
|
|
20
|
+
flows, states, errors, and integrations.
|
|
21
|
+
- A bounded open choice needs discoverable facts first, then only focused questions for choices
|
|
22
|
+
that materially change behavior.
|
|
23
|
+
- A broad initiative uses the decision map below when questions need independent ownership,
|
|
24
|
+
separate evidence work, or parallel treatment.
|
|
25
|
+
|
|
26
|
+
Use [understand-work](../understand-work/SKILL.md) when the outcome is still moving or cannot be
|
|
27
|
+
stated. Use [explain-work](../explain-work/SKILL.md) when a plain-language summary is needed for an
|
|
28
|
+
actual decision. A summary is not a general approval gate: existing authority continues across
|
|
29
|
+
workflow boundaries, and planning alone never starts implementation.
|
|
30
|
+
|
|
31
|
+
## Establish the plan
|
|
32
|
+
|
|
33
|
+
Read project policy, the request, relevant repository code, existing planning artifacts, and live
|
|
34
|
+
worktree or tracker state before asking questions. Check the real main flows, states, error paths,
|
|
35
|
+
and integrations. For a rebuild or migration, identify what is preserved, replaced, migrated, and
|
|
36
|
+
removed. Do not invent requirements to fill a template.
|
|
37
|
+
|
|
38
|
+
Resolve repository facts yourself. Ask only a material product question, with a recommendation and
|
|
39
|
+
the consequence of choosing differently. Record decisions, reasons, rejected alternatives, open
|
|
40
|
+
risks, and evidence where the configured planning surface can be found again.
|
|
41
|
+
|
|
42
|
+
The plan owns one coherent mission, not a pile of disconnected tickets. The plan is ready when delivery
|
|
43
|
+
can proceed without inventing material product intent. The ready result may be:
|
|
44
|
+
|
|
45
|
+
- ready for direct delivery when the mission already has a sufficient contract;
|
|
46
|
+
- ready for `shape-work` when delivery units, dependencies, or an epic contract still need to be
|
|
47
|
+
materialized; or
|
|
48
|
+
- one explicit remaining question or evidence gap.
|
|
49
|
+
|
|
50
|
+
Exact code, a complete file list, and every technical work step do not need to be decided. A plan
|
|
51
|
+
does not authorize product implementation, and an issue becoming ready does not authorize it.
|
|
52
|
+
|
|
53
|
+
## Decision-map mode
|
|
54
|
+
|
|
55
|
+
When the broad depth is justified, read [references/map.md](references/map.md),
|
|
56
|
+
[references/elicitation.md](references/elicitation.md), and
|
|
57
|
+
[references/prototypes.md](references/prototypes.md). Preserve these mechanics:
|
|
58
|
+
|
|
59
|
+
- the decision ticket is canonical; the map is a repairable, low-resolution index;
|
|
60
|
+
- ticket identity is stable and updates are idempotent;
|
|
61
|
+
- claim an open frontier ticket before independent work, and never infer parallel workers from a
|
|
62
|
+
map with parallel possibilities;
|
|
63
|
+
- connect real dependencies and expose the open, unblocked frontier;
|
|
64
|
+
- re-read live state before writing and use compare-and-swap or the planning surface's equivalent
|
|
65
|
+
to protect concurrent updates;
|
|
66
|
+
- hand off each bounded branch to `shape-work` through one stable, canonical handoff; shaping
|
|
67
|
+
reconciles issues and readiness back into the plan.
|
|
68
|
+
|
|
69
|
+
The handoff links the canonical plan and ticket evidence. It carries a bounded summary, settled
|
|
70
|
+
decisions, evidence, and remaining questions; it does not copy the plan into a competing
|
|
71
|
+
specification.
|
|
72
|
+
|
|
73
|
+
### Reconsideration
|
|
74
|
+
|
|
75
|
+
Treat reconsideration as explicit planning information, not as an erased resolution:
|
|
76
|
+
|
|
77
|
+
1. Preserve the earlier resolution and keep it addressable.
|
|
78
|
+
2. Record which decision is under review, why it is being reconsidered, and the question that
|
|
79
|
+
remains open.
|
|
80
|
+
3. Show the active reconsideration in the map and process it with the ordinary claim and frontier
|
|
81
|
+
rules.
|
|
82
|
+
4. When it closes, record whether the earlier decision was confirmed or replaced. Register a
|
|
83
|
+
replacement only after a new decision is actually made.
|
|
84
|
+
|
|
85
|
+
Use existing tracker status plus explicit reconsideration fields rather than inventing a global
|
|
86
|
+
status machine. Find potentially affected work through decision links, acceptance, and boundaries.
|
|
87
|
+
Pause only branches with demonstrated impact; independent authorized work continues.
|
|
88
|
+
|
|
89
|
+
## Authority and tracker boundaries
|
|
90
|
+
|
|
91
|
+
No planning skill grants external write access. If the request or project policy already
|
|
92
|
+
authorizes tracker maintenance, that may include implementation detail and technical ordering or
|
|
93
|
+
readiness within the authorized set. It does not silently change acceptance, ownership, delivery
|
|
94
|
+
scope, or closure. Without tracker authority, keep corrections local and report the unsynced
|
|
95
|
+
updates. If the information must survive the session, use the existing work record and add a
|
|
96
|
+
`Pending tracker updates` section only when needed; store a delta, not a copy of this plan.
|
|
97
|
+
|
|
98
|
+
Recommend one concrete next action at exit, with the reason it wins and any blocker. Continue into
|
|
99
|
+
an authorized next workflow without adding an approval ceremony; stop when the plan is ready and
|
|
100
|
+
the request does not include implementation.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Planning evidence
|
|
2
|
+
|
|
3
|
+
Use the smallest evidence that can settle the active planning question.
|
|
4
|
+
|
|
5
|
+
## Developer choice
|
|
6
|
+
|
|
7
|
+
Follow the questioning loop in [understand-work](../../understand-work/SKILL.md). Present materially
|
|
8
|
+
different options, recommend one, name the consequence, and ask one load-bearing question at a
|
|
9
|
+
time. The developer supplies preference evidence; the agent does not invent it.
|
|
10
|
+
|
|
11
|
+
## Research
|
|
12
|
+
|
|
13
|
+
Use repository evidence, primary sources, or direct measurements. Cite the decisive source or
|
|
14
|
+
observation and state uncertainty that could change the decision.
|
|
15
|
+
|
|
16
|
+
## Prototype
|
|
17
|
+
|
|
18
|
+
Follow [prototypes.md](prototypes.md). Keep observed behavior separate from the developer's
|
|
19
|
+
judgment and stop when the question is settled or the bounded effort budget is exhausted.
|
|
20
|
+
|
|
21
|
+
## Prerequisite task
|
|
22
|
+
|
|
23
|
+
Do only the prerequisite needed to make the decision stateable. Record the result and the question
|
|
24
|
+
it unlocked. Do not turn a newly discovered technical detail into a blocking side issue when it is
|
|
25
|
+
within the current mission and mandate.
|
|
26
|
+
|
|
27
|
+
Silence, momentum, and approval of a larger bundle are never an answer to a specific product
|
|
28
|
+
choice.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Decision map
|
|
2
|
+
|
|
3
|
+
The configured planning surface owns the map, its canonical decision tickets, claims, and
|
|
4
|
+
handoffs. With no project convention, use:
|
|
5
|
+
|
|
6
|
+
```text
|
|
7
|
+
planning/<plan-slug>/map.md
|
|
8
|
+
planning/<plan-slug>/decisions/<ticket-slug>.md
|
|
9
|
+
planning/<plan-slug>/shape-work/<branch-key>.md
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Map
|
|
13
|
+
|
|
14
|
+
Keep the map low-resolution and rebuildable from its tickets. A plan summary is optional when the
|
|
15
|
+
request is already clear; it is not a universal approval gate.
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
## Outcome
|
|
19
|
+
## Boundaries
|
|
20
|
+
## Plan summary
|
|
21
|
+
## Decisions
|
|
22
|
+
- <ticket> -> <decision gist> (<link>)
|
|
23
|
+
## Claims
|
|
24
|
+
- <ticket> -> <claimant and live-version token>
|
|
25
|
+
## Open frontier
|
|
26
|
+
## Fog
|
|
27
|
+
## Reconsiderations
|
|
28
|
+
- <ticket> -> <active reconsideration> (<link>)
|
|
29
|
+
## Shaping handoffs
|
|
30
|
+
- <branch> -> <shape-work handoff> (<link>)
|
|
31
|
+
## Delivery-ready branches
|
|
32
|
+
- <branch> -> <implementation issues and frontier> (<links>)
|
|
33
|
+
## Spawned work
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The map orients. It does not duplicate ticket evidence. Every link is a stable pointer to the
|
|
37
|
+
canonical source, and retries update the same entry instead of creating a competing plan.
|
|
38
|
+
|
|
39
|
+
## Decision tickets
|
|
40
|
+
|
|
41
|
+
Every ticket states one question, why it matters, the evidence needed, and its dependencies. Choose
|
|
42
|
+
the evidence path that fits:
|
|
43
|
+
|
|
44
|
+
- `research`: repository evidence, primary sources, or measurements;
|
|
45
|
+
- `prototype`: a comparison that makes contested behavior observable;
|
|
46
|
+
- `grilling`: a product trade-off the developer must decide;
|
|
47
|
+
- `task`: a prerequisite needed before the decision can be stated.
|
|
48
|
+
|
|
49
|
+
Identity is `(origin map, ticket key)`. An open, unblocked, unclaimed ticket is on the frontier.
|
|
50
|
+
Claim it before working. A claim records the stable ticket identity, claimant, and live-version
|
|
51
|
+
token (plus the planning surface's timestamp when available). Re-read live state before writing,
|
|
52
|
+
release or resolve the claim explicitly, and preserve concurrent ticket results.
|
|
53
|
+
Independent frontier tickets may be worked in parallel only when the developer or host explicitly
|
|
54
|
+
provides the workers; a map with parallel possibilities never starts them automatically.
|
|
55
|
+
|
|
56
|
+
Resolve a ticket with:
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
## Decision
|
|
60
|
+
## Evidence
|
|
61
|
+
## Rejected alternatives
|
|
62
|
+
## Consequence
|
|
63
|
+
## New work
|
|
64
|
+
## Open risks
|
|
65
|
+
## Resolution history
|
|
66
|
+
### Prior resolution
|
|
67
|
+
### Reconsideration
|
|
68
|
+
- Decision under review:
|
|
69
|
+
- Why now:
|
|
70
|
+
- Question still open:
|
|
71
|
+
- Status: open | resolved
|
|
72
|
+
- Outcome: confirmed | replaced
|
|
73
|
+
- Replacement decision: <link, only after a new decision>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The prior resolution remains intact and addressable. A reconsideration is a new, stable record with
|
|
77
|
+
identity `(origin map, ticket key, reconsideration key)`. It is visible in `## Reconsiderations` and
|
|
78
|
+
uses the same claim, dependency, frontier, and concurrent-write rules as any other ticket. Do not
|
|
79
|
+
register a replacement merely because a ticket was reopened.
|
|
80
|
+
|
|
81
|
+
Decision links, acceptance, and boundaries identify potentially affected work. A link alone does
|
|
82
|
+
not pause it: pause only the branch with actual impact, while independent authorized work continues.
|
|
83
|
+
|
|
84
|
+
## Shape-work handoff
|
|
85
|
+
|
|
86
|
+
When a branch's remaining product choices fit one bounded shaping session, create or reuse one
|
|
87
|
+
handoff. Its identity is `(origin map, branch key)`:
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
## Shape-work handoff
|
|
91
|
+
Origin map: <link or id>
|
|
92
|
+
Branch key: <stable key>
|
|
93
|
+
Canonical plan: <link to the map or decision ticket>
|
|
94
|
+
|
|
95
|
+
## Outcome
|
|
96
|
+
## Boundaries
|
|
97
|
+
## Settled decisions
|
|
98
|
+
## Evidence and prototypes
|
|
99
|
+
## Questions left
|
|
100
|
+
## Reconsideration impact
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The handoff links canonical evidence; it is not a copied plan or a competing specification. Search before creating so retries reuse the same handoff. Update links idempotently, preserve concurrent
|
|
104
|
+
entries, and reconcile the handoff and map only after `shape-work` materializes implementation
|
|
105
|
+
issues and their ready or blocked frontier. The handoff moves the branch to shaping, not to `delivery-ready`.
|
|
106
|
+
|
|
107
|
+
A selected branch in shaping keeps the map open. Close the plan only when every selected path is
|
|
108
|
+
delivery-ready, parked, or ruled out and no Fog or active reconsideration remains.
|
|
@@ -8,20 +8,19 @@ Propose a prototype when an unresolved assumption could change the solution and
|
|
|
8
8
|
smallest experiment is cheaper or more decisive than further reading or discussion. Examples are
|
|
9
9
|
uncertain transaction behavior, integration limits, a performance hypothesis, or competing UI
|
|
10
10
|
interactions the developer needs to try. Existing evidence that already settles the question, a
|
|
11
|
-
routine implementation, or a preference answerable directly needs no prototype.
|
|
12
|
-
rule, not a required phase for every task.
|
|
11
|
+
routine implementation, or a preference answerable directly needs no prototype.
|
|
13
12
|
|
|
14
13
|
Within an authorized planning or implementation task, run a small isolated local experiment when
|
|
15
14
|
it can answer that question without new external effects or product changes. For UI choices, build
|
|
16
15
|
comparable alternatives and ask the developer to judge them. Announce the question, smallest
|
|
17
|
-
artifact, observation that would settle it, and a bounded effort budget before starting; no
|
|
18
|
-
approval is needed inside existing authority. Ask before crossing that authority, not
|
|
19
|
-
because the artifact is called a prototype.
|
|
16
|
+
artifact, observation that would settle it, and a bounded effort budget before starting; no
|
|
17
|
+
separate approval is needed inside existing authority. Ask before crossing that authority, not
|
|
18
|
+
merely because the artifact is called a prototype.
|
|
20
19
|
|
|
21
20
|
Stop when the evidence is sufficient or the budget is exhausted. Inconclusive evidence leaves the
|
|
22
21
|
decision open; report the remaining uncertainty and recommend the next action instead of silently
|
|
23
|
-
growing the experiment. Keep experimental code isolated from production paths.
|
|
24
|
-
evidence
|
|
22
|
+
growing the experiment. Keep experimental code isolated from production paths. Retaining useful
|
|
23
|
+
evidence does not promote code to production; normal implementation and review still apply.
|
|
25
24
|
|
|
26
25
|
## Capture the result
|
|
27
26
|
|
|
@@ -6,7 +6,7 @@ description: Keeps implementation quality from regressing by comparing a candida
|
|
|
6
6
|
# Quality ratchet
|
|
7
7
|
|
|
8
8
|
Keep the smallest set of concepts and machinery needed for the current change. The ratchet is an
|
|
9
|
-
evidence layer, not a score
|
|
9
|
+
evidence layer, not a score or replacement for semantic review. Explicit project rules may gate delivery.
|
|
10
10
|
|
|
11
11
|
Before choosing the implementation, find the nearest existing behavior, contract, and tests. Reuse
|
|
12
12
|
or extend their owner before adding a parallel implementation. For TypeScript, React, or Java
|
|
@@ -41,22 +41,28 @@ aggregate score and no threshold gate. Missing Lizard or jscpd is reported as un
|
|
|
41
41
|
than clean; the core Node evidence remains usable. Their parsing integration is an explicit
|
|
42
42
|
follow-up, not an install-time prerequisite.
|
|
43
43
|
|
|
44
|
-
Use existing project checks for enforceable rules and report structural signals as advisory.
|
|
44
|
+
Use existing project checks for enforceable rules and report structural signals as advisory.
|
|
45
|
+
When configuring external checks, read [references/project-controls.md](references/project-controls.md).
|
|
46
|
+
The runner executes project commands from `.agent-os/quality.json`; required failures block delivery.
|
|
47
|
+
Do not rerun unchanged failing checks in a loop. Fix the failure or report the blocker.
|
|
48
|
+
Policy changes require an explicit acknowledgement with the already-authorized reason; do not ask
|
|
49
|
+
for approval again when the task authorizes the change or clear the baseline to hide it. A
|
|
45
50
|
fresh `check` proves evidence freshness, not code quality, passing tests, or completed review. The
|
|
46
51
|
runner currently inspects dependencies only in the root `package.json`; do not infer Java or
|
|
47
52
|
workspace-package coverage from it. Run relevant configured analyzers outside the model, pass short
|
|
48
53
|
actionable deltas to review, and reuse results only while their inputs, configuration, and tool
|
|
49
54
|
versions remain unchanged. Do not install analyzers or invent thresholds for an ordinary task.
|
|
50
55
|
|
|
51
|
-
The Stop hook blocks
|
|
52
|
-
|
|
56
|
+
The Stop hook blocks an active lifecycle violation (a corrupt baseline or missing/stale check),
|
|
57
|
+
unacknowledged control-policy changes, or failed explicit project requirements. It checks recorded
|
|
58
|
+
results and their inputs without rerunning project commands. State is bound to the current Git worktree and host session: Claude uses
|
|
53
59
|
`CLAUDE_CODE_SESSION_ID`, Codex uses `CODEX_THREAD_ID`, and standalone/manual use has a deterministic
|
|
54
60
|
fallback. `begin`, `check`, and `clear` use those command environments, preferring Codex when both
|
|
55
61
|
IDs exist. Stop uses payload
|
|
56
62
|
`session_id`, treating a non-empty `turn_id` as Codex and otherwise as Claude; without `session_id`,
|
|
57
63
|
it retains the command environment for direct/manual use. A worktree without an active baseline for
|
|
58
64
|
the current session is a cheap no-op. A re-entered Stop hook remains blocked until that same session
|
|
59
|
-
records a fresh `check`; the `stop_hook_active` payload does not bypass the lifecycle requirement. A fresh Stop clears only the
|
|
65
|
+
records a fresh passing `check`; the `stop_hook_active` payload does not bypass the lifecycle requirement. A fresh passing Stop clears only the
|
|
60
66
|
current session state. Run `clear` deliberately from the same host session when abandoning an
|
|
61
67
|
implementation attempt; uninstall is not currently a command.
|
|
62
68
|
|