Skip to main content
Agents are more useful when they can reason from business context.

Build the chain

  1. As an organization owner or admin, create a goal with a target date.
  2. Attach one or more KPIs.
  3. Create initiatives expected to move those KPIs.
  4. Link initiatives to projects, milestones, and tasks.
  5. Record KPI snapshots as work changes the metric.

Example

If the KPI is off pace and the initiative has blocked tasks, heartbeat can show that unblocking the docs launch is more important than a lower-priority unrelated task.

Strategy page for agents

The Strategy page uses the same audit findings as atoll strategy audit in Needs attention, followed by a Goals outline. It shows named owners, KPI values and dates, initiative progress, blocked work, and missing links. KPI exceptions use Stale, Off target, and No target. Use Active/All, Product, Owner, Quarter, and search to narrow the page. Filtering does not create new audit findings from hidden records. Links preserve context for strategy records outside the selected Product. A heartbeat recommendation appears as a suggested-action row in Needs attention. Select Review to inspect the evidence before creating work, updating a task, recording a KPI, or adding a progress comment. The Update KPIs (N) header action opens recording for the first stale KPI.

KPI snapshots

Snapshots update KPI current value and create attribution history. Goal reads are available to organization members. Creating or updating goals, including through the first-time Strategy wizard, requires organization owner/admin Strategy write access. KPI reads require non-guest organization-wide Strategy access. Creating, updating, or deleting a KPI and recording snapshots require organization owner/admin Strategy write access. Guest and project-scoped agents cannot read the KPI collection, and direct KPI routes return 404 for unreadable KPIs. Before using KPI or per-KPI sync commands, verify that the active Atoll profile has the required organization-wide role; do not treat project access as KPI access.
Use atoll kpi snapshot add <kpi> --value ... --initiative "<initiative>" --issue ATOLL-123 --note "..." to attribute a measurement to the work that produced it. Use atoll kpi snapshot list <kpi> --include-attribution --json to inspect that history, and atoll heartbeat --explain-kpi <kpi> --json to see the canonical KPI status with linked initiatives and recent attributed snapshots. Remote MCP clients keep using atoll_list_kpi_snapshots for the strict legacy schema. Use atoll_list_kpi_snapshots_with_provenance only when the client can accept nullable source_window_start and source_window_end calendar dates.

Read relationship context

Use the detail reads when an agent needs the strategy relationship graph:
  • GET /api/orgs/{id}/initiatives/{initiativeId} embeds kpi_impacts only for linked KPIs readable by the caller.
  • GET /api/orgs/{id}/kpis/{kpiId} embeds visible initiative_impacts across all initiative statuses, filtered by project-aware initiative access.
These fields describe intended impact. Keep them separate from snapshot attribution, which records what produced one measurement. The detail fields are read-only; use the existing initiative KPI link/unlink operations for relationship mutations. For launch-style goals, use an internal task-completion KPI instead of snapshots:
This KPI calculates done directly linked and milestone-linked tasks over total linked tasks for initiatives under the goal.

Initiative health

Heartbeat summarizes linked execution:
  • Total issues
  • Completed issues
  • Stalled issues
  • Blocked issues
  • Expected KPI impacts
Link tasks to initiatives when the work exists to move a KPI. Leave routine chores unlinked unless they truly affect a strategic objective.

Audit the chain

Heartbeat is the operational lens (what to do today). The audit is the structural lens — is the strategy well-formed? GET /api/orgs/{id}/strategy/audit (CLI: atoll strategy audit) returns findings[] with a severity and a concrete suggested_fix for each gap: orphaned initiatives/KPIs (no goal), goals with no KPI or no initiative, KPIs missing targets or stale, initiatives missing impact/execution, and blocked/overdue work. The audit is scoped to the caller. Owners and admins receive organization-wide execution evidence. Other non-guest members receive issues, milestones, target links, and target findings only through readable projects. Shared initiatives are redacted at each nested link, and a restricted member with no readable projects receives no issue or target execution evidence. Guests cannot run the audit. Strategy audit focuses on active planning records. Paused and cancelled goals are excluded from active goal findings, KPIs attached to inactive goals do not create KPI health findings, and paused, completed, or cancelled initiatives do not create initiative health findings.
The audit only diagnoses — fix findings with the normal goal/KPI/initiative write endpoints, then re-run to confirm they cleared.

Ranked project work recommendations

GET /api/orgs/{id}/projects/{projectId}/work-recommendations returns up to five eligible project issues in a deterministic order. It requires current project read access. Missing and inaccessible projects both return 404. This is a read-only REST capability: it does not assign, start, claim, or update work. Use limit (integer 1–5, default 5) and the returned opaque cursor to read the next page. Every request authorizes the current caller and ranks the complete bounded project source before pagination. evaluation.evaluated_at is the UTC time used for due dates and KPI freshness. A cursor is bound to the organization, project, actor kind, and member; it expires after 15 minutes. Cursors are unsigned navigation state, not authorization or database snapshots. Changed facts can move or repeat items between pages. Revalidate before any later write. The response contains recommendations, page, and evaluation. Each item has compact issue fields, action_kind (start, continue, or review_assignment), up to three contributing reasons, up to five limitations, and limitations_truncated. Assignment affects the action kind, not the ranking. Reasons contain a fixed code and summary, one authorized source_type/source_id, and optional bounded source_title and source_as_of. No score, description, comment, URL, KPI value, or excluded issue content is returned. Exclusions are aggregate primary-reason counts only. Ordering uses these groups, in sequence:
  1. Visible urgent downstream work or a direct active overdue milestone; earliest contributing due date first, then the number of visible urgent dependents.
  2. Current KPI evidence reached through an explicit active initiative link, then an explicit active initiative link without current KPI evidence.
  3. Issue due state (overdue, dated, undated), due date, priority (0–3, then null), creation time, and issue UUID.
Strategy paths are issue → initiative, issue → target → initiative, and the same two paths through the issue’s direct milestone. Text similarity has no effect. Only authorized facts contribute. A current timestamp also needs a finite current KPI value; stale and unknown evidence adds limitations without the current-evidence boost. Dates use the UTC calendar; a milestone due today is not overdue. Closed milestones and inactive initiatives add no urgency or strategy boost. Heartbeat recommended_action is unchanged. A request scans at most 1,000 source issues and enforces relation, 25,000 related physical-row, and 200-query ceilings. Any exceeded bound returns 422 WORK_RECOMMENDATIONS_EVIDENCE_LIMIT, with no partial recommendations. Empty and unconfigured projects return a complete 200 response. Required-read failures return 500 WORK_RECOMMENDATIONS_READ_FAILED; malformed, duplicate, or dangling evidence returns 500 WORK_RECOMMENDATIONS_RESPONSE_INVALID. Invalid limits, UUIDs, queries, or cursor scope return 400 WORK_RECOMMENDATIONS_INPUT_INVALID; expired cursors return 400 WORK_RECOMMENDATIONS_CURSOR_EXPIRED. Error bodies contain only safe error and code strings. This endpoint retains its project-wide behavior without actor execution filtering. Read it through atoll work project-recommendations --project UUID --json or full/public MCP atoll_get_work_recommendations with view: project. For target occupation and current-work inspection, use the actor endpoint in Work recommendations.

Product ownership of strategy

Goals, KPIs and initiatives each have an independent nullable product_id. null means Organization ownership; a UUID means a Product in the same organization. Existing records stay Organization-owned. owner_id still identifies a person. Product ownership is never inferred from a goal, KPI impact or execution project. Existing POST and PATCH routes accept product_id. Omitted on POST means Organization; omitted on PATCH preserves the owner; explicit null detaches. Owner changes require an organization owner/admin and preserve record IDs, snapshots, source/sync configuration, targets, history and explicit links. Lists accept product_id=UUID for an exact owner or product_id=none for Organization-owned records. Omit it for all authorized owners. Ownership filters combine with existing filters before counts and pagination; response envelopes stay unchanged. A direct KPI/initiative goal link permits the same Product, or Organization ownership on either side. Two different non-null Product owners conflict. Moving a goal checks all linked KPIs and initiatives. A conflict returns 409; reassign linked strategy first or use Organization as an intermediate owner. KPI names are unique within one owner, so separate Products can each have an MRR KPI. Explicit KPI impacts and execution links can cross Product groups within the same organization when existing access checks permit them. Formula KPIs still use explicit goal-to-initiative-to-task/milestone links. Archived Products retain their strategy. Ordinary edits to existing owned records and moving/detaching out remain allowed; new assignment into an archived Product returns 409 until restore. Malformed ownership input returns 400, missing or foreign Products return concealed 404, and permission failures keep existing 403/404 semantics. Product identity or access to a contributing project grants no additional strategy access. Actual owner changes add one projectless strategy.product_changed Activity event with actor, record kind/id and old/new Product IDs. Typed CLI strategy list/create/update commands accept --product <uuid|exact-name|none>. Both MCP profiles accept product_id on list/create/update: lists use a UUID or "none"; writes use a UUID or null. Omission preserves existing behavior. Use owner_id only for the human/member owner, independently of Product ownership.

Typed Product tools

A Product mutation can return core_write_uncertain if its result is lost or cannot be verified. It may already have taken effect. Read the exact Product or project before another write. For create, search authorized Products by exact name with archive_scope: "all", inspect candidates with atoll_get_product, and reconcile the requested fields before another create. Names are not unique; do not blindly retry. Authoritative permission and conflict errors stay unchanged. Both full/private MCP and the public plugin expose atoll_list_products, atoll_get_product, atoll_create_product, atoll_update_product, atoll_archive_product, atoll_restore_product, and atoll_set_project_product. Use atoll_list_products to discover authorized UUIDs. Product reads return metadata only, without child counts or implicit sibling access. Product list supports archive_scope (active, archived, all), q, q_exact, limit (1–100), and offset. atoll_update_product replaces supplied name/description values; null clears the description. atoll_set_project_product replaces or clears existing affiliation. Both tools advertise destructiveHint: true. Omitted update fields stay unchanged. Product tool IDs are UUIDs. atoll_set_project_product requires product_id as a UUID or explicit null. Project list accepts optional product_id as a UUID or "none" for standalone projects. Goal, KPI and initiative list tools accept the same filter; their create/update tools accept optional nullable product_id. Omit it to preserve legacy defaults or the existing owner; null selects Organization ownership. Human owner_id remains separate. Public tools require the selected opaque profile_ref on each actor-dependent call. Discover it with atoll_list_agent_profiles; never switch profiles to bypass a denied write. Existing REST permissions remain authoritative, including owner/admin Product and ownership writes and concealed inaccessible reads. Mutation outputs retain the server’s changed flag. Product archive leaves project/task lifecycle unchanged. Continue to use bounded project and strategy lists for authorized related records; heartbeat gains no full Product catalog.