@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.
Files changed (30) hide show
  1. package/README.md +5 -6
  2. package/package.json +2 -2
  3. package/policy.md +18 -9
  4. package/skills/batch-work/SKILL.md +4 -2
  5. package/skills/batch-work/references/manifest.md +8 -0
  6. package/skills/deliver-work/workflow.md +36 -3
  7. package/skills/dispatch-next/SKILL.md +4 -3
  8. package/skills/explain-work/SKILL.md +6 -5
  9. package/skills/init-agent-os/SKILL.md +3 -2
  10. package/skills/init-agent-os/references/repository-init.md +3 -2
  11. package/skills/list-skills/SKILL.md +3 -3
  12. package/skills/plan-work/SKILL.md +100 -0
  13. package/skills/plan-work/references/elicitation.md +28 -0
  14. package/skills/plan-work/references/map.md +108 -0
  15. package/skills/{chart-work → plan-work}/references/prototypes.md +6 -7
  16. package/skills/quality-ratchet/SKILL.md +11 -5
  17. package/skills/quality-ratchet/references/project-controls.md +135 -0
  18. package/skills/quality-ratchet/scripts/project-controls.mjs +186 -0
  19. package/skills/quality-ratchet/scripts/project-controls.test.mjs +175 -0
  20. package/skills/quality-ratchet/scripts/quality-delta.mjs +60 -7
  21. package/skills/scope-guard/SKILL.md +35 -19
  22. package/skills/shape-work/SKILL.md +34 -11
  23. package/skills/shape-work/references/implementation-issues.md +29 -8
  24. package/skills/understand-work/SKILL.md +4 -3
  25. package/skills/chart-work/SKILL.md +0 -42
  26. package/skills/chart-work/references/elicitation.md +0 -25
  27. package/skills/chart-work/references/map.md +0 -84
  28. package/skills/guide-me/SKILL.md +0 -36
  29. package/skills/guide-me/agents/openai.yaml +0 -2
  30. /package/skills/{chart-work → plan-work}/agents/openai.yaml +0 -0
@@ -1,32 +1,48 @@
1
1
  ---
2
2
  name: scope-guard
3
- description: Detects and contains task drift while implementation or review is already in progress. It activates when unrelated work, opportunistic cleanup, extra dependencies, or broadened requirements appear beyond the agreed request or spec, before adding them to the diff. It skips initial scoping and planning, root-cause diagnosis, and verification of work already inside scope.
3
+ description: Detects and contains task drift while implementation or review is already in progress by classifying discoveries on relation and mandate axes. It activates when required, adjacent, or unrelated work or a new decision or external action appears beyond the agreed request or spec. It skips initial scoping and planning, root-cause diagnosis, and verification of work already inside scope.
4
4
  ---
5
5
 
6
6
  # Guard scope
7
7
 
8
- Keep the active change aligned with the developer's requested outcome.
8
+ Keep the active change aligned with the developer's requested outcome. The direct request,
9
+ accepted spec, and project policy define the boundary. Classify every discovery on both axes before
10
+ editing:
9
11
 
10
- The direct request, accepted spec, and project policy define the boundary. When new work appears,
11
- classify it:
12
+ - **Relation — required:** the requested outcome cannot work or be verified without it. It normally
13
+ belongs in the current mission.
14
+ - **Relation — adjacent:** useful improvement that is relevant but not needed now. Offer it as a
15
+ valuable follow-up only when it is actionable.
16
+ - **Relation — unrelated:** no relevant connection to the requested outcome. Leave it out and do
17
+ not manufacture a proposal.
18
+ - **Mandate — covered:** the existing request and policy cover the work. Continue within the
19
+ covered boundary; do not ask for a second approval.
20
+ - **Mandate — new decision or external action:** the existing authority does not cover it. Ask a
21
+ focused question only when the required work cannot proceed without that decision or action.
12
22
 
