@opsee/cli 0.11.9

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 (85) hide show
  1. package/README.md +1962 -0
  2. package/bin/opsee.js +28 -0
  3. package/package.json +40 -0
  4. package/skills/README.md +3 -0
  5. package/skills/to-issues/SKILL.md +92 -0
  6. package/skills/to-issues/agents/openai.yaml +5 -0
  7. package/skills/to-spec/SKILL.md +79 -0
  8. package/skills/to-spec/agents/openai.yaml +5 -0
  9. package/skills/wayfinder/SKILL.md +138 -0
  10. package/skills/wayfinder/agents/openai.yaml +5 -0
  11. package/src/args.ts +676 -0
  12. package/src/cli.ts +341 -0
  13. package/src/commands/account.ts +121 -0
  14. package/src/commands/deps.ts +11 -0
  15. package/src/commands/foreman-control.ts +242 -0
  16. package/src/commands/foreman-debug.ts +131 -0
  17. package/src/commands/foreman-plan.ts +213 -0
  18. package/src/commands/foreman-service.ts +186 -0
  19. package/src/commands/foreman-up.ts +165 -0
  20. package/src/commands/foreman-views.ts +398 -0
  21. package/src/commands/foreman.ts +465 -0
  22. package/src/commands/init.ts +176 -0
  23. package/src/commands/initiative.ts +192 -0
  24. package/src/commands/login.ts +24 -0
  25. package/src/commands/whoami.ts +15 -0
  26. package/src/foreman/account-store.ts +96 -0
  27. package/src/foreman/account.ts +474 -0
  28. package/src/foreman/claude-worker-adapter.ts +412 -0
  29. package/src/foreman/codex-worker-adapter.ts +472 -0
  30. package/src/foreman/completion-report.ts +153 -0
  31. package/src/foreman/core/context.ts +169 -0
  32. package/src/foreman/core/defects.ts +280 -0
  33. package/src/foreman/core/exec.ts +20 -0
  34. package/src/foreman/core/gates.ts +493 -0
  35. package/src/foreman/core/handoff.ts +163 -0
  36. package/src/foreman/core/install.ts +109 -0
  37. package/src/foreman/core/learnings.ts +368 -0
  38. package/src/foreman/core/outbox-tracker.ts +192 -0
  39. package/src/foreman/core/pin.ts +226 -0
  40. package/src/foreman/core/plan-context.ts +238 -0
  41. package/src/foreman/core/process-table.ts +535 -0
  42. package/src/foreman/core/reconcile.ts +227 -0
  43. package/src/foreman/core/report.ts +60 -0
  44. package/src/foreman/core/run.ts +2836 -0
  45. package/src/foreman/core/scheduler.ts +244 -0
  46. package/src/foreman/core/summary.ts +166 -0
  47. package/src/foreman/core/text.ts +97 -0
  48. package/src/foreman/core/transcripts.ts +38 -0
  49. package/src/foreman/core/triage.ts +138 -0
  50. package/src/foreman/core/verifier.ts +800 -0
  51. package/src/foreman/core/views.ts +940 -0
  52. package/src/foreman/core/work-contract.ts +152 -0
  53. package/src/foreman/core/workspace.ts +335 -0
  54. package/src/foreman/fake-handoff.ts +33 -0
  55. package/src/foreman/fake-learnings.ts +26 -0
  56. package/src/foreman/fake-remote-api.ts +70 -0
  57. package/src/foreman/fake-tracker-adapter.ts +355 -0
  58. package/src/foreman/fake-worker-adapter.ts +221 -0
  59. package/src/foreman/host.ts +75 -0
  60. package/src/foreman/local-dir.ts +28 -0
  61. package/src/foreman/opsee-tracker-adapter.ts +612 -0
  62. package/src/foreman/process-group.ts +160 -0
  63. package/src/foreman/remote-api.ts +283 -0
  64. package/src/foreman/run-recipe.ts +274 -0
  65. package/src/foreman/service-unit.ts +257 -0
  66. package/src/foreman/tracker-adapter.ts +298 -0
  67. package/src/foreman/triage-draft.ts +40 -0
  68. package/src/foreman/vendor.ts +23 -0
  69. package/src/foreman/verdict.ts +120 -0
  70. package/src/foreman/worker-adapter.ts +177 -0
  71. package/src/foreman/worker-process.ts +488 -0
  72. package/src/identity.ts +49 -0
  73. package/src/index.ts +3 -0
  74. package/src/init/managed.ts +84 -0
  75. package/src/init/mcp-config.ts +77 -0
  76. package/src/init/paths.ts +16 -0
  77. package/src/init/pointer-block.ts +45 -0
  78. package/src/init/project.ts +22 -0
  79. package/src/init/prompt.ts +45 -0
  80. package/src/init/run-recipe-config.ts +133 -0
  81. package/src/init/skills.ts +38 -0
  82. package/src/init/text.ts +22 -0
  83. package/src/init/tracker-doc.ts +106 -0
  84. package/src/opsee-config.ts +116 -0
  85. package/templates/issue-tracker.md +162 -0
