Skip to content

Serve Playbook usage guidance from the graph, not a shipped file #2852

Closed

Description

@malibio

Overview

A Playbook bundle installs three things: structure (schemas), automation (Plays), and knowledge (skills). The third is not a nice-to-have alongside the first two — it is what makes them usable without the user having to reconstruct intent from field descriptions.

Today only the first two-and-a-bit work that way. The Linear Playbook seeds three usage skills into the graph, but everything about the bundle as a whole — what it is, what it installed, the constraints that come with it — lives in a static file, packages/skill/references/linear-recipe.md, shipped to every install whether or not any Playbook is present.

That file should shrink to genuinely install-only, and everything an agent needs after installation should come from the instance.

Why the graph is the right source once installed

The static file structurally cannot know things the graph does:

  • Re-keyed ids. If cycle collided on install and became cycle__2, the seeded guidance already carries rename_note's section naming the real ids. A file written before any install cannot.
  • User edits. A user may edit a Play or a schema afterwards. Seeded skills already have skill reset and the _seed.guidance_modified durability guard (ADR-072) for exactly this divergence. The file has nothing.
  • Which Playbook is even installed. Jira and SDD Playbooks are planned. A static per-Playbook file multiplies; a graph query does not.

The layering this completes

Layer Answers Mechanism
Schema field descriptions What is cycle.end_date? #2653
Seeded skills How does an Issue relate to a Cycle? Why was my write rejected? this issue
Bundle record What Playbook is this workspace running, and what did it install? #2570 / ADR-075

Per-field descriptions cannot carry the middle row: the knowledge is cross-schema by nature. That is the gap the skill library exists to close — not just general NodeSpace operations, but instructions specific to what this user's workspace is actually set up to do.

Scope

1. Seed a Playbook-level skill. Alongside the three task-scoped ones, seed a skill describing the bundle itself: what it installed, that a workspace holds one methodology, that the validation gates reject by design, and — where they were re-keyed — the real schema ids. This is the graph-resident answer to "what workflow is this workspace using?", which nothing answers today.

Keep it narrow like the others rather than a monolith; ADR-038's <0.8 similarity threshold rewards precise matches.

2. Shrink the static file to install-only. linear-recipe.md keeps the step sequence and the two guardrails that must be read before installing ("only when asked", "stop if issue or cycle exists"). Everything describing how to work with an installed Playbook moves to the seeded skill.

3. Fix SKILL.md's routing. The pointer today is unconditional:

For Linear-style work tracking, follow references/linear-recipe.md.

An agent in a workspace that already has the Playbook is still routed to the install doc, and only discovers the mismatch after reading a page of install steps. The guardrails are inside the file, so they arrive too late to prevent the wrong path.

It should route on state rather than task type: check whether the Playbook is installed (nodespace skill guidance, or the PlaybookNode record once #2570 lands); if installed, guidance comes from the graph; if not, follow the install doc.

4. Relationship to #2570. ADR-075's PlaybookNode already carries seed_node_ids, meant to track what a bundle seeded. That is the natural owner of bundle identity and provenance. This issue is the content half — what the seeded skills say and where an agent reads them from. The two should land compatibly; whichever goes first should not make the other awkward.

Acceptance Criteria

  • Installing a Playbook seeds a bundle-level skill, discoverable through the existing find_skills / skill guidance mechanism
  • That skill names the actual installed schema ids, including any re-keyed by collision
  • linear-recipe.md (name pending Rename methodology "recipe" to "Playbook" across code and docs #2851) contains only what is needed before an install
  • SKILL.md routes on installed state rather than task type, and stays inside its ~5000-token budget
  • An agent in a workspace with the Playbook installed reaches usage guidance without first reading install steps
  • An agent in a workspace without it still finds the install path
  • The design composes with Implement PlaybookNode as installable bundle record with display identity #2570's PlaybookNode rather than duplicating its role

Notes

Activity

  1. malibio commented on Sep 22, 2026

    @malibio
    CollaboratorAuthor

    Correction to this issue's text: it cites ADR-038's <0.8 similarity threshold as the reason to keep seeded skills narrow. That figure is stale.

    skill_ops.rs:22 sets SKILL_SEARCH_THRESHOLD = 0.0, and the comment above it is explicit that this is "the cosine noise floor, not a confidence judgment call" — server-side bucketing was deliberately removed so the model judges confidence from the raw score. ADR-038 still describes the 0.8 floor; the code moved past it and the ADR was not updated.

    The conclusion (keep skills narrow) holds, but the mechanism is different and the failure mode is worse:

    • Retrieval is pure KNN cosine over skill roots, limit-capped. No BM25, no keyword fallback.
    • The markdown body is not indexed — find_skills scopes to node_type = 'skill' roots only. So title + description is the entire retrieval surface.
    • A weak description is not filtered out, it is out-ranked — silently, by the 11 built-in skills, and falls off the end of the limit.

    That makes description phrasing load-bearing rather than cosmetic, which is now tracked separately.

  2. malibio commented on Sep 27, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 281 files / 5444 tests passed

  3. self-assigned this
    on Sep 27, 2026
  4. added a commit that references this issue on Sep 27, 2026
    79306d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions