wayfinder

Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets under .work/wayfinder, and resolve them one at a time in the Work App until the way to the destinat

SKILL.md

GitHub

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 of Markdown files under .work/wayfinder/, 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.

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.

Work App tools

The user is in the Work App. Every human touchpoint goes through a host tool, never a wall of chat questions:

Need Tool
Any decision, confirmation or checklist sign-off ask — one call per frontier round, 2–5 options per question, recommended set, no "Other" option
Showing the map, a prototype, or variants to react to plan — HTML under .work/plans/<slug>/, comments and ballots come back as JSON (read skill://work-plan first)
Fact-finding task subagents; never the user

Domain language and ADRs follow skill://grill-with-docs ("Domain rules"): check terms against CONTEXT.md, update it inline, offer ADRs sparingly via ask.

Plan, don't do

Wayfinder is planning by default: each ticket resolves a decision, and the map is done when the way is clear, with 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.

Refer by name

Every map and ticket has a name: its title. In everything the human reads (narration, ask questions, the map deck, Decisions so far), refer to it by that name, never by a bare number or file name. A wall of 03, 04, 07 is illegible; names read at a glance. The path doesn't vanish; it rides inside the name as a link: [Which queue backs sync?](tickets/03-sync-queue.md).

The Map

One folder per effort, slug ^[a-z0-9][a-z0-9-]{0,63}$ from the destination:

.work/wayfinder/<map>/
  map.md                     the map: index, never a store
  tickets/<NN>-<slug>.md     one file per ticket; NN in creation order, never reused
  research/<NN>-<slug>.md    research findings, linked from their ticket

Prototypes and the map deck live under .work/plans/ (see below), linked from the ticket or map. .work/ is local to this checkout: every session of the effort runs in the same checkout.

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.

map.md

The whole map at low resolution, loaded once per session. Open tickets are not listed: they are found by reading ticket frontmatter.

# <Map title>

## Destination

<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.>

## Notes

<domain; skills every session should read; standing preferences for this effort>

## Decisions so far

<!-- the index: one line per closed ticket, enough to judge relevance, then zoom the link for the detail the ticket holds -->

- [<closed ticket title>](tickets/<NN>-<slug>.md): <one-line gist of the answer>

## Not yet specified

<!-- see "Fog of war": in-scope fog you can't ticket yet; graduates as the frontier advances -->

## Out of scope

<!-- see "Out of scope": work ruled beyond the destination; closed, never graduates -->

Tickets

Each ticket file is sized to one agent session:

---
id: "03"
title: Which queue backs sync?
type: grilling          # research | prototype | grilling | task
status: open            # open | closed | out-of-scope
claimed_by: ""          # empty = unclaimed
blocked_by: ["01"]      # ticket ids; [] = takeable now
---

## Question

<the decision or investigation this ticket resolves>

On resolution the agent appends ## Resolution (the answer, decision ids, rationale) and ## Assets (links to research notes, plan decks, prototypes, docs changed). Assets are linked, never pasted in.

A session claims a ticket by setting claimed_by to <session start ISO time> <short purpose> first, before any work, so concurrent sessions skip it. Re-read the file immediately before claiming; if someone else claimed it, pick again.

A ticket is unblocked when every ticket in blocked_by has status: closed. The frontier is the open, unblocked, unclaimed tickets, the edge of the known. Compute it from frontmatter (rg -l / read each file); never cache it in map.md.

The map deck

The human sees the map in the Work App, not in raw Markdown. Render it to .work/plans/wayfinder-<map>/index.html as a deck (<body data-deck>, per skill://work-plan) and call plan with { "slug": "wayfinder-<map>", "title": "<map title>" }:

  1. Title slide: the destination.
  2. Route slide: a pre.mermaid flowchart of every ticket by name, edges from blocked_by, class … changed on the frontier; closed tickets shown as context. Mark ticket types in the node label (Research: …).
  3. Decisions so far: one bullet per closed ticket, resolution in a drill-down.
  4. Frontier: one bullet per takeable ticket with its question.
  5. Fog and Out of scope slides when non-empty.
  6. Any ballot the current step needs (charting review, a scope ruling).

Regenerate the deck from the files whenever you show it; the files stay the source of truth. comments[] keyed by slide id are edits to the map: apply them to the files, then the deck.

Ticket Types

Every ticket is either HITL (human in the loop, worked with a human who speaks for themselves through ask / plan) 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 (an agent that answers its own ask questions has broken this).

  • Research (AFK): reading documentation, third-party APIs, or local resources to surface a fact a decision waits on. Resolved by a task subagent with a fresh context (see Research subagents). Use when knowledge outside the working directory is required.
  • Prototype (HITL): raise the fidelity of the discussion with a cheap, rough, concrete artifact to react to — an outline, a rough take, a stub, or UI/logic code. Build it per skill://work-plan in .work/plans/<map>-<NN>/: a UI prototype as prototype.html (<body data-proto>) embedded in a short deck; competing takes as one slide each with a pick ballot; logic as code in drill-downs. Call plan; its answers[] and comments[] are the human's reaction. Iterate until the question is answered, then link the folder under ## Assets. Use when "how should it look" or "how should it behave" is the key question.
  • Grilling (HITL): conversation, the default case. Read skill://grilling and skill://grill-with-docs and run their question loop: checkpoint in .work/grilling/<map>-<NN>/state.md, ask one frontier per ask round, recompute, until the ticket's question is settled. Stop there: no plan.md and no /implement-plan handoff — the resolution goes on the ticket.
  • Task (HITL or AFK): manual work that must happen before a decision can be made: signing up for a service so its API can be judged, provisioning access, moving data so its shape can be seen. The one type that does rather than decides; it earns its place by unblocking a decision. AFK: the agent does it. HITL: one ask question whose text is the precise checklist, with options Done (recommended) and Blocked (the user's note says why); ask again for any facts only the human has (where the credentials live, the new URL). The resolution records what was done and the resulting facts later tickets depend on — never secrets themselves.

Research subagents

Spawn one task subagent per research ticket, all in one batch. Give each the absolute ticket and findings paths and these rules:

  • Answer the ticket's ## Question only; separate verified facts from assumptions.
  • Use primary sources (official docs, specs, maintainer material, the code itself); reject SEO and unsourced blog content. Cite every external claim inline with a link to the exact URL; repo facts as path:line.
  • Write findings to research/<NN>-<slug>.md. Then append ## Resolution (a short answer plus a link to the findings) to the ticket, set status: closed, and add the Decisions-so-far line to map.md. Touch no other file.

Fog of war

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.

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.

Fog or ticket? The test is whether you can state the question precisely now, not whether you can answer it now.

  • Ticket when the question is already sharp, even if it's blocked.
  • Not yet specified when you can't yet phrase it that sharply. Don't pre-slice the fog into ticket-sized pieces: one patch may graduate into several tickets, or none.

Not yet specified excludes what's already decided, what's already a live ticket, and what's out of scope.

Out of scope

Fog only ever gathers toward the destination. 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: work consciously ruled out of this effort.

Out-of-scope work never graduates; it returns only if the destination is redrawn, and then as a fresh effort.

Ruling something out of scope is a scoping decision, so it is the user's: put it to them as an ask question (recommended option: rule it out, with the reason) unless they already said so. When a ticket is ruled out, set status: out-of-scope (off the frontier for good) and leave one line in Out of scope: the gist, why, and a link to the ticket. It stays out of Decisions so far, which records the route actually walked.

Invocation

Two modes. Either way, never resolve more than one ticket per session, except research tickets.

Chart the map

The user invokes with a loose idea.

  1. Name the destination. Read the relevant code and domain docs, then use ask (grilling rules: frontier rounds, recommendations) 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.
  2. Map the frontier. Grill again, breadth-first: 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 is already clear, the whole journey fits one session), you don't need a map: ask how to proceed — options: plan it now with grilling (recommended), chart a map anyway, stop.
  3. Write the map: pick the slug, create map.md with Destination and Notes filled in, Decisions so far empty, the fog sketched into Not yet specified.
  4. Write the tickets you can specify now, then wire blocked_by and cross-references in a second pass, once every ticket has its id. Wiring sorts them into the frontier and the blocked; everything you can't yet specify stays in the fog.
  5. Review the map. Render the map deck with a final confirm ballot (id: "map-ok", "Is this the route?") and call plan. Apply comments[] and any "no" note to the files, regenerate, and call plan again until confirmed. Dismissal: leave the files as they are and stop.
  6. Fire the research subagents for every research ticket on the frontier, in parallel. Wait for them, read their findings, and graduate any fog the answers made specifiable (as in step 5 of the next mode).
  7. Stop: end with the map path, the frontier by name, and the command to continue (/wayfinder .work/wayfinder/<map>). Charting resolves no HITL ticket.

Work through the map

The user invokes with a map (slug or path). A ticket is optional: without one, you pick the next decision, not the user.

  1. Load map.md and the ticket frontmatter — the low-res view, not every ticket body.
  2. Choose the ticket. If the user named one, use it. Otherwise take the first frontier ticket in id order. Claim it before any work.
  3. Resolve it as the type its type names (see Ticket Types). Zoom as needed: read the full body of any related or closed ticket on demand; read whichever skills ## Notes names. If in doubt, grill.
  4. Record the resolution: append ## Resolution and ## Assets, set status: closed (keep claimed_by as the record of who resolved it), and append the Decisions-so-far line to map.md.
  5. Reshape the map: write newly-surfaced tickets (write-then-wire); graduate fog the answer made specifiable, removing each graduated patch from Not yet specified; if the answer shows a ticket sits beyond the destination, rule it out of scope (above); if the decision invalidates other tickets, rewrite them or mark them out of scope with the reason. Fire research subagents for any new research tickets.
  6. Show the updated map deck with plan so the user sees the route move. Apply its comments to the files. Then stop: one ticket per session.

When no open tickets and no fog remain, the way is clear: say so, link the decisions, and offer the hand-off via ask — options: write the implementation plan with grilling from this map (recommended), break it into tickets with to-tickets, stop.

Other sessions may be working other frontier tickets in the same checkout: re-read a file before every write to it, and never rewrite a ticket someone else has claimed.