package/bin/opsee.js ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Launches the TypeScript entry point through tsx, the same way mcp/bin/opsee-mcp.js does:
4
+ // there is no compiled dist, the package ships its sources.
5
+ import { spawn } from "node:child_process";
6
+ import { dirname, resolve } from "node:path";
7
+ import { fileURLToPath } from "node:url";
8
+ import { createRequire } from "node:module";
9
+
10
+ const __dirname = dirname(fileURLToPath(import.meta.url));
11
+ const require = createRequire(import.meta.url);
12
+
13
+ // Resolve tsx from wherever the package manager put it (handles workspace hoisting).
14
+ const tsxPkg = dirname(require.resolve("tsx/package.json"));
15
+ const tsx = resolve(tsxPkg, "dist", "cli.mjs");
16
+ const entry = resolve(__dirname, "..", "src", "index.ts");
17
+
18
+ const child = spawn(process.execPath, [tsx, entry, ...process.argv.slice(2)], {
19
+ stdio: "inherit",
20
+ env: process.env,
21
+ });
22
+ // Long-running commands (`foreman debug serve`) stop what they started on SIGINT, so the wrapper
23
+ // must outlive the signal and report the child's exit code rather than die on it. A terminal's
24
+ // Ctrl-C reaches the child directly as well; the handler there tolerates the duplicate.
25
+ for (const signal of ["SIGINT", "SIGTERM"]) {
26
+ process.on(signal, () => child.kill(signal));
27
+ }
28
+ child.on("exit", (code, signal) => process.exit(code ?? (signal ? 1 : 0)));
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@opsee/cli",
3
+ "version": "0.11.9",
4
+ "description": "Opsee CLI — the opsee binary: login, whoami, and the home of the Foreman",
5
+ "type": "module",
6
+ "bin": {
7
+ "opsee": "./bin/opsee.js"
8
+ },
9
+ "scripts": {
10
+ "build": "tsc --noEmit",
11
+ "lint": "tsc --noEmit",
12
+ "test": "vitest run",
13
+ "test:integration": "vitest run --config vitest.integration.config.ts",
14
+ "start": "npx tsx src/index.ts"
15
+ },
16
+ "dependencies": {
17
+ "@bufbuild/protobuf": "^2.14.0",
18
+ "@connectrpc/connect": "^2.1.2",
19
+ "@connectrpc/connect-node": "^2.1.2",
20
+ "@opsee/mcp-server": "0.11.9",
21
+ "tsx": "^4.23.12"
22
+ },
23
+ "devDependencies": {
24
+ "@playwright/mcp": "0.0.80",
25
+ "@types/node": "^22.20.1",
26
+ "typescript": "^5.9.3",
27
+ "vitest": "^4.1.10"
28
+ },
29
+ "engines": {
30
+ "node": ">=22.13.0"
31
+ },
32
+ "files": [
33
+ "src",
34
+ "!**/__tests__",
35
+ "!**/__fixtures__",
36
+ "bin",
37
+ "skills",
38
+ "templates"
39
+ ]
40
+ }
@@ -0,0 +1,3 @@
1
+ # Planning skills
2
+
3
+ Opsee-owned forks of Matt Pocock's `wayfinder`, `to-spec`, and `to-issues` skills (https://github.com/mattpocock/skills, MIT; attribution kept in each `SKILL.md`), changed only where Opsee requires it: they read the per-repo tracker doc `docs/agents/issue-tracker.md`, publish through the `opsee_*` MCP tools into an Initiative, and write the Foreman work contract (Goal, Acceptance Criteria, Verification, Boundaries) into every Task description, with blocking as TaskDependency edges and `ready-for-agent` as the dispatch label. Opsee owns these copies because the work contract is the product's opinion (ADR-0011); `opsee init` copies each folder into the repo's `.claude/skills/` and `.agents/skills/` alongside the tracker doc, and the Codex `agents/openai.yaml` beside each `SKILL.md` is what Codex reads. Edit them here, never in a consuming repo. The tracker doc they read is rendered from `../templates/issue-tracker.md`; `src/__tests__/skills.test.ts` checks the skills and the template stay in step (section names, the Wayfinding operations the wayfinder fork quotes).
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: to-issues
3
+ description: Break a plan, spec, or PRD into independently-grabbable Tasks inside an Opsee Initiative using tracer-bullet vertical slices, each carrying the Foreman work contract. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.
4
+ ---
5
+
6
+ # To Issues
7
+
8
+ > Forked from the `to-issues` skill by Matt Pocock (https://github.com/mattpocock/skills, MIT). This copy is owned by Opsee: the process is upstream's, the tracker is Opsee and every issue carries the Foreman work contract.
9
+
10
+ Break a plan into independently-grabbable issues using vertical slices (tracer bullets).
11
+
12
+ The issue tracker is Opsee, described in `docs/agents/issue-tracker.md` at the repo root; `opsee init` writes that file. Publishing goes through the `opsee_*` MCP tools. If the doc is missing, stop and ask the user to run `opsee init`; if the tools are missing, stop and ask the user to attach the Opsee MCP server (`/mcp`). Do neither yourself, and publish nothing until both are present. In the doc, "issue" means an Opsee **Task**, and every issue lives inside an **Initiative**.
13
+
14
+ Read the doc's "Work contract" and `/to-issues` sections before step 5.
15
+
16
+ ## Process
17
+
18
+ ### 1. Gather context
19
+
20
+ Work from whatever is already in the conversation context. If the user passes a reference as an argument — an Initiative by name, a Task identifier like `OPS-172`, or a spec path — fetch it from Opsee (the tracker doc's Conventions table says how) and read its full body and comments.
21
+
22
+ ### 2. Explore the codebase (optional)
23
+
24
+ If you have not already explored the codebase, do so to understand the current state of the code. Issue titles and descriptions should use the project's domain glossary vocabulary, and respect ADRs in the area you're touching.
25
+
26
+ ### 3. Draft vertical slices
27
+
28
+ Break the plan into **tracer bullet** issues. Each issue is a thin vertical slice that cuts through ALL integration layers end-to-end, NOT a horizontal slice of one layer.
29
+
30
+ Slices may be 'HITL' or 'AFK'. HITL slices require human interaction, such as an architectural decision or a design review. AFK slices can be implemented and merged without human interaction by an unattended Worker. Prefer AFK over HITL where possible. For a HITL slice, say in its Goal why a human is needed.
31
+
32
+ <vertical-slice-rules>
33
+ - Each slice delivers a narrow but COMPLETE path through every layer (schema, API, UI, tests)
34
+ - A completed slice is demoable or verifiable on its own
35
+ - Prefer many thin slices over few thick ones
36
+ </vertical-slice-rules>
37
+
38
+ ### 4. Quiz the user
39
+
40
+ Present the proposed breakdown as a numbered list. For each slice, show:
41
+
42
+ - **Title**: short descriptive name
43
+ - **Type**: HITL / AFK
44
+ - **Blocked by**: which other slices (if any) must complete first
45
+ - **User stories covered**: which user stories this addresses (if the source material has them)
46
+
47
+ Ask the user:
48
+
49
+ - Does the granularity feel right? (too coarse / too fine)
50
+ - Are the dependency relationships correct?
51
+ - Should any slices be merged or split further?
52
+ - Are the correct slices marked as HITL and AFK?
53
+
54
+ Iterate until the user approves the breakdown.
55
+
56
+ ### 5. Publish the issues to Opsee
57
+
58
+ Slices become **Tasks inside the Initiative** that holds the plan; a spec published by `/to-spec` already is one, and a bare plan gets one first (`status: "draft"`, the plan as its core idea, as the tracker doc's `/to-spec` hook describes). Each Task's description is the issue body template below. Publish the whole approved breakdown in one call, following the tracker doc's `/to-issues` hook for the exact arguments:
59
+
60
+ - An Initiative with **no Tasks yet**: `opsee_decompose_initiative`, every slice as an entry with a temporary `ref` and the blocking edges between `ref`s. This also moves a `draft` Initiative to `active`.
61
+ - An Initiative that **already has Tasks** (re-planning, or a `/wayfinder` map that has become executable): `opsee_reconcile_initiative`, kept Tasks tagged with `existingTaskId` and new ones without. Run it with `dryRun: true` first, show the human the changeset, and only after their approval run it for real. Keep a map's closed wayfinder tickets so the record of the route survives; Tasks that carry execution state are never deleted by reconcile, and the human decides their fate.
62
+
63
+ **Blocked by** is a `BLOCKS` TaskDependency edge from blocker to blocked, never a line in the body; an absent edge is the absence of a blocker.
64
+
65
+ Then label the **AFK** slices `ready-for-agent`: that label is the dispatch signal, and it says the Task's work contract is complete and an unattended Worker may pick it up once its blockers are Done. **HITL** slices get no `ready-for-agent`; leave them for an attended turn. Publish with the label unless instructed otherwise.
66
+
67
+ <issue-template>
68
+ ## Goal
69
+
70
+ One paragraph: what this vertical slice delivers, end to end, in domain vocabulary. Describe the end-to-end behavior, not layer-by-layer implementation. For a HITL slice, say why a human is needed.
71
+
72
+ Avoid specific file paths or code snippets — they go stale fast. Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it here and note briefly that it came from a prototype. Trim to the decision-rich parts — not a working demo, just the important bits.
73
+
74
+ ## Acceptance Criteria
75
+
76
+ - [ ] Criterion a Worker must satisfy before claiming done
77
+ - [ ] Criterion 2
78
+ - [ ] Criterion 3
79
+
80
+ ## Verification
81
+
82
+ How to prove the work from the outside: commands to run and, for anything with a UI, the user journey to exercise in a browser. Followed by the Verifier, who never sees the implementer's transcript.
83
+
84
+ ## Boundaries
85
+
86
+ Optional: files or areas a Worker must not touch. Omit the section if none.
87
+
88
+ </issue-template>
89
+
90
+ The headings are the Foreman's work contract (`cli/CONTEXT.md`): a `ready-for-agent` Task that lacks them is not dispatched but sent to a Triage turn, so write them in full. Acceptance Criteria go in the description as `- [ ]` checkboxes, not through `opsee_add_acceptance_criterion`. A Task that descends from another Task gets `parentTaskId`; there is no Parent section in the body.
91
+
92
+ Do NOT close or modify the Initiative or any parent Task.
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "To Issues (Opsee)"
3
+ short_description: "Split a plan into tracer-bullet Tasks in an Opsee Initiative"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: to-spec
3
+ description: Turn the current conversation into a spec and publish it to Opsee as a draft Initiative — no interview, just synthesis of what you've already discussed.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ > Forked from the `to-spec` skill by Matt Pocock (https://github.com/mattpocock/skills, MIT). This copy is owned by Opsee: the process is upstream's, the tracker is Opsee.
8
+
9
+ This skill takes the current conversation context and codebase understanding and produces a spec. Do NOT interview the user — just synthesize what you already know.
10
+
11
+ The issue tracker is Opsee, described in `docs/agents/issue-tracker.md` at the repo root; `opsee init` writes that file. Publishing goes through the `opsee_*` MCP tools. If the doc is missing, stop and ask the user to run `opsee init`; if the tools are missing, stop and ask the user to attach the Opsee MCP server (`/mcp`). Do neither yourself, and publish nothing until both are present. In the doc, "issue" means an Opsee **Task**, and every issue lives inside an **Initiative**.
12
+
13
+ Read the doc's `/to-spec` hook before step 3.
14
+
15
+ ## Process
16
+
17
+ 1. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary throughout the spec, and respect any ADRs in the area you're touching.
18
+
19
+ 2. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better - the ideal number is one.
20
+
21
+ Check with the user that these seams match their expectations.
22
+
23
+ 3. Write the spec using the template below, then publish it to Opsee as an **Initiative**, not a Task: `opsee_create_initiative` with the spec title, a one- or two-line `summary`, `status: "draft"`, and the full spec body as the `coreIdea` in markdown. If the spec was written from a repo file, name the file path in the summary so the two stay linked. Do **not** apply a triage label: labels are Task-level in Opsee, and the spec's readiness is recorded by `/to-issues` when it files the Tasks and labels them `ready-for-agent`. Report the Initiative by title and id.
24
+
25
+ <spec-template>
26
+
27
+ ## Problem Statement
28
+
29
+ The problem that the user is facing, from the user's perspective.
30
+
31
+ ## Solution
32
+
33
+ The solution to the problem, from the user's perspective.
34
+
35
+ ## User Stories
36
+
37
+ A LONG, numbered list of user stories. Each user story should be in the format of:
38
+
39
+ 1. As an <actor>, I want a <feature>, so that <benefit>
40
+
41
+ <user-story-example>
42
+ 1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending
43
+ </user-story-example>
44
+
45
+ This list of user stories should be extremely extensive and cover all aspects of the feature.
46
+
47
+ ## Implementation Decisions
48
+
49
+ A list of implementation decisions that were made. This can include:
50
+
51
+ - The modules that will be built/modified
52
+ - The interfaces of those modules that will be modified
53
+ - Technical clarifications from the developer
54
+ - Architectural decisions
55
+ - Schema changes
56
+ - API contracts
57
+ - Specific interactions
58
+
59
+ Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.
60
+
61
+ Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it within the relevant decision and note briefly that it came from a prototype. Trim to the decision-rich parts — not a working demo, just the important bits.
62
+
63
+ ## Testing Decisions
64
+
65
+ A list of testing decisions that were made. Include:
66
+
67
+ - A description of what makes a good test (only test external behavior, not implementation details)
68
+ - Which modules will be tested
69
+ - Prior art for the tests (i.e. similar types of tests in the codebase)
70
+
71
+ ## Out of Scope
72
+
73
+ A description of the things that are out of scope for this spec.
74
+
75
+ ## Further Notes
76
+
77
+ Any further notes about the feature.
78
+
79
+ </spec-template>
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "To Spec (Opsee)"
3
+ short_description: "Turn a conversation into a spec published as a draft Opsee Initiative"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -0,0 +1,138 @@
1
+ ---
2
+ name: wayfinder
3
+ description: Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets in Opsee, and resolve them one at a time until the way to the destination is clear.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ > Forked from the `wayfinder` skill by Matt Pocock (https://github.com/mattpocock/skills, MIT). This copy is owned by Opsee: the process is upstream's, the tracker is Opsee.
8
+
9
+ A loose idea has arrived — too big for one agent session, and wrapped in fog: the way from here to the **destination** isn't visible yet. Wayfinding is about finding that way, not charging at the destination. This skill charts the way as a **shared map** on the repo's issue tracker, then works its **decision tickets** — questions whose resolution is a decision, not slices of a build to execute — one at a time until the route is clear.
10
+
11
+ The destination varies per effort, and naming it is the first act of charting — it shapes every ticket. It might be a spec to hand off and iterate on, a decision to lock before planning starts, or a change made in place like a data-structure migration. The map is domain-agnostic — engineering work, course content, whatever fits the shape.
12
+
13
+ ## The tracker
14
+
15
+ The issue tracker is Opsee, described in `docs/agents/issue-tracker.md` at the repo root; `opsee init` writes that file. Publishing goes through the `opsee_*` MCP tools. If the doc is missing, stop and ask the user to run `opsee init`; if the tools are missing, stop and ask the user to attach the Opsee MCP server (`/mcp`). Do neither yourself, and publish nothing until both are present. In the doc, "issue" means an Opsee **Task**, and every issue lives inside an **Initiative**.
16
+
17
+ Read the doc before charting or working a map.
18
+
19
+ ## Plan, don't do
20
+
21
+ Wayfinder is **planning** by default: each ticket resolves a decision, and the map is done when the way is clear — nothing left to decide before someone goes and does the thing. The pull to just do the work is usually the signal you've reached the edge of the map and it's time to hand off. An effort can override this in its **Notes** — carrying execution into the map itself — but absent that, produce decisions, not deliverables.
22
+
23
+ ## Refer by name
24
+
25
+ Every map and ticket is an issue, so it has a **name** — its title. In everything the human reads — narration, the map's Decisions-so-far — refer to it by that name, never by a bare id, number, or slug. A wall of `#42, #43, #44` is illegible; names read at a glance. The identifier doesn't vanish — a name wraps its `OPS-nnn` — but it rides _inside_ the name, never stands in for it. Numeric ids are for tool calls only.
26
+
27
+ ## The Map
28
+
29
+ The map is a single issue on this repo's issue tracker, labelled `wayfinder:map` — the canonical artifact. Its tickets are child issues of the map.
30
+
31
+ The map is an **index**, not a store. It lists the decisions made and points at the tickets that hold their detail; a decision lives in exactly one place — its ticket — so the map never restates it, only gists it and links.
32
+
33
+ **Where the map, its child tickets, blocking, and frontier queries physically live is tracker-specific.** Consult the **"Wayfinding operations"** section of `docs/agents/issue-tracker.md` for how _this_ repo expresses them: the Initiative that holds the effort, the map Task, the `wayfinder:*` labels, child tickets, blocking edges, the frontier query, claim, resolve, and out of scope. This skill says _what_ each of those means; that section says _which calls_ do it.
34
+
35
+ ### The map body
36
+
37
+ The whole map at low resolution, loaded once per session. Open tickets are **not** listed — they are open child issues, found by query.
38
+
39
+ ```markdown
40
+ ## Destination
41
+
42
+ <what reaching the end of this map looks like — the spec, decision, or change this effort is finding its way to. One or two lines; every session orients to it before choosing a ticket.>
43
+
44
+ ## Notes
45
+
46
+ <domain; skills every session should consult; standing preferences for this effort>
47
+
48
+ ## Decisions so far
49
+
50
+ <!-- the index — one line per closed ticket: enough to judge relevance, then zoom the link for the detail the ticket holds -->
51
+
52
+ - <closed ticket title> (OPS-nnn) — <one-line gist of the answer>
53
+
54
+ ## Not yet specified
55
+
56
+ <!-- see "Fog of war": in-scope fog you can't ticket yet; graduates as the frontier advances -->
57
+
58
+ ## Out of scope
59
+
60
+ <!-- see "Out of scope": work ruled beyond the destination; closed, never graduates -->
61
+ ```
62
+
63
+ ### Tickets
64
+
65
+ Each ticket is a **child issue** of the map; the tracker's issue id is its identity. Its body is the question, sized to one 100K token agent session:
66
+
67
+ ```markdown
68
+ ## Question
69
+
70
+ <the decision or investigation this ticket resolves>
71
+ ```
72
+
73
+ Each ticket carries a `wayfinder:<type>` label — one of `research`, `prototype`, `grilling`, `task` (see [Ticket Types](#ticket-types)). A wayfinder ticket is never a Ready Issue: it resolves a decision in a planning session, so it never carries the `ready-for-agent` label and the Foreman never dispatches it.
74
+
75
+ A session **claims** a ticket by assigning it to the dev driving the map, **first**, before any work, so concurrent sessions skip it. That assignee _is_ the claim: an open, unassigned ticket is unclaimed.
76
+
77
+ Blocking uses the tracker's **native** dependency relationship — a `BLOCKS` TaskDependency edge from blocker to blocked, never a line in the body — essential because it renders the frontier _visually_ in the tracker's own UI, so the human sees what's takeable without opening the map. A ticket is **unblocked** when every ticket blocking it is closed; the **frontier** is the open, unblocked, unclaimed children — the edge of the known.
78
+
79
+ The answer isn't part of the body — it's recorded on resolution (see [Work through the map](#work-through-the-map)). Assets created while resolving a ticket are linked from the issue, not pasted in.
80
+
81
+ ## Ticket Types
82
+
83
+ Every ticket is either **HITL** — human in the loop, worked _with_ a human who speaks for themselves — or **AFK**, driven by the agent alone. A HITL ticket only resolves through that live exchange; the agent never stands in for the human's side of it (a grilling agent that answers its own questions has broken this).
84
+
85
+ - **Research** (AFK): Reading documentation, third-party APIs, or local resources like knowledge bases to surface a fact a decision waits on. Resolved by a `/research` **subagent**. Use when knowledge outside the current working directory is required.
86
+ - **Prototype** (HITL): Raise the fidelity of the discussion by making a cheap, rough, concrete artifact to react to — an outline, a rough take, a stub, or UI/logic code via the /prototype skill. Links the prototype as an asset. Use when "how should it look" or "how should it behave" is the key question.
87
+ - **Grilling** (HITL): Conversation. The default case. Always invoke the /grilling and /domain-modeling skills.
88
+ - **Task** (HITL or AFK): Manual work that must happen before a _decision_ can be made — nothing to decide, prototype, or research, but the discussion is blocked until it's done. Signing up for a service so its API can be judged, provisioning access, moving data so its shape can be seen. This is the one type that _does_ rather than decides — and it earns its place by unblocking a decision, not by delivering the destination. The agent drives it alone where it can (AFK); otherwise it hands the human a precise checklist (HITL). Resolved when the work is done; the answer records what was done and any resulting facts (credentials location, new URLs, row counts) later tickets depend on.
89
+
90
+ ## Fog of war
91
+
92
+ The map is _deliberately_ incomplete: don't chart what you can't yet see. Beyond the live tickets lies the **fog of war** — the dim view of decisions and investigations you can tell are coming but can't yet pin down, because they hang on questions still open. Resolving a ticket clears the fog ahead of it, graduating whatever's now specifiable into fresh tickets — one at a time, until the way to the destination is clear and no tickets remain.
93
+
94
+ The map's **Not yet specified** section is where that dim view is written down: the suspected question, the area to revisit later. It's the undiscovered frontier _toward_ the destination — everything here is in scope, just not sharp enough to ticket. Write as loosely or as fully as the view allows; it doubles as a signpost for collaborators reading where the effort is headed.
95
+
96
+ **Fog or ticket?** The test is whether you can state the question precisely now — _not_ whether you can answer it now.
97
+
98
+ - **Ticket when** the question is already sharp — even if it's blocked and you can't act on it yet.
99
+ - **Not yet specified when** you can't yet phrase it that sharply. Don't pre-slice the fog into ticket-sized pieces: it's coarser than a ticket, and one patch may graduate into several tickets, or none, once the frontier reaches it.
100
+
101
+ **Not yet specified** excludes what's already decided (Decisions so far), what's already a live ticket, and what's out of scope (the next section).
102
+
103
+ ## Out of scope
104
+
105
+ Fog only ever gathers _toward_ the destination. The destination fixes the scope, so work beyond it is **out of scope** — it isn't fog, and it doesn't belong in **Not yet specified**. It gets its own **Out of scope** section on the map: work you've consciously ruled out of _this_ effort. Scope, not sharpness, lands it here.
106
+
107
+ Out-of-scope work never graduates — the frontier stops at the destination — so it returns only if the destination is redrawn, and then as a fresh effort, not a resumption.
108
+
109
+ Ruling something out of scope is a scoping act, not a step on the route. When a ticket that already exists turns out to sit past the destination — mis-scoped in while charting, or exposed by a resolution — **close it** (a closed ticket is unambiguously off the frontier) and leave one line in the **Out of scope** section: the gist plus why it's out of scope, linking the closed ticket. It stays out of **Decisions so far**, which records the route actually walked — a scope boundary isn't a step on it. The tracker doc's "Out of scope" operation says how.
110
+
111
+ ## Invocation
112
+
113
+ Two modes. Either way, **never resolve more than one ticket per session** — with the exception of research tickets.
114
+
115
+ ### Chart the map
116
+
117
+ User invokes with a loose idea.
118
+
119
+ 1. **Name the destination.** Run a `/grilling` and `/domain-modeling` session to pin down what this map is finding its way to — the spec, decision, or change. The destination fixes the scope, so it's settled first.
120
+ 2. **Map the frontier.** Grill again, **breadth-first** this time: fan out across the whole space rather than deep on any one thread, surfacing the open decisions and the first steps takeable now. **If this surfaces no fog** — the way to the destination is already clear, the whole journey small enough for one session — you don't need a map. Stop and ask the user how they'd like to proceed.
121
+ 3. **Create the map** (label `wayfinder:map`): Destination and Notes filled in, Decisions-so-far empty, the fog sketched into **Not yet specified**. Follow the tracker doc's "Map" and "Labels" operations: the Initiative that holds the whole effort comes first, then the map inside it.
122
+ 4. **Create the tickets you can specify now** as child issues of the map — then wire blocking edges in a **second pass** (issues need ids before they can reference each other). Wiring sorts them into the frontier and the blocked; everything you can't yet specify stays in the fog — the **Not yet specified** section.
123
+ 5. **Fire the research subagents.** For each `research` ticket you just created, spin up a `/research` subagent to resolve it in parallel, capturing its findings on a throwaway `research/<name>` branch with a context pointer from the ticket.
124
+ 6. Stop — charting is one session's work; it hand-resolves nothing.
125
+
126
+ ### Work through the map
127
+
128
+ User invokes with a map (its title, `OPS-nnn`, or the Initiative). A ticket is **optional** — without one, you pick the next decision, not the user.
129
+
130
+ 1. Load the **map** — the low-res view, not every ticket body.
131
+ 2. Choose the ticket. If the user named one, use it. Otherwise take the first frontier ticket in order (the tracker doc's "Frontier query"). **Claim it**: assign it to yourself before any work (the tracker doc's "Claim").
132
+ 3. Resolve it — **zoom as needed**: fetch the full body of any related or closed ticket on demand; invoke the skills the `## Notes` block names. If in doubt, use `/grilling` and `/domain-modeling`.
133
+ 4. Record the resolution: post the answer as a **resolution comment**, **close** the issue, and **append a context pointer** to the map's Decisions-so-far (the tracker doc's "Resolve", which also records the decision in the Initiative's memory).
134
+ 5. Add newly-surfaced tickets (create-then-wire); graduate any fog the answer has made specifiable, clearing each graduated patch from **Not yet specified** so it lives only as its new ticket. If the answer reveals a ticket — this one or another — sits beyond the destination, **rule it out of scope** rather than resolving it on the route. If the decision invalidates other parts of the map, update or delete those tickets.
135
+
136
+ The user may run unblocked tickets in parallel, so expect other sessions to be editing the tracker concurrently.
137
+
138
+ When the map has no open tickets, the way is clear: hand off to `/to-issues` against the same Initiative, as the tracker doc's "Graduate to execution" describes, so the route's decisions stay in the memory the execution Tasks are read against.
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Wayfinder (Opsee)"
3
+ short_description: "Map a large effort as decision tickets in an Opsee Initiative"
4
+ policy:
5
+ allow_implicit_invocation: false