13
- - **Required:** the requested outcome cannot work or be verified without it. Include it and explain
14
- the dependency.
15
- - **Adjacent:** useful cleanup or hardening that is not needed now. Leave it out and mention it only
16
- when it is actionable.
17
- - **Conflicting:** it changes product behavior, architecture, dependencies, a public interface, or
18
- delivery risk. Ask the developer before crossing that boundary.
23
+ Risk controls how covered work is implemented and verified. Risk can reveal a missing decision, but
24
+ belonging to a risk area does not automatically require new permission. Check architecture, public
25
+ interfaces, dependencies, and delivery risk against settled decisions and boundaries. Ask when a
26
+ material choice has no coverage.
27
+
28
+ A required discovery with covered mandate is included. A required discovery that changes a product
29
+ contract or explicit boundary returns to `plan-work`. Adjacent work does not delay authorized
30
+ delivery, and unrelated work gets no invented proposal. A motivated split of required work goes
31
+ through `shape-work`.
19
32
 
20
33
  Behavior-preserving extraction within the touched surface is allowed when it clarifies responsibility
21
34
  or reuses an existing contract. Do not classify every new helper as an architecture change.
22
35
 
23
- The implementer may reject unsupported review requests with evidence. For actionable adjacent work,
24
- search for an existing issue before proposing another. If the request or project policy authorizes
25
- follow-up issue creation, and no explicit read-only instruction forbids it, create or update it
26
- with the concrete problem, impact, and acceptance
27
- condition. Otherwise collect worthwhile follow-ups into one question with a recommended disposition
28
- and draft content. Do not create tickets for rejected preferences or delay authorized delivery while
29
- waiting on an optional backlog decision. Report any unresolved delivery blocker separately.
36
+ For an actionable adjacent item, search for an existing issue first. If the request or project
37
+ policy authorizes follow-up issue creation, and no explicit read-only instruction forbids it, create
38
+ or update one concrete follow-up with its problem, impact, and acceptance condition. Otherwise
39
+ collect worthwhile follow-ups into one question with a recommended disposition and draft content.
40
+ Do not create tickets for rejected preferences or delay authorized delivery while waiting on an
41
+ optional backlog decision. Report any unresolved delivery blocker separately.
42
+
43
+ Tracker readiness or an existing issue does not grant mutation authority. Write tracker changes only
44
+ when the request or project policy covers them; otherwise keep the correction local and report the
45
+ pending delta.
30
46
 
31
- Before delivery, inspect the diff for unrelated edits. Preserve pre-existing developer work; scope
32
- control never grants permission to revert it.
47
+ Before delivery, inspect the diff for unrelated edits. Preserve pre-existing developer work;
48
+ scope control never grants permission to revert it.
@@ -1,44 +1,67 @@
1
1
  ---
2
2
  name: shape-work
3
- description: Shapes a bounded idea into implementation-ready issues backed by settled product decisions. User-invoked while material product choices remain. Not for small fixes or work whose outcome is already clear.
3
+ description: Shapes a bounded mission into coherent delivery units, dependencies, and implementation-ready issues backed by settled product decisions. User-invoked when delivery structure or an epic contract still needs shaping. Not for small fixes or work whose outcome and delivery unit are already clear.
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
- # shape-work
7
+ # Shape work
8
8
 
9
- Produce the smallest set of implementation-ready issues that lets delivery proceed without inventing
10
- product intent.
9
+ Produce the smallest coherent delivery structure that lets delivery proceed without inventing
10
+ product intent. A delivery unit is the smallest independently useful or assessable result that has
11
+ its own meaningful boundary; technical layers are not delivery units by themselves.
11
12
 
12
13
  Read [references/implementation-issues.md](references/implementation-issues.md) before shaping.
13
14
 
14
15
  ## Loop
15
16
 
16
- Read the repository, project policy, and any linked chart-work decisions before asking questions.
17
- Resolve facts from those sources. For each remaining material choice, recommend an answer, explain
18
- the consequence, and ask only what the developer must decide.
17
+ Read the repository, project policy, and any linked `plan-work` decisions or handoffs before asking
18
+ questions. Resolve facts from those sources. For each remaining material choice, recommend an
19
+ answer, explain the consequence, and ask only what the developer must decide. A pre-existing
20
+ specification is a valid starting point; a plan-work run is not required.
19
21
 
