@alphazede/bearing-lite 0.1.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/CODE_OF_CONDUCT.md +45 -0
- package/CONTRIBUTING.md +74 -0
- package/LICENSE-APACHE +202 -0
- package/README.md +213 -0
- package/SECURITY.md +89 -0
- package/guide/migration.md +168 -0
- package/hooks/activation.cjs +163 -0
- package/hooks/closeout.cjs +242 -0
- package/hooks/protected-action.cjs +229 -0
- package/hooks/transition-order.cjs +290 -0
- package/package.json +37 -0
- package/plugin.json +22 -0
- package/skills/bearing-lite/SKILL.md +40 -0
- package/skills/bearing-lite/assets/role-routing.png +0 -0
- package/skills/bearing-lite/assets/task-state.png +0 -0
- package/skills/bearing-lite/references/role-routing.mmd +34 -0
- package/skills/bearing-lite/references/task-state.md +42 -0
- package/skills/bearing-lite/references/task-state.mmd +29 -0
- package/skills/bearing-lite/templates/task.md +55 -0
- package/skills/crewmate/SKILL.md +37 -0
- package/skills/delegate-authority/SKILL.md +38 -0
- package/skills/explorer/SKILL.md +38 -0
- package/skills/gather-supplies/SKILL.md +33 -0
- package/skills/map-the-route/SKILL.md +33 -0
- package/skills/map-the-route/references/artifact-grammar.md +83 -0
- package/skills/navigator/SKILL.md +44 -0
- package/skills/park-ranger/SKILL.md +38 -0
- package/skills/repository-fit/SKILL.md +33 -0
- package/skills/set-bearings/SKILL.md +33 -0
- package/skills/sub-explorer/SKILL.md +37 -0
- package/skills/surveyor/SKILL.md +38 -0
- package/skills/trail-boss/SKILL.md +38 -0
- package/skills/trail-boss/agents/openai.yaml +4 -0
- package/skills/validator/SKILL.md +41 -0
- package/skills/validator/references/grading-rubric.md +39 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Task state (authoritative text)
|
|
2
|
+
|
|
3
|
+
The project's human-readable plan is the only task-state record. Diagrams explain; they never authorize a transition, create state, or grant authority.
|
|
4
|
+
|
|
5
|
+
## States and active owners
|
|
6
|
+
|
|
7
|
+
| State | Active owner | Meaning |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `PROPOSED` | Parent coordinator | Task exists but is not execution-ready |
|
|
10
|
+
| `READY` | Parent coordinator | Dependencies, scope, authority, and route are satisfied |
|
|
11
|
+
| `WAITING_ON` | Parent coordinator | Named prerequisite or independent-assurance dispatch unavailable |
|
|
12
|
+
| `IN_PROGRESS` | Assigned worker or coordinator | Assigned action is being performed |
|
|
13
|
+
| `EVIDENCE_READY` | Parent coordinator | Candidate and evidence ready for next missing assurance |
|
|
14
|
+
| `VALIDATING` | Validator | Evidence sufficiency under validation |
|
|
15
|
+
| `REVIEWING` | Park Ranger when required | Independent defect review active |
|
|
16
|
+
| `ACCEPTANCE` | Surveyor, Owner Authority, or parent coordinator when `required_assurance` is `none` | User-facing acceptance or coordinator completion confirmation is active |
|
|
17
|
+
| `CORRECTION_REQUIRED` | Navigator or nearest parent coordinator | Agent-owned in-authority correction required |
|
|
18
|
+
| `OWNER_DECISION_REQUIRED` | Owner Authority | Authority, scope, security, or replacement-path judgment required |
|
|
19
|
+
| `COMPLETE` | Parent coordinator after assurance | Outcome and required assurance satisfied |
|
|
20
|
+
| `CANCELLED` | Owner Authority or authorized parent | Task will not proceed |
|
|
21
|
+
|
|
22
|
+
## Legal transitions
|
|
23
|
+
|
|
24
|
+
- `PROPOSED` → `READY` when dependencies, scope, authority, assigned role, and assurance are declared and satisfied; else `WAITING_ON`.
|
|
25
|
+
- `WAITING_ON` → `READY` when the prerequisite is repaired or replaced; → `EVIDENCE_READY` when fresh assurance becomes available; → `CANCELLED` on owner scope reduction.
|
|
26
|
+
- `READY` → `IN_PROGRESS` when the assigned role starts; → `OWNER_DECISION_REQUIRED` on authority or integrity guard.
|
|
27
|
+
- `IN_PROGRESS` → `EVIDENCE_READY` with candidate and handoff; → `CORRECTION_REQUIRED` on correctable failure; → `OWNER_DECISION_REQUIRED` on security, authority, or integrity guard.
|
|
28
|
+
- `CORRECTION_REQUIRED` → `READY` on attempt 1 or 2 with a new hypothesis and evidence; → `OWNER_DECISION_REQUIRED` on the third failed correction or out-of-contract amendment.
|
|
29
|
+
- `EVIDENCE_READY` → `VALIDATING` | `REVIEWING` | `ACCEPTANCE` for the next missing required role; → `WAITING_ON` if assurance dispatch is unavailable.
|
|
30
|
+
- After accepted Validator or Park Ranger handoff, return to `EVIDENCE_READY` and select the next missing assurance role in declared order.
|
|
31
|
+
- `VALIDATING` → `CORRECTION_REQUIRED` when more evidence or repair is needed; otherwise back through `EVIDENCE_READY` for remaining assurance.
|
|
32
|
+
- `REVIEWING` → `CORRECTION_REQUIRED` | `EVIDENCE_READY` | `OWNER_DECISION_REQUIRED` by verdict.
|
|
33
|
+
- `ACCEPTANCE` → `COMPLETE` when every required assurance accepted the same candidate; when `required_assurance` is `none`, parent-coordinator confirmation satisfies the assurance requirement; → `CORRECTION_REQUIRED` on acceptance gap.
|
|
34
|
+
- `OWNER_DECISION_REQUIRED` → `READY` or `CANCELLED` by owner choice.
|
|
35
|
+
|
|
36
|
+
## Ownership rules
|
|
37
|
+
|
|
38
|
+
- One parent coordinator writes each task block and its transitions.
|
|
39
|
+
- Navigator alone writes cross-wave dependencies and Expedition-wide sequencing.
|
|
40
|
+
- Workers and assurance roles return handoffs; they do not race plan edits.
|
|
41
|
+
- Candidate authors never provide their own Validator, Park Ranger, or Surveyor verdict.
|
|
42
|
+
- Waiting on a prerequisite consumes no correction attempt. Each task has its own three-attempt correction counter; identical retries without new evidence are invalid.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
stateDiagram-v2
|
|
2
|
+
[*] --> PROPOSED
|
|
3
|
+
PROPOSED --> READY
|
|
4
|
+
PROPOSED --> WAITING_ON
|
|
5
|
+
WAITING_ON --> READY: prerequisite satisfied
|
|
6
|
+
WAITING_ON --> EVIDENCE_READY: fresh assurance available
|
|
7
|
+
WAITING_ON --> CANCELLED
|
|
8
|
+
READY --> IN_PROGRESS
|
|
9
|
+
READY --> OWNER_DECISION_REQUIRED
|
|
10
|
+
IN_PROGRESS --> EVIDENCE_READY
|
|
11
|
+
IN_PROGRESS --> CORRECTION_REQUIRED
|
|
12
|
+
IN_PROGRESS --> OWNER_DECISION_REQUIRED
|
|
13
|
+
CORRECTION_REQUIRED --> READY
|
|
14
|
+
CORRECTION_REQUIRED --> OWNER_DECISION_REQUIRED: third failed correction
|
|
15
|
+
EVIDENCE_READY --> VALIDATING: Validator required
|
|
16
|
+
EVIDENCE_READY --> REVIEWING: Park Ranger required
|
|
17
|
+
EVIDENCE_READY --> ACCEPTANCE: Surveyor, owner, or coordinator when required_assurance is none
|
|
18
|
+
EVIDENCE_READY --> WAITING_ON: assurance dispatch unavailable
|
|
19
|
+
VALIDATING --> CORRECTION_REQUIRED
|
|
20
|
+
VALIDATING --> EVIDENCE_READY: pass, select next assurance
|
|
21
|
+
REVIEWING --> CORRECTION_REQUIRED
|
|
22
|
+
REVIEWING --> EVIDENCE_READY: accepted, select next assurance
|
|
23
|
+
REVIEWING --> OWNER_DECISION_REQUIRED
|
|
24
|
+
ACCEPTANCE --> CORRECTION_REQUIRED
|
|
25
|
+
ACCEPTANCE --> COMPLETE
|
|
26
|
+
OWNER_DECISION_REQUIRED --> READY
|
|
27
|
+
OWNER_DECISION_REQUIRED --> CANCELLED
|
|
28
|
+
COMPLETE --> [*]
|
|
29
|
+
CANCELLED --> [*]
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Task record template
|
|
2
|
+
|
|
3
|
+
Use one compact Markdown block per task in the project's existing plan or progress document. Omit unused conditional fields. Prefer the project's format; add only missing fields. Do not create a Bearing-owned state file or hidden ledger.
|
|
4
|
+
|
|
5
|
+
## Always present
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
### task_id: T1
|
|
9
|
+
- outcome: <approved user-visible outcome for this task>
|
|
10
|
+
- status: PROPOSED
|
|
11
|
+
- assigned_role: <role or unassigned>
|
|
12
|
+
- depends_on: []
|
|
13
|
+
- next_action: <smallest concrete next step>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Field rules:
|
|
17
|
+
|
|
18
|
+
- `task_id` — stable identifier unique within the plan.
|
|
19
|
+
- `outcome` — approved intent for this task only.
|
|
20
|
+
- `status` — one of `PROPOSED`, `READY`, `WAITING_ON`, `IN_PROGRESS`, `EVIDENCE_READY`, `VALIDATING`, `REVIEWING`, `ACCEPTANCE`, `CORRECTION_REQUIRED`, `OWNER_DECISION_REQUIRED`, `COMPLETE`, `CANCELLED`.
|
|
21
|
+
- `assigned_role` — current role contract for the active step, or unassigned while proposing.
|
|
22
|
+
- `depends_on` — list of other `task_id` values only, never prose.
|
|
23
|
+
- `next_action` — the immediate allowed step.
|
|
24
|
+
|
|
25
|
+
## Before execution (add when leaving PROPOSED)
|
|
26
|
+
|
|
27
|
+
```markdown
|
|
28
|
+
- scope: <allowed paths, systems, and boundaries>
|
|
29
|
+
- authority: <approved envelope; protected actions remain owner-only>
|
|
30
|
+
- required_assurance: [Validator]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
`required_assurance` lists only roles that must accept the same candidate (for example `Validator`, and `Park Ranger` or `Surveyor` when their triggers apply).
|
|
34
|
+
|
|
35
|
+
## After candidate work (add when evidence exists)
|
|
36
|
+
|
|
37
|
+
```markdown
|
|
38
|
+
- candidate_ref: <strongest native revision or changed-path reference available>
|
|
39
|
+
- evidence: <commands run, results observed, and inferences labeled separately>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
`candidate_ref` must not claim stronger provenance than the client can prove.
|
|
43
|
+
|
|
44
|
+
## Waiting or correcting only
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
- blocker: <WAITING_ON:<task-id> | typed reason | none on success>
|
|
48
|
+
- attempts: <0-3 correction attempts for this task or protected action>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Omit `blocker` and `attempts` when the task is not waiting or correcting. Waiting does not consume correction attempts.
|
|
52
|
+
|
|
53
|
+
## Single-writer reminder
|
|
54
|
+
|
|
55
|
+
Only the parent coordinator updates this block after rereading it. Crewmate, Validator, Park Ranger, and Surveyor return handoffs; the coordinator records transitions. Navigator alone changes cross-wave dependencies or global sequencing.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: crewmate
|
|
3
|
+
description: >
|
|
4
|
+
Implement one approved mutation, execution, or integration packet inside its
|
|
5
|
+
exact write set with native tools. Use for crewmate, implement packet, bounded
|
|
6
|
+
coding task, or apply a write-set change. Do not use for wave orchestration,
|
|
7
|
+
multi-packet control, self-certification, publication, or expanding authority.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Crewmate
|
|
11
|
+
|
|
12
|
+
## Trigger
|
|
13
|
+
|
|
14
|
+
- **Match:** one approved implementation, repair, or integration packet is READY with fixed scope and authority.
|
|
15
|
+
- **Non-match:** multi-packet orchestration, wave ownership, assurance review, owner decisions, or unset write sets.
|
|
16
|
+
|
|
17
|
+
## Inputs
|
|
18
|
+
|
|
19
|
+
Plan path, packet objective, acceptance, allowed paths, commands, stop condition, `required_assurance`, expected handoff.
|
|
20
|
+
|
|
21
|
+
## Responsibility
|
|
22
|
+
|
|
23
|
+
Smallest honest change in the write set. For verified contract bugs, add a failing regression first, then repair. Run assigned focused commands. Preserve unrelated work.
|
|
24
|
+
|
|
25
|
+
## Return
|
|
26
|
+
|
|
27
|
+
Handoff fields: `plan_ref`, `role`, `subject`, `depends_on`, `scope`, `authority`, `outcome`, `evidence`, `blocker`, `next_action`, `receiving_role`.
|
|
28
|
+
|
|
29
|
+
Outcomes: `CANDIDATE_READY`, `PARTIAL`, `WAITING_ON`, `OWNER_DECISION_REQUIRED`. Receiver: parent coordinator; Validator only when `required_assurance` includes it or owner opts in.
|
|
30
|
+
|
|
31
|
+
## Independence
|
|
32
|
+
|
|
33
|
+
Never self-certifies. `required_assurance: none` means author self-check plus coordinator confirmation—not automatic Validator/Park Ranger.
|
|
34
|
+
|
|
35
|
+
## Correction
|
|
36
|
+
|
|
37
|
+
Repair evidenced failures inside authority. Design, write-set, or acceptance changes escalate without silent expansion.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: delegate-authority
|
|
3
|
+
description: >
|
|
4
|
+
Maintain owner-approved multi-phase intent and appoint phase Navigators when
|
|
5
|
+
the owner explicitly delegates across sessions or Navigator replacement. Use
|
|
6
|
+
for delegate authority, multi-phase journey, or long-running delegation. Do
|
|
7
|
+
not use for single-wave work, implementation, assurance, contract changes, or
|
|
8
|
+
publication.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Delegate Authority
|
|
12
|
+
|
|
13
|
+
## Trigger
|
|
14
|
+
|
|
15
|
+
- **Match:** owner explicitly delegates a bounded multi-phase journey, especially across sessions or Navigator replacement.
|
|
16
|
+
- **Non-match:** ordinary direct, Explorer, or single-phase Expedition work without owner delegation.
|
|
17
|
+
|
|
18
|
+
## Inputs
|
|
19
|
+
|
|
20
|
+
Plan path, approved intent, phase boundaries, authority envelope, `required_assurance`, expected handoff.
|
|
21
|
+
|
|
22
|
+
## Responsibility
|
|
23
|
+
|
|
24
|
+
Preserve approved intent, appoint phase Navigators, and route phase handoffs. Never implement, assure, amend the contract, or publish.
|
|
25
|
+
|
|
26
|
+
## Return
|
|
27
|
+
|
|
28
|
+
Handoff fields: `plan_ref`, `role`, `subject`, `depends_on`, `scope`, `authority`, `outcome`, `evidence`, `blocker`, `next_action`, `receiving_role`.
|
|
29
|
+
|
|
30
|
+
Outcomes: `READY`, `REROUTED`, `WAITING_ON`, `OWNER_DECISION_REQUIRED`. Receiver: Navigator or Owner Authority.
|
|
31
|
+
|
|
32
|
+
## Independence
|
|
33
|
+
|
|
34
|
+
Dormant until owner delegation is evidenced. Does not self-certify phases.
|
|
35
|
+
|
|
36
|
+
## Correction
|
|
37
|
+
|
|
38
|
+
In-authority phase appointment repair only. Contract, security, or publication changes escalate to Owner Authority.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: explorer
|
|
3
|
+
description: >
|
|
4
|
+
Wave-owner orchestration: sequence and dispatch bounded packets inside one
|
|
5
|
+
approved wave without implementing them. Use for explorer, wave ownership,
|
|
6
|
+
packet orchestration, or parallel dispatch planning. Do not use for product
|
|
7
|
+
implementation, multi-wave Trail Boss control, nested Sub-explorer defaulting,
|
|
8
|
+
or independent assurance of wave output.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Explorer
|
|
12
|
+
|
|
13
|
+
## Trigger
|
|
14
|
+
|
|
15
|
+
- **Match:** an approved wave contains work packets that need orchestration, sequencing, or parallel dispatch (not the implementation itself).
|
|
16
|
+
- **Non-match:** a single already-bounded implementation packet with no wave orchestration need; multi-wave Trail Boss duty; assurance review.
|
|
17
|
+
|
|
18
|
+
## Inputs
|
|
19
|
+
|
|
20
|
+
Plan path, wave objective, packets, dependencies, scope, authority, `required_assurance`, expected handoff.
|
|
21
|
+
|
|
22
|
+
## Responsibility
|
|
23
|
+
|
|
24
|
+
Issue disjoint Crewmate packets, inspect returns against allowlists, and hand off for coordinator confirmation or required assurance. Never implement or audit the packets itself.
|
|
25
|
+
|
|
26
|
+
## Return
|
|
27
|
+
|
|
28
|
+
Handoff fields: `plan_ref`, `role`, `subject`, `depends_on`, `scope`, `authority`, `outcome`, `evidence`, `blocker`, `next_action`, `receiving_role`.
|
|
29
|
+
|
|
30
|
+
Outcomes: `READY`, `REROUTED`, `WAITING_ON`, `OWNER_DECISION_REQUIRED`. Receiver: Sub-explorer, Crewmate, or parent coordinator.
|
|
31
|
+
|
|
32
|
+
## Independence
|
|
33
|
+
|
|
34
|
+
Wave owner only. Does not provide Validator, Park Ranger, or Surveyor verdicts for candidates produced under its dispatch when it is author-equivalent.
|
|
35
|
+
|
|
36
|
+
## Correction
|
|
37
|
+
|
|
38
|
+
Reroute incomplete packets with new evidence. Authority or design amendments escalate to parent coordinator or Owner Authority.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gather-supplies
|
|
3
|
+
description: >
|
|
4
|
+
Resolve only material owner decisions that block a complete plan after the
|
|
5
|
+
workspace exists. Use for gather supplies, owner decisions, plan-spec
|
|
6
|
+
assumptions, or blocking scope questions. Do not use for design drafting,
|
|
7
|
+
implementation, product edits, or replaying settled owner answers.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Gather Supplies
|
|
11
|
+
|
|
12
|
+
Procedural stage. Not a persona.
|
|
13
|
+
|
|
14
|
+
## Match / non-match
|
|
15
|
+
|
|
16
|
+
- **Match:** material open decisions block scope, architecture, security, authority, or acceptance.
|
|
17
|
+
- **Non-match:** decisions already recorded; Map the Route can proceed; pure implementation packets.
|
|
18
|
+
|
|
19
|
+
## Inputs
|
|
20
|
+
|
|
21
|
+
Goal, repository evidence, plan workspace, and prior owner Q&A.
|
|
22
|
+
|
|
23
|
+
## Procedure
|
|
24
|
+
|
|
25
|
+
1. Ask only material questions; reuse durable prior answers without re-asking.
|
|
26
|
+
2. For each question: recommendation, evidence, options/tradeoffs, affected section, safe default.
|
|
27
|
+
3. Apply completed answers into the validated plan specification only.
|
|
28
|
+
4. Keep requirements testable with stable IDs; record blockers instead of inventing approval.
|
|
29
|
+
5. Exit with zero-to-few bounded questions, applied plan-spec, or `OWNER_DECISION_REQUIRED`.
|
|
30
|
+
|
|
31
|
+
## Never
|
|
32
|
+
|
|
33
|
+
Design the route, draft implementation slices, edit product code, or overwrite a recorded owner answer with a default.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: map-the-route
|
|
3
|
+
description: >
|
|
4
|
+
Build the human-readable task graph when the outcome is approved but
|
|
5
|
+
executable tasks are missing. Use for map the route, implementation slices,
|
|
6
|
+
task graph, SEIT, or planning artifacts. Do not use to execute work, select
|
|
7
|
+
models, self-certify assurance, or advance journey state beyond planning.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Map the Route
|
|
11
|
+
|
|
12
|
+
Procedural stage. Not a persona.
|
|
13
|
+
|
|
14
|
+
## Match / non-match
|
|
15
|
+
|
|
16
|
+
- **Match:** plan-spec/decisions are approved and executable task graph or planning package is incomplete.
|
|
17
|
+
- **Non-match:** tasks already READY with roles and assurance; pure Crewmate packet work.
|
|
18
|
+
|
|
19
|
+
## Inputs
|
|
20
|
+
|
|
21
|
+
Approved goal, decisions, plan-spec, and required Role routes.
|
|
22
|
+
|
|
23
|
+
## Procedure
|
|
24
|
+
|
|
25
|
+
1. Author only missing planning artifacts: design, SEIT, and implementation slices as needed.
|
|
26
|
+
2. For each task declare `depends_on`, assigned role, scope, authority, and `required_assurance` (explicit `none` allowed).
|
|
27
|
+
3. Prefer the smallest valid route; leave dormant roles unselected.
|
|
28
|
+
4. Keep IDs stable; cite acceptance and evidence expectations per task.
|
|
29
|
+
5. Return artifact paths, blockers, and next planning or execution handoff without executing.
|
|
30
|
+
|
|
31
|
+
## Never
|
|
32
|
+
|
|
33
|
+
Implement product changes, invent owner approval, run phase gates as automatic, or claim independent assurance.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Map the Route Artifact Grammar
|
|
2
|
+
|
|
3
|
+
Apply this closed grammar while authoring or validating planning artifacts.
|
|
4
|
+
Bearing rejects deviations with typed findings.
|
|
5
|
+
|
|
6
|
+
## Shared artifact rules
|
|
7
|
+
|
|
8
|
+
1. Frontmatter declares `type` as `plan-spec`, `design`, `seit`, or
|
|
9
|
+
`implementation`, and `status` as `complete` or `amended`.
|
|
10
|
+
2. Requirement IDs use `AC-*` or `RISK-*`; design IDs use `DES-*` or
|
|
11
|
+
`CONTRACT-*`; SEIT rows use `SEIT-*`; commands use `CMD-*` or `PROC-*`.
|
|
12
|
+
Suffixes contain only uppercase letters, digits, dots, or hyphens.
|
|
13
|
+
3. `plan-spec.md` declares requirements, Entry criteria, Exit criteria,
|
|
14
|
+
Rollback or repair, and Accountable controller. `design.md` declares design
|
|
15
|
+
IDs. `seit.md` declares SEIT rows and commands.
|
|
16
|
+
4. Preserve stable IDs. Every implementation reference resolves to a declared
|
|
17
|
+
requirement, design contract, SEIT row, and command.
|
|
18
|
+
5. The plan's Role routes decision supplies immutable `authorRoute` and
|
|
19
|
+
`reviewSlots`. Missing or incomplete routes block implementation drafting.
|
|
20
|
+
|
|
21
|
+
## SEIT rules
|
|
22
|
+
|
|
23
|
+
1. Include non-empty `Required Commands`, `Traceability Matrix`, and
|
|
24
|
+
`Cross-cutting Checks` sections.
|
|
25
|
+
2. Declare each command as `- **<CMD/PROC-id>** — description`.
|
|
26
|
+
3. Use one flat traceability table with exactly these columns: SEIT row ID |
|
|
27
|
+
Acceptance/risk ID | Design/contract ID | Boundary/test layer | Positive
|
|
28
|
+
case | Negative/failure case | Command/procedure ID | Evidence.
|
|
29
|
+
4. Every row carries exactly one SEIT row ID, requirement ID, design ID, and
|
|
30
|
+
command ID, and names an observable failure.
|
|
31
|
+
5. If procedure narratives are used, title each `### SEIT-<id> <title>` under
|
|
32
|
+
a procedures section and restate Command, Positive case, Negative case, and
|
|
33
|
+
Evidence exactly. Every PROC row then has exactly one matching narrative.
|
|
34
|
+
|
|
35
|
+
## Implementation rules
|
|
36
|
+
|
|
37
|
+
1. Slice headings are `### Slice <id>` and manifests are
|
|
38
|
+
`### <id> execution manifest`. IDs are a letter-run plus an integer or
|
|
39
|
+
dotted integer. Every slice has exactly one matching manifest.
|
|
40
|
+
2. Every slice declares Goal, Requirement IDs, Design IDs, SEIT proof rows,
|
|
41
|
+
Type, Design lenses, Implementation role, Agent model route, Agent reasoning
|
|
42
|
+
level, and Review path. Goals are at most 512 characters.
|
|
43
|
+
3. Every manifest declares Write set, Command IDs, Stop condition, and Human
|
|
44
|
+
decision. Optional fields are Shared interfaces (`path#Symbol`), Integration
|
|
45
|
+
boundary, and Parallel safe (`yes` or `no` plus reason).
|
|
46
|
+
4. Write sets use one line: `Write only `path``. Paths are bounded, normalized,
|
|
47
|
+
repository-relative literals. Put prohibitions in prose, not the write set.
|
|
48
|
+
5. Multi-slice plans declare consecutive `Wave <n>: <ids>` lines. Every slice
|
|
49
|
+
belongs to one wave. Dependencies use acyclic `S1 --> S2` arrows.
|
|
50
|
+
6. Optional phase graphs use Phase | Slices | Depends on phases | Integration
|
|
51
|
+
checkpoints. Optional Inputs and Produces name metric denominator, ledger
|
|
52
|
+
key, or contract field values in backticks.
|
|
53
|
+
7. Plans may contain at most 128 slices, manifests, write paths, and commands.
|
|
54
|
+
Aim for at most 500 estimated tokens per slice plus manifest; split larger
|
|
55
|
+
packets when practical.
|
|
56
|
+
|
|
57
|
+
## Optional binding sections
|
|
58
|
+
|
|
59
|
+
If `## System Catalog` appears, use System ID | System | Responsibility with
|
|
60
|
+
one `SYS-*` per row. Each `### SYS-*` specification declares Ownership, Inputs,
|
|
61
|
+
Outputs, APIs, Data ownership, Invariants, Trust boundary, Failure modes, and
|
|
62
|
+
Observability. A Requirement Trace, when present, maps Requirement ID, System
|
|
63
|
+
ID, Contract ID, SEIT row ID, Slice ID, and Path; every requirement and path
|
|
64
|
+
must resolve.
|
|
65
|
+
|
|
66
|
+
If `## Risk Profile` appears, enumerate the complete closed flag set required
|
|
67
|
+
by Bearing. Every `yes` maps design or system, SEIT row, and slice coverage.
|
|
68
|
+
Every `no` gives an evidence-backed rationale of at least four words; do not use
|
|
69
|
+
placeholders, bare negations, or deferral language.
|
|
70
|
+
|
|
71
|
+
## Feature diagram and visual review rules
|
|
72
|
+
|
|
73
|
+
1. Select review-oriented feature diagrams (flow diagrams, state-machine diagrams, or process/sequence diagrams) when they materially clarify architecture or lifecycle behavior for owner review.
|
|
74
|
+
2. Major features select a justified subset or full set of diagrams based on architectural complexity. Trivial features or minor fixes do not require unnecessary diagrams.
|
|
75
|
+
3. Every feature diagram must include canonical, reviewable source (such as Mermaid code blocks), render visually inside generated `review.html`, and retain nearby authoritative explanatory text.
|
|
76
|
+
|
|
77
|
+
## Completion boundary
|
|
78
|
+
|
|
79
|
+
Design-only work returns after valid `design.md` and `seit.md`. Implementation
|
|
80
|
+
drafting returns after valid `implementation.md`. Complete-route work remains
|
|
81
|
+
incomplete until `plan-spec.md`, `design.md`, `seit.md`, and `implementation.md`
|
|
82
|
+
are current. Bearing then generates the complete `review.html`; agents never
|
|
83
|
+
hand-edit, summarize, or replace it.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: navigator
|
|
3
|
+
description: >
|
|
4
|
+
Expedition and multi-phase Navigator sequencing across dependency-connected
|
|
5
|
+
waves, including gap correction and in-authority coverage expansion. Use for
|
|
6
|
+
navigator, expedition integration boundary, or multi-phase wave graph control.
|
|
7
|
+
Do not use for single bounded packets, product implementation under Navigator
|
|
8
|
+
identity, or independent assurance of own corrections.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Navigator
|
|
12
|
+
|
|
13
|
+
## Trigger
|
|
14
|
+
|
|
15
|
+
- **Match:** work spans multiple phases, dependency-connected waves, or an Expedition integration boundary.
|
|
16
|
+
- **Non-match:** one packet or one Explorer-owned wave with no cross-wave sequencing need.
|
|
17
|
+
|
|
18
|
+
## Inputs
|
|
19
|
+
|
|
20
|
+
Plan path, wave graph, dependencies, approved outcome, authority, allowed paths, `required_assurance`, expected handoff.
|
|
21
|
+
|
|
22
|
+
## Responsibility
|
|
23
|
+
|
|
24
|
+
Sequence Explorers (and Trail Boss only when multi-wave conflict requires it), correct in-authority gaps, and integrate returns. Use one fresh Navigator context per execution wave; after phase acceptance PASS, return to Delegate Authority rather than continuing into the next wave. A fresh wave Navigator rereads `implementation.md`, `review.html`, and `seit.md` before acting. Never implement under Navigator identity, supply independent assurance, publish, release, mutate remotes, or take destructive action under Navigator identity.
|
|
25
|
+
|
|
26
|
+
## Authority
|
|
27
|
+
|
|
28
|
+
Approved plan plus task authority is sufficient for execution, routing, bounded repairs, and in-contract coverage amendments. Do not re-request Owner Authority for work already authorized by that plan.
|
|
29
|
+
|
|
30
|
+
Before any `OWNER_DECISION_REQUIRED` return, seek and attempt a safer in-authority workaround when one exists. Ask Owner Authority only when outcome or acceptance meaning changes; repository or product boundary changes; public, publication, remote, destructive, release, or release-target action is needed; secret handling or a security exception changes; an external dependency or cost requires new authority; a confirmed owner decision would change; any other authority envelope would expand; or the declared third failed correction occurs.
|
|
31
|
+
|
|
32
|
+
## Return
|
|
33
|
+
|
|
34
|
+
Handoff fields: `plan_ref`, `role`, `subject`, `depends_on`, `scope`, `authority`, `outcome`, `evidence`, `blocker`, `next_action`, `receiving_role`.
|
|
35
|
+
|
|
36
|
+
Outcomes: `READY`, `REROUTED`, `WAITING_ON`, `OWNER_DECISION_REQUIRED`. Receiver: Trail Boss, Explorer, assurance role when required, Delegate Authority, or Owner Authority.
|
|
37
|
+
|
|
38
|
+
## Independence
|
|
39
|
+
|
|
40
|
+
Writes only coordinator sequencing and task blocks it owns. Does not supply Validator, Park Ranger, or Surveyor verdicts for candidates it integrated as author-equivalent.
|
|
41
|
+
|
|
42
|
+
## Correction
|
|
43
|
+
|
|
44
|
+
Attempts 1–2 need new hypothesis and evidence. Third failure or out-of-authority change → `OWNER_DECISION_REQUIRED`.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: park-ranger
|
|
3
|
+
description: >
|
|
4
|
+
Review introduced defects on one exact candidate when required_assurance
|
|
5
|
+
includes Park Ranger, the owner opts in, or a material integrated phase gate
|
|
6
|
+
requires defect review. Use for park ranger, defect review, or introduced-bug
|
|
7
|
+
adjudication. Do not use for implementation, automatic per-slice gates,
|
|
8
|
+
sufficiency scoring, or user-facing acceptance.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Park Ranger
|
|
12
|
+
|
|
13
|
+
## Trigger
|
|
14
|
+
|
|
15
|
+
- **Match:** `required_assurance` lists Park Ranger; owner opts in; or integrated phase gate requires defect review on a stable candidate.
|
|
16
|
+
- **Non-match:** `required_assurance: none` without owner opt-in/phase gate; Validator sufficiency-only; Surveyor acceptance; implementation packets.
|
|
17
|
+
|
|
18
|
+
## Inputs
|
|
19
|
+
|
|
20
|
+
Plan path, exact `candidate_ref`, diff or evidence, prior Validator result when present, expected handoff.
|
|
21
|
+
|
|
22
|
+
## Responsibility
|
|
23
|
+
|
|
24
|
+
Find introduced defects with reproduction and reachability. Rank findings. Never implement fixes or repeat an unchanged review as new proof.
|
|
25
|
+
|
|
26
|
+
## Return
|
|
27
|
+
|
|
28
|
+
Handoff fields: `plan_ref`, `role`, `subject`, `depends_on`, `scope`, `authority`, `outcome`, `evidence`, `blocker`, `next_action`, `receiving_role`.
|
|
29
|
+
|
|
30
|
+
Outcomes: `BLOCK`, `REPAIR_REQUIRED`, `ACCEPT_WITH_FINDINGS`, `ACCEPT`. Receiver: parent coordinator, Surveyor when next required, or correction owner.
|
|
31
|
+
|
|
32
|
+
## Independence
|
|
33
|
+
|
|
34
|
+
Fresh non-author only. Never automatic per slice. Candidate authors never supply this verdict.
|
|
35
|
+
|
|
36
|
+
## Correction
|
|
37
|
+
|
|
38
|
+
Returns repair targets only. Does not edit the candidate or re-review without new evidence.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: repository-fit
|
|
3
|
+
description: >
|
|
4
|
+
Propose one target repository and plan-directory assumption when the target
|
|
5
|
+
is absent or ambiguous. Use for repository fit, choose repo, or confirm
|
|
6
|
+
workspace before Set Bearings. Do not use after fit is confirmed, for product
|
|
7
|
+
edits, routing roles, or owner-only publication decisions.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Repository Fit
|
|
11
|
+
|
|
12
|
+
Procedural stage. Not a persona.
|
|
13
|
+
|
|
14
|
+
## Match / non-match
|
|
15
|
+
|
|
16
|
+
- **Match:** selected repository is missing, multi-root, or identity is ambiguous.
|
|
17
|
+
- **Non-match:** owner already confirmed fit; Set Bearings or later stages are ready.
|
|
18
|
+
|
|
19
|
+
## Inputs
|
|
20
|
+
|
|
21
|
+
Work goal, candidate roots, and any prior fit evidence.
|
|
22
|
+
|
|
23
|
+
## Procedure
|
|
24
|
+
|
|
25
|
+
1. Inspect only the selected root; open one extra root only if owner-authorized.
|
|
26
|
+
2. Cap discovery (depth 4, 200 paths). Prefer manifests, top-level docs, plan conventions.
|
|
27
|
+
3. Propose exactly one repository and one plan-directory assumption with path citations.
|
|
28
|
+
4. Ask one concise owner confirmation question. Do not treat a recommendation as approval.
|
|
29
|
+
5. Return `assumption` + `question`, or typed stop: `fit_unavailable`, `fit_malformed`, `fit_undecidable`.
|
|
30
|
+
|
|
31
|
+
## Never
|
|
32
|
+
|
|
33
|
+
Write files, walk parents without authority, rank alternatives after undecidable, or advance into Set Bearings.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: set-bearings
|
|
3
|
+
description: >
|
|
4
|
+
Create or resume the bounded plan workspace and repository map when project
|
|
5
|
+
context or current-state map is missing after fit. Use for set bearings,
|
|
6
|
+
plan workspace, or repository map. Do not use before fit is confirmed, for
|
|
7
|
+
owner decisions, design drafts, product edits, or risk-profile authoring.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Set Bearings
|
|
11
|
+
|
|
12
|
+
Procedural stage. Not a persona.
|
|
13
|
+
|
|
14
|
+
## Match / non-match
|
|
15
|
+
|
|
16
|
+
- **Match:** fit is confirmed and plan workspace or repository map is missing or stale.
|
|
17
|
+
- **Non-match:** workspace already ready; Gather Supplies or later stages apply.
|
|
18
|
+
|
|
19
|
+
## Inputs
|
|
20
|
+
|
|
21
|
+
Repository root, work goal, and owner-confirmed plan directory (verbatim).
|
|
22
|
+
|
|
23
|
+
## Procedure
|
|
24
|
+
|
|
25
|
+
1. Use the confirmed plan directory exactly; never derive, slug, or suffix it.
|
|
26
|
+
2. Create or resume the workspace without deleting existing plan content.
|
|
27
|
+
3. Write only the plan-directory stub and sibling repository map.
|
|
28
|
+
4. Leave risk-profile content to Gather Supplies / owner; do not invent it.
|
|
29
|
+
5. Return relative paths and whether the workspace was created or resumed.
|
|
30
|
+
|
|
31
|
+
## Never
|
|
32
|
+
|
|
33
|
+
Ask planning questions, design, implement, edit product code, or delete plans or hidden runtime state.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sub-explorer
|
|
3
|
+
description: >
|
|
4
|
+
Orchestrate bounded packets inside one Explorer-owned wave when at least two
|
|
5
|
+
proven-independent lanes need one extra coordination level. Use for
|
|
6
|
+
sub-explorer or in-wave lane coordination. Do not use as a second nesting
|
|
7
|
+
level, for product implementation, multi-wave control, or assurance.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Sub-explorer
|
|
11
|
+
|
|
12
|
+
## Trigger
|
|
13
|
+
|
|
14
|
+
- **Match:** one Explorer-owned wave has ≥2 proven-independent lanes and one extra coordination level materially reduces context or conflict.
|
|
15
|
+
- **Non-match:** single lane; nested Sub-explorer requests; Trail Boss multi-wave work; direct Crewmate packets.
|
|
16
|
+
|
|
17
|
+
## Inputs
|
|
18
|
+
|
|
19
|
+
Parent wave plan path, lane boundaries, packet specs, dependencies, authority, `required_assurance`, expected handoff.
|
|
20
|
+
|
|
21
|
+
## Responsibility
|
|
22
|
+
|
|
23
|
+
Orchestrate in-wave packets only. Maximum one Sub-explorer level. Never perform packets, expand parent wave authority, or assure results.
|
|
24
|
+
|
|
25
|
+
## Return
|
|
26
|
+
|
|
27
|
+
Handoff fields: `plan_ref`, `role`, `subject`, `depends_on`, `scope`, `authority`, `outcome`, `evidence`, `blocker`, `next_action`, `receiving_role`.
|
|
28
|
+
|
|
29
|
+
Outcomes: `READY`, `REROUTED`, `WAITING_ON`, `OWNER_DECISION_REQUIRED`. Receiver: Crewmate or Explorer.
|
|
30
|
+
|
|
31
|
+
## Independence
|
|
32
|
+
|
|
33
|
+
Dormant unless independence is proven. Does not substitute for Explorer, Trail Boss, or Navigator.
|
|
34
|
+
|
|
35
|
+
## Correction
|
|
36
|
+
|
|
37
|
+
Return lane conflicts to Explorer. Out-of-wave expansion escalates to parent coordinator.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: surveyor
|
|
3
|
+
description: >
|
|
4
|
+
Compare user-facing behavior of a stable integrated candidate with the
|
|
5
|
+
approved outcome at multi-packet phase, Expedition, Final Audit, or
|
|
6
|
+
owner-selected acceptance boundaries. Use for surveyor, acceptance review, or
|
|
7
|
+
outcome comparison. Do not use for implementation, per-packet sufficiency,
|
|
8
|
+
introduced-defect triage as Park Ranger, or owner-only publication approval.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Surveyor
|
|
12
|
+
|
|
13
|
+
## Trigger
|
|
14
|
+
|
|
15
|
+
- **Match:** multi-packet phase, Expedition, Final Audit, or owner-selected acceptance boundary has a stable integrated candidate.
|
|
16
|
+
- **Non-match:** single unfinished packet; Validator-only sufficiency; Park Ranger defect pass; owner publication decisions reserved to Owner Authority.
|
|
17
|
+
|
|
18
|
+
## Inputs
|
|
19
|
+
|
|
20
|
+
Plan path, exact integrated `candidate_ref`, approved outcome, user-facing evidence, prior required assurance results, expected handoff.
|
|
21
|
+
|
|
22
|
+
## Responsibility
|
|
23
|
+
|
|
24
|
+
Read-only acceptance comparison against the approved outcome. Report gaps with precise locations. Never repair implementation or approve owner-only actions.
|
|
25
|
+
|
|
26
|
+
## Return
|
|
27
|
+
|
|
28
|
+
Handoff fields: `plan_ref`, `role`, `subject`, `depends_on`, `scope`, `authority`, `outcome`, `evidence`, `blocker`, `next_action`, `receiving_role`.
|
|
29
|
+
|
|
30
|
+
Outcomes: `ACCEPT`, `GAPS`, `OWNER_DECISION_REQUIRED`. Receiver: Owner Authority or completion transition via parent coordinator.
|
|
31
|
+
|
|
32
|
+
## Independence
|
|
33
|
+
|
|
34
|
+
Fresh non-author only. Distinct from Validator sufficiency and Park Ranger defect review. Authors never self-accept.
|
|
35
|
+
|
|
36
|
+
## Correction
|
|
37
|
+
|
|
38
|
+
Returns gaps only. Does not implement repairs or convert advice into owner publication authority.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: trail-boss
|
|
3
|
+
description: >
|
|
4
|
+
Trail Boss cross-wave coordination for concurrent Explorer-owned waves with
|
|
5
|
+
shared-interface or dependency conflicts. Use for trail boss, multi-wave
|
|
6
|
+
conflict management, wave readiness scheduling, or integration order across
|
|
7
|
+
waves. Do not use for a single wave, packet implementation, review, grading,
|
|
8
|
+
or assurance verdicts.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Trail Boss
|
|
12
|
+
|
|
13
|
+
## Trigger
|
|
14
|
+
|
|
15
|
+
- **Match:** ≥2 Explorer-owned waves are active or need cross-wave dependency, shared-interface, or conflict management.
|
|
16
|
+
- **Non-match:** one Explorer owns the whole route; direct Crewmate work; review or implementation tasks.
|
|
17
|
+
|
|
18
|
+
## Inputs
|
|
19
|
+
|
|
20
|
+
Plan path, wave graph, lane status, budgets, shared interfaces, `required_assurance`, expected handoff.
|
|
21
|
+
|
|
22
|
+
## Responsibility
|
|
23
|
+
|
|
24
|
+
Schedule wave readiness and integration order only. Never perform a wave's work, implement product changes, or fill review/assurance slots.
|
|
25
|
+
|
|
26
|
+
## Return
|
|
27
|
+
|
|
28
|
+
Handoff fields: `plan_ref`, `role`, `subject`, `depends_on`, `scope`, `authority`, `outcome`, `evidence`, `blocker`, `next_action`, `receiving_role`.
|
|
29
|
+
|
|
30
|
+
Outcomes: `READY`, `REROUTED`, `WAITING_ON`, `OWNER_DECISION_REQUIRED`. Receiver: Explorer, Navigator, or assurance role when required.
|
|
31
|
+
|
|
32
|
+
## Independence
|
|
33
|
+
|
|
34
|
+
Orchestration-only. Omitted when one Explorer suffices. Never self-certifies integrated candidates.
|
|
35
|
+
|
|
36
|
+
## Correction
|
|
37
|
+
|
|
38
|
+
Escalate unresolvable cross-wave conflicts to Navigator or Owner Authority; do not absorb Explorer packet work.
|