@alphazede/bearing-lite 0.1.0 → 0.1.8

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 (34) hide show
  1. package/README.md +97 -67
  2. package/hooks/activation.cjs +2 -1
  3. package/hooks/com.anthropic.claude-code/host.cjs +437 -0
  4. package/hooks/com.anthropic.claude-code/mapping.md +69 -0
  5. package/hooks/com.cursor/hooks.json +15 -0
  6. package/hooks/hooks.json +35 -0
  7. package/package.json +7 -4
  8. package/plugin.json +34 -2
  9. package/skills/bearing-lite/SKILL.md +43 -36
  10. package/skills/bearing-lite/agents/openai.yaml +7 -0
  11. package/skills/bearing-lite/references/peer-synthesis.md +19 -0
  12. package/skills/bearing-lite/references/role-routing.mmd +19 -32
  13. package/skills/bearing-lite/references/task-state.md +19 -1
  14. package/skills/bearing-lite/references/task-state.mmd +1 -1
  15. package/skills/bearing-lite/templates/default-role-lineup.md +24 -0
  16. package/skills/bearing-lite/templates/task.md +56 -0
  17. package/skills/crewmate/SKILL.md +42 -30
  18. package/skills/explorer/SKILL.md +50 -31
  19. package/skills/gather-supplies/SKILL.md +46 -26
  20. package/skills/map-the-route/SKILL.md +39 -26
  21. package/skills/map-the-route/references/artifact-grammar.md +10 -10
  22. package/skills/navigator/SKILL.md +51 -37
  23. package/skills/park-ranger/SKILL.md +29 -24
  24. package/skills/repository-fit/SKILL.md +26 -19
  25. package/skills/set-bearings/SKILL.md +25 -19
  26. package/skills/surveyor/SKILL.md +26 -24
  27. package/skills/validator/SKILL.md +28 -27
  28. package/guide/migration.md +0 -168
  29. package/skills/bearing-lite/assets/role-routing.png +0 -0
  30. package/skills/bearing-lite/assets/task-state.png +0 -0
  31. package/skills/delegate-authority/SKILL.md +0 -38
  32. package/skills/sub-explorer/SKILL.md +0 -37
  33. package/skills/trail-boss/SKILL.md +0 -38
  34. package/skills/trail-boss/agents/openai.yaml +0 -4
package/README.md CHANGED
@@ -5,93 +5,131 @@
5
5
 
6
6
  **Bearing Lite** (`@alphazede/bearing-lite`) is a skills-first Agent Plugin for
7
7
  planning, routing, bounded execution, and independent review of repository work.
8
- It ships portable skills, references, templates, and optional client hooks. It
9
- does **not** ship a CLI, MCP server, browser control room, local scheduler, or
10
- hidden runtime database.
8
+ It ships portable skills, references, templates, and optional client hooks.
11
9
 
12
- An agent cannot certify its own work. The router selects the smallest valid
13
- route; independent assurance roles run only when declared, owner-selected, or
14
- required by a mandatory integrated phase gate. Owner Authority remains human-only.
10
+ An agent cannot certify its own work. The stateful Router owns the planning
11
+ conversation and visible Journey state, then dispatches fresh bounded sessions.
12
+ Independent assurance runs at the owner's selected cadence: per slice, per
13
+ execution/correction round, or once at the end. Owner Authority remains human-only.
15
14
 
16
- Bearing Lite was created by William Rumph at AlphaZede.
15
+ Bearing Lite was created by William Rumph.
16
+
17
+ ## Quick start with Pi
18
+
19
+ Install the published skills package:
20
+
21
+ ```sh
22
+ pi install npm:@alphazede/bearing-lite
23
+ ```
24
+
25
+ Then give your agent a real task:
26
+
27
+ > Use Bearing Lite to add rate limiting to this API without changing its public
28
+ > responses. Require one independent review at the end.
29
+
30
+ Bearing Lite asks whether the work is an Explorer Journey or an Expedition,
31
+ fills only the missing planning stages, confirms the agent lineup and review
32
+ cadence, and dispatches bounded sessions with visible Markdown state.
33
+
34
+ If Bearing Lite helps keep a long agent task scoped and reviewable,
35
+ [star the repository](https://github.com/alphazede/bearing-lite). It helps other
36
+ coding-agent users find it.
17
37
 
18
38
  ## Install
19
39
 
20
- Install as an Agent Plugin in a compatible client (for example Codex or Claude
21
- Code marketplaces that discover Agent Plugins `plugin.json` and `skills/`).
40
+ Install as a host plugin. The portable identity is always `bearing-lite` /
41
+ `@alphazede/bearing-lite`. No postinstall script, global hook copy, or
42
+ host-config mutation is required.
22
43
 
23
44
  ```sh
24
- # Example: npm package for packaging and inspection
25
- npm pack @alphazede/bearing-lite
45
+ # Claude Code
46
+ claude plugin marketplace add /path/to/bearing-lite
47
+ claude plugin install bearing-lite@bearing-lite
48
+
49
+ # Codex
50
+ codex plugin marketplace add /path/to/bearing-lite
51
+ codex plugin add bearing-lite@bearing-lite
52
+
53
+ # Grok Build
54
+ grok plugin marketplace add /path/to/bearing-lite
55
+ grok plugin install bearing-lite --trust
56
+
57
+ # Cursor
58
+ # Add the checkout as a Cursor marketplace/plugin (.cursor-plugin/)
59
+
60
+ # Kimi Code
61
+ # /plugins install /path/to/bearing-lite
62
+
63
+ # AGY (Antigravity) — install the .agy root, not the repo root
64
+ agy plugin install /path/to/bearing-lite/.agy
65
+
66
+ # Pi — skills package, no command hooks
67
+ pi install npm:@alphazede/bearing-lite
26
68
  ```
27
69
 
28
- Client install names follow the host plugin UI. The portable identity is always
29
- `bearing-lite` / `@alphazede/bearing-lite`. No postinstall script, global hook
30
- copy, or host-config mutation is required.
70
+ Claude Code, Codex, Grok Build, Cursor, and Kimi Code are **partial** hook
71
+ clients: session start runs the activation advisory and stop runs the closeout
72
+ advisory. AGY and Pi are **skills-only**. Transition-order and protected-action
73
+ checks stay in the skills on every host. Node.js must be on `PATH` for the
74
+ hook adapters.
31
75
 
32
- Node.js is not required to *use* the skills. Optional typed hook adapters under
33
- `hooks/` run only when a client registers them; hookless clients remain
34
- first-class and use procedural skill checks.
76
+ **Skills-only copy** of `skills/` into a host skills directory does not
77
+ register hooks. That path remains first-class. See
78
+ [`hooks/com.anthropic.claude-code/mapping.md`](hooks/com.anthropic.claude-code/mapping.md).
35
79
 
36
80
  ## What it does
37
81
 
38
- 1. **Locate** the project plan and next ready task.
82
+ 1. **Ask** whether the Journey is an Explorer Journey or an Expedition.
39
83
  2. **Fill only missing planning stages:** Repository Fit → Set Bearings → Gather
40
84
  Supplies → Map the Route.
41
- 3. **Choose the smallest role route** that preserves dependencies and
42
- `required_assurance`.
43
- 4. **Record task state** only in the project's human-readable plan (Markdown).
44
- 5. **Return structured handoffs**; parent coordinators write plan transitions.
85
+ 3. **Confirm** the user-owned primary/fallback lineup and review cadence.
86
+ 4. **Dispatch fresh sessions** with bounded context, authority, and return types.
87
+ 5. **Record state visibly** in human-readable Markdown artifacts only.
45
88
 
46
89
  Bearing Lite never selects models, providers, credentials, or launchers. The
47
- owner or client maps available agents to role capability needs.
90
+ owner provides each role's primary/fallback agent or harness, model, and
91
+ reasoning level in `~/.agents/bearing-lite/default-role-lineup.md`, then confirms
92
+ the applicable Journey snapshot before implementation.
48
93
 
49
94
  ## Routes and scaling
50
95
 
51
96
  | Route | When | Cost |
52
97
  |---|---|---|
53
- | **Direct** | One bounded implementer packet | Lowest coordination |
54
- | **Explorer (wave)** | One wave, one or more Crewmates | One lane controller |
55
- | **Expedition** | Multi-phase or concurrent independent lanes | Navigator; Trail Boss only for concurrent/conflicting waves |
56
- | **Long multi-phase** | Owner-approved intent across sessions | Optional Delegate Authority |
98
+ | **Explorer Journey** | One bounded packet or one wave | Direct Crewmate or one Explorer |
99
+ | **Expedition** | Multi-phase or concurrent independent lanes | Navigator |
57
100
 
58
- **Explorer** keeps one controller over a compact or sequential set of slices.
59
- **Expedition** adds navigation (and sometimes a Trail Boss) so independent lanes
101
+ An **Explorer Journey** uses a direct Crewmate for one ready packet or one
102
+ Explorer over a compact/sequential wave.
103
+ **Expedition** adds navigation so independent lanes
60
104
  stay small and sharp instead of degrading in one long context. Either shape can
61
105
  use substantial tokens; the product does not impose a default budget ceiling.
62
106
 
63
107
  ### Role routing (explanatory)
64
108
 
65
- ![Bearing Lite role routing: Owner Authority and the router select missing planning stages, then the smallest route among Direct Crewmate, Explorer wave, Expedition Navigator, or long multi-phase Delegate Authority; optional Trail Boss, Sub-explorer, and assurance roles appear only when required](skills/bearing-lite/assets/role-routing.png)
66
-
67
- Reviewable Mermaid source: [`skills/bearing-lite/references/role-routing.mmd`](skills/bearing-lite/references/role-routing.mmd)
68
- (plan-local twin under `docs/plans/2026-08-09-bearing-skills-first-architecture/assets/`).
109
+ Current routing diagram source: [`skills/bearing-lite/references/role-routing.mmd`](skills/bearing-lite/references/role-routing.mmd).
110
+ The text below remains authoritative for clients that do not render Mermaid.
69
111
 
70
112
  **Authoritative text (vision optional):** Owner Authority remains human-only. The
71
- Bearing Lite Router is entry, not a work role. It invokes only missing planning
72
- stages, then picks the least costly route: Direct Crewmate; Explorer for one
73
- wave; Navigator for an expedition (Trail Boss only when waves conflict or run
74
- concurrently); Delegate Authority only for explicit long multi-phase owner
75
- delegation. Nested Sub-explorer opens only when a lane must split. After
76
- Crewmate work, `required_assurance: none` means author self-check plus
77
- coordinator confirmation; Validator, Park Ranger, and Surveyor appear only when
78
- listed, owner-selected at slice level, or required by a mandatory phase gate.
79
- Diagrams explain orientation; they never authorize a transition.
113
+ Bearing Lite Router is the stateful planning controller, not a work role. It
114
+ invokes only missing planning stages in fresh sessions, confirms the owner's
115
+ lineup and cadence, then dispatches an Explorer Journey or Expedition. Explorer
116
+ coordinates proven-independent in-wave lanes without a nested coordinator.
117
+ Validator, Park Ranger,
118
+ and Surveyor appear only when declared and when the selected per-slice,
119
+ per-round, or at-end boundary is reached. Diagrams explain orientation; they
120
+ never authorize a transition.
80
121
 
81
122
  ## Roles and authority
82
123
 
83
124
  | Role | What it is | Executes | Notes |
84
125
  |---|---|---|---|
85
- | **Router** | Plugin entry procedure | no | Not a work role |
86
- | **Navigator** | Expedition orchestrator | yes | Owns cross-wave sequencing |
87
- | **Trail Boss** | Multi-wave controller | yes | Only concurrent or conflicting waves |
88
- | **Explorer** | One-wave lane controller | yes | Dispatches Crewmates |
89
- | **Sub-explorer** | Nested lane controller | yes | Only when a lane must split |
90
- | **Crewmate** | Bounded implementer | yes | Writes only inside declared authority |
91
- | **Validator** | Evidence sufficiency | yes | Independent of the author |
92
- | **Park Ranger** | Defect review | yes | Independent of the author |
93
- | **Surveyor** | User-facing acceptance | no | Read-only acceptance judgment |
94
- | **Delegate Authority** | Cross-session phase owner | yes | Only when owner explicitly delegates |
126
+ | **Router** | Stateful planning controller | no | User-facing; planning-state writer |
127
+ | **Navigator** | Expedition orchestrator | no | Owns cross-wave sequencing and conflicts |
128
+ | **Explorer** | One-wave controller | no | Dispatches Crewmates; owns proven-independent lanes |
129
+ | **Crewmate** | Bounded implementer | yes | Most hands-on work; exact write set |
130
+ | **Validator** | Evidence sufficiency | no | Independent of the author |
131
+ | **Park Ranger** | Defect review | no | Independent of the author |
132
+ | **Surveyor** | User-facing acceptance | no | Read-only outcome judgment |
95
133
  | **Owner Authority** | Human decision | n/a | Never an agent role |
96
134
 
97
135
  **Independent review:** a candidate author never provides their own Validator,
@@ -102,21 +140,21 @@ Failure escalates to the nearest role whose scope can see it:
102
140
  | Failure scope | Escalates to |
103
141
  |---|---|
104
142
  | Within one slice or packet | Explorer or nearest parent |
105
- | Across slices in a wave | Trail Boss when present, else Navigator |
106
- | Across phases | Navigator or Delegate Authority |
143
+ | Across slices in a wave | Explorer |
144
+ | Across waves or phases | Navigator |
107
145
  | Contract, security, or authority change | Owner Authority |
108
146
 
109
147
  ## Task state (explanatory)
110
148
 
111
- ![Bearing Lite task state machine: PROPOSED through READY, IN_PROGRESS, EVIDENCE_READY, optional VALIDATING or REVIEWING, ACCEPTANCE, COMPLETE, with WAITING_ON, CORRECTION_REQUIRED, OWNER_DECISION_REQUIRED, and CANCELLED paths](skills/bearing-lite/assets/task-state.png)
112
-
113
- Reviewable Mermaid source: [`skills/bearing-lite/references/task-state.mmd`](skills/bearing-lite/references/task-state.mmd).
149
+ Current task-state diagram source: [`skills/bearing-lite/references/task-state.mmd`](skills/bearing-lite/references/task-state.mmd).
150
+ The text below remains authoritative for clients that do not render Mermaid.
114
151
  Authoritative transition rules: [`skills/bearing-lite/references/task-state.md`](skills/bearing-lite/references/task-state.md).
115
152
 
116
153
  **Authoritative summary:** The project's plan is the only task-state record.
117
154
  Normal progress is `PROPOSED` → `READY` → `IN_PROGRESS` → `EVIDENCE_READY`, then
118
155
  optional `VALIDATING` / `REVIEWING` when required, then `ACCEPTANCE` →
119
- `COMPLETE`. `WAITING_ON` holds for missing prerequisites or assurance dispatch.
156
+ `COMPLETE`. `WAITING_ON` holds for missing prerequisites, checkout-lease
157
+ conflict, or assurance dispatch.
120
158
  `CORRECTION_REQUIRED` allows two in-authority repairs; a third failed correction
121
159
  escalates to `OWNER_DECISION_REQUIRED`. Diagrams never create state or authorize
122
160
  transitions.
@@ -177,7 +215,7 @@ flowchart TD
177
215
  |---|---|
178
216
  | `plugin.json` | Agent Plugins v1.0.0 manifest |
179
217
  | `skills/` | Router, planning stages, and role skills |
180
- | `hooks/` | Optional client-specific sequencing adapters |
218
+ | `hooks/` | Four portable class adapters plus the verified Claude Code / Codex mapping |
181
219
  | `README.md` and governance docs | Public product and conduct surfaces |
182
220
 
183
221
  There is no `mcp.json`, `bin` entrypoint, postinstall, or runtime dependency on
@@ -189,14 +227,6 @@ Skills declare **capabilities** (reasoning depth, repository access, mutation
189
227
  tools, independence, optional vision). They never pin a model, provider API key,
190
228
  default route, or launcher. Owners and clients choose how to satisfy each role.
191
229
 
192
- ## Migration note
193
-
194
- Bearing Lite does not import historical deep-harness run directories or hidden
195
- runtime state. Resume from the approved project plan and a verified
196
- human-readable handoff using native agent tools. See
197
- [guide/migration.md](guide/migration.md) for existing-run migration and
198
- owner distribution checkpoints.
199
-
200
230
  ## Contributing
201
231
 
202
232
  Issues and carefully scoped pull requests help. See
@@ -4,7 +4,8 @@
4
4
  /**
5
5
  * Bearing Lite activation/context advisory adapter (CONTRACT-HOOK-01).
6
6
  * Advisory only: outcomes are ADVISE or UNAVAILABLE. Never fabricates BLOCK.
7
- * Skills-only clients: enforcement remains procedural until a verified host maps it.
7
+ * Skills-only clients: enforcement remains procedural. Claude Code and Codex
8
+ * use the verified partial mapping in hooks/com.anthropic.claude-code/.
8
9
  */
9
10
 
10
11
  const HOOK_CLASS = "activation";