20
22
  Use a diagram or mockup when it makes behavior, layout, states, or boundaries materially easier to
21
23
  judge. Frontend proposals follow [references/mockups.md](references/mockups.md). Do not create a
22
24
  visualization merely to satisfy the workflow.
23
25
 
24
26
  When a solution-changing assumption needs observation, apply the
25
- [experiment decision](../chart-work/references/prototypes.md), including small technical experiments
27
+ [experiment decision](../plan-work/references/prototypes.md), including small technical experiments
26
28
  and comparable UI alternatives. Do not turn a question with sufficient evidence into a prototype.
27
29
 
28
30
  Deliver the coherent product shape: outcome, boundaries, acceptance examples, affected seams,
29
31
  ground truth, settled decisions, and open risks. Then create or reuse its implementation issues on
30
32
  the configured planning surface. With no configured tracker, use the local-file fallback in the
31
- reference. Link dependencies and expose the first claimable delivery frontier.
33
+ reference. Link real dependencies and expose the first claimable delivery frontier.
34
+
35
+ Start from one coherent delivery unit. Split only for a concrete reason such as an independently
36
+ usable or assessable result, different ownership, a separate migration, a delivery boundary, or a
37
+ material risk and verification boundary. A separate commit, session, file, or technical layer is
38
+ not enough. Keep necessary schema, API, UI, configuration, error handling, and verification with
39
+ the behavior they support.
40
+
41
+ The result may be one issue, several independent issues without an epic, or an epic with children
42
+ when one shared end result needs an owner. Before publishing, check that the whole mission is
43
+ covered, each issue contributes, dependencies are real, and the complete set can be verified.
32
44
 
33
45
  One shape may produce one or several sequential or parallel issues. Multiple issues do not imply
34
46
  `batch-work`: each ready issue can be delivered with `deliver-work`, while `batch-work` remains an
35
47
  explicit developer choice for integrated parallel execution. Do not start either workflow unless
36
48
  the request includes implementation.
37
49
 
38
- When shaping started from a chart-work handoff, reconcile the issue links and readiness back into
39
- the origin handoff and map. A handoff alone is not delivery-ready. Shape-work is complete only when
50
+ When shaping started from a plan-work handoff, reconcile the issue links and readiness back into the
51
+ origin handoff and map. A handoff alone is not delivery-ready. Shape-work is complete only when
40
52
  every selected branch points to implementation-ready issues or is explicitly parked or rejected.
41
53
 
54
+ An epic has an explicit contract in [implementation issues](references/implementation-issues.md):
55
+ shared outcome and acceptance, children or delivery units, aggregate verification, and an owner
56
+ for final verification. A child issue does not authorize the rest of the epic or permit closing its
57
+ parent. `deliver-work` performs aggregate verification when the request covers the epic;
58
+ `batch-work` uses the same contract for an explicitly selected integrated run.
59
+
60
+ Planning-surface writes do not grant product implementation or external tracker authority. When
61
+ tracker maintenance is authorized, keep it within the requested set and do not silently change
62
+ acceptance, ownership, delivery scope, or closure. A ready issue is not an authorization. Without
63
+ that mandate, keep corrections local and report the pending tracker delta.
64
+
42
65
  Recommend one concrete next action with its reason and blocker, weighing uncertainty and downstream
43
66
  work unlocked as well as project priority. A ready frontier alone is not enough guidance. Continue
44
67
  into authorized sequential delivery only when the request includes that bounded implementation;
@@ -10,18 +10,20 @@ With no project convention, use:
10
10
  planning/<shape-slug>/implementation/<unit-key>.md
11
11
  ```
12
12
 
13
- When the shape originates from `guide-me`, place the approved plain-language summary as a `## TLDR`
14
- at the top of the shape's origin document, so the shape opens with what it solves before any
15
- technical detail.
13
+ When a plan-work run supplied a plain-language summary for an actual decision, link it from the
14
+ shape's origin document. Do not turn summary approval into a second gate or copy the plan into a
15
+ competing specification.
16
16
 
17
17
  ## Completion invariant
18
18
 
19
19
  A selected product branch is not `delivery-ready`, and shape-work is not complete, until one or
20
20
  more implementation issues have been created or reused. A parked or rejected branch needs no issue.
21
21
 
22
- Each issue represents one coherent delivery unit: one observable outcome with a reviewable change
23
- boundary and ground truth that can verify it. The unit may depend on earlier units, but it must not
24
- contain an unresolved product decision or several separately closable delivery targets.
22
+ Each issue represents one coherent delivery unit: an independently useful or assessable result with
23
+ a reviewable change boundary and ground truth that can verify it. The unit may depend on earlier
24
+ units, but technical layers that support the same behavior stay together. Split only for a concrete
25
+ delivery, ownership, migration, risk, or verification boundary; separate commits, sessions, files,
26
+ or technical layers are not sufficient reasons.
25
27
 
26
28
  ## Issue contract
27
29
 
@@ -49,6 +51,25 @@ decisions are settled and its dependencies are satisfied; otherwise record the e
49
51
  delivery frontier is the set of ready, unblocked implementation issues. Use the planning surface's
50
52
  existing status and label conventions rather than inventing a parallel queue vocabulary.
51
53
 
54
+ ## Epic contract
55
+
56
+ When one shared end result needs an owner, shape an epic with this contract instead of splitting
57
+ every technical layer into a child:
58
+
59
+ ```text
60
+ ## Epic contract
61
+ Epic outcome: <shared observable result>
62
+ Acceptance: <aggregate acceptance examples>
63
+ Children or delivery units: <links and why each boundary exists>
64
+ Aggregate verification: <checks for the complete result>
65
+ Final verification owner: <person or delivery role>
66
+ ```
67
+
68
+ The contract belongs to shape-work and is consumed by delivery. A child issue contributes to the
69
+ epic but does not authorize its siblings, change its acceptance, or close the parent. Green child
70
+ checks are not aggregate verification. `deliver-work` owns the whole-result check when the request
71
+ covers the epic, and `batch-work` reuses this same contract for an explicitly selected batch.
72
+
52
73
  ## Routing belongs to the developer
53
74
 
54
75
  Expose the frontier without choosing an execution workflow:
@@ -61,9 +82,9 @@ Expose the frontier without choosing an execution workflow:
61
82
  Issue creation is a planning write, not implementation authority. Do not edit product code, start a
62
83
  batch, merge, deploy, or perform external delivery effects under a planning-only shape-work invocation.
63
84
 
64
- ## Chart-work reconciliation
85
+ ## Plan-work reconciliation
65
86
 
66
- When the origin is a chart-work handoff, update the handoff and map idempotently after materializing
87
+ When the origin is a plan-work handoff, update the handoff and map idempotently after materializing
67
88
  the issues. Link every implementation issue, record the ready or blocked frontier, and move the
68
89
  branch from shaping to `delivery-ready` only when the completion invariant holds. Preserve
69
90
  concurrent map entries and keep decision tickets canonical for their evidence.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: understand-work
3
- description: Questions out what the developer actually needs behind a stated wish, one load-bearing question at a time. User-invoked directly or as the questioning stage of guide-me. Not for requests whose goal is already articulated or for facts the repository answers.
3
+ description: Questions out what the developer actually needs behind a stated wish, one load-bearing question at a time. User-invoked directly or as the questioning stage of plan-work. Not for requests whose goal is already articulated or for facts the repository answers.
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -27,5 +27,6 @@ a specific question. Do not propose a technical solution while the goal is still
27
27
 
28
28
  Questioning ends when the developer says it is done or when further answers stop changing the goal.
29
29
  Deliver the settled understanding: the goal, its motivation, the choices made with their reasons,
30
- the ruled-out directions, and the questions that remain open. Under guide-me this feeds the
31
- plain-language gate in explain-work; standalone, report it directly.
30
+ the ruled-out directions, and the questions that remain open. Under plan-work this informs the
31
+ mission plan; it does not by itself require a plain-language approval gate. Standalone, report it
32
+ directly.
@@ -1,42 +0,0 @@
1
- ---
2
- name: chart-work
3
- description: Charts broad work as a parallel graph of evidence-backed decision tickets. User-invoked when an effort spans several decision threads or sessions. Not for one bounded choice or decision-ready implementation.
4
- disable-model-invocation: true
5
- ---
6
-
7
- # Chart work
8
-
9
- Turn fog into decision tickets that can move independently. The ticket is canonical; the map is an
10
- index that can be repaired from its children.
11
-
12
- Read project policy and [references/map.md](references/map.md). Use
13
- [references/elicitation.md](references/elicitation.md) for developer decisions and
14
- [references/prototypes.md](references/prototypes.md) when a solution-changing uncertainty may be
15
- settled by an experiment. Choose that evidence path proactively; do not make prototypes mandatory.
16
-
17
- ## Chart
18
-
19
- Name the destination and boundaries. Create tickets for precise questions, leave immature unknowns
20
- in Fog, connect dependencies, and expose the open unblocked frontier. The invocation authorizes
21
- writes to the configured planning surface. Report the resulting parallel starts.
22
-
23
- Recommend one frontier action using project priorities, uncertainty reduced, and downstream work
24
- unlocked relative to effort. Explain why it wins; a list of unblocked tickets is not a recommendation.
25
-
26
- ## Resolve
27
-
28
- Read and claim one open frontier ticket by default; explicit parallel execution may claim several
29
- independent tickets in separate contexts. Produce evidence, record the decision and consequence,
30
- then update the map without overwriting concurrent work. Human preference evidence must come from
31
- the developer; the agent may recommend and challenge but cannot invent the answer.
32
-
33
- When a branch becomes bounded enough for one `shape-work` session, create or reuse one linked
34
- handoff containing settled decisions and remaining questions. This moves the branch to shaping; it
35
- does not make the branch delivery-ready. Shape-work later creates the implementation issues and
36
- reconciles their links and frontier into the map. A selected branch in shaping keeps the map open.
37
- Close the decision map only when every selected path is delivery-ready, parked, or ruled out and no
38
- Fog remains.
39
-
40
- Planning writes do not imply product implementation. Side discoveries become child decisions,
41
- ordinary backlog items, shaping handoffs, or parked paths rather than hidden scope expansion.
42
- Isolated prototype artifacts follow the authority and stop conditions in the prototype reference.
@@ -1,25 +0,0 @@
1
- # Elicitation and evidence
2
-
3
- Ask for the smallest evidence that can settle the active ticket.
4
-
5
- ## Developer choice
6
-
7
- Follow the questioning loop in [understand-work](../../understand-work/SKILL.md). When words are
8
- insufficient, use a prototype.
9
-
10
- ## Research
11
-
12
- Use repository evidence, primary sources, or direct measurements. Cite the decisive source or
13
- observation and state uncertainty that could change the decision.
14
-
15
- ## Prototype
16
-
17
- Follow [prototypes.md](prototypes.md). Separate observed behavior from the developer's judgment.
18
-
19
- ## Prerequisite task
20
-
21
- Do only the prerequisite needed to make the decision stateable. Record the result and the question
22
- it unlocked.
23
-
24
- Do not treat silence, momentum, or approval of a larger bundle as an answer to a specific product
25
- choice.
@@ -1,84 +0,0 @@
1
- # Decision map
2
-
3
- The configured planning surface owns the map and its tickets. With no project convention, use:
4
-
5
- ```text
6
- planning/<map-slug>/map.md
7
- planning/<map-slug>/decisions/<ticket-slug>.md
8
- planning/<map-slug>/shape-work/<branch-key>.md
9
- ```
10
-
11
- ## Map
12
-
13
- Keep the map low-resolution and rebuildable from its tickets:
14
-
15
- ```text
16
- ## TLDR
17
- ## Destination
18
- ## Boundaries
19
- ## Decisions
20
- - <ticket> → <decision gist> (<link>)
21
- ## Fog
22
- ## Shaping handoffs
23
- - <branch> → <shape-work handoff> (<link>)
24
- ## Delivery-ready branches
25
- - <branch> → <implementation issues and frontier> (<links>)
26
- ## Spawned work
27
- ```
28
-
29
- The map orients. It does not duplicate ticket evidence. `## TLDR` holds the approved plain-language
30
- summary when the map originates from `guide-me`; omit the section otherwise.
31
-
32
- ## Decision tickets
33
-
34
- Every ticket states one question, why it matters, the evidence needed, and its dependencies. Choose
35
- the evidence path that fits:
36
-
37
- - `research`: repository evidence, primary sources, or measurements;
38
- - `prototype`: a comparison that makes the contested behavior observable;
39
- - `grilling`: a product trade-off the developer must decide;
40
- - `task`: a prerequisite needed before the decision can be stated.
41
-
42
- An open, unblocked, unclaimed ticket is on the frontier. Claim before working and re-read live state
43
- before writing. Independent frontier tickets may run in parallel; each worker writes its own ticket.
44
-
45
- Resolve a ticket with:
46
-
47
- ```text
48
- ## Decision
49
- ## Evidence
50
- ## Rejected alternatives
51
- ## Consequence
52
- ## New work
53
- ## Open risks
54
- ```
55
-
56
- Evidence must support the decision. Route new findings as child decisions, ordinary backlog work,
57
- shaping handoffs, or parked paths.
58
-
59
- ## Shape-work handoff
60
-
61
- When a branch's remaining product choices fit one bounded session, create or reuse a handoff.
62
- Identity is `(origin map, branch key)`:
63
-
64
- ```text
65
- ## Shape-work handoff
66
- Origin map: <link or id>
67
- Branch key: <stable key>
68
-
69
- ## Outcome
70
- ## Boundaries
71
- ## Settled decisions
72
- ## Evidence and prototypes
73
- ## Questions left
74
- ```
75
-
76
- Search before creating so retries reuse the same handoff. Link it from the map and relevant source
77
- tickets. Update links idempotently and preserve concurrent entries. The handoff moves the branch to
78
- shaping, not to `delivery-ready`. After shaping, `shape-work` creates or reuses the implementation
79
- issues, records the ready or blocked frontier, and moves the branch to Delivery-ready branches. A
80
- planning handoff or implementation issue does not authorize product implementation; a later
81
- implementation request does.
82
-
83
- A selected branch in shaping keeps the map open. Close it only when selected paths are
84
- delivery-ready, parked, or ruled out and no Fog remains.
@@ -1,36 +0,0 @@
1
- ---
2
- name: guide-me
3
- description: Guides the developer from a vague desire to work they did not know they wanted, through questioning and a plain-language gate, then continues into chart-work or shape-work. User-invoked when the developer cannot yet state what they want. Not for bounded choices, mapped decision work, or implementation-ready requests.
4
- disable-model-invocation: true
5
- ---
6
-
7
- # Guide me
8
-
9
- Take a developer who cannot yet state what they want to an approved goal and into the right
10
- planning workflow. Guide-me writes no product code and no implementation issues.
11
-
12
- ## Understand
13
-
14
- Run the questioning loop in [understand-work](../understand-work/SKILL.md) until the goal stops
15
- moving or the developer says it is done.
16
-
17
- ## Explain
18
-
19
- Run the plain-language gate in [explain-work](../explain-work/SKILL.md) on the settled
20
- understanding. A challenge reopens understand-work at the misunderstood point. Do not continue
21
- without an approved summary.
22
-
23
- ## Continue
24
-
25
- The approved summary decides the route:
26
-
27
- - several independent decision threads → continue into `chart-work`;
28
- - one bounded idea with material product choices left → continue into `shape-work`;
29
- - something already small and clear → hand the developer a ready-to-send direct request instead of
30
- a workflow.
31
-
32
- The developer's approval at the gate is the opt-in for this continuation. Announce the route, then
33
- proceed with the approved summary and the settled understanding as the handoff. Place the approved
34
- summary as a `## TLDR` at the top of the artifact the next workflow creates, so the map or shape
35
- opens with what the work solves in plain language. Ruled-out directions and open questions travel
36
- with the handoff; nothing already answered is asked again.
@@ -1,2 +0,0 @@
1
- policy:
2
- allow_implicit_invocation: false