Skip to content

Epic: Teammates — AI teammates that investigate on your own runtime #116

Open

Description

@waymark-ops

Goal

Let a team mention an AI teammate in chat (or start it from the CLI or API) and have it investigate a real problem across their systems, then report in the thread or file a card. Waymark composes the pipeline: teammate definition, playbooks, context from the knowledge base, an allow-listed and audited tool gateway, run state, routing, reports and cards. The team's own runtime (Claude Code, Hermes Agent or any CLI agent) runs the agent loop on the team's own machines, with the team's own model keys. Decision record: docs/adr/0004-teammates.md (PR #129).

Phase 1 is observe-only: teammates read, reason and write up. Writing code, merging and deploying are later phases of this epic.

The scenario that drives phase 1

  1. A manager sees blank currency values for one day in a spreadsheet add-in and mentions the bot in chat.
  2. The teammate looks up the system map: the add-in reads an internal API, the API reads a service database, and that database is a replica fed by CDC from another system's database through a separate CDC project.
  3. It calls the API (the value is null), queries the service database (the rows are missing) and the source database (the rows exist), so the gap is in the replication.
  4. It searches the CDC project's logs (an overflow error at the time of the daily import) and its code and commits, and names the commit that narrowed the column type.
  5. It replies in the thread with the evidence, or files a card with the full write-up when a human has to act.

Every hop is proven with an audited tool call, and the final verdict cites those calls.

Issues

Issue What Depends on
#117 Teammates and playbooks: config, YAML format, waymark playbook check and JSON Schema teammates, runners, tools config; playbook DAG validation; observe-only #93
#118 Run store: runs.db, state machine, event log and waymark runs run life cycle, routing engine, agent/run/<id> docs #117
#119 Run gateway endpoint: run tokens, waymark__* tools and finish_stage per-stage MCP endpoint, wmr_ tokens, verdict validation, prompt assembly, report action; knowledge tools search, get_document, past_runs, system_map #118, #124, #95
#120 Tool gateway: allow-listed downstream MCP servers with audit and redaction <serverId>__<tool>, default deny, tool.call audit, 64 KB cap, redact() #119, #94
#121 Runners: pull protocol, waymark runner and waymark run --local claim/events/complete, leases, adapter interface, local mode, POST /api/v1/runs #119, #95, #96, #98
#122 Runtime adapters: claude-code and command headless Claude Code, any CLI agent #121
#123 Runtime adapter: hermes (Hermes Agent API server) Hermes /v1/runs, loopback MCP proxy in the runner #120, #121, #122
#124 System map: Backstage catalog-info.yaml ingestion and system_map catalog docs, edges index, waymark.dev/feeds and waymark.dev/tools, systemMap() #84 (merged)
#125 Chat trigger: start teammate runs from a bot mention and post progress in the thread bots.teammate, access check, progress messages #121, #102 (merged), one platform bot
#126 card action: file a GitHub issue with the full investigation write-up cardOnTerminal, Waymark Bot app, dedupe by run id, card.failed #119, #121, #106
#127 End-to-end harness: scripted test runtime and the "data gap" scenario in CI fake MCP servers, synthetic catalog, full run in npm test #120, #121, #124, #126

Order: #117 ∥ #124 → #118 → #119 → #120 ∥ #121 → #122 ∥ #125 ∥ #126 → #123 → #127. #124 adds the index schema version after #84's v3 (v4 unless another schema bump lands first; whichever merges second takes the next number).

Conventions for every issue

Later phases (not yet issues)

Definition of done

Evidence

Activity

  1. added
    epicLarge feature split into smaller issues
    area: agentsClaude Code, Cursor, Hermes and other harness integrations
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: agentsClaude Code, Cursor, Hermes and other harness integrationsepicLarge feature split into smaller issues